7 {
include="page.header"}
9 <div class=
"linkcount pure-u-0 pure-u-lg-visible">
10 {
if="!empty($linkcount)"}
11 <span class=
"strong">{$linkcount}
</span> {
function="t('shaare', 'shaares', $linkcount)"}
12 {
if="$privateLinkcount
>0"}
13 <br><span class="strong
">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
18 <input type=
"hidden" name=
"token" value=
"{$token}">
20 <div id=
"search-linklist">
22 <form method=
"GET" class=
"pure-form searchform" name=
"searchform">
23 <input type=
"text" tabindex=
"1" name=
"searchterm" class=
"searchterm" placeholder=
"{'Search text'|t}"
24 {
if=
"!empty($search_term)"}
25 value=
"{$search_term}"
28 <input type=
"text" tabindex=
"2" name=
"searchtags" class=
"searchtags" placeholder=
"{'Filter by tag'|t}"
29 {
if=
"!empty($search_tags)"}
30 value=
"{$search_tags}"
32 autocomplete=
"off" data-multiple data-autofirst
data-minChars=
"1"
33 data-list=
"{loop="$tags
"}{$key}, {/loop}"
35 <button type=
"submit" class=
"search-button"><i class=
"fa fa-search"></i></button>
39 {
loop="$plugins_header.fields_toolbar"}
44 <div class=
"toolbar-plugin pure-u-lg-1">
45 {
loop="$value.inputs"}
57 <div class=
"pure-u-lg-2-24 pure-u-1-24"></div>
58 <div class=
"pure-u-lg-20-24 pure-u-22-24">
59 <div class=
"linkcount pure-u-lg-0 center">
60 {
if="!empty($linkcount)"}
61 <span class=
"strong">{$linkcount}
</span> {
function="t('shaare', 'shaares', $linkcount)"}
62 {
if="$privateLinkcount
>0"}
63 · <span class="strong
">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
68 {
include="linklist.paging"}
70 <div id=
"plugin_zone_start_linklist" class=
"plugin_zone">
71 {
loop="$plugin_start_zone"}
78 {
if="count($links)==
0"}
79 <div class=
"pure-g pure-alert pure-alert-error search-result">
80 <div class=
"pure-u-2-24"></div>
81 <div class=
"pure-u-20-24">
82 <div id=
"searchcriteria">{'Nothing found.'|t}
</div>
85 {
elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"}
86 <div class=
"pure-g pure-alert pure-alert-success search-result">
87 <div class=
"pure-u-2-24"></div>
88 <div class=
"pure-u-20-24">
89 {
function="t('%s result', '%s results', $result_count)"}
90 {
if="!empty($search_term)"}
91 {'for'|t}
<em><strong>{$search_term}
</strong></em>
93 {
if="!empty($search_tags)"}
94 {$exploded_tags=explode(' ', $search_tags)}
96 {
loop="$exploded_tags"}
97 <span class=
"label label-tag" title=
"{'Remove tag'|t}">
98 <a href=
"?removetag={function="urlencode($value)
"}">{$value}
<span class=
"remove"><i class=
"fa fa-times"></i></span></a>
102 {
if="!empty($visibility)"}
104 <span class=
"label label-private">
109 <span class=
"label label-private">
110 {'without any tag'|t}
118 <div class=
"pure-u-lg-2-24 pure-u-1-24"></div>
119 <div class=
"pure-u-lg-20-24 pure-u-22-24">
121 <div class=
"anchor" id=
"{$value.shorturl}"></div>
122 <div class=
"linklist-item linklist-item{if="$value.class
"} {$value.class}{/if}" data-id=
"{$value.id}">
124 <div class=
"linklist-item-title">
126 <div class=
"linklist-item-editbuttons">
127 {
if="$value.private"}
128 <span class=
"label label-private">{'Private'|t}
</span>
130 <input type=
"checkbox" class=
"delete-checkbox" value=
"{$value.id}">
131 <!-- FIXME! JS translation -->
132 <a href=
"?edit_link={$value.id}" title=
"{'Edit'|t}"><i class=
"fa fa-pencil-square-o edit-link"></i></a>
133 <a href=
"#" title=
"{'Fold'|t}" class=
"fold-button"><i class=
"fa fa-chevron-up"></i></a>
138 <a href=
"{$value.real_url}">
139 {
if="strpos($value.url, $value.shorturl) === false"}
140 <i class=
"fa fa-external-link"></i>
142 <i class=
"fa fa-sticky-note"></i>
145 <span class=
"linklist-link">{$value.title}
</span>
150 {$thumb=thumbnail($value.url)}
152 <div class=
"linklist-item-thumbnail">{$thumb}
</div>
155 {
if="$value.description"}
156 <div class=
"linklist-item-description">
161 <div class=
"linklist-item-infos clear">
163 <div class=
"linklist-item-tags">
164 <i class=
"fa fa-tags"></i>
165 {$tag_counter=count($value.taglist)}
166 {
loop="value.taglist"}
167 <span class=
"label label-tag" title=
"Add tag">
168 <a href=
"?addtag={$value|urlencode}">{$value}
</a>
170 {
if="$tag_counter -
1 != $counter"}
·{/if}
176 <div class=
"linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1">
177 <a href=
"?{$value.shorturl}" title=
"{'Permalink'|t}">
178 {
if="!$hide_timestamps || isLoggedIn()"}
179 {$updated=$value.updated_timestamp ? 'Edited: '. format_date($value.updated) : 'Permalink'}
180 <span class=
"linkdate" title=
"{$updated}">
181 <i class=
"fa fa-clock-o"></i>
182 {$value.created|format_date}
183 {
if="$value.updated_timestamp"}*{/if}
190 <div class=
"pure-u-0 pure-u-lg-visible">
191 {
if="isset($value.link_plugin)"}
193 {$link_plugin_counter=count($value.link_plugin)}
194 {
loop="$value.link_plugin"}
196 {
if="$link_plugin_counter -
1 != $counter"}
·{/if}
201 {ignore}do not add space or line break between these div - Firefox issue{/ignore}
202 class=
"linklist-item-infos-url pure-u-lg-5-8 pure-u-1">
203 <a href=
"{$value.real_url}" title=
"{$value.title}">
204 <i class=
"fa fa-link"></i> {$value.url}
207 <a href=
"?delete_link&lf_linkdate={$value.id}&token={$token}"
208 title=
"{'Delete'|t}" class=
"delete-link pure-u-0 pure-u-lg-visible confirm-delete">
209 <i class=
"fa fa-trash"></i>
213 <div class=
"mobile-buttons pure-u-1 pure-u-lg-0">
214 {
if="isset($value.link_plugin)"}
215 {$link_plugin_counter=count($value.link_plugin)}
216 {
loop="$value.link_plugin"}
218 {
if="$link_plugin_counter -
1 != $counter"}
·{/if}
223 <a href=
"?delete_link&lf_linkdate={$value.id}&token={$token}"
224 title=
"{'Delete'|t}" class=
"delete-link confirm-delete">
225 <i class=
"fa fa-trash"></i>
237 <div id=
"plugin_zone_end_linklist" class=
"plugin_zone">
238 {
loop="$plugin_end_zone"}
244 <div class=
"pure-u-lg-2-24 pure-u-1-24"></div>
245 <div class=
"pure-u-lg-20-24 pure-u-22-24">
246 {
include="linklist.paging"}
250 {
include="page.footer"}