@@ 857-869 (lines=13) @@ | ||
854 | } |
|
855 | ||
856 | // Stats. |
|
857 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
858 | $wp_admin_bar->add_menu( |
|
859 | array( |
|
860 | 'parent' => 'blog', |
|
861 | 'id' => 'blog-stats', |
|
862 | 'title' => esc_html__( 'Stats', 'jetpack' ), |
|
863 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
864 | 'meta' => array( |
|
865 | 'class' => 'mb-icon', |
|
866 | ), |
|
867 | ) |
|
868 | ); |
|
869 | } |
|
870 | ||
871 | if ( current_user_can( 'manage_options' ) ) { |
|
872 | $wp_admin_bar->add_menu( |
|
@@ 871-883 (lines=13) @@ | ||
868 | ); |
|
869 | } |
|
870 | ||
871 | if ( current_user_can( 'manage_options' ) ) { |
|
872 | $wp_admin_bar->add_menu( |
|
873 | array( |
|
874 | 'parent' => 'blog', |
|
875 | 'id' => 'activity', |
|
876 | 'title' => esc_html__( 'Activity', 'jetpack' ), |
|
877 | 'href' => 'https://wordpress.com/activity-log/' . esc_attr( $this->primary_site_slug ), |
|
878 | 'meta' => array( |
|
879 | 'class' => 'mb-icon', |
|
880 | ), |
|
881 | ) |
|
882 | ); |
|
883 | } |
|
884 | ||
885 | // Add Calypso plans link and plan type indicator. |
|
886 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 1005-1017 (lines=13) @@ | ||
1002 | ); |
|
1003 | ||
1004 | // Comments. |
|
1005 | if ( current_user_can( 'moderate_comments' ) ) { |
|
1006 | $wp_admin_bar->add_menu( |
|
1007 | array( |
|
1008 | 'parent' => 'publish', |
|
1009 | 'id' => 'comments', |
|
1010 | 'title' => __( 'Comments', 'jetpack' ), |
|
1011 | 'href' => 'https://wordpress.com/comments/' . esc_attr( $this->primary_site_slug ), |
|
1012 | 'meta' => array( |
|
1013 | 'class' => 'mb-icon', |
|
1014 | ), |
|
1015 | ) |
|
1016 | ); |
|
1017 | } |
|
1018 | ||
1019 | // Testimonials. |
|
1020 | if ( Jetpack::is_module_active( 'custom-content-types' ) && get_option( 'jetpack_testimonial' ) ) { |
|
@@ 1181-1193 (lines=13) @@ | ||
1178 | ) |
|
1179 | ); |
|
1180 | ||
1181 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
1182 | $wp_admin_bar->add_menu( |
|
1183 | array( |
|
1184 | 'parent' => 'configuration', |
|
1185 | 'id' => 'sharing', |
|
1186 | 'title' => esc_html__( 'Sharing', 'jetpack' ), |
|
1187 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
1188 | 'meta' => array( |
|
1189 | 'class' => 'mb-icon', |
|
1190 | ), |
|
1191 | ) |
|
1192 | ); |
|
1193 | } |
|
1194 | ||
1195 | $people_title = $this->create_menu_item_pair( |
|
1196 | array( |