]>
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 | 56 | <div class="pure-g"> |
2bbf5d03 A |
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"> | |
348e1587 A |
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"> | |
2bbf5d03 A |
65 | {if="$value.private"} |
66 | <span class="label label-private">{'Private'|t}</span> | |
67 | {/if} | |
ff56413e | 68 | <!-- FIXME! JS translation --> |
2bbf5d03 | 69 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> |
ff56413e | 70 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> |
348e1587 A |
71 | </div> |
72 | {/if} | |
73 | ||
74 | <h2> | |
2bbf5d03 | 75 | <a href="{$value.real_url}" id="{$value.shorturl}" class=""> |
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 | ||
2bbf5d03 | 82 | <span class="linklist-link">{$value.title}</span> |
348e1587 A |
83 | </a> |
84 | </h2> | |
85 | </div> | |
86 | ||
735bda92 A |
87 | {$thumb=thumbnail($value.url)} |
88 | {if="$thumb!=false"} | |
89 | <div class="linklist-item-thumbnail">{$thumb}</div> | |
90 | {/if} | |
4ed6d1ba | 91 | |
348e1587 A |
92 | {if="$value.description"} |
93 | <div class="linklist-item-description"> | |
94 | {$value.description} | |
4ed6d1ba | 95 | </div> |
348e1587 A |
96 | {/if} |
97 | ||
735bda92 | 98 | <div class="linklist-item-infos clear"> |
348e1587 A |
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} | |
4ed6d1ba | 109 | |
348e1587 | 110 | <div class="pure-g"> |
f26d4d56 | 111 | <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> |
ff56413e | 112 | <a href="?{$value.shorturl}" title="{'Permalink'|t}"> |
4fe87e69 | 113 | {if="!$hide_timestamps || isLoggedIn()"} |
bdf4566a A |
114 | {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} |
115 | <span class="linkdate" title="{$updated}"> | |
348e1587 | 116 | <i class="fa fa-clock-o"></i> |
bdf4566a A |
117 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} |
118 | · | |
348e1587 A |
119 | </span> |
120 | {/if} | |
c9093107 | 121 | {'permalink'|t} |
348e1587 A |
122 | </a> |
123 | ||
c9093107 A |
124 | {if="isset($value.link_plugin)"} |
125 | · | |
126 | {$link_plugin_counter=count($value.link_plugin)} | |
127 | {loop="$value.link_plugin"} | |
e722fde6 | 128 | {$value} |
c9093107 A |
129 | {if="$link_plugin_counter - 1 != $counter"}·{/if} |
130 | {/loop} | |
131 | {/if} | |
1df7f8dc A |
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"> | |
b74d833d A |
135 | <a href="{$value.real_url}" title="{$value.title}"> |
136 | <i class="fa fa-link"></i> {$value.url} | |
137 | </a> | |
2bbf5d03 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> | |
348e1587 A |
141 | </div> |
142 | </div> | |
143 | </div> | |
144 | </div> | |
145 | {/loop} | |
4ed6d1ba | 146 | </div> |
348e1587 A |
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> | |
4ed6d1ba | 155 | |
348e1587 | 156 | {include="linklist.paging"} |
4ed6d1ba | 157 | |
348e1587 | 158 | {include="page.footer"} |
4ed6d1ba A |
159 | </body> |
160 | </html> |