| @@ 520-530 (lines=11) @@ | ||
| 517 | } |
|
| 518 | ||
| 519 | // Stats |
|
| 520 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
| 521 | $wp_admin_bar->add_menu( array( |
|
| 522 | 'parent' => 'blog', |
|
| 523 | 'id' => 'blog-stats', |
|
| 524 | 'title' => __( 'Stats', 'jetpack' ), |
|
| 525 | 'href' => 'https://wordpress.com/stats/' . esc_attr( $this->primary_site_slug ), |
|
| 526 | 'meta' => array( |
|
| 527 | 'class' => 'mb-icon', |
|
| 528 | ), |
|
| 529 | ) ); |
|
| 530 | } |
|
| 531 | ||
| 532 | // Add Calypso plans link and plan type indicator |
|
| 533 | if ( is_user_member_of_blog( $current_user->ID ) ) { |
|
| @@ 723-733 (lines=11) @@ | ||
| 720 | 'meta' => $meta |
|
| 721 | ) ); |
|
| 722 | ||
| 723 | if ( current_theme_supports( 'menus' ) ) { |
|
| 724 | $wp_admin_bar->add_menu( array( |
|
| 725 | 'parent' => 'look-and-feel', |
|
| 726 | 'id' => 'menus', |
|
| 727 | 'title' => __( 'Menus', 'jetpack' ), |
|
| 728 | 'href' => 'https://wordpress.com/menus/' . esc_attr( $this->primary_site_slug ), |
|
| 729 | 'meta' => array( |
|
| 730 | 'class' => 'mb-icon', |
|
| 731 | ), |
|
| 732 | ) ); |
|
| 733 | } |
|
| 734 | } |
|
| 735 | ||
| 736 | if ( current_user_can( 'manage_options' ) ) { |
|
| @@ 753-763 (lines=11) @@ | ||
| 750 | ), |
|
| 751 | ) ); |
|
| 752 | ||
| 753 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
| 754 | $wp_admin_bar->add_menu( array( |
|
| 755 | 'parent' => 'configuration', |
|
| 756 | 'id' => 'sharing', |
|
| 757 | 'title' => __( 'Sharing', 'jetpack' ), |
|
| 758 | 'href' => 'https://wordpress.com/sharing/' . esc_attr( $this->primary_site_slug ), |
|
| 759 | 'meta' => array( |
|
| 760 | 'class' => 'mb-icon', |
|
| 761 | ), |
|
| 762 | ) ); |
|
| 763 | } |
|
| 764 | ||
| 765 | $people_title = $this->create_menu_item_pair( |
|
| 766 | array( |
|