- Timestamp:
- 10/11/2020 01:14:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r12731 r12749 1011 1011 ), 1012 1012 ), 1013 'bp/groups' => array( 1014 'name' => 'bp/groups', 1015 'editor_script' => 'bp-groups-block', 1016 'editor_script_url' => plugins_url( 'js/blocks/groups.js', dirname( __FILE__ ) ), 1017 'editor_script_deps' => array( 1018 'wp-blocks', 1019 'wp-element', 1020 'wp-components', 1021 'wp-i18n', 1022 'wp-compose', 1023 'wp-data', 1024 'wp-api-fetch', 1025 'wp-url', 1026 'wp-block-editor', 1027 'bp-block-components', 1028 'lodash', 1029 ), 1030 'style' => 'bp-groups-block', 1031 'style_url' => plugins_url( 'css/blocks/groups.css', dirname( __FILE__ ) ), 1032 'attributes' => array( 1033 'itemIDs' => array( 1034 'type' => 'array', 1035 'items' => array( 1036 'type' => 'integer', 1037 ), 1038 ), 1039 'avatarSize' => array( 1040 'type' => 'string', 1041 'default' => 'full', 1042 ), 1043 'displayGroupName' => array( 1044 'type' => 'boolean', 1045 'default' => true, 1046 ), 1047 'extraInfo' => array( 1048 'type' => 'string', 1049 'default' => 'none', 1050 'enum' => array( 'description', 'popular', 'active', 'none' ), 1051 ), 1052 'layoutPreference' => array( 1053 'type' => 'string', 1054 'default' => 'list', 1055 'enum' => array( 'list', 'grid' ), 1056 ), 1057 'columns' => array( 1058 'type' => 'number', 1059 'default' => 2, 1060 ), 1061 ), 1062 'render_callback' => 'bp_groups_render_groups_block', 1063 ), 1013 1064 ) 1014 1065 );
Note: See TracChangeset
for help on using the changeset viewer.