Elgg  Version 6.2
Variables
module.php File Reference

Go to the source code of this file.

Variables

 $type = (string) elgg_extract('type', $vars)
 Elgg module element. More...
 
 $title = (string) elgg_extract('title', $vars)
 
 $body = (string) elgg_extract('body', $vars)
 
 $footer = (string) elgg_extract('footer', $vars)
 
 $show_inner = (bool) elgg_extract('show_inner', $vars, false)
 
 $attrs
 
if(!elgg_is_empty($type)) $header = elgg_extract('header', $vars)
 
if(!elgg_is_empty($title)) if($header !==null) if(!elgg_is_empty($body)) if(!elgg_is_empty($footer)) $contents = $header . $body . $footer
 
 if ( $show_inner)
 

Variable Documentation

◆ $attrs

$attrs
Initial value:
= [
'id' => elgg_extract('id', $vars),
'class' => elgg_extract_class($vars, 'elgg-module'),
]
$vars
Definition: theme.php:5
elgg_extract_class(array $array, array|string $existing=[], string $extract_key='class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:279
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 22 of file module.php.

◆ $body

$body = (string) elgg_extract('body', $vars)

Definition at line 18 of file module.php.

◆ $contents

if (!elgg_is_empty( $title)) if ( $header !==null) if (!elgg_is_empty( $body)) if (!elgg_is_empty( $footer)) $contents = $header . $body . $footer

Definition at line 53 of file module.php.

◆ $footer

$footer = (string) elgg_extract('footer', $vars)

Definition at line 19 of file module.php.

◆ $header

if (!elgg_is_empty( $type)) $header = elgg_extract('header', $vars)

Definition at line 31 of file module.php.

◆ $show_inner

$show_inner = (bool) elgg_extract('show_inner', $vars, false)

Definition at line 20 of file module.php.

◆ $title

$title = (string) elgg_extract('title', $vars)

Definition at line 17 of file module.php.

◆ $type

$type = (string) elgg_extract('type', $vars)

Elgg module element.

@uses $vars['type'] The type of module (main, info, popup, aside, etc.) @uses $vars['title'] Optional title text (do not pass header with this option) @uses $vars['menu'] Module menu do display in the header @uses $vars['header'] Optional HTML content of the header @uses $vars['body'] HTML content of the body @uses $vars['footer'] Optional HTML content of the footer @uses $vars['class'] Optional additional class for module @uses $vars['id'] Optional id for module @uses $vars['show_inner'] Optional flag to leave out inner div (default: false)

Definition at line 16 of file module.php.

◆ if

if($show_inner) (   $show_inner)

Definition at line 54 of file module.php.