Advertisement
cafreak

PHP Navigation Bar with array

Apr 20th, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. @$nav_normal = array(
  2.     "Home" => $locationHome,
  3.     "(Un)Subscribe" => $locationSubscribe,
  4.     "About Us" => $locationAbout,
  5.     "Login" => $locationLogin
  6.     );
  7. @$nav_acp = array();
  8.  
  9.  
  10. if(in_array($Nav_ID,$nav_normal)){
  11.  
  12. //Nav_ID will be set on the page itselves\/everything is defined correctly don't mind that\\
  13. //What I want to do if the Nav_ID is in the $nav_normal array output the normal navbar else it will show the admincp nav bar\\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement