2017-01-14 15:52:17 +01:00
|
|
|
<div class="shaarli-menu pure-g" id="shaarli-menu">
|
|
|
|
<div class="pure-u-lg-0 pure-u-1">
|
|
|
|
<div class="pure-menu">
|
2019-07-13 00:40:30 +02:00
|
|
|
<header role="banner">
|
2017-12-16 13:51:55 +01:00
|
|
|
<a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-mobile">
|
2019-05-19 11:57:23 +02:00
|
|
|
<i class="fa fa-shaarli" aria-hidden="true"></i>
|
2017-01-14 15:52:17 +01:00
|
|
|
{$shaarlititle}
|
|
|
|
</a>
|
2019-07-13 00:40:30 +02:00
|
|
|
</header>
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="#" class="menu-toggle" id="menu-toggle" aria-label="{'Menu'|t}"><s class="bar" aria-hidden="true"></s><s class="bar" aria-hidden="true"></s></a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1">
|
|
|
|
<div class="pure-menu menu-transform pure-menu-horizontal pure-g">
|
|
|
|
<ul class="pure-menu-list pure-u-lg-5-6 pure-u-1">
|
|
|
|
<li class="pure-menu-item pure-u-0 pure-u-lg-visible">
|
2017-12-16 13:51:55 +01:00
|
|
|
<a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-desktop">
|
2019-05-19 11:57:23 +02:00
|
|
|
<i class="fa fa-shaarli" aria-hidden="true"></i>
|
2017-01-14 15:52:17 +01:00
|
|
|
{$shaarlititle}
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="$is_logged_in || $openshaarli"}
|
2017-01-14 15:52:17 +01:00
|
|
|
<li class="pure-menu-item">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/admin/add-shaare" class="pure-menu-link" id="shaarli-menu-shaare">
|
2019-03-02 13:32:36 +01:00
|
|
|
<i class="fa fa-plus" aria-hidden="true"></i> {'Shaare'|t}
|
2017-01-14 15:52:17 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-tools">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/admin/tools" class="pure-menu-link">{'Tools'|t}</a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</li>
|
|
|
|
{/if}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-tags">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/tags/cloud" class="pure-menu-link">{'Tag cloud'|t}</a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</li>
|
2017-11-11 14:01:21 +01:00
|
|
|
{if="$thumbnails_enabled"}
|
|
|
|
<li class="pure-menu-item" id="shaarli-menu-picwall">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/picture-wall?{function="ltrim($searchcrits, '&')"}" class="pure-menu-link">{'Picture wall'|t}</a>
|
2017-11-11 14:01:21 +01:00
|
|
|
</li>
|
|
|
|
{/if}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-daily">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/daily" class="pure-menu-link">{'Daily'|t}</a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</li>
|
|
|
|
{loop="$plugins_header.buttons_toolbar"}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item shaarli-menu-plugin">
|
2017-01-14 15:52:17 +01:00
|
|
|
<a
|
|
|
|
{$value.attr.class=isset($value.class) ? $value.attr.class . ' pure-menu-link' : 'pure-menu-link'}
|
|
|
|
{loop="$value.attr"}
|
|
|
|
{$key}="{$value}"
|
|
|
|
{/loop}>
|
|
|
|
{$value.html}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{/loop}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item pure-u-lg-0 shaarli-menu-mobile" id="shaarli-menu-mobile-rss">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/feed/{$feed_type}?{$searchcrits}" class="pure-menu-link">{'RSS Feed'|t}</a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</li>
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="$is_logged_in"}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item pure-u-lg-0 shaarli-menu-mobile" id="shaarli-menu-mobile-logout">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/admin/logout" class="pure-menu-link">{'Logout'|t}</a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</li>
|
|
|
|
{else}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item pure-u-lg-0 shaarli-menu-mobile" id="shaarli-menu-mobile-login">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/login" class="pure-menu-link">{'Login'|t}</a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
<div class="header-buttons pure-u-lg-1-6 pure-u-0 pure-u-lg-visible">
|
|
|
|
<ul class="pure-menu-list">
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-desktop-search">
|
2017-01-14 15:52:17 +01:00
|
|
|
<a href="#" class="pure-menu-link subheader-opener"
|
|
|
|
data-open-id="search"
|
2019-03-02 13:32:36 +01:00
|
|
|
id="search-button" aria-label="{'Search'|t}" title="{'Search'|t}">
|
|
|
|
<i class="fa fa-search" aria-hidden="true"></i>
|
2017-01-14 15:52:17 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-desktop-rss">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/feed/{$feed_type}?{$searchcrits}" class="pure-menu-link" title="{'RSS Feed'|t}" aria-label="{'RSS Feed'|t}">
|
2019-03-02 13:32:36 +01:00
|
|
|
<i class="fa fa-rss" aria-hidden="true"></i>
|
2017-01-14 15:52:17 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="!$is_logged_in"}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-desktop-login">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/login" class="pure-menu-link"
|
2017-12-16 13:51:55 +01:00
|
|
|
data-open-id="header-login-form"
|
2019-03-02 13:32:36 +01:00
|
|
|
id="login-button" aria-label="{'Login'|t}" title="{'Login'|t}">
|
|
|
|
<i class="fa fa-user" aria-hidden="true"></i>
|
2017-12-16 13:51:55 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-01-14 15:52:17 +01:00
|
|
|
{else}
|
2017-12-16 13:51:55 +01:00
|
|
|
<li class="pure-menu-item" id="shaarli-menu-desktop-logout">
|
2023-05-24 11:35:15 +02:00
|
|
|
<a href="{$base_path}/admin/logout" class="pure-menu-link" aria-label="{'Logout'|t}" title="{'Logout'|t}">
|
2019-03-02 13:32:36 +01:00
|
|
|
<i class="fa fa-sign-out" aria-hidden="true"></i>
|
2017-12-16 13:51:55 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-01-14 15:52:17 +01:00
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-05-24 11:35:15 +02:00
|
|
|
<main id="content" class="container" role="main">
|
2018-05-10 13:26:11 +02:00
|
|
|
<div id="search" class="subheader-form searchform-block header-search">
|
2023-05-24 11:35:15 +02:00
|
|
|
<form method="GET" class="pure-form searchform" name="searchform" action="{$base_path}/">
|
|
|
|
<input type="text" id="searchform_value" name="searchterm" aria-label="{'Search text'|t}" placeholder="{'Search text'|t}"
|
2017-06-01 17:55:26 +02:00
|
|
|
{if="!empty($search_term)"}
|
|
|
|
value="{$search_term}"
|
|
|
|
{/if}
|
|
|
|
>
|
2023-05-24 11:35:15 +02:00
|
|
|
<input type="text" name="searchtags" id="tagfilter_value" aria-label="{'Filter by tag'|t}" placeholder="{'Filter by tag'|t}"
|
2017-06-01 17:55:26 +02:00
|
|
|
{if="!empty($search_tags)"}
|
|
|
|
value="{$search_tags}"
|
|
|
|
{/if}
|
|
|
|
autocomplete="off" data-multiple data-autofirst data-minChars="1"
|
|
|
|
data-list="{loop="$tags"}{$key}, {/loop}"
|
|
|
|
>
|
2023-05-24 11:35:15 +02:00
|
|
|
<button type="submit" class="search-button" aria-label="{'Search'|t}"><i class="fa fa-search" aria-hidden="true"></i></button>
|
2017-06-01 17:55:26 +02:00
|
|
|
</form>
|
2017-01-14 15:52:17 +01:00
|
|
|
</div>
|
2024-12-10 16:31:21 +01:00
|
|
|
|
|
|
|
{if="$is_logged_in && $template === 'linklist'"}
|
|
|
|
<div id="actions" class="subheader-form">
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1">
|
|
|
|
<a href="" id="actions-delete" class="button">
|
|
|
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
|
|
|
{'Delete'|t}
|
|
|
|
</a>
|
|
|
|
<a href="" class="actions-change-visibility button" data-visibility="public">
|
|
|
|
<i class="fa fa-globe" aria-hidden="true"></i>
|
|
|
|
{'Set public'|t}
|
|
|
|
</a>
|
|
|
|
<a href="" class="actions-change-visibility button" data-visibility="private">
|
|
|
|
<i class="fa fa-user-secret" aria-hidden="true"></i>
|
|
|
|
{'Set private'|t}
|
|
|
|
</a>
|
|
|
|
<a href="" class="subheader-opener button" data-open-id="bulk-tag-action-add">
|
|
|
|
<i class="fa fa-tag" aria-hidden="true"></i>
|
|
|
|
{'Add tags'|t}
|
|
|
|
</a>
|
|
|
|
<a href="" class="subheader-opener button" data-open-id="bulk-tag-action-delete">
|
|
|
|
<i class="fa fa-window-close" aria-hidden="true"></i>
|
|
|
|
{'Delete tags'|t}
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-03-12 19:03:50 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-12-10 16:31:21 +01:00
|
|
|
|
|
|
|
{$addDelete=['add', 'delete']}
|
|
|
|
{loop="$addDelete"}
|
|
|
|
<div id="bulk-tag-action-{$value}" class="subheader-form">
|
|
|
|
<form class="pure-g" action="{$base_path}/admin/shaare/update-tags" method="post">
|
|
|
|
<div class="pure-u-1">
|
|
|
|
<span>
|
|
|
|
<input
|
|
|
|
type="text" name="tag" class="autofocus"
|
|
|
|
aria-label="{$value === 'add' ? t('Tag to add') : t('Tag to delete')}"
|
|
|
|
placeholder="{$value === 'add' ? t('Tag to add') : t('Tag to delete')}"
|
|
|
|
autocomplete="off" data-multiple data-autofirst data-minChars="1"
|
|
|
|
data-list="{loop="$tags"}{$key}, {/loop}"
|
|
|
|
>
|
|
|
|
<input type="hidden" name="action" value="{$value}" />
|
|
|
|
<input type="hidden" name="id" value="" />
|
|
|
|
<input type="hidden" name="token" value="{$token}" />
|
|
|
|
</span>
|
|
|
|
<a href="" class="button action">
|
|
|
|
<i class="fa fa-tag" aria-hidden="true"></i>
|
|
|
|
{$value === 'add' ? t('Add tag') : t('Delete tag')}
|
|
|
|
</a>
|
|
|
|
<a href="" class="subheader-opener button cancel" data-open-id="actions">{'Cancel'|t}</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{/loop}
|
|
|
|
{/if}
|
|
|
|
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="!$is_logged_in"}
|
2017-01-14 15:52:17 +01:00
|
|
|
<form method="post" name="loginform">
|
2018-05-10 13:26:11 +02:00
|
|
|
<div class="subheader-form header-login-form" id="header-login-form">
|
2023-05-24 11:35:15 +02:00
|
|
|
<input type="text" name="login" aria-label="{'Username'|t}" placeholder="{'Username'|t}" autocapitalize="off" >
|
|
|
|
<input type="password" name="password" aria-label="{'Password'|t}" placeholder="{'Password'|t}" >
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="remember-me">
|
2023-05-24 11:35:15 +02:00
|
|
|
<input type="checkbox" name="longlastingsession" id="longlastingsession" checked>
|
2017-01-14 15:52:17 +01:00
|
|
|
<label for="longlastingsession">{'Remember me'|t}</label>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="token" value="{$token}">
|
|
|
|
<input type="hidden" name="returnurl">
|
2023-05-24 11:35:15 +02:00
|
|
|
<input type="submit" value="Login">
|
2017-01-14 15:52:17 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{/if}
|
|
|
|
{if="!empty($newVersion) || !empty($versionError)"}
|
|
|
|
<div class="pure-g new-version-message pure-alert pure-alert-warning pure-alert-closable">
|
|
|
|
<div class="pure-u-2-24"></div>
|
|
|
|
{if="$newVersion"}
|
|
|
|
<div class="pure-u-20-24">
|
|
|
|
Shaarli {$newVersion}
|
|
|
|
<a href="https://github.com/shaarli/Shaarli/releases">{'is available'|t}</a>.
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{if="$versionError"}
|
|
|
|
<div class="pure-u-20-24">
|
|
|
|
{'Error'|t}: {$versionError}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<div class="pure-u-2-24">
|
|
|
|
<i id="new-version-dismiss" class="fa fa-times pure-alert-close"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="!empty($plugin_errors) && $is_logged_in"}
|
2017-12-16 13:51:55 +01:00
|
|
|
<div class="pure-g new-version-message pure-alert pure-alert-error pure-alert-closable" id="shaarli-errors-alert">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="pure-u-2-24"></div>
|
|
|
|
<div class="pure-u-20-24">
|
|
|
|
{loop="plugin_errors"}
|
|
|
|
<p>{$value}</p>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-2-24">
|
|
|
|
<i class="fa fa-times pure-alert-close"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2023-05-24 11:35:15 +02:00
|
|
|
{if="!empty($global_errors)"}
|
|
|
|
<div class="pure-g header-alert-message pure-alert pure-alert-error pure-alert-closable" id="shaarli-errors-alert">
|
|
|
|
<div class="pure-u-2-24"></div>
|
|
|
|
<div class="pure-u-20-24">
|
|
|
|
{loop="$global_errors"}
|
|
|
|
<p>{$value}</p>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-2-24">
|
|
|
|
<i class="fa fa-times pure-alert-close"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if="!empty($global_warnings)"}
|
|
|
|
<div class="pure-g header-alert-message pure-alert pure-alert-warning pure-alert-closable" id="shaarli-warnings-alert">
|
2018-06-08 12:50:49 +02:00
|
|
|
<div class="pure-u-2-24"></div>
|
|
|
|
<div class="pure-u-20-24">
|
|
|
|
{loop="global_warnings"}
|
|
|
|
<p>{$value}</p>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-2-24">
|
|
|
|
<i class="fa fa-times pure-alert-close"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2023-05-24 11:35:15 +02:00
|
|
|
{if="!empty($global_successes)"}
|
|
|
|
<div class="pure-g header-alert-message new-version-message pure-alert pure-alert-success pure-alert-closable" id="shaarli-success-alert">
|
|
|
|
<div class="pure-u-2-24"></div>
|
|
|
|
<div class="pure-u-20-24">
|
|
|
|
{loop="$global_successes"}
|
|
|
|
<p>{$value}</p>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-2-24">
|
|
|
|
<i class="fa fa-times pure-alert-close"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="clear"></div>
|