Index: modules/archive.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/archive.module,v
retrieving revision 1.73
diff -u -r1.73 archive.module
--- modules/archive.module 28 Dec 2004 18:47:44 -0000 1.73
+++ modules/archive.module 15 Jan 2005 19:25:13 -0000
@@ -120,7 +120,7 @@
// Set up blank days for first week of the month:
if ($first != $weekstart) {
$blankdays = ($first - $weekstart + 7) % 7;
- $output .= "
| \n";
+ $output .= "
". theme("archive_blank_days", $blankdays) . "\n";
$first = $weekstart;
}
// Start every week on a new line:
@@ -165,7 +165,7 @@
// Complete the calendar:
if ($sday != $weekstart) {
$end = (7 - $sday + $weekstart) % 7;
- $output .= " | \n
\n";
+ $output .= " ". theme("archive_blank_days", $end) . "\n \n";
}
$output .= "\n\n";
@@ -246,6 +246,13 @@
}
}
print theme('page', $output);
+}
+
+/**
+ * Format blank days in calendar.
+ */
+function theme_archive_blank_days($number) {
+ return " | ";
}
?>