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:[email protected]> Web Site Hosting and Advertising <cid:[email protected]> Plain Old Semantic HTML <cid:[email protected]>

/
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to