Elgg  Version master
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $layout_attrs = elgg_extract('layout_attrs', $vars, [])
 Elgg default layout. More...
 
 $class = elgg_extract_class($vars, ['elgg-layout'])
 
 $vars ['sidebar'] = elgg_extract('sidebar', $vars, '')
 
if($vars['sidebar']!==false) $sidebar = elgg_view('page/layouts/elements/sidebar', $vars)
 
 $vars ['sidebar_alt'] = elgg_extract('sidebar_alt', $vars, false, false)
 
if($vars['sidebar_alt']!==false) $sidebar_alt = elgg_view('page/layouts/elements/sidebar_alt', $vars)
 
if($sidebar &&$sidebar_alt) else if($sidebar) else
 
 $layout_attrs ['class'] = elgg_extract_class($layout_attrs, $class)
 
 $body = elgg_view('page/layouts/elements/body', $vars)
 

Variable Documentation

$body = elgg_view('page/layouts/elements/body', $vars)

Definition at line 73 of file default.php.

$class = elgg_extract_class($vars, ['elgg-layout'])

Definition at line 40 of file default.php.

$layout_attrs = elgg_extract('layout_attrs', $vars, [])

Elgg default layout.

$vars['layout_attrs'] Additional attributes to apply to the layout $vars['class'] Additional CSS classes to apply to the layout

$vars['breadcrumbs'] Breadcrumbs Will not be rendered if the value is 'false' Will render 'navigation/breadcrumbs' view if not set or is an array of breadcrumbs Will override breadcrumbs view if set to a string

$vars['title'] Optional title for main content area $vars['header'] Optional override for the header

$vars['content'] Page content

$vars['footer'] Optional footer

$vars['sidebar'] Sidebar HTML (default: empty string) Will not be rendered if the value is 'false' $vars['sidebar_alt'] Second sidebar HTML (default: false) Will not be rendered if the value is 'false'

$vars['filter'] An optional array of filter tabs Array items should be suitable for usage with elgg_register_menu_item() $vars['filter_id'] An optional ID of the filter If provided, plugins can adjust filter tabs menu via 'register, menu:filter:$filter_id' hook $vars['filter_value'] Optional name of the selected filter tab If not provided, will be determined by the current page's URL

Definition at line 37 of file default.php.

$layout_attrs['class'] = elgg_extract_class($layout_attrs, $class)

Definition at line 71 of file default.php.

if ($vars['sidebar']!==false) $sidebar = elgg_view('page/layouts/elements/sidebar', $vars)

Definition at line 51 of file default.php.

if ($vars['sidebar_alt']!==false) $sidebar_alt = elgg_view('page/layouts/elements/sidebar_alt', $vars)

Definition at line 61 of file default.php.

$vars['sidebar'] = elgg_extract('sidebar', $vars, '')

Definition at line 44 of file default.php.

$vars['sidebar_alt'] = elgg_extract('sidebar_alt', $vars, false, false)

Definition at line 54 of file default.php.

if ($sidebar &&$sidebar_alt) else if ($sidebar) else
Initial value:
{
$class[] = 'elgg-layout-one-column'
$class
Definition: default.php:29

Definition at line 67 of file default.php.