HTML indention formatting OCD fixes
This commit is contained in:
parent
0488b75beb
commit
96b353a187
@ -18,6 +18,6 @@
|
|||||||
<div id="header">
|
<div id="header">
|
||||||
<div id="header-inner">
|
<div id="header-inner">
|
||||||
<div id="title"><a href="http://aclindsay.com">aclindsay<span id="title-inner">.com</span></a></div>
|
<div id="title"><a href="http://aclindsay.com">aclindsay<span id="title-inner">.com</span></a></div>
|
||||||
<?php include("/home1/aclindsa/public_html/tabs.php"); ?>
|
<?php include("/home1/aclindsa/public_html/tabs.php"); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
42
tabs.php
42
tabs.php
@ -1,26 +1,26 @@
|
|||||||
<div id="tabs">
|
<div id="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$tabs = array(
|
$tabs = array(
|
||||||
"Home" => "/",
|
"Home" => "/",
|
||||||
"Blog" => "/blog/",
|
"Blog" => "/blog/",
|
||||||
"Contact" => "/contact/",
|
"Contact" => "/contact/",
|
||||||
"Projects" => "/projects/",
|
"Projects" => "/projects/",
|
||||||
"Resume" => "/resume/"
|
"Resume" => "/resume/"
|
||||||
);
|
);
|
||||||
$base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com";
|
$base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com";
|
||||||
|
|
||||||
foreach ($tabs as $name => $url) {
|
foreach ($tabs as $name => $url) {
|
||||||
if ($url == "/") {
|
if ($url == "/") {
|
||||||
if ($_SERVER['REQUEST_URI'] == "/")
|
if ($_SERVER['REQUEST_URI'] == "/")
|
||||||
echo "<li><a href=\"http://aclindsay.com/\" class=\"current\">Home</a></li>";
|
echo "\t\t<li><a href=\"http://aclindsay.com/\" class=\"current\">Home</a></li>\n";
|
||||||
else
|
else
|
||||||
echo "<li><a href=\"http://aclindsay.com/\">Home</a></li>";
|
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)
|
} 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>";
|
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>\n";
|
||||||
else
|
else
|
||||||
echo "<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>";
|
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user