Source for file common_menu.php
Documentation is available at common_menu.php
* @package linea21.templates
* @author linea21 <info@linea21.com>
* @param $rub : connu de admin/index.php
* @license http://opensource.org/licenses/gpl-3.0.html
* affichage des items du menu. Prise en charge de leur ETAT : actif ou non
* @param string $rubactive
* @param string $currentrub
* @param string $accesskey
* @return string $content
function displayitem($rubactive, $currentrub, $accesskey)
$content = "<li><a href=\"index.php?rub=" . $currentrub . "\" accesskey=\"" . $accesskey . "\" title=\"" . $GLOBALS['lang']['menu_alt'][$currentrub] . "\" id=\"menu_". $currentrub. "\" >" . ucfirst($GLOBALS['lang']['menu_alt'][$currentrub]) . "</a></li>\n";
$menu_constructor_com = '';
$menu_constructor_gestion = '';
$menu_constructor_config = '';
if (MOD_NEWS === 1 && hasRight('news')) $menu_constructor_com .= displayitem($rub, 'news', 'a');
if (MOD_PUBLICATION === 1 && hasRight('publication')) $menu_constructor_com .= displayitem('workshop', 'publication', 'd');
if (MOD_WORKSHOP === 1 && hasRight('workshop')) $menu_constructor_com .= displayitem('workshop', 'workshop', 'g');
if (MOD_DASHBOARD === 1 && hasRight('dashboard')) $menu_constructor_gestion .= displayitem($rub, 'dashboard', 'i');
if (MOD_YELLOWPAGES === 1 && hasRight('yellowpages')) $menu_constructor_gestion .= displayitem($rub, 'yellowpages', 'y');
<a href=" <?php echo SITE_LINEA_URL; ?>" id="l21_logo" title=" <?php echo SITE_LINEA_NAME; ?>"><span> <?php echo SITE_LINEA_NAME; ?></span></a>
<ul class="containermenu">
<li><a href="index.php" class="menu" id="menu_home"> <?php echo $GLOBALS['lang']['menu_alt']['home_dashboard'];?></a></li>
<li class="menu" id="menu_com"> <?php echo $GLOBALS['lang']['menu_alt']['communication'];?>
<ul class="sub_menu" id="menu_com_list">
<?php echo $menu_constructor_com; ?>
<li class="menu" id="menu_gestion"> <?php echo $GLOBALS['lang']['menu_alt']['suivi_gestion'];?>
<ul class="sub_menu" id="menu_gestion_list">
<?php echo $menu_constructor_gestion; ?>
<li class="menu" id="menu_config"> <?php echo $GLOBALS['lang']['menu_alt']['configuration'];?>
<ul class="sub_menu" id="menu_config_list">
<?php echo $menu_constructor_config; ?>
<li><a href="../public/index.php" class="menu"
id="menu_public_interface"> <?php echo $GLOBALS['lang']['menu_alt']['interface_publique'];?>
<br style="clear: both" />
|