bp_nouveau_activity_customizer_controls( array $controls = array() )

Add controls for the settings of the customizer for the activity 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/activity/functions.php

function bp_nouveau_activity_customizer_controls( $controls = array() ) {
	return array_merge( $controls, array(
		'act_dir_layout' => array(
			'label'      => __( 'Use column navigation for the Activity directory.', 'buddypress' ),
			'section'    => 'bp_nouveau_dir_layout',
			'settings'   => 'bp_nouveau_appearance[activity_dir_layout]',
			'type'       => 'checkbox',
		),
		'act_dir_tabs' => array(
			'label'      => __( 'Use tab styling for Activity directory navigation.', 'buddypress' ),
			'section'    => 'bp_nouveau_dir_layout',
			'settings'   => 'bp_nouveau_appearance[activity_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.