[Comoblog-commit] comoblog/modules/mod_calendar mod_calendar.php,1.9,1.10
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-02-23 21:45:40
|
Update of /cvsroot/comoblog/comoblog/modules/mod_calendar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30199 Modified Files: mod_calendar.php Log Message: mod_calendar 1.4 - fixes to sunday shading Index: mod_calendar.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_calendar/mod_calendar.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- mod_calendar.php 16 Feb 2006 12:13:03 -0000 1.9 +++ mod_calendar.php 23 Feb 2006 21:45:37 -0000 1.10 @@ -252,7 +252,7 @@ for ($cnt = 0; $cnt < $start_day; $cnt++) // void cells (at beginning of month) { - if ($cnt == $start_column) + if ($cnt+1 == $start_column) $css_class = "calendar_sunday"; else $css_class = "calendar_day"; @@ -309,6 +309,12 @@ for ($cnt = $start_day; $cnt <= 7; $cnt++) // void cells (at end of month) { + if ($cnt == $start_column) + $css_class = "calendar_sunday"; + else + $css_class = "calendar_day"; + + $mod_calendar_tpl->assign("CSS_CLASS", $css_class); $mod_calendar_tpl->parse("main.calendar.row.end_void"); } $mod_calendar_tpl->parse("main.calendar.row"); |