summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-01 21:31:19 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-01 21:31:19 +0000
commit1f622e8ba676f2aeeda1a3571eec3990652b2a80 (patch)
treeeaaecd92295249084916dc6c5923e94d5d459f68 /templates
parent881f33eaa80f6a66236214845498d11aa47036fb (diff)
downloadcalendar-1f622e8ba676f2aeeda1a3571eec3990652b2a80.tar.gz
calendar-1f622e8ba676f2aeeda1a3571eec3990652b2a80.tar.bz2
calendar-1f622e8ba676f2aeeda1a3571eec3990652b2a80.zip
make sure {cycle} has values to cycle through
Diffstat (limited to 'templates')
-rw-r--r--templates/calendar.tpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/calendar.tpl b/templates/calendar.tpl
index 8bdde1e..ad90bba 100644
--- a/templates/calendar.tpl
+++ b/templates/calendar.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.37 2006/01/10 21:19:50 squareing Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.38 2006/02/01 21:31:19 squareing Exp $ *}
{strip}
{if !$gBitSystem->isFeatureActive( 'feature_helppopup' )}
{popup_init src="`$smarty.const.UTIL_PKG_URL`javascript/libs/overlib.js"}
@@ -51,7 +51,7 @@
</th>
</tr>
<tr>
- <td class="calitems {if $day.day eq $navigation.display_focus_date} current{/if}{if $day.day eq $navigation.today} highlight{/if} {cycle}">
+ <td class="calitems {if $day.day eq $navigation.display_focus_date} current{/if}{if $day.day eq $navigation.today} highlight{/if} {cycle values="odd,even"}">
{if $day.day|cal_date_format:"%m" eq $navigation.focus_month or $smarty.session.calendar.view_mode eq "week"}
{foreach from=$day.items item=item}
{assign var=over value=$item.over}
@@ -84,13 +84,13 @@
{if $day.day|cal_date_format:"%m" eq $navigation.focus_month}
{cycle values="odd,even" print=false advance=false}
{else}
- {cycle values="notmonth" print=false advance=false}
+ {cycle values="notmonth,notmonth" print=false advance=false}
{/if}
{else}
{cycle values="odd,even" print=false advance=false}
{/if}
- <td class="calitems {if $day.day eq $navigation.display_focus_date} current{/if}{if $day.day eq $navigation.today} highlight{/if} {cycle}">
+ <td class="calitems {if $day.day eq $navigation.display_focus_date} current{/if}{if $day.day eq $navigation.today} highlight{/if} {cycle values="odd,even"}">
{if $day.day|cal_date_format:"%m" eq $navigation.focus_month or $smarty.session.calendar.view_mode eq "week"}
<div class="calnumber">
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?view_mode=day&amp;todate={$day.day}&amp;{$url_string}">{$day.day|cal_date_format:"%d"}</a>