source: branches/2.4/themes/default/template/mainpage_categories.tpl @ 15934

Last change on this file since 15934 was 14239, checked in by Zaphod, 12 years ago

feature 2588: new classes to help css personalization.

  • on mainpage_categories.tpl

New classes odd & even on .thumbnailCategories LI

  • on thumbnails.tpl

class thumbName for $thumbnail.NAME
(if someone wants to hide the thumbnail name, and not the nb comments or hits)

  • Property svn:eol-style set to LF
File size: 1.2 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<ul class="thumbnailCategories">
11{foreach from=$category_thumbnails item=cat name=cat_loop}
12        <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
13                <div class="thumbnailCategory">
14                        <div class="illustration">
15                        <a href="{$cat.URL}">
16                                <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" 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">
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.