Created
April 2, 2010 01:26
-
-
Save blister/352620 to your computer and use it in GitHub Desktop.
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 | |
$req_uri = $_SERVER['REQUEST_URI']; | |
$view = 'page'; | |
if ( $req_uri == '/' || $req_uri == '/about/' ) { | |
$view = 'page'; | |
} else { | |
$view = 'post'; | |
} | |
?> | |
<body id="<?php echo $view; ?>"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment