assign right aside the same width as we have in left aside but hide it on small and xs screens. make aside width a variablee for easier handling.

This commit is contained in:
Mario Vavti
2015-06-10 13:08:17 +02:00
parent 20a317b5b7
commit 50ac9378e3
4 changed files with 18 additions and 11 deletions

View File

@@ -153,11 +153,13 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
$x = file_get_contents('view/theme/redbasic/css/style.css');
// left aside is 231px + converse width
$main_width = (231 + intval($converse_width));
$aside_width = 231;
// left aside and right aside are is 231px + converse width
$main_width = (($aside_width * 2) + intval($converse_width));
// prevent main_width smaller than 768px
$main_width = (($main_width < 768) ? 768 : $main_width) . 'px';
$main_width = (($main_width < 768) ? 768 : $main_width);
$options = array (
'$nav_bg' => $nav_bg,
@@ -191,6 +193,7 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
'$pmenu_reply' => $pmenu_reply,
'$comment_indent' => $comment_indent,
'$main_width' => $main_width,
'$aside_width' => $aside_width
);
echo str_replace(array_keys($options), array_values($options), $x);