source: branches/2.0/template/yoga/mainpage_categories.tpl @ 3506

Last change on this file since 3506 was 3121, checked in by rvelices, 15 years ago

merge 3120 from trunk
optimizations (php only)

  • removed unnecessary call to array_unique in get_image_ids_for_tags
  • put back in smarty exec time counting (debug mode) for each included template
  • prefix some smarty modifiers with @ in some templates
  • do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 721 bytes
Line 
1{* $Id: mainpage_categories.tpl 3121 2009-02-04 02:33:50Z rvelices $ *}
2
3<ul class="thumbnailCategories">
4{foreach from=$category_thumbnails item=cat}
5        <li>
6                <div class="thumbnailCategory">
7                        <div class="illustration">
8                        <a href="{$cat.URL}">
9                                <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'hint_category'|@translate}">
10                        </a>
11                        </div>
12                        <div class="description">
13                                <h3>
14                                        <a href="{$cat.URL}">{$cat.NAME}</a>
15                                        {$cat.ICON_TS}
16                                </h3>
17                <div class="text">
18                                {if isset($cat.INFO_DATES) }
19                                <p class="dates">{$cat.INFO_DATES}</p>
20                                {/if}
21                                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
22                                {if not empty($cat.DESCRIPTION)}
23                                <p>{$cat.DESCRIPTION}</p>
24                                {/if}
25                </div>
26                        </div>
27                </div>
28        </li>
29{/foreach}
30</ul>
Note: See TracBrowser for help on using the repository browser.