source: extensions/gally/piwigo-2.0/month_calendar.tpl @ 16479

Last change on this file since 16479 was 4446, checked in by grum, 15 years ago

[Template:Gally] Add template to subversion

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1<!-- **GBL** >MONTH_CALENDAR> -->
2{if !empty($chronology_navigation_bars) }
3{foreach from=$chronology_navigation_bars item=bar}
4<div class="calendarBar">
5  {if isset($bar.previous)}
6    <span class="calItemP"><a href="{$bar.previous.URL}">&laquo;  {$bar.previous.LABEL}</a></span>
7  {/if}
8
9  {if isset($bar.next)}
10    <span class="calItemN" ><a href="{$bar.next.URL}">{$bar.next.LABEL} &raquo;</a></span>
11  {/if}
12
13  {if isset($bar.CONTENT)}
14  {$bar.CONTENT}
15  {else}
16  &nbsp;
17  {/if}
18</div>
19{/foreach}
20{/if}
21
22{if !empty($chronology_calendar.calendar_bars) }
23{foreach from=$chronology_calendar.calendar_bars item=bar}
24<div class="calendarCalBar">
25  <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a>
26  <span class="calCalNbImg">[{$bar.NB_IMAGES}]</span>
27  </span><br/>
28  {$bar.NAV_BAR}
29</div>
30{/foreach}
31{/if}
32
33{if isset($chronology_calendar.month_view) }
34<div>
35  <table class="calMonth">
36  <thead>
37  <tr>
38  {foreach from=$chronology_calendar.month_view.wday_labels item=wday}
39    <td class="calDayHead">{$wday}</td>
40  {/foreach}
41  </tr>
42  </thead>
43  {html_head} {*add the style to html head for strict standard compliance*}
44  <style type="text/css">
45  TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim}
46    width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;
47  }
48  </style>
49  {/html_head}
50  {foreach from=$chronology_calendar.month_view.weeks item=week}
51  <tr>
52    {foreach from=$week item=day}
53    {if !empty($day)}
54      {if isset($day.IMAGE)}
55        <td class="calDayCellFull">
56          <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div>
57          <div class="calImg">
58            <a href="{$day.U_IMG_LINK}">
59                <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$pwg->l10n_dec('%d element','%d elements', $day.NB_ELEMENTS)}" />
60            </a>
61          </div>
62      {else}
63        <td class="calDayCellEmpty">{$day.DAY}
64      {/if}
65    {else}
66      <td class="calDayCellBlank">
67    {/if}
68    </td>
69    {/foreach} {*day in week*}
70  </tr>
71  {/foreach}  {*week in month*}
72  </table>
73</div>
74{/if}
75
76
77
78<!-- **GBL** <MONTH_CALENDAR< -->
Note: See TracBrowser for help on using the repository browser.