aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/style.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-11 13:07:45 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-11 13:07:45 +0200
commit8c4b3379187b0c6841499801ce07960c885713f3 (patch)
treea1b610174e5cf56b41ffc84895a3826d33675ebc /view/theme/redbasic/php/style.php
parentc8fe408a62b607e69df0a059769fcd200416bf9d (diff)
downloadvolse-hubzilla-8c4b3379187b0c6841499801ce07960c885713f3.tar.gz
volse-hubzilla-8c4b3379187b0c6841499801ce07960c885713f3.tar.bz2
volse-hubzilla-8c4b3379187b0c6841499801ce07960c885713f3.zip
set width for region_3 only if center page content is set
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r--view/theme/redbasic/php/style.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 5a28fc4e3..956c1951c 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -156,8 +156,12 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
$aside_width = 231;
// left aside and right aside are is 231px + converse width
- $main_width = (($aside_width * 2) + intval($converse_width));
-
+ if($converse_center) {
+ $main_width = (($aside_width * 2) + intval($converse_width));
+ }
+ else {
+ $main_width = (($aside_width) + intval($converse_width));
+ }
// prevent main_width smaller than 768px
$main_width = (($main_width < 768) ? 768 : $main_width);
@@ -205,7 +209,8 @@ if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) {
}
if($converse_center && file_exists('view/theme/redbasic/css/converse_center.css')) {
- echo file_get_contents('view/theme/redbasic/css/converse_center.css');
+ $cc = file_get_contents('view/theme/redbasic/css/converse_center.css');
+ echo str_replace(array_keys($options), array_values($options), $cc);
}
if($schemecss) {