18,6 → 18,7 |
function token($options) |
{ |
// Initialisation des variables |
$bdd =& $GLOBALS['_GEN_commun']['pear_db']; |
$sortie = ''; |
$sites = $options['site']; |
// Récupération de l'affichage ou pas des raccourcis |
25,12 → 26,22 |
$permalien = $options['permalien']; |
} |
$tab_site = array_map('trim', explode(',', $sites)); |
$sortie .= '<ul class="plan_site_'.$site.'" >'."\n"; |
|
foreach ($tab_site as $cle => $site) { |
$aso_menus = GEN_retournerTableauMenusSiteCodeAlpha($GLOBALS['_GEN_commun']['pear_db'], $site); |
if (count($tab_site) > 1) { |
$aso_site = GEN_lireInfoSitePrincipalCodeAlpha($bdd, $site, DB_FETCHMODE_ASSOC); |
if (!empty($aso_site['gs_titre'])) { |
$titre = $aso_site['gs_titre']; |
} else { |
$titre = $aso_site['gs_nom']; |
} |
$sortie .= '<h2>'.$titre.'</h2>'."\n"; |
} |
$sortie .= '<ul class="plan_site_'.$site.'" >'."\n"; |
$aso_menus = GEN_retournerTableauMenusSiteCodeAlpha($bdd, $site); |
$sortie .= $this->parserTableauMenus($aso_menus, $permalien); |
$sortie .= '</ul>'."\n"; |
} |
$sortie .= '</ul>'."\n"; |
|
return $sortie; |
} |