|
@@ 597-607 (lines=11) @@
|
| 594 |
|
} |
| 595 |
|
|
| 596 |
|
// Stats |
| 597 |
|
if ( Jetpack::is_module_active( 'stats' ) ) { |
| 598 |
|
$wp_admin_bar->add_menu( array( |
| 599 |
|
'parent' => 'blog', |
| 600 |
|
'id' => 'blog-stats', |
| 601 |
|
'title' => esc_html__( 'Stats', 'jetpack' ), |
| 602 |
|
'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
| 603 |
|
'meta' => array( |
| 604 |
|
'class' => 'mb-icon', |
| 605 |
|
), |
| 606 |
|
) ); |
| 607 |
|
} |
| 608 |
|
|
| 609 |
|
// Add Calypso plans link and plan type indicator |
| 610 |
|
if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 719-729 (lines=11) @@
|
| 716 |
|
) ); |
| 717 |
|
|
| 718 |
|
// Comments |
| 719 |
|
if ( current_user_can( 'moderate_comments' ) ) { |
| 720 |
|
$wp_admin_bar->add_menu( array( |
| 721 |
|
'parent' => 'publish', |
| 722 |
|
'id' => 'comments', |
| 723 |
|
'title' => __( 'Comments' ), |
| 724 |
|
'href' => 'https://wordpress.com/comments/' . esc_attr( $this->primary_site_slug ), |
| 725 |
|
'meta' => array( |
| 726 |
|
'class' => 'mb-icon', |
| 727 |
|
), |
| 728 |
|
) ); |
| 729 |
|
} |
| 730 |
|
|
| 731 |
|
// Testimonials |
| 732 |
|
if ( Jetpack::is_module_active( 'custom-content-types' ) && get_option( 'jetpack_testimonial' ) ) { |
|
@@ 867-877 (lines=11) @@
|
| 864 |
|
), |
| 865 |
|
) ); |
| 866 |
|
|
| 867 |
|
if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
| 868 |
|
$wp_admin_bar->add_menu( array( |
| 869 |
|
'parent' => 'configuration', |
| 870 |
|
'id' => 'sharing', |
| 871 |
|
'title' => esc_html__( 'Sharing', 'jetpack' ), |
| 872 |
|
'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
| 873 |
|
'meta' => array( |
| 874 |
|
'class' => 'mb-icon', |
| 875 |
|
), |
| 876 |
|
) ); |
| 877 |
|
} |
| 878 |
|
|
| 879 |
|
$people_title = $this->create_menu_item_pair( |
| 880 |
|
array( |