From 930ea7f113c1ed46b75d24e8010730a59e9e132b Mon Sep 17 00:00:00 2001 From: reliberate Date: Mon, 2 May 2016 10:52:15 -0600 Subject: [PATCH] Theme: Enable body style on public pages (still excludes default login). --- themes/default/template.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/themes/default/template.php b/themes/default/template.php index 066a9ac8d0..dab74dcaa5 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -706,12 +706,10 @@ #main_content { 0 && - ( - isset($background_images) || - $background_colors[0] != '' || - $background_colors[1] != '' - )) { ?> + (strlen($_SESSION["username"]) > 0 || !$default_login) + && + (isset($background_images) || $background_colors[0] != '' || $background_colors[1] != '') + ) { ?> background: ; background-attachment: fixed; @@ -2177,7 +2175,7 @@ $_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php"; } //login form - + echo "
\n"; echo "
\n"; echo " \n"; @@ -2189,7 +2187,7 @@ echo " \n"; echo " \n"; echo " \n"; - + if ($_SESSION['login']['domain_name_visible']['boolean'] == "true") { echo " \n"; echo " ".$text['label-domain'].":\n"; @@ -2209,7 +2207,7 @@ } echo " \n"; } - + echo " \n"; echo " \n"; echo " \n";