Elgg  Version 2.3
Variables
tags.php File Reference

Go to the source code of this file.

Variables

if(isset($vars['entity'])) $value = elgg_extract('value', $vars)
 Elgg tags Tags can be a single string (for one tag) or an array of strings. More...
 
if(empty($vars['tags'])&&(!empty($value)||$value===0||$value=== '0')) if(empty($vars['tags'])&&$value!==0 &&$value!== '0') $tags = $vars['tags']
 
if(!is_array($tags)) $list_class = "elgg-tags"
 
if(isset($vars['list_class'])) $item_class = "elgg-tag"
 
if(isset($vars['item_class'])) $icon_class = elgg_extract('icon_class', $vars)
 
 $list_items = ''
 
 $params = $vars
 
foreach($tags as $tag) if(empty($list_items)) $icon = elgg_view_icon('tag', $icon_class)
 
 $list
 

Variable Documentation

foreach ($tags as $tag) if (empty($list_items)) $icon = elgg_view_icon('tag', $icon_class)

Definition at line 67 of file tags.php.

if (isset($vars['item_class'])) $icon_class = elgg_extract('icon_class', $vars)

Definition at line 47 of file tags.php.

if (isset($vars['list_class'])) $item_class = "elgg-tag"

Definition at line 41 of file tags.php.

$list
Initial value:
= <<<___HTML
<div class="clearfix">
<ul class="$list_class">
<li>$icon</li>
</ul>
</div>
___HTML
foreach($tags as $tag) if(empty($list_items)) $icon
Definition: tags.php:67
ul
Definition: admin.css.php:44
elgg menu user li
Definition: admin.css.php:211
fieldset div
Definition: admin.css.php:485
$list_items
Definition: tags.php:50

Definition at line 69 of file tags.php.

if (!is_array($tags)) $list_class = "elgg-tags"

Definition at line 35 of file tags.php.

$list_items = ''

Definition at line 50 of file tags.php.

$params = $vars

Definition at line 52 of file tags.php.

if (empty($vars['tags'])&&(!empty($value)||$value===0||$value=== '0')) if (empty($vars['tags'])&&$value!==0 &&$value!== '0') $tags = $vars['tags']

Definition at line 28 of file tags.php.

if (isset($vars['entity'])) $value = elgg_extract('value', $vars)

Elgg tags Tags can be a single string (for one tag) or an array of strings.

Accepts all output/tag options

$vars['value'] Array of tags or a string $vars['entity'] Optional. Entity whose tags are being displayed (metadata ->tags) $vars['list_class'] Optional. Additional classes to be passed to

$vars['item_class'] Optional. Additional classes to be passed to elements $vars['icon_class'] Optional. Additional classes to be passed to tags icon image

Definition at line 18 of file tags.php.