diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2002-05-20 11:48:24 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2002-05-20 11:48:24 +0000 |
commit | bf2b4f0b459f01d56b7d2de7be96738968114037 (patch) | |
tree | da383047a045e2078c5fb00049c8935a3da7caa2 /themes/goofy/goofy.theme | |
parent | 6d3be31eb25c48f37fb010e58d52152b8c61e7bf (diff) | |
download | brdo-bf2b4f0b459f01d56b7d2de7be96738968114037.tar.gz brdo-bf2b4f0b459f01d56b7d2de7be96738968114037.tar.bz2 |
Added taxonomy support to themes Goofy and UnConeD
Diffstat (limited to 'themes/goofy/goofy.theme')
-rw-r--r-- | themes/goofy/goofy.theme | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme index 786e06646..653fcfd56 100644 --- a/themes/goofy/goofy.theme +++ b/themes/goofy/goofy.theme @@ -116,7 +116,15 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\" echo "\n<!-- node: \"$node->title\" -->\n"; $title = check_output($node->title); $subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_name($node), "%b" => format_date($node->created, "large"))); - $subright = node_index($node); + if (function_exists("taxonomy_node_get_terms")) { + if ($terms = taxonomy_node_get_terms($node->nid)) { + $taxlinks = array(); + foreach ($terms as $term) { + $taxlinks[] = "<a href=\"index.php?or=$term->tid\">". check_output($term->name) ."</a>"; + } + $subright = $this->links($taxlinks); + } + } if ($main && $node->teaser) { $body = check_output($node->teaser, 1); |