diff options
Diffstat (limited to 'tpl/vintage/linklist.html')
-rw-r--r-- | tpl/vintage/linklist.html | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/tpl/vintage/linklist.html b/tpl/vintage/linklist.html new file mode 100644 index 00000000..8458caa1 --- /dev/null +++ b/tpl/vintage/linklist.html | |||
@@ -0,0 +1,155 @@ | |||
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 $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 | {elseif="$search_tags === false"} | ||
73 | <span class="linktag" title="Remove tag"> | ||
74 | <a href="?">untagged <span class="remove">x</span></a> | ||
75 | </span> | ||
76 | {/if} | ||
77 | </div> | ||
78 | {/if} | ||
79 | <ul> | ||
80 | {loop="$links"} | ||
81 | <li{if="$value.class"} class="{$value.class}"{/if}> | ||
82 | <a id="{$value.shorturl}"></a> | ||
83 | <div class="thumbnail">{$value.url|thumbnail}</div> | ||
84 | <div class="linkcontainer"> | ||
85 | {if="isLoggedIn()"} | ||
86 | <div class="linkeditbuttons"> | ||
87 | <form method="GET" class="buttoneditform"> | ||
88 | <input type="hidden" name="edit_link" value="{$value.id}"> | ||
89 | <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"> | ||
90 | </form><br> | ||
91 | <form method="GET" class="buttoneditform"> | ||
92 | <input type="hidden" name="lf_linkdate" value="{$value.id}"> | ||
93 | <input type="hidden" name="token" value="{$token}"> | ||
94 | <input type="hidden" name="delete_link"> | ||
95 | <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" | ||
96 | class="button_delete" onClick="return confirmDeleteLink();"> | ||
97 | </form> | ||
98 | </div> | ||
99 | {/if} | ||
100 | <span class="linktitle"> | ||
101 | <a href="{$value.real_url}">{$value.title}</a> | ||
102 | </span> | ||
103 | <br> | ||
104 | {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if} | ||
105 | {if="!$hide_timestamps || isLoggedIn()"} | ||
106 | {$updated=$value.updated_timestamp ? 'Edited: '. format_date($value.updated) : 'Permalink'} | ||
107 | <span class="linkdate" title="Permalink"> | ||
108 | <a href="?{$value.shorturl}"> | ||
109 | <span title="{$updated}"> | ||
110 | {$value.created|format_date} | ||
111 | {if="$value.updated_timestamp"}*{/if} | ||
112 | </span> | ||
113 | - permalink | ||
114 | </a> - | ||
115 | </span> | ||
116 | {else} | ||
117 | <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span> | ||
118 | {/if} | ||
119 | |||
120 | {loop="$value.link_plugin"} | ||
121 | <span>{$value}</span> - | ||
122 | {/loop} | ||
123 | |||
124 | <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br> | ||
125 | {if="$value.tags"} | ||
126 | <div class="linktaglist"> | ||
127 | {loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop} | ||
128 | </div> | ||
129 | {/if} | ||
130 | |||
131 | |||
132 | </div> | ||
133 | </li> | ||
134 | {/loop} | ||
135 | </ul> | ||
136 | |||
137 | <div id="plugin_zone_end_linklist" class="plugin_zone"> | ||
138 | {loop="$plugin_end_zone"} | ||
139 | {$value} | ||
140 | {/loop} | ||
141 | </div> | ||
142 | |||
143 | {include="linklist.paging"} | ||
144 | |||
145 | </div> | ||
146 | |||
147 | {include="page.footer"} | ||
148 | |||
149 | <script src="inc/awesomplete.min.js#"></script> | ||
150 | <script src="inc/awesomplete-multiple-tags.js#"></script> | ||
151 | <script> | ||
152 | awesompleteUniqueTag('#tagfilter_value'); | ||
153 | </script> | ||
154 | </body> | ||
155 | </html> | ||