]>
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 | |
348e1587 A |
9 | <!--{loop="$plugins_header.fields_toolbar"} |
10 | {$value} | |
11 | {/loop}--> | |
4ed6d1ba A |
12 | |
13 | <div id="linklist"> | |
14 | ||
348e1587 | 15 | {include="linklist.paging"} |
4ed6d1ba | 16 | |
348e1587 A |
17 | <div id="plugin_zone_start_linklist" class="plugin_zone"> |
18 | {loop="$plugin_start_zone"} | |
19 | {$value} | |
20 | {/loop} | |
21 | </div> | |
4ed6d1ba | 22 | |
348e1587 A |
23 | <!-- TODO: Search results. --> |
24 | {if="count($links)==0"} | |
25 | <div id="searchcriteria">Nothing found.</div> | |
26 | {else} | |
27 | {if="$search_type=='fulltext'"} | |
28 | <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> | |
4ed6d1ba | 29 | {/if} |
348e1587 A |
30 | {if="$search_type=='tags'"} |
31 | <div id="searchcriteria">{$result_count} results for tags <i> | |
32 | {loop="search_crits"} | |
33 | <span class="linktag" title="Remove tag"> | |
34 | <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a> | |
35 | </span> | |
36 | {/loop}</i></div> | |
37 | {/if} | |
38 | {/if} | |
39 | <div class="pure-g"> | |
40 | <div class="pure-u-2-24"></div> | |
41 | <div class="pure-u-20-24"> | |
42 | {loop="links"} | |
43 | <div class="linklist-item{if="$value.class"} {$value.class}{/if}"> | |
44 | ||
45 | <div class="linklist-item-title"> | |
46 | {if="isLoggedIn()"} | |
47 | <div class="linklist-item-editbuttons"> | |
48 | <a href="#" title="Fold" class="fold-button"><i class="fa fa-chevron-up"></i></a> | |
49 | <a href="?edit_link={$value.linkdate}" title="Edit"><i class="fa fa-pencil-square-o"></i></a> | |
50 | <a href="?delete_link={$value.linkdate}&token={$token}" title="Delete"><i class="fa fa-trash"></i></a> | |
51 | </div> | |
52 | {/if} | |
53 | ||
54 | <h2> | |
55 | <a href="{$value.real_url}" id="{$value.shorturl}"> | |
56 | {if="strpos($value.url, $value.shorturl) === false"} | |
57 | <i class="fa fa-external-link"></i> | |
4ed6d1ba | 58 | {else} |
348e1587 | 59 | <i class="fa fa-sticky-note"></i> |
4ed6d1ba A |
60 | {/if} |
61 | ||
348e1587 A |
62 | {if="$value.private"} |
63 | <span class="label label-private">Private</span> | |
4ed6d1ba A |
64 | {/if} |
65 | ||
348e1587 A |
66 | {$value.title} |
67 | </a> | |
68 | </h2> | |
69 | </div> | |
70 | ||
71 | <div class="linklist-item-thumbnail">{$value.url|thumbnail}</div> | |
4ed6d1ba | 72 | |
348e1587 A |
73 | {if="$value.description"} |
74 | <div class="linklist-item-description"> | |
75 | {$value.description} | |
4ed6d1ba | 76 | </div> |
348e1587 A |
77 | {/if} |
78 | ||
79 | <div class="linklist-item-infos"> | |
80 | {if="$value.tags"} | |
81 | <div class="linklist-item-tags"> | |
82 | <i class="fa fa-tags"></i> | |
83 | {loop="value.taglist"} | |
84 | <span class="label label-tag" title="Add tag"> | |
85 | <a href="?addtag={$value|urlencode}">{$value}</a> | |
86 | </span> | |
87 | {/loop} | |
88 | </div> | |
89 | {/if} | |
4ed6d1ba | 90 | |
348e1587 A |
91 | <div class="pure-g"> |
92 | <div class="pure-u-lg-5-8 pure-u-sm-1"> | |
93 | <a href="?{$value.shorturl}" title="Permalink"> | |
94 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | |
95 | <span class="linkdate"> | |
96 | <i class="fa fa-clock-o"></i> | |
97 | {function="strftime('%d %B %Y %H:%M', $value.timestamp)"} · | |
98 | </span> | |
99 | {/if} | |
100 | permalink · | |
101 | </a> | |
102 | ||
103 | {loop="$value.link_plugin"} | |
104 | <span>{$value}</span> · | |
105 | {/loop} | |
106 | </div> | |
107 | <div class="linklist-item-infos-url pure-u-lg-3-8 pure-u-sm-1"> | |
108 | <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a> | |
109 | </div> | |
110 | </div> | |
111 | </div> | |
112 | </div> | |
113 | {/loop} | |
4ed6d1ba | 114 | </div> |
348e1587 A |
115 | </div> |
116 | </div> | |
117 | ||
118 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | |
119 | {loop="$plugin_end_zone"} | |
120 | {$value} | |
121 | {/loop} | |
122 | </div> | |
4ed6d1ba | 123 | |
348e1587 | 124 | {include="linklist.paging"} |
4ed6d1ba A |
125 | |
126 | </div> | |
127 | ||
348e1587 | 128 | {include="page.footer"} |
4ed6d1ba A |
129 | </body> |
130 | </html> |