diff options
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r-- | tpl/default/linklist.html | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 322cddd5..ed78f40a 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -125,15 +125,25 @@ | |||
125 | {$strPermalink=t('Permalink')} | 125 | {$strPermalink=t('Permalink')} |
126 | {$strPermalinkLc=t('permalink')} | 126 | {$strPermalinkLc=t('permalink')} |
127 | {$strAddTag=t('Add tag')} | 127 | {$strAddTag=t('Add tag')} |
128 | {$strToggleSticky=t('Toggle sticky')} | ||
129 | {$strSticky=t('Sticky')} | ||
128 | {ignore}End of translations{/ignore} | 130 | {ignore}End of translations{/ignore} |
129 | {loop="links"} | 131 | {loop="links"} |
130 | <div class="anchor" id="{$value.shorturl}"></div> | 132 | <div class="anchor" id="{$value.shorturl}"></div> |
131 | 133 | ||
132 | <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}"> |
133 | <div class="linklist-item-title"> | 135 | <div class="linklist-item-title"> |
134 | {$thumb=thumbnail($value.url)} | 136 | {if="$thumbnails_enabled && !empty($value.thumbnail)"} |
135 | {if="$thumb!=false"} | 137 | <div class="linklist-item-thumbnail" style="width:{$thumbnails_width}px;height:{$thumbnails_height}px;"> |
136 | <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> | ||
137 | {/if} | 147 | {/if} |
138 | 148 | ||
139 | {if="$is_logged_in"} | 149 | {if="$is_logged_in"} |
@@ -182,7 +192,7 @@ | |||
182 | {if="$is_logged_in"} | 192 | {if="$is_logged_in"} |
183 | <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"> |
184 | <span class="linklist-item-infos-controls-item ctrl-checkbox"> | 194 | <span class="linklist-item-infos-controls-item ctrl-checkbox"> |
185 | <input type="checkbox" class="delete-checkbox" value="{$value.id}"> | 195 | <input type="checkbox" class="link-checkbox" value="{$value.id}"> |
186 | </span> | 196 | </span> |
187 | <span class="linklist-item-infos-controls-item ctrl-edit"> | 197 | <span class="linklist-item-infos-controls-item ctrl-edit"> |
188 | <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> |
@@ -193,7 +203,23 @@ | |||
193 | <i class="fa fa-trash"></i> | 203 | <i class="fa fa-trash"></i> |
194 | </a> | 204 | </a> |
195 | </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> | ||
196 | </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} | ||
197 | {/if} | 223 | {/if} |
198 | <a href="?{$value.shorturl}" title="{$strPermalink}"> | 224 | <a href="?{$value.shorturl}" title="{$strPermalink}"> |
199 | {if="!$hide_timestamps || $is_logged_in"} | 225 | {if="!$hide_timestamps || $is_logged_in"} |
@@ -268,5 +294,6 @@ | |||
268 | </div> | 294 | </div> |
269 | 295 | ||
270 | {include="page.footer"} | 296 | {include="page.footer"} |
297 | <script src="js/thumbnails.min.js?v={$version_hash}"></script> | ||
271 | </body> | 298 | </body> |
272 | </html> | 299 | </html> |