Just wondering if there is a conditional that can be used to have different code in the headinclude template depending on whether a user is browsing the main page (ie www.thesite.com) or any one of the other pages (ie www.thesite.com/forum/showthread....).
I've found some PHP conditionals but unfortunately this is not supported in a template.
I've found some PHP conditionals but unfortunately this is not supported in a template.
PHP Code:
<?php
$uri = $_SERVER['REQUEST_URI'];
if ($uri == "/") {
echo "You're on the homepage";
} else {
echo "You're on an internal page";
}
?>
Comment