summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-20 18:00:59 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-20 18:00:59 +0000
commit12713beea425cb4214b8237d9f4863ee84791a65 (patch)
treeccf93b0dd8a61373d157e762dd71ff45811c25d6
parent59b9ebaad25282a9c53ce69fa29b086830fe7f7d (diff)
downloadbrdo-12713beea425cb4214b8237d9f4863ee84791a65.tar.gz
brdo-12713beea425cb4214b8237d9f4863ee84791a65.tar.bz2
- added taxonomy output to BaseTheme.
-rw-r--r--includes/theme.inc11
1 files changed, 10 insertions, 1 deletions
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 .= "<b>". check_output($node->title) ."</b> by ". format_name($node) ."<br />";
+ 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 = "<b>". check_output($node->title) ."</b> by ". format_name($node) ."<br />";
+ if (count($terms)) {
+ $output .= "<small>(". $this->links($terms) .")</small><br />";
+ }
if ($main && $node->teaser) {
$output .= strip_tags(check_output($node->teaser, 1));
}