- Timestamp:
- 03/25/2020 07:39:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-component.php
r12559 r12579 62 62 'adminbar', 63 63 'functions', 64 'blocks', 64 65 'widgets', 65 66 'cache', … … 669 670 ) ); 670 671 } 672 673 /** 674 * Register the BP Members Blocks. 675 * 676 * @since 6.0.0 677 * 678 * @param array $blocks Optional. See BP_Component::blocks_init() for 679 * description. 680 */ 681 public function blocks_init( $blocks = array() ) { 682 parent::blocks_init( 683 array( 684 'bp/member' => array( 685 'name' => 'bp/member', 686 'editor_script' => 'bp-member-block', 687 'editor_script_url' => plugins_url( 'js/blocks/member.js', dirname( __FILE__ ) ), 688 'editor_script_deps' => array( 689 'wp-blocks', 690 'wp-element', 691 'wp-components', 692 'wp-i18n', 693 'wp-editor', 694 'wp-compose', 695 'wp-data', 696 'wp-block-editor', 697 'bp-block-components', 698 ), 699 'style' => 'bp-member-block', 700 'style_url' => plugins_url( 'css/blocks/member.css', dirname( __FILE__ ) ), 701 'render_callback' => 'bp_members_render_member_block', 702 'attributes' => array( 703 'itemID' => array( 704 'type' => 'integer', 705 'default' => 0, 706 ), 707 'avatarSize' => array( 708 'type' => 'string', 709 'default' => 'full', 710 ), 711 'displayMentionSlug' => array( 712 'type' => 'boolean', 713 'default' => true, 714 ), 715 'displayActionButton' => array( 716 'type' => 'boolean', 717 'default' => true, 718 ), 719 'displayCoverImage' => array( 720 'type' => 'boolean', 721 'default' => true, 722 ), 723 ), 724 ), 725 ) 726 ); 727 } 671 728 }
Note: See TracChangeset
for help on using the changeset viewer.