2013-02-26 10:09:41 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2015-06-09 14:23:28 +02:00
|
|
|
<head>
|
|
|
|
<link type="text/css" rel="stylesheet" href="../inc/awesomplete.css" />
|
|
|
|
{include="includes"}
|
|
|
|
</head>
|
2013-02-26 10:09:41 +01:00
|
|
|
<body>
|
|
|
|
<div id="pageheader">
|
2013-09-25 15:17:09 +02:00
|
|
|
{include="page.header"}
|
2015-12-27 10:08:20 +01:00
|
|
|
|
2014-12-02 21:00:52 +01:00
|
|
|
<div id="headerform" class="search">
|
2015-06-23 15:32:45 +02:00
|
|
|
<form method="GET" class="searchform" name="searchform">
|
2015-12-27 10:08:20 +01:00
|
|
|
<input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text"
|
2016-02-23 19:21:14 +01:00
|
|
|
{if="!empty($search_term)"}
|
|
|
|
value="{$search_term}"
|
2015-12-27 10:08:20 +01:00
|
|
|
{/if}
|
|
|
|
>
|
2015-11-13 20:24:12 +01:00
|
|
|
<input type="submit" value="Search" class="bigbutton">
|
|
|
|
</form>
|
2015-06-09 14:23:28 +02:00
|
|
|
<form method="GET" class="tagfilter" name="tagfilter">
|
2015-12-27 10:08:20 +01:00
|
|
|
<input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag"
|
2016-02-23 19:21:14 +01:00
|
|
|
{if="!empty($search_tags)"}
|
|
|
|
value="{$search_tags}"
|
2015-12-27 10:08:20 +01:00
|
|
|
{/if}
|
|
|
|
autocomplete="off" class="awesomplete" data-multiple data-minChars="1"
|
2016-01-20 22:51:56 +01:00
|
|
|
data-list="{loop="$tags"}{$key}, {/loop}"
|
2015-12-27 10:08:20 +01:00
|
|
|
>
|
2015-06-09 14:23:28 +02:00
|
|
|
<input type="submit" value="Search" class="bigbutton">
|
|
|
|
</form>
|
2015-07-15 11:47:12 +02:00
|
|
|
{loop="$plugins_header.fields_toolbar"}
|
2016-12-01 11:38:21 +01:00
|
|
|
<form
|
|
|
|
{loop="$value.attr"}
|
|
|
|
{$key}="{$value}"
|
|
|
|
{/loop}>
|
|
|
|
{loop="$value.inputs"}
|
|
|
|
<input
|
|
|
|
{loop="$value"}
|
|
|
|
{$key}="{$value}"
|
|
|
|
{/loop}>
|
|
|
|
{/loop}
|
|
|
|
</form>
|
2015-07-15 11:47:12 +02:00
|
|
|
{/loop}
|
2013-09-25 15:17:09 +02:00
|
|
|
</div>
|
2013-02-26 10:09:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="linklist">
|
|
|
|
|
|
|
|
{include="linklist.paging"}
|
|
|
|
|
2015-07-15 11:47:12 +02:00
|
|
|
<div id="plugin_zone_start_linklist" class="plugin_zone">
|
|
|
|
{loop="$plugin_start_zone"}
|
|
|
|
{$value}
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
|
2013-02-26 10:09:41 +01:00
|
|
|
{if="count($links)==0"}
|
2016-02-23 19:21:14 +01:00
|
|
|
<div id="searchcriteria">Nothing found.</div>
|
|
|
|
{elseif="!empty($search_term) or !empty($search_tags)"}
|
|
|
|
<div id="searchcriteria">
|
|
|
|
{$result_count} results
|
|
|
|
{if="!empty($search_term)"}
|
|
|
|
for <em>{$search_term}</em>
|
|
|
|
{/if}
|
|
|
|
{if="!empty($search_tags)"}
|
|
|
|
{$exploded_tags=explode(' ', $search_tags)}
|
|
|
|
tagged
|
|
|
|
{loop="$exploded_tags"}
|
|
|
|
<span class="linktag" title="Remove tag">
|
|
|
|
<a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a>
|
|
|
|
</span>
|
|
|
|
{/loop}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2013-02-26 10:09:41 +01:00
|
|
|
{/if}
|
|
|
|
<ul>
|
2016-10-16 17:41:08 +02:00
|
|
|
{loop="$links"}
|
2013-02-26 10:09:41 +01:00
|
|
|
<li{if="$value.class"} class="{$value.class}"{/if}>
|
2015-07-15 11:47:12 +02:00
|
|
|
<a id="{$value.shorturl}"></a>
|
2013-02-26 10:09:41 +01:00
|
|
|
<div class="thumbnail">{$value.url|thumbnail}</div>
|
|
|
|
<div class="linkcontainer">
|
|
|
|
{if="isLoggedIn()"}
|
2013-02-27 17:46:45 +01:00
|
|
|
<div class="linkeditbuttons">
|
2015-11-13 20:24:12 +01:00
|
|
|
<form method="GET" class="buttoneditform">
|
2016-11-28 16:16:44 +01:00
|
|
|
<input type="hidden" name="edit_link" value="{$value.id}">
|
2015-11-13 20:24:12 +01:00
|
|
|
<input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
|
|
|
|
</form><br>
|
2016-11-05 14:13:18 +01:00
|
|
|
<form method="GET" class="buttoneditform">
|
2016-11-28 16:16:44 +01:00
|
|
|
<input type="hidden" name="lf_linkdate" value="{$value.id}">
|
2015-11-13 20:24:12 +01:00
|
|
|
<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>
|
2013-02-27 17:46:45 +01:00
|
|
|
</div>
|
2013-02-26 10:09:41 +01:00
|
|
|
{/if}
|
2015-09-18 13:26:36 +02:00
|
|
|
<span class="linktitle">
|
|
|
|
<a href="{$value.real_url}">{$value.title}</a>
|
|
|
|
</span>
|
2013-02-26 10:09:41 +01:00
|
|
|
<br>
|
2014-12-02 21:00:52 +01:00
|
|
|
{if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
|
2016-05-29 12:32:14 +02:00
|
|
|
{if="!$hide_timestamps || isLoggedIn()"}
|
2016-08-03 09:44:04 +02:00
|
|
|
{$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'}
|
|
|
|
<span class="linkdate" title="Permalink">
|
2016-11-28 16:16:44 +01:00
|
|
|
<a href="?{$value.shorturl}">
|
2016-08-03 09:44:04 +02:00
|
|
|
<span title="{$updated}">
|
|
|
|
{function="strftime('%c', $value.timestamp)"}
|
|
|
|
{if="$value.updated_timestamp"}*{/if}
|
|
|
|
</span>
|
|
|
|
- permalink
|
|
|
|
</a> -
|
|
|
|
</span>
|
2013-02-26 10:09:41 +01:00
|
|
|
{else}
|
2015-07-15 11:47:12 +02:00
|
|
|
<span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
|
2013-02-26 10:09:41 +01:00
|
|
|
{/if}
|
2015-07-15 11:47:12 +02:00
|
|
|
|
|
|
|
{loop="$value.link_plugin"}
|
|
|
|
<span>{$value}</span> -
|
|
|
|
{/loop}
|
|
|
|
|
2015-09-18 13:26:36 +02:00
|
|
|
<a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
|
2013-02-26 10:09:41 +01:00
|
|
|
{if="$value.tags"}
|
|
|
|
<div class="linktaglist">
|
2016-10-16 17:41:08 +02:00
|
|
|
{loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
|
2013-02-26 10:09:41 +01:00
|
|
|
</div>
|
|
|
|
{/if}
|
2015-07-15 11:47:12 +02:00
|
|
|
|
|
|
|
|
2013-02-26 10:09:41 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{/loop}
|
|
|
|
</ul>
|
|
|
|
|
2015-07-15 11:47:12 +02:00
|
|
|
<div id="plugin_zone_end_linklist" class="plugin_zone">
|
|
|
|
{loop="$plugin_end_zone"}
|
|
|
|
{$value}
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
|
2013-02-26 10:09:41 +01:00
|
|
|
{include="linklist.paging"}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-11-21 19:43:53 +01:00
|
|
|
{include="page.footer"}
|
2013-09-25 15:17:09 +02:00
|
|
|
|
2015-06-09 14:23:28 +02:00
|
|
|
<script src="inc/awesomplete.min.js#"></script>
|
2015-11-13 20:24:12 +01:00
|
|
|
<script src="inc/awesomplete-multiple-tags.js#"></script>
|
|
|
|
<script>
|
|
|
|
awesompleteUniqueTag('#tagfilter_value');
|
|
|
|
</script>
|
2013-02-26 10:09:41 +01:00
|
|
|
</body>
|
2013-09-25 15:17:09 +02:00
|
|
|
</html>
|