1 | {php} |
---|
2 | global $stripped; |
---|
3 | $this->assign( 'stripped', $stripped ); |
---|
4 | {/php} |
---|
5 | {footer_script} |
---|
6 | var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests}; |
---|
7 | {/footer_script} |
---|
8 | <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> |
---|
9 | <ul class="thumbnailCategories"> |
---|
10 | {foreach from=$category_thumbnails item=cat name=catloop} |
---|
11 | {assign var=derivative value=$pwg->derivative($stripped.albumSize, $cat.representative.src_image)} |
---|
12 | {if !$derivative->is_cached()} |
---|
13 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
14 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
15 | {/if} |
---|
16 | <li class="odd{if ($smarty.foreach.catloop.iteration-1) % 2 == 0}0{else}1{/if}" {if ($stripped.albumFrame)}onclick="window.location='{$cat.URL}';"{/if}> |
---|
17 | <div class="thumbnailCategory"> |
---|
18 | <div class="illustration"> |
---|
19 | <a href="{$cat.URL}"> |
---|
20 | <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}"> |
---|
21 | </a> |
---|
22 | </div> |
---|
23 | <div class="description"> |
---|
24 | <h3> |
---|
25 | <a href="{$cat.URL}">{$cat.NAME}</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" {if !$stripped.albumFrame}onclick="window.location='{$cat.URL}';"{/if}> |
---|
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 | {if not empty($cat.DESCRIPTION)} |
---|
36 | <p>{$cat.DESCRIPTION}</p> |
---|
37 | {/if} |
---|
38 | </div> |
---|
39 | </div> |
---|
40 | </div> |
---|
41 | </li> |
---|
42 | {/foreach} |
---|
43 | </ul> |
---|