]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/linklist.html
Merge pull request #385 from ArthurHoaro/plugins-error-fix
[github/shaarli/Shaarli.git] / tpl / linklist.html
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 <div id="headerform" class="search">
11 <form method="GET" class="searchform" name="searchform">
12 <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text" value=""> <input type="submit" value="Search" class="bigbutton"></form>
13 <form method="GET" class="tagfilter" name="tagfilter">
14 <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag" value="" list="tagsList" autocomplete="off" class="awesomplete" data-minChars="1">
15 <datalist id="tagsList">
16 {loop="$tags"}<option>{$key}</option>{/loop}
17 </datalist>
18 <input type="submit" value="Search" class="bigbutton">
19 </form>
20 {loop="$plugins_header.fields_toolbar"}
21 {$value}
22 {/loop}
23 </div>
24 </div>
25
26 <div id="linklist">
27
28 {include="linklist.paging"}
29
30 <div id="plugin_zone_start_linklist" class="plugin_zone">
31 {loop="$plugin_start_zone"}
32 {$value}
33 {/loop}
34 </div>
35
36 {if="count($links)==0"}
37 <div id="searchcriteria">Nothing found.</i></div>
38 {else}
39 {if="$search_type=='fulltext'"}
40 <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div>
41 {/if}
42 {if="$search_type=='tags'"}
43 <div id="searchcriteria">{$result_count} results for tags <i>
44 {loop="search_crits"}
45 <span class="linktag" title="Remove tag"><a href="?removetag={$value}">{$value} <span class="remove">x</span></a></span>
46 {/loop}</i></div>
47 {/if}
48 {/if}
49 <ul>
50 {loop="links"}
51 <li{if="$value.class"} class="{$value.class}"{/if}>
52 <a id="{$value.shorturl}"></a>
53 <div class="thumbnail">{$value.url|thumbnail}</div>
54 <div class="linkcontainer">
55 {if="isLoggedIn()"}
56 <div class="linkeditbuttons">
57 <form method="GET" class="buttoneditform"><input type="hidden" name="edit_link" value="{$value.linkdate}"><input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"></form><br>
58 <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
59 <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>
60 </div>
61 {/if}
62 <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title}</a></span>
63 <br>
64 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
65 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
66 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{function="strftime('%c', $value.timestamp)"} - permalink</a> - </span>
67 {else}
68 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
69 {/if}
70
71 {loop="$value.link_plugin"}
72 <span>{$value}</span> -
73 {/loop}
74
75 <a href="{$value.url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
76 {if="$value.tags"}
77 <div class="linktaglist">
78 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
79 </div>
80 {/if}
81
82
83 </div>
84 </li>
85 {/loop}
86 </ul>
87
88 <div id="plugin_zone_end_linklist" class="plugin_zone">
89 {loop="$plugin_end_zone"}
90 {$value}
91 {/loop}
92 </div>
93
94 {include="linklist.paging"}
95
96 </div>
97
98 {include="page.footer"}
99
100 <script src="inc/awesomplete.min.js#"></script>
101 </body>
102 </html>