Elgg  Version 3.0
Namespaces | Variables
default.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

 $entity = elgg_extract('entity', $vars)
 
if(!$entity instanceof ElggEntity$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, '')
 
 $title = htmlspecialchars($entity->getDisplayName(), ENT_QUOTES, 'UTF-8', false)
 
 $url = false
 
if(elgg_extract('use_link', $vars, true)) if(!isset($vars['width'])) if(!isset($vars['height'])) $img_params
 
if(elgg_extract('use_link', $vars, true)) if(!isset($vars['width'])) if(!isset($vars['height'])) if(!empty($class)) if(!empty($vars['width'])) if(!empty($vars['height'])) $img = elgg_view('output/img', $img_params)
 
if(empty($img)) if($urlelse
 

Variable Documentation

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

Definition at line 29 of file default.php.

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

Definition at line 16 of file default.php.

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

Definition at line 21 of file default.php.

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

Definition at line 62 of file default.php.

if (elgg_extract('use_link', $vars, true)) if (!isset($vars['width'])) if (!isset($vars['height'])) $img_params
Initial value:
= [
'src' => $entity->getIconURL($size)
$size
Definition: default.php:23
$entity
Definition: default.php:16

Definition at line 45 of file default.php.

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

Definition at line 23 of file default.php.

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

Definition at line 31 of file default.php.

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

Definition at line 27 of file default.php.

if (empty($img)) if ($url) else
Initial value:
{
if(elgg_extract('use_link', $vars, true)) if(!isset($vars['width'])) if(!isset($vars['height'])) if(!empty($class)) if(!empty($vars['width'])) if(!empty($vars['height'])) $img
Definition: default.php:62
elgg echo
Translates a string.
Definition: languages.js:43

Definition at line 79 of file default.php.