- Timestamp:
- 11/13/2021 02:33:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/customizer.php
r12537 r13145 4 4 * 5 5 * @since 3.0.0 6 * @version 3.1.06 * @version 10.0.0 7 7 */ 8 8 … … 22 22 $wp_customize->register_control_type( 'BP_Nouveau_Nav_Customize_Control' ); 23 23 $bp_nouveau_options = bp_nouveau_get_appearance_settings(); 24 $layout_widths = bp_nouveau_get_theme_layout_widths(); 24 25 25 26 $wp_customize->add_panel( 'bp_nouveau_panel', array( … … 203 204 ) ); 204 205 205 if ( current_theme_supports( 'align-wide' )) {206 if ( $layout_widths ) { 206 207 $settings['bp_nouveau_appearance[global_alignment]'] = array( 207 208 'index' => 'global_alignment', … … 307 308 $controls = apply_filters( 'bp_nouveau_customizer_controls', $controls ); 308 309 309 if ( current_theme_supports( 'align-wide' )) {310 if ( $layout_widths ) { 310 311 $controls['global_alignment'] = array( 311 312 'label' => __( 'Select the BuddyPress container width for your site.', 'buddypress' ), … … 313 314 'settings' => 'bp_nouveau_appearance[global_alignment]', 314 315 'type' => 'select', 315 'choices' => array( 316 'alignnone' => __( 'Default width', 'buddypress' ), 317 'alignwide' => __( 'Wide width', 'buddypress' ), 318 'alignfull' => __( 'Full width', 'buddypress' ), 319 ), 316 'choices' => $layout_widths, 320 317 ); 321 318 }
Note: See TracChangeset
for help on using the changeset viewer.