Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function kcustom_adminbar_menu() {
- global $wp_admin_bar;
- /*if ( !is_user_logged_in() ) { return; }*/
- $wp_admin_bar->add_menu( array(
- 'id' => 'kcustom_menu',
- 'title' => __('<img src="http://www.trulysuperb.com/wp-content/globalimages/our28.png" style="vertical-align:middle;margin-right:12px;margin-top:-3px;margin-left:-10px;" alt="Our Place" title="Our Place" />Our Place') ) /* set the menu name */
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'kcustom_menu',
- 'id' => 'Our Place', /* unique id name */
- 'title' => 'Our Place', /* Set the link title */
- 'href' => network_site_url(), /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'kcustom_menu',
- 'id' => 'Our Values', /* unique id name */
- 'title' => 'Our Values', /* Set the link title */
- 'href' => network_site_url().'/our-values', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'kcustom_menu',
- 'id' => 'Our Past', /* unique id name */
- 'title' => 'Our Past', /* Set the link title */
- 'href' => network_site_url().'/our-past', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'kcustom_menu',
- 'id' => 'Our Future', /* unique id name */
- 'title' => 'Our Future', /* Set the link title */
- 'href' => network_site_url().'/our-future', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'kcustom_menu',
- 'id' => 'Our News', /* unique id name */
- 'title' => 'Our News', /* Set the link title */
- 'href' => network_site_url().'/our-news', /* Set the link a href */
- )
- );
- }
- add_action( 'admin_bar_menu', 'kcustom_adminbar_menu', 15 );
- function ccustom_adminbar_menu() {
- global $wp_admin_bar;
- /*if ( !is_user_logged_in() ) { return; }*/
- $wp_admin_bar->add_menu( array(
- 'id' => 'ccustom_menu',
- 'title' => __('<img src="http://www.trulysuperb.com/wp-content/globalimages/community4.png" style="vertical-align:middle;margin-right:5px;margin-top:-3px;" alt="Our Community" title="Our Community" />Our Community') ) /* set the menu name */
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'ccustom_menu',
- 'id' => 'Our Groups', /* unique id name */
- 'title' => 'Our Groups', /* Set the link title */
- 'href' => network_site_url().'/groups', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'ccustom_menu',
- 'id' => 'Our Forums', /* unique id name */
- 'title' => 'Our Forums', /* Set the link title */
- 'href' => network_site_url().'/forums/forum/group-forums/', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'ccustom_menu',
- 'id' => 'Our Members', /* unique id name */
- 'title' => 'Our Members', /* Set the link title */
- 'href' => network_site_url().'/members', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'ccustom_menu',
- 'id' => 'Our Blogs', /* unique id name */
- 'title' => 'Our Blogs', /* Set the link title */
- 'href' => network_site_url().'/blogs', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'ccustom_menu',
- 'id' => 'Our Activity', /* unique id name */
- 'title' => 'Our Activity', /* Set the link title */
- 'href' => network_site_url().'/activity', /* Set the link a href */
- )
- );
- }
- add_action( 'admin_bar_menu', 'ccustom_adminbar_menu', 20 );
- function dcustom_adminbar_menu() {
- global $wp_admin_bar;
- /*if ( !is_user_logged_in() ) { return; }*/
- $wp_admin_bar->add_menu( array(
- 'id' => 'dcustom_menu',
- 'title' => __('<img src="http://www.trulysuperb.com/wp-content/globalimages/resources4.png" style="vertical-align:middle;margin-right:5px;margin-top:-3px;" alt="Our Resources" title="Our Resources" />Our Resources') ) /* set the menu name */
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'dcustom_menu',
- 'id' => 'Voluntary Groups', /* unique id name */
- 'title' => 'Voluntary Groups', /* Set the link title */
- 'href' => 'http://voluntary.mydomain.dev', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'dcustom_menu',
- 'id' => 'Business Directory', /* unique id name */
- 'title' => 'Business Directory', /* Set the link title */
- 'href' => 'http://business.mydomain.dev', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'dcustom_menu',
- 'id' => 'Jobs Directory', /* unique id name */
- 'title' => 'Jobs Directory', /* Set the link title */
- 'href' => 'http://jobs.mydomain.dev', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'dcustom_menu',
- 'id' => 'Ads Directory', /* unique id name */
- 'title' => 'Ads Directory', /* Set the link title */
- 'href' => 'http://ads.mydomain.dev', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'dcustom_menu',
- 'id' => 'Q & A', /* unique id name */
- 'title' => 'Q & A', /* Set the link title */
- 'href' => 'http://questions.mydomain.dev/questions', /* Set the link a href */
- )
- );
- /* menu link */
- $wp_admin_bar->add_menu( array(
- 'parent' => 'dcustom_menu',
- 'id' => 'NewsRuby', /* unique id name */
- 'title' => 'NewsRuby', /* Set the link title */
- 'href' => 'http://news.mydomain.dev', /* Set the link a href */
- )
- );
- }
- add_action( 'admin_bar_menu', 'dcustom_adminbar_menu', 30 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement