Elgg  Version master
Variables
section.php File Reference

Go to the source code of this file.

Variables

 $html = elgg_extract('html', $vars)
 A wrapper to render a section of the page shell. More...
 
if(empty($html)) $section_elements
 
 $class = ['elgg-page-section']
 
 $section = elgg_extract('section', $vars)
 
if(!empty($section)) $inner = elgg_format_element('div', ['class' => 'elgg-inner'], $html)
 
 $element = elgg_extract($section, $section_elements, 'div')
 
 $section_attributes = ['class' => $class]
 
 if ( $element==='main')
 

Variable Documentation

◆ $class

$class = ['elgg-page-section']

Definition at line 20 of file section.php.

◆ $element

$element = elgg_extract($section, $section_elements, 'div')

Definition at line 29 of file section.php.

◆ $html

$html = elgg_extract('html', $vars)

A wrapper to render a section of the page shell.

@uses $vars['section'] Section name (e.g. navbar, header etc) @uses $vars['html'] Content of the element

Examples
/root/Elgg/engine/lib/output.php.

Definition at line 9 of file section.php.

◆ $inner

if (!empty( $section)) $inner = elgg_format_element('div', ['class' => 'elgg-inner'], $html)

Definition at line 27 of file section.php.

◆ $section

$section = elgg_extract('section', $vars)

Definition at line 22 of file section.php.

◆ $section_attributes

$section_attributes = ['class' => $class]

Definition at line 31 of file section.php.

◆ $section_elements

if (empty( $html)) $section_elements
Initial value:
= [
'body' => 'main',
'topbar' => 'header',
'footer' => 'footer',
]

Definition at line 14 of file section.php.

◆ if

if($element==='main') (   $element = == 'main')

Definition at line 32 of file section.php.