aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/mainpage_categories.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-02-16 11:51:34 +0000
committerpatdenice <patdenice@piwigo.org>2012-02-16 11:51:34 +0000
commita7f70524df847f3dd8e53e0e07b67597edb1631c (patch)
treedb87ef3bae8722e2439c85edcc67f6d280aef91e /themes/smartpocket/template/mainpage_categories.tpl
parent4f2ae7cbcece6409b2b7e6e2ec4b73ad04917c5e (diff)
feature:2577
Add mobile theme git-svn-id: http://piwigo.org/svn/trunk@13182 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/smartpocket/template/mainpage_categories.tpl')
-rw-r--r--themes/smartpocket/template/mainpage_categories.tpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/smartpocket/template/mainpage_categories.tpl b/themes/smartpocket/template/mainpage_categories.tpl
new file mode 100644
index 000000000..19914c5ce
--- /dev/null
+++ b/themes/smartpocket/template/mainpage_categories.tpl
@@ -0,0 +1,20 @@
+{define_derivative name='derivative_params' width=80 height=80 crop=true}
+
+<ul data-role="listview" data-inset="true">
+{foreach from=$category_thumbnails item=cat}
+ <li>
+ <a href="{$cat.URL}">
+ <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}">
+ <h3>{$cat.NAME}</h3>
+ {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}
+ </a>
+ </li>
+{/foreach}
+</ul>
+