3 <head>{
include="includes"}
</head>
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>
15 {
include="linklist.paging"}
17 {
if="count($links)==
0"}
18 <div id=
"searchcriteria">Nothing found.
</i></div>
20 {
if="$search_type=='fulltext'"}
21 <div id=
"searchcriteria">{$result_count} results for
<i>{$search_crits}
</i></div>
23 {
if="$search_type=='tags'"}
24 <div id=
"searchcriteria">{$result_count} results for tags
<i>
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>
32 <li{
if=
"$value.class"}
class=
"{$value.class}"{/if}
>
33 <a name=
"{$value.linkdate|smallHash}" id=
"{$value.linkdate|smallHash}"></a>
34 <div class=
"thumbnail">{$value.url|thumbnail}
</div>
35 <div class=
"linkcontainer">
37 <div class=
"linkeditbuttons">
38 <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>
39 <form method=
"POST" class=
"buttoneditform"><input type=
"hidden" name=
"lf_linkdate" value=
"{$value.linkdate}">
40 <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>
43 <span class=
"linktitle"><a href=
"{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}
</a></span>
45 {
if="$value.description"}
<div class=
"linkdescription"{if
condition=
"$search_type=='permalink'"}
style=
"max-height:none !important;"{/if}
>{$value.description}
</div>{/if}
46 {
if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
47 <span class=
"linkdate" title=
"Permalink"><a href=
"?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink
</a> -
</span>
49 <span class=
"linkdate" title=
"Short link here"><a href=
"?{$value.linkdate|smallHash}">permalink
</a> -
</span>
51 <div style=
"position:relative;display:inline;"><a href=
"http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
52 onclick=
"showQrCode(this); return false;" class=
"qrcode" data-permalink=
"{$scripturl}?{$value.linkdate|smallHash}"><img src=
"images/qrcode.png#" width=
"13" height=
"13" title=
"QR-Code"></a></div> -
53 <span class=
"linkurl" title=
"Short link">{$value.url|htmlspecialchars}
</span><br>
55 <div class=
"linktaglist">
56 {
loop="value.taglist"}
<span class=
"linktag" title=
"Add tag"><a href=
"?addtag={$value|urlencode}">{$value|htmlspecialchars}
</a></span> {/loop}
64 {
include="linklist.paging"}
68 {
include="page.footer"}
70 <script language=
"JavaScript">
72 // Remove any displayed QR-Code
73 function remove_qrcode()
75 var elem = document.getElementById("permalinkQrcode");
76 if (elem) elem.parentNode.removeChild(elem);
80 // Show the QR-Code of a permalink (when the QR-Code icon is clicked).
81 function showQrCode(caller,loading=false)
83 // Dynamic javascript lib loading: We only load qr.js if the QR code icon is clicked:
84 if (typeof(qr)=='undefined') // Load qr.js only if not present.
86 if (!loading) // If javascript lib is still loading, do not append script to body.
88 var element = document.createElement("script");
89 element.src = "inc/qr.min.js";
90 document.body.appendChild(element);
92 setTimeout(function() { showQrCode(caller,true);},
200); // Retry in
200 milliseconds.
96 // Remove previous qrcode if present.
99 // Build the div which contains the QR-Code:
100 var element = document.createElement('div');
101 element.
id="permalinkQrcode";
102 // Make QR-Code div commit sepuku when clicked:
103 if ( element.attachEvent ){ element.attachEvent('onclick', 'this.parentNode.removeChild(this);' ); } // Damn IE
104 else { element.setAttribute('onclick', 'this.parentNode.removeChild(this);' ); }
106 // Build the QR-Code:
107 var image = qr.image({size:
8,value: caller.dataset.permalink});
110 element.appendChild(image);
111 element.innerHTML+= "
<br>Click to close";
112 caller.parentNode.appendChild(element);
116 element.
innerHTML="Your browser does not seem to be HTML5 compatible.";