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