source: extensions/PwgCarbon_dft/template/mainpage_categories.tpl @ 18803

Last change on this file since 18803 was 18803, checked in by Miklfe, 11 years ago
File size: 2.0 KB
Line 
1{html_style}
2
3{if $derivative_params->max_width() > 440}
4.content UL.thumbnailCategories LI {ldelim}     width:100%; } 
5.illustration {ldelim} margin-left: auto;
6        margin-right: auto; display: table; float: none;}
7{else}
8{if $derivative_params->max_width() > 290}
9.content UL.thumbnailCategories LI {ldelim}     width:49.7%;} 
10.thumbnailCategory{ldelim}min-height: {$derivative_params->max_height()*1.33}px;
11width:{$derivative_params->max_width()+5}px;}
12
13{else}
14.content UL.thumbnailCategories LI {ldelim}     width:33.2%; }   
15{/if}
16{/if}
17{if $derivative_params->max_width() > 600}
18.thumbLegend {ldelim}font-size: 130%}
19{else}
20{if $derivative_params->max_width() > 400}
21.thumbLegend {ldelim}font-size: 110%}
22{else}
23.thumbLegend {ldelim}font-size: 90%}
24{/if}
25{/if}
26{/html_style}
27
28
29
30<ul class="thumbnailCategories">
31{foreach from=$category_thumbnails item=cat name=cat_loop}
32        <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
33                <div class="thumbnailCategory">
34                        <div class="illustration">
35                        <a href="{$cat.URL}">
36                               
37                                <img class="thumbnail" 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}">
38                                {footer_script}{literal}
39                                jQuery(function($) {
40                                        $(".thumbnail").reflect({height:0.3,opacity:0.3});
41                                });
42                                {/literal}{/footer_script}
43                        </a>
44                                                                        <div class="description">
45                        <span class="thumbLegend">
46                                <h3>
47                                        <a href="{$cat.URL}">{$cat.NAME}</a>
48                                        {if !empty($cat.icon_ts)}
49                                        <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="(!)">
50                                        {/if}
51                                </h3>
52                               
53                                {if isset($cat.INFO_DATES) }
54                                <p class="dates">{$cat.INFO_DATES}</p>
55                                {/if}
56                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
57                                {if not empty($cat.DESCRIPTION)}
58                                <p>{$cat.DESCRIPTION}</p>
59                                {/if}
60                               
61                        </span>
62                        </div>
63
64                       
65
66                       
67                        </div>
68                </div>
69        </li>
70{/foreach}
71</ul>
Note: See TracBrowser for help on using the repository browser.