]>
Commit | Line | Data |
---|---|---|
4ed6d1ba A |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head> | |
348e1587 | 4 | {include="includes"} |
4ed6d1ba A |
5 | </head> |
6 | <body> | |
dfb058c6 | 7 | {include="page.header"} |
4ed6d1ba | 8 | |
b057607f A |
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 | ||
4ed6d1ba A |
52 | <div id="linklist"> |
53 | ||
9eba6ff4 A |
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 | ||
348e1587 | 63 | {include="linklist.paging"} |
4ed6d1ba | 64 | |
348e1587 A |
65 | <div id="plugin_zone_start_linklist" class="plugin_zone"> |
66 | {loop="$plugin_start_zone"} | |
67 | {$value} | |
68 | {/loop} | |
69 | </div> | |
4ed6d1ba | 70 | |
348e1587 | 71 | {if="count($links)==0"} |
be924797 A |
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"> | |
ff56413e | 75 | <div id="searchcriteria">{'Nothing found.'|t}</div> |
be924797 A |
76 | </div> |
77 | </div> | |
4fe87e69 | 78 | {elseif="!empty($search_term) or !empty($search_tags)"} |
be924797 A |
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"> | |
ff56413e | 82 | {function="t('%s result', '%s results', $result_count)"} |
be924797 | 83 | {if="!empty($search_term)"} |
ff56413e | 84 | {'for'|t} <em><strong>{$search_term}</strong></em> |
be924797 A |
85 | {/if} |
86 | {if="!empty($search_tags)"} | |
87 | {$exploded_tags=explode(' ', $search_tags)} | |
ff56413e | 88 | {'tagged'|t} |
be924797 | 89 | {loop="$exploded_tags"} |
ff56413e | 90 | <span class="label label-tag" title="{'Remove tag'|t}"> |
be924797 A |
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> | |
4fe87e69 | 96 | </div> |
348e1587 | 97 | {/if} |
4fe87e69 | 98 | |
348e1587 | 99 | <div class="pure-g"> |
2bbf5d03 A |
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"> | |
348e1587 | 102 | {loop="links"} |
d2592219 | 103 | <div class="anchor" id="{$value.shorturl}"></div> |
348e1587 A |
104 | <div class="linklist-item{if="$value.class"} {$value.class}{/if}"> |
105 | ||
106 | <div class="linklist-item-title"> | |
107 | {if="isLoggedIn()"} | |
108 | <div class="linklist-item-editbuttons"> | |
2bbf5d03 A |
109 | {if="$value.private"} |
110 | <span class="label label-private">{'Private'|t}</span> | |
111 | {/if} | |
ff56413e | 112 | <!-- FIXME! JS translation --> |
2bbf5d03 | 113 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> |
ff56413e | 114 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> |
348e1587 A |
115 | </div> |
116 | {/if} | |
117 | ||
118 | <h2> | |
d2592219 | 119 | <a href="{$value.real_url}"> |
348e1587 A |
120 | {if="strpos($value.url, $value.shorturl) === false"} |
121 | <i class="fa fa-external-link"></i> | |
4ed6d1ba | 122 | {else} |
348e1587 | 123 | <i class="fa fa-sticky-note"></i> |
4ed6d1ba A |
124 | {/if} |
125 | ||
2bbf5d03 | 126 | <span class="linklist-link">{$value.title}</span> |
348e1587 A |
127 | </a> |
128 | </h2> | |
129 | </div> | |
130 | ||
735bda92 A |
131 | {$thumb=thumbnail($value.url)} |
132 | {if="$thumb!=false"} | |
133 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
134 | {/if} | |
4ed6d1ba | 135 | |
348e1587 A |
136 | {if="$value.description"} |
137 | <div class="linklist-item-description"> | |
138 | {$value.description} | |
4ed6d1ba | 139 | </div> |
348e1587 A |
140 | {/if} |
141 | ||
735bda92 | 142 | <div class="linklist-item-infos clear"> |
348e1587 A |
143 | {if="$value.tags"} |
144 | <div class="linklist-item-tags"> | |
145 | <i class="fa fa-tags"></i> | |
b057607f | 146 | {$tag_counter=count($value.taglist)} |
348e1587 A |
147 | {loop="value.taglist"} |
148 | <span class="label label-tag" title="Add tag"> | |
149 | <a href="?addtag={$value|urlencode}">{$value}</a> | |
150 | </span> | |
b057607f | 151 | {if="$tag_counter - 1 != $counter"}·{/if} |
348e1587 A |
152 | {/loop} |
153 | </div> | |
154 | {/if} | |
4ed6d1ba | 155 | |
348e1587 | 156 | <div class="pure-g"> |
f26d4d56 | 157 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> |
ff56413e | 158 | <a href="?{$value.shorturl}" title="{'Permalink'|t}"> |
4fe87e69 | 159 | {if="!$hide_timestamps || isLoggedIn()"} |
bdf4566a A |
160 | {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} |
161 | <span class="linkdate" title="{$updated}"> | |
348e1587 | 162 | <i class="fa fa-clock-o"></i> |
bdf4566a A |
163 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} |
164 | · | |
348e1587 A |
165 | </span> |
166 | {/if} | |
c9093107 | 167 | {'permalink'|t} |
348e1587 A |
168 | </a> |
169 | ||
b057607f A |
170 | <div class="pure-u-0 pure-u-lg-visible"> |
171 | {if="isset($value.link_plugin)"} | |
172 | · | |
173 | {$link_plugin_counter=count($value.link_plugin)} | |
174 | {loop="$value.link_plugin"} | |
175 | {$value} | |
176 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
177 | {/loop} | |
178 | {/if} | |
179 | </div> | |
180 | </div><div | |
181 | {ignore}do not add space or line break between these div - Firefox issue{/ignore} | |
182 | class="linklist-item-infos-url pure-u-lg-5-8 pure-u-1"> | |
183 | <a href="{$value.real_url}" title="{$value.title}"> | |
184 | <i class="fa fa-link"></i> {$value.url} | |
185 | </a> | |
186 | {if="isLoggedIn()"} | |
187 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" | |
188 | title="{'Delete'|t}" class="delete-link pure-u-0 pure-u-lg-visible"> | |
189 | <i class="fa fa-trash"></i> | |
190 | </a> | |
191 | {/if} | |
192 | </div> | |
193 | <div class="mobile-buttons pure-u-1 pure-u-lg-0"> | |
c9093107 | 194 | {if="isset($value.link_plugin)"} |
c9093107 A |
195 | {$link_plugin_counter=count($value.link_plugin)} |
196 | {loop="$value.link_plugin"} | |
e722fde6 | 197 | {$value} |
c9093107 A |
198 | {if="$link_plugin_counter - 1 != $counter"}·{/if} |
199 | {/loop} | |
b057607f A |
200 | · |
201 | {/if} | |
202 | {if="isLoggedIn()"} | |
203 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" | |
204 | title="{'Delete'|t}" class="delete-link"> | |
205 | <i class="fa fa-trash"></i> | |
206 | </a> | |
c9093107 | 207 | {/if} |
348e1587 A |
208 | </div> |
209 | </div> | |
210 | </div> | |
211 | </div> | |
212 | {/loop} | |
4ed6d1ba | 213 | </div> |
348e1587 A |
214 | </div> |
215 | </div> | |
216 | ||
217 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | |
218 | {loop="$plugin_end_zone"} | |
219 | {$value} | |
220 | {/loop} | |
221 | </div> | |
4ed6d1ba | 222 | |
348e1587 | 223 | {include="linklist.paging"} |
4ed6d1ba | 224 | |
348e1587 | 225 | {include="page.footer"} |
4ed6d1ba A |
226 | </body> |
227 | </html> |