Elgg  Version 1.11
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_config('icon_sizes')
 
 $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 25 of file default.php.

$entity = $vars['entity']

Definition at line 15 of file default.php.

$icon_sizes = elgg_get_config('icon_sizes')

Definition at line 17 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 63 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:19
$entity
Definition: default.php:15
$title
Definition: default.php:32

Definition at line 46 of file default.php.

$size = elgg_extract('size', $vars, 'medium')

Definition at line 19 of file default.php.

$title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8', false)

Definition at line 32 of file default.php.

$url = $entity->getURL()

Definition at line 34 of file default.php.

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

Definition at line 23 of file default.php.

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

Definition at line 29 of file default.php.