summaryrefslogtreecommitdiff
path: root/themes/chameleon/chameleon.theme
diff options
context:
space:
mode:
Diffstat (limited to 'themes/chameleon/chameleon.theme')
-rw-r--r--themes/chameleon/chameleon.theme16
1 files changed, 10 insertions, 6 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme
index 9ffa50ef0..272f8169f 100644
--- a/themes/chameleon/chameleon.theme
+++ b/themes/chameleon/chameleon.theme
@@ -3,7 +3,7 @@
/**
* @file
- * A slim, CSS-driven theme.
+ * A slim, CSS-driven theme which does not depend on a template engine like phptemplate
*/
function chameleon_features() {
@@ -21,7 +21,7 @@ function chameleon_regions() {
);
}
-function chameleon_page($content) {
+function chameleon_page($content, $show_blocks = TRUE) {
$language = $GLOBALS['locale'];
if (theme_get_setting('toggle_favicon')) {
@@ -71,8 +71,10 @@ function chameleon_page($content) {
$output .= " <table id=\"content\">\n";
$output .= " <tr>\n";
- if ($blocks = theme_blocks("left")) {
- $output .= " <td id=\"sidebar-left\">$blocks</td>\n";
+ if ($show_blocks) {
+ if ($blocks = theme_blocks("left")) {
+ $output .= " <td id=\"sidebar-left\">$blocks</td>\n";
+ }
}
$output .= " <td id=\"main\">\n";
@@ -101,8 +103,10 @@ function chameleon_page($content) {
$output .= " </td>\n";
- if ($blocks = theme_blocks("right")) {
- $output .= " <td id=\"sidebar-right\">$blocks</td>\n";
+ if ($show_blocks) {
+ if ($blocks = theme_blocks("right")) {
+ $output .= " <td id=\"sidebar-right\">$blocks</td>\n";
+ }
}
$output .= " </tr>\n";