source: branches/2.2/template-extension/distributed/samples/titling_categories.tpl @ 11979

Last change on this file since 11979 was 8665, checked in by rvelices, 14 years ago

feature 2102 : rename item/image/picture to photo

  • Property svn:eol-style set to LF
File size: 1.9 KB
Line 
1{*
2
3   Copied from mainpage_categories.tpl
4
5*}
6{if !empty($category_thumbnails)}
7  {html_head}
8<style media="screen,handheld,projection,tv" type="text/css">
9#content ul.thumbnailCategories li {ldelim} width:100%; z-index: 55; position: relative;}
10#Titling h3 {ldelim} margin:11px 0 -13px; padding:0 3px 0 20px; text-align:left; z-index: 99; position: relative;}
11#Titling h3 a {ldelim} background-color: #222; padding: 0 10px; }
12#content ul.thumbnailCategories .unbordered {ldelim} width:49%; float:left; margin:0 0 0 5px; }
13.content div.thumbnailCategory div.description p.dates {ldelim} margin: 0 45px 0 20px; }
14#content .thumbnailCategory div.description .text {ldelim} margin: 0; padding: 0 4px; text-align: justify; }
15p.Nb_images {ldelim} text-align: left; color: #444; }
16/* hacks */
17*+html #Titling h3, * html #Titling h3 {ldelim} font-weight: normal;} /* IE browsers */
18</style>
19  {/html_head}
20  <ul class="thumbnailCategories" id="Titling"> {*                   1st difference: Titling/thumbnail *}
21    {foreach from=$category_thumbnails item=cat}
22    <div class="unbordered"> {*                                                   W3C HTML non conform *}
23    <h3> {*                                               2nd difference: h3 is outside of description *}
24      <a href="{$cat.URL}">{$cat.NAME}</a>{$cat.ICON_TS}
25    </h3>
26    <li>
27      <div class="thumbnailCategory">
28       <div class="illustration">
29          <a href="{$cat.URL}">
30            <img src="{$cat.TN_SRC}" alt="{$cat.ALT}"
31            title="{'display this album'|@translate}">
32          </a>
33        </div>
34        <div class="description">
35                                {if isset($cat.INFO_DATES) }
36                                <p class="dates">{$cat.INFO_DATES}</p>
37                                {/if}
38          <div class="text">
39          <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
40                                {if not empty($cat.DESCRIPTION)}
41                                <p>{$cat.DESCRIPTION}</p>
42                                {/if}
43          </div>
44        </div>
45      </div>
46    </li>
47    </div>   
48    {/foreach}
49  </ul>
50{/if}
Note: See TracBrowser for help on using the repository browser.