Elgg  Version 6.1
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
 
if(empty($html)) $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')
 

Variable Documentation

if (empty($html)) $class = ['elgg-page-section']

Definition at line 20 of file section.php.

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

Definition at line 29 of file section.php.

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

A wrapper to render a section of the page shell.

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

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

Definition at line 9 of file section.php.

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

Definition at line 27 of file section.php.

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

Definition at line 22 of file section.php.

if (empty($html)) $section_elements
Initial value:
= [
'body' => 'main'

Definition at line 14 of file section.php.