HTML indention formatting OCD fixes
This commit is contained in:
		
							
								
								
									
										42
									
								
								tabs.php
									
									
									
									
									
								
							
							
						
						
									
										42
									
								
								tabs.php
									
									
									
									
									
								
							| @@ -1,26 +1,26 @@ | ||||
| <div id="tabs"> | ||||
| 	<ul> | ||||
| 		<?php | ||||
| 		$tabs = array( | ||||
| 			"Home" => "/", | ||||
| 			"Blog" => "/blog/", | ||||
| 			"Contact" => "/contact/", | ||||
| 			"Projects" => "/projects/", | ||||
| 			"Resume" => "/resume/" | ||||
| 		); | ||||
| 		$base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com"; | ||||
| <?php | ||||
| $tabs = array( | ||||
| 	"Home" => "/", | ||||
| 	"Blog" => "/blog/", | ||||
| 	"Contact" => "/contact/", | ||||
| 	"Projects" => "/projects/", | ||||
| 	"Resume" => "/resume/" | ||||
| ); | ||||
| $base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com"; | ||||
|  | ||||
| 		foreach ($tabs as $name => $url) { | ||||
| 			if ($url == "/") { | ||||
| 			       if ($_SERVER['REQUEST_URI'] == "/") | ||||
| 					echo "<li><a href=\"http://aclindsay.com/\" class=\"current\">Home</a></li>"; | ||||
| 			       else | ||||
| 					echo "<li><a href=\"http://aclindsay.com/\">Home</a></li>"; | ||||
| 			} else if ($base_domain && strncmp($url, $_SERVER['REQUEST_URI'], strlen($url)) == 0) | ||||
| 				echo "<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>"; | ||||
| 			else | ||||
| 				echo "<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>"; | ||||
| 		} | ||||
| 		?> | ||||
| foreach ($tabs as $name => $url) { | ||||
| 	if ($url == "/") { | ||||
| 	       if ($_SERVER['REQUEST_URI'] == "/") | ||||
| 			echo "\t\t<li><a href=\"http://aclindsay.com/\" class=\"current\">Home</a></li>\n"; | ||||
| 	       else | ||||
| 			echo "\t\t<li><a href=\"http://aclindsay.com/\">Home</a></li>\n"; | ||||
| 	} else if ($base_domain && strncmp($url, $_SERVER['REQUEST_URI'], strlen($url)) == 0) | ||||
| 		echo "\t\t<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>\n"; | ||||
| 	else | ||||
| 		echo "\t\t<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>\n"; | ||||
| } | ||||
| ?> | ||||
| 	</ul> | ||||
| </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user