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