| @@ 891-903 (lines=13) @@ | ||
| 888 | $this->add_my_home_submenu_item( $wp_admin_bar ); | |
| 889 | ||
| 890 | // Stats. | |
| 891 | 		if ( Jetpack::is_module_active( 'stats' ) && current_user_can( 'view_stats' ) ) { | |
| 892 | $wp_admin_bar->add_menu( | |
| 893 | array( | |
| 894 | 'parent' => 'blog', | |
| 895 | 'id' => 'blog-stats', | |
| 896 | 'title' => esc_html__( 'Stats', 'jetpack' ), | |
| 897 | 'href' => Redirect::get_url( 'calypso-stats' ), | |
| 898 | 'meta' => array( | |
| 899 | 'class' => 'mb-icon', | |
| 900 | ), | |
| 901 | ) | |
| 902 | ); | |
| 903 | } | |
| 904 | ||
| 905 | 		if ( current_user_can( 'manage_options' ) ) { | |
| 906 | $wp_admin_bar->add_menu( | |
| @@ 1215-1227 (lines=13) @@ | ||
| 1212 | ) | |
| 1213 | ); | |
| 1214 | ||
| 1215 | 			if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { | |
| 1216 | $wp_admin_bar->add_menu( | |
| 1217 | array( | |
| 1218 | 'parent' => 'configuration', | |
| 1219 | 'id' => 'sharing', | |
| 1220 | 'title' => esc_html__( 'Sharing', 'jetpack' ), | |
| 1221 | 'href' => Redirect::get_url( 'calypso-sharing' ), | |
| 1222 | 'meta' => array( | |
| 1223 | 'class' => 'mb-icon', | |
| 1224 | ), | |
| 1225 | ) | |
| 1226 | ); | |
| 1227 | } | |
| 1228 | ||
| 1229 | $people_title = $this->create_menu_item_pair( | |
| 1230 | array( | |