bp_nouveau_groups_customizer_controls( array $controls = array() )
Add controls for the settings of the customizer for the groups component.
Description Description
Parameters Parameters
- $controls
-
(Optional) The controls to add.
Default value: array()
Return Return
(array) the controls to add.
Source Source
File: bp-templates/bp-nouveau/includes/groups/functions.php
function bp_nouveau_groups_customizer_controls( $controls = array() ) { return array_merge( $controls, array( 'group_front_page' => array( 'label' => __( 'Enable custom front pages for groups.', 'buddypress' ), 'section' => 'bp_nouveau_group_front_page', 'settings' => 'bp_nouveau_appearance[group_front_page]', 'type' => 'checkbox', ), 'group_front_boxes' => array( 'label' => __( 'Enable widget region for group homepages. When enabled, the site admin can add widgets to group pages via the Widgets panel.', 'buddypress' ), 'section' => 'bp_nouveau_group_front_page', 'settings' => 'bp_nouveau_appearance[group_front_boxes]', 'type' => 'checkbox', ), 'group_front_description' => array( 'label' => __( "Display the group description in the body of the group's front page.", 'buddypress' ), 'section' => 'bp_nouveau_group_front_page', 'settings' => 'bp_nouveau_appearance[group_front_description]', 'type' => 'checkbox', ), 'group_nav_display' => array( 'label' => __( 'Display the group navigation vertically.', 'buddypress' ), 'section' => 'bp_nouveau_group_primary_nav', 'settings' => 'bp_nouveau_appearance[group_nav_display]', 'type' => 'checkbox', ), 'group_nav_tabs' => array( 'label' => __( 'Use tab styling for primary navigation.', 'buddypress' ), 'section' => 'bp_nouveau_group_primary_nav', 'settings' => 'bp_nouveau_appearance[group_nav_tabs]', 'type' => 'checkbox', ), 'group_subnav_tabs' => array( 'label' => __( 'Use tab styling for secondary navigation.', 'buddypress' ), 'section' => 'bp_nouveau_group_primary_nav', 'settings' => 'bp_nouveau_appearance[group_subnav_tabs]', 'type' => 'checkbox', ), 'groups_create_tabs' => array( 'label' => __( 'Use tab styling for the group creation process.', 'buddypress' ), 'section' => 'bp_nouveau_group_primary_nav', 'settings' => 'bp_nouveau_appearance[groups_create_tabs]', 'type' => 'checkbox', ), 'group_nav_order' => array( 'class' => 'BP_Nouveau_Nav_Customize_Control', 'label' => __( 'Reorder the primary navigation for a group.', 'buddypress' ), 'section' => 'bp_nouveau_group_primary_nav', 'settings' => 'bp_nouveau_appearance[group_nav_order]', 'type' => 'group', ), 'groups_layout' => array( 'label' => _x( 'Groups', 'Customizer control label', 'buddypress' ), 'section' => 'bp_nouveau_loops_layout', 'settings' => 'bp_nouveau_appearance[groups_layout]', 'type' => 'select', 'choices' => bp_nouveau_customizer_grid_choices(), ), 'members_group_layout' => array( 'label' => __( 'Group > Members', 'buddypress' ), 'section' => 'bp_nouveau_loops_layout', 'settings' => 'bp_nouveau_appearance[members_group_layout]', 'type' => 'select', 'choices' => bp_nouveau_customizer_grid_choices(), ), 'group_dir_layout' => array( 'label' => __( 'Use column navigation for the Groups directory.', 'buddypress' ), 'section' => 'bp_nouveau_dir_layout', 'settings' => 'bp_nouveau_appearance[groups_dir_layout]', 'type' => 'checkbox', ), 'group_dir_tabs' => array( 'label' => __( 'Use tab styling for Groups directory navigation.', 'buddypress' ), 'section' => 'bp_nouveau_dir_layout', 'settings' => 'bp_nouveau_appearance[groups_dir_tabs]', 'type' => 'checkbox', ), ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |