Elgg  Version 3.0
Variables
message.php File Reference

Go to the source code of this file.

Variables

 $type = elgg_extract('type', $vars, false)
 Elgg message element. More...
 
 $title = elgg_extract('title', $vars)
 
 $body = elgg_extract('body', $vars, '')
 
if(empty($title)&&empty($body)) $attrs
 
if(empty($title)&&empty($body)) if($type) $default_icons
 
if(empty($title)&&empty($body)) if($type) $default_icon_name = elgg_extract($type, $default_icons)
 
 $icon_name = elgg_extract('icon_name', $vars, $default_icon_name)
 
if(is_null($title)&&!empty($type)&&elgg_language_key_exists("messages:title:{$type}")) $header = ''
 
if(!empty($title)&&!empty($icon_name)) if(!empty($title)) if(!empty($header)) if(!empty($body)) $contents = elgg_format_element('div', ['class' => 'elgg-inner'], $header . $body)
 

Variable Documentation

if (empty($title)&&empty($body)) $attrs
Initial value:
= [
'class' => elgg_extract_class($vars, 'elgg-message')
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
$vars['type']
Definition: save.php:11

Definition at line 20 of file message.php.

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

Definition at line 14 of file message.php.

if (!empty($title)&&!empty($icon_name)) if (!empty($title)) if (!empty($header)) if (!empty($body)) $contents = elgg_format_element('div', ['class' => 'elgg-inner'], $header . $body)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 60 of file message.php.

if (empty($title)&&empty($body)) if ($type) $default_icon_name = elgg_extract($type, $default_icons)

Definition at line 36 of file message.php.

if (empty($title)&&empty($body)) if ($type) $default_icons
Initial value:
= [
'error' => 'exclamation-circle'

Definition at line 28 of file message.php.

if (is_null($title)&&!empty($type)&&elgg_language_key_exists("messages:title:{$type}")) $header = ''

Definition at line 43 of file message.php.

$icon_name = elgg_extract('icon_name', $vars, $default_icon_name)

Definition at line 37 of file message.php.

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

Definition at line 13 of file message.php.

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

Elgg message element.

$vars['type'] The type of message (error, success, warning, help, notice) $vars['title'] Optional title text, will default to the type $vars['icon_name'] Optional iconname to override default icon $vars['body'] Content of the body $vars['class'] Optional additional class for message

Definition at line 12 of file message.php.