| @@ 555-565 (lines=11) @@ | ||
| 552 | } |
|
| 553 | ||
| 554 | // Stats |
|
| 555 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
| 556 | $wp_admin_bar->add_menu( array( |
|
| 557 | 'parent' => 'blog', |
|
| 558 | 'id' => 'blog-stats', |
|
| 559 | 'title' => __( 'Stats', 'jetpack' ), |
|
| 560 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
| 561 | 'meta' => array( |
|
| 562 | 'class' => 'mb-icon', |
|
| 563 | ), |
|
| 564 | ) ); |
|
| 565 | } |
|
| 566 | ||
| 567 | // Add Calypso plans link and plan type indicator |
|
| 568 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
| @@ 794-804 (lines=11) @@ | ||
| 791 | 'meta' => $meta |
|
| 792 | ) ); |
|
| 793 | ||
| 794 | if ( current_theme_supports( 'menus' ) ) { |
|
| 795 | $wp_admin_bar->add_menu( array( |
|
| 796 | 'parent' => 'look-and-feel', |
|
| 797 | 'id' => 'menus', |
|
| 798 | 'title' => __( 'Menus', 'jetpack' ), |
|
| 799 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
| 800 | 'meta' => array( |
|
| 801 | 'class' => 'mb-icon', |
|
| 802 | ), |
|
| 803 | ) ); |
|
| 804 | } |
|
| 805 | } |
|
| 806 | ||
| 807 | if ( current_user_can( 'manage_options' ) ) { |
|
| @@ 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( |
|
| @@ 917-927 (lines=11) @@ | ||
| 914 | ), |
|
| 915 | ) ); |
|
| 916 | ||
| 917 | if ( $this->is_automated_transfer_site() ) { |
|
| 918 | $wp_admin_bar->add_menu( array( |
|
| 919 | 'parent' => 'configuration', |
|
| 920 | 'id' => 'legacy-dashboard', |
|
| 921 | 'title' => __( 'WP Admin', 'jetpack' ), |
|
| 922 | 'href' => '//' . esc_attr( $this->primary_site_url ) . '/wp-admin/', |
|
| 923 | 'meta' => array( |
|
| 924 | 'class' => 'mb-icon', |
|
| 925 | ), |
|
| 926 | ) ); |
|
| 927 | } |
|
| 928 | } |
|
| 929 | } |
|
| 930 | } |
|