aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/page.header.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-14 15:52:17 +0100
committerArthurHoaro <arthur@hoa.ro>2017-02-27 20:01:54 +0100
commit402b03464812aaec76bc841ca7dacb775baf1e03 (patch)
tree5f5ce030a71ed1ac327f60911cb22f0ca87d21cd /tpl/default/page.header.html
parent009ce9358168cc06c76fc2f4162829e552e633a3 (diff)
downloadShaarli-402b03464812aaec76bc841ca7dacb775baf1e03.tar.gz
Shaarli-402b03464812aaec76bc841ca7dacb775baf1e03.tar.zst
Shaarli-402b03464812aaec76bc841ca7dacb775baf1e03.zip
Introduce the new default Shaarli template
Diffstat (limited to 'tpl/default/page.header.html')
-rw-r--r--tpl/default/page.header.html174
1 files changed, 174 insertions, 0 deletions
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html
new file mode 100644
index 00000000..c304e5d9
--- /dev/null
+++ b/tpl/default/page.header.html
@@ -0,0 +1,174 @@
1<div class="shaarli-menu pure-g" id="shaarli-menu">
2 <div class="pure-u-lg-0 pure-u-1">
3 <div class="pure-menu">
4 <a href="{$titleLink}" class="pure-menu-link">
5 <i class="fa fa-home"></i>
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 subheader-opener"
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>
96</div>
97
98<div id="content">
99 <div id="search" class="subheader-form">
100 <div class="pure-g">
101 <div class="pure-u-1 pure-u-lg-1-2">
102 <form method="GET" class="searchform" name="searchform">
103 <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="{'Search text'|t}"
104 {if="!empty($search_term)"}
105 value="{$search_term}"
106 {/if}
107 >
108 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>
109 </form>
110 </div>
111 <div class="pure-u-1 pure-u-lg-1-2">
112 <form method="GET" class="tagfilter" name="tagfilter">
113 <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="{'Filter by tag'|t}"
114 {if="!empty($search_tags)"}
115 value="{$search_tags}"
116 {/if}
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>
148 {/if}
149 {if="$versionError"}
150 <div class="pure-u-20-24">
151 {'Error'|t}: {$versionError}
152 </div>
153 {/if}
154 <div class="pure-u-2-24">
155 <i id="new-version-dismiss" class="fa fa-times pure-alert-close"></i>
156 </div>
157 </div>
158{/if}
159
160{if="!empty($plugin_errors) && isLoggedIn()"}
161 <div class="pure-g new-version-message pure-alert pure-alert-error pure-alert-closable">
162 <div class="pure-u-2-24"></div>
163 <div class="pure-u-20-24">
164 {loop="plugin_errors"}
165 <p>{$value}</p>
166 {/loop}
167 </div>
168 <div class="pure-u-2-24">
169 <i class="fa fa-times pure-alert-close"></i>
170 </div>
171 </div>
172{/if}
173
174 <div class="clear"></div>