I wanted to create a button in navigation bar, which show only after login.
),
'music' => array(
'title' => 'Music',
'href' => 'http://www.yoursite.com/link',
'show' => true,
'sub_buttons' => array(
),
What will be that code.
'music' => array(
'title' => 'Music',
'href' => 'http://www.yoursite.com/link',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
that might work, I have not tested it though.
Thanks! Its working :)
If you do not want a button to show to admins you can do this:
'show' => !$user_info['is_admin'],
Remove the ! if you only want it to show to admins.