diff options
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r-- | tpl/linklist.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html new file mode 100644 index 00000000..c7de5b87 --- /dev/null +++ b/tpl/linklist.html | |||
@@ -0,0 +1,61 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="headerform" style="width:100%; white-space:nowrap;";> | ||
7 | <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form> | ||
8 | <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="searchtags" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form> | ||
9 | </div> | ||
10 | </div> | ||
11 | |||
12 | <div id="linklist"> | ||
13 | |||
14 | {include="linklist.paging"} | ||
15 | |||
16 | {if="$search_type=='fulltext'"} | ||
17 | <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> | ||
18 | {/if} | ||
19 | {if="$search_type=='tags'"} | ||
20 | <div id="searchcriteria">{$result_count} results for tags <i> | ||
21 | {loop="search_crits"} | ||
22 | <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span style="border-left:1px solid #aaa; padding-left:5px; color:#6767A7;">x</span></a></span> | ||
23 | {/loop}</i></div> | ||
24 | {/if} | ||
25 | |||
26 | <ul> | ||
27 | {loop="links"} | ||
28 | <li{if="$value.class"} class="{$value.class}"{/if}> | ||
29 | <div class="thumbnail">{$value.url|thumbnail}</div> | ||
30 | <div class="linkcontainer"> | ||
31 | <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span> | ||
32 | {if="isLoggedIn()"} | ||
33 | <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> | ||
34 | <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> | ||
35 | <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> | ||
36 | {/if} | ||
37 | <br> | ||
38 | {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if} | ||
39 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | ||
40 | <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> | ||
41 | {else} | ||
42 | <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span> | ||
43 | {/if} | ||
44 | <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br> | ||
45 | {if="$value.tags"} | ||
46 | <div class="linktaglist"> | ||
47 | {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|htmlspecialchars}">{$value|htmlspecialchars}</a></span> {/loop} | ||
48 | </div> | ||
49 | {/if} | ||
50 | </div> | ||
51 | </li> | ||
52 | {/loop} | ||
53 | </ul> | ||
54 | |||
55 | {include="linklist.paging"} | ||
56 | |||
57 | </div> | ||
58 | |||
59 | {include="page.footer"} | ||
60 | </body> | ||
61 | </html> \ No newline at end of file | ||