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