Created
July 3, 2012 15:06
-
-
Save travismillerweb/3040309 to your computer and use it in GitHub Desktop.
PHP - task_URL Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//[TM][4/18/2012] Used get sliding menu Bar needle to work and behave accordinglhy per page | |
//v1.0.0 | |
$domain = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | |
$homepage = "www.sparxoo.com/stack/"; | |
$aboutPage = strpos($domain, "about/"); | |
if ($domain <> $homepage) | |
{ | |
$marketersPage = strpos($domain, "marketers/"); | |
$propertiesPage = strpos($domain, "properties/"); | |
$contentPage = strpos($domain, "content/"); | |
$contactPage = strpos($domain, "contact/"); | |
if ($marketersPage == true) | |
{$set_Position = "width: 97px; left: 608px;";} | |
elseif ($propertiesPage == true) | |
{$set_Position = "width: 98px; left: 704px;";} | |
elseif ($contentPage == true) | |
{$set_Position = "width: 85px; left: 801px;";} | |
elseif ($contactPage == true) | |
{$set_Position = "width: 75px; left: 886px;";} | |
else | |
{ | |
$set_Position = "width: 89px; left: 519px;"; | |
} | |
echo "<div id ='slide' style='<?php echo $set_Position; ?>'><img src = 'http://www.sparxoo.com/stack/wp-content/themes/swatch/images/arrow.png' style='position:absolute;margin-left:30px;margin-top:-8px;' /></div>"; | |
} | |
else | |
{ | |
echo ""; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment