From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- lib/smarty3/plugins/function.html_options.php | 142 +++++++++++++++----------- 1 file changed, 84 insertions(+), 58 deletions(-) (limited to 'lib/smarty3/plugins/function.html_options.php') diff --git a/lib/smarty3/plugins/function.html_options.php b/lib/smarty3/plugins/function.html_options.php index 20e6677..6907e8e 100644 --- a/lib/smarty3/plugins/function.html_options.php +++ b/lib/smarty3/plugins/function.html_options.php @@ -5,15 +5,14 @@ * @package Smarty * @subpackage PluginsFunction */ - /** * Smarty {html_options} function plugin - * Type: function
- * Name: html_options
+ * Type: function + * Name: html_options * Purpose: Prints the list of ' . "\n"; - $idx ++; + $idx++; } else { $_idx = 0; $_html_result = - smarty_function_html_options_optgroup($key, $value, $selected, !empty($id) ? ($id . '-' . $idx) : null, - $class, $_idx); - $idx ++; + smarty_function_html_options_optgroup( + $key, + $value, + $selected, + !empty($id) ? ($id . '-' . $idx) : null, + $class, + $_idx + ); + $idx++; } - return $_html_result; } +/** + * @param $key + * @param $values + * @param $selected + * @param $id + * @param $class + * @param $idx + * + * @return string + */ function smarty_function_html_options_optgroup($key, $values, $selected, $id, $class, &$idx) { $optgroup_html = '' . "\n"; @@ -199,6 +226,5 @@ function smarty_function_html_options_optgroup($key, $values, $selected, $id, $c $optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected, $id, $class, $idx); } $optgroup_html .= "\n"; - return $optgroup_html; } -- cgit v1.2.3