summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/goofy/goofy.theme10
-rw-r--r--themes/unconed/unconed.theme11
2 files changed, 19 insertions, 2 deletions
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme
index 786e06646..653fcfd56 100644
--- a/themes/goofy/goofy.theme
+++ b/themes/goofy/goofy.theme
@@ -116,7 +116,15 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
echo "\n<!-- node: \"$node->title\" -->\n";
$title = check_output($node->title);
$subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_name($node), "%b" => format_date($node->created, "large")));
- $subright = node_index($node);
+ 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>";
+ }
+ $subright = $this->links($taxlinks);
+ }
+ }
if ($main && $node->teaser) {
$body = check_output($node->teaser, 1);
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>