@@ 568-578 (lines=11) @@ | ||
565 | } |
|
566 | ||
567 | // Stats |
|
568 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
569 | $wp_admin_bar->add_menu( array( |
|
570 | 'parent' => 'blog', |
|
571 | 'id' => 'blog-stats', |
|
572 | 'title' => __( 'Stats', 'jetpack' ), |
|
573 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
574 | 'meta' => array( |
|
575 | 'class' => 'mb-icon', |
|
576 | ), |
|
577 | ) ); |
|
578 | } |
|
579 | ||
580 | // Add Calypso plans link and plan type indicator |
|
581 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 807-817 (lines=11) @@ | ||
804 | 'meta' => $meta |
|
805 | ) ); |
|
806 | ||
807 | if ( current_theme_supports( 'menus' ) ) { |
|
808 | $wp_admin_bar->add_menu( array( |
|
809 | 'parent' => 'look-and-feel', |
|
810 | 'id' => 'menus', |
|
811 | 'title' => __( 'Menus', 'jetpack' ), |
|
812 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
813 | 'meta' => array( |
|
814 | 'class' => 'mb-icon', |
|
815 | ), |
|
816 | ) ); |
|
817 | } |
|
818 | } |
|
819 | ||
820 | if ( current_user_can( 'manage_options' ) ) { |
|
@@ 837-847 (lines=11) @@ | ||
834 | ), |
|
835 | ) ); |
|
836 | ||
837 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
838 | $wp_admin_bar->add_menu( array( |
|
839 | 'parent' => 'configuration', |
|
840 | 'id' => 'sharing', |
|
841 | 'title' => __( 'Sharing', 'jetpack' ), |
|
842 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
843 | 'meta' => array( |
|
844 | 'class' => 'mb-icon', |
|
845 | ), |
|
846 | ) ); |
|
847 | } |
|
848 | ||
849 | $people_title = $this->create_menu_item_pair( |
|
850 | array( |
|
@@ 930-940 (lines=11) @@ | ||
927 | ), |
|
928 | ) ); |
|
929 | ||
930 | if ( $this->is_automated_transfer_site() ) { |
|
931 | $wp_admin_bar->add_menu( array( |
|
932 | 'parent' => 'configuration', |
|
933 | 'id' => 'legacy-dashboard', |
|
934 | 'title' => __( 'WP Admin', 'jetpack' ), |
|
935 | 'href' => '//' . esc_attr( $this->primary_site_url ) . '/wp-admin/', |
|
936 | 'meta' => array( |
|
937 | 'class' => 'mb-icon', |
|
938 | ), |
|
939 | ) ); |
|
940 | } |
|
941 | } |
|
942 | } |
|
943 | } |