|
@@ 581-591 (lines=11) @@
|
| 578 |
|
} |
| 579 |
|
|
| 580 |
|
// Stats |
| 581 |
|
if ( Jetpack::is_module_active( 'stats' ) ) { |
| 582 |
|
$wp_admin_bar->add_menu( array( |
| 583 |
|
'parent' => 'blog', |
| 584 |
|
'id' => 'blog-stats', |
| 585 |
|
'title' => __( 'Stats', 'jetpack' ), |
| 586 |
|
'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
| 587 |
|
'meta' => array( |
| 588 |
|
'class' => 'mb-icon', |
| 589 |
|
), |
| 590 |
|
) ); |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
// Add Calypso plans link and plan type indicator |
| 594 |
|
if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
@@ 838-848 (lines=11) @@
|
| 835 |
|
), |
| 836 |
|
) ); |
| 837 |
|
|
| 838 |
|
if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
| 839 |
|
$wp_admin_bar->add_menu( array( |
| 840 |
|
'parent' => 'configuration', |
| 841 |
|
'id' => 'sharing', |
| 842 |
|
'title' => __( 'Sharing', 'jetpack' ), |
| 843 |
|
'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
| 844 |
|
'meta' => array( |
| 845 |
|
'class' => 'mb-icon', |
| 846 |
|
), |
| 847 |
|
) ); |
| 848 |
|
} |
| 849 |
|
|
| 850 |
|
$people_title = $this->create_menu_item_pair( |
| 851 |
|
array( |