]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/picwall.html
Bunch of improvement for thumbnails integration:
[github/shaarli/Shaarli.git] / tpl / default / picwall.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 {include="includes"}
5 </head>
6 <body>
7 {include="page.header"}
8 {if="!$thumbnails_enabled"}
9 <div class="pure-g pure-alert pure-alert-warning page-single-alert">
10 <div class="pure-u-1 center">
11 {'Picture wall unavailable (thumbnails are disabled).'|t}
12 </div>
13 </div>
14 {else}
15 {if="count($linksToDisplay)===0 && $is_logged_in"}
16 <div class="pure-g pure-alert pure-alert-warning page-single-alert">
17 <div class="pure-u-1 center">
18 {'There is no cached thumbnail. Try to <a href="?do=thumbs_update">synchronize them</a>.'|t}
19 </div>
20 </div>
21 {/if}
22
23 <div class="pure-g">
24 <div class="pure-u-lg-1-6 pure-u-1-24"></div>
25 <div class="pure-u-lg-2-3 pure-u-22-24 page-form page-visitor">
26 {$countPics=count($linksToDisplay)}
27 <h2 class="window-title">{'Picture Wall'|t} - {$countPics} {'pics'|t}</h2>
28
29 <div id="plugin_zone_start_picwall" class="plugin_zone">
30 {loop="$plugin_start_zone"}
31 {$value}
32 {/loop}
33 </div>
34
35 <div id="picwall-container" class="picwall-container">
36 {loop="$linksToDisplay"}
37 <div class="picwall-pictureframe">
38 {ignore}RainTPL hack: put the 2 src on two different line to avoid path replace bug{/ignore}
39 <img data-src="{$value.thumbnail}#" class="b-lazy"
40 src="#"
41 alt="thumbnail" width="{$thumbnails_width}" height="{$thumbnails_height}" />
42 <a href="{$value.real_url}"><span class="info">{$value.title}</span></a>
43 {loop="$value.picwall_plugin"}
44 {$value}
45 {/loop}
46 </div>
47 {/loop}
48 <div class="clear"></div>
49 </div>
50
51 <div id="plugin_zone_end_picwall" class="plugin_zone">
52 {loop="$plugin_end_zone"}
53 {$value}
54 {/loop}
55 </div>
56 </div>
57 <div class="pure-u-lg-1-6 pure-u-1-24"></div>
58 </div>
59 {/if}
60
61 {include="page.footer"}
62 <script src="js/thumbnails.min.js?v={$version_hash}"></script>
63 </body>
64 </html>
65