summaryrefslogtreecommitdiff
path: root/themes/goofy/goofy.theme
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2002-05-20 11:48:24 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2002-05-20 11:48:24 +0000
commitbf2b4f0b459f01d56b7d2de7be96738968114037 (patch)
treeda383047a045e2078c5fb00049c8935a3da7caa2 /themes/goofy/goofy.theme
parent6d3be31eb25c48f37fb010e58d52152b8c61e7bf (diff)
downloadbrdo-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.theme10
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);