From 419c4e01ba3a8b8a038cee32c1fce7d1883532c1 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Sun, 17 Oct 2010 10:51:18 +0000 Subject: 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. --- views/default/input/option.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 views/default/input/option.php (limited to 'views/default/input/option.php') 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 @@ + '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 -- cgit v1.2.3