161 lines
6.1 KiB
HTML
161 lines
6.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link type="text/css" rel="stylesheet" href="inc/awesomplete.css#" />
|
|
{include="includes"}
|
|
</head>
|
|
<body>
|
|
<div id="pageheader">
|
|
{include="page.header"}
|
|
|
|
<div id="headerform" class="search">
|
|
<form method="GET" class="searchform" name="searchform">
|
|
<input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text"
|
|
{if="!empty($search_term)"}
|
|
value="{$search_term}"
|
|
{/if}
|
|
>
|
|
<input type="submit" value="Search" class="bigbutton">
|
|
</form>
|
|
<form method="GET" class="tagfilter" name="tagfilter">
|
|
<input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag"
|
|
{if="!empty($search_tags)"}
|
|
value="{$search_tags}"
|
|
{/if}
|
|
autocomplete="off" data-multiple data-minChars="1"
|
|
data-list="{loop="$tags"}{$key}, {/loop}"
|
|
>
|
|
<input type="submit" value="Search" class="bigbutton">
|
|
</form>
|
|
{loop="$plugins_header.fields_toolbar"}
|
|
<form
|
|
{loop="$value.attr"}
|
|
{$key}="{$value}"
|
|
{/loop}>
|
|
{loop="$value.inputs"}
|
|
<input
|
|
{loop="$value"}
|
|
{$key}="{$value}"
|
|
{/loop}>
|
|
{/loop}
|
|
</form>
|
|
{/loop}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="linklist">
|
|
|
|
{include="linklist.paging"}
|
|
|
|
<div id="plugin_zone_start_linklist" class="plugin_zone">
|
|
{loop="$plugin_start_zone"}
|
|
{$value}
|
|
{/loop}
|
|
</div>
|
|
|
|
{if="count($links)==0"}
|
|
<div id="searchcriteria">Nothing found.</div>
|
|
{elseif="!empty($search_term) or $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}
|
|
{elseif="$search_tags === false"}
|
|
<span class="linktag" title="Remove tag">
|
|
<a href="?">untagged <span class="remove">x</span></a>
|
|
</span>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
<ul>
|
|
{loop="$links"}
|
|
<li{if="$value.class"} class="{$value.class}"{/if}>
|
|
<a id="{$value.shorturl}"></a>
|
|
{if="$thumbnails_enabled && !empty($value.thumbnail)"}
|
|
<div class="thumbnail">
|
|
<a href="{$value.real_url}">
|
|
{ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore}
|
|
<img data-src="{$value.thumbnail}#" class="b-lazy"
|
|
src=""
|
|
alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" />
|
|
</a>
|
|
</div>
|
|
{/if}
|
|
<div class="linkcontainer">
|
|
{if="$is_logged_in"}
|
|
<div class="linkeditbuttons">
|
|
<form method="GET" class="buttoneditform">
|
|
<input type="hidden" name="edit_link" value="{$value.id}">
|
|
<input type="image" alt="Edit" src="img/edit_icon.png" title="Edit" class="button_edit">
|
|
</form><br>
|
|
<form method="GET" class="buttoneditform">
|
|
<input type="hidden" name="lf_linkdate" value="{$value.id}">
|
|
<input type="hidden" name="token" value="{$token}">
|
|
<input type="hidden" name="delete_link">
|
|
<input type="image" alt="Delete" src="img/delete_icon.png" title="Delete"
|
|
class="button_delete" onClick="return confirmDeleteLink();">
|
|
</form>
|
|
</div>
|
|
{/if}
|
|
<span class="linktitle">
|
|
<a href="{$value.real_url}">{$value.title}</a>
|
|
</span>
|
|
<br>
|
|
{if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
|
|
{if="!$hide_timestamps || $is_logged_in"}
|
|
{$updated=$value.updated_timestamp ? 'Edited: '. format_date($value.updated) : 'Permalink'}
|
|
<span class="linkdate" title="Permalink">
|
|
<a href="?{$value.shorturl}">
|
|
<span title="{$updated}">
|
|
{$value.created|format_date}
|
|
{if="$value.updated_timestamp"}*{/if}
|
|
</span>
|
|
- permalink
|
|
</a> -
|
|
</span>
|
|
{else}
|
|
<span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
|
|
{/if}
|
|
|
|
{loop="$value.link_plugin"}
|
|
<span>{$value}</span> -
|
|
{/loop}
|
|
|
|
<a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
|
|
{if="$value.tags"}
|
|
<div class="linktaglist">
|
|
{loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="./add-tag/{$value|urlencode}">{$value}</a></span> {/loop}
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
</div>
|
|
</li>
|
|
{/loop}
|
|
</ul>
|
|
|
|
<div id="plugin_zone_end_linklist" class="plugin_zone">
|
|
{loop="$plugin_end_zone"}
|
|
{$value}
|
|
{/loop}
|
|
</div>
|
|
|
|
{include="linklist.paging"}
|
|
|
|
</div>
|
|
|
|
{include="page.footer"}
|
|
<script src="js/thumbnails.min.js"></script>
|
|
|
|
</body>
|
|
</html>
|