Elgg
Version 1.9
|
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 | |
if (isset($vars['item_class'])) $icon_class = elgg_extract('icon_class', $vars) |
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