diff --git src/bp-groups/js/blocks/group.js src/bp-groups/js/blocks/group.js
index c10b7e6bd..b92f36f28 100644
|
|
|
var editGroup = function editGroup(_ref) { |
| 191 | 191 | }); |
| 192 | 192 | } |
| 193 | 193 | }))), createElement(InspectorControls, null, createElement(PanelBody, { |
| 194 | | title: __('Group\'s home button settings', 'buddypress'), |
| | 194 | title: __('Settings', 'buddypress'), |
| 195 | 195 | initialOpen: true |
| 196 | 196 | }, createElement(ToggleControl, { |
| 197 | 197 | label: __('Display Group\'s home button', 'buddypress'), |
| … |
… |
var editGroup = function editGroup(_ref) { |
| 202 | 202 | }); |
| 203 | 203 | }, |
| 204 | 204 | help: displayActionButton ? __('Include a link to the group\'s home page under their name.', 'buddypress') : __('Toggle to display a link to the group\'s home page under their name.', 'buddypress') |
| 205 | | })), createElement(PanelBody, { |
| 206 | | title: __('Description settings', 'buddypress'), |
| 207 | | initialOpen: false |
| 208 | | }, createElement(ToggleControl, { |
| | 205 | }), createElement(ToggleControl, { |
| 209 | 206 | label: __('Display group\'s description', 'buddypress'), |
| 210 | 207 | checked: !!displayDescription, |
| 211 | 208 | onChange: function onChange() { |
| … |
… |
var editGroup = function editGroup(_ref) { |
| 214 | 211 | }); |
| 215 | 212 | }, |
| 216 | 213 | help: displayDescription ? __('Include the group\'s description under their name.', 'buddypress') : __('Toggle to display the group\'s description under their name.', 'buddypress') |
| 217 | | })), isAvatarEnabled && createElement(PanelBody, { |
| 218 | | title: __('Avatar settings', 'buddypress'), |
| 219 | | initialOpen: false |
| 220 | | }, createElement(SelectControl, { |
| 221 | | label: __('Size', 'buddypress'), |
| | 214 | }), isAvatarEnabled && createElement(SelectControl, { |
| | 215 | label: __('Avatar size', 'buddypress'), |
| 222 | 216 | value: avatarSize, |
| 223 | 217 | options: AVATAR_SIZES, |
| | 218 | help: __('Select "None" to disable the avatar.', 'buddypress'), |
| 224 | 219 | onChange: function onChange(option) { |
| 225 | 220 | setAttributes({ |
| 226 | 221 | avatarSize: option |
| 227 | 222 | }); |
| 228 | 223 | } |
| 229 | | })), isCoverImageEnabled && createElement(PanelBody, { |
| 230 | | title: __('Cover image settings', 'buddypress'), |
| 231 | | initialOpen: false |
| 232 | | }, createElement(ToggleControl, { |
| | 224 | }), isCoverImageEnabled && createElement(ToggleControl, { |
| 233 | 225 | label: __('Display Cover Image', 'buddypress'), |
| 234 | 226 | checked: !!displayCoverImage, |
| 235 | 227 | onChange: function onChange() { |
diff --git src/bp-members/js/blocks/member.js src/bp-members/js/blocks/member.js
index 4e7f56941..3f78b0dc5 100644
|
|
|
var editMember = function editMember(_ref) { |
| 191 | 191 | }); |
| 192 | 192 | } |
| 193 | 193 | }))), createElement(InspectorControls, null, createElement(PanelBody, { |
| 194 | | title: __('Profile button settings', 'buddypress'), |
| | 194 | title: __('Settings', 'buddypress'), |
| 195 | 195 | initialOpen: true |
| 196 | 196 | }, createElement(ToggleControl, { |
| 197 | 197 | label: __('Display Profile button', 'buddypress'), |
| … |
… |
var editMember = function editMember(_ref) { |
| 202 | 202 | }); |
| 203 | 203 | }, |
| 204 | 204 | help: displayActionButton ? __('Include a link to the user\'s profile page under their display name.', 'buddypress') : __('Toggle to display a link to the user\'s profile page under their display name.', 'buddypress') |
| 205 | | })), isAvatarEnabled && createElement(PanelBody, { |
| 206 | | title: __('Avatar settings', 'buddypress'), |
| 207 | | initialOpen: false |
| 208 | | }, createElement(SelectControl, { |
| 209 | | label: __('Size', 'buddypress'), |
| | 205 | }), isAvatarEnabled && createElement(SelectControl, { |
| | 206 | label: __('Avatar size', 'buddypress'), |
| 210 | 207 | value: avatarSize, |
| 211 | 208 | options: AVATAR_SIZES, |
| | 209 | help: __('Select "None" to disable the avatar.', 'buddypress'), |
| 212 | 210 | onChange: function onChange(option) { |
| 213 | 211 | setAttributes({ |
| 214 | 212 | avatarSize: option |
| 215 | 213 | }); |
| 216 | 214 | } |
| 217 | | })), isCoverImageEnabled && createElement(PanelBody, { |
| 218 | | title: __('Cover image settings', 'buddypress'), |
| 219 | | initialOpen: false |
| 220 | | }, createElement(ToggleControl, { |
| | 215 | }), isCoverImageEnabled && createElement(ToggleControl, { |
| 221 | 216 | label: __('Display Cover Image', 'buddypress'), |
| 222 | 217 | checked: !!displayCoverImage, |
| 223 | 218 | onChange: function onChange() { |
| … |
… |
var editMember = function editMember(_ref) { |
| 226 | 221 | }); |
| 227 | 222 | }, |
| 228 | 223 | help: displayCoverImage ? __('Include the user\'s cover image over their display name.', 'buddypress') : __('Toggle to display the user\'s cover image over their display name.', 'buddypress') |
| 229 | | })), isMentionEnabled && createElement(PanelBody, { |
| 230 | | title: __('Mention settings', 'buddypress'), |
| 231 | | initialOpen: false |
| 232 | | }, createElement(ToggleControl, { |
| | 224 | }), isMentionEnabled && createElement(ToggleControl, { |
| 233 | 225 | label: __('Display Mention slug', 'buddypress'), |
| 234 | 226 | checked: !!displayMentionSlug, |
| 235 | 227 | onChange: function onChange() { |
diff --git src/js/bp-groups/js/blocks/group.js src/js/bp-groups/js/blocks/group.js
index 6a1c4c869..2d95f05a6 100644
|
|
|
const editGroup = ( { attributes, setAttributes, bpSettings } ) => { |
| 67 | 67 | </Toolbar> |
| 68 | 68 | </BlockControls> |
| 69 | 69 | <InspectorControls> |
| 70 | | <PanelBody title={ __( 'Group\'s home button settings', 'buddypress' ) } initialOpen={ true }> |
| | 70 | <PanelBody title={ __( 'Settings', 'buddypress' ) } initialOpen={ true }> |
| 71 | 71 | <ToggleControl |
| 72 | 72 | label={ __( 'Display Group\'s home button', 'buddypress' ) } |
| 73 | 73 | checked={ !! displayActionButton } |
| … |
… |
const editGroup = ( { attributes, setAttributes, bpSettings } ) => { |
| 80 | 80 | : __( 'Toggle to display a link to the group\'s home page under their name.', 'buddypress' ) |
| 81 | 81 | } |
| 82 | 82 | /> |
| 83 | | </PanelBody> |
| 84 | | <PanelBody title={ __( 'Description settings', 'buddypress' ) } initialOpen={ false }> |
| | 83 | |
| 85 | 84 | <ToggleControl |
| 86 | 85 | label={ __( 'Display group\'s description', 'buddypress' ) } |
| 87 | 86 | checked={ !! displayDescription } |
| … |
… |
const editGroup = ( { attributes, setAttributes, bpSettings } ) => { |
| 94 | 93 | : __( 'Toggle to display the group\'s description under their name.', 'buddypress' ) |
| 95 | 94 | } |
| 96 | 95 | /> |
| 97 | | </PanelBody> |
| 98 | | { isAvatarEnabled && ( |
| 99 | | <PanelBody title={ __( 'Avatar settings', 'buddypress' ) } initialOpen={ false }> |
| | 96 | |
| | 97 | { isAvatarEnabled && ( |
| 100 | 98 | <SelectControl |
| 101 | | label={ __( 'Size', 'buddypress' ) } |
| | 99 | label={ __( 'Avatar size', 'buddypress' ) } |
| 102 | 100 | value={ avatarSize } |
| 103 | 101 | options={ AVATAR_SIZES } |
| | 102 | help={ __( 'Select "None" to disable the avatar.', 'buddypress' ) } |
| 104 | 103 | onChange={ ( option ) => { |
| 105 | 104 | setAttributes( { avatarSize: option } ); |
| 106 | 105 | } } |
| 107 | 106 | /> |
| 108 | | </PanelBody> |
| 109 | | ) } |
| 110 | | { isCoverImageEnabled && ( |
| 111 | | <PanelBody title={ __( 'Cover image settings', 'buddypress' ) } initialOpen={ false }> |
| | 107 | ) } |
| | 108 | |
| | 109 | { isCoverImageEnabled && ( |
| 112 | 110 | <ToggleControl |
| 113 | 111 | label={ __( 'Display Cover Image', 'buddypress' ) } |
| 114 | 112 | checked={ !! displayCoverImage } |
| … |
… |
const editGroup = ( { attributes, setAttributes, bpSettings } ) => { |
| 121 | 119 | : __( 'Toggle to display the group\'s cover image over their name.', 'buddypress' ) |
| 122 | 120 | } |
| 123 | 121 | /> |
| 124 | | </PanelBody> |
| 125 | | ) } |
| | 122 | ) } |
| | 123 | </PanelBody> |
| 126 | 124 | </InspectorControls> |
| 127 | 125 | <Disabled> |
| 128 | 126 | <ServerSideRender block="bp/group" attributes={ attributes } /> |
diff --git src/js/bp-members/js/blocks/member.js src/js/bp-members/js/blocks/member.js
index 1d0e650ec..58ba9cb02 100644
|
|
|
const editMember = ( { attributes, setAttributes, bpSettings } ) => { |
| 66 | 66 | </Toolbar> |
| 67 | 67 | </BlockControls> |
| 68 | 68 | <InspectorControls> |
| 69 | | <PanelBody title={ __( 'Profile button settings', 'buddypress' ) } initialOpen={ true }> |
| | 69 | <PanelBody title={ __( 'Settings', 'buddypress' ) } initialOpen={ true }> |
| 70 | 70 | <ToggleControl |
| 71 | 71 | label={ __( 'Display Profile button', 'buddypress' ) } |
| 72 | 72 | checked={ !! displayActionButton } |
| … |
… |
const editMember = ( { attributes, setAttributes, bpSettings } ) => { |
| 79 | 79 | : __( 'Toggle to display a link to the user\'s profile page under their display name.', 'buddypress' ) |
| 80 | 80 | } |
| 81 | 81 | /> |
| 82 | | </PanelBody> |
| 83 | | { isAvatarEnabled && ( |
| 84 | | <PanelBody title={ __( 'Avatar settings', 'buddypress' ) } initialOpen={ false }> |
| | 82 | |
| | 83 | { isAvatarEnabled && ( |
| 85 | 84 | <SelectControl |
| 86 | | label={ __( 'Size', 'buddypress' ) } |
| | 85 | label={ __( 'Avatar size', 'buddypress' ) } |
| 87 | 86 | value={ avatarSize } |
| 88 | 87 | options={ AVATAR_SIZES } |
| | 88 | help={ __( 'Select "None" to disable the avatar.', 'buddypress' ) } |
| 89 | 89 | onChange={ ( option ) => { |
| 90 | 90 | setAttributes( { avatarSize: option } ); |
| 91 | 91 | } } |
| 92 | 92 | /> |
| 93 | | </PanelBody> |
| 94 | | ) } |
| 95 | | { isCoverImageEnabled && ( |
| 96 | | <PanelBody title={ __( 'Cover image settings', 'buddypress' ) } initialOpen={ false }> |
| | 93 | ) } |
| | 94 | |
| | 95 | { isCoverImageEnabled && ( |
| 97 | 96 | <ToggleControl |
| 98 | 97 | label={ __( 'Display Cover Image', 'buddypress' ) } |
| 99 | 98 | checked={ !! displayCoverImage } |
| … |
… |
const editMember = ( { attributes, setAttributes, bpSettings } ) => { |
| 106 | 105 | : __( 'Toggle to display the user\'s cover image over their display name.', 'buddypress' ) |
| 107 | 106 | } |
| 108 | 107 | /> |
| 109 | | </PanelBody> |
| 110 | | ) } |
| 111 | | { isMentionEnabled && ( |
| 112 | | <PanelBody title={ __( 'Mention settings', 'buddypress' ) } initialOpen={ false }> |
| | 108 | ) } |
| | 109 | |
| | 110 | { isMentionEnabled && ( |
| 113 | 111 | <ToggleControl |
| 114 | 112 | label={ __( 'Display Mention slug', 'buddypress' ) } |
| 115 | 113 | checked={ !! displayMentionSlug } |
| … |
… |
const editMember = ( { attributes, setAttributes, bpSettings } ) => { |
| 122 | 120 | : __( 'Toggle to display the user\'s mention name under their display name.', 'buddypress' ) |
| 123 | 121 | } |
| 124 | 122 | /> |
| 125 | | </PanelBody> |
| 126 | | ) } |
| | 123 | ) } |
| | 124 | </PanelBody> |
| 127 | 125 | </InspectorControls> |
| 128 | 126 | <Disabled> |
| 129 | 127 | <ServerSideRender block="bp/member" attributes={ attributes } /> |