removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / function.popup.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/function.popup.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/function.popup.php
deleted file mode 100644 (file)
index 0eb4fcb..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Smarty {popup} function plugin\r
- *\r
- * Type:     function<br>\r
- * Name:     popup<br>\r
- * Purpose:  make text pop up in windows via overlib\r
- * @link http://smarty.php.net/manual/en/language.function.popup.php {popup}\r
- *          (Smarty online manual)\r
- * @param array\r
- * @param Smarty\r
- * @return string\r
- */\r
-function smarty_function_popup($params, &$smarty)\r
-{\r
-    extract($params);\r
-\r
-    if (empty($text) && !isset($inarray) && empty($function)) {\r
-        $smarty->trigger_error("overlib: attribute 'text' or 'inarray' or 'function' required");\r
-        return false;\r
-    }\r
-\r
-    if (empty($trigger)) { $trigger = "onmouseover"; }\r
-\r
-    $retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';\r
-    if ($sticky) { $retval .= ",STICKY"; }\r
-    if (!empty($caption)) { $retval .= ",CAPTION,'".str_replace("'","\'",$caption)."'"; }\r
-    if (!empty($fgcolor)) { $retval .= ",FGCOLOR,'$fgcolor'"; }\r
-    if (!empty($bgcolor)) { $retval .= ",BGCOLOR,'$bgcolor'"; }\r
-    if (!empty($textcolor)) { $retval .= ",TEXTCOLOR,'$textcolor'"; }\r
-    if (!empty($capcolor)) { $retval .= ",CAPCOLOR,'$capcolor'"; }\r
-    if (!empty($closecolor)) { $retval .= ",CLOSECOLOR,'$closecolor'"; }\r
-    if (!empty($textfont)) { $retval .= ",TEXTFONT,'$textfont'"; }\r
-    if (!empty($captionfont)) { $retval .= ",CAPTIONFONT,'$captionfont'"; }\r
-    if (!empty($closefont)) { $retval .= ",CLOSEFONT,'$closefont'"; }\r
-    if (!empty($textsize)) { $retval .= ",TEXTSIZE,$textsize"; }\r
-    if (!empty($captionsize)) { $retval .= ",CAPTIONSIZE,$captionsize"; }\r
-    if (!empty($closesize)) { $retval .= ",CLOSESIZE,$closesize"; }\r
-    if (!empty($width)) { $retval .= ",WIDTH,$width"; }\r
-    if (!empty($height)) { $retval .= ",HEIGHT,$height"; }\r
-    if (!empty($left)) { $retval .= ",LEFT"; }\r
-    if (!empty($right)) { $retval .= ",RIGHT"; }\r
-    if (!empty($center)) { $retval .= ",CENTER"; }\r
-    if (!empty($above)) { $retval .= ",ABOVE"; }\r
-    if (!empty($below)) { $retval .= ",BELOW"; }\r
-    if (isset($border)) { $retval .= ",BORDER,$border"; }\r
-    if (isset($offsetx)) { $retval .= ",OFFSETX,$offsetx"; }\r
-    if (isset($offsety)) { $retval .= ",OFFSETY,$offsety"; }\r
-    if (!empty($fgbackground)) { $retval .= ",FGBACKGROUND,'$fgbackground'"; }\r
-    if (!empty($bgbackground)) { $retval .= ",BGBACKGROUND,'$bgbackground'"; }\r
-    if (!empty($closetext)) { $retval .= ",CLOSETEXT,'".str_replace("'","\'",$closetext)."'"; }\r
-    if (!empty($noclose)) { $retval .= ",NOCLOSE"; }\r
-    if (!empty($status)) { $retval .= ",STATUS,'".str_replace("'","\'",$status)."'"; }\r
-    if (!empty($autostatus)) { $retval .= ",AUTOSTATUS"; }\r
-    if (!empty($autostatuscap)) { $retval .= ",AUTOSTATUSCAP"; }\r
-    if (isset($inarray)) { $retval .= ",INARRAY,'$inarray'"; }\r
-    if (isset($caparray)) { $retval .= ",CAPARRAY,'$caparray'"; }\r
-    if (!empty($capicon)) { $retval .= ",CAPICON,'$capicon'"; }\r
-    if (!empty($snapx)) { $retval .= ",SNAPX,$snapx"; }\r
-    if (!empty($snapy)) { $retval .= ",SNAPY,$snapy"; }\r
-    if (isset($fixx)) { $retval .= ",FIXX,$fixx"; }\r
-    if (isset($fixy)) { $retval .= ",FIXY,$fixy"; }\r
-    if (!empty($background)) { $retval .= ",BACKGROUND,'$background'"; }\r
-    if (!empty($padx)) { $retval .= ",PADX,$padx"; }\r
-    if (!empty($pady)) { $retval .= ",PADY,$pady"; }\r
-    if (!empty($fullhtml)) { $retval .= ",FULLHTML"; }\r
-    if (!empty($frame)) { $retval .= ",FRAME,'$frame'"; }\r
-    if (isset($timeout)) { $retval .= ",TIMEOUT,$timeout"; }\r
-    if (!empty($function)) { $retval .= ",FUNCTION,'$function'"; }\r
-    if (isset($delay)) { $retval .= ",DELAY,$delay"; }\r
-    if (!empty($hauto)) { $retval .= ",HAUTO"; }\r
-    if (!empty($vauto)) { $retval .= ",VAUTO"; }\r
-    $retval .= ');" onmouseout="nd();"';\r
-       \r
-       return $retval;\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r