Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2020 06:38:57 AM (4 years ago)
Author:
imath
Message:

Add a new customizer setting to adapt BP Layout to wide alignments

The blocks editor introduced the align-wide theme feature. For themes supporting this feature, the BP Nouveau template pack will now use the wide alignment to display its content by default. To manage this space use, BP Nouveau also includes a new customizer setting to edit this alignement into the BP Nouveau > General BP Settings section.

Props pooja1210

Fixes #8182

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12397 r12537  
    14881488                $classes[] = 'bp-dir-hori-nav';
    14891489            }
     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;
    14901495        }
    14911496
Note: See TracChangeset for help on using the changeset viewer.