diff options
Diffstat (limited to 'themes/unconed/unconed.theme')
-rw-r--r-- | themes/unconed/unconed.theme | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme index acc4cce6c..df6133576 100644 --- a/themes/unconed/unconed.theme +++ b/themes/unconed/unconed.theme @@ -101,7 +101,16 @@ <TR><TD COLSPAN="2" BGCOLOR="<?php echo $this->bgcolor1; ?>" WIDTH="100%"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="100%"><FONT COLOR="<?php echo $this->fgcolor1; ?>"><B><?php echo "". check_output($node->title) .""; ?></B></FONT></td><td valign="middle" align="center"><IMG SRC="themes/<?php print $this->themename; ?>/images/icon.gif" valign="middle"></td></tr></table></TD></TR> <TR BGCOLOR="<?php echo $this->bgcolor2; ?>"> <?php - print "<TD WIDTH=\"70%\" BGCOLOR=\"$this->bgcolor2\"><SMALL>" . t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) . "</TD><TD WIDTH=\"30%\" BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\" NOWRAP><B>". node_index($node) ."</B>"; + 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>"; + } + $taxo = $this->links($taxlinks); + } + } + print "<TD WIDTH=\"70%\" BGCOLOR=\"$this->bgcolor2\"><SMALL>" . t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) . "</TD><TD WIDTH=\"30%\" BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\" NOWRAP><B>". $taxo ."</B>"; ?> </TD> </TR> |