Elgg  Version 2.3
Namespaces | Variables
default.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $entity = $vars['entity']
 
 $icon_sizes = elgg_get_icon_sizes($entity->type, $entity->getSubtype())
 
 $size = elgg_extract('size', $vars, 'medium')
 
if(!array_key_exists($size, $icon_sizes)) $vars ['size'] = $size
 
 $class = elgg_extract('img_class', $vars, '')
 
if(isset($entity->name)) else
 
 $title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8', false)
 
 $url = $entity->getURL()
 
if(isset($vars['href'])) if(!isset($vars['width'])) if(!isset($vars['height'])) $img_params
 
if(!empty($class)) if(!empty($vars['width'])) if(!empty($vars['height'])) $img = elgg_view('output/img', $img_params)
 

Variable Documentation

$class = elgg_extract('img_class', $vars, '')

Definition at line 26 of file default.php.

$entity = $vars['entity']

Definition at line 15 of file default.php.

$icon_sizes = elgg_get_icon_sizes($entity->type, $entity->getSubtype())
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 18 of file default.php.

if (!empty($class)) if (!empty($vars['width'])) if (!empty($vars['height'])) $img = elgg_view('output/img', $img_params)

Definition at line 64 of file default.php.

if (isset($vars['href'])) if (!isset($vars['width'])) if (!isset($vars['height'])) $img_params
Initial value:
= array(
'src' => $entity->getIconURL($size),
'alt' => $title,
)
$size
Definition: default.php:20
$entity
Definition: default.php:15
$title
Definition: default.php:33

Definition at line 47 of file default.php.

$size = elgg_extract('size', $vars, 'medium')
$title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8', false)

Definition at line 33 of file default.php.

$url = $entity->getURL()

Definition at line 35 of file default.php.

if (!array_key_exists($size, $icon_sizes)) $vars['size'] = $size

Definition at line 24 of file default.php.

if ($url) else
Initial value:
{
$title = $entity->title
$entity
Definition: default.php:15
$title
Definition: default.php:33

Definition at line 30 of file default.php.