Checks if the layout preferences is set to grid (2 or more columns).

Return Return

(bool) True if loop is displayed in grid mod. False otherwise.

Source Source

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

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

	return ! empty( $bp_nouveau->{$component}->loop_layout ) && $bp_nouveau->{$component}->loop_layout > 1;

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.