Line | |
---|
1 | {define_derivative name='mainpage_derivative_params' height="250px" width="1000px" min_width="1000px" crop=true} |
---|
2 | <ul class="thumbnailCategories"> |
---|
3 | |
---|
4 | {foreach from=$category_thumbnails item=cat name=cat_loop} |
---|
5 | {assign var=derivative value=$pwg->derivative($mainpage_derivative_params, $cat.representative.src_image)} |
---|
6 | {if !$derivative->is_cached()} |
---|
7 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
8 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
9 | {/if} |
---|
10 | <li class="{if $smarty.foreach.cat_loop.index is odd}odd{else}even{/if}"> |
---|
11 | <div class="thumbnailCategory"> |
---|
12 | <a href="{$cat.URL}"> |
---|
13 | <div class="illustration"> |
---|
14 | <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> |
---|
15 | |
---|
16 | <div class="description_main"> |
---|
17 | <span class="thumbLegend"> |
---|
18 | <h3> |
---|
19 | {$cat.NAME} |
---|
20 | {if !empty($cat.icon_ts)} |
---|
21 | <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="(!)"> |
---|
22 | {/if} |
---|
23 | </h3> |
---|
24 | {if isset($cat.INFO_DATES) } |
---|
25 | <p class="dates">{$cat.INFO_DATES}</p> |
---|
26 | {/if} |
---|
27 | <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p> |
---|
28 | {if not empty($cat.DESCRIPTION)} |
---|
29 | <p>{$cat.DESCRIPTION}</p> |
---|
30 | {/if} |
---|
31 | </span> |
---|
32 | </div> |
---|
33 | </div> |
---|
34 | </a> |
---|
35 | </div> |
---|
36 | </li> |
---|
37 | {/foreach} |
---|
38 | |
---|
39 | </ul> |
---|
Note: See
TracBrowser
for help on using the repository browser.