- Timestamp:
- 01/25/2020 06:38:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/customizer.php
r12156 r12537 203 203 ) ); 204 204 205 if ( current_theme_supports( 'align-wide' ) ) { 206 $settings['bp_nouveau_appearance[global_alignment]'] = array( 207 'index' => 'global_alignment', 208 'capability' => 'bp_moderate', 209 'sanitize_callback' => 'sanitize_html_class', 210 'transport' => 'refresh', 211 'type' => 'option', 212 ); 213 } 214 205 215 // Add the settings 206 216 foreach ( $settings as $id_setting => $setting_args ) { … … 296 306 */ 297 307 $controls = apply_filters( 'bp_nouveau_customizer_controls', $controls ); 308 309 if ( current_theme_supports( 'align-wide' ) ) { 310 $controls['global_alignment'] = array( 311 'label' => __( 'Select the BuddyPress container width for your site.', 'buddypress' ), 312 'section' => 'bp_nouveau_general_settings', 313 'settings' => 'bp_nouveau_appearance[global_alignment]', 314 'type' => 'select', 315 'choices' => array( 316 'alignnone' => __( 'Default width', 'buddypress' ), 317 'alignwide' => __( 'Wide width', 'buddypress' ), 318 'alignfull' => __( 'Full width', 'buddypress' ), 319 ), 320 ); 321 } 298 322 299 323 // Add the controls to the customizer's section
Note: See TracChangeset
for help on using the changeset viewer.