From 8d74320f0e5b78c1b9b1a74f14baf801b9fb50f7 Mon Sep 17 00:00:00 2001
From: chansizzle <14916599+chansizzle@users.noreply.github.com>
Date: Fri, 30 Aug 2019 18:56:07 -0600
Subject: [PATCH] Update template.php (#4480)
---
themes/default/template.php | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/themes/default/template.php b/themes/default/template.php
index 9f8df7f76a..882d15176f 100644
--- a/themes/default/template.php
+++ b/themes/default/template.php
@@ -414,8 +414,20 @@ echo "
\n";
echo " \n";
echo " \n";
- $bgcolor1 = "#eaedf2";
- $bgcolor2 = "#fff";
+ //alternating background colors of inactive domains
+ if ($_SESSION['theme']['domain_inactive_background_color'][0]['text'] != '') {
+ $bgcolor1 = $_SESSION['theme']['domain_inactive_background_color'][0];
+ }
+ else {
+ $bgcolor1 = "#eaedf2";
+ }
+ if ($_SESSION['theme']['domain_inactive_background_color'][1]['text'] != '') {
+ $bgcolor2 = $_SESSION['theme']['domain_inactive_background_color'][1];
+ }
+ else {
+ $bgcolor2 = "#fff";
+ }
+
foreach($_SESSION['domains'] as $domain) {
//active domain color
$bgcolor = ($bgcolor == $bgcolor1) ? $bgcolor2 : $bgcolor1;