Elgg  Version 1.9
Variables
tags.php File Reference

Go to the source code of this file.

Variables

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

Variable Documentation

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

Definition at line 61 of file tags.php.

if (isset($vars['item_class'])) $icon_class = elgg_extract('icon_class', $vars)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 43 of file tags.php.

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

Definition at line 38 of file tags.php.

$list
Initial value:
= <<<___HTML
<div class="clearfix">
<ul class="$list_class">
<li>$icon</li>
</ul>
</div>
___HTML
ul
Definition: admin.php:44
fieldset div
Definition: admin.php:462
foreach($vars['tags'] as $tag) if(empty($list_items)) $icon
Definition: tags.php:61
elgg menu user li
Definition: admin.php:203
$list_items
Definition: tags.php:44

Definition at line 63 of file tags.php.

if (isset($vars['entity'])) if (empty($vars['tags'])&&(!empty($vars['value'])||$vars['value']===0||$vars['value']=== '0')) if (empty($vars['tags'])&&$vars['value']!==0 &&$vars['value']!== '0') if (!is_array($vars['tags'])) $list_class = "elgg-tags"

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

$vars['value'] Array of tags or a string $vars['type'] The entity type, optional $vars['subtype'] The entity subtype, optional $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 $vars['base_url'] Base URL for tag link, defaults to search URL

Definition at line 33 of file tags.php.

$list_items = ''

Definition at line 44 of file tags.php.

$params = $vars

Definition at line 46 of file tags.php.