aConf['racine_plugins'].'admin.css')) echo '
'."\n"; ?> plxPlugins->callHook('AdminTopEndHead')) ?>
aConf['homestatic']) AND !empty($plxAdmin->aConf['homestatic'])) : ?> |
aUsers[$_SESSION['user']]['name']) ?>
nbArticles('all', $userId, '_'); $arts_mod = $nbartsmod>0 ? '
'.$nbartsmod.'
':''; $menus[] = plxUtils::formatMenu(L_MENU_ARTICLES, 'index.php?page=1', L_MENU_ARTICLES_TITLE, false, false,$arts_mod); if(isset($_GET['a'])) # edition article $menus[] = plxUtils::formatMenu(L_MENU_NEW_ARTICLES_TITLE, 'article.php', L_MENU_NEW_ARTICLES, false, false, '', false); else # nouvel article $menus[] = plxUtils::formatMenu(L_MENU_NEW_ARTICLES_TITLE, 'article.php', L_MENU_NEW_ARTICLES); $menus[] = plxUtils::formatMenu(L_MENU_MEDIAS, 'medias.php', L_MENU_MEDIAS_TITLE); if($_SESSION['profil'] <= PROFIL_MANAGER) $menus[] = plxUtils::formatMenu(L_MENU_STATICS, 'statiques.php', L_MENU_STATICS_TITLE); if($_SESSION['profil'] <= PROFIL_MODERATOR) { $nbcoms = $plxAdmin->nbComments('offline'); $coms_offline = $nbcoms>0 ? '
'.$plxAdmin->nbComments('offline').'
':''; $menus[] = plxUtils::formatMenu(L_MENU_COMMENTS, 'comments.php?page=1', L_MENU_COMMENTS_TITLE, false, false, $coms_offline); } if($_SESSION['profil'] <= PROFIL_EDITOR) $menus[] = plxUtils::formatMenu(L_MENU_CATEGORIES,'categories.php', L_MENU_CATEGORIES_TITLE); if($_SESSION['profil'] == PROFIL_ADMIN) { $menus[] = plxUtils::formatMenu(L_MENU_CONFIG, 'parametres_base.php', L_MENU_CONFIG_TITLE, false, false, '', false); if (preg_match('/parametres/',basename($_SERVER['SCRIPT_NAME']))) { $menus[] = plxUtils::formatMenu(L_MENU_CONFIG_BASE,'parametres_base.php', L_MENU_CONFIG_BASE_TITLE, 'sub'); $menus[] = plxUtils::formatMenu(L_MENU_CONFIG_VIEW,'parametres_affichage.php', L_MENU_CONFIG_VIEW_TITLE, 'sub'); $menus[] = plxUtils::formatMenu(L_MENU_CONFIG_USERS,'parametres_users.php', L_MENU_CONFIG_USERS_TITLE, 'sub'); $menus[] = plxUtils::formatMenu(L_MENU_CONFIG_ADVANCED,'parametres_avances.php', L_MENU_CONFIG_ADVANCED_TITLE, 'sub'); $menus[] = plxUtils::formatMenu(L_MENU_CONFIG_PLUGINS,'parametres_plugins.php', L_MENU_CONFIG_PLUGINS_TITLE, 'sub'); $menus[] = plxUtils::formatMenu(L_MENU_CONFIG_INFOS,'parametres_infos.php', L_MENU_CONFIG_INFOS_TITLE, 'sub'); } } $menus[] = plxUtils::formatMenu(L_MENU_PROFIL, 'profil.php', L_MENU_PROFIL_TITLE); # récuperation des menus admin pour les plugins foreach($plxAdmin->plxPlugins->aPlugins as $plugName => $plugInstance) { if($plugInstance AND is_file(PLX_PLUGINS.$plugName.'/admin.php')) { if($plxAdmin->checkProfil($plugInstance->getAdminProfil(),false)) { if($plugInstance->adminMenu) { $menu = plxUtils::formatMenu(plxUtils::strCheck($plugInstance->adminMenu['title']), 'plugin.php?p='.$plugName, plxUtils::strCheck($plugInstance->adminMenu['caption'])); array_splice($menus, ($plugInstance->adminMenu['position']-1), 0, $menu); } else { $menus[] = plxUtils::formatMenu(plxUtils::strCheck($plugInstance->getInfo('title')), 'plugin.php?p='.$plugName, plxUtils::strCheck($plugInstance->getInfo('title'))); } } } } # Hook Plugins eval($plxAdmin->plxPlugins->callHook('AdminTopMenus')); echo implode('', $menus); ?>
Pluxml aConf['version'] ?>
aConf['title']) ?>
plxPlugins->callHook('AdminTopBottom')) ?>