Elgg  Version 3.0
tag.php
Go to the documentation of this file.
1 <?php
12 if (empty($value) && $value !== 0 && $value !== '0') {
13  return;
14 }
15 
17 $vars['rel'] = 'tag';
18 
19 if ($href) {
20  $vars['text'] = $value;
21  $vars['encode_text'] = true;
22 
23  echo elgg_view('output/url', $vars);
24 } else {
25  echo elgg_view('output/text', $vars);
26 }
$value
Elgg single tag output.
Definition: tag.php:11
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['class']
Elgg tag input.
Definition: tag.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
if(empty($value)&&$value!==0 &&$value!== '0') $href
Definition: tag.php:16