| @@ 577-587 (lines=11) @@ | ||
| 574 | } |
|
| 575 | ||
| 576 | // Stats |
|
| 577 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
| 578 | $wp_admin_bar->add_menu( array( |
|
| 579 | 'parent' => 'blog', |
|
| 580 | 'id' => 'blog-stats', |
|
| 581 | 'title' => __( 'Stats', 'jetpack' ), |
|
| 582 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
| 583 | 'meta' => array( |
|
| 584 | 'class' => 'mb-icon', |
|
| 585 | ), |
|
| 586 | ) ); |
|
| 587 | } |
|
| 588 | ||
| 589 | // Add Calypso plans link and plan type indicator |
|
| 590 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
| @@ 816-826 (lines=11) @@ | ||
| 813 | 'meta' => $meta |
|
| 814 | ) ); |
|
| 815 | ||
| 816 | if ( current_theme_supports( 'menus' ) ) { |
|
| 817 | $wp_admin_bar->add_menu( array( |
|
| 818 | 'parent' => 'look-and-feel', |
|
| 819 | 'id' => 'menus', |
|
| 820 | 'title' => __( 'Menus', 'jetpack' ), |
|
| 821 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
| 822 | 'meta' => array( |
|
| 823 | 'class' => 'mb-icon', |
|
| 824 | ), |
|
| 825 | ) ); |
|
| 826 | } |
|
| 827 | } |
|
| 828 | ||
| 829 | if ( current_user_can( 'manage_options' ) ) { |
|
| @@ 846-856 (lines=11) @@ | ||
| 843 | ), |
|
| 844 | ) ); |
|
| 845 | ||
| 846 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
| 847 | $wp_admin_bar->add_menu( array( |
|
| 848 | 'parent' => 'configuration', |
|
| 849 | 'id' => 'sharing', |
|
| 850 | 'title' => __( 'Sharing', 'jetpack' ), |
|
| 851 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
| 852 | 'meta' => array( |
|
| 853 | 'class' => 'mb-icon', |
|
| 854 | ), |
|
| 855 | ) ); |
|
| 856 | } |
|
| 857 | ||
| 858 | $people_title = $this->create_menu_item_pair( |
|
| 859 | array( |
|