diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 12:07:13 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-13 12:07:13 +0200 |
commit | d9f6275ebca035fec8331652c677981056793ccc (patch) | |
tree | 37a64baf4f0eba6b781040605965383d8aded2cc /tpl/default/page.header.html | |
parent | 38672ba0d1c722e5d6d33a58255ceb55e9410e46 (diff) | |
parent | d63ff87a009313141ae684ec447b902562ff6ee7 (diff) | |
download | Shaarli-d9f6275ebca035fec8331652c677981056793ccc.tar.gz Shaarli-d9f6275ebca035fec8331652c677981056793ccc.tar.zst Shaarli-d9f6275ebca035fec8331652c677981056793ccc.zip |
Merge branch 'v0.11' into stablestable
Diffstat (limited to 'tpl/default/page.header.html')
-rw-r--r-- | tpl/default/page.header.html | 55 |
1 files changed, 34 insertions, 21 deletions
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 4f6dd4d8..4f063dc3 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html | |||
@@ -1,11 +1,13 @@ | |||
1 | <div class="shaarli-menu pure-g" id="shaarli-menu"> | 1 | <div class="shaarli-menu pure-g" id="shaarli-menu"> |
2 | <div class="pure-u-lg-0 pure-u-1"> | 2 | <div class="pure-u-lg-0 pure-u-1"> |
3 | <div class="pure-menu"> | 3 | <div class="pure-menu"> |
4 | <header role="banner"> | ||
4 | <a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-mobile"> | 5 | <a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-mobile"> |
5 | <img src="img/icon.png" width="16" height="16" class="head-logo" alt="" /> | 6 | <i class="fa fa-shaarli" aria-hidden="true"></i> |
6 | {$shaarlititle} | 7 | {$shaarlititle} |
7 | </a> | 8 | </a> |
8 | <a href="#" class="menu-toggle" id="menu-toggle"><s class="bar"></s><s class="bar"></s></a> | 9 | </header> |
10 | <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> | ||
9 | </div> | 11 | </div> |
10 | </div> | 12 | </div> |
11 | <div class="pure-u-1"> | 13 | <div class="pure-u-1"> |
@@ -13,14 +15,14 @@ | |||
13 | <ul class="pure-menu-list pure-u-lg-5-6 pure-u-1"> | 15 | <ul class="pure-menu-list pure-u-lg-5-6 pure-u-1"> |
14 | <li class="pure-menu-item pure-u-0 pure-u-lg-visible"> | 16 | <li class="pure-menu-item pure-u-0 pure-u-lg-visible"> |
15 | <a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-desktop"> | 17 | <a href="{$titleLink}" class="pure-menu-link shaarli-title" id="shaarli-title-desktop"> |
16 | <img src="img/icon.png" width="16" height="16" class="head-logo" alt="" /> | 18 | <i class="fa fa-shaarli" aria-hidden="true"></i> |
17 | {$shaarlititle} | 19 | {$shaarlititle} |
18 | </a> | 20 | </a> |
19 | </li> | 21 | </li> |
20 | {if="$is_logged_in || $openshaarli"} | 22 | {if="$is_logged_in || $openshaarli"} |
21 | <li class="pure-menu-item"> | 23 | <li class="pure-menu-item"> |
22 | <a href="?do=addlink" class="pure-menu-link" id="shaarli-menu-shaare"> | 24 | <a href="?do=addlink" class="pure-menu-link" id="shaarli-menu-shaare"> |
23 | <i class="fa fa-plus" ></i> {'Shaare'|t} | 25 | <i class="fa fa-plus" aria-hidden="true"></i> {'Shaare'|t} |
24 | </a> | 26 | </a> |
25 | </li> | 27 | </li> |
26 | <li class="pure-menu-item" id="shaarli-menu-tools"> | 28 | <li class="pure-menu-item" id="shaarli-menu-tools"> |
@@ -67,27 +69,27 @@ | |||
67 | <li class="pure-menu-item" id="shaarli-menu-desktop-search"> | 69 | <li class="pure-menu-item" id="shaarli-menu-desktop-search"> |
68 | <a href="#" class="pure-menu-link subheader-opener" | 70 | <a href="#" class="pure-menu-link subheader-opener" |
69 | data-open-id="search" | 71 | data-open-id="search" |
70 | id="search-button" title="{'Search'|t}"> | 72 | id="search-button" aria-label="{'Search'|t}" title="{'Search'|t}"> |
71 | <i class="fa fa-search"></i> | 73 | <i class="fa fa-search" aria-hidden="true"></i> |
72 | </a> | 74 | </a> |
73 | </li> | 75 | </li> |
74 | <li class="pure-menu-item" id="shaarli-menu-desktop-rss"> | 76 | <li class="pure-menu-item" id="shaarli-menu-desktop-rss"> |
75 | <a href="?do={$feed_type}{$searchcrits}" class="pure-menu-link" title="{'RSS Feed'|t}"> | 77 | <a href="?do={$feed_type}{$searchcrits}" class="pure-menu-link" title="{'RSS Feed'|t}" aria-label="{'RSS Feed'|t}"> |
76 | <i class="fa fa-rss"></i> | 78 | <i class="fa fa-rss" aria-hidden="true"></i> |
77 | </a> | 79 | </a> |
78 | </li> | 80 | </li> |
79 | {if="!$is_logged_in"} | 81 | {if="!$is_logged_in"} |
80 | <li class="pure-menu-item" id="shaarli-menu-desktop-login"> | 82 | <li class="pure-menu-item" id="shaarli-menu-desktop-login"> |
81 | <a href="?do=login" class="pure-menu-link" | 83 | <a href="?do=login" class="pure-menu-link" |
82 | data-open-id="header-login-form" | 84 | data-open-id="header-login-form" |
83 | id="login-button" title="{'Login'|t}"> | 85 | id="login-button" aria-label="{'Login'|t}" title="{'Login'|t}"> |
84 | <i class="fa fa-user"></i> | 86 | <i class="fa fa-user" aria-hidden="true"></i> |
85 | </a> | 87 | </a> |
86 | </li> | 88 | </li> |
87 | {else} | 89 | {else} |
88 | <li class="pure-menu-item" id="shaarli-menu-desktop-logout"> | 90 | <li class="pure-menu-item" id="shaarli-menu-desktop-logout"> |
89 | <a href="?do=logout" class="pure-menu-link" title="{'Logout'|t}"> | 91 | <a href="?do=logout" class="pure-menu-link" aria-label="{'Logout'|t}" title="{'Logout'|t}"> |
90 | <i class="fa fa-sign-out"></i> | 92 | <i class="fa fa-sign-out" aria-hidden="true"></i> |
91 | </a> | 93 | </a> |
92 | </li> | 94 | </li> |
93 | {/if} | 95 | {/if} |
@@ -97,43 +99,54 @@ | |||
97 | </div> | 99 | </div> |
98 | </div> | 100 | </div> |
99 | 101 | ||
100 | <div id="content" class="container"> | 102 | <main id="content" class="container" role="main"> |
101 | <div id="search" class="subheader-form searchform-block header-search"> | 103 | <div id="search" class="subheader-form searchform-block header-search"> |
102 | <form method="GET" class="pure-form searchform" name="searchform"> | 104 | <form method="GET" class="pure-form searchform" name="searchform"> |
103 | <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="{'Search text'|t}" | 105 | <input type="text" id="searchform_value" name="searchterm" aria-label="{'Search text'|t}" placeholder="{'Search text'|t}" |
104 | {if="!empty($search_term)"} | 106 | {if="!empty($search_term)"} |
105 | value="{$search_term}" | 107 | value="{$search_term}" |
106 | {/if} | 108 | {/if} |
107 | > | 109 | > |
108 | <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="{'Filter by tag'|t}" | 110 | <input type="text" name="searchtags" id="tagfilter_value" aria-label="{'Filter by tag'|t}" placeholder="{'Filter by tag'|t}" |
109 | {if="!empty($search_tags)"} | 111 | {if="!empty($search_tags)"} |
110 | value="{$search_tags}" | 112 | value="{$search_tags}" |
111 | {/if} | 113 | {/if} |
112 | autocomplete="off" data-multiple data-autofirst data-minChars="1" | 114 | autocomplete="off" data-multiple data-autofirst data-minChars="1" |
113 | data-list="{loop="$tags"}{$key}, {/loop}" | 115 | data-list="{loop="$tags"}{$key}, {/loop}" |
114 | > | 116 | > |
115 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | 117 | <button type="submit" class="search-button" aria-label="{'Search'|t}"><i class="fa fa-search" aria-hidden="true"></i></button> |
116 | </form> | 118 | </form> |
117 | </div> | 119 | </div> |
118 | <div id="actions" class="subheader-form"> | 120 | <div id="actions" class="subheader-form"> |
119 | <div class="pure-g"> | 121 | <div class="pure-g"> |
120 | <div class="pure-u-1"> | 122 | <div class="pure-u-1"> |
121 | <a href="" id="actions-delete" class="button">{'Delete'|t}</a> | 123 | <a href="" id="actions-delete" class="button"> |
124 | <i class="fa fa-trash" aria-hidden="true"></i> | ||
125 | {'Delete'|t} | ||
126 | </a> | ||
127 | <a href="" class="actions-change-visibility button" data-visibility="public"> | ||
128 | <i class="fa fa-globe" aria-hidden="true"></i> | ||
129 | {'Set public'|t} | ||
130 | </a> | ||
131 | <a href="" class="actions-change-visibility button" data-visibility="private"> | ||
132 | <i class="fa fa-user-secret" aria-hidden="true"></i> | ||
133 | {'Set private'|t} | ||
134 | </a> | ||
122 | </div> | 135 | </div> |
123 | </div> | 136 | </div> |
124 | </div> | 137 | </div> |
125 | {if="!$is_logged_in"} | 138 | {if="!$is_logged_in"} |
126 | <form method="post" name="loginform"> | 139 | <form method="post" name="loginform"> |
127 | <div class="subheader-form header-login-form" id="header-login-form"> | 140 | <div class="subheader-form header-login-form" id="header-login-form"> |
128 | <input type="text" name="login" placeholder="{'Username'|t}" tabindex="3"> | 141 | <input type="text" name="login" aria-label="{'Username'|t}" placeholder="{'Username'|t}" > |
129 | <input type="password" name="password" placeholder="{'Password'|t}" tabindex="5"> | 142 | <input type="password" name="password" aria-label="{'Password'|t}" placeholder="{'Password'|t}" > |
130 | <div class="remember-me"> | 143 | <div class="remember-me"> |
131 | <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6" checked> | 144 | <input type="checkbox" name="longlastingsession" id="longlastingsession" checked> |
132 | <label for="longlastingsession">{'Remember me'|t}</label> | 145 | <label for="longlastingsession">{'Remember me'|t}</label> |
133 | </div> | 146 | </div> |
134 | <input type="hidden" name="token" value="{$token}"> | 147 | <input type="hidden" name="token" value="{$token}"> |
135 | <input type="hidden" name="returnurl"> | 148 | <input type="hidden" name="returnurl"> |
136 | <input type="submit" value="Login" tabindex="7"> | 149 | <input type="submit" value="Login"> |
137 | </div> | 150 | </div> |
138 | </form> | 151 | </form> |
139 | {/if} | 152 | {/if} |