Theme: Add settings to control body width and (fixed) menu width.

This commit is contained in:
Nate
2019-10-30 01:36:30 -06:00
parent 7b1356310b
commit 2059589731
3 changed files with 20 additions and 2 deletions

View File

@@ -596,7 +596,9 @@ if (!$default_login) {
default:
$menu_position = ($menu_position != '') ? $menu_position : 'top';
$menu_type = 'fixed-'.$menu_position;
$menu_width = !http_user_agent('mobile') ? 'calc(90% - 20px)' : null;
if (!http_user_agent('mobile')) {
$menu_width = $_SESSION['theme']['menu_width_fixed']['text'] != '' ? $_SESSION['theme']['menu_width_fixed']['text'] : 'calc(90% - 20px)';
}
$menu_brand = true;
$menu_corners = null;
}