source: extensions/Versa/template/mainpage_categories.tpl @ 31833

Last change on this file since 31833 was 31833, checked in by lexming, 7 years ago

Initial commit

  • Property svn:executable set to *
File size: 1.4 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="thumbnailsCategories">
6{foreach from=$category_thumbnails item=cat name=cat_loop}
7{assign var=derivative value=$pwg->derivative($derivative_params, $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>
13        <div>
14        <h3>
15                <a href="{$cat.URL}">{$cat.NAME}</a>
16                {if !empty($cat.icon_ts)}
17                &nbsp;<i class="fa fa-exclamation-circle" aria-hidden="true"></i>
18                {/if}
19        </h3>
20        {if isset($cat.INFO_DATES) }
21        <p class="dates">{$cat.INFO_DATES}</p>
22        {/if}
23        <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
24        {if not empty($cat.DESCRIPTION)}
25        <p>{$cat.DESCRIPTION}</p>
26        {/if}
27        </div>
28        <a href="{$cat.URL}">
29        <img class="coverCategory" {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}">
30        </a>
31  </li>
32{/foreach}
33</ul>
Note: See TracBrowser for help on using the repository browser.