source: trunk/template/yoga/mainpage_categories.tpl @ 5021

Last change on this file since 5021 was 5021, checked in by nikrou, 14 years ago

Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals

Todo : managing plugins in the same way

  • Property svn:eol-style set to LF
File size: 918 bytes
Line 
1
2<ul class="thumbnailCategories">
3{foreach from=$category_thumbnails item=cat}
4        <li>
5                <div class="thumbnailCategory">
6                        <div class="illustration">
7                        <a href="{$cat.URL}">
8                                <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'shows images at the root of this category'|@translate}">
9                        </a>
10                        </div>
11                        <div class="description">
12                                <h3>
13                                        <a href="{$cat.URL}">{$cat.NAME}</a>
14                                        {if !empty($cat.icon_ts)}
15                                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
16                                        {/if}
17                                </h3>
18                <div class="text">
19                                {if isset($cat.INFO_DATES) }
20                                <p class="dates">{$cat.INFO_DATES}</p>
21                                {/if}
22                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
23                                {if not empty($cat.DESCRIPTION)}
24                                <p>{$cat.DESCRIPTION}</p>
25                                {/if}
26                </div>
27                        </div>
28                </div>
29        </li>
30{/foreach}
31</ul>
Note: See TracBrowser for help on using the repository browser.