source: branches/2.4/themes/default/template/mainpage_categories.tpl @ 16506

Last change on this file since 16506 was 16506, checked in by flop25, 8 years ago

merge r16504 & r16505 from trunk to branch 2.4
bug:2684
adding the loader ajax-loader-small.gif for comment_list.tpl, and ajax-loader-big.gif for picture_content.tpl
bug:2684

  • Property svn:eol-style set to LF
File size: 1.7 KB
Line 
1{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
2{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
3{strip}{html_style}
4.thumbnailCategory .illustration{ldelim}
5        width: {$derivative_params->max_width()+5}px;
6}
7
8.content .thumbnailCategory .description{ldelim}
9        height: {$derivative_params->max_height()+5}px;
10}
11{/html_style}{/strip}
12<ul class="thumbnailCategories">
13{foreach from=$category_thumbnails item=cat name=cat_loop}
14{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)}
15        <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
16                <div class="thumbnailCategory">
17                        <div class="illustration">
18                        <a href="{$cat.URL}">
19                                <img {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}">
20                        </a>
21                        </div>
22                        <div class="description">
23                                <h3>
24                                        <a href="{$cat.URL}">{$cat.NAME}</a>
25                                        {if !empty($cat.icon_ts)}
26                                        <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="(!)">
27                                        {/if}
28                                </h3>
29                <div class="text">
30                                {if isset($cat.INFO_DATES) }
31                                <p class="dates">{$cat.INFO_DATES}</p>
32                                {/if}
33                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
34                                {if not empty($cat.DESCRIPTION)}
35                                <p>{$cat.DESCRIPTION}</p>
36                                {/if}
37                </div>
38                        </div>
39                </div>
40        </li>
41{/foreach}
42</ul>
Note: See TracBrowser for help on using the repository browser.