From 6d0fbeb0a7fde0cc8bae6c9944ea6b017d96968a Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sun, 16 Mar 2008 20:42:30 +0000 Subject: Moved some external packages into lib to make system more self contained --- lib/smarty-2.6.8/plugins/function.popup_init.php | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lib/smarty-2.6.8/plugins/function.popup_init.php (limited to 'lib/smarty-2.6.8/plugins/function.popup_init.php') diff --git a/lib/smarty-2.6.8/plugins/function.popup_init.php b/lib/smarty-2.6.8/plugins/function.popup_init.php new file mode 100644 index 0000000..93cb454 --- /dev/null +++ b/lib/smarty-2.6.8/plugins/function.popup_init.php @@ -0,0 +1,40 @@ + + * Name: popup_init
+ * 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; + + if (!empty($params['zindex'])) { + $zindex = $params['zindex']; + } + + if (!empty($params['src'])) { + return '' . "\n" + . '' . "\n"; + } else { + $smarty->trigger_error("popup_init: missing src parameter"); + } +} + +/* vim: set expandtab: */ + +?> -- cgit v1.2.3