1 | <div id="calendar_block"> |
---|
2 | {if !empty($chronology_navigation_bars) } |
---|
3 | {foreach from=$chronology_navigation_bars item=bar} |
---|
4 | <div class="calendarBar"> |
---|
5 | {if isset($bar.previous)} |
---|
6 | <div style="float:left">« <a href="{$bar.previous.URL}">{$bar.previous.LABEL}</a></div> |
---|
7 | {/if} |
---|
8 | {if isset($bar.next)} |
---|
9 | <div style="float:right"><a href="{$bar.next.URL}">{$bar.next.LABEL}</a> »</div> |
---|
10 | {/if} |
---|
11 | {if empty($bar.items)} |
---|
12 | |
---|
13 | {else} |
---|
14 | {foreach from=$bar.items item=item} |
---|
15 | <span class="calItem{if !isset($item.URL)}Empty{/if}" {if isset($item.NB_IMAGES)}title="{$pwg->l10n_dec('%d photo', '%d photos', $item.NB_IMAGES)}"{/if}> |
---|
16 | {if isset($item.URL)} |
---|
17 | <a href="{$item.URL}">{$item.LABEL}</a> |
---|
18 | {else} |
---|
19 | {$item.LABEL} |
---|
20 | {/if} |
---|
21 | </span> |
---|
22 | {/foreach} |
---|
23 | {/if} |
---|
24 | </div> |
---|
25 | {/foreach} |
---|
26 | {/if} |
---|
27 | |
---|
28 | {if !empty($chronology_calendar.calendar_bars) } |
---|
29 | {foreach from=$chronology_calendar.calendar_bars item=bar} |
---|
30 | <div class="calendarCalBar"> |
---|
31 | <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a> ({$bar.NB_IMAGES})</span><br> |
---|
32 | {foreach from=$bar.items item=item} |
---|
33 | <span class="calCal{if !isset($item.URL)}Empty{/if}"> |
---|
34 | {if isset($item.URL)} |
---|
35 | <a href="{$item.URL}">{$item.LABEL}</a> |
---|
36 | {else} |
---|
37 | {$item.LABEL} |
---|
38 | {/if} |
---|
39 | {if isset($item.NB_IMAGES)}({$item.NB_IMAGES}){/if} |
---|
40 | </span> |
---|
41 | {/foreach} |
---|
42 | </div> |
---|
43 | {/foreach} |
---|
44 | {/if} |
---|
45 | |
---|
46 | {if isset($chronology_calendar.month_view) } |
---|
47 | <table class="calMonth"> |
---|
48 | <thead> |
---|
49 | <tr> |
---|
50 | {foreach from=$chronology_calendar.month_view.wday_labels item=wday} |
---|
51 | <td class="calDayHead">{$wday}</td> |
---|
52 | {/foreach} |
---|
53 | </tr> |
---|
54 | </thead> |
---|
55 | {html_head} {*add the style to html head for strict standard compliance*} |
---|
56 | <style type="text/css"> |
---|
57 | TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim} |
---|
58 | width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px; |
---|
59 | } |
---|
60 | </style> |
---|
61 | {/html_head} |
---|
62 | {foreach from=$chronology_calendar.month_view.weeks item=week} |
---|
63 | <tr> |
---|
64 | {foreach from=$week item=day} |
---|
65 | {if !empty($day)} |
---|
66 | {if isset($day.IMAGE)} |
---|
67 | <td class="calDayCellFull"> |
---|
68 | <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div> |
---|
69 | <div class="calImg"> |
---|
70 | <a href="{$day.U_IMG_LINK}"> |
---|
71 | <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$pwg->l10n_dec('%d photo','%d photos', $day.NB_ELEMENTS)}"> |
---|
72 | </a> |
---|
73 | </div> |
---|
74 | {else} |
---|
75 | <td class="calDayCellEmpty">{$day.DAY} |
---|
76 | {/if} |
---|
77 | {else} |
---|
78 | <td class="calDayCellBlank"> |
---|
79 | {/if} |
---|
80 | </td> |
---|
81 | {/foreach} {*day in week*} |
---|
82 | </tr> |
---|
83 | {/foreach} {*week in month*} |
---|
84 | </table> |
---|
85 | {/if} |
---|
86 | </div> |
---|