@@ 841-853 (lines=13) @@ | ||
838 | } |
|
839 | ||
840 | // Stats. |
|
841 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
842 | $wp_admin_bar->add_menu( |
|
843 | array( |
|
844 | 'parent' => 'blog', |
|
845 | 'id' => 'blog-stats', |
|
846 | 'title' => esc_html__( 'Stats', 'jetpack' ), |
|
847 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
848 | 'meta' => array( |
|
849 | 'class' => 'mb-icon', |
|
850 | ), |
|
851 | ) |
|
852 | ); |
|
853 | } |
|
854 | ||
855 | if ( current_user_can( 'manage_options' ) ) { |
|
856 | $wp_admin_bar->add_menu( |
|
@@ 855-867 (lines=13) @@ | ||
852 | ); |
|
853 | } |
|
854 | ||
855 | if ( current_user_can( 'manage_options' ) ) { |
|
856 | $wp_admin_bar->add_menu( |
|
857 | array( |
|
858 | 'parent' => 'blog', |
|
859 | 'id' => 'activity', |
|
860 | 'title' => esc_html__( 'Activity', 'jetpack' ), |
|
861 | 'href' => 'https://wordpress.com/activity-log/' . esc_attr( $this->primary_site_slug ), |
|
862 | 'meta' => array( |
|
863 | 'class' => 'mb-icon', |
|
864 | ), |
|
865 | ) |
|
866 | ); |
|
867 | } |
|
868 | ||
869 | // Add Calypso plans link and plan type indicator. |
|
870 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 989-1001 (lines=13) @@ | ||
986 | ); |
|
987 | ||
988 | // Comments. |
|
989 | if ( current_user_can( 'moderate_comments' ) ) { |
|
990 | $wp_admin_bar->add_menu( |
|
991 | array( |
|
992 | 'parent' => 'publish', |
|
993 | 'id' => 'comments', |
|
994 | 'title' => __( 'Comments', 'jetpack' ), |
|
995 | 'href' => 'https://wordpress.com/comments/' . esc_attr( $this->primary_site_slug ), |
|
996 | 'meta' => array( |
|
997 | 'class' => 'mb-icon', |
|
998 | ), |
|
999 | ) |
|
1000 | ); |
|
1001 | } |
|
1002 | ||
1003 | // Testimonials. |
|
1004 | if ( Jetpack::is_module_active( 'custom-content-types' ) && get_option( 'jetpack_testimonial' ) ) { |
|
@@ 1165-1177 (lines=13) @@ | ||
1162 | ) |
|
1163 | ); |
|
1164 | ||
1165 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
1166 | $wp_admin_bar->add_menu( |
|
1167 | array( |
|
1168 | 'parent' => 'configuration', |
|
1169 | 'id' => 'sharing', |
|
1170 | 'title' => esc_html__( 'Sharing', 'jetpack' ), |
|
1171 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
1172 | 'meta' => array( |
|
1173 | 'class' => 'mb-icon', |
|
1174 | ), |
|
1175 | ) |
|
1176 | ); |
|
1177 | } |
|
1178 | ||
1179 | $people_title = $this->create_menu_item_pair( |
|
1180 | array( |