summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-05-20 19:30:39 +0000
committerDries Buytaert <dries@buytaert.net>2001-05-20 19:30:39 +0000
commit532233a9792c2495ba31d1f0b211d61ddec9ea6e (patch)
treee8ccc139fb19fa72f5212a3507120b1c5ef00e81 /includes/theme.inc
parent4f1cf00f9ea7b578b9966883b0182179006ddcb8 (diff)
downloadbrdo-532233a9792c2495ba31d1f0b211d61ddec9ea6e.tar.gz
brdo-532233a9792c2495ba31d1f0b211d61ddec9ea6e.tar.bz2
- Removed includes/timer.inc: it has been integrated in common.inc.
- Fixed a bug in node.php: UnConeD forgot to update 1 node_get_object(). - I changed the look of theme_morelink() a bit: it might not look better, but at least the output is "correct". - Various small improvements.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 269a5da2e..dc2108eab 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -98,7 +98,14 @@ function theme_blocks($region, $theme) {
}
function theme_morelink($theme, $node) {
- return ($node->body) ? "[ <A HREF=\"node.php?id=$node->nid\"><FONT COLOR=\"$theme->link\">". t("read more") ."</FONT></A> | ". sizeof(explode(" ", $node->body)) ." ". t("words") ." | <A HREF=\"node.php?id=$node->nid\"><FONT COLOR=\"$theme->link\">". format_plural(node_get_comments($node->nid), "comment", "comments") ."</FONT></A> ]" : "[ <A HREF=\"node.php?id=$node->nid\"><FONT COLOR=\"$theme->link\">". format_plural(node_get_comments($node->nid), "comment", "comments") ."</FONT></A> ]";
+ if ($node->body) {
+ $link[] = "<A HREF=\"node.php?id=$node->nid\"><FONT COLOR=\"$theme->link\">". t("read more") ."</FONT></A>";
+ }
+ if ($node->comment) {
+ $link[] = "<A HREF=\"node.php?id=$node->nid\"><FONT COLOR=\"$theme->link\">". format_plural(node_get_comments($node->nid), "comment", "comments") ."</FONT></A>";
+ }
+
+ return ($link ? "[ ". implode(" | ", $link) ." ]" : "");
}
function theme_moderation_results($theme, $node) {