aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/linklist.html
diff options
context:
space:
mode:
authorSébastien SAUVAGE <sebsauvage@sebsauvage.net>2013-02-26 10:09:41 +0100
committerSébastien SAUVAGE <sebsauvage@sebsauvage.net>2013-02-26 10:09:41 +0100
commit450342737ced8ef2864b4f83a4107a7fafcc4add (patch)
treea6d2fe843c27b5c3d88dab5581b6a06828d544b9 /tpl/linklist.html
downloadShaarli-450342737ced8ef2864b4f83a4107a7fafcc4add.tar.gz
Shaarli-450342737ced8ef2864b4f83a4107a7fafcc4add.tar.zst
Shaarli-450342737ced8ef2864b4f83a4107a7fafcc4add.zip
Initial commit (version 0.0.40 beta)v0.0.40beta
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r--tpl/linklist.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
new file mode 100644
index 00000000..bfb1fcda
--- /dev/null
+++ b/tpl/linklist.html
@@ -0,0 +1,76 @@
1<!DOCTYPE html>
2<html>
3<head>{include="includes"}</head>
4<body>
5<div id="pageheader">
6 {include="page.header"}
7 <div id="headerform" style="width:100%; white-space:nowrap;">
8 <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" id="searchform_value" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form>
9 <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="tagfilter_value" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form>
10 </div>
11</div>
12
13<div id="linklist">
14
15 {include="linklist.paging"}
16
17 {if="count($links)==0"}
18 <div id="searchcriteria">Nothing found.</i></div>
19 {else}
20 {if="$search_type=='fulltext'"}
21 <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div>
22 {/if}
23 {if="$search_type=='tags'"}
24 <div id="searchcriteria">{$result_count} results for tags <i>
25 {loop="search_crits"}
26 <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>
27 {/loop}</i></div>
28 {/if}
29 {/if}
30 <ul>
31 {loop="links"}
32 <li{if="$value.class"} class="{$value.class}"{/if}>
33 <div class="thumbnail">{$value.url|thumbnail}</div>
34 <div class="linkcontainer">
35 <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title|htmlspecialchars}</a></span>
36 {if="isLoggedIn()"}
37 <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>
38 <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
39 <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>
40 {/if}
41 <br>
42 {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
43 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
44 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
45 {else}
46 <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
47 {/if}
48 <div style="position:relative;display:inline;"><a href="http://invx.com/code/qrcode/?code={$scripturl|urlencode}%3F{$value.linkdate|smallHash}&width=200&height=200" onclick="return false;" class="qrcode"><img src="images/qrcode.png#" width="13" height="13" title="QR-Code"></a></div> -
49 <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br>
50 {if="$value.tags"}
51 <div class="linktaglist">
52 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop}
53 </div>
54 {/if}
55 </div>
56 </li>
57 {/loop}
58 </ul>
59
60 {include="linklist.paging"}
61
62</div>
63
64 {include="page.footer"}
65<script>
66$(document).ready(function() {
67 $('a.qrcode').click(function(){
68 hide_qrcode();
69 var link = $(this).attr('href');
70 $(this).after('<div class="qrcode" onclick="hide_qrcode();return false;"><img src="'+link+'#" width="200" height="200"><br>click to close</div>');
71 });
72});
73function hide_qrcode() { $('div.qrcode').remove(); }
74</script>
75</body>
76</html> \ No newline at end of file