From 4ae6d689578448a33024703c61bb17b5709fa0e5 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 12:57:39 +0000 Subject: changed input/pulldown to input/dropdown git-svn-id: http://code.elgg.org/elgg/trunk@8006 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/dropdown.php | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 views/default/input/dropdown.php (limited to 'views/default/input/dropdown.php') diff --git a/views/default/input/dropdown.php b/views/default/input/dropdown.php new file mode 100644 index 000000000..b4d38fb00 --- /dev/null +++ b/views/default/input/dropdown.php @@ -0,0 +1,58 @@ + "option" + * where "value" is an internal name and "option" is + * the value displayed on the button. Replaces + * $vars['options'] when defined. + */ + +$class = $vars['class']; +if (!$class) { + $class = "elgg-input-dropdown"; +} + +if (!isset($vars['value'])) { + $vars['value'] = elgg_get_sticky_value($vars['internalname']); +} + +?> + -- cgit v1.2.3