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

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