|
@@ 567-577 (lines=11) @@
|
| 564 |
|
} |
| 565 |
|
|
| 566 |
|
// Stats |
| 567 |
|
if ( Jetpack::is_module_active( 'stats' ) ) { |
| 568 |
|
$wp_admin_bar->add_menu( array( |
| 569 |
|
'parent' => 'blog', |
| 570 |
|
'id' => 'blog-stats', |
| 571 |
|
'title' => __( 'Stats', 'jetpack' ), |
| 572 |
|
'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
| 573 |
|
'meta' => array( |
| 574 |
|
'class' => 'mb-icon', |
| 575 |
|
), |
| 576 |
|
) ); |
| 577 |
|
} |
| 578 |
|
|
| 579 |
|
// Add Calypso plans link and plan type indicator |
| 580 |
|
if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 824-834 (lines=11) @@
|
| 821 |
|
), |
| 822 |
|
) ); |
| 823 |
|
|
| 824 |
|
if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
| 825 |
|
$wp_admin_bar->add_menu( array( |
| 826 |
|
'parent' => 'configuration', |
| 827 |
|
'id' => 'sharing', |
| 828 |
|
'title' => __( 'Sharing', 'jetpack' ), |
| 829 |
|
'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
| 830 |
|
'meta' => array( |
| 831 |
|
'class' => 'mb-icon', |
| 832 |
|
), |
| 833 |
|
) ); |
| 834 |
|
} |
| 835 |
|
|
| 836 |
|
$people_title = $this->create_menu_item_pair( |
| 837 |
|
array( |