aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/tags.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/tags.php')
-rw-r--r--views/default/input/tags.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/input/tags.php b/views/default/input/tags.php
new file mode 100644
index 000000000..316a824be
--- /dev/null
+++ b/views/default/input/tags.php
@@ -0,0 +1,17 @@
+<?php
+
+ $tags = "";
+
+ if (!empty($vars['value']) && is_array($vars['value'])) {
+ foreach($vars['value'] as $tag) {
+
+ if (!empty($tags)) {
+ $tags .= ", ";
+ }
+ $tags .= $tag->tag;
+
+ }
+ }
+
+?>
+<input type="text" <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" value="<?php echo $tags; ?>" class="general-textarea"/> \ No newline at end of file