diff options
-rw-r--r-- | themes/goofy/goofy.theme | 8 | ||||
-rw-r--r-- | themes/jeroen/jeroen.theme | 9 | ||||
-rw-r--r-- | themes/yaroon/yaroon.theme | 9 |
3 files changed, 13 insertions, 13 deletions
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme index 2deb0bf52..c51d438a7 100644 --- a/themes/goofy/goofy.theme +++ b/themes/goofy/goofy.theme @@ -11,7 +11,7 @@ *********************************************************************/ - class Theme { + class Theme extends BaseTheme { // General colorset that can be used for this theme var $foreground = "#000000"; var $background = "#FFFFFF"; @@ -86,7 +86,7 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\" </tr> <tr> <td class="lgl"><img src="themes/goofy/images/null.gif" alt=""></td> - <td class="lgcnt" width="100%" valign="top"><div align="center"><big><?php print theme_link(" | "); ?></big></div></td> + <td class="lgcnt" width="100%" valign="top"><div align="center"><big><?php print theme_link(); ?></big></div></td> <td class="lgr"><img src="themes/goofy/images/null.gif" alt=""></td> </tr> <tr> @@ -99,12 +99,12 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\" } // close linksbar function - function node($node, $main = 0) { + function node($node, $main = 0, $links = 0) { echo "\n<!-- node: \"$node->title\" -->\n"; $title = check_output($node->title); $subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large"))); $subright = category_name($node->cid) ." / ". topic_name($node->tid); - $body = check_output($node->body, 1) . ($main ? "<hr color=\"#404040\" size=\"1\"><div align=\"right\">" . theme_morelink($this, $node) . "</div>" : ""); + $body = check_output($node->body, 1) . ($main || $links ? "<hr color=\"#404040\" size=\"1\"><div align=\"right\">" . $this->links($links, $main, $node) . "</div>" : ""); print "<script language=\"JavaScript\"><!--\ns(\"". $this->stripbreaks(addslashes($title)) ."\",\"". $this->stripbreaks(addslashes($subleft)) ."\",\"". $this->stripbreaks(addslashes($subright)) ."\",\"". $this->stripbreaks(addslashes($body)) ."\"); // -->\n</script>\n"; } // close node function diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme index 4f879a766..56eea6346 100644 --- a/themes/jeroen/jeroen.theme +++ b/themes/jeroen/jeroen.theme @@ -9,7 +9,7 @@ *********************************************************************/ - class Theme { + class Theme extends BaseTheme { // General colorset that can be used for this theme var $foreground = "#000000"; var $background = "#E7E7E7"; @@ -84,7 +84,7 @@ } // close header function - function node($node, $main = 0) { + function node($node, $main = 0, $links = 0) { ?> @@ -138,8 +138,7 @@ <tr> <td colspan="2" align="right"> <?php - if ($main) - echo "<FONT COLOR=\"#E09226\">". theme_morelink($this, $node) ."</FONT>"; + if ($main || $links) echo $this->links($links, $main, $node); ?> @@ -311,7 +310,7 @@ <tr> <td align="left" width="20" height="20" background="themes/jeroen/images/footerleft.gif" nowrap> </td> <td width="100%" background="themes/jeroen/images/footer.gif" align="center" valign="middle"> - <FONT COLOR="#E09226" SIZE="2">[ <?php print theme_link(" | "); ?> ] </FONT> + <FONT COLOR="#E09226" SIZE="2">[ <?php print theme_link(); ?> ] </FONT> </td> <td align="right" width="20" background="themes/jeroen/images/footerright.gif" nowrap> </td> </tr> diff --git a/themes/yaroon/yaroon.theme b/themes/yaroon/yaroon.theme index 61a015878..d509606bf 100644 --- a/themes/yaroon/yaroon.theme +++ b/themes/yaroon/yaroon.theme @@ -9,7 +9,7 @@ *********************************************************************/ - class Theme { + class Theme extends BaseTheme { var $foreground = "#000000"; var $background = "#F0F0F0"; @@ -110,8 +110,9 @@ <?php } // close header function + - function node($node, $main = 0) { + function node($node, $main = 0, $links = 0) { switch ($node->tid) { case 0: $color = "#c4a2a2"; $img = "square2.gif"; break; @@ -144,8 +145,8 @@ <tr> <td align=\"right\"> <font color=\"". $color ."\">"; - if ($main) - echo "". theme_morelink($this, $node) .""; + if ($main || $links) + echo $this->links($links, $main, $node); echo"</font>"; ?> |