aboutsummaryrefslogtreecommitdiffstats
path: root/template-extension/distributed
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-09-17 21:19:14 +0000
committervdigital <vdigital@piwigo.org>2008-09-17 21:19:14 +0000
commitc6dbaee1ecd46f2627b5922d47b42d8e5c6aed8e (patch)
treefaa31775e103a865cf684a9bb7077c44b996b2d5 /template-extension/distributed
parent1e5cfed04164e29fe4d07bbed589e647aa68aafc (diff)
titling_categories.tpl is a mainpage_categories.tpl available remplacement.
Warning about it: HTML conformity not respected. git-svn-id: http://piwigo.org/svn/trunk@2547 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-extension/distributed')
-rw-r--r--template-extension/distributed/samples/titling_categories.tpl45
1 files changed, 45 insertions, 0 deletions
diff --git a/template-extension/distributed/samples/titling_categories.tpl b/template-extension/distributed/samples/titling_categories.tpl
new file mode 100644
index 000000000..df608666b
--- /dev/null
+++ b/template-extension/distributed/samples/titling_categories.tpl
@@ -0,0 +1,45 @@
+{*
+
+ Copied from mainpage_categories.tpl
+
+*}
+{if !empty($category_thumbnails)}
+ {html_head}
+<style media="screen,handheld,projection,tv" type="text/css">
+#content ul.thumbnailCategories li {ldelim} width:100%; }
+#Titling h3 {ldelim} margin:11px 0 -13px; padding:0 3px 0 20px; text-align:left; }
+#Titling h3 a {ldelim} background-color: #222; padding: 0 10px; }
+#content ul.thumbnailCategories .unbordered {ldelim} width:49%; float:left; margin:0 0 0 5px;}
+</style>
+ {/html_head}
+ <ul class="thumbnailCategories" id="Titling"> {* 1st difference: Titling/thumbnail *}
+ {foreach from=$category_thumbnails item=cat}
+ <div class="unbordered"> {* W3C HTML non conform *}
+ <h3> {* 2nd difference: h3 is outside of description *}
+ <a href="{$cat.URL}">{$cat.NAME}</a>{$cat.ICON}
+ </h3>
+ <li>
+ <div class="thumbnailCategory">
+ <div class="illustration">
+ <a href="{$cat.URL}">
+ <img src="{$cat.TN_SRC}" alt="{$cat.ALT}"
+ title="{'hint_category'|@translate}">
+ </a>
+ </div>
+ <div class="description">
+ <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>
+ </div>
+ {/foreach}
+ </ul>
+{/if} \ No newline at end of file