source: extensions/flop_style/mainpage_categories/medium_cat.tpl @ 16410

Last change on this file since 16410 was 16410, checked in by flop25, 12 years ago

small fix : height for medium_cat.tpl

File size: 1.2 KB
Line 
1{combine_css path="template-extension/flop_style/mainpage_categories/medium_cat.css"}
2{html_style}{literal}
3.thumbnailCategory .illustration {
4        width:{/literal}{$derivative_params->max_width()+5}{literal}px;
5}
6
7.thumbnailCategory {
8        height:{/literal}{$derivative_params->max_width()+50}{literal}px;
9}
10{/literal}{/html_style}
11
12<ul class="thumbnailCategories">
13{foreach from=$category_thumbnails item=cat}
14  <li class="{cycle values="cat_1,cat_2,cat_3,cat_4"}" >
15                <div class="thumbnailCategory">
16                        <div class="illustration">
17                        <a href="{$cat.URL}">
18                                <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}">
19                        </a>
20                        </div>
21                        <div class="description">
22                                <h3>
23                                        <a href="{$cat.URL}">{$cat.NAME|truncate:38:" [...]"}</a>
24                                        {if !empty($cat.icon_ts)}
25                                        <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="(!)">
26                                        {/if}
27                                </h3>
28                <div class="text">
29                                {if isset($cat.INFO_DATES) }
30                                <p class="dates">{$cat.INFO_DATES}</p>
31                                {/if}
32                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
33                </div>
34                        </div>
35                </div>
36        </li>
37{/foreach}
38</ul>
Note: See TracBrowser for help on using the repository browser.