Parcourir la source

Template: Fix domain selector active background color.

Nate il y a 5 ans
Parent
commit
0e8acf7450
2 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 0
      resources/footer.php
  2. 0 2
      themes/default/template.php

+ 1 - 0
resources/footer.php

@@ -149,6 +149,7 @@
 	//domain selector row background colors
 		$view->assign('domain_selector_background_color_1', $_SESSION['theme']['domain_inactive_background_color'][0] != '' ? $_SESSION['theme']['domain_inactive_background_color'][0] : '#eaedf2');
 		$view->assign('domain_selector_background_color_2', $_SESSION['theme']['domain_inactive_background_color'][1] != '' ? $_SESSION['theme']['domain_inactive_background_color'][1] : '#ffffff');
+		$view->assign('domain_active_background_color', $_SESSION['theme']['domain_active_background_color']['text'] != '' ? $_SESSION['theme']['domain_active_background_color']['text'] : '#eeffee');
 	//domain list
 		$view->assign('domains', $_SESSION['domains']);
 	//domain uuid

+ 0 - 2
themes/default/template.php

@@ -803,8 +803,6 @@
 							{*//set active domain color *}
 								{if $domain_active_background_color != ''}
 									{if $row.domain_uuid == $domain_uuid}{$background_color=$domain_active_background_color}{/if}
-								{else}
-									{if $row.domain_uuid == $domain_uuid}{$background_color='#eeffee'}{/if}
 								{/if}
 							{*//active domain text hover color *}
 								{if $settings.theme.domain_active_text_color_hover != '' && $row.domain_uuid == $domain_uuid}