contenu . Squelette::pied($page); } public static function en_tete($page) { // TODO : chemin css relatif. $racine = new Chemin('/'); $chemin_css = $racine->get_url('?vue=css'); $nl = "\n"; $ret = ''; $ret .= '' . $nl; $ret .= '' . $nl; $ret .= ' ' . $nl; $ret .= ' ' . $page->titre . '' . $nl; $ret .= ' ' . $nl; $ret .= ' ' . $nl; $ret .= ' ' . $nl; $ret .= ' ' . $nl; /*$ret .= ' ' . $nl;*/ $ret .= ' ' . $nl; $ret .= ' ' . $nl; $ret .= ' ' . $nl; $ret .= ' ' . $nl; $ret .= '

' . Stockage::get_prop($racine, "nom_site") . '

' . $nl; $ret .= '
' . $nl; if (Authentification::est_connecté()) { $ret .= 'enfant("connexion")->get_url("?action=deconnexion") . '">déconnexion' . $nl; } else { $ret .= 'enfant("connexion")->get_url() . '">connexion' . $nl; } $ret .= '
' . $nl; $ret .= ' ' . $nl; $ret .= '
' . $nl; if (! $page->chemin->est_racine() && ! $page->chemin->parent()->est_racine()) { $ret .= '

' . $nl; $premier = true; foreach ($page->chemin->hiérarchie() as $i) { if (!$i->est_racine()) { if (!$premier) { $ret .= ' > '; } $ret .= ' ' . $i->dernier() . '' . $nl; $premier = false; } } $ret .= '

' . $nl; } return $ret; } public static function pied() { return '
'; } } ?>