rendered paste bodyIndex: Smarty-2.6.2/libs/plugins/function.popup_init.php
===================================================================
--- Smarty-2.6.2/libs/plugins/function.popup_init.php (revision 5703)
+++ Smarty-2.6.2/libs/plugins/function.popup_init.php (revision 5462)
@@ -1,10 +1,11 @@
<?php
/**
* Smarty plugin
- *
* @package Smarty
* @subpackage plugins
*/
+
+
/**
* Smarty {popup_init} function plugin
*
@@ -19,28 +20,20 @@
*/
function smarty_function_popup_init($params, &$smarty)
{
- $zindex = 1000;
-
- if(!empty($params['zindex']))
- {
- $zindex = $params['zindex'];
- }
-
- if(!empty($params['src']))
- {
- $output = '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n"
- . '<script type="text/javascript" language="JavaScript">' . "\n"
- . 'var ol_bgcolor = "#000000";' . "\n"
- . 'var ol_fgcolor = "#cccccc";' . "\n"
- . 'var ol_closecolor = "#ffffff";' . "\n"
- . '</script>' . "\n"
- . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n";
- return $output;
- }
- else
- {
- $smarty->trigger_error("popup_init: missing src parameter");
- }
+ $zindex = 1000;
+
+ if (!empty($params['zindex'])) {
+ $zindex = $params['zindex'];
+ }
+
+ if (!empty($params['src'])) {
+ return '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n"
+ . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n";
+ } else {
+ $smarty->trigger_error("popup_init: missing src parameter");
+ }
}
-?>
\ No newline at end of file
+/* vim: set expandtab: */
+
+?>