aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/linklist.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r--tpl/linklist.html20
1 files changed, 17 insertions, 3 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
index c7de5b87..70b9ff3a 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -1,9 +1,10 @@
1<!DOCTYPE html>
1<html> 2<html>
2<head>{include="includes"}</head> 3<head>{include="includes"}</head>
3<body> 4<body>
4<div id="pageheader"> 5<div id="pageheader">
5 {include="page.header"} 6 {include="page.header"}
6 <div id="headerform" style="width:100%; white-space:nowrap;";> 7 <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="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 <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>
@@ -28,7 +29,7 @@
28 <li{if="$value.class"} class="{$value.class}"{/if}> 29 <li{if="$value.class"} class="{$value.class}"{/if}>
29 <div class="thumbnail">{$value.url|thumbnail}</div> 30 <div class="thumbnail">{$value.url|thumbnail}</div>
30 <div class="linkcontainer"> 31 <div class="linkcontainer">
31 <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span> 32 <span class="linktitle"><a href="{$redirector}{$value.url|urlencode}">{$value.title|htmlspecialchars}</a></span>
32 {if="isLoggedIn()"} 33 {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="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 <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
@@ -41,10 +42,11 @@
41 {else} 42 {else}
42 <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span> 43 <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
43 {/if} 44 {/if}
45 <div style="position:relative;display:inline;"><a href="http://invx.com/code/qrcode/?code={$scripturl|urlencode}%2F{$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> -
44 <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br> 46 <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br>
45 {if="$value.tags"} 47 {if="$value.tags"}
46 <div class="linktaglist"> 48 <div class="linktaglist">
47 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|htmlspecialchars}">{$value|htmlspecialchars}</a></span> {/loop} 49 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop}
48 </div> 50 </div>
49 {/if} 51 {/if}
50 </div> 52 </div>
@@ -57,5 +59,17 @@
57</div> 59</div>
58 60
59 {include="page.footer"} 61 {include="page.footer"}
62<script>
63$('a.qrcode').click(function(){
64 hide_qrcode();
65 var link = $(this).attr('href');
66 $(this).after('<div class="qrcode" onclick="hide_qrcode();return false;"><img src="'+link+'#" width="200" height="200"><br>click to close</div>');
67});
68
69function hide_qrcode()
70{
71 $('div.qrcode').remove();
72}
73</script>
60</body> 74</body>
61</html> \ No newline at end of file 75</html> \ No newline at end of file