From 83542a1b0128081bdfdd712becb8a870e8e99e86 Mon Sep 17 00:00:00 2001 From: natrak <> Date: Mon, 11 Jun 2001 17:42:52 +0000 Subject: Changes - fixed the trailing | in some cases. - removed theme_morelinks(). - added node_links(). - simplified BaseTheme->links(). - updated themes. Notes - the new links system is taking form, but concider it beta. There might still be some major changes ahead so I suggest waiting a little longer before modifying your theme to take advantage of it. --- themes/goofy/goofy.theme | 2 +- themes/jeroen/jeroen.theme | 4 ++-- themes/yaroon/yaroon.theme | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'themes') diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme index 56c28dd78..89d4a3343 100644 --- a/themes/goofy/goofy.theme +++ b/themes/goofy/goofy.theme @@ -104,7 +104,7 @@ function c(subject,mod,author,date,body) {document.writeln("title); $subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large"))); $subright = node_index($node->attribute); - $body = check_output($node->body, 1) . ($main || $links ? "
" . $this->links($links, $main, $node) . "
" : ""); + $body = check_output($node->body, 1) . (node_links($links, $node, $main) ? "
" . $this->links($links, $main) . "
" : ""); print "\n"; } // close node function diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme index 26bb678b5..8af597435 100644 --- a/themes/jeroen/jeroen.theme +++ b/themes/jeroen/jeroen.theme @@ -138,8 +138,8 @@ diff --git a/themes/yaroon/yaroon.theme b/themes/yaroon/yaroon.theme index 4aefd8a1a..66280be8b 100644 --- a/themes/yaroon/yaroon.theme +++ b/themes/yaroon/yaroon.theme @@ -145,8 +145,8 @@
links($links, $main, $node); - + if (node_links($links, $node, $main)) + echo $this->links($links, $main); ?>
"; - if ($main || $links) - echo $this->links($links, $main, $node); + if (node_links($links, $node, $main)) + echo $this->links($links, $main); echo""; ?> -- cgit v1.2.3