diff --git a/handler/MainHandler.php b/handler/MainHandler.php index 3a75390..3e582f6 100644 --- a/handler/MainHandler.php +++ b/handler/MainHandler.php @@ -50,6 +50,8 @@ class MainHandler extends request_handler { if ($page->shortName == 'info') set_skin_opts(['head_section' => 'about']); + else if ($page->shortName == 'notes') + set_skin_opts(['head_section' => $page->shortName]); if ($page) { add_meta([ diff --git a/skin/base.phps b/skin/base.phps index a79c4fa..f15c30e 100644 --- a/skin/base.phps +++ b/skin/base.phps @@ -224,6 +224,8 @@ $icons = svg(); $items = []; $items[] = ['url' => '/articles/'.($articles_lang && $articles_lang != 'en' ? '?lang='.$articles_lang : ''), 'label' => 'articles', 'selected' => $section === 'articles']; $items[] = ['url' => '/files/', 'label' => 'files', 'selected' => $section === 'files']; +if (is_admin()) + $items[] = ['url' => '/notes/', 'label' => 'notes', 'selected' => $section === 'notes']; $items[] = ['url' => '/info/', 'label' => 'about', 'selected' => $section === 'about']; if (is_admin()) $items[] = ['url' => '/admin/', 'label' => $icons->settings_28(in_place: true), 'type' => 'settings', 'selected' => $section === 'admin'];