From c409368062f569c5ef40f6f3094a98928d15f237 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Jun 2003 17:17:51 +0000 Subject: - Bugfix: emit the proper CSS tags for "normal" and "linked" days. Patch #18 by Al. Thanks. --- modules/archive.module | 4 +++- modules/archive/archive.module | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/archive.module b/modules/archive.module index 304446f4a..13a3bdbb7 100644 --- a/modules/archive.module +++ b/modules/archive.module @@ -110,9 +110,11 @@ function archive_calendar($original = 0) { $date = mktime(0, 0, 0, $month, $nday, $year); if (in_array($nday, $days_with_posts)) { $daytext = l($nday, "archive/$year/$month/$nday"); + $dayclass = "day-link"; } else { $daytext = "
$nday
"; + $dayclass = "day-normal"; } if ($date == $requested) { $output .= " $daytext\n"; @@ -124,7 +126,7 @@ function archive_calendar($original = 0) { $output .= " $daytext\n"; } else { - $output .= " $daytext\n"; + $output .= " $daytext\n"; } // Start every week on a new line: diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 304446f4a..13a3bdbb7 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -110,9 +110,11 @@ function archive_calendar($original = 0) { $date = mktime(0, 0, 0, $month, $nday, $year); if (in_array($nday, $days_with_posts)) { $daytext = l($nday, "archive/$year/$month/$nday"); + $dayclass = "day-link"; } else { $daytext = "
$nday
"; + $dayclass = "day-normal"; } if ($date == $requested) { $output .= " $daytext\n"; @@ -124,7 +126,7 @@ function archive_calendar($original = 0) { $output .= " $daytext\n"; } else { - $output .= " $daytext\n"; + $output .= " $daytext\n"; } // Start every week on a new line: -- cgit v1.2.3