hide articles link for non-admins
This commit is contained in:
parent
8f644da144
commit
4b52ddd95f
@ -188,11 +188,13 @@ function getStaticVersion(string $name): string {
|
||||
|
||||
|
||||
function renderHeader(SkinContext $ctx, string $theme): string {
|
||||
$items = [
|
||||
['url' => '/articles/', 'label' => 'articles'],
|
||||
$items = [];
|
||||
if (is_admin())
|
||||
$items[] = ['url' => '/articles/', 'label' => 'articles'];
|
||||
array_push($items,
|
||||
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
|
||||
['url' => '/info/', 'label' => 'about']
|
||||
];
|
||||
);
|
||||
if (is_admin())
|
||||
$items[] = ['url' => '/admin/', 'label' => $ctx->renderSettingsIcon(), 'type' => 'settings'];
|
||||
$items[] = ['url' => 'javascript:void(0)', 'label' => $ctx->renderMoonIcons(), 'type' => 'theme-switcher', 'type_opts' => $theme];
|
||||
|
Loading…
x
Reference in New Issue
Block a user