Elgg  Version 3.0
tags.php
Go to the documentation of this file.
1 <?php
9 $tags = elgg_extract('tags', $vars, '');
10 if ($tags === false) {
11  return;
12 }
13 
14 $entity = elgg_extract('entity', $vars);
15 if ($tags === '' && $entity instanceof ElggEntity) {
16  $tags = elgg_view('output/tags', [
17  'entity' => $entity,
18  ]);
19 }
20 
21 echo $tags;
$vars['class']
Elgg tag input Displays a tag input field.
Definition: tags.php:12
if($tags===false) $entity
Definition: tags.php:14
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
$tags
Output object tags.
Definition: tags.php:9
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246