summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-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));
}