source: trunk/themes/default/template/mainpage_categories.tpl @ 20212

Last change on this file since 20212 was 20212, checked in by flop25, 11 years ago

bug:2820 & bug:2684
much better code : ability to pass max_requests to the js file like error_icon

  • Property svn:eol-style set to LF
File size: 2.0 KB
Line 
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";
12  var max_requests = "{$maxRequests}";
13{/footer_script}
14<div class="loader" style="display: none; position: fixed; right: 0;bottom: 0;"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>
15<ul class="thumbnailCategories">
16{foreach from=$category_thumbnails item=cat name=cat_loop}
17{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)}
18{if !$derivative->is_cached()}
19{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
20{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
21{/if}
22  <li class="{if $smarty.foreach.cat_loop.index is odd}odd{else}even{/if}">
23                <div class="thumbnailCategory">
24                        <div class="illustration">
25                        <a href="{$cat.URL}">
26                                <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}">
27                        </a>
28                        </div>
29                        <div class="description">
30                                <h3>
31                                        <a href="{$cat.URL}">{$cat.NAME}</a>
32                                        {if !empty($cat.icon_ts)}
33                                        <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="(!)">
34                                        {/if}
35                                </h3>
36                <div class="text">
37                                {if isset($cat.INFO_DATES) }
38                                <p class="dates">{$cat.INFO_DATES}</p>
39                                {/if}
40                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
41                                {if not empty($cat.DESCRIPTION)}
42                                <p>{$cat.DESCRIPTION}</p>
43                                {/if}
44                </div>
45                        </div>
46                </div>
47        </li>
48{/foreach}
49</ul>
Note: See TracBrowser for help on using the repository browser.