Changeset 12618
- Timestamp:
- 04/15/2020 12:08:56 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/js/blocks/group.js
r12577 r12618 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, { … … 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, … … 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({ … … 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, -
trunk/src/bp-members/js/blocks/member.js
r12577 r12618 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, { … … 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({ … … 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, … … 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, -
trunk/src/js/bp-groups/js/blocks/group.js
r12576 r12618 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' ) } … … 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' ) } … … 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' ) } … … 122 120 } 123 121 /> 124 </PanelBody>125 ) }122 ) } 123 </PanelBody> 126 124 </InspectorControls> 127 125 <Disabled> -
trunk/src/js/bp-members/js/blocks/member.js
r12576 r12618 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' ) } … … 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' ) } … … 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' ) } … … 123 121 } 124 122 /> 125 </PanelBody>126 ) }123 ) } 124 </PanelBody> 127 125 </InspectorControls> 128 126 <Disabled>
Note: See TracChangeset
for help on using the changeset viewer.