aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/month_calendar.tpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/yoga/month_calendar.tpl92
1 files changed, 60 insertions, 32 deletions
diff --git a/template/yoga/month_calendar.tpl b/template/yoga/month_calendar.tpl
index 3e5ef4f62..a965d40e1 100644
--- a/template/yoga/month_calendar.tpl
+++ b/template/yoga/month_calendar.tpl
@@ -1,36 +1,64 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- BEGIN calendar -->
-<!-- $Id$ -->
-<!-- BEGIN thumbnails -->
+{* $Id$ *}
+
+{if !empty($chronology_navigation_bars) }
+{foreach from=$chronology_navigation_bars item=bar}
+<div class="calendarBar">
+ {if isset($bar.previous)}
+ <div style="float:left">&laquo; <a href="{$bar.previous.URL}">{$bar.previous.LABEL}</a></div>
+ {/if}
+ {if isset($bar.next)}
+ <div style="float:right"><a href="{$bar.next.URL}">{$bar.next.LABEL}</a> &raquo;</div>
+ {/if}
+ {if isset($bar.CONTENT)}
+ {$bar.CONTENT}
+ {else}
+ &nbsp;
+ {/if}
+</div>
+{/foreach}
+{/if}
+
+{if !empty($chronology_calendar.calendar_bars) }
+{foreach from=$chronology_calendar.calendar_bars item=bar}
+<div class="calendarCalBar">
+ <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a> ({$bar.NB_IMAGES})</span><br/>
+ {$bar.NAV_BAR}
+</div>
+{/foreach}
+{/if}
+
+{if isset($chronology_calendar.month_view) }
<table class="calMonth">
-<!-- BEGIN head -->
- <thead><tr>
- <!-- BEGIN col -->
- <td class="calDayHead">{calendar.thumbnails.head.col.LABEL}</td>
- <!-- END col -->
- </tr></thead>
-<!-- END head -->
-<!-- BEGIN row -->
+ <thead>
<tr>
- <!-- BEGIN col -->
- <!-- BEGIN blank -->
- <td class="calDayCellBlank" style="width:{calendar.thumbnails.WIDTH}px;height:{calendar.thumbnails.HEIGHT}px;">
- <!-- END blank -->
- <!-- BEGIN empty -->
- <td class="calDayCellEmpty" style="width:{calendar.thumbnails.WIDTH}px;height:{calendar.thumbnails.HEIGHT}px;">{calendar.thumbnails.row.col.empty.LABEL}
- <!-- END empty -->
- <!-- BEGIN full -->
- <td class="calDayCellFull"><div class="calBackDate">{calendar.thumbnails.row.col.full.LABEL}</div><div class="calForeDate">{calendar.thumbnails.row.col.full.LABEL}</div>
- <div class="calImg" style="width:{calendar.thumbnails.WIDTH}px;height:{calendar.thumbnails.HEIGHT}px;"><a href="{calendar.thumbnails.row.col.full.U_IMG_LINK}">
- <img style="{calendar.thumbnails.row.col.full.STYLE}" {calendar.thumbnails.row.col.full.IMG_WIDTH} {calendar.thumbnails.row.col.full.IMG_HEIGHT}
- src="{calendar.thumbnails.row.col.full.IMAGE}" alt="{calendar.thumbnails.row.col.full.IMAGE_ALT}"
- title="{calendar.thumbnails.row.col.full.IMAGE_ALT}">
- </a></div>
- <!-- END full -->
- </td>
- <!-- END col -->
+ {foreach from=$chronology_calendar.month_view.wday_labels item=wday}
+ <td class="calDayHead">{$wday}</td>
+ {/foreach}
</tr>
-<!-- END row -->
+ </thead>
+
+ {foreach from=$chronology_calendar.month_view.weeks item=week}
+ <tr>
+ {foreach from=$week item=day}
+ {if !empty($day)}
+ {if isset($day.IMAGE)}
+ <td class="calDayCellFull">
+ <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div>
+ <div class="calImg" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">
+ <a href="{$day.U_IMG_LINK}">
+ <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$day.IMAGE_ALT}" />
+ </a>
+ </div>
+ {else}
+ <td class="calDayCellEmpty" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">{$day.DAY}
+ {/if}
+ {else}
+ <td class="calDayCellBlank" style="width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;">
+ {/if}
+ </td>
+ {/foreach} {*day in week*}
+ </tr>
+ {/foreach} {*week in month*}
</table>
-<!-- END thumbnails -->
-<!-- END calendar -->
+{/if}
+