Theme: Enable body style on public pages (still excludes default login).

This commit is contained in:
reliberate 2016-05-02 10:52:15 -06:00
parent 17620586c4
commit 7599b8f96b
1 changed files with 7 additions and 9 deletions

View File

@ -706,12 +706,10 @@
#main_content { #main_content {
<?php <?php
if ( if (
strlen($_SESSION["username"]) > 0 && (strlen($_SESSION["username"]) > 0 || !$default_login)
( &&
isset($background_images) || (isset($background_images) || $background_colors[0] != '' || $background_colors[1] != '')
$background_colors[0] != '' || ) { ?>
$background_colors[1] != ''
)) { ?>
background: <?php echo ($_SESSION['theme']['body_color']['text'] != '') ? $_SESSION['theme']['body_color']['text'] : "#ffffff"; ?>; background: <?php echo ($_SESSION['theme']['body_color']['text'] != '') ? $_SESSION['theme']['body_color']['text'] : "#ffffff"; ?>;
background-attachment: fixed; background-attachment: fixed;
<?php $br = format_border_radius($_SESSION['theme']['body_border_radius']['text'], '4px'); ?> <?php $br = format_border_radius($_SESSION['theme']['body_border_radius']['text'], '4px'); ?>