summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-08 19:26:26 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-08 19:26:26 +0000
commit54ddba4eea4316b875609264774ffba467f96e5d (patch)
treef5ea81f98bff7d2f1de4c55f90a4b535d0a41078 /modules
parent58ca1ad6688c8baf2d366e1f5e37dbfeaea82c1e (diff)
downloadbrdo-54ddba4eea4316b875609264774ffba467f96e5d.tar.gz
brdo-54ddba4eea4316b875609264774ffba467f96e5d.tar.bz2
- Fixes CSS for archive calendar so that you can make non-link days padded
in a sensible fashion. Also removes table width 100% and puts that in css. Patch #48 by Al.
Diffstat (limited to 'modules')
-rw-r--r--modules/archive.module6
-rw-r--r--modules/archive/archive.module6
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 05848c06b..0f7370daa 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -71,7 +71,7 @@ function archive_calendar($original = 0) {
// Generate calendar header:
$output .= "\n<!-- calendar -->\n";
$output .= "<div class=\"calendar\">";
- $output .= "<table width=\"100%\">\n";
+ $output .= "<table>\n";
$output .= " <tr><td colspan=\"7\" class=\"header-month\">". l("&lt;", "archive/". date("Y/m/d", $prev)) ." ". date("F Y", $requested) ." ". ($nextmonth <= time() ? l("&gt;", "archive/". date("Y/m/d", $next)) : "&gt;") ."</td></tr>\n";
// First day of week (0 => Sunday, 1 => Monday, ...)
@@ -103,7 +103,7 @@ function archive_calendar($original = 0) {
}
// Start every week on a new line:
if ($sday == $weekstart) {
- $output .= " <tr class=\"row-week\">\n";
+ $output .= " <tr class=\"row-week\">\n";
}
// Print one cell:
@@ -112,7 +112,7 @@ function archive_calendar($original = 0) {
$daytext = l($nday, "archive/$year/$month/$nday");
}
else {
- $daytext = $nday;
+ $daytext = "<div>$nday</div>";
}
if ($date == $requested) {
$output .= " <td class=\"day-selected\">$daytext</td>\n";
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 05848c06b..0f7370daa 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -71,7 +71,7 @@ function archive_calendar($original = 0) {
// Generate calendar header:
$output .= "\n<!-- calendar -->\n";
$output .= "<div class=\"calendar\">";
- $output .= "<table width=\"100%\">\n";
+ $output .= "<table>\n";
$output .= " <tr><td colspan=\"7\" class=\"header-month\">". l("&lt;", "archive/". date("Y/m/d", $prev)) ." ". date("F Y", $requested) ." ". ($nextmonth <= time() ? l("&gt;", "archive/". date("Y/m/d", $next)) : "&gt;") ."</td></tr>\n";
// First day of week (0 => Sunday, 1 => Monday, ...)
@@ -103,7 +103,7 @@ function archive_calendar($original = 0) {
}
// Start every week on a new line:
if ($sday == $weekstart) {
- $output .= " <tr class=\"row-week\">\n";
+ $output .= " <tr class=\"row-week\">\n";
}
// Print one cell:
@@ -112,7 +112,7 @@ function archive_calendar($original = 0) {
$daytext = l($nday, "archive/$year/$month/$nday");
}
else {
- $daytext = $nday;
+ $daytext = "<div>$nday</div>";
}
if ($date == $requested) {
$output .= " <td class=\"day-selected\">$daytext</td>\n";