Răsfoiți Sursa

! Minor improvement to profile/notifications dialogue.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 ani în urmă
părinte
comite
e3a50d2700
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      Themes/default/Profile.template.php

+ 5 - 1
Themes/default/Profile.template.php

@@ -1858,6 +1858,8 @@ function template_alert_configuration()
 							<td>', $txt['receive_alert'], '</td>
 							<td>', $txt['receive_mail'], '</td>
 						</tr>';
+	$use_bg2 = true;
+
 	foreach ($context['alert_types'] as $alert_group => $alerts)
 	{
 		echo '
@@ -1908,7 +1910,7 @@ function template_alert_configuration()
 		foreach ($alerts as $alert_id => $alert_details)
 		{
 			echo '
-						<tr>
+						<tr class="windowbg', $use_bg2 ? '2' : '', '">
 							<td>', $txt['alert_' . $alert_id], '</td>';
 
 			foreach (array('alert', 'email') as $type)
@@ -1933,6 +1935,8 @@ function template_alert_configuration()
 				echo '
 							</td>';
 			}
+
+			$use_bg2 = !$use_bg2;
 		}
 	}