bp_dir_is_vert_layout()

Return a bool check for component directory layout.

Description

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

Return

(bool)

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;
}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.