Source for file mod_package_menu.php
Documentation is available at mod_package_menu.php
global $gBitSystem, $gBitUser, $moduleParams;
// if we're on any page in an admin/ dir, we'll simply set this to kernel
$admin = preg_match( "!/admin/!", $_SERVER['SCRIPT_NAME'] );
$package = !empty($moduleParams['module_params']['package'])? $moduleParams['module_params']['package']: ACTIVE_PACKAGE;
if( !empty( $gBitSystem->mAppMenu[$package]['menu_template'] ) && !$admin ) {
$_template->tpl_vars['packageMenu'] = new Smarty_variable( $gBitSystem->mAppMenu[$package] );
if( empty( $module_title )) {
if( $pkgName == 'kernel' || $admin ) {
$pkgName = 'Administration';
$_template->tpl_vars['moduleTitle'] = new Smarty_variable( $title );
|