diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-11-22 00:59:42 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-11-22 00:59:42 -0500 |
commit | fdebcc0a2d4e1ea5decf724771e92d256dc6b788 (patch) | |
tree | 591141c30b0b4c425422640a3d585e010b7b0125 /views | |
parent | 81bae41143db5c6c06c58a0723e69b7c07e85def (diff) | |
download | edwinmattiacci.com-fdebcc0a2d4e1ea5decf724771e92d256dc6b788.tar.gz edwinmattiacci.com-fdebcc0a2d4e1ea5decf724771e92d256dc6b788.tar.bz2 edwinmattiacci.com-fdebcc0a2d4e1ea5decf724771e92d256dc6b788.zip |
views/partials/header: Control background from html tag instead of the body
Diffstat (limited to 'views')
-rw-r--r-- | views/partials/header.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/views/partials/header.php b/views/partials/header.php index 43a7b13..790cbe5 100644 --- a/views/partials/header.php +++ b/views/partials/header.php @@ -1,5 +1,10 @@ <!DOCTYPE html> -<html lang="en-us"> +<?php if ($_SERVER['REQUEST_URI'] == '/') { ?> +<html class="body-gradient" lang="en-us"> +<?php } else { ?> +<html class="body-opaque" lang="en-us"> +<?php } ?> + <head> <meta charset="utf-8"> @@ -19,10 +24,6 @@ </head> - <?php if ($_SERVER['REQUEST_URI'] == '/') { ?> <body id="main"> - <?php } else { ?> - <body class="body-opaque" id="main"> - <?php } ?> <?php require 'navigator.php'; ?> |