|
@@ 605-615 (lines=11) @@
|
| 602 |
|
} |
| 603 |
|
|
| 604 |
|
// Stats |
| 605 |
|
if ( Jetpack::is_module_active( 'stats' ) ) { |
| 606 |
|
$wp_admin_bar->add_menu( array( |
| 607 |
|
'parent' => 'blog', |
| 608 |
|
'id' => 'blog-stats', |
| 609 |
|
'title' => esc_html__( 'Stats', 'jetpack' ), |
| 610 |
|
'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
| 611 |
|
'meta' => array( |
| 612 |
|
'class' => 'mb-icon', |
| 613 |
|
), |
| 614 |
|
) ); |
| 615 |
|
} |
| 616 |
|
|
| 617 |
|
// Add Calypso plans link and plan type indicator |
| 618 |
|
if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 727-737 (lines=11) @@
|
| 724 |
|
) ); |
| 725 |
|
|
| 726 |
|
// Comments |
| 727 |
|
if ( current_user_can( 'moderate_comments' ) ) { |
| 728 |
|
$wp_admin_bar->add_menu( array( |
| 729 |
|
'parent' => 'publish', |
| 730 |
|
'id' => 'comments', |
| 731 |
|
'title' => __( 'Comments' ), |
| 732 |
|
'href' => 'https://wordpress.com/comments/' . esc_attr( $this->primary_site_slug ), |
| 733 |
|
'meta' => array( |
| 734 |
|
'class' => 'mb-icon', |
| 735 |
|
), |
| 736 |
|
) ); |
| 737 |
|
} |
| 738 |
|
|
| 739 |
|
// Testimonials |
| 740 |
|
if ( Jetpack::is_module_active( 'custom-content-types' ) && get_option( 'jetpack_testimonial' ) ) { |
|
@@ 875-885 (lines=11) @@
|
| 872 |
|
), |
| 873 |
|
) ); |
| 874 |
|
|
| 875 |
|
if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
| 876 |
|
$wp_admin_bar->add_menu( array( |
| 877 |
|
'parent' => 'configuration', |
| 878 |
|
'id' => 'sharing', |
| 879 |
|
'title' => esc_html__( 'Sharing', 'jetpack' ), |
| 880 |
|
'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
| 881 |
|
'meta' => array( |
| 882 |
|
'class' => 'mb-icon', |
| 883 |
|
), |
| 884 |
|
) ); |
| 885 |
|
} |
| 886 |
|
|
| 887 |
|
$people_title = $this->create_menu_item_pair( |
| 888 |
|
array( |