| @@ 549-559 (lines=11) @@ | ||
| 546 | } |
|
| 547 | ||
| 548 | // Stats |
|
| 549 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
| 550 | $wp_admin_bar->add_menu( array( |
|
| 551 | 'parent' => 'blog', |
|
| 552 | 'id' => 'blog-stats', |
|
| 553 | 'title' => __( 'Stats', 'jetpack' ), |
|
| 554 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
| 555 | 'meta' => array( |
|
| 556 | 'class' => 'mb-icon', |
|
| 557 | ), |
|
| 558 | ) ); |
|
| 559 | } |
|
| 560 | ||
| 561 | // Add Calypso plans link and plan type indicator |
|
| 562 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
| @@ 752-762 (lines=11) @@ | ||
| 749 | 'meta' => $meta |
|
| 750 | ) ); |
|
| 751 | ||
| 752 | if ( current_theme_supports( 'menus' ) ) { |
|
| 753 | $wp_admin_bar->add_menu( array( |
|
| 754 | 'parent' => 'look-and-feel', |
|
| 755 | 'id' => 'menus', |
|
| 756 | 'title' => __( 'Menus', 'jetpack' ), |
|
| 757 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
| 758 | 'meta' => array( |
|
| 759 | 'class' => 'mb-icon', |
|
| 760 | ), |
|
| 761 | ) ); |
|
| 762 | } |
|
| 763 | } |
|
| 764 | ||
| 765 | if ( current_user_can( 'manage_options' ) ) { |
|
| @@ 782-792 (lines=11) @@ | ||
| 779 | ), |
|
| 780 | ) ); |
|
| 781 | ||
| 782 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
| 783 | $wp_admin_bar->add_menu( array( |
|
| 784 | 'parent' => 'configuration', |
|
| 785 | 'id' => 'sharing', |
|
| 786 | 'title' => __( 'Sharing', 'jetpack' ), |
|
| 787 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
| 788 | 'meta' => array( |
|
| 789 | 'class' => 'mb-icon', |
|
| 790 | ), |
|
| 791 | ) ); |
|
| 792 | } |
|
| 793 | ||
| 794 | $people_title = $this->create_menu_item_pair( |
|
| 795 | array( |
|