- fixed {popup} to properly handle inarray and function parameters and added support for mouseoff and followmouse options

This commit is contained in:
boots
2004-12-06 20:09:12 +00:00
parent 06adad9c19
commit 639bd2c553
2 changed files with 9 additions and 2 deletions

3
NEWS
View File

@@ -1,3 +1,6 @@
- fixed {popup} to properly handle inarray and function parameters and added
support for mouseoff and followmouse options (boots)
Version 2.6.6 (Oct 13, 2004) Version 2.6.6 (Oct 13, 2004)
---------------------------- ----------------------------

View File

@@ -25,7 +25,11 @@ function smarty_function_popup($params, &$smarty)
switch ($_key) { switch ($_key) {
case 'text': case 'text':
case 'trigger': case 'trigger':
case 'function':
case 'inarray':
$$_key = (string)$_value; $$_key = (string)$_value;
if ($_key == 'function' || $_key == 'inarray')
$append .= ',' . strtoupper($_key) . ",'$_value'";
break; break;
case 'caption': case 'caption':
@@ -44,12 +48,10 @@ function smarty_function_popup($params, &$smarty)
case 'closefont': case 'closefont':
case 'fgbackground': case 'fgbackground':
case 'bgbackground': case 'bgbackground':
case 'inarray':
case 'caparray': case 'caparray':
case 'capicon': case 'capicon':
case 'background': case 'background':
case 'frame': case 'frame':
case 'function':
$append .= ',' . strtoupper($_key) . ",'$_value'"; $append .= ',' . strtoupper($_key) . ",'$_value'";
break; break;
@@ -84,6 +86,8 @@ function smarty_function_popup($params, &$smarty)
case 'fullhtml': case 'fullhtml':
case 'hauto': case 'hauto':
case 'vauto': case 'vauto':
case 'mouseoff':
case 'followmouse':
if ($_value) $append .= ',' . strtoupper($_key); if ($_value) $append .= ',' . strtoupper($_key);
break; break;