[wp-testers] Lost in categories
Martin Espericueta
martin at fiercestreetnetworks.com
Wed Nov 21 17:06:55 GMT 2007
Hello Luc,
I use this PHP to determine which page a user is on, then serve up
navigation specific to that URI:
=====================================================================
<?php
$homepage = "/";
$currentpage = $_SERVER['REQUEST_URI'];
if($homepage==$currentpage) {
include('homepage-nav.php');
}
?>
<!-- end homepage only -->
<!-- begin anti virus only -->
<?php
$antivirus = "/anti-virus/";
$currentpage = $_SERVER['REQUEST_URI'];
if(strpos($currentpage, $antivirus) !== FALSE) {
include('antivirus-nav.php');
}
?>
=====================================================================
Basically, I check the current page, and if there's a match, we get what
we specify in the PHP rule.
--
Best Regards and God Bless,
Martin "Standardista" Espericueta
/Web Standards in Design
<cid:part1.02090302.09000509 at fiercestreetnetworks.com>
Web Site Hosting and Advertising
<cid:part2.00060707.06090706 at fiercestreetnetworks.com>
Plain Old Semantic HTML
<cid:part3.09070400.00010600 at fiercestreetnetworks.com>
/
More information about the wp-testers
mailing list