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