From ff3ff2478dabc642def14193a01649a384f3a88a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 6 May 2020 19:56:37 +0000 Subject: allow to set different values for left and right aside width in $theme.php --- view/theme/redbasic/php/style.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'view/theme/redbasic/php/style.php') diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 91cc0b85b..d278aa309 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -120,10 +120,10 @@ if(file_exists('view/theme/redbasic/css/style.css')) { $x .= $schemecss; } - $aside_width = 288; + $left_aside_width = 288; + $right_aside_width = 288; - // left aside and right aside are 285px + converse width - $main_width = (($aside_width * 2) + intval($converse_width)); + $main_width = $left_aside_width + $right_aside_width + intval($converse_width); // prevent main_width smaller than 768px $main_width = (($main_width < 768) ? 768 : $main_width); @@ -150,7 +150,8 @@ if(file_exists('view/theme/redbasic/css/style.css')) { '$pmenu_top' => $pmenu_top, '$pmenu_reply' => $pmenu_reply, '$main_width' => $main_width, - '$aside_width' => $aside_width + '$left_aside_width' => $left_aside_width, + '$right_aside_width' => $right_aside_width ); echo str_replace(array_keys($options), array_values($options), $x); -- cgit v1.2.3