From dc9eb87cff1a0bd0226d08812279bf6ef8c9c3ff Mon Sep 17 00:00:00 2001 From: Zatalyz Date: Wed, 27 Oct 2021 12:59:33 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20du=20menu=20droit=20:=20cla?= =?UTF-8?q?sse=20php=20avec=20la=20m=C3=A9thode=20moderne=20de=20dokuwiki,?= =?UTF-8?q?=20affichage=20des=20svg,=20emp=C3=AAcher=20l'affichage=20de=20?= =?UTF-8?q?childrenpages=20ici.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/tools.less | 29 ++++++++++++++++++++++++++-- main.php | 52 ++++++++++++++++---------------------------------- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/css/tools.less b/css/tools.less index a2a905e..0c37755 100644 --- a/css/tools.less +++ b/css/tools.less @@ -28,13 +28,38 @@ So, navbar too, and breadcrumbs. /*____________ Usertools ____________*/ /* Link to Connexion, userpage, administration, profil */ -.dokuwiki__tools ul, { +.dokuwiki__tools ul { margin: 0 auto; padding: 0; color: @ini_link; } +.dokuwiki__tools { + li { + list-style: none; + margin: 0; + } + li a { + display: flex; + flex-direction: row-reverse; + justify-content: end; + + span { + margin-left: 3px; + } + } + + .user { + display: flex; + span { + margin-right: 0.3em; + margin-bottom: 0.5em; + } + } +} + + /* highlight selected tool */ .mode_admin a.action.admin, .mode_login a.action.login, @@ -104,4 +129,4 @@ form.search { max-width : 1.5em; } -} \ No newline at end of file +} diff --git a/main.php b/main.php index 9908457..7c737b6 100644 --- a/main.php +++ b/main.php @@ -177,62 +177,42 @@ $showSidebar = $hasSidebar && ($ACT=='show');
-

- + + getItems() as $item ) { + if ( ! preg_match('/^childrenpages_/', $item->getType()) ) { + echo '
  • '.$item->asHtmlLink(false, true).'
  • '; + } + } + ?>

    + getListItems(); ?> +
    + -

    + + getListItems(); ?> + +