diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-16 17:17:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-16 17:17:51 +0000 |
commit | c409368062f569c5ef40f6f3094a98928d15f237 (patch) | |
tree | 1b86e773ade145e2111a1651d428a71ac134f8bb | |
parent | 4e91002fde5c18cafb15cbb05a66b51f84f69dfb (diff) | |
download | brdo-c409368062f569c5ef40f6f3094a98928d15f237.tar.gz brdo-c409368062f569c5ef40f6f3094a98928d15f237.tar.bz2 |
- Bugfix: emit the proper CSS tags for "normal" and "linked" days. Patch #18
by Al. Thanks.
-rw-r--r-- | modules/archive.module | 4 | ||||
-rw-r--r-- | modules/archive/archive.module | 4 |
2 files changed, 6 insertions, 2 deletions
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 = "<div>$nday</div>"; + $dayclass = "day-normal"; } if ($date == $requested) { $output .= " <td class=\"day-selected\">$daytext</td>\n"; @@ -124,7 +126,7 @@ function archive_calendar($original = 0) { $output .= " <td class=\"day-future\">$daytext</td>\n"; } else { - $output .= " <td class=\"day-link\">$daytext</td>\n"; + $output .= " <td class=\"$dayclass\">$daytext</td>\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 = "<div>$nday</div>"; + $dayclass = "day-normal"; } if ($date == $requested) { $output .= " <td class=\"day-selected\">$daytext</td>\n"; @@ -124,7 +126,7 @@ function archive_calendar($original = 0) { $output .= " <td class=\"day-future\">$daytext</td>\n"; } else { - $output .= " <td class=\"day-link\">$daytext</td>\n"; + $output .= " <td class=\"$dayclass\">$daytext</td>\n"; } // Start every week on a new line: |