]>
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 | |
348e1587 A |
9 | <!--{loop="$plugins_header.fields_toolbar"} |
10 | {$value} | |
11 | {/loop}--> | |
4ed6d1ba A |
12 | |
13 | <div id="linklist"> | |
14 | ||
348e1587 | 15 | {include="linklist.paging"} |
4ed6d1ba | 16 | |
348e1587 A |
17 | <div id="plugin_zone_start_linklist" class="plugin_zone"> |
18 | {loop="$plugin_start_zone"} | |
19 | {$value} | |
20 | {/loop} | |
21 | </div> | |
4ed6d1ba | 22 | |
348e1587 | 23 | {if="count($links)==0"} |
be924797 A |
24 | <div class="pure-g pure-alert pure-alert-error search-result"> |
25 | <div class="pure-u-2-24"></div> | |
26 | <div class="pure-u-20-24"> | |
27 | <div id="searchcriteria">Nothing found.</div> | |
28 | </div> | |
29 | </div> | |
4fe87e69 | 30 | {elseif="!empty($search_term) or !empty($search_tags)"} |
be924797 A |
31 | <div class="pure-g pure-alert pure-alert-success search-result"> |
32 | <div class="pure-u-2-24"></div> | |
33 | <div class="pure-u-20-24"> | |
34 | {$result_count} results | |
35 | {if="!empty($search_term)"} | |
36 | for <em><strong>{$search_term}</strong></em> | |
37 | {/if} | |
38 | {if="!empty($search_tags)"} | |
39 | {$exploded_tags=explode(' ', $search_tags)} | |
40 | tagged | |
41 | {loop="$exploded_tags"} | |
42 | <span class="label label-tag" title="Remove tag"> | |
43 | <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a> | |
44 | </span> | |
45 | {/loop} | |
46 | {/if} | |
47 | </div> | |
4fe87e69 | 48 | </div> |
348e1587 | 49 | {/if} |
4fe87e69 | 50 | |
348e1587 A |
51 | <div class="pure-g"> |
52 | <div class="pure-u-2-24"></div> | |
53 | <div class="pure-u-20-24"> | |
54 | {loop="links"} | |
55 | <div class="linklist-item{if="$value.class"} {$value.class}{/if}"> | |
56 | ||
57 | <div class="linklist-item-title"> | |
58 | {if="isLoggedIn()"} | |
59 | <div class="linklist-item-editbuttons"> | |
60 | <a href="#" title="Fold" class="fold-button"><i class="fa fa-chevron-up"></i></a> | |
61 | <a href="?edit_link={$value.linkdate}" title="Edit"><i class="fa fa-pencil-square-o"></i></a> | |
735bda92 A |
62 | <a href="?delete_link={$value.linkdate}&token={$token}" title="Delete" class="delete-link"> |
63 | <i class="fa fa-trash"></i> | |
64 | </a> | |
348e1587 A |
65 | </div> |
66 | {/if} | |
67 | ||
68 | <h2> | |
b74d833d | 69 | <a href="{$value.real_url}" id="{$value.shorturl}" class="linklist-link"> |
348e1587 A |
70 | {if="strpos($value.url, $value.shorturl) === false"} |
71 | <i class="fa fa-external-link"></i> | |
4ed6d1ba | 72 | {else} |
348e1587 | 73 | <i class="fa fa-sticky-note"></i> |
4ed6d1ba A |
74 | {/if} |
75 | ||
348e1587 A |
76 | {if="$value.private"} |
77 | <span class="label label-private">Private</span> | |
4ed6d1ba A |
78 | {/if} |
79 | ||
348e1587 A |
80 | {$value.title} |
81 | </a> | |
82 | </h2> | |
83 | </div> | |
84 | ||
735bda92 A |
85 | {$thumb=thumbnail($value.url)} |
86 | {if="$thumb!=false"} | |
87 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
88 | {/if} | |
4ed6d1ba | 89 | |
348e1587 A |
90 | {if="$value.description"} |
91 | <div class="linklist-item-description"> | |
92 | {$value.description} | |
4ed6d1ba | 93 | </div> |
348e1587 A |
94 | {/if} |
95 | ||
735bda92 | 96 | <div class="linklist-item-infos clear"> |
348e1587 A |
97 | {if="$value.tags"} |
98 | <div class="linklist-item-tags"> | |
99 | <i class="fa fa-tags"></i> | |
100 | {loop="value.taglist"} | |
101 | <span class="label label-tag" title="Add tag"> | |
102 | <a href="?addtag={$value|urlencode}">{$value}</a> | |
103 | </span> | |
104 | {/loop} | |
105 | </div> | |
106 | {/if} | |
4ed6d1ba | 107 | |
348e1587 | 108 | <div class="pure-g"> |
f26d4d56 | 109 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> |
348e1587 | 110 | <a href="?{$value.shorturl}" title="Permalink"> |
4fe87e69 | 111 | {if="!$hide_timestamps || isLoggedIn()"} |
348e1587 A |
112 | <span class="linkdate"> |
113 | <i class="fa fa-clock-o"></i> | |
114 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"} · | |
115 | </span> | |
116 | {/if} | |
117 | permalink · | |
118 | </a> | |
119 | ||
b74d833d | 120 | {$link_plugin_counter=count($value.link_plugin)} |
348e1587 | 121 | {loop="$value.link_plugin"} |
b74d833d A |
122 | <span>{$value}</span> |
123 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
348e1587 | 124 | {/loop} |
1df7f8dc A |
125 | </div><div |
126 | {ignore}do not add space or line break between these div - Firefox issue{/ignore} | |
127 | class="linklist-item-infos-url pure-u-lg-5-8 pure-u-1"> | |
b74d833d A |
128 | <a href="{$value.real_url}" title="{$value.title}"> |
129 | <i class="fa fa-link"></i> {$value.url} | |
130 | </a> | |
348e1587 A |
131 | </div> |
132 | </div> | |
133 | </div> | |
134 | </div> | |
135 | {/loop} | |
4ed6d1ba | 136 | </div> |
348e1587 A |
137 | </div> |
138 | </div> | |
139 | ||
140 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | |
141 | {loop="$plugin_end_zone"} | |
142 | {$value} | |
143 | {/loop} | |
144 | </div> | |
4ed6d1ba | 145 | |
348e1587 | 146 | {include="linklist.paging"} |
4ed6d1ba A |
147 | |
148 | </div> | |
149 | ||
348e1587 | 150 | {include="page.footer"} |
4ed6d1ba A |
151 | </body> |
152 | </html> |