Last change
on this file since 27521 was
16501,
checked in by flop25, 12 years ago
|
adding a gif loader (introduced in 2.4.2)
fixing the height of medium_cat.tpl
adding a custom size for spotlight.tpl
|
File size:
1.3 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()+60}{literal}px; |
---|
9 | width:{/literal}{$derivative_params->max_width()+10}{literal}px; |
---|
10 | overflow:hidden; |
---|
11 | } |
---|
12 | {/literal}{/html_style} |
---|
13 | |
---|
14 | <ul class="thumbnailCategories"> |
---|
15 | {foreach from=$category_thumbnails item=cat} |
---|
16 | <li class="{cycle values="cat_1,cat_2,cat_3,cat_4"}" > |
---|
17 | <div class="thumbnailCategory"> |
---|
18 | <div class="illustration"> |
---|
19 | <a href="{$cat.URL}"> |
---|
20 | <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}"> |
---|
21 | </a> |
---|
22 | </div> |
---|
23 | <div class="description"> |
---|
24 | <h3> |
---|
25 | <a href="{$cat.URL}">{$cat.NAME|truncate:38:" [...]"}</a> |
---|
26 | {if !empty($cat.icon_ts)} |
---|
27 | <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="(!)"> |
---|
28 | {/if} |
---|
29 | </h3> |
---|
30 | <div class="text"> |
---|
31 | {if isset($cat.INFO_DATES) } |
---|
32 | <p class="dates">{$cat.INFO_DATES}</p> |
---|
33 | {/if} |
---|
34 | <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p> |
---|
35 | </div> |
---|
36 | </div> |
---|
37 | </div> |
---|
38 | </li> |
---|
39 | {/foreach} |
---|
40 | </ul> |
---|
Note: See
TracBrowser
for help on using the repository browser.