diff options
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r-- | tpl/default/linklist.html | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index c666e30a..ed78f40a 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -16,8 +16,7 @@ | |||
16 | </div> | 16 | </div> |
17 | 17 | ||
18 | <input type="hidden" name="token" value="{$token}"> | 18 | <input type="hidden" name="token" value="{$token}"> |
19 | 19 | <div id="search-linklist" class="searchform-block search-linklist"> | |
20 | <div id="search-linklist"> | ||
21 | 20 | ||
22 | <form method="GET" class="pure-form searchform" name="searchform"> | 21 | <form method="GET" class="pure-form searchform" name="searchform"> |
23 | <input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}" | 22 | <input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}" |
@@ -126,18 +125,28 @@ | |||
126 | {$strPermalink=t('Permalink')} | 125 | {$strPermalink=t('Permalink')} |
127 | {$strPermalinkLc=t('permalink')} | 126 | {$strPermalinkLc=t('permalink')} |
128 | {$strAddTag=t('Add tag')} | 127 | {$strAddTag=t('Add tag')} |
128 | {$strToggleSticky=t('Toggle sticky')} | ||
129 | {$strSticky=t('Sticky')} | ||
129 | {ignore}End of translations{/ignore} | 130 | {ignore}End of translations{/ignore} |
130 | {loop="links"} | 131 | {loop="links"} |
131 | <div class="anchor" id="{$value.shorturl}"></div> | 132 | <div class="anchor" id="{$value.shorturl}"></div> |
132 | 133 | ||
133 | <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}"> | 134 | <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}"> |
134 | <div class="linklist-item-title"> | 135 | <div class="linklist-item-title"> |
135 | {$thumb=thumbnail($value.url)} | 136 | {if="$thumbnails_enabled && !empty($value.thumbnail)"} |
136 | {if="$thumb!=false"} | 137 | <div class="linklist-item-thumbnail" style="width:{$thumbnails_width}px;height:{$thumbnails_height}px;"> |
137 | <div class="linklist-item-thumbnail">{$thumb}</div> | 138 | <div class="thumbnail"> |
139 | <a href="{$value.real_url}"> | ||
140 | {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore} | ||
141 | <img data-src="{$value.thumbnail}#" class="b-lazy" | ||
142 | src="" | ||
143 | alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" /> | ||
144 | </a> | ||
145 | </div> | ||
146 | </div> | ||
138 | {/if} | 147 | {/if} |
139 | 148 | ||
140 | {if="isLoggedIn()"} | 149 | {if="$is_logged_in"} |
141 | <div class="linklist-item-editbuttons"> | 150 | <div class="linklist-item-editbuttons"> |
142 | {if="$value.private"} | 151 | {if="$value.private"} |
143 | <span class="label label-private">{$strPrivate}</span> | 152 | <span class="label label-private">{$strPrivate}</span> |
@@ -180,10 +189,10 @@ | |||
180 | 189 | ||
181 | <div class="linklist-item-infos-date-url-block pure-g"> | 190 | <div class="linklist-item-infos-date-url-block pure-g"> |
182 | <div class="linklist-item-infos-dateblock pure-u-lg-7-12 pure-u-1"> | 191 | <div class="linklist-item-infos-dateblock pure-u-lg-7-12 pure-u-1"> |
183 | {if="isLoggedIn()"} | 192 | {if="$is_logged_in"} |
184 | <div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible"> | 193 | <div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible"> |
185 | <span class="linklist-item-infos-controls-item ctrl-checkbox"> | 194 | <span class="linklist-item-infos-controls-item ctrl-checkbox"> |
186 | <input type="checkbox" class="delete-checkbox" value="{$value.id}"> | 195 | <input type="checkbox" class="link-checkbox" value="{$value.id}"> |
187 | </span> | 196 | </span> |
188 | <span class="linklist-item-infos-controls-item ctrl-edit"> | 197 | <span class="linklist-item-infos-controls-item ctrl-edit"> |
189 | <a href="?edit_link={$value.id}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link"></i></a> | 198 | <a href="?edit_link={$value.id}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link"></i></a> |
@@ -194,10 +203,26 @@ | |||
194 | <i class="fa fa-trash"></i> | 203 | <i class="fa fa-trash"></i> |
195 | </a> | 204 | </a> |
196 | </span> | 205 | </span> |
206 | <span class="linklist-item-infos-controls-item ctrl-pin"> | ||
207 | <a href="?do=pin&id={$value.id}&token={$token}" | ||
208 | title="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> | ||
209 | <i class="fa fa-thumb-tack"></i> | ||
210 | </a> | ||
211 | </span> | ||
197 | </div> | 212 | </div> |
213 | {else} | ||
214 | {if="$value.sticky"} | ||
215 | <div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible"> | ||
216 | <span class="linklist-item-infos-controls-item ctrl-pin"> | ||
217 | <span title="{$strSticky}" class="pin-link pinned-link pure-u-0 pure-u-lg-visible"> | ||
218 | <i class="fa fa-thumb-tack"></i> | ||
219 | </span> | ||
220 | </span> | ||
221 | </div> | ||
222 | {/if} | ||
198 | {/if} | 223 | {/if} |
199 | <a href="?{$value.shorturl}" title="{$strPermalink}"> | 224 | <a href="?{$value.shorturl}" title="{$strPermalink}"> |
200 | {if="!$hide_timestamps || isLoggedIn()"} | 225 | {if="!$hide_timestamps || $is_logged_in"} |
201 | {$updated=$value.updated_timestamp ? $strEdited. format_date($value.updated) : $strPermalink} | 226 | {$updated=$value.updated_timestamp ? $strEdited. format_date($value.updated) : $strPermalink} |
202 | <span class="linkdate" title="{$updated}"> | 227 | <span class="linkdate" title="{$updated}"> |
203 | <i class="fa fa-clock-o"></i> | 228 | <i class="fa fa-clock-o"></i> |
@@ -237,7 +262,7 @@ | |||
237 | {if="$link_plugin_counter - 1 != $counter"}·{/if} | 262 | {if="$link_plugin_counter - 1 != $counter"}·{/if} |
238 | {/loop} | 263 | {/loop} |
239 | {/if} | 264 | {/if} |
240 | {if="isLoggedIn()"} | 265 | {if="$is_logged_in"} |
241 | · | 266 | · |
242 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" | 267 | <a href="?delete_link&lf_linkdate={$value.id}&token={$token}" |
243 | title="{$strDelete}" class="delete-link confirm-delete"> | 268 | title="{$strDelete}" class="delete-link confirm-delete"> |
@@ -269,5 +294,6 @@ | |||
269 | </div> | 294 | </div> |
270 | 295 | ||
271 | {include="page.footer"} | 296 | {include="page.footer"} |
297 | <script src="js/thumbnails.min.js?v={$version_hash}"></script> | ||
272 | </body> | 298 | </body> |
273 | </html> | 299 | </html> |