]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tpl/vintage/linklist.html
Merge pull request #1208 from ArthurHoaro/feature/select-all
[github/shaarli/Shaarli.git] / tpl / vintage / linklist.html
index 1ca51be3b962f4ac1d3965fa94b5ba231623924f..dcb14e908042f6a6088ca118f820f19551cac47a 100644 (file)
         {loop="$links"}
         <li{if="$value.class"} class="{$value.class}"{/if}>
             <a id="{$value.shorturl}"></a>
-            <div class="thumbnail">{$value.url|thumbnail}</div>
+            {if="$thumbnails_enabled && !empty($value.thumbnail)"}
+                <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"
+                             src=""
+                             alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" />
+                    </a>
+                </div>
+            {/if}
             <div class="linkcontainer">
                 {if="$is_logged_in"}
                     <div class="linkeditbuttons">
 </div>
 
     {include="page.footer"}
+<script src="js/thumbnails.min.js"></script>
 
 </body>
 </html>