source: trunk/template/yoga/month_calendar.tpl @ 2265

Last change on this file since 2265 was 2265, checked in by rvelices, 16 years ago
  • upload.tpl goes smarty
  • start some language cleanup and a small attempt to standardize a bit ...
  • debug_language now calls trigger_error instead of echo when missing language key
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1{* $Id: month_calendar.tpl 2265 2008-03-08 01:38:37Z rvelices $ *}
2
3{if !empty($chronology_navigation_bars) }
4{foreach from=$chronology_navigation_bars item=bar}
5<div class="calendarBar">
6  {if isset($bar.previous)}
7    <div style="float:left">&laquo; <a href="{$bar.previous.URL}">{$bar.previous.LABEL}</a></div>
8  {/if}
9  {if isset($bar.next)}
10    <div style="float:right"><a href="{$bar.next.URL}">{$bar.next.LABEL}</a> &raquo;</div>
11  {/if}
12  {if isset($bar.CONTENT)}
13  {$bar.CONTENT}
14  {else}
15  &nbsp;
16  {/if}
17</div>
18{/foreach}
19{/if}
20
21{if !empty($chronology_calendar.calendar_bars) }
22{foreach from=$chronology_calendar.calendar_bars item=bar}
23<div class="calendarCalBar">
24  <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a>  ({$bar.NB_IMAGES})</span><br/>
25  {$bar.NAV_BAR}
26</div>
27{/foreach}
28{/if}
29
30{if isset($chronology_calendar.month_view) }
31<table class="calMonth">
32 <thead>
33 <tr>
34 {foreach from=$chronology_calendar.month_view.wday_labels item=wday}
35        <td class="calDayHead">{$wday}</td>
36 {/foreach}
37 </tr>
38 </thead>
39
40 {foreach from=$chronology_calendar.month_view.weeks item=week}
41 <tr>
42        {foreach from=$week item=day}
43        {if !empty($day)}
44                {if isset($day.IMAGE)}
45                        <td class="calDayCellFull">
46                                <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div>
47                                <div class="calImg" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">
48                                        <a href="{$day.U_IMG_LINK}">
49                                                <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$pwg->l10n_dec('%d element','%d elements', $day.NB_ELEMENTS)}" />
50                                        </a>
51                                </div>
52                {else}
53                        <td class="calDayCellEmpty" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">{$day.DAY}
54                {/if}
55        {else}
56                <td class="calDayCellBlank" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">
57        {/if}
58        </td>
59        {/foreach} {*day in week*}
60 </tr>
61 {/foreach}  {*week in month*}
62</table>
63{/if}
64
Note: See TracBrowser for help on using the repository browser.