blob: 19c31fcede5958bc59a3c78d54b4992712d43515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* source elements
*/
require_once('function.biticon.php');
/**
* smarty_function_bithelp
*/
function smarty_function_bithelp($params, &$gBitSmarty) {
global $gBitSystem, $gBitUser;
$outstr = "";
if( $gBitSystem->isFeatureActive('site_online_help') ){
if($gBitUser->hasPermission( 'p_admin' )){
$outstr .= "<a href=\"".KERNEL_PKG_URL."admin/index.php\">".smarty_function_biticon(array('ipackage'=>'icons', 'iname'=>'preferences-system', 'iexplain'=>'Administration Menu'),$gBitSmarty)."</a> ";
}
if( $helpInfo = $gBitSmarty->get_template_vars('TikiHelpInfo') ) {
$outstr .= "<a href=\"".$helpInfo["URL"]."\" >".smarty_function_biticon(array('ipackage'=>'icons', 'iname'=>'help-browser', 'iexplain'=>(empty($helpInfo["Desc"])?"help":$helpInfo["Desc"])),$gBitSmarty)."</a>";
}
}
return $outstr;
}
|