source: extensions/stripped_responsive/template/mainpage_categories.tpl @ 29641

Last change on this file since 29641 was 29449, checked in by JanisV, 10 years ago

Initial commit

  • Property svn:executable set to *
File size: 1.8 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_responsive.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_responsive.albumFrame)}onclick="window.location='{$cat.URL}';"{/if}>
13        <a href="{$cat.URL}">
14          <div class="thumbnailCategory">
15                <div class="illustration">
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                </div>
18                <div class="description">
19                        <h3>
20                                {$cat.NAME}
21                                {if !empty($cat.icon_ts)}
22                                <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="(!)">
23                                {/if}
24                        </h3>
25                        <div class="text">
26                                {if isset($cat.INFO_DATES) }
27                                  <p class="dates">{$cat.INFO_DATES}</p>
28                                {/if}
29                                  <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
30                                {if not empty($cat.DESCRIPTION)}
31                                  <p>{$cat.DESCRIPTION}</p>
32                                {/if}
33                        </div>
34                </div>
35          </div>
36        </a>
37  </li>
38  {/foreach}
39</ul>
Note: See TracBrowser for help on using the repository browser.