summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-10-06 12:21:04 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-10-06 12:21:04 +0000
commitc52185b6800a61ec531eb99bef780ea85efe12e5 (patch)
treed04da5b1af9f2c5625c0034907ca462b40d1a9f5 /themes
parent9c0fd0149c38ec84a596f7b06205edff1e1e695d (diff)
downloadbrdo-c52185b6800a61ec531eb99bef780ea85efe12e5.tar.gz
brdo-c52185b6800a61ec531eb99bef780ea85efe12e5.tar.bz2
- taxo_link always returns array().
- Remove dead code from Marvin theme. - cleaner node html in Marvin.
Diffstat (limited to 'themes')
-rw-r--r--themes/marvin/marvin.theme31
1 files changed, 16 insertions, 15 deletions
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index 2edf9c7a6..36c9670b3 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -2,12 +2,6 @@
// $Id$
class Theme_marvin extends BaseTheme {
- var $link = "#666699";
-
- // General colorset that can be used for this theme
- var $foreground = "#000000";
- var $background = "#eaeaea";
-
function system($field) {
$system["name"] = "Marvin";
$system["author"] = "Dries";
@@ -28,7 +22,7 @@
print $title ." - ". variable_get("site_name", "drupal");
}
else {
- print variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", "");
+ print variable_get("site_name", "drupal") . ($slogan = variable_get("site_slogan", "")) ? " - $slogan" : "";
}
?>
</title>
@@ -39,7 +33,7 @@
<body<?php print theme_onload_attribute(); ?>>
<table border="0" cellpadding="8" cellspacing="0">
<tr>
- <td><a href="index.php"><img src="<?php print $this->path; ?>/images/logo.png" style="border: 0px;" alt="" title="" /></a></td>
+ <td><a href="<?php print url(); ?>"><img src="<?php print $this->path; ?>/images/logo.png" style="border: 0px;" alt="" title="" /></a></td>
<td>&nbsp;</td>
</tr>
<tr>
@@ -59,25 +53,32 @@
if (module_exist("taxonomy")) {
$terms = taxonomy_link("taxonomy terms", $node);
}
+ if (count($terms)) {
+ $colspan = " colspan=\"2\"";
+ }
print "\n<!-- node: \"$node->title\" -->\n";
print "<table cellpadding=\"0\" cellspacing=\"0\" style=\"border 0px; width: 100%;\">\n";
- print " <tr><td colspan=\"2\"><img src=\"$this->path/images/drop.gif\" alt=\"\" title=\"\" /> &nbsp; <b>$node->title</b></td></tr>\n";
+ print " <tr><td$colspan><img src=\"$this->path/images/drop.gif\" alt=\"\" title=\"\" /> &nbsp; <b>$node->title</b></td></tr>\n";
print " <tr style=\"vertical-align: bottom;\"><td colspan=\"2\" style=\"background-color: #000000; width: 100%;\"><img src=\"$this->path/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" title=\"\" /></td></tr>\n";
- print " <tr><td><div style=\"color: #7c7c7c;\"><small>". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))); ?><?php print "</small></div></td><td style=\"text-align: right; vertical-align: top;\"><small>". ($terms ? $this->links($terms) : "") ."</small></td></tr>\n";
- print " <tr><td colspan=\"2\">&nbsp;</td></tr>\n";
+ print " <tr><td><div style=\"color: #7c7c7c;\"><small>". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) ."</small></div></td>";
+ if ($colspan) {
+ print "<td style=\"text-align: right; vertical-align: top;\"><small>". $this->links($terms) ."</small></td>";
+ }
+ print " </tr>\n";
+ print " <tr><td$colspan>&nbsp;</td></tr>\n";
if ($main && $node->teaser) {
- print " <tr><td colspan=\"2\"><p>$node->teaser</p></td></tr>\n";
+ print " <tr><td$colspan><p>$node->teaser</p></td></tr>\n";
}
else {
- print " <tr><td colspan=\"2\"><p>$node->body</p></td></tr>\n";
+ print " <tr><td$colspan><p>$node->body</p></td></tr>\n";
}
- print " <tr><td colspan=\"2\">&nbsp;</td></tr>\n";
+ print " <tr><td$colspan>&nbsp;</td></tr>\n";
if ($links = link_node($node, $main)) {
- print " <tr><td colspan=\"2\">". $this->links($links) ."</td></tr>\n";
+ print " <tr><td$colspan>". $this->links($links) ."</td></tr>\n";
}
print "</table>\n";