aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/page.header.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-02-21 20:30:36 +0100
committerArthurHoaro <arthur@hoa.ro>2016-08-07 12:17:36 +0200
commitdfb058c616a29cc712832e7e00a25e2f96eb44ce (patch)
treedce483cabe2d2ee886cf2187bac5079fb09ba271 /tpl/default/page.header.html
parent9fe38139b9bc9e9fb6736d8e539c217fb4e5b6f3 (diff)
downloadShaarli-dfb058c616a29cc712832e7e00a25e2f96eb44ce.tar.gz
Shaarli-dfb058c616a29cc712832e7e00a25e2f96eb44ce.tar.zst
Shaarli-dfb058c616a29cc712832e7e00a25e2f96eb44ce.zip
Shaarli header template
Diffstat (limited to 'tpl/default/page.header.html')
-rw-r--r--tpl/default/page.header.html68
1 files changed, 34 insertions, 34 deletions
diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html
index 9a4ecd85..f67f6e1f 100644
--- a/tpl/default/page.header.html
+++ b/tpl/default/page.header.html
@@ -1,6 +1,7 @@
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 <!-- FIXME! default value in PHP -->
4 <a href="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}" 5 <a href="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}"
5 class="pure-menu-link"> 6 class="pure-menu-link">
6 <i class="fa fa-home"></i> 7 <i class="fa fa-home"></i>
@@ -74,46 +75,47 @@
74 </div> 75 </div>
75</div> 76</div>
76 77
77<div id="logo" title="Share your links !" onclick="document.location='?';"></div> 78<div id="header" class="pure-u-0 pure-u-lg-visible">
79 <h1 id="header-title">
80 <a href="{if="!empty($GLOBALS['titleLink'])"}{$GLOBALS['titleLink']}{else}?{/if}">
81 {$GLOBALS['title']}
82 </a>
83 </h1>
84 <div id="linkcount">
85 {if="!empty($linkcount)"}<span class="strong">{$linkcount}</span> shaares{/if}
86 </div>
78 87
79<div id="linkcount" class="nomobile"> 88 <div id="search">
80 {if="!empty($linkcount)"}{$linkcount} links{/if} 89 <form method="GET" class="searchform" name="searchform">
90 <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text"
91 {if="!empty($search_crits) && $search_type=='fulltext'"}
92 value="{$search_crits}"
93 {/if}
94 >
95 <input type="submit" value="Search" class="bigbutton">
96 </form>
97 <form method="GET" class="tagfilter" name="tagfilter">
98 <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag"
99 {if="!empty($search_crits) && $search_type=='tags'"}
100 value="{function="implode(' ', $search_crits)"}"
101 {/if}
102 autocomplete="off" class="awesomplete" data-multiple data-minChars="1"
103 data-list="{loop="$tags"}{$key}, {/loop}"
104 >
105 <input type="submit" value="Search" class="bigbutton">
106 </form>
107 </div>
81</div> 108</div>
82 109
83<div id="menu"> 110<div id="content">
84 <ul> 111
85 <li><span id="shaarli_title">
86 <a href="{$titleLink}">{$shaarlititle}</a>
87 </span>
88 </li>
89 112
90{if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"} 113{if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"}
91 {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore} 114 {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore}
92{else} 115{else}
93<li><a href="?" class="nomobile">Home</a></li> 116
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} 117{/if}
115 </ul> 118
116</div>
117 119
118{if="!empty($plugin_errors) && isLoggedIn()"} 120{if="!empty($plugin_errors) && isLoggedIn()"}
119 <ul class="errors"> 121 <ul class="errors">
@@ -124,5 +126,3 @@
124{/if} 126{/if}
125 127
126<div class="clear"></div> 128<div class="clear"></div>
127
128