Elgg  Version 6.1
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 = 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))
 

Variable Documentation

$icon_class = elgg_extract_class($vars, [], 'icon_class')

Definition at line 47 of file tags.php.

$icon_name = elgg_extract('icon', $vars, 'tag')

Definition at line 44 of file tags.php.

$item_class = elgg_extract_class($vars, 'elgg-tag', 'item_class')

Definition at line 41 of file tags.php.

if (!is_array($tags)) $list_class = elgg_extract_class($vars, 'elgg-tags', 'list_class')

Definition at line 38 of file tags.php.

$list_items = []

Definition at line 59 of file tags.php.

$params = $vars

Definition at line 61 of file tags.php.

$separator = elgg_extract('separator', $vars, ', ')

Definition at line 56 of file tags.php.

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

Definition at line 31 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'] 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
Definition: generic.php:49
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
Definition: views.php:1261
$icon_name
Definition: tags.php:44
$icon_class
Definition: tags.php:47

Definition at line 52 of file tags.php.

foreach ($tags as $tag) if(empty($list_items))

Definition at line 70 of file tags.php.