From 1f54afa5281272bd9e2873ad3bf1f1b143c0e2de Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 23 Jan 2005 15:36:07 +0000 Subject: - Patch #15655 by Goba: allow blank days in the calendar to be styled using CSS, and tidied up the calendar's CSS. --- modules/archive.module | 8 ++++---- modules/archive/archive.module | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/archive.module b/modules/archive.module index f99375217..122943dbe 100644 --- a/modules/archive.module +++ b/modules/archive.module @@ -119,10 +119,10 @@ function archive_calendar($original = 0) { // Loop through all the days of the month: while ($nday <= $last) { - // Set up blank days for first week of the month: + // Set up blank days for first week of the month (allowing individual blank day styling): if ($first != $weekstart) { $blankdays = ($first - $weekstart + 7) % 7; - $output .= "  \n"; + $output .= " " . str_repeat(" \n", $blankdays); $first = $weekstart; } // Start every week on a new line: @@ -164,10 +164,10 @@ function archive_calendar($original = 0) { $nday++; } - // Complete the calendar: + // Complete the calendar (allowing individual blank day styling): if ($sday != $weekstart) { $end = (7 - $sday + $weekstart) % 7; - $output .= "  \n \n"; + $output .= str_repeat(" \n", $end) . "\n"; } $output .= "\n\n"; diff --git a/modules/archive/archive.module b/modules/archive/archive.module index f99375217..122943dbe 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -119,10 +119,10 @@ function archive_calendar($original = 0) { // Loop through all the days of the month: while ($nday <= $last) { - // Set up blank days for first week of the month: + // Set up blank days for first week of the month (allowing individual blank day styling): if ($first != $weekstart) { $blankdays = ($first - $weekstart + 7) % 7; - $output .= "  \n"; + $output .= " " . str_repeat(" \n", $blankdays); $first = $weekstart; } // Start every week on a new line: @@ -164,10 +164,10 @@ function archive_calendar($original = 0) { $nday++; } - // Complete the calendar: + // Complete the calendar (allowing individual blank day styling): if ($sday != $weekstart) { $end = (7 - $sday + $weekstart) % 7; - $output .= "  \n \n"; + $output .= str_repeat(" \n", $end) . "\n"; } $output .= "\n\n"; -- cgit v1.2.3