using themes the right way

This commit is contained in:
Nuno Miguel Reis
2013-07-29 17:22:48 +00:00
parent c9c4ec7361
commit 9c8dfa5439
2 changed files with 12 additions and 12 deletions
@@ -89,20 +89,20 @@ if (permission_exists('extensions_active_assigned_view')) {
if ($number == $extension) { if ($number == $extension) {
if ($application == "conference") { if ($application == "conference") {
$alt_color = "background-image: url('".PROJECT_PATH."/images/background_cell_active.gif"; $alt_color = "background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif";
} }
switch ($application) { switch ($application) {
case "conference": case "conference":
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_conference.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_conference.gif');\"";
break; break;
case "fifo": case "fifo":
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_fifo.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
break; break;
case "valet_park": case "valet_park":
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_fifo.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
break; break;
default: default:
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_active.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif');\"";
} }
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n"; echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
@@ -182,7 +182,7 @@ if (permission_exists('extensions_active_assigned_view')) {
echo "</tr>\n"; echo "</tr>\n";
} }
else { else {
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_light.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_light.gif');\"";
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n"; echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
if ($_SESSION['user_status_display'] == "false") { if ($_SESSION['user_status_display'] == "false") {
@@ -374,20 +374,20 @@ else {
if ($found_extension) { if ($found_extension) {
if ($application == "conference") { if ($application == "conference") {
$alt_color = "background-image: url('".PROJECT_PATH."/images/background_cell_active.gif"; $alt_color = "background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif";
} }
switch ($application) { switch ($application) {
case "conference": case "conference":
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_conference.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_conference.gif');\"";
break; break;
case "fifo": case "fifo":
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_fifo.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
break; break;
case "valet_park": case "valet_park":
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_fifo.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
break; break;
default: default:
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_active.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif');\"";
} }
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n"; echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
@@ -429,7 +429,7 @@ else {
} }
} }
else { else {
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/images/background_cell_light.gif');\""; $style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_light.gif');\"";
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n"; echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
if ($_SESSION['user_status_display'] == "false") { if ($_SESSION['user_status_display'] == "false") {