There will be multiple pages that this is for, but I am just working on getting it to work for one at the moment. Also, I don't know an easy way to get just the index.php from a $PHP_SELF so, that is why I have the $rootpath."test.php" garbage.
Code: Select all
<?php
function print_pagetitle($loaded_page){
$root_path = "/clanuw_v2/";
if($loaded_page == $rootpath."test.php"){
echo "<img src="images/news.gif" width="950" height="65" alt="Page Image">";
return;
}
}
?>Code: Select all
<?php print_pagetitle($PHP_SELF); ?>