]>
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-lg-2-24 pure-u-1-24"></div> | |
58 | <div class="pure-u-lg-20-24 pure-u-22-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 | {if="$value.private"} | |
66 | <span class="label label-private">{'Private'|t}</span> | |
67 | {/if} | |
68 | <!-- FIXME! JS translation --> | |
69 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> | |
70 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> | |
71 | </div> | |
72 | {/if} | |
73 | ||
74 | <h2> | |
75 | <a href="{$value.real_url}" id="{$value.shorturl}" class=""> | |
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 | <span class="linklist-link">{$value.title}</span> | |
83 | </a> | |
84 | </h2> | |
85 | </div> | |
86 | ||
87 | {$thumb=thumbnail($value.url)} | |
88 | {if="$thumb!=false"} | |
89 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
90 | {/if} | |
91 | ||
92 | {if="$value.description"} | |
93 | <div class="linklist-item-description"> | |
94 | {$value.description} | |
95 | </div> | |
96 | {/if} | |
97 | ||
98 | <div class="linklist-item-infos clear"> | |
99 | {if="$value.tags"} | |
100 | <div class="linklist-item-tags"> | |
101 | <i class="fa fa-tags"></i> | |
102 | {loop="value.taglist"} | |
103 | <span class="label label-tag" title="Add tag"> | |
104 | <a href="?addtag={$value|urlencode}">{$value}</a> | |
105 | </span> | |
106 | {/loop} | |
107 | </div> | |
108 | {/if} | |
109 | ||
110 | <div class="pure-g"> | |
111 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> | |
112 | <a href="?{$value.shorturl}" title="{'Permalink'|t}"> | |
113 | {if="!$hide_timestamps || isLoggedIn()"} | |
114 | {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} | |
115 | <span class="linkdate" title="{$updated}"> | |
116 | <i class="fa fa-clock-o"></i> | |
117 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} | |
118 | · | |
119 | </span> | |
120 | {/if} | |
121 | {'permalink'|t} | |
122 | </a> | |
123 | ||
124 | {if="isset($value.link_plugin)"} | |
125 | · | |
126 | {$link_plugin_counter=count($value.link_plugin)} | |
127 | {loop="$value.link_plugin"} | |
128 | {$value} | |
129 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | |
130 | {/loop} | |
131 | {/if} | |
132 | </div><div | |
133 | {ignore}do not add space or line break between these div - Firefox issue{/ignore} | |
134 | class="linklist-item-infos-url pure-u-lg-5-8 pure-u-1"> | |
135 | <a href="{$value.real_url}" title="{$value.title}"> | |
136 | <i class="fa fa-link"></i> {$value.url} | |
137 | </a> | |
138 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" title="{'Delete'|t}" class="delete-link"> | |
139 | <i class="fa fa-trash"></i> | |
140 | </a> | |
141 | </div> | |
142 | </div> | |
143 | </div> | |
144 | </div> | |
145 | {/loop} | |
146 | </div> | |
147 | </div> | |
148 | </div> | |
149 | ||
150 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | |
151 | {loop="$plugin_end_zone"} | |
152 | {$value} | |
153 | {/loop} | |
154 | </div> | |
155 | ||
156 | {include="linklist.paging"} | |
157 | ||
158 | {include="page.footer"} | |
159 | </body> | |
160 | </html> |