Elgg  Version 3.0
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
 
 $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)
 
 $breadcrumbs = elgg_view('page/layouts/elements/breadcrumbs', $vars)
 
 $header = elgg_view('page/layouts/elements/header', $vars)
 
 $body = elgg_view('page/layouts/elements/body', $vars)
 
 $layout = $breadcrumbs
 

Variable Documentation

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

Definition at line 76 of file default.php.

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

Definition at line 74 of file default.php.

Initial value:
'elgg-layout',
'clearfix'
])
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:27

Definition at line 40 of file default.php.

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

Definition at line 75 of file default.php.

$layout = $breadcrumbs

Definition at line 78 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 no 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 72 of file default.php.

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

Definition at line 53 of file default.php.

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

Definition at line 62 of file default.php.

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

Definition at line 47 of file default.php.

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

Definition at line 56 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 68 of file default.php.