]>
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 A |
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"> | |
2bbf5d03 A |
108 | {if="$value.private"} |
109 | <span class="label label-private">{'Private'|t}</span> | |
110 | {/if} | |
ff56413e | 111 | <!-- FIXME! JS translation --> |
2bbf5d03 | 112 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> |
ff56413e | 113 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> |
348e1587 A |
114 | </div> |
115 | {/if} | |
116 | ||
117 | <h2> | |
2bbf5d03 | 118 | <a href="{$value.real_url}" id="{$value.shorturl}" class=""> |
348e1587 A |
119 | {if="strpos($value.url, $value.shorturl) === false"} |
120 | <i class="fa fa-external-link"></i> | |
4ed6d1ba | 121 | {else} |
348e1587 | 122 | <i class="fa fa-sticky-note"></i> |
4ed6d1ba A |
123 | {/if} |
124 | ||
2bbf5d03 | 125 | <span class="linklist-link">{$value.title}</span> |
348e1587 A |
126 | </a> |
127 | </h2> | |
128 | </div> | |
129 | ||
735bda92 A |
130 | {$thumb=thumbnail($value.url)} |
131 | {if="$thumb!=false"} | |
132 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
133 | {/if} | |
4ed6d1ba | 134 | |
348e1587 A |
135 | {if="$value.description"} |
136 | <div class="linklist-item-description"> | |
137 | {$value.description} | |
4ed6d1ba | 138 | </div> |
348e1587 A |
139 | {/if} |
140 | ||
735bda92 | 141 | <div class="linklist-item-infos clear"> |
348e1587 A |
142 | {if="$value.tags"} |
143 | <div class="linklist-item-tags"> | |
144 | <i class="fa fa-tags"></i> | |
b057607f | 145 | {$tag_counter=count($value.taglist)} |
348e1587 A |
146 | {loop="value.taglist"} |
147 | <span class="label label-tag" title="Add tag"> | |
148 | <a href="?addtag={$value|urlencode}">{$value}</a> | |
149 | </span> | |
b057607f | 150 | {if="$tag_counter - 1 != $counter"}·{/if} |
348e1587 A |
151 | {/loop} |
152 | </div> | |
153 | {/if} | |
4ed6d1ba | 154 | |
348e1587 | 155 | <div class="pure-g"> |
f26d4d56 | 156 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> |
ff56413e | 157 | <a href="?{$value.shorturl}" title="{'Permalink'|t}"> |
4fe87e69 | 158 | {if="!$hide_timestamps || isLoggedIn()"} |
bdf4566a A |
159 | {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} |
160 | <span class="linkdate" title="{$updated}"> | |
348e1587 | 161 | <i class="fa fa-clock-o"></i> |
bdf4566a A |
162 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} |
163 | · | |
348e1587 A |
164 | </span> |
165 | {/if} | |
c9093107 | 166 | {'permalink'|t} |
348e1587 A |
167 | </a> |
168 | ||
b057607f A |
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"> | |
c9093107 | 193 | {if="isset($value.link_plugin)"} |
c9093107 A |
194 | {$link_plugin_counter=count($value.link_plugin)} |
195 | {loop="$value.link_plugin"} | |
e722fde6 | 196 | {$value} |
c9093107 A |
197 | {if="$link_plugin_counter - 1 != $counter"}·{/if} |
198 | {/loop} | |
b057607f A |
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> | |
c9093107 | 206 | {/if} |
348e1587 A |
207 | </div> |
208 | </div> | |
209 | </div> | |
210 | </div> | |
211 | {/loop} | |
4ed6d1ba | 212 | </div> |
348e1587 A |
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> | |
4ed6d1ba | 221 | |
348e1587 | 222 | {include="linklist.paging"} |
4ed6d1ba | 223 | |
348e1587 | 224 | {include="page.footer"} |
4ed6d1ba A |
225 | </body> |
226 | </html> |