I have this script
<?php
if ($logo == act) {
echo <<<HTML
<script type='text/javascript'>
<!--
document.write("<p><a class='button' href='javascript:history.go(-1)'>Go back to the page you just left</a> <a class='button' href='/sitemap/'>Sitemap</a> <a class='button' href=\"$mobile\">Mobile Page</a></p>")
//-->
</script>
<noscript>
<p><a class='button' href='/sitemap/'>Sitemap</a> <a class='button' href="$mobile">Mobile Page</a></p>
</noscript>
HTML;
}
else {
echo <<<HTML
<script type='text/javascript'>
<!--
document.write("<p><a class='button' href='javascript:history.go(-1)'>Go back to the page you just left</a> <a class='button' href='/sitemap/'>Sitemap</a></p>")
//-->
</script>
<noscript>
<p><a class='button' href='/sitemap/'>Sitemap</a></p>
</noscript>
HTML;
}
?>
It displays a 3rd button called "Mobile Page" for a PDA version of the page on the pages where the logo equals "act". But I'd like to add an elseif in there so if the the logo equals "act" AND if the type of page doesn't have a mobile version, that the button "Mobile Page" doesn't show up.
I dunno how to do that.