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

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

Definition at line 73 of file default.php.

◆ $class

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

Definition at line 40 of file default.php.

◆ $layout_attrs [1/2]

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

Elgg default layout.

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

@uses $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

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

@uses $vars['content'] Page content

@uses $vars['footer'] Optional footer

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

@uses $vars['filter'] An optional array of filter tabs Array items should be suitable for usage with elgg_register_menu_item() @uses $vars['filter_id'] An optional ID of the filter If provided, plugins can adjust filter tabs menu via 'register, menu:filter:$filter_id' hook @uses $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 [2/2]

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

Definition at line 71 of file default.php.

◆ $sidebar

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

Definition at line 51 of file default.php.

◆ $sidebar_alt

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

Definition at line 61 of file default.php.

◆ $vars [1/2]

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

Definition at line 44 of file default.php.

◆ $vars [2/2]

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

Definition at line 54 of file default.php.

◆ else

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.