Changeset 12537
- Timestamp:
- 01/25/2020 06:38:57 AM (6 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau
- Files:
-
- 6 edited
-
common-styles/_bp_generic_and_typography.scss (modified) (1 diff)
-
css/buddypress-rtl.css (modified) (1 diff)
-
css/buddypress.css (modified) (1 diff)
-
includes/customizer.php (modified) (2 diffs)
-
includes/functions.php (modified) (1 diff)
-
includes/template-tags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_generic_and_typography.scss
r12398 r12537 65 65 .entry-header { 66 66 float: none; 67 max-width: none; 68 } 69 70 .entry-content, 71 .entry .entry-content > * { 67 } 68 69 .entry-content { 72 70 float: none; 73 max-width: none;74 71 } 75 72 -
trunk/src/bp-templates/bp-nouveau/css/buddypress-rtl.css
r12421 r12537 90 90 body.buddypress .entry-header { 91 91 float: none; 92 max-width: none; 93 } 94 body.buddypress .entry-content, 95 body.buddypress .entry .entry-content > * { 92 } 93 body.buddypress .entry-content { 96 94 float: none; 97 max-width: none;98 95 } 99 96 body.buddypress .site-content { -
trunk/src/bp-templates/bp-nouveau/css/buddypress.css
r12421 r12537 90 90 body.buddypress .entry-header { 91 91 float: none; 92 max-width: none; 93 } 94 body.buddypress .entry-content, 95 body.buddypress .entry .entry-content > * { 92 } 93 body.buddypress .entry-content { 96 94 float: none; 97 max-width: none;98 95 } 99 96 body.buddypress .site-content { -
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 -
trunk/src/bp-templates/bp-nouveau/includes/functions.php
r12397 r12537 626 626 $default_args = array( 627 627 'avatar_style' => 0, 628 'global_alignment' => 'alignwide', 628 629 'user_front_page' => 1, 629 630 'user_front_bio' => 0, -
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12397 r12537 1488 1488 $classes[] = 'bp-dir-hori-nav'; 1489 1489 } 1490 } 1491 1492 $global_alignment = bp_nouveau_get_temporary_setting( 'global_alignment', bp_nouveau_get_appearance_settings( 'global_alignment' ) ); 1493 if ( $global_alignment && 'alignnone' !== $global_alignment && current_theme_supports( 'align-wide' ) ) { 1494 $classes[] = $global_alignment; 1490 1495 } 1491 1496
Note: See TracChangeset
for help on using the changeset viewer.