summaryrefslogtreecommitdiff
path: root/themes/goofy/goofy.theme
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2001-07-14 01:01:45 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2001-07-14 01:01:45 +0000
commite62e3417f7cbdbb1206f20f2f663b606a2b7b12a (patch)
tree476f52eb2a5c4d6d89ab5d8f7a15848a40a07c7f /themes/goofy/goofy.theme
parentbab8da0208d6f41de37bd3048e31728575327f11 (diff)
downloadbrdo-e62e3417f7cbdbb1206f20f2f663b606a2b7b12a.tar.gz
brdo-e62e3417f7cbdbb1206f20f2f663b606a2b7b12a.tar.bz2
Update of the box function in themes to allow a difference in style/output/look of a box() depending on the position on the page.
Basically this is a 'nice version' of a hack that you could do as a theme author. I've updated all the standard themes, but 3rd party themes will of course have to be updated by their authors, in the following manner: - Replace the box() declaration: < function box($subject, $content) { > function box($subject, $content, $region = "main") { - Replace the theme_account call: < theme_account($this); > theme_account("region", $this); Note that you'll have to replace "region" with the correct region that the box is placed in. However if you have a one-column theme, you should use "all", and not for example "left" (if all boxes are on the left). Usually the "region" here should be the same as the nearest theme_blocks() call. Those theme authors who want to can make boxes that appear in the center look different from those that appear in the sides for example.
Diffstat (limited to 'themes/goofy/goofy.theme')
-rw-r--r--themes/goofy/goofy.theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme
index 601125dff..b2b7bea4c 100644
--- a/themes/goofy/goofy.theme
+++ b/themes/goofy/goofy.theme
@@ -129,7 +129,7 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
} // close stripbreaks function
- function box($subject, $content) {
+ function box($subject, $content, $region = "main") {
print "<script language=\"JavaScript\"><!--\nb(\"". $this->stripbreaks(addslashes($subject)) ."\",\"". $this->stripbreaks(addslashes($content)) ."\"); // -->\n</script>\n";
} // close box function
@@ -139,7 +139,7 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
</td>
<td valign="top">
<?php
- theme_account($this);
+ theme_account("all", $this);
theme_blocks("all", $this);
?>
</td>