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