source: extensions/Wood/template/mainpage_categories1.tpl @ 25981

Last change on this file since 25981 was 25981, checked in by Miklfe, 10 years ago
File size: 1.7 KB
Line 
1{html_style}
2
3{if $derivative_params->max_width() > 600}
4.thumbLegend {ldelim}font-size: 130%}
5{else}
6{if $derivative_params->max_width() > 400}
7.thumbLegend {ldelim}font-size: 110%}
8{else}
9.thumbLegend {ldelim}font-size: 90%}
10{/if}
11{/if}
12{/html_style}
13
14<div class="thumbContent">
15
16<div id="container" >
17
18{foreach from=$category_thumbnails item=cat name=cat_loop}
19        <div class="box photo colMainpage">
20        <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
21                <div class="thumbnailCategory">
22                        <div class="illustration">
23                                <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
24                        <a href="{$cat.URL}">
25                                <div class="description">
26                                                <div class="text">
27                                        <h2>
28                                                {$cat.NAME}
29                                                {if !empty($cat.icon_ts)}
30                                                <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)">
31                                                {/if}
32                                        </h2>
33                               
34                                                        {if isset($cat.INFO_DATES) }
35                                                        <p class="dates">{$cat.INFO_DATES}</p>
36                                                        {/if}
37                                                        <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
38                                                        {if not empty($cat.DESCRIPTION)}
39                                                        <p>{$cat.DESCRIPTION}</p>
40                                                        {/if}
41                                        </div>
42                                </div>
43                        </a>
44                        </div>
45                </div>
46        </li>
47        </div>
48{/foreach}
49
50
51</div>
52{footer_script require='jquery'}{literal}
53                        window.onload = function() {
54                          var wall1 = new Masonry( document.getElementById('container'), {
55                                gutterWidth: 10,
56                                isFitWidth: true,
57                          });
58                                var wall2 = new Masonry( document.getElementById('containerThumb'), {
59                                gutterWidth: 10,
60                                isFitWidth: true,
61                          });
62
63                        };
64{/literal}{/footer_script}
65</div>
66
Note: See TracBrowser for help on using the repository browser.