aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/page.header.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-02-16 23:11:36 +0100
committerArthurHoaro <arthur@hoa.ro>2016-08-07 12:17:27 +0200
commit4ed6d1babe673a38351e66da991db1cb8e2cb70c (patch)
tree88cd53480da886fdf550fcb54757427a63b3d558 /tpl/default/page.header.html
parent341dac14f0f5e3ab368e8dba88612e35ffc979a1 (diff)
downloadShaarli-4ed6d1babe673a38351e66da991db1cb8e2cb70c.tar.gz
Shaarli-4ed6d1babe673a38351e66da991db1cb8e2cb70c.tar.zst
Shaarli-4ed6d1babe673a38351e66da991db1cb8e2cb70c.zip
Work on the menu
Diffstat (limited to 'tpl/default/page.header.html')
-rw-r--r--tpl/default/page.header.html128
1 files changed, 128 insertions, 0 deletions
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html
new file mode 100644
index 00000000..9a4ecd85
--- /dev/null
+++ b/tpl/default/page.header.html
@@ -0,0 +1,128 @@
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="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}"
5 class="pure-menu-link">
6 <i class="fa fa-home"></i>
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">
13 <ul class="pure-menu-list">
14 <li class="pure-menu-item pure-menu-selected pure-u-0 pure-u-lg-visible">
15 <a href="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}"
16 class="pure-menu-link">
17 <i class="fa fa-home"></i>
18 </a>
19 </li>
20 {if="isLoggedIn()"}
21 <li class="pure-menu-item">
22 <a href="?do=addlink" class="pure-menu-link">Shaare</a>
23 </li>
24 <li class="pure-menu-item">
25 <a href="?do=tools" class="pure-menu-link">Tools</a>
26 </li>
27
28 {elseif="$GLOBALS['config']['OPEN_SHAARLI']"}
29 <li class="pure-menu-item">
30 <a href="?do=addlink" class="pure-menu-link">Shaare</a>
31 </li>
32 <li class="pure-menu-item">
33 <a href="?do=tools" class="pure-menu-link">Tools</a>
34 </li>
35 {else}
36 <li class="pure-menu-item">
37 <a href="?do=login" class="pure-menu-link">Login</a>
38 </li>
39 {/if}
40 <li class="pure-menu-item">
41 <a href="{$feedurl}?do=rss{$searchcrits}" class="pure-menu-link">RSS Feed</a>
42 </li>
43 {if="$GLOBALS['config']['SHOW_ATOM']"}
44 <li class="pure-menu-item">
45 <a href="{$feedurl}?do=atom{$searchcrits}" class="pure-menu-link">ATOM Feed</a>
46 </li>
47 {/if}
48 <li class="pure-menu-item">
49 <a href="?do=tagcloud" class="pure-menu-link">Tag cloud</a>
50 </li>
51 <li class="pure-menu-item">
52 <a href="?do=picwall{$searchcrits}" class="pure-menu-link">Picture wall</a>
53 </li>
54 <li class="pure-menu-item">
55 <a href="?do=daily" class="pure-menu-link">Daily</a>
56 </li>
57 <!-- FIXME! update plugin system to handle this -->
58 {loop="$plugins_header.buttons_toolbar"}
59 <li class="pure-menu-item">
60 <a href="{$value.url}" class="pure-menu-link">{$value.title}</a>
61 </li>
62 {/loop}
63 {if="isLoggedIn()"}
64 <li class="pure-menu-item">
65 <a href="?do=logout" class="pure-menu-link">Logout</a>
66 </li>
67 {else}
68 <li class="pure-menu-item">
69 <a href="?do=login" class="pure-menu-link">Login</a>
70 </li>
71 {/if}
72 </ul>
73 </div>
74 </div>
75</div>
76
77<div id="logo" title="Share your links !" onclick="document.location='?';"></div>
78
79<div id="linkcount" class="nomobile">
80 {if="!empty($linkcount)"}{$linkcount} links{/if}
81</div>
82
83<div id="menu">
84 <ul>
85 <li><span id="shaarli_title">
86 <a href="{$titleLink}">{$shaarlititle}</a>
87 </span>
88 </li>
89
90{if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"}
91 {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore}
92{else}
93<li><a href="?" class="nomobile">Home</a></li>
94 {if="isLoggedIn()"}
95 <li><a href="?do=logout">Logout</a></li>
96 <li><a href="?do=tools">Tools</a></li>
97 <li><a href="?do=addlink">Add link</a></li>
98 {elseif="$GLOBALS['config']['OPEN_SHAARLI']"}
99 <li><a href="?do=tools">Tools</a></li>
100 <li><a href="?do=addlink">Add link</a></li>
101 {else}
102 <li><a href="?do=login">Login</a></li>
103 {/if}
104 <li><a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a></li>
105 {if="$GLOBALS['config']['SHOW_ATOM']"}
106 <li><a href="{$feedurl}?do=atom{$searchcrits}" class="nomobile">ATOM Feed</a></li>
107 {/if}
108 <li><a href="?do=tagcloud">Tag cloud</a></li>
109 <li><a href="?do=picwall{$searchcrits}">Picture wall</a></li>
110 <li><a href="?do=daily">Daily</a></li>
111 {loop="$plugins_header.buttons_toolbar"}
112 {$value}
113 {/loop}
114{/if}
115 </ul>
116</div>
117
118{if="!empty($plugin_errors) && isLoggedIn()"}
119 <ul class="errors">
120 {loop="plugin_errors"}
121 <li>{$value}</li>
122 {/loop}
123 </ul>
124{/if}
125
126<div class="clear"></div>
127
128