Co-authored-by: muppeth <muppeth@disroot.org>
Reviewed-on: #1
Reviewed-by: antilopa <antilopa@no-reply@disroot.org>
Co-authored-by: muppeth <muppeth@no-reply@disroot.org>
Co-committed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
muppeth 2021-05-22 09:14:15 +00:00
parent 309b02c81a
commit 904d69fda3
1 changed files with 33 additions and 34 deletions

View File

@ -120,44 +120,43 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) { if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) {
$x .= file_get_contents('view/theme/redbasic/css/narrow_navbar.css'); $x .= file_get_contents('view/theme/redbasic/css/narrow_navbar.css');
} }
if($schemecss) {
$x .= $schemecss;
}
if($schemecss) { $left_aside_width = 288;
$x .= $schemecss; $right_aside_width = 288;
}
$aside_width = 288; $main_width = $left_aside_width + $right_aside_width + intval($converse_width);
// left aside and right aside are 285px + converse width // prevent main_width smaller than 768px
$main_width = (($aside_width * 2) + intval($converse_width)); $main_width = (($main_width < 768) ? 768 : $main_width);
// prevent main_width smaller than 768px $options = array (
$main_width = (($main_width < 768) ? 768 : $main_width); '$nav_bg' => $nav_bg,
'$nav_icon_colour' => $nav_icon_colour,
$options = array ( '$nav_active_icon_colour' => $nav_active_icon_colour,
'$nav_bg' => $nav_bg, '$link_colour' => $link_colour,
'$nav_icon_colour' => $nav_icon_colour, '$banner_colour' => $banner_colour,
'$nav_active_icon_colour' => $nav_active_icon_colour, '$bgcolour' => $bgcolour,
'$link_colour' => $link_colour, '$background_image' => $background_image,
'$link_bgcolour' => $link_bgcolour, '$item_colour' => $item_colour,
'$banner_colour' => $banner_colour, '$comment_item_colour' => $comment_item_colour,
'$bgcolour' => $bgcolour, '$font_size' => $font_size,
'$background_image' => $background_image, '$font_colour' => $font_colour,
'$item_colour' => $item_colour, '$radius' => $radius,
'$comment_item_colour' => $comment_item_colour, '$shadow' => $shadow,
'$font_size' => $font_size, '$converse_width' => $converse_width,
'$font_colour' => $font_colour, '$nav_float_min_opacity' => $nav_float_min_opacity,
'$radius' => $radius, '$nav_percent_min_opacity' => $nav_percent_min_opacity,
'$shadow' => $shadow, '$top_photo' => $top_photo,
'$converse_width' => $converse_width, '$reply_photo' => $reply_photo,
'$nav_float_min_opacity' => $nav_float_min_opacity, '$pmenu_top' => $pmenu_top,
'$nav_percent_min_opacity' => $nav_percent_min_opacity, '$pmenu_reply' => $pmenu_reply,
'$top_photo' => $top_photo, '$main_width' => $main_width,
'$reply_photo' => $reply_photo, '$left_aside_width' => $left_aside_width,
'$pmenu_top' => $pmenu_top, '$right_aside_width' => $right_aside_width
'$pmenu_reply' => $pmenu_reply, );
'$main_width' => $main_width,
'$aside_width' => $aside_width
);
echo str_replace(array_keys($options), array_values($options), $x); echo str_replace(array_keys($options), array_values($options), $x);