Skip to content

Instantly share code, notes, and snippets.

@blister
Created April 2, 2010 01:26
Show Gist options
  • Save blister/352620 to your computer and use it in GitHub Desktop.
Save blister/352620 to your computer and use it in GitHub Desktop.
<?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