source: extensions/Junk/template/mainpage_categories.tpl @ 28081

Last change on this file since 28081 was 28081, checked in by Miklfe, 10 years ago

Theme Junk

File size: 1.6 KB
Line 
1{define_derivative name='junk' width='400' height='300' min_width='400' min_height='300' crop=false}
2
3
4<ul class="thumbnailCategories">
5{foreach from=$category_thumbnails item=cat name=cat_loop}
6{assign var=derivative value=$pwg->derivative($junk, $cat.representative.src_image)}
7{if !$derivative->is_cached()}
8{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
9{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
10{/if}
11        <li class="{if $smarty.foreach.cat_loop.index is odd}odd{else}even{/if}">
12                <div class="thumbnailCategory">
13                        <div class="description">
14                                <h3>
15                                        <a href="{$cat.URL}">{$cat.NAME}</a>
16                                        {if !empty($cat.icon_ts)}
17                                        <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="(!)">
18                                        {/if}
19                                </h3>
20                                <div class="info">
21                                                {if isset($cat.INFO_DATES) }
22                                                <p class="dates">{$cat.INFO_DATES}</p>
23                                                {/if}
24                                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
25                                                {if not empty($cat.DESCRIPTION)}
26                                                <p>{$cat.DESCRIPTION}</p>
27                                                {/if}
28                                </div>
29                        </div>                 
30                        <div class="illustration">
31                        <a href="{$cat.URL}">
32                                <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}">
33                        </a>
34                        </div>
35
36                </div>
37        </li>
38{/foreach}
39</ul>
Note: See TracBrowser for help on using the repository browser.