Elgg
Version 2.3
|
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 = | |
foreach ( $tags as $tag) if (empty( $list_items)) $icon = elgg_view_icon('tag', $icon_class) |
if (isset( $vars[ 'item_class'])) $icon_class = elgg_extract('icon_class', $vars) |
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
@uses $vars['value'] Array of tags or a string @uses $vars['entity'] Optional. Entity whose tags are being displayed (metadata ->tags) @uses $vars['list_class'] Optional. Additional classes to be passed to
@uses $vars['item_class'] Optional. Additional classes to be passed to elements @uses $vars['icon_class'] Optional. Additional classes to be passed to tags icon image