summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2002-05-24 21:29:33 (GMT)
committer Dries Buytaert2002-05-24 21:29:33 (GMT)
commit73f9ffc8f4ddabdb95e60d3aaa9ba32ade99afe9 (patch)
treee6d5c7291f0c22a474bd497f39144fffae2f7cda
parentf711baceb7ab2c1a9abfa558a55ce862e2092138 (diff)
- Removed a "nowrap" attribute to make theme Marvin look better on IE6.
(Suggested by UnConed.) - Made theme Marvin support the taxonomy module.
-rw-r--r--themes/marvin/marvin.theme12
1 files changed, 10 insertions, 2 deletions
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index dc5cc10..65d94c6 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -83,11 +83,19 @@
}
function node($node, $main = 0) {
+ $terms = array();
+
+ if (function_exists("taxonomy_node_get_terms")) {
+ foreach (taxonomy_node_get_terms($node->nid) as $term) {
+ $terms[] = l($term->name, array("or" => $term->tid), "index");
+ }
+ }
+
print "\n<!-- node: \"$node->title\" -->\n";
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
print " <tr><td colspan=\"2\"><img src=\"themes/marvin/images/drop.gif\" alt=\"\" /> &nbsp; <b>". check_output($node->title) ."</b></td></tr>\n";
print " <tr valign=\"bottom\"><td colspan=\"2\" bgcolor=\"#000000\" width=\"100%\"><img src=\"themes/marvin/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" /></td></tr>\n";
- print " <tr><td nowrap=\"nowrap\"><font color=\"#7C7C7C\"><small>". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))); ?><?php print "</small></font></td><td align=\"right\" valign=\"top\" nowrap=\"nowrap\"><small>". node_index($node) ."</small></td></tr>\n";
+ print " <tr><td nowrap=\"nowrap\"><font color=\"#7C7C7C\"><small>". t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))); ?><?php print "</small></font></td><td align=\"right\" valign=\"top\" nowrap=\"nowrap\"><small>". $this->links($terms) ."</small></td></tr>\n";
print " <tr><td colspan=\"2\">&nbsp;</td></tr>\n";
if ($main && $node->teaser) {
@@ -164,7 +172,7 @@
print " <tr>\n";
print " <td>\n";
print " <table border=\"0\" cellpadding=\"5\" cellspacing=\"1\" width=\"100%\">\n";
- print " <tr><td align=\"center\" bgcolor=\"#eaeaea\" nowrap=\"nowrap\"><font color=\"#404040\"><b>$subject</b></font></td></tr>\n";
+ print " <tr><td align=\"center\" bgcolor=\"#eaeaea\"><font color=\"#404040\"><b>$subject</b></font></td></tr>\n";
print " <tr><td bgcolor=\"#ffffff\" valign=\"top\">$content</td></tr>\n";
print " </table>\n";
print " </td>\n";