]>
Commit | Line | Data |
---|---|---|
1 | <!DOCTYPE html> | |
2 | <html> | |
3 | <head> | |
4 | {include="includes"} | |
5 | </head> | |
6 | <body> | |
7 | {include="page.header"} | |
8 | ||
9 | <div id="search-linklist"> | |
10 | <div class="pure-g"> | |
11 | <div class="pure-u-1 pure-u-lg-1-2"> | |
12 | <form method="GET" class="searchform" name="searchform"> | |
13 | <input type="text" tabindex="1" name="searchterm" placeholder="{'Search text'|t}" | |
14 | {if="!empty($search_term)"} | |
15 | value="{$search_term}" | |
16 | {/if} | |
17 | > | |
18 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | |
19 | </form> | |
20 | </div> | |
21 | <div class="pure-u-1 pure-u-lg-1-2"> | |
22 | <form method="GET" class="tagfilter" name="tagfilter"> | |
23 | <input type="text" tabindex="2" name="searchtags" placeholder="{'Filter by tag'|t}" | |
24 | {if="!empty($search_tags)"} | |
25 | value="{$search_tags}" | |
26 | {/if} | |
27 | autocomplete="off" data-multiple data-minChars="1" | |
28 | data-list="{loop="$tags"}{$key}, {/loop}" | |
29 | > | |
30 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | |
31 | </form> | |
32 | </div> | |
33 | </div> | |
34 | </div> | |
35 | ||
36 | {loop="$plugins_header.fields_toolbar"} | |
37 | <form | |
38 | {loop="$value.attr"} | |
39 | {$key}="{$value}" | |
40 | {/loop}> | |
41 | <div class="toolbar-plugin pure-u-lg-1"> | |
42 | {loop="$value.inputs"} | |
43 | <input | |
44 | {loop="$value"} | |
45 | {$key}="{$value}" | |
46 | {/loop}> | |
47 | {/loop} | |
48 | </div> | |
49 | </form> | |
50 | {/loop} | |
51 | ||
52 | <div id="linklist"> | |
53 | ||
54 | <div id="linkcount" class="center"> | |
55 | {if="!empty($linkcount)"} | |
56 | <span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"} | |
57 | {if="$privateLinkcount>0"} | |
58 | · <span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"} | |
59 | {/if} | |
60 | {/if} | |
61 | </div> | |
62 | ||
63 | {include="linklist.paging"} | |
64 | ||
65 | <div id="plugin_zone_start_linklist" class="plugin_zone"> | |
66 | {loop="$plugin_start_zone"} | |
67 | {$value} | |
68 | {/loop} | |
69 | </div> | |
70 | ||
71 | {if="count($links)==0"} | |
72 | <div class="pure-g pure-alert pure-alert-error search-result"> | |
73 | <div class="pure-u-2-24"></div> | |
74 | <div class="pure-u-20-24"> | |
75 | <div id="searchcriteria">{'Nothing found.'|t}</div> | |
76 | </div> | |
77 | </div> | |
78 | {elseif="!empty($search_term) or !empty($search_tags)"} | |
79 | <div class="pure-g pure-alert pure-alert-success search-result"> | |
80 | <div class="pure-u-2-24"></div> | |
81 | <div class="pure-u-20-24"> | |
82 | {function="t('%s result', '%s results', $result_count)"} | |
83 | {if="!empty($search_term)"} | |
84 | {'for'|t} <em><strong>{$search_term}</strong></em> | |
85 | {/if} | |
86 | {if="!empty($search_tags)"} | |
87 | {$exploded_tags=explode(' ', $search_tags)} | |
88 | {'tagged'|t} | |
89 | {loop="$exploded_tags"} | |
90 | <span class="label label-tag" title="{'Remove tag'|t}"> | |
91 | <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a> | |
92 | </span> | |
93 | {/loop} | |
94 | {/if} | |
95 | </div> | |
96 | </div> | |
97 | {/if} | |
98 | ||
99 | <div class="pure-g"> | |
100 | <div class="pure-u-lg-2-24 pure-u-1-24"></div> | |
101 | <div class="pure-u-lg-20-24 pure-u-22-24"> | |
102 | {loop="links"} | |
103 | <div class="linklist-item{if="$value.class"} {$value.class}{/if}"> | |
104 | ||
105 | <div class="linklist-item-title"> | |
106 | {if="isLoggedIn()"} | |
107 | <div class="linklist-item-editbuttons"> | |
108 | {if="$value.private"} | |
109 | <span class="label label-private">{'Private'|t}</span> | |
110 | {/if} | |
111 | <!-- FIXME! JS translation --> | |
112 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> | |
113 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> | |
114 | </div> | |
115 | {/if} | |
116 | ||
117 | <h2> | |
118 | <a href="{$value.real_url}" id="{$value.shorturl}" class=""> | |
119 | {if="strpos($value.url, $value.shorturl) === false"} | |
120 | <i class="fa fa-external-link"></i> | |
121 | {else} | |
122 | <i class="fa fa-sticky-note"></i> | |
123 | {/if} | |
124 | ||
125 | <span class="linklist-link">{$value.title}</span> | |
126 | </a> | |
127 | </h2> | |
128 | </div> | |
129 | ||
130 | {$thumb=thumbnail($value.url)} | |
131 | {if="$thumb!=false"} | |
132 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
133 | {/if} | |
134 | ||
135 | {if="$value.description"} | |
136 | <div class="linklist-item-description"> | |
137 | {$value.description} | |
138 | </div> | |
139 | {/if} | |
140 | ||
141 | <div class="linklist-item-infos clear"> | |
142 | {if="$value.tags"} | |
143 | <div class="linklist-item-tags"> | |
144 | <i class="fa fa-tags"></i> | |
145 | {$tag_counter=count($value.taglist)} | |
146 | {loop="value.taglist"} | |
147 | <span class="label label-tag" title="Add tag"> | |
148 | <a href="?addtag={$value|urlencode}">{$value}</a> | |
149 | </span> | |
150 | {if="$tag_counter - 1 != $counter"}·{/if} | |
151 | {/loop} | |
152 | </div> | |
153 | {/if} | |
154 | ||
155 | <div class="pure-g"> | |
156 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> | |
157 | <a href="?{$value.shorturl}" title="{'Permalink'|t}"> | |
158 | {if="!$hide_timestamps || isLoggedIn()"} | |
159 | {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} | |
160 | <span class="linkdate" title="{$updated}"> | |
161 | <i class="fa fa-clock-o"></i> | |
162 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} | |
163 | · | |
164 | </span> | |
165 | {/if} | |
166 | {'permalink'|t} | |
167 | </a> | |
168 | ||
169 | <div class="pure-u-0 pure-u-lg-visible"> | |
170 | {if="isset($value.link_plugin)"} | |
171 | · | |
172 | {$link_plugin_counter=count($value.link_plugin)} | |
173 | {loop="$value.link_plugin"} | |
174 | {$value} | |
175 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
176 | {/loop} | |
177 | {/if} | |
178 | </div> | |
179 | </div><div | |
180 | {ignore}do not add space or line break between these div - Firefox issue{/ignore} | |
181 | class="linklist-item-infos-url pure-u-lg-5-8 pure-u-1"> | |
182 | <a href="{$value.real_url}" title="{$value.title}"> | |
183 | <i class="fa fa-link"></i> {$value.url} | |
184 | </a> | |
185 | {if="isLoggedIn()"} | |
186 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" | |
187 | title="{'Delete'|t}" class="delete-link pure-u-0 pure-u-lg-visible"> | |
188 | <i class="fa fa-trash"></i> | |
189 | </a> | |
190 | {/if} | |
191 | </div> | |
192 | <div class="mobile-buttons pure-u-1 pure-u-lg-0"> | |
193 | {if="isset($value.link_plugin)"} | |
194 | {$link_plugin_counter=count($value.link_plugin)} | |
195 | {loop="$value.link_plugin"} | |
196 | {$value} | |
197 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
198 | {/loop} | |
199 | · | |
200 | {/if} | |
201 | {if="isLoggedIn()"} | |
202 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" | |
203 | title="{'Delete'|t}" class="delete-link"> | |
204 | <i class="fa fa-trash"></i> | |
205 | </a> | |
206 | {/if} | |
207 | </div> | |
208 | </div> | |
209 | </div> | |
210 | </div> | |
211 | {/loop} | |
212 | </div> | |
213 | </div> | |
214 | </div> | |
215 | ||
216 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | |
217 | {loop="$plugin_end_zone"} | |
218 | {$value} | |
219 | {/loop} | |
220 | </div> | |
221 | ||
222 | {include="linklist.paging"} | |
223 | ||
224 | {include="page.footer"} | |
225 | </body> | |
226 | </html> |