- Timestamp:
- 04/25/2023 10:17:33 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-friends-component.php
r13450 r13464 371 371 * 372 372 * @since 9.0.0 373 * @since 12.0.0 Use the WP Blocks API v2. 373 374 * 374 375 * @param array $blocks Optional. See BP_Component::blocks_init() for … … 379 380 array( 380 381 'bp/friends' => array( 381 'name' => 'bp/friends', 382 'editor_script' => 'bp-friends-block', 383 'editor_script_url' => plugins_url( 'js/blocks/friends.js', dirname( __FILE__ ) ), 384 'editor_script_deps' => array( 385 'wp-blocks', 386 'wp-element', 387 'wp-components', 388 'wp-i18n', 389 'wp-block-editor', 390 'wp-server-side-render', 391 'bp-block-data', 392 ), 393 'style' => 'bp-friends-block', 394 'style_url' => plugins_url( 'css/blocks/friends.css', dirname( __FILE__ ) ), 395 'attributes' => array( 396 'maxFriends' => array( 397 'type' => 'number', 398 'default' => 5, 399 ), 400 'friendDefault' => array( 401 'type' => 'string', 402 'default' => 'active', 403 ), 404 'linkTitle' => array( 405 'type' => 'boolean', 406 'default' => false, 407 ), 408 'postId' => array( 409 'type' => 'number', 410 'default' => 0, 411 ), 412 ), 413 'render_callback' => 'bp_friends_render_friends_block', 382 'metadata' => trailingslashit( buddypress()->plugin_dir ) . 'bp-friends/blocks/dynamic-friends', 383 'render_callback' => 'bp_friends_render_friends_block', 414 384 ), 415 385 )
Note: See TracChangeset
for help on using the changeset viewer.