bp_nouveau_blogs_customizer_controls( array $controls = array() )

Add controls for the settings of the customizer for the blogs component.


Parameters Parameters

$controls

(array) (Optional) the controls to add.

Default value: array()


Top ↑

Return Return

(array) the controls to add.


Source Source

File: bp-templates/bp-nouveau/includes/blogs/functions.php

function bp_nouveau_blogs_customizer_controls( $controls = array() ) {
	return array_merge( $controls, array(
		'blogs_layout' => array(
			'label'      => __( 'Sites loop:', 'buddypress' ),
			'section'    => 'bp_nouveau_loops_layout',
			'settings'   => 'bp_nouveau_appearance[blogs_layout]',
			'type'       => 'select',
			'choices'    => bp_nouveau_customizer_grid_choices(),
		),
		'sites_dir_layout' => array(
			'label'      => __( 'Use column navigation for the Sites directory.', 'buddypress' ),
			'section'    => 'bp_nouveau_dir_layout',
			'settings'   => 'bp_nouveau_appearance[sites_dir_layout]',
			'type'       => 'checkbox',
		),
		'sites_dir_tabs' => array(
			'label'      => __( 'Use tab styling for Sites directory navigation.', 'buddypress' ),
			'section'    => 'bp_nouveau_dir_layout',
			'settings'   => 'bp_nouveau_appearance[sites_dir_tabs]',
			'type'       => 'checkbox',
		),
	) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.