aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/mainpage_categories.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-01 13:12:07 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-01 13:12:07 +0000
commit35076ee1b9e32618d3c92bdd8aee20f2c4abb694 (patch)
tree7a7ece7dcc77d5304366ea3bd456152a1285522e /template/yoga/mainpage_categories.tpl
parentb2b00ba7be2d8b80cfa30aca624706162dcb7800 (diff)
- index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty
- better template debugging tweak (the smarty console is shown only once at the end) git-svn-id: http://piwigo.org/svn/trunk@2231 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/mainpage_categories.tpl')
-rw-r--r--template/yoga/mainpage_categories.tpl29
1 files changed, 14 insertions, 15 deletions
diff --git a/template/yoga/mainpage_categories.tpl b/template/yoga/mainpage_categories.tpl
index dcf589b51..b28c619fb 100644
--- a/template/yoga/mainpage_categories.tpl
+++ b/template/yoga/mainpage_categories.tpl
@@ -1,28 +1,27 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- BEGIN categories -->
-<!-- $Id$ -->
+{* $Id$ *}
+
<ul class="thumbnailCategories">
- <!-- BEGIN category -->
+ {foreach from=$category_thumbnails item=cat}
<li>
<div class="thumbnailCategory">
<div class="illustration">
- <a href="{categories.category.URL}">
- <img src="{categories.category.SRC}" alt="{categories.category.ALT}" title="{categories.category.TITLE}">
+ <a href="{$cat.URL}">
+ <img src="{$cat.TN_SRC}" alt="{$cat.ALT}" title="{'hint_category'|@translate}">
</a>
</div>
<div class="description">
<h3>
- <a href="{categories.category.URL}">{categories.category.NAME}</a>
- {categories.category.ICON}
+ <a href="{$cat.URL}">{$cat.NAME}</a>
+ {$cat.ICON}
</h3>
- <!-- BEGIN dates -->
- <p>{categories.category.dates.INFO}</p>
- <!-- END dates -->
- <p>{categories.category.CAPTION_NB_IMAGES}&nbsp;</p>
- <p>{categories.category.DESCRIPTION}&nbsp;</p>
+ {if isset($cat.INFO_DATES) }
+ <p>{$cat.INFO_DATES}</p>
+ {/if}
+ <p>{$cat.CAPTION_NB_IMAGES}</p>
+ <p>{$cat.DESCRIPTION}</p>
</div>
</div>
</li>
- <!-- END category -->
+ {/foreach}
</ul>
-<!-- END categories -->
+