diff options
author | plegall <plg@piwigo.org> | 2010-03-13 00:00:52 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-13 00:00:52 +0000 |
commit | 14778ce673277f2df41f963aa70df1cbed427294 (patch) | |
tree | 8c723d4d9827876dbf19d2bd581405fc50910860 /themes/default/template/mainpage_categories.tpl | |
parent | c396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff) |
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.
git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/template/mainpage_categories.tpl')
-rw-r--r-- | themes/default/template/mainpage_categories.tpl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/themes/default/template/mainpage_categories.tpl b/themes/default/template/mainpage_categories.tpl new file mode 100644 index 000000000..0a88d3534 --- /dev/null +++ b/themes/default/template/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> |