1 | {strip}{html_style} |
---|
2 | .thumbnailCategory .illustration{ldelim} |
---|
3 | width: {$derivative_params->max_width()+5}px; |
---|
4 | } |
---|
5 | |
---|
6 | .content .thumbnailCategory .description{ldelim} |
---|
7 | height: {$derivative_params->max_height()+5}px; |
---|
8 | } |
---|
9 | {/html_style}{/strip} |
---|
10 | {footer_script} |
---|
11 | var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests}; |
---|
12 | {/footer_script} |
---|
13 | <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> |
---|
14 | <ul class="thumbnailCategories"> |
---|
15 | {foreach from=$category_thumbnails item=cat name=cat_loop} |
---|
16 | {assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)} |
---|
17 | {if !$derivative->is_cached()} |
---|
18 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
19 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
20 | {/if} |
---|
21 | <li class="{if $smarty.foreach.cat_loop.index is odd}odd{else}even{/if}"> |
---|
22 | <div class="thumbnailCategory"> |
---|
23 | <div class="illustration"> |
---|
24 | <a href="{$cat.URL}"> |
---|
25 | <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> |
---|
26 | </a> |
---|
27 | </div> |
---|
28 | <div class="description"> |
---|
29 | <h3> |
---|
30 | <a href="{$cat.URL}">{$cat.NAME}</a> |
---|
31 | {if !empty($cat.icon_ts)} |
---|
32 | <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="(!)"> |
---|
33 | {/if} |
---|
34 | </h3> |
---|
35 | <div class="text"> |
---|
36 | {if isset($cat.INFO_DATES) } |
---|
37 | <p class="dates">{$cat.INFO_DATES}</p> |
---|
38 | {/if} |
---|
39 | <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p> |
---|
40 | {if not empty($cat.DESCRIPTION)} |
---|
41 | <p>{$cat.DESCRIPTION}</p> |
---|
42 | {/if} |
---|
43 | </div> |
---|
44 | </div> |
---|
45 | </div> |
---|
46 | </li> |
---|
47 | {/foreach} |
---|
48 | </ul> |
---|