@@ 870-882 (lines=13) @@ | ||
867 | } |
|
868 | ||
869 | // Stats. |
|
870 | if ( Jetpack::is_module_active( 'stats' ) && current_user_can( 'view_stats' ) ) { |
|
871 | $wp_admin_bar->add_menu( |
|
872 | array( |
|
873 | 'parent' => 'blog', |
|
874 | 'id' => 'blog-stats', |
|
875 | 'title' => esc_html__( 'Stats', 'jetpack' ), |
|
876 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
877 | 'meta' => array( |
|
878 | 'class' => 'mb-icon', |
|
879 | ), |
|
880 | ) |
|
881 | ); |
|
882 | } |
|
883 | ||
884 | if ( current_user_can( 'manage_options' ) ) { |
|
885 | $wp_admin_bar->add_menu( |
|
@@ 884-896 (lines=13) @@ | ||
881 | ); |
|
882 | } |
|
883 | ||
884 | if ( current_user_can( 'manage_options' ) ) { |
|
885 | $wp_admin_bar->add_menu( |
|
886 | array( |
|
887 | 'parent' => 'blog', |
|
888 | 'id' => 'activity', |
|
889 | 'title' => esc_html__( 'Activity', 'jetpack' ), |
|
890 | 'href' => 'https://wordpress.com/activity-log/' . esc_attr( $this->primary_site_slug ), |
|
891 | 'meta' => array( |
|
892 | 'class' => 'mb-icon', |
|
893 | ), |
|
894 | ) |
|
895 | ); |
|
896 | } |
|
897 | ||
898 | // Add Calypso plans link and plan type indicator. |
|
899 | if ( is_user_member_of_blog( $current_user->ID ) && current_user_can( 'manage_options' ) ) { |
|
@@ 1018-1030 (lines=13) @@ | ||
1015 | ); |
|
1016 | ||
1017 | // Comments. |
|
1018 | if ( current_user_can( 'moderate_comments' ) ) { |
|
1019 | $wp_admin_bar->add_menu( |
|
1020 | array( |
|
1021 | 'parent' => 'publish', |
|
1022 | 'id' => 'comments', |
|
1023 | 'title' => __( 'Comments', 'jetpack' ), |
|
1024 | 'href' => 'https://wordpress.com/comments/' . esc_attr( $this->primary_site_slug ), |
|
1025 | 'meta' => array( |
|
1026 | 'class' => 'mb-icon', |
|
1027 | ), |
|
1028 | ) |
|
1029 | ); |
|
1030 | } |
|
1031 | ||
1032 | // Testimonials. |
|
1033 | if ( Jetpack::is_module_active( 'custom-content-types' ) && get_option( 'jetpack_testimonial' ) ) { |
|
@@ 1194-1206 (lines=13) @@ | ||
1191 | ) |
|
1192 | ); |
|
1193 | ||
1194 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
1195 | $wp_admin_bar->add_menu( |
|
1196 | array( |
|
1197 | 'parent' => 'configuration', |
|
1198 | 'id' => 'sharing', |
|
1199 | 'title' => esc_html__( 'Sharing', 'jetpack' ), |
|
1200 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
1201 | 'meta' => array( |
|
1202 | 'class' => 'mb-icon', |
|
1203 | ), |
|
1204 | ) |
|
1205 | ); |
|
1206 | } |
|
1207 | ||
1208 | $people_title = $this->create_menu_item_pair( |
|
1209 | array( |