]>
Commit | Line | Data |
---|---|---|
402b0346 | 1 | <!DOCTYPE html> |
cb974e47 | 2 | <html{if="$language !== 'auto'"} lang="{$language}"{/if}> |
402b0346 A |
3 | <head> |
4 | {include="includes"} | |
5 | </head> | |
6 | <body> | |
7 | {include="page.header"} | |
8 | ||
9 | <div class="linkcount pure-u-0 pure-u-lg-visible"> | |
10 | {if="!empty($linkcount)"} | |
11 | <span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"} | |
12 | {if="$privateLinkcount>0"} | |
13 | <br><span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"} | |
14 | {/if} | |
15 | {/if} | |
16 | </div> | |
17 | ||
29a837f3 | 18 | <input type="hidden" name="token" value="{$token}"> |
9d0fc862 | 19 | <div id="search-linklist" class="searchform-block search-linklist"> |
402b0346 | 20 | |
f210d94f LC |
21 | <form method="GET" class="pure-form searchform" name="searchform"> |
22 | <input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}" | |
23 | {if="!empty($search_term)"} | |
24 | value="{$search_term}" | |
25 | {/if} | |
26 | > | |
27 | <input type="text" tabindex="2" name="searchtags" class="searchtags" placeholder="{'Filter by tag'|t}" | |
28 | {if="!empty($search_tags)"} | |
29 | value="{$search_tags}" | |
30 | {/if} | |
31 | autocomplete="off" data-multiple data-autofirst data-minChars="1" | |
32 | data-list="{loop="$tags"}{$key}, {/loop}" | |
33 | > | |
34 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | |
35 | </form> | |
402b0346 A |
36 | </div> |
37 | ||
38 | {loop="$plugins_header.fields_toolbar"} | |
39 | <form | |
40 | {loop="$value.attr"} | |
41 | {$key}="{$value}" | |
42 | {/loop}> | |
43 | <div class="toolbar-plugin pure-u-lg-1"> | |
44 | {loop="$value.inputs"} | |
45 | <input | |
46 | {loop="$value"} | |
47 | {$key}="{$value}" | |
48 | {/loop}> | |
49 | {/loop} | |
50 | </div> | |
51 | </form> | |
52 | {/loop} | |
53 | ||
54 | <div id="linklist"> | |
374f89e7 | 55 | <div id="link-count-block" class="pure-g link-count-block"> |
402b0346 | 56 | <div class="pure-u-lg-2-24 pure-u-1-24"></div> |
94c17565 | 57 | <div id="link-count-content" class="pure-u-lg-20-24 pure-u-22-24"> |
402b0346 A |
58 | <div class="linkcount pure-u-lg-0 center"> |
59 | {if="!empty($linkcount)"} | |
60 | <span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"} | |
61 | {if="$privateLinkcount>0"} | |
62 | · <span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"} | |
63 | {/if} | |
64 | {/if} | |
65 | </div> | |
66 | ||
67 | {include="linklist.paging"} | |
68 | ||
69 | <div id="plugin_zone_start_linklist" class="plugin_zone"> | |
70 | {loop="$plugin_start_zone"} | |
71 | {$value} | |
72 | {/loop} | |
73 | </div> | |
74 | </div> | |
75 | </div> | |
76 | ||
77 | {if="count($links)==0"} | |
94c17565 | 78 | <div id="search-result-block" class="pure-g pure-alert pure-alert-error search-result"> |
402b0346 | 79 | <div class="pure-u-2-24"></div> |
94c17565 | 80 | <div id="search-result-content" class="pure-u-20-24"> |
402b0346 A |
81 | <div id="searchcriteria">{'Nothing found.'|t}</div> |
82 | </div> | |
83 | </div> | |
f210d94f | 84 | {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"} |
94c17565 | 85 | <div id="search-result-block" class="pure-g pure-alert pure-alert-success search-result"> |
402b0346 | 86 | <div class="pure-u-2-24"></div> |
94c17565 | 87 | <div id="search-result-content" class="pure-u-20-24 search-result-main"> |
12266213 | 88 | {function="sprintf(t('%s result', '%s results', $result_count), $result_count)"} |
402b0346 A |
89 | {if="!empty($search_term)"} |
90 | {'for'|t} <em><strong>{$search_term}</strong></em> | |
91 | {/if} | |
92 | {if="!empty($search_tags)"} | |
93 | {$exploded_tags=explode(' ', $search_tags)} | |
94 | {'tagged'|t} | |
95 | {loop="$exploded_tags"} | |
96 | <span class="label label-tag" title="{'Remove tag'|t}"> | |
de07aad1 | 97 | <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times" aria-hidden="true"></i></span></a> |
402b0346 A |
98 | </span> |
99 | {/loop} | |
100 | {/if} | |
7c26f662 A |
101 | {if="!empty($visibility)"} |
102 | {'with status'|t} | |
103 | <span class="label label-private"> | |
104 | {$visibility|t} | |
105 | </span> | |
106 | {/if} | |
f210d94f LC |
107 | {if="$untaggedonly"} |
108 | <span class="label label-private"> | |
109 | {'without any tag'|t} | |
110 | </span> | |
111 | {/if} | |
402b0346 A |
112 | </div> |
113 | </div> | |
114 | {/if} | |
115 | ||
94c17565 | 116 | <div id="linklist-loop-block" class="pure-g"> |
402b0346 | 117 | <div class="pure-u-lg-2-24 pure-u-1-24"></div> |
94c17565 | 118 | <div id="linklist-loop-content" class="pure-u-lg-20-24 pure-u-22-24"> |
12266213 A |
119 | {ignore}Set translation here, for performances{/ignore} |
120 | {$strPrivate=t('Private')} | |
121 | {$strEdit=t('Edit')} | |
122 | {$strDelete=t('Delete')} | |
123 | {$strFold=t('Fold')} | |
124 | {$strEdited=t('Edited: ')} | |
125 | {$strPermalink=t('Permalink')} | |
126 | {$strPermalinkLc=t('permalink')} | |
127 | {$strAddTag=t('Add tag')} | |
d9bf5b31 A |
128 | {$strToggleSticky=t('Toggle sticky')} |
129 | {$strSticky=t('Sticky')} | |
12266213 | 130 | {ignore}End of translations{/ignore} |
402b0346 A |
131 | {loop="links"} |
132 | <div class="anchor" id="{$value.shorturl}"></div> | |
402b0346 | 133 | |
94c17565 | 134 | <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}"> |
402b0346 | 135 | <div class="linklist-item-title"> |
e85b7a05 | 136 | {if="$thumbnails_enabled && !empty($value.thumbnail)"} |
7b4fea0e | 137 | <div class="linklist-item-thumbnail" style="width:{$thumbnails_width}px;height:{$thumbnails_height}px;"> |
e85b7a05 A |
138 | <div class="thumbnail"> |
139 | <a href="{$value.real_url}"> | |
140 | {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} | |
141 | <img data-src="{$value.thumbnail}#" class="b-lazy" | |
8c75c43e | 142 | src="" |
e85b7a05 A |
143 | alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" /> |
144 | </a> | |
145 | </div> | |
146 | </div> | |
94c17565 A |
147 | {/if} |
148 | ||
d3defcac A |
149 | <div class="linklist-item-editbuttons"> |
150 | {if="$value.sticky"} | |
151 | <span class="label label-sticky">{$strSticky}</span> | |
152 | {/if} | |
153 | {if="$value.private"} | |
154 | <span class="label label-private">{$strPrivate}</span> | |
155 | {/if} | |
156 | </div> | |
402b0346 A |
157 | |
158 | <h2> | |
159 | <a href="{$value.real_url}"> | |
160 | {if="strpos($value.url, $value.shorturl) === false"} | |
161 | <i class="fa fa-external-link"></i> | |
162 | {else} | |
163 | <i class="fa fa-sticky-note"></i> | |
164 | {/if} | |
165 | ||
166 | <span class="linklist-link">{$value.title}</span> | |
167 | </a> | |
168 | </h2> | |
169 | </div> | |
170 | ||
402b0346 A |
171 | {if="$value.description"} |
172 | <div class="linklist-item-description"> | |
173 | {$value.description} | |
174 | </div> | |
175 | {/if} | |
176 | ||
177 | <div class="linklist-item-infos clear"> | |
178 | {if="$value.tags"} | |
179 | <div class="linklist-item-tags"> | |
180 | <i class="fa fa-tags"></i> | |
181 | {$tag_counter=count($value.taglist)} | |
182 | {loop="value.taglist"} | |
12266213 | 183 | <span class="label label-tag" title="{$strAddTag}"> |
402b0346 A |
184 | <a href="?addtag={$value|urlencode}">{$value}</a> |
185 | </span> | |
186 | {if="$tag_counter - 1 != $counter"}·{/if} | |
187 | {/loop} | |
188 | </div> | |
189 | {/if} | |
190 | ||
94c17565 A |
191 | <div class="linklist-item-infos-date-url-block pure-g"> |
192 | <div class="linklist-item-infos-dateblock pure-u-lg-7-12 pure-u-1"> | |
89ccc83b | 193 | {if="$is_logged_in"} |
94c17565 A |
194 | <div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible"> |
195 | <span class="linklist-item-infos-controls-item ctrl-checkbox"> | |
fc574e64 | 196 | <input type="checkbox" class="link-checkbox" value="{$value.id}"> |
94c17565 A |
197 | </span> |
198 | <span class="linklist-item-infos-controls-item ctrl-edit"> | |
de07aad1 | 199 | <a href="?edit_link={$value.id}" aria-label="{$strEdit}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link" aria-hidden="true"></i></a> |
94c17565 A |
200 | </span> |
201 | <span class="linklist-item-infos-controls-item ctrl-delete"> | |
de07aad1 | 202 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" aria-label="{$strDelete}" |
94c17565 | 203 | title="{$strDelete}" class="delete-link pure-u-0 pure-u-lg-visible confirm-delete"> |
de07aad1 | 204 | <i class="fa fa-trash" aria-hidden="true"></i> |
94c17565 A |
205 | </a> |
206 | </span> | |
4154c25b A |
207 | <span class="linklist-item-infos-controls-item ctrl-pin"> |
208 | <a href="?do=pin&id={$value.id}&token={$token}" | |
de07aad1 LC |
209 | title="{$strToggleSticky}" aria-label="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> |
210 | <i class="fa fa-thumb-tack" aria-hidden="true"></i> | |
4154c25b A |
211 | </a> |
212 | </span> | |
94c17565 | 213 | </div> |
d9bf5b31 A |
214 | {else} |
215 | {if="$value.sticky"} | |
216 | <div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible"> | |
217 | <span class="linklist-item-infos-controls-item ctrl-pin"> | |
218 | <span title="{$strSticky}" class="pin-link pinned-link pure-u-0 pure-u-lg-visible"> | |
219 | <i class="fa fa-thumb-tack"></i> | |
220 | </span> | |
221 | </span> | |
222 | </div> | |
223 | {/if} | |
94c17565 | 224 | {/if} |
12266213 | 225 | <a href="?{$value.shorturl}" title="{$strPermalink}"> |
89ccc83b | 226 | {if="!$hide_timestamps || $is_logged_in"} |
12266213 | 227 | {$updated=$value.updated_timestamp ? $strEdited. format_date($value.updated) : $strPermalink} |
402b0346 A |
228 | <span class="linkdate" title="{$updated}"> |
229 | <i class="fa fa-clock-o"></i> | |
52b50310 A |
230 | {$value.created|format_date} |
231 | {if="$value.updated_timestamp"}*{/if} | |
402b0346 A |
232 | · |
233 | </span> | |
234 | {/if} | |
12266213 | 235 | {$strPermalinkLc} |
402b0346 A |
236 | </a> |
237 | ||
238 | <div class="pure-u-0 pure-u-lg-visible"> | |
239 | {if="isset($value.link_plugin)"} | |
240 | · | |
241 | {$link_plugin_counter=count($value.link_plugin)} | |
242 | {loop="$value.link_plugin"} | |
243 | {$value} | |
244 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
245 | {/loop} | |
246 | {/if} | |
247 | </div> | |
248 | </div><div | |
249 | {ignore}do not add space or line break between these div - Firefox issue{/ignore} | |
94c17565 | 250 | class="linklist-item-infos-url pure-u-lg-5-12 pure-u-1"> |
402b0346 | 251 | <a href="{$value.real_url}" title="{$value.title}"> |
de07aad1 | 252 | <i class="fa fa-link" aria-hidden="true"></i> {$value.url} |
402b0346 | 253 | </a> |
94c17565 | 254 | <div class="linklist-item-buttons pure-u-0 pure-u-lg-visible"> |
de07aad1 | 255 | <a href="#" aria-label="{$strFold}" title="{$strFold}" class="fold-button"><i class="fa fa-chevron-up" aria-hidden="true"></i></a> |
94c17565 | 256 | </div> |
402b0346 A |
257 | </div> |
258 | <div class="mobile-buttons pure-u-1 pure-u-lg-0"> | |
259 | {if="isset($value.link_plugin)"} | |
260 | {$link_plugin_counter=count($value.link_plugin)} | |
261 | {loop="$value.link_plugin"} | |
262 | {$value} | |
263 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
264 | {/loop} | |
265 | {/if} | |
89ccc83b | 266 | {if="$is_logged_in"} |
402b0346 | 267 | · |
de07aad1 | 268 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" aria-label="{$strDelete}" |
12266213 | 269 | title="{$strDelete}" class="delete-link confirm-delete"> |
de07aad1 | 270 | <i class="fa fa-trash" aria-hidden="true"></i> |
402b0346 | 271 | </a> |
94c17565 | 272 | · |
de07aad1 | 273 | <a href="?edit_link={$value.id}" aria-label="{$strEdit}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link" aria-hidden="true"></i></a> |
402b0346 A |
274 | {/if} |
275 | </div> | |
276 | </div> | |
277 | </div> | |
278 | </div> | |
279 | {/loop} | |
280 | </div> | |
281 | </div> | |
282 | </div> | |
283 | ||
284 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | |
285 | {loop="$plugin_end_zone"} | |
286 | {$value} | |
287 | {/loop} | |
288 | </div> | |
289 | ||
374f89e7 | 290 | <div id="linklist-paging-bottom-block" class="pure-g link-count-block"> |
402b0346 | 291 | <div class="pure-u-lg-2-24 pure-u-1-24"></div> |
94c17565 | 292 | <div id="linklist-paging-bottom-content" class="pure-u-lg-20-24 pure-u-22-24"> |
402b0346 A |
293 | {include="linklist.paging"} |
294 | </div> | |
295 | </div> | |
296 | ||
297 | {include="page.footer"} | |
e85b7a05 | 298 | <script src="js/thumbnails.min.js?v={$version_hash}"></script> |
402b0346 A |
299 | </body> |
300 | </html> |