diff --git src/bp-templates/bp-nouveau/common-styles/_bp_generic_and_typography.scss src/bp-templates/bp-nouveau/common-styles/_bp_generic_and_typography.scss
index d4f5a1157..ddc7549d6 100644
|
|
|
body.buddypress { |
| 64 | 64 | |
| 65 | 65 | .entry-header { |
| 66 | 66 | float: none; |
| 67 | | max-width: none; |
| 68 | 67 | } |
| 69 | 68 | |
| 70 | | .entry-content, |
| 71 | | .entry .entry-content > * { |
| | 69 | .entry-content { |
| 72 | 70 | float: none; |
| 73 | | max-width: none; |
| 74 | 71 | } |
| 75 | 72 | |
| 76 | 73 | // 2017 has a very large top padding we'll reduce that for bp screens |
diff --git src/bp-templates/bp-nouveau/css/buddypress-rtl.css src/bp-templates/bp-nouveau/css/buddypress-rtl.css
index a9ad15225..bfe69c0e9 100644
|
|
|
body #buddypress .bp-list .action { |
| 89 | 89 | } |
| 90 | 90 | body.buddypress .entry-header { |
| 91 | 91 | float: none; |
| 92 | | max-width: none; |
| 93 | 92 | } |
| 94 | | body.buddypress .entry-content, |
| 95 | | body.buddypress .entry .entry-content > * { |
| | 93 | body.buddypress .entry-content { |
| 96 | 94 | float: none; |
| 97 | | max-width: none; |
| 98 | 95 | } |
| 99 | 96 | body.buddypress .site-content { |
| 100 | 97 | padding-top: 2.5em; |
diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css
index e114e6877..161bedc75 100644
|
|
|
body #buddypress .bp-list .action { |
| 89 | 89 | } |
| 90 | 90 | body.buddypress .entry-header { |
| 91 | 91 | float: none; |
| 92 | | max-width: none; |
| 93 | 92 | } |
| 94 | | body.buddypress .entry-content, |
| 95 | | body.buddypress .entry .entry-content > * { |
| | 93 | body.buddypress .entry-content { |
| 96 | 94 | float: none; |
| 97 | | max-width: none; |
| 98 | 95 | } |
| 99 | 96 | body.buddypress .site-content { |
| 100 | 97 | padding-top: 2.5em; |
diff --git src/bp-templates/bp-nouveau/includes/customizer.php src/bp-templates/bp-nouveau/includes/customizer.php
index a4dcbde6a..7a5bcd9d0 100644
|
|
|
function bp_nouveau_customize_register( WP_Customize_Manager $wp_customize ) { |
| 202 | 202 | ), |
| 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 ) { |
| 207 | 217 | $args = array(); |
| … |
… |
function bp_nouveau_customize_register( WP_Customize_Manager $wp_customize ) { |
| 296 | 306 | */ |
| 297 | 307 | $controls = apply_filters( 'bp_nouveau_customizer_controls', $controls ); |
| 298 | 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 | } |
| | 322 | |
| 299 | 323 | // Add the controls to the customizer's section |
| 300 | 324 | foreach ( $controls as $id_control => $control_args ) { |
| 301 | 325 | if ( empty( $control_args['class'] ) ) { |
diff --git src/bp-templates/bp-nouveau/includes/functions.php src/bp-templates/bp-nouveau/includes/functions.php
index a4cd20aa8..1af8d9191 100644
|
|
|
function bp_nouveau_get_temporary_setting( $option = '', $retval = false ) { |
| 625 | 625 | function bp_nouveau_get_appearance_settings( $option = '' ) { |
| 626 | 626 | $default_args = array( |
| 627 | 627 | 'avatar_style' => 0, |
| | 628 | 'global_alignment' => 'alignnone', |
| 628 | 629 | 'user_front_page' => 1, |
| 629 | 630 | 'user_front_bio' => 0, |
| 630 | 631 | 'user_nav_display' => 0, // O is default (horizontally). 1 is vertically. |
diff --git src/bp-templates/bp-nouveau/includes/template-tags.php src/bp-templates/bp-nouveau/includes/template-tags.php
index 8662aa552..443d29bfd 100644
|
|
|
function bp_nouveau_container_classes() { |
| 1489 | 1489 | } |
| 1490 | 1490 | } |
| 1491 | 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; |
| | 1495 | } |
| | 1496 | |
| 1492 | 1497 | $class = array_map( 'sanitize_html_class', $classes ); |
| 1493 | 1498 | |
| 1494 | 1499 | /** |