From 12713beea425cb4214b8237d9f4863ee84791a65 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 20 May 2002 18:00:59 +0000 Subject: - added taxonomy output to BaseTheme. --- includes/theme.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index 0344195b2..4aa89b6d6 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -35,7 +35,16 @@ class BaseTheme { } function node($node, $main) { - $output .= "". check_output($node->title) ." by ". format_name($node) ."
"; + 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"); + } + } + + $output = "". check_output($node->title) ." by ". format_name($node) ."
"; + if (count($terms)) { + $output .= "(". $this->links($terms) .")
"; + } if ($main && $node->teaser) { $output .= strip_tags(check_output($node->teaser, 1)); } -- cgit v1.2.3