]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/vintage/linklist.html
Use web-thumbnailer to retrieve thumbnails
[github/shaarli/Shaarli.git] / tpl / vintage / linklist.html
CommitLineData
45034273
SS
1<!DOCTYPE html>
2<html>
65d62517 3<head>
adc4aee8 4 <link type="text/css" rel="stylesheet" href="inc/awesomplete.css#" />
65d62517
A
5 {include="includes"}
6</head>
45034273
SS
7<body>
8<div id="pageheader">
af77b2fd 9 {include="page.header"}
822bffce 10
c133612f 11 <div id="headerform" class="search">
0923a2bc 12 <form method="GET" class="searchform" name="searchform">
822bffce 13 <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text"
c51fae92
A
14 {if="!empty($search_term)"}
15 value="{$search_term}"
822bffce
A
16 {/if}
17 >
b39b1bc2
A
18 <input type="submit" value="Search" class="bigbutton">
19 </form>
65d62517 20 <form method="GET" class="tagfilter" name="tagfilter">
822bffce 21 <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag"
c51fae92
A
22 {if="!empty($search_tags)"}
23 value="{$search_tags}"
822bffce 24 {/if}
7e9bd977 25 autocomplete="off" data-multiple data-minChars="1"
55d0a5c4 26 data-list="{loop="$tags"}{$key}, {/loop}"
822bffce 27 >
65d62517
A
28 <input type="submit" value="Search" class="bigbutton">
29 </form>
567967fd 30 {loop="$plugins_header.fields_toolbar"}
ba0fd807
A
31 <form
32 {loop="$value.attr"}
33 {$key}="{$value}"
34 {/loop}>
35 {loop="$value.inputs"}
36 <input
37 {loop="$value"}
38 {$key}="{$value}"
39 {/loop}>
40 {/loop}
41 </form>
567967fd 42 {/loop}
af77b2fd 43 </div>
45034273
SS
44</div>
45
46<div id="linklist">
47
48 {include="linklist.paging"}
49
567967fd
A
50 <div id="plugin_zone_start_linklist" class="plugin_zone">
51 {loop="$plugin_start_zone"}
52 {$value}
53 {/loop}
54 </div>
55
45034273 56 {if="count($links)==0"}
c51fae92 57 <div id="searchcriteria">Nothing found.</div>
7d86f40b 58 {elseif="!empty($search_term) or $search_tags !== ''"}
c51fae92
A
59 <div id="searchcriteria">
60 {$result_count} results
61 {if="!empty($search_term)"}
62 for <em>{$search_term}</em>
63 {/if}
64 {if="!empty($search_tags)"}
65 {$exploded_tags=explode(' ', $search_tags)}
66 tagged
67 {loop="$exploded_tags"}
68 <span class="linktag" title="Remove tag">
69 <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a>
70 </span>
71 {/loop}
7d86f40b
A
72 {elseif="$search_tags === false"}
73 <span class="linktag" title="Remove tag">
74 <a href="?">untagged <span class="remove">x</span></a>
75 </span>
c51fae92
A
76 {/if}
77 </div>
45034273
SS
78 {/if}
79 <ul>
dec5fe9c 80 {loop="$links"}
45034273 81 <li{if="$value.class"} class="{$value.class}"{/if}>
567967fd 82 <a id="{$value.shorturl}"></a>
1b93137e
A
83 {if="$thumbnails_enabled && !empty($value.thumbnail)"}
84 <div class="thumbnail">
85 <a href="{$value.real_url}">
86 {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore}
87 <img data-src="{$value.thumbnail}#" class="b-lazy"
88 src="#"
89 alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" />
90 </a>
91 </div>
92 {/if}
45034273 93 <div class="linkcontainer">
89ccc83b 94 {if="$is_logged_in"}
b2877611 95 <div class="linkeditbuttons">
b39b1bc2 96 <form method="GET" class="buttoneditform">
01878a75 97 <input type="hidden" name="edit_link" value="{$value.id}">
7e9bd977 98 <input type="image" alt="Edit" src="img/edit_icon.png" title="Edit" class="button_edit">
b39b1bc2 99 </form><br>
f4ebd5fe 100 <form method="GET" class="buttoneditform">
01878a75 101 <input type="hidden" name="lf_linkdate" value="{$value.id}">
b39b1bc2
A
102 <input type="hidden" name="token" value="{$token}">
103 <input type="hidden" name="delete_link">
7e9bd977 104 <input type="image" alt="Delete" src="img/delete_icon.png" title="Delete"
b39b1bc2
A
105 class="button_delete" onClick="return confirmDeleteLink();">
106 </form>
b2877611 107 </div>
45034273 108 {/if}
90e5bd65
A
109 <span class="linktitle">
110 <a href="{$value.real_url}">{$value.title}</a>
111 </span>
45034273 112 <br>
c133612f 113 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
89ccc83b 114 {if="!$hide_timestamps || $is_logged_in"}
52b50310 115 {$updated=$value.updated_timestamp ? 'Edited: '. format_date($value.updated) : 'Permalink'}
9646b7da 116 <span class="linkdate" title="Permalink">
01878a75 117 <a href="?{$value.shorturl}">
9646b7da 118 <span title="{$updated}">
52b50310 119 {$value.created|format_date}
9646b7da
A
120 {if="$value.updated_timestamp"}*{/if}
121 </span>
122 - permalink
123 </a> -
124 </span>
45034273 125 {else}
567967fd 126 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
45034273 127 {/if}
567967fd
A
128
129 {loop="$value.link_plugin"}
130 <span>{$value}</span> -
131 {/loop}
132
90e5bd65 133 <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
45034273
SS
134 {if="$value.tags"}
135 <div class="linktaglist">
dec5fe9c 136 {loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
45034273
SS
137 </div>
138 {/if}
567967fd
A
139
140
45034273
SS
141 </div>
142 </li>
143 {/loop}
144 </ul>
145
567967fd
A
146 <div id="plugin_zone_end_linklist" class="plugin_zone">
147 {loop="$plugin_end_zone"}
148 {$value}
149 {/loop}
150 </div>
151
45034273
SS
152 {include="linklist.paging"}
153
154</div>
155
d741c9fc 156 {include="page.footer"}
af77b2fd 157
45034273 158</body>
af77b2fd 159</html>