Bouton Administration dans la barre de liens quand on en a les droits nécessaires.

This commit is contained in:
Georges Dupéron 2010-08-05 08:34:53 +02:00
parent f5554fea4f
commit 874f018bde
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ function get_css() {
.site.navigation ul {
padding: 0;
margin: 0;
text-align: center;
}
.site.navigation li:hover {

View File

@ -39,6 +39,9 @@ class Squelette {
$ret .= ' <ul>' . $nl;
$ret .= ' <li><a href="' . $racine->get_url() . '">Accueil</a></li>' . $nl;
$ret .= ' <li><a href="' . $racine->enfant("galerie")->get_url() . '">Galerie</a></li>' . $nl;
if (Permissions::vérifier_permission($racine->enfant("admin"), "set_prop", Authentification::get_utilisateur())) {
$ret .= '<li><a href="' . $racine->enfant("admin")->get_url() . '">Administration</a></li>' . $nl;
}
$ret .= ' </ul>' . $nl;
$ret .= ' </div>' . $nl;
$ret .= ' <div class="site contenu">' . $nl;