-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlinklist.html
133 lines (114 loc) · 4.73 KB
/
linklist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="../../inc/awesomplete.css" />
{include="includes"}
</head>
<body>
<div id="pageheader">
{include="page.header"}
</div>
<div id="body-container">
<div id="linklist">
{include="linklist.paging"}
<div id="plugin_zone_start_linklist" class="plugin_zone">
{loop="$plugin_start_zone"}
{$value}
{/loop}
</div>
{if="count($links)==0"}
<div id="searchcriteria">Nothing found.</div>
{elseif="!empty($search_term) or !empty($search_tags)"}
<div id="searchcriteria">
{$result_count} results
{if="!empty($search_term)"}
for <em>{$search_term}</em>
{/if}
{if="!empty($search_tags)"}
{$exploded_tags=explode(' ', $search_tags)}
tagged
{loop="$exploded_tags"}
<span class="linktag" title="Remove tag">
<a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a>
</span>
{/loop}
{/if}
</div>
{/if}
<ul>
{loop="links"}
<li{if="$value.class"} class="{$value.class}"{/if}>
<a id="{$value.shorturl}"></a>
<div class="thumbnail">{$value.url|thumbnail}</div>
<div class="linkcontainer">
{if="isLoggedIn()"}
<div class="linkeditbuttons">
<form method="GET" class="buttoneditform">
<input type="hidden" name="edit_link" value="{$value.id}">
<input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
</form><br>
<form method="GET" class="buttoneditform">
<input type="hidden" name="lf_linkdate" value="{$value.id}">
<input type="hidden" name="token" value="{$token}">
<input type="hidden" name="delete_link">
<input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
class="button_delete" onClick="return confirmDeleteLink();">
</form>
</div>
{/if}
<span class="linktitle">
<a href="{$value.real_url}">{$value.title}</a>
</span>
<br>
{if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
<!-- <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br> -->
{if="$value.tags"}
<div class="linktaglist">
to {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop} {if="!$hide_timestamps || isLoggedIn()"}on <span class="linkdate"><a href="?{$value.linkdate|smallHash}">{function="strftime('%Y-%m-%d', $value.timestamp)"}</a></span>{/if}
{loop="$value.link_plugin"}
<span>{$value}</span> -
{/loop}
</div>
{/if}
</div>
</li>
{/loop}
</ul>
<div id="plugin_zone_end_linklist" class="plugin_zone">
{loop="$plugin_end_zone"}
{$value}
{/loop}
</div>
{include="linklist.paging"}
<div id="links_per_page">
Show <a href="?linksperpage=10">10</a>, <a href="?linksperpage=25">25</a>, <a href="?linksperpage=50">50</a>, <a href="?linksperpage=100">100</a>, <a href="?linksperpage=200">200</a>, <a href="?linksperpage=500">500</a> items per page.
</div>
</div>
<div id="taglist">
<h5>all tags</h5>
<ul>
<li><span class="tagnumber"> </span><form method="GET" class="tagfilter" name="tagfilter">
<input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="filter by tag"
{if="!empty($search_tags)"}
value="{$search_tags}"
{/if}
autocomplete="off" class="awesomplete" data-multiple data-minChars="1"
data-list="{loop="$tags"}{$key}, {/loop}"
>
</form>
</li>
{loop="tags"}
<li><span class="tagnumber">{$value}</span><span class="tagname"><a href="?searchtags={$key|urlencode}">{$key}</a></span></li>
{/loop}
<li></li>
</ul>
</div>
{include="page.footer"}
</div>
<script src="inc/awesomplete.min.js#"></script>
<script src="inc/awesomplete-multiple-tags.js#"></script>
<script>
awesompleteUniqueTag('#tagfilter_value');
</script>
</body>
</html>