2017-01-14 15:52:17 +01:00
|
|
|
<!DOCTYPE html>
|
2019-02-09 14:29:35 +01:00
|
|
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
2017-01-14 15:52:17 +01:00
|
|
|
<head>
|
|
|
|
{include="includes"}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{include="page.header"}
|
|
|
|
|
|
|
|
<div class="linkcount pure-u-0 pure-u-lg-visible">
|
|
|
|
{if="!empty($linkcount)"}
|
|
|
|
<span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"}
|
|
|
|
{if="$privateLinkcount>0"}
|
|
|
|
<br><span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
2017-03-12 19:03:50 +01:00
|
|
|
<input type="hidden" name="token" value="{$token}">
|
2018-05-10 13:26:11 +02:00
|
|
|
<div id="search-linklist" class="searchform-block search-linklist">
|
2017-01-14 15:52:17 +01:00
|
|
|
|
2017-06-01 17:55:26 +02:00
|
|
|
<form method="GET" class="pure-form searchform" name="searchform">
|
|
|
|
<input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}"
|
|
|
|
{if="!empty($search_term)"}
|
|
|
|
value="{$search_term}"
|
|
|
|
{/if}
|
|
|
|
>
|
|
|
|
<input type="text" tabindex="2" name="searchtags" class="searchtags" placeholder="{'Filter by tag'|t}"
|
|
|
|
{if="!empty($search_tags)"}
|
|
|
|
value="{$search_tags}"
|
|
|
|
{/if}
|
|
|
|
autocomplete="off" data-multiple data-autofirst data-minChars="1"
|
|
|
|
data-list="{loop="$tags"}{$key}, {/loop}"
|
|
|
|
>
|
|
|
|
<button type="submit" class="search-button"><i class="fa fa-search"></i></button>
|
|
|
|
</form>
|
2017-01-14 15:52:17 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{loop="$plugins_header.fields_toolbar"}
|
|
|
|
<form
|
|
|
|
{loop="$value.attr"}
|
|
|
|
{$key}="{$value}"
|
|
|
|
{/loop}>
|
|
|
|
<div class="toolbar-plugin pure-u-lg-1">
|
|
|
|
{loop="$value.inputs"}
|
|
|
|
<input
|
|
|
|
{loop="$value"}
|
|
|
|
{$key}="{$value}"
|
|
|
|
{/loop}>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{/loop}
|
|
|
|
|
|
|
|
<div id="linklist">
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="link-count-block" class="pure-g">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="pure-u-lg-2-24 pure-u-1-24"></div>
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="link-count-content" class="pure-u-lg-20-24 pure-u-22-24">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="linkcount pure-u-lg-0 center">
|
|
|
|
{if="!empty($linkcount)"}
|
|
|
|
<span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"}
|
|
|
|
{if="$privateLinkcount>0"}
|
|
|
|
· <span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{include="linklist.paging"}
|
|
|
|
|
|
|
|
<div id="plugin_zone_start_linklist" class="plugin_zone">
|
|
|
|
{loop="$plugin_start_zone"}
|
|
|
|
{$value}
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{if="count($links)==0"}
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="search-result-block" class="pure-g pure-alert pure-alert-error search-result">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="pure-u-2-24"></div>
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="search-result-content" class="pure-u-20-24">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div id="searchcriteria">{'Nothing found.'|t}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-01 17:55:26 +02:00
|
|
|
{elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"}
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="search-result-block" class="pure-g pure-alert pure-alert-success search-result">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="pure-u-2-24"></div>
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="search-result-content" class="pure-u-20-24 search-result-main">
|
2017-05-09 18:12:15 +02:00
|
|
|
{function="sprintf(t('%s result', '%s results', $result_count), $result_count)"}
|
2017-01-14 15:52:17 +01:00
|
|
|
{if="!empty($search_term)"}
|
|
|
|
{'for'|t} <em><strong>{$search_term}</strong></em>
|
|
|
|
{/if}
|
|
|
|
{if="!empty($search_tags)"}
|
|
|
|
{$exploded_tags=explode(' ', $search_tags)}
|
|
|
|
{'tagged'|t}
|
|
|
|
{loop="$exploded_tags"}
|
|
|
|
<span class="label label-tag" title="{'Remove tag'|t}">
|
2019-03-02 13:32:36 +01:00
|
|
|
<a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times" aria-hidden="true"></i></span></a>
|
2017-01-14 15:52:17 +01:00
|
|
|
</span>
|
|
|
|
{/loop}
|
|
|
|
{/if}
|
2017-03-08 19:57:15 +01:00
|
|
|
{if="!empty($visibility)"}
|
|
|
|
{'with status'|t}
|
|
|
|
<span class="label label-private">
|
|
|
|
{$visibility|t}
|
|
|
|
</span>
|
|
|
|
{/if}
|
2017-06-01 17:55:26 +02:00
|
|
|
{if="$untaggedonly"}
|
|
|
|
<span class="label label-private">
|
|
|
|
{'without any tag'|t}
|
|
|
|
</span>
|
|
|
|
{/if}
|
2017-01-14 15:52:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="linklist-loop-block" class="pure-g">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="pure-u-lg-2-24 pure-u-1-24"></div>
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="linklist-loop-content" class="pure-u-lg-20-24 pure-u-22-24">
|
2017-05-09 18:12:15 +02:00
|
|
|
{ignore}Set translation here, for performances{/ignore}
|
|
|
|
{$strPrivate=t('Private')}
|
|
|
|
{$strEdit=t('Edit')}
|
|
|
|
{$strDelete=t('Delete')}
|
|
|
|
{$strFold=t('Fold')}
|
|
|
|
{$strEdited=t('Edited: ')}
|
|
|
|
{$strPermalink=t('Permalink')}
|
|
|
|
{$strPermalinkLc=t('permalink')}
|
|
|
|
{$strAddTag=t('Add tag')}
|
2018-10-06 13:09:11 +02:00
|
|
|
{$strToggleSticky=t('Toggle sticky')}
|
|
|
|
{$strSticky=t('Sticky')}
|
2017-05-09 18:12:15 +02:00
|
|
|
{ignore}End of translations{/ignore}
|
2017-01-14 15:52:17 +01:00
|
|
|
{loop="links"}
|
|
|
|
<div class="anchor" id="{$value.shorturl}"></div>
|
|
|
|
|
2017-09-30 14:14:40 +02:00
|
|
|
<div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="linklist-item-title">
|
2017-11-11 14:01:21 +01:00
|
|
|
{if="$thumbnails_enabled && !empty($value.thumbnail)"}
|
2018-07-17 13:13:26 +02:00
|
|
|
<div class="linklist-item-thumbnail" style="width:{$thumbnails_width}px;height:{$thumbnails_height}px;">
|
2017-11-11 14:01:21 +01:00
|
|
|
<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"
|
2018-08-14 11:43:54 +02:00
|
|
|
src=""
|
2017-11-11 14:01:21 +01:00
|
|
|
alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-30 14:14:40 +02:00
|
|
|
{/if}
|
|
|
|
|
2019-04-22 11:23:47 +02:00
|
|
|
<div class="linklist-item-editbuttons">
|
|
|
|
{if="$value.sticky"}
|
|
|
|
<span class="label label-sticky">{$strSticky}</span>
|
|
|
|
{/if}
|
|
|
|
{if="$value.private"}
|
|
|
|
<span class="label label-private">{$strPrivate}</span>
|
|
|
|
{/if}
|
|
|
|
</div>
|
2017-01-14 15:52:17 +01:00
|
|
|
|
|
|
|
<h2>
|
|
|
|
<a href="{$value.real_url}">
|
|
|
|
{if="strpos($value.url, $value.shorturl) === false"}
|
|
|
|
<i class="fa fa-external-link"></i>
|
|
|
|
{else}
|
|
|
|
<i class="fa fa-sticky-note"></i>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<span class="linklist-link">{$value.title}</span>
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{if="$value.description"}
|
|
|
|
<div class="linklist-item-description">
|
|
|
|
{$value.description}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div class="linklist-item-infos clear">
|
|
|
|
{if="$value.tags"}
|
|
|
|
<div class="linklist-item-tags">
|
|
|
|
<i class="fa fa-tags"></i>
|
|
|
|
{$tag_counter=count($value.taglist)}
|
|
|
|
{loop="value.taglist"}
|
2017-05-09 18:12:15 +02:00
|
|
|
<span class="label label-tag" title="{$strAddTag}">
|
2017-01-14 15:52:17 +01:00
|
|
|
<a href="?addtag={$value|urlencode}">{$value}</a>
|
|
|
|
</span>
|
|
|
|
{if="$tag_counter - 1 != $counter"}·{/if}
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2017-09-30 14:14:40 +02:00
|
|
|
<div class="linklist-item-infos-date-url-block pure-g">
|
|
|
|
<div class="linklist-item-infos-dateblock pure-u-lg-7-12 pure-u-1">
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="$is_logged_in"}
|
2017-09-30 14:14:40 +02:00
|
|
|
<div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible">
|
|
|
|
<span class="linklist-item-infos-controls-item ctrl-checkbox">
|
2018-08-13 13:13:26 +02:00
|
|
|
<input type="checkbox" class="link-checkbox" value="{$value.id}">
|
2017-09-30 14:14:40 +02:00
|
|
|
</span>
|
|
|
|
<span class="linklist-item-infos-controls-item ctrl-edit">
|
2019-03-02 13:32:36 +01:00
|
|
|
<a href="?edit_link={$value.id}" aria-label="{$strEdit}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link" aria-hidden="true"></i></a>
|
2017-09-30 14:14:40 +02:00
|
|
|
</span>
|
|
|
|
<span class="linklist-item-infos-controls-item ctrl-delete">
|
2019-03-02 13:32:36 +01:00
|
|
|
<a href="?delete_link&lf_linkdate={$value.id}&token={$token}" aria-label="{$strDelete}"
|
2017-09-30 14:14:40 +02:00
|
|
|
title="{$strDelete}" class="delete-link pure-u-0 pure-u-lg-visible confirm-delete">
|
2019-03-02 13:32:36 +01:00
|
|
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
2017-09-30 14:14:40 +02:00
|
|
|
</a>
|
|
|
|
</span>
|
2018-05-22 22:44:38 +02:00
|
|
|
<span class="linklist-item-infos-controls-item ctrl-pin">
|
|
|
|
<a href="?do=pin&id={$value.id}&token={$token}"
|
2019-03-02 13:32:36 +01:00
|
|
|
title="{$strToggleSticky}" aria-label="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible">
|
|
|
|
<i class="fa fa-thumb-tack" aria-hidden="true"></i>
|
2018-05-22 22:44:38 +02:00
|
|
|
</a>
|
|
|
|
</span>
|
2017-09-30 14:14:40 +02:00
|
|
|
</div>
|
2018-10-06 13:09:11 +02:00
|
|
|
{else}
|
|
|
|
{if="$value.sticky"}
|
|
|
|
<div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible">
|
|
|
|
<span class="linklist-item-infos-controls-item ctrl-pin">
|
|
|
|
<span title="{$strSticky}" class="pin-link pinned-link pure-u-0 pure-u-lg-visible">
|
|
|
|
<i class="fa fa-thumb-tack"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2017-09-30 14:14:40 +02:00
|
|
|
{/if}
|
2017-05-09 18:12:15 +02:00
|
|
|
<a href="?{$value.shorturl}" title="{$strPermalink}">
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="!$hide_timestamps || $is_logged_in"}
|
2017-05-09 18:12:15 +02:00
|
|
|
{$updated=$value.updated_timestamp ? $strEdited. format_date($value.updated) : $strPermalink}
|
2017-01-14 15:52:17 +01:00
|
|
|
<span class="linkdate" title="{$updated}">
|
|
|
|
<i class="fa fa-clock-o"></i>
|
2017-01-07 14:30:42 +01:00
|
|
|
{$value.created|format_date}
|
|
|
|
{if="$value.updated_timestamp"}*{/if}
|
2017-01-14 15:52:17 +01:00
|
|
|
·
|
|
|
|
</span>
|
|
|
|
{/if}
|
2017-05-09 18:12:15 +02:00
|
|
|
{$strPermalinkLc}
|
2017-01-14 15:52:17 +01:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="pure-u-0 pure-u-lg-visible">
|
|
|
|
{if="isset($value.link_plugin)"}
|
|
|
|
·
|
|
|
|
{$link_plugin_counter=count($value.link_plugin)}
|
|
|
|
{loop="$value.link_plugin"}
|
|
|
|
{$value}
|
|
|
|
{if="$link_plugin_counter - 1 != $counter"}·{/if}
|
|
|
|
{/loop}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div><div
|
|
|
|
{ignore}do not add space or line break between these div - Firefox issue{/ignore}
|
2017-09-30 14:14:40 +02:00
|
|
|
class="linklist-item-infos-url pure-u-lg-5-12 pure-u-1">
|
2017-01-14 15:52:17 +01:00
|
|
|
<a href="{$value.real_url}" title="{$value.title}">
|
2019-03-02 13:32:36 +01:00
|
|
|
<i class="fa fa-link" aria-hidden="true"></i> {$value.url}
|
2017-01-14 15:52:17 +01:00
|
|
|
</a>
|
2017-09-30 14:14:40 +02:00
|
|
|
<div class="linklist-item-buttons pure-u-0 pure-u-lg-visible">
|
2019-03-02 13:32:36 +01:00
|
|
|
<a href="#" aria-label="{$strFold}" title="{$strFold}" class="fold-button"><i class="fa fa-chevron-up" aria-hidden="true"></i></a>
|
2017-09-30 14:14:40 +02:00
|
|
|
</div>
|
2017-01-14 15:52:17 +01:00
|
|
|
</div>
|
|
|
|
<div class="mobile-buttons pure-u-1 pure-u-lg-0">
|
|
|
|
{if="isset($value.link_plugin)"}
|
|
|
|
{$link_plugin_counter=count($value.link_plugin)}
|
|
|
|
{loop="$value.link_plugin"}
|
|
|
|
{$value}
|
|
|
|
{if="$link_plugin_counter - 1 != $counter"}·{/if}
|
|
|
|
{/loop}
|
|
|
|
{/if}
|
2018-04-18 23:45:05 +02:00
|
|
|
{if="$is_logged_in"}
|
2017-01-14 15:52:17 +01:00
|
|
|
·
|
2019-03-02 13:32:36 +01:00
|
|
|
<a href="?delete_link&lf_linkdate={$value.id}&token={$token}" aria-label="{$strDelete}"
|
2017-05-09 18:12:15 +02:00
|
|
|
title="{$strDelete}" class="delete-link confirm-delete">
|
2019-03-02 13:32:36 +01:00
|
|
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
2017-01-14 15:52:17 +01:00
|
|
|
</a>
|
2017-09-30 14:14:40 +02:00
|
|
|
·
|
2019-03-02 13:32:36 +01:00
|
|
|
<a href="?edit_link={$value.id}" aria-label="{$strEdit}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link" aria-hidden="true"></i></a>
|
2017-01-14 15:52:17 +01:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="plugin_zone_end_linklist" class="plugin_zone">
|
|
|
|
{loop="$plugin_end_zone"}
|
|
|
|
{$value}
|
|
|
|
{/loop}
|
|
|
|
</div>
|
|
|
|
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="linklist-paging-bottom-block" class="pure-g">
|
2017-01-14 15:52:17 +01:00
|
|
|
<div class="pure-u-lg-2-24 pure-u-1-24"></div>
|
2017-09-30 14:14:40 +02:00
|
|
|
<div id="linklist-paging-bottom-content" class="pure-u-lg-20-24 pure-u-22-24">
|
2017-01-14 15:52:17 +01:00
|
|
|
{include="linklist.paging"}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{include="page.footer"}
|
2017-11-11 14:01:21 +01:00
|
|
|
<script src="js/thumbnails.min.js?v={$version_hash}"></script>
|
2017-01-14 15:52:17 +01:00
|
|
|
</body>
|
|
|
|
</html>
|