Selaa lähdekoodia

Fix the main menu color.

Mark Crane 10 vuotta sitten
vanhempi
commit
95be001291

+ 6 - 1
resources/classes/menu.php

@@ -495,7 +495,12 @@
 								//hide login and sign-up when the user is logged in
 							}
 							else {
-								$db_menu .= "<a ".$menu_tags." style='padding: 0px 0px; border-style: none; background: none;'><h2 align='center' style=''>".$menu_item_title."</h2></a>\n";
+								if (strlen($field['menu_item_link']) == 0) {
+									$db_menu .= "<h2 align='center' style=''>".$menu_item_title."</h2>\n";
+								}
+								else {
+									$db_menu .= "<a ".$menu_tags." style='padding: 0px 0px; border-style: none; background: none;'><h2 align='center' style=''>".$menu_item_title."</h2></a>\n";
+								}
 							}
 						}
 					}

+ 2 - 1
resources/menu.php

@@ -77,4 +77,5 @@ require_once "resources/require.php";
 
 //testing
 	//echo $_SESSION["menu"];
-?>
+
+?>

+ 1 - 0
themes/accessible/template.php

@@ -384,6 +384,7 @@ table tr:last-child td:last-child {
 	}
 
 	#menu h2 {
+		color:#FFFFFF;
 		align: left;
 		/*text-transform:uppercase*/
 	}

+ 1 - 0
themes/classic/template.php

@@ -368,6 +368,7 @@ table tr:nth-last-child(-5) td:first-of-type {
 	}
 
 	#menu h2{
+		color:#FFFFFF;
 		/*background:#222222 url(<!--{project_path}-->/css/images/expand3.gif) no-repeat 100% 100%;*/
 		/*text-transform:uppercase*/
 		width:118px;

+ 1 - 0
themes/default/template.php

@@ -428,6 +428,7 @@ table tr:nth-last-child(-5) td:first-of-type {
 	}
 
 	#menu h2{
+		color:#FFFFFF;
 		/*background:#222222 url(<!--{project_path}-->/css/images/expand3.gif) no-repeat 100% 100%;*/
 		/*text-transform:uppercase*/
 		width:118px;

+ 1 - 0
themes/enhanced/template.php

@@ -623,6 +623,7 @@ legend {
 	}
 
 	#menu h2{
+		color:#FFFFFF;
 		/*background:#222222 url(<!--{project_path}-->/css/images/expand3.gif) no-repeat 100% 100%;*/
 		/*text-transform:uppercase*/
 		<?php

+ 1 - 0
themes/minimized/template.php

@@ -632,6 +632,7 @@ legend {
 	}
 
 	#menu h2{
+		color:#FFFFFF;
 		font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
 		font-weight: normal;
 		font-size: 12pt;