diff options
Diffstat (limited to 'tpl/default/page.header.html')
-rw-r--r-- | tpl/default/page.header.html | 213 |
1 files changed, 164 insertions, 49 deletions
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index cce61ec4..b76fc03e 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html | |||
@@ -1,59 +1,174 @@ | |||
1 | 1 | <div class="shaarli-menu pure-g" id="shaarli-menu"> | |
2 | <div id="logo" title="Share your links !" onclick="document.location='?';"></div> | 2 | <div class="pure-u-lg-0 pure-u-1"> |
3 | 3 | <div class="pure-menu"> | |
4 | <div id="linkcount" class="nomobile"> | 4 | <a href="{$titleLink}" class="pure-menu-link"> |
5 | {if="!empty($linkcount)"}{$linkcount} links{/if}<br> | 5 | <i class="fa fa-home"></i> |
6 | {if="!empty($privateLinkcount)"}{$privateLinkcount} private links{/if} | 6 | {$shaarlititle} |
7 | </a> | ||
8 | <a href="#" class="menu-toggle" id="menu-toggle"><s class="bar"></s><s class="bar"></s></a> | ||
9 | </div> | ||
10 | </div> | ||
11 | <div class="pure-u-1"> | ||
12 | <div class="pure-menu menu-transform pure-menu-horizontal pure-g"> | ||
13 | <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"> | ||
15 | <a href="{$titleLink}" class="pure-menu-link"> | ||
16 | <img src="img/icon.png" width="16" height="16" class="head-logo" alt="logo" /> | ||
17 | {$shaarlititle} | ||
18 | </a> | ||
19 | </li> | ||
20 | {if="isLoggedIn() || $openshaarli"} | ||
21 | <li class="pure-menu-item"> | ||
22 | <a href="?do=addlink" class="pure-menu-link"> | ||
23 | <i class="fa fa-plus" ></i> {'Shaare'|t} | ||
24 | </a> | ||
25 | </li> | ||
26 | <li class="pure-menu-item"> | ||
27 | <a href="?do=tools" class="pure-menu-link">{'Tools'|t}</a> | ||
28 | </li> | ||
29 | {/if} | ||
30 | <li class="pure-menu-item"> | ||
31 | <a href="?do=tagcloud" class="pure-menu-link">{'Tag cloud'|t}</a> | ||
32 | </li> | ||
33 | <li class="pure-menu-item"> | ||
34 | <a href="?do=picwall{$searchcrits}" class="pure-menu-link">{'Picture wall'|t}</a> | ||
35 | </li> | ||
36 | <li class="pure-menu-item"> | ||
37 | <a href="?do=daily" class="pure-menu-link">{'Daily'|t}</a> | ||
38 | </li> | ||
39 | {loop="$plugins_header.buttons_toolbar"} | ||
40 | <li class="pure-menu-item"> | ||
41 | <a | ||
42 | {$value.attr.class=isset($value.class) ? $value.attr.class . ' pure-menu-link' : 'pure-menu-link'} | ||
43 | {loop="$value.attr"} | ||
44 | {$key}="{$value}" | ||
45 | {/loop}> | ||
46 | {$value.html} | ||
47 | </a> | ||
48 | </li> | ||
49 | {/loop} | ||
50 | <li class="pure-menu-item pure-u-lg-0"> | ||
51 | <a href="?do=atom{$searchcrits}" class="pure-menu-link">{'RSS Feed'|t}</a> | ||
52 | </li> | ||
53 | {if="isLoggedIn()"} | ||
54 | <li class="pure-menu-item pure-u-lg-0"> | ||
55 | <a href="?do=logout" class="pure-menu-link">{'Logout'|t}</a> | ||
56 | </li> | ||
57 | {else} | ||
58 | <li class="pure-menu-item pure-u-lg-0"> | ||
59 | <a href="?do=login" class="pure-menu-link">{'Login'|t}</a> | ||
60 | </li> | ||
61 | {/if} | ||
62 | </ul> | ||
63 | <div class="header-buttons pure-u-lg-1-6 pure-u-0 pure-u-lg-visible"> | ||
64 | <ul class="pure-menu-list"> | ||
65 | <li class="pure-menu-item"> | ||
66 | <a href="#" class="pure-menu-link subheader-opener" | ||
67 | data-open-id="search" | ||
68 | id="search-button" title="{'Search'|t}"> | ||
69 | <i class="fa fa-search"></i> | ||
70 | </a> | ||
71 | </li> | ||
72 | <li class="pure-menu-item"> | ||
73 | <a href="?do=atom{$searchcrits}" class="pure-menu-link" title="{'RSS Feed'|t}"> | ||
74 | <i class="fa fa-rss"></i> | ||
75 | </a> | ||
76 | </li> | ||
77 | {if="!isLoggedIn()"} | ||
78 | <li class="pure-menu-item"> | ||
79 | <a href="?do=login" class="pure-menu-link" | ||
80 | data-open-id="header-login-form" | ||
81 | id="login-button" title="{'Login'|t}"> | ||
82 | <i class="fa fa-user"></i> | ||
83 | </a> | ||
84 | </li> | ||
85 | {else} | ||
86 | <li class="pure-menu-item"> | ||
87 | <a href="?do=logout" class="pure-menu-link" title="{'Logout'|t}"> | ||
88 | <i class="fa fa-sign-out"></i> | ||
89 | </a> | ||
90 | </li> | ||
91 | {/if} | ||
92 | </ul> | ||
93 | </div> | ||
94 | </div> | ||
95 | </div> | ||
7 | </div> | 96 | </div> |
8 | 97 | ||
9 | <div id="menu"> | 98 | <div id="content"> |
10 | <ul> | 99 | <div id="search" class="subheader-form"> |
11 | <li><span id="shaarli_title"> | 100 | <div class="pure-g"> |
12 | <a href="{$titleLink}">{$shaarlititle}</a> | 101 | <div class="pure-u-1 pure-u-lg-1-2"> |
13 | </span> | 102 | <form method="GET" class="searchform" name="searchform"> |
14 | </li> | 103 | <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="{'Search text'|t}" |
15 | 104 | {if="!empty($search_term)"} | |
16 | {if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"} | 105 | value="{$search_term}" |
17 | {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore} | 106 | {/if} |
18 | {else} | 107 | > |
19 | <li><a href="?" class="nomobile">Home</a></li> | 108 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> |
20 | {if="isLoggedIn()"} | 109 | </form> |
21 | <li><a href="?do=logout">Logout</a></li> | 110 | </div> |
22 | <li><a href="?do=tools">Tools</a></li> | 111 | <div class="pure-u-1 pure-u-lg-1-2"> |
23 | <li><a href="?do=addlink">Add link</a></li> | 112 | <form method="GET" class="tagfilter" name="tagfilter"> |
24 | {elseif="$openshaarli"} | 113 | <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="{'Filter by tag'|t}" |
25 | <li><a href="?do=tools">Tools</a></li> | 114 | {if="!empty($search_tags)"} |
26 | <li><a href="?do=addlink">Add link</a></li> | 115 | value="{$search_tags}" |
27 | {else} | 116 | {/if} |
28 | <li><a href="?do=login">Login</a></li> | 117 | autocomplete="off" data-multiple data-minChars="1" |
118 | data-list="{loop="$tags"}{$key}, {/loop}" | ||
119 | > | ||
120 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | ||
121 | </form> | ||
122 | </div> | ||
123 | </div> | ||
124 | </div> | ||
125 | {if="!isLoggedIn()"} | ||
126 | <form method="post" name="loginform"> | ||
127 | <div class="subheader-form" id="header-login-form"> | ||
128 | <input type="text" name="login" placeholder="{'Username'|t}" tabindex="3"> | ||
129 | <input type="password" name="password" placeholder="{'Password'|t}" tabindex="5"> | ||
130 | <div class="remember-me"> | ||
131 | <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6" checked> | ||
132 | <label for="longlastingsession">{'Remember me'|t}</label> | ||
133 | </div> | ||
134 | <input type="hidden" name="token" value="{$token}"> | ||
135 | <input type="hidden" name="returnurl"> | ||
136 | <input type="submit" value="Login" tabindex="7"> | ||
137 | </div> | ||
138 | </form> | ||
139 | {/if} | ||
140 | {if="!empty($newVersion) || !empty($versionError)"} | ||
141 | <div class="pure-g new-version-message pure-alert pure-alert-warning pure-alert-closable"> | ||
142 | <div class="pure-u-2-24"></div> | ||
143 | {if="$newVersion"} | ||
144 | <div class="pure-u-20-24"> | ||
145 | Shaarli {$newVersion} | ||
146 | <a href="https://github.com/shaarli/Shaarli/releases">{'is available'|t}</a>. | ||
147 | </div> | ||
29 | {/if} | 148 | {/if} |
30 | <li><a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a></li> | 149 | {if="$versionError"} |
31 | {if="$showatom"} | 150 | <div class="pure-u-20-24"> |
32 | <li><a href="{$feedurl}?do=atom{$searchcrits}" class="nomobile">ATOM Feed</a></li> | 151 | {'Error'|t}: {$versionError} |
152 | </div> | ||
33 | {/if} | 153 | {/if} |
34 | <li><a href="?do=tagcloud">Tag cloud</a></li> | 154 | <div class="pure-u-2-24"> |
35 | <li><a href="?do=picwall{$searchcrits}">Picture wall</a></li> | 155 | <i id="new-version-dismiss" class="fa fa-times pure-alert-close"></i> |
36 | <li><a href="?do=daily">Daily</a></li> | 156 | </div> |
37 | {loop="$plugins_header.buttons_toolbar"} | 157 | </div> |
38 | <li><a | ||
39 | {loop="$value.attr"} | ||
40 | {$key}="{$value}" | ||
41 | {/loop}> | ||
42 | {$value.html} | ||
43 | </a></li> | ||
44 | {/loop} | ||
45 | {/if} | 158 | {/if} |
46 | </ul> | ||
47 | </div> | ||
48 | 159 | ||
49 | {if="!empty($plugin_errors) && isLoggedIn()"} | 160 | {if="!empty($plugin_errors) && isLoggedIn()"} |
50 | <ul class="errors"> | 161 | <div class="pure-g new-version-message pure-alert pure-alert-error pure-alert-closable"> |
51 | {loop="$plugin_errors"} | 162 | <div class="pure-u-2-24"></div> |
52 | <li>{$value}</li> | 163 | <div class="pure-u-20-24"> |
164 | {loop="plugin_errors"} | ||
165 | <p>{$value}</p> | ||
53 | {/loop} | 166 | {/loop} |
54 | </ul> | 167 | </div> |
168 | <div class="pure-u-2-24"> | ||
169 | <i class="fa fa-times pure-alert-close"></i> | ||
170 | </div> | ||
171 | </div> | ||
55 | {/if} | 172 | {/if} |
56 | 173 | ||
57 | <div class="clear"></div> | 174 | <div class="clear"></div> |
58 | |||
59 | |||