| @@ 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 ) ) { |
|
| @@ 806-816 (lines=11) @@ | ||
| 803 | 'meta' => $meta |
|
| 804 | ) ); |
|
| 805 | ||
| 806 | if ( current_theme_supports( 'menus' ) ) { |
|
| 807 | $wp_admin_bar->add_menu( array( |
|
| 808 | 'parent' => 'look-and-feel', |
|
| 809 | 'id' => 'menus', |
|
| 810 | 'title' => __( 'Menus', 'jetpack' ), |
|
| 811 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
| 812 | 'meta' => array( |
|
| 813 | 'class' => 'mb-icon', |
|
| 814 | ), |
|
| 815 | ) ); |
|
| 816 | } |
|
| 817 | } |
|
| 818 | ||
| 819 | if ( current_user_can( 'manage_options' ) ) { |
|
| @@ 836-846 (lines=11) @@ | ||
| 833 | ), |
|
| 834 | ) ); |
|
| 835 | ||
| 836 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
| 837 | $wp_admin_bar->add_menu( array( |
|
| 838 | 'parent' => 'configuration', |
|
| 839 | 'id' => 'sharing', |
|
| 840 | 'title' => __( 'Sharing', 'jetpack' ), |
|
| 841 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
| 842 | 'meta' => array( |
|
| 843 | 'class' => 'mb-icon', |
|
| 844 | ), |
|
| 845 | ) ); |
|
| 846 | } |
|
| 847 | ||
| 848 | $people_title = $this->create_menu_item_pair( |
|
| 849 | array( |
|