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