Elgg  Version master
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $sections = elgg_extract('sections', $vars)
 Renders a standard HTML page shell. More...
 
if(empty($sections)) $page = ''
 
foreach($sections as $section=> $content) $page_vars = elgg_extract('page_attrs', $vars, [])
 
 $page_vars ['class'] = elgg_extract_class($page_vars, ['elgg-page', 'elgg-page-default'])
 
 $body = elgg_format_element('div', $page_vars, $page)
 
 $head = elgg_view('page/elements/head', elgg_extract('head', $vars, []))
 
 $params
 

Variable Documentation

◆ $body

$body = elgg_format_element('div', $page_vars, $page)

Definition at line 45 of file default.php.

◆ $head

$head = elgg_view('page/elements/head', elgg_extract('head', $vars, []))

Definition at line 49 of file default.php.

◆ $page

if (empty( $sections)) $page = ''

Definition at line 33 of file default.php.

◆ $page_vars [1/2]

foreach ( $sections as $section=> $content) $page_vars = elgg_extract('page_attrs', $vars, [])

Definition at line 42 of file default.php.

◆ $page_vars [2/2]

$page_vars[ 'class'] = elgg_extract_class($page_vars, ['elgg-page', 'elgg-page-default'])

Definition at line 43 of file default.php.

◆ $params

$params
Initial value:
= [
'head' => $head,
'body' => $body,
'body_attrs' => elgg_extract('body_attrs', $vars, []),
'html_attrs' => elgg_extract('html_attrs', $vars, []),
]
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:25
$body
Definition: default.php:22
$head
Definition: default.php:49
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256

Definition at line 51 of file default.php.

◆ $sections

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

Renders a standard HTML page shell.

@uses $vars['section'] An array of page sections to render @uses $vars['html_attrs'] Attributes of the <html> tag @uses $vars['head'] Parameters for the <head> element @uses $vars['body_attrs'] Attributes of the <body> tag @uses $vars['page_attrs'] Attributes of the .elgg-page container @uses $vars['title'] Title of the page @uses $vars['body'] The main content of the page @uses $vars['sysmessages'] A 2d array of various message registers, passed from system_messages()

Definition at line 16 of file default.php.