aboutsummaryrefslogtreecommitdiffstats
path: root/template/default/mainpage_categories.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/default/mainpage_categories.tpl')
-rw-r--r--template/default/mainpage_categories.tpl31
1 files changed, 31 insertions, 0 deletions
diff --git a/template/default/mainpage_categories.tpl b/template/default/mainpage_categories.tpl
new file mode 100644
index 000000000..0a88d3534
--- /dev/null
+++ b/template/default/mainpage_categories.tpl
@@ -0,0 +1,31 @@
+
+<ul class="thumbnailCategories">
+{foreach from=$category_thumbnails item=cat}
+ <li>
+ <div class="thumbnailCategory">
+ <div class="illustration">
+ <a href="{$cat.URL}">
+ <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'shows images at the root of this category'|@translate}">
+ </a>
+ </div>
+ <div class="description">
+ <h3>
+ <a href="{$cat.URL}">{$cat.NAME}</a>
+ {if !empty($cat.icon_ts)}
+ <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="(!)">
+ {/if}
+ </h3>
+ <div class="text">
+ {if isset($cat.INFO_DATES) }
+ <p class="dates">{$cat.INFO_DATES}</p>
+ {/if}
+ <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
+ {if not empty($cat.DESCRIPTION)}
+ <p>{$cat.DESCRIPTION}</p>
+ {/if}
+ </div>
+ </div>
+ </div>
+ </li>
+{/foreach}
+</ul>