Source for file function.popup.php
Documentation is available at function.popup.php
* Smarty {popup} function plugin
* Purpose: make text pop up in windows via overlib
* @link http://smarty.php.net/manual/en/language.function.popup.php {popup}
* @author Monte Ohrt <monte at ohrt dot com>
foreach ($params as $_key=>
$_value) {
$
$_key = (string)
$_value;
if ($_key ==
'function' ||
$_key ==
'inarray')
$append .=
',' .
strtoupper($_key) .
",'$_value'";
$append .=
',' .
strtoupper($_key) .
",'$_value'";
$smarty->trigger_error("[popup] unknown parameter $_key", E_USER_WARNING);
if (empty($text) &&
!isset
($inarray) &&
empty($function)) {
$smarty->trigger_error("overlib: attribute 'text' or 'inarray' or 'function' required");
if (empty($trigger)) { $trigger =
"onmouseover"; }
$retval =
$trigger .
'="return overlib(\''.
preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).
'\'';
$retval .=
$append .
');"';
if ($trigger ==
'onmouseover')
$retval .=
' onmouseout="nd();"';
/* vim: set expandtab: */
Documentation generated on Sun, 09 Mar 2008 23:52:06 -0300 by phpDocumentor 1.4.0