Elgg  Version 1.11
Variables
module.php File Reference

Go to the source code of this file.

Variables

 $type = elgg_extract('type', $vars, false)
 Elgg module element. More...
 
 $title = elgg_extract('title', $vars, '')
 
 $header = elgg_extract('header', $vars, '')
 
 $body = elgg_extract('body', $vars, '')
 
 $footer = elgg_extract('footer', $vars, '')
 
 $show_inner = elgg_extract('show_inner', $vars, false)
 
 $class = 'elgg-module'
 
if($type$additional_class = elgg_extract('class', $vars, '')
 
if($additional_class) $id = ''
 
if($footer$contents = $header . $body . $footer
 
 if ( $show_inner)
 

Variable Documentation

◆ $additional_class

if ( $type) $additional_class = elgg_extract('class', $vars, '')

Definition at line 26 of file module.php.

◆ $body

if (isset( $vars[ 'id'])) if (isset( $vars[ 'header'])) elseif ( $title) $body = elgg_extract('body', $vars, '')

Definition at line 18 of file module.php.

◆ $class

$class = 'elgg-module'

Definition at line 22 of file module.php.

◆ $contents

if ( $footer) $contents = $header . $body . $footer
Examples
/root/Elgg/engine/lib/views.php.

Definition at line 48 of file module.php.

◆ $footer

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

Definition at line 19 of file module.php.

◆ $header

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

Definition at line 17 of file module.php.

◆ $id

if ( $additional_class) $id = ''

Definition at line 31 of file module.php.

◆ $show_inner

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

Definition at line 20 of file module.php.

◆ $title

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

Definition at line 16 of file module.php.

◆ $type

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

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['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 15 of file module.php.

◆ if

if($show_inner) (   $show_inner)

Definition at line 49 of file module.php.