From c52185b6800a61ec531eb99bef780ea85efe12e5 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 6 Oct 2003 12:21:04 +0000 Subject: - taxo_link always returns array(). - Remove dead code from Marvin theme. - cleaner node html in Marvin. --- themes/marvin/marvin.theme | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'themes') 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" : ""; } ?> @@ -39,7 +33,7 @@ > - + @@ -59,25 +53,32 @@ if (module_exist("taxonomy")) { $terms = taxonomy_link("taxonomy terms", $node); } + if (count($terms)) { + $colspan = " colspan=\"2\""; + } print "\n\n"; print "
 
\n"; - print " \n"; + print " path/images/drop.gif\" alt=\"\" title=\"\" />   $node->title\n"; print " \n"; - print " \n"; - print " \n"; + print " "; + if ($colspan) { + print ""; + } + print " \n"; + print "  \n"; if ($main && $node->teaser) { - print " \n"; + print "

$node->teaser

\n"; } else { - print " \n"; + print "

$node->body

\n"; } - print " \n"; + print "  \n"; if ($links = link_node($node, $main)) { - print " \n"; + print " ". $this->links($links) ."\n"; } print "
path/images/drop.gif\" alt=\"\" title=\"\" />   $node->title
path/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" title=\"\" />
". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))); ?>
". ($terms ? $this->links($terms) : "") ."
 
". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) ."
". $this->links($terms) ."

$node->teaser

$node->body

 
". $this->links($links) ."
\n"; -- cgit v1.2.3