aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/option.php
diff options
context:
space:
mode:
authorEvan Winslow <evan.b.winslow@gmail.com>2010-10-17 10:51:18 +0000
committerEvan Winslow <evan.b.winslow@gmail.com>2010-10-17 10:51:18 +0000
commit419c4e01ba3a8b8a038cee32c1fce7d1883532c1 (patch)
tree8dfc8aade1b36c0214a630cb9d9bc2d441109702 /views/default/input/option.php
parent0c8186592c6566bede22e4f567b04dddad7c493b (diff)
downloadelgg-419c4e01ba3a8b8a038cee32c1fce7d1883532c1.tar.gz
elgg-419c4e01ba3a8b8a038cee32c1fce7d1883532c1.tar.bz2
Added checkboxes, form, longtext, option, plaintext, pulldown, and tags input views. Kept things dry by creating a html/tag view that takes care of outputting attributes/body.
Diffstat (limited to 'views/default/input/option.php')
-rw-r--r--views/default/input/option.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/input/option.php b/views/default/input/option.php
new file mode 100644
index 000000000..eab1dc4d2
--- /dev/null
+++ b/views/default/input/option.php
@@ -0,0 +1,17 @@
+<?php
+
+$overrides = array(
+ 'tag' => 'option',
+);
+
+$args = array_merge($vars, $overrides);
+
+if (!isset($args['body'])) {
+ $args['body'] = $args['value'];
+}
+
+if (isset($args['body'])) {
+ $args['body'] = htmlentities($args['body'], ENT_QUOTES, 'UTF-8');
+}
+
+echo elgg_view('html/tag', $args); \ No newline at end of file