Update template.php (#4480)

This commit is contained in:
chansizzle
2019-08-30 18:56:07 -06:00
committed by FusionPBX
parent e323fc4936
commit 1e6a8b53f6

View File

@@ -414,8 +414,20 @@ echo " <div id='message_container'></div>\n";
echo " </div>\n";
echo " <div id='domains_list'>\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;