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