From 4f3bce79bfb5851cef9e7bc655c91bb3093cc401 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 12 Jul 2005 11:27:54 +0000 Subject: Initial Import git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- .../smarty-plugins/function.popup_init.php | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 wp-inst/wp-content/smarty-plugins/function.popup_init.php (limited to 'wp-inst/wp-content/smarty-plugins/function.popup_init.php') diff --git a/wp-inst/wp-content/smarty-plugins/function.popup_init.php b/wp-inst/wp-content/smarty-plugins/function.popup_init.php new file mode 100644 index 0000000..f62c33c --- /dev/null +++ b/wp-inst/wp-content/smarty-plugins/function.popup_init.php @@ -0,0 +1,39 @@ + + * Name: popup_init
+ * Purpose: initialize overlib + * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init} + * (Smarty online manual) + * @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