aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/linklist.html
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2017-01-06 11:40:54 +0100
committerGitHub <noreply@github.com>2017-01-06 11:40:54 +0100
commit7418f7cb60524c3bfc2f240386b5e3e7eb9b3257 (patch)
tree4b0c89c133ad1679c5db3a4f0f6b94079f776395 /tpl/default/linklist.html
parent93b1fe54fb99efff30eec0d405cc7319fbbc1f95 (diff)
parent01c6e32a02034ab119d83364c4648ce55d75543b (diff)
downloadShaarli-7418f7cb60524c3bfc2f240386b5e3e7eb9b3257.tar.gz
Shaarli-7418f7cb60524c3bfc2f240386b5e3e7eb9b3257.tar.zst
Shaarli-7418f7cb60524c3bfc2f240386b5e3e7eb9b3257.zip
Merge pull request #732 from ArthurHoaro/feature/theme-manager
Theme manager: improvements
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r--tpl/default/linklist.html151
1 files changed, 151 insertions, 0 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html
new file mode 100644
index 00000000..5accc92f
--- /dev/null
+++ b/tpl/default/linklist.html
@@ -0,0 +1,151 @@
1<!DOCTYPE html>
2<html>
3<head>
4 <link type="text/css" rel="stylesheet" href="inc/awesomplete.css#" />
5 {include="includes"}
6</head>
7<body>
8<div id="pageheader">
9 {include="page.header"}
10
11 <div id="headerform" class="search">
12 <form method="GET" class="searchform" name="searchform">
13 <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text"
14 {if="!empty($search_term)"}
15 value="{$search_term}"
16 {/if}
17 >
18 <input type="submit" value="Search" class="bigbutton">
19 </form>
20 <form method="GET" class="tagfilter" name="tagfilter">
21 <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag"
22 {if="!empty($search_tags)"}
23 value="{$search_tags}"
24 {/if}
25 autocomplete="off" class="awesomplete" data-multiple data-minChars="1"
26 data-list="{loop="$tags"}{$key}, {/loop}"
27 >
28 <input type="submit" value="Search" class="bigbutton">
29 </form>
30 {loop="$plugins_header.fields_toolbar"}
31 <form
32 {loop="$value.attr"}
33 {$key}="{$value}"
34 {/loop}>
35 {loop="$value.inputs"}
36 <input
37 {loop="$value"}
38 {$key}="{$value}"
39 {/loop}>
40 {/loop}
41 </form>
42 {/loop}
43 </div>
44</div>
45
46<div id="linklist">
47
48 {include="linklist.paging"}
49
50 <div id="plugin_zone_start_linklist" class="plugin_zone">
51 {loop="$plugin_start_zone"}
52 {$value}
53 {/loop}
54 </div>
55
56 {if="count($links)==0"}
57 <div id="searchcriteria">Nothing found.</div>
58 {elseif="!empty($search_term) or !empty($search_tags)"}
59 <div id="searchcriteria">
60 {$result_count} results
61 {if="!empty($search_term)"}
62 for <em>{$search_term}</em>
63 {/if}
64 {if="!empty($search_tags)"}
65 {$exploded_tags=explode(' ', $search_tags)}
66 tagged
67 {loop="$exploded_tags"}
68 <span class="linktag" title="Remove tag">
69 <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a>
70 </span>
71 {/loop}
72 {/if}
73 </div>
74 {/if}
75 <ul>
76 {loop="$links"}
77 <li{if="$value.class"} class="{$value.class}"{/if}>
78 <a id="{$value.shorturl}"></a>
79 <div class="thumbnail">{$value.url|thumbnail}</div>
80 <div class="linkcontainer">
81 {if="isLoggedIn()"}
82 <div class="linkeditbuttons">
83 <form method="GET" class="buttoneditform">
84 <input type="hidden" name="edit_link" value="{$value.id}">
85 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
86 </form><br>
87 <form method="GET" class="buttoneditform">
88 <input type="hidden" name="lf_linkdate" value="{$value.id}">
89 <input type="hidden" name="token" value="{$token}">
90 <input type="hidden" name="delete_link">
91 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
92 class="button_delete" onClick="return confirmDeleteLink();">
93 </form>
94 </div>
95 {/if}
96 <span class="linktitle">
97 <a href="{$value.real_url}">{$value.title}</a>
98 </span>
99 <br>
100 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
101 {if="!$hide_timestamps || isLoggedIn()"}
102 {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'}
103 <span class="linkdate" title="Permalink">
104 <a href="?{$value.shorturl}">
105 <span title="{$updated}">
106 {function="strftime('%c', $value.timestamp)"}
107 {if="$value.updated_timestamp"}*{/if}
108 </span>
109 - permalink
110 </a> -
111 </span>
112 {else}
113 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
114 {/if}
115
116 {loop="$value.link_plugin"}
117 <span>{$value}</span> -
118 {/loop}
119
120 <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
121 {if="$value.tags"}
122 <div class="linktaglist">
123 {loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
124 </div>
125 {/if}
126
127
128 </div>
129 </li>
130 {/loop}
131 </ul>
132
133 <div id="plugin_zone_end_linklist" class="plugin_zone">
134 {loop="$plugin_end_zone"}
135 {$value}
136 {/loop}
137 </div>
138
139 {include="linklist.paging"}
140
141</div>
142
143 {include="page.footer"}
144
145<script src="inc/awesomplete.min.js#"></script>
146<script src="inc/awesomplete-multiple-tags.js#"></script>
147<script>
148 awesompleteUniqueTag('#tagfilter_value');
149</script>
150</body>
151</html>