Elgg  Version 2.3
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 = $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 =
 

Variable Documentation

◆ $icon

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

Definition at line 67 of file tags.php.

◆ $icon_class

if (isset( $vars[ 'item_class'])) $icon_class = elgg_extract('icon_class', $vars)

Definition at line 47 of file tags.php.

◆ $item_class

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

Definition at line 41 of file tags.php.

◆ $list

$list =

Definition at line 69 of file tags.php.

◆ $list_class

if (!is_array( $tags)) $list_class = "elgg-tags"

Definition at line 35 of file tags.php.

◆ $list_items

$list_items = ''

Definition at line 50 of file tags.php.

◆ $params

$params = $vars

Definition at line 52 of file tags.php.

◆ $tags

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

Definition at line 28 of file tags.php.

◆ $value

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

Definition at line 18 of file tags.php.