Making Menubar aware of 'current page' via php?
-
Hey, I’m smitten with the Menubar plugin. Big ups!
I’d like to use Menubar’s php function. Where if a user is logged in show them a menu. So far so good with this code:
if (is_user_logged_in ()) return array ('Create Event', '/event/create'); else return array ('Log in to create a Event', '/login');
Now. If i’m outside of the WP page realm, how would I make Menubar aware of the ‘current page’, as to add ‘.selected’ class to the li.
if ( bp_is_page( 'event' ) ) : echo'<li class='selected>'
…?Thanks!
Mic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Making Menubar aware of 'current page' via php?’ is closed to new replies.