X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=smarty%2Fplugins%2Ffunction.popup_init.php;h=93cb45450c7fd5638117cb2c6a07d7c1f02a7d2c;hb=94d8eb634c53fea341b849bf13f9224e70db2d16;hp=d9b42bd0ef92a01887413f61af45db67a813c6f3;hpb=aa36c490d2218814cb6faa20e31c10b5599d4483;p=contagged diff --git a/smarty/plugins/function.popup_init.php b/smarty/plugins/function.popup_init.php index d9b42bd..93cb454 100644 --- a/smarty/plugins/function.popup_init.php +++ b/smarty/plugins/function.popup_init.php @@ -14,20 +14,21 @@ * Purpose: initialize overlib * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init} * (Smarty online manual) + * @author Monte Ohrt * @param array * @param Smarty * @return string */ function smarty_function_popup_init($params, &$smarty) { - $zindex = 1000; - + $zindex = 1000; + if (!empty($params['zindex'])) { - $zindex = $params['zindex']; - } - + $zindex = $params['zindex']; + } + if (!empty($params['src'])) { - return '' . "\n" + return '' . "\n" . '' . "\n"; } else { $smarty->trigger_error("popup_init: missing src parameter");