Return a bool check for component directory layout.

Description Description

Checks if activity, members, groups, blogs has the vert nav layout selected.

Top ↑

Return Return


Source Source

File: bp-templates/bp-nouveau/includes/template-tags.php

function bp_dir_is_vert_layout() {
	$bp_nouveau = bp_nouveau();
	$component  = sanitize_key( bp_current_component() );

	return (bool) $bp_nouveau->{$component}->directory_vertical_layout;

Top ↑

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.