]>
Commit | Line | Data |
---|---|---|
1 | <!DOCTYPE html> | |
2 | <html> | |
3 | <head> | |
4 | {include="includes"} | |
5 | </head> | |
6 | <body> | |
7 | {include="page.header"} | |
8 | ||
9 | <div id="linklist"> | |
10 | ||
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 | ||
20 | {include="linklist.paging"} | |
21 | ||
22 | <div id="plugin_zone_start_linklist" class="plugin_zone"> | |
23 | {loop="$plugin_start_zone"} | |
24 | {$value} | |
25 | {/loop} | |
26 | </div> | |
27 | ||
28 | {if="count($links)==0"} | |
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"> | |
32 | <div id="searchcriteria">{'Nothing found.'|t}</div> | |
33 | </div> | |
34 | </div> | |
35 | {elseif="!empty($search_term) or !empty($search_tags)"} | |
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"> | |
39 | {function="t('%s result', '%s results', $result_count)"} | |
40 | {if="!empty($search_term)"} | |
41 | {'for'|t} <em><strong>{$search_term}</strong></em> | |
42 | {/if} | |
43 | {if="!empty($search_tags)"} | |
44 | {$exploded_tags=explode(' ', $search_tags)} | |
45 | {'tagged'|t} | |
46 | {loop="$exploded_tags"} | |
47 | <span class="label label-tag" title="{'Remove tag'|t}"> | |
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> | |
53 | </div> | |
54 | {/if} | |
55 | ||
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"> | |
65 | <!-- FIXME! JS translation --> | |
66 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></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"> | |
69 | <i class="fa fa-trash"></i> | |
70 | </a> | |
71 | </div> | |
72 | {/if} | |
73 | ||
74 | <h2> | |
75 | <a href="{$value.real_url}" id="{$value.shorturl}" class="linklist-link"> | |
76 | {if="strpos($value.url, $value.shorturl) === false"} | |
77 | <i class="fa fa-external-link"></i> | |
78 | {else} | |
79 | <i class="fa fa-sticky-note"></i> | |
80 | {/if} | |
81 | ||
82 | {if="$value.private"} | |
83 | <span class="label label-private">{'Private'|t}</span> | |
84 | {/if} | |
85 | ||
86 | {$value.title} | |
87 | </a> | |
88 | </h2> | |
89 | </div> | |
90 | ||
91 | {$thumb=thumbnail($value.url)} | |
92 | {if="$thumb!=false"} | |
93 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
94 | {/if} | |
95 | ||
96 | {if="$value.description"} | |
97 | <div class="linklist-item-description"> | |
98 | {$value.description} | |
99 | </div> | |
100 | {/if} | |
101 | ||
102 | <div class="linklist-item-infos clear"> | |
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} | |
113 | ||
114 | <div class="pure-g"> | |
115 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> | |
116 | <a href="?{$value.shorturl}" title="{'Permalink'|t}"> | |
117 | {if="!$hide_timestamps || isLoggedIn()"} | |
118 | {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} | |
119 | <span class="linkdate" title="{$updated}"> | |
120 | <i class="fa fa-clock-o"></i> | |
121 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} | |
122 | · | |
123 | </span> | |
124 | {/if} | |
125 | {'permalink'|t} | |
126 | </a> | |
127 | ||
128 | {if="isset($value.link_plugin)"} | |
129 | · | |
130 | {$link_plugin_counter=count($value.link_plugin)} | |
131 | {loop="$value.link_plugin"} | |
132 | {$value} | |
133 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
134 | {/loop} | |
135 | {/if} | |
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"> | |
139 | <a href="{$value.real_url}" title="{$value.title}"> | |
140 | <i class="fa fa-link"></i> {$value.url} | |
141 | </a> | |
142 | </div> | |
143 | </div> | |
144 | </div> | |
145 | </div> | |
146 | {/loop} | |
147 | </div> | |
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> | |
156 | ||
157 | {include="linklist.paging"} | |
158 | ||
159 | {include="page.footer"} | |
160 | </body> | |
161 | </html> |