Go to the source code of this file.
|
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 = elgg_extract('tags', $vars) |
|
if(!is_array($tags)) | $list_class = elgg_extract_class($vars, 'elgg-tags', 'list_class') |
|
| $item_class = elgg_extract_class($vars, 'elgg-tag', 'item_class') |
|
| $icon_name = elgg_extract('icon', $vars, 'tag') |
|
| $icon_class = elgg_extract_class($vars, [], 'icon_class') |
|
if($icon_name===false) | else |
|
| $separator = elgg_extract('separator', $vars, ', ') |
|
| $list_items = [] |
|
| $params = $vars |
|
foreach($tags as $tag) | if (empty($list_items)) |
|
if (empty($vars['tags'])&&(!empty($value)||$value===0||$value=== '0')) if (empty($vars['tags'])&&$value!==0 &&$value!== '0') $tags = elgg_extract('tags', $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'] Optional. Icon name to be used (default: tag) Set to false to not render an icon $vars['icon_class'] Optional. Additional classes to be passed to tags icon image $vars['separator'] Optional. HTML to place between tags. (default: ", ")
Definition at line 21 of file tags.php.
if ($icon_name===false) else |
Initial value:{
if(function_exists('apache_get_version')) $icon
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
Definition at line 52 of file tags.php.
foreach ($tags as $tag) if(empty($list_items)) |