10 * Smarty {popup_init} function plugin
13 * Name: popup_init<br>
14 * Purpose: initialize overlib
15 * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init}
16 * (Smarty online manual)
17 * @author Monte Ohrt <monte at ohrt dot com>
22 function smarty_function_popup_init($params, &$smarty)
26 if (!empty($params['zindex'])) {
27 $zindex = $params['zindex'];
30 if (!empty($params['src'])) {
31 return '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n"
32 . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n";
34 $smarty->trigger_error("popup_init: missing src parameter");
38 /* vim: set expandtab: */
This page took 0.254732 seconds and 4 git commands to generate.