diff options
-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: |