- Timestamp:
- 10/11/2020 11:51:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-component.php
r12607 r12748 734 734 ), 735 735 ), 736 'bp/members' => array( 737 'name' => 'bp/members', 738 'editor_script' => 'bp-members-block', 739 'editor_script_url' => plugins_url( 'js/blocks/members.js', dirname( __FILE__ ) ), 740 'editor_script_deps' => array( 741 'wp-blocks', 742 'wp-element', 743 'wp-components', 744 'wp-i18n', 745 'wp-compose', 746 'wp-data', 747 'wp-api-fetch', 748 'wp-url', 749 'wp-block-editor', 750 'bp-block-components', 751 'lodash', 752 ), 753 'style' => 'bp-members-block', 754 'style_url' => plugins_url( 'css/blocks/members.css', dirname( __FILE__ ) ), 755 'attributes' => array( 756 'itemIDs' => array( 757 'type' => 'array', 758 'items' => array( 759 'type' => 'integer', 760 ), 761 ), 762 'avatarSize' => array( 763 'type' => 'string', 764 'default' => 'full', 765 ), 766 'displayMentionSlug' => array( 767 'type' => 'boolean', 768 'default' => true, 769 ), 770 'displayUserName' => array( 771 'type' => 'boolean', 772 'default' => true, 773 ), 774 'extraData' => array( 775 'type' => 'string', 776 'default' => 'none', 777 'enum' => array( 'last_activity', 'latest_update', 'none' ), 778 ), 779 'layoutPreference' => array( 780 'type' => 'string', 781 'default' => 'list', 782 'enum' => array( 'list', 'grid' ), 783 ), 784 'columns' => array( 785 'type' => 'number', 786 'default' => 2, 787 ), 788 ), 789 'render_callback' => 'bp_members_render_members_block', 790 ), 736 791 ) 737 792 );
Note: See TracChangeset
for help on using the changeset viewer.