source: extensions/stripped/template/mainpage_categories.tpl @ 32017

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

no more {php}
part1

File size: 1.9 KB
Line 
1{footer_script}
2  var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests};
3{/footer_script}
4<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>
5<ul class="thumbnailCategories">
6  {foreach from=$category_thumbnails item=cat name=catloop}
7  {assign var=derivative value=$pwg->derivative($stripped.albumSize, $cat.representative.src_image)}
8  {if !$derivative->is_cached()}
9  {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
10  {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
11  {/if}
12  <li class="odd{if ($smarty.foreach.catloop.iteration-1) % 2 == 0}0{else}1{/if}" {if ($stripped.albumFrame)}onclick="window.location='{$cat.URL}';"{/if}>
13        <div class="thumbnailCategory">
14                <div class="illustration">
15                        <a href="{$cat.URL}">
16        <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}">
17                        </a>
18                </div>
19                <div class="description">
20                        <h3>
21                                <a href="{$cat.URL}">{$cat.NAME}</a>
22                                {if !empty($cat.icon_ts)}
23                                <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="(!)">
24                                {/if}
25                        </h3>
26                        <div class="text" {if !$stripped.albumFrame}onclick="window.location='{$cat.URL}';"{/if}>
27                                  {if isset($cat.INFO_DATES) }
28                                  <p class="dates">{$cat.INFO_DATES}</p>
29                                  {/if}
30                                  <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
31                                  {if not empty($cat.DESCRIPTION)}
32                                  <p>{$cat.DESCRIPTION}</p>
33                                  {/if}
34                        </div>
35                </div>
36        </div>
37  </li>
38  {/foreach}
39</ul>
Note: See TracBrowser for help on using the repository browser.