@@ 531-541 (lines=11) @@ | ||
528 | } |
|
529 | ||
530 | // Stats |
|
531 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
532 | $wp_admin_bar->add_menu( array( |
|
533 | 'parent' => 'blog', |
|
534 | 'id' => 'blog-stats', |
|
535 | 'title' => __( 'Stats', 'jetpack' ), |
|
536 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
537 | 'meta' => array( |
|
538 | 'class' => 'mb-icon', |
|
539 | ), |
|
540 | ) ); |
|
541 | } |
|
542 | ||
543 | // Add Calypso plans link and plan type indicator |
|
544 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 734-744 (lines=11) @@ | ||
731 | 'meta' => $meta |
|
732 | ) ); |
|
733 | ||
734 | if ( current_theme_supports( 'menus' ) ) { |
|
735 | $wp_admin_bar->add_menu( array( |
|
736 | 'parent' => 'look-and-feel', |
|
737 | 'id' => 'menus', |
|
738 | 'title' => __( 'Menus', 'jetpack' ), |
|
739 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
740 | 'meta' => array( |
|
741 | 'class' => 'mb-icon', |
|
742 | ), |
|
743 | ) ); |
|
744 | } |
|
745 | } |
|
746 | ||
747 | if ( current_user_can( 'manage_options' ) ) { |
|
@@ 764-774 (lines=11) @@ | ||
761 | ), |
|
762 | ) ); |
|
763 | ||
764 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
765 | $wp_admin_bar->add_menu( array( |
|
766 | 'parent' => 'configuration', |
|
767 | 'id' => 'sharing', |
|
768 | 'title' => __( 'Sharing', 'jetpack' ), |
|
769 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
770 | 'meta' => array( |
|
771 | 'class' => 'mb-icon', |
|
772 | ), |
|
773 | ) ); |
|
774 | } |
|
775 | ||
776 | $people_title = $this->create_menu_item_pair( |
|
777 | array( |