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}">« {$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} »</a></span> |
---|
11 | {/if} |
---|
12 | |
---|
13 | {if empty($bar.items)} |
---|
14 | |
---|
15 | {else} |
---|
16 | {foreach from=$bar.items item=item} |
---|
17 | <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}> |
---|
18 | {if isset($item.URL)} |
---|
19 | <a href="{$item.URL}">{$item.LABEL}</a> |
---|
20 | {else} |
---|
21 | {$item.LABEL} |
---|
22 | {/if} |
---|
23 | </span> |
---|
24 | {/foreach} |
---|
25 | {/if} |
---|
26 | </div> |
---|
27 | {/foreach} |
---|
28 | {/if} |
---|
29 | |
---|
30 | {if !empty($chronology_calendar.calendar_bars) } |
---|
31 | {foreach from=$chronology_calendar.calendar_bars item=bar} |
---|
32 | <div class="calendarCalBar"> |
---|
33 | <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a> |
---|
34 | <span class="calCalNbImg">[{$bar.NB_IMAGES}]</span> |
---|
35 | </span><br/> |
---|
36 | {foreach from=$bar.items item=item} |
---|
37 | <span class="calCal{if !isset($item.URL)}Empty{/if}"> |
---|
38 | {if isset($item.URL)} |
---|
39 | <a href="{$item.URL}">{$item.LABEL}</a> |
---|
40 | {else} |
---|
41 | {$item.LABEL} |
---|
42 | {/if} |
---|
43 | {if isset($item.NB_IMAGES)}<span class="calCalNbImg">[{$item.NB_IMAGES}]</span>{/if} |
---|
44 | </span> |
---|
45 | {/foreach} |
---|
46 | </div> |
---|
47 | {/foreach} |
---|
48 | {/if} |
---|
49 | |
---|
50 | {if isset($chronology_calendar.month_view) } |
---|
51 | <div> |
---|
52 | <table class="calMonth"> |
---|
53 | <thead> |
---|
54 | <tr> |
---|
55 | {foreach from=$chronology_calendar.month_view.wday_labels item=wday} |
---|
56 | <td class="calDayHead">{$wday}</td> |
---|
57 | {/foreach} |
---|
58 | </tr> |
---|
59 | </thead> |
---|
60 | {html_head} {*add the style to html head for strict standard compliance*} |
---|
61 | |
---|
62 | {/html_head} |
---|
63 | {foreach from=$chronology_calendar.month_view.weeks item=week} |
---|
64 | <tr> |
---|
65 | {foreach from=$week item=day} |
---|
66 | {if !empty($day)} |
---|
67 | {if isset($day.IMAGE)} |
---|
68 | <td class="calDayCellFull"> |
---|
69 | <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div> |
---|
70 | <div class="calImg sTipOnRight" title="{$pwg->l10n_dec('%d photo','%d photos', $day.NB_ELEMENTS)}" > |
---|
71 | <a href="{$day.U_IMG_LINK}"> |
---|
72 | <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" /> |
---|
73 | </a> |
---|
74 | </div> |
---|
75 | {else} |
---|
76 | <td class="calDayCellEmpty">{$day.DAY} |
---|
77 | {/if} |
---|
78 | {else} |
---|
79 | <td class="calDayCellBlank"> |
---|
80 | {/if} |
---|
81 | </td> |
---|
82 | {/foreach} {*day in week*} |
---|
83 | </tr> |
---|
84 | {/foreach} {*week in month*} |
---|
85 | </table> |
---|
86 | </div> |
---|
87 | {/if} |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | <!-- **GBL** <MONTH_CALENDAR< --> |
---|