@@ 549-559 (lines=11) @@ | ||
546 | } |
|
547 | ||
548 | // Stats |
|
549 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
550 | $wp_admin_bar->add_menu( array( |
|
551 | 'parent' => 'blog', |
|
552 | 'id' => 'blog-stats', |
|
553 | 'title' => __( 'Stats', 'jetpack' ), |
|
554 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
555 | 'meta' => array( |
|
556 | 'class' => 'mb-icon', |
|
557 | ), |
|
558 | ) ); |
|
559 | } |
|
560 | ||
561 | // Add Calypso plans link and plan type indicator |
|
562 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 788-798 (lines=11) @@ | ||
785 | 'meta' => $meta |
|
786 | ) ); |
|
787 | ||
788 | if ( current_theme_supports( 'menus' ) ) { |
|
789 | $wp_admin_bar->add_menu( array( |
|
790 | 'parent' => 'look-and-feel', |
|
791 | 'id' => 'menus', |
|
792 | 'title' => __( 'Menus', 'jetpack' ), |
|
793 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
794 | 'meta' => array( |
|
795 | 'class' => 'mb-icon', |
|
796 | ), |
|
797 | ) ); |
|
798 | } |
|
799 | } |
|
800 | ||
801 | if ( current_user_can( 'manage_options' ) ) { |
|
@@ 818-828 (lines=11) @@ | ||
815 | ), |
|
816 | ) ); |
|
817 | ||
818 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
819 | $wp_admin_bar->add_menu( array( |
|
820 | 'parent' => 'configuration', |
|
821 | 'id' => 'sharing', |
|
822 | 'title' => __( 'Sharing', 'jetpack' ), |
|
823 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
824 | 'meta' => array( |
|
825 | 'class' => 'mb-icon', |
|
826 | ), |
|
827 | ) ); |
|
828 | } |
|
829 | ||
830 | $people_title = $this->create_menu_item_pair( |
|
831 | array( |
|
@@ 911-921 (lines=11) @@ | ||
908 | ), |
|
909 | ) ); |
|
910 | ||
911 | if ( $this->is_automated_transfer_site() ) { |
|
912 | $wp_admin_bar->add_menu( array( |
|
913 | 'parent' => 'configuration', |
|
914 | 'id' => 'legacy-dashboard', |
|
915 | 'title' => __( 'WP Admin', 'jetpack' ), |
|
916 | 'href' => '//' . esc_attr( $this->primary_site_slug ) . '/wp-admin/', |
|
917 | 'meta' => array( |
|
918 | 'class' => 'mb-icon', |
|
919 | ), |
|
920 | ) ); |
|
921 | } |
|
922 | } |
|
923 | } |
|
924 | } |