MyShaarli/tpl/myShaarli/page.header.html

129 lines
3.7 KiB
HTML
Raw Permalink Normal View History

<header class="banner">
<hgroup>
<h1>
<img src="{$asset_path}/img/favicon_128.png#"
height="120"
loading="lazy"
alt="logo"><a href="{$titleLink}">{$shaarlititle}</a>
</h1>
</hgroup>
<nav role="navigation">
<ul>
{loop="$plugins_header.buttons_toolbar"}
<li>
<a
{loop="$value.attr"}
{$key}="{$value}"
{/loop}>
{$value.html}
</a>
</li>
{/loop}
{if="$is_logged_in || $openshaarli"}
<li>
<a href="{$base_path}/admin/add-shaare">{'Shaare'|t}</a>
</li>
<li>
<a href="{$base_path}/admin/tools">{'Tools'|t}</a>
</li>
{/if}
<li>
<a href="{$base_path}/tags/cloud">{'Tag cloud'|t}</a>
2017-12-15 12:16:50 +01:00
</li>
{if="$thumbnails_enabled"}
<li>
<a href="{$base_path}/picture-wall?{function="ltrim($searchcrits, '&')"}">{'Picture wall'|t}</a>
</li>
{/if}
<li>
<a href="#" title="Toggle Dark/Light theme" aria-label="Toggle Dark/Light theme" onclick="switchTheme();">
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation">
<title>Toggle Dark/Light theme</title>
<use href="{$asset_path}/sprites/default.svg#ui-light-dark"></use>
</svg>
</a>
</li>
<li>
<a href="{$base_path}/feed/{$feed_type}?{$searchcrits}" title="{'RSS Feed'|t}" aria-label="{'RSS Feed'|t}">
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation">
<title>{'RSS Feed'|t}</title>
<use href="{$asset_path}/sprites/default.svg#ui-feed"></use>
</svg>
</a>
</li>
{if="!$is_logged_in"}
<li>
<a href="{$base_path}/login"
data-open-id="header-login-form"
id="login-button" aria-label="{'Login'|t}" title="{'Login'|t}">
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation">
<title>{'Login'|t}</title>
<use href="{$asset_path}/sprites/default.svg#ui-user"></use>
</svg>
</a>
</li>
{else}
<li>
<a href="{$base_path}/admin/logout" aria-label="{'Logout'|t}" title="{'Logout'|t}">
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation">
<title>{'Login'|t}</title>
<use href="{$asset_path}/sprites/default.svg#ui-logout"></use>
</svg>
</a>
</li>
{/if}
</ul>
</nav>
</header>
2017-12-15 12:16:50 +01:00
<main id="content" class="container" role="main">
2017-12-15 12:16:50 +01:00
{if="!empty($newVersion) || !empty($versionError)"}
<div class="warning">
2017-12-15 12:16:50 +01:00
{if="$newVersion"}
<div>
2017-12-15 12:16:50 +01:00
Shaarli {$newVersion}
<a href="https://github.com/shaarli/Shaarli/releases">{'is available'|t}</a>.
</div>
{/if}
{if="$versionError"}
<div>
2017-12-15 12:16:50 +01:00
{'Error'|t}: {$versionError}
</div>
{/if}
</div>
2015-07-17 11:28:43 +02:00
{/if}
2017-12-15 12:16:50 +01:00
2018-10-05 11:55:51 +02:00
{if="!empty($plugin_errors) && $is_logged_in"}
<div class="error">
2017-12-15 12:16:50 +01:00
{loop="plugin_errors"}
<p>{$value}</p>
{/loop}
</div>
2013-02-26 10:09:41 +01:00
{/if}
2017-12-15 12:16:50 +01:00
2023-05-25 11:13:43 +02:00
{if="!empty($global_errors)"}
<div class="error">
2023-05-25 11:13:43 +02:00
{loop="$global_errors"}
<p>{$value}</p>
{/loop}
</div>
{/if}
{if="!empty($global_warnings)"}
<div class="warning">
2018-10-05 11:55:51 +02:00
{loop="global_warnings"}
<p>{$value}</p>
{/loop}
</div>
{/if}
2023-05-25 11:13:43 +02:00
{if="!empty($global_successes)"}
<div class="success">
2023-05-25 11:13:43 +02:00
{loop="$global_successes"}
<p>{$value}</p>
{/loop}
</div>
{/if}