Commit 12713bee authored by Kjartan's avatar Kjartan

- added taxonomy output to BaseTheme.

parent 59b9ebaa
......@@ -35,7 +35,16 @@ function image($name) {
}
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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment