add /notes/ link to the header, visible only for admins for now
This commit is contained in:
parent
7aafa75f76
commit
71ad8d5fca
@ -50,6 +50,8 @@ class MainHandler extends request_handler {
|
|||||||
|
|
||||||
if ($page->shortName == 'info')
|
if ($page->shortName == 'info')
|
||||||
set_skin_opts(['head_section' => 'about']);
|
set_skin_opts(['head_section' => 'about']);
|
||||||
|
else if ($page->shortName == 'notes')
|
||||||
|
set_skin_opts(['head_section' => $page->shortName]);
|
||||||
|
|
||||||
if ($page) {
|
if ($page) {
|
||||||
add_meta([
|
add_meta([
|
||||||
|
@ -224,6 +224,8 @@ $icons = svg();
|
|||||||
$items = [];
|
$items = [];
|
||||||
$items[] = ['url' => '/articles/'.($articles_lang && $articles_lang != 'en' ? '?lang='.$articles_lang : ''), 'label' => 'articles', 'selected' => $section === 'articles'];
|
$items[] = ['url' => '/articles/'.($articles_lang && $articles_lang != 'en' ? '?lang='.$articles_lang : ''), 'label' => 'articles', 'selected' => $section === 'articles'];
|
||||||
$items[] = ['url' => '/files/', 'label' => 'files', 'selected' => $section === 'files'];
|
$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'];
|
$items[] = ['url' => '/info/', 'label' => 'about', 'selected' => $section === 'about'];
|
||||||
if (is_admin())
|
if (is_admin())
|
||||||
$items[] = ['url' => '/admin/', 'label' => $icons->settings_28(in_place: true), 'type' => 'settings', 'selected' => $section === 'admin'];
|
$items[] = ['url' => '/admin/', 'label' => $icons->settings_28(in_place: true), 'type' => 'settings', 'selected' => $section === 'admin'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user