diff options
Diffstat (limited to 'smartyplugins/function.helplink.php')
| -rw-r--r-- | smartyplugins/function.helplink.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/smartyplugins/function.helplink.php b/smartyplugins/function.helplink.php new file mode 100644 index 0000000..ce900b0 --- /dev/null +++ b/smartyplugins/function.helplink.php @@ -0,0 +1,24 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + +/** + * smarty_function_helplink + */ +function smarty_function_helplink($params, &$gBitSmarty) +{ + extract($params); + // Param = zone + if(empty($page)) { + $gBitSmarty->trigger_error("assign: missing page parameter"); + return; + } + print("<a title='help' href='#' onClick='javascript:window.open(\"".WIKI_PKG_URL."index_p.php?page=$page\",\"\",\"menubar=no,scrollbars=yes,resizable=yes,height=600,width=500\");'><img border='0' src='img/icons/help.gif' alt='".tra("help")."' /></a>"); +} + +/* vim: set expandtab: */ + +?> |
