|  | @@ 945-957 (lines=13) @@ | 
                                                            
                                    | 942 |  | 		)); | 
                                                            
                                    | 943 |  |  | 
                                                            
                                    | 944 |  | 		//Events | 
                                                            
                                    | 945 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events' ) ) { | 
                                                            
                                    | 946 |  | 			$admin_bar->add_menu(array( | 
                                                            
                                    | 947 |  | 					'id' => 'espresso-toolbar-events', | 
                                                            
                                    | 948 |  | 					'parent' => 'espresso-toolbar', | 
                                                            
                                    | 949 |  | 					'title' => __( 'Events', 'event_espresso' ), | 
                                                            
                                    | 950 |  | 					'href' => $events_admin_url, | 
                                                            
                                    | 951 |  | 					'meta' => array( | 
                                                            
                                    | 952 |  | 							'title' => __('Events', 'event_espresso'), | 
                                                            
                                    | 953 |  | 							'target' => '', | 
                                                            
                                    | 954 |  | 							'class' => $menu_class | 
                                                            
                                    | 955 |  | 					), | 
                                                            
                                    | 956 |  | 			)); | 
                                                            
                                    | 957 |  | 		} | 
                                                            
                                    | 958 |  |  | 
                                                            
                                    | 959 |  |  | 
                                                            
                                    | 960 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_edit_events', 'ee_admin_bar_menu_espresso-toolbar-events-new' ) ) { | 
                                                                                
                                |  | @@ 998-1010 (lines=13) @@ | 
                                                            
                                    | 995 |  | 		} | 
                                                            
                                    | 996 |  |  | 
                                                            
                                    | 997 |  | 		//Events View | 
                                                            
                                    | 998 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-view' ) ) { | 
                                                            
                                    | 999 |  | 			$admin_bar->add_menu(array( | 
                                                            
                                    | 1000 |  | 					'id' => 'espresso-toolbar-events-view', | 
                                                            
                                    | 1001 |  | 					'parent' => 'espresso-toolbar-events', | 
                                                            
                                    | 1002 |  | 					'title' => __( 'View', 'event_espresso' ), | 
                                                            
                                    | 1003 |  | 					'href' => $events_admin_url, | 
                                                            
                                    | 1004 |  | 					'meta' => array( | 
                                                            
                                    | 1005 |  | 							'title' => __('View', 'event_espresso'), | 
                                                            
                                    | 1006 |  | 							'target' => '', | 
                                                            
                                    | 1007 |  | 							'class' => $menu_class | 
                                                            
                                    | 1008 |  | 					), | 
                                                            
                                    | 1009 |  | 			)); | 
                                                            
                                    | 1010 |  | 		} | 
                                                            
                                    | 1011 |  |  | 
                                                            
                                    | 1012 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-all' ) ) { | 
                                                            
                                    | 1013 |  | 			//Events View All | 
                                                                                
                                |  | @@ 1012-1025 (lines=14) @@ | 
                                                            
                                    | 1009 |  | 			)); | 
                                                            
                                    | 1010 |  | 		} | 
                                                            
                                    | 1011 |  |  | 
                                                            
                                    | 1012 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-all' ) ) { | 
                                                            
                                    | 1013 |  | 			//Events View All | 
                                                            
                                    | 1014 |  | 			$admin_bar->add_menu(array( | 
                                                            
                                    | 1015 |  | 					'id' => 'espresso-toolbar-events-all', | 
                                                            
                                    | 1016 |  | 					'parent' => 'espresso-toolbar-events-view', | 
                                                            
                                    | 1017 |  | 					'title' => __( 'All', 'event_espresso' ), | 
                                                            
                                    | 1018 |  | 					'href' => $events_admin_url, | 
                                                            
                                    | 1019 |  | 					'meta' => array( | 
                                                            
                                    | 1020 |  | 							'title' => __('All', 'event_espresso'), | 
                                                            
                                    | 1021 |  | 							'target' => '', | 
                                                            
                                    | 1022 |  | 							'class' => $menu_class | 
                                                            
                                    | 1023 |  | 					), | 
                                                            
                                    | 1024 |  | 			)); | 
                                                            
                                    | 1025 |  | 		} | 
                                                            
                                    | 1026 |  |  | 
                                                            
                                    | 1027 |  |  | 
                                                            
                                    | 1028 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-today' ) ) { | 
                                                                                
                                |  | @@ 1060-1072 (lines=13) @@ | 
                                                            
                                    | 1057 |  | 		} | 
                                                            
                                    | 1058 |  |  | 
                                                            
                                    | 1059 |  | 		//Registration Overview | 
                                                            
                                    | 1060 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations' ) ) { | 
                                                            
                                    | 1061 |  | 			$admin_bar->add_menu(array( | 
                                                            
                                    | 1062 |  | 					'id' => 'espresso-toolbar-registrations', | 
                                                            
                                    | 1063 |  | 					'parent' => 'espresso-toolbar', | 
                                                            
                                    | 1064 |  | 					'title' => __( 'Registrations', 'event_espresso' ), | 
                                                            
                                    | 1065 |  | 					'href' => $reg_admin_url, | 
                                                            
                                    | 1066 |  | 					'meta' => array( | 
                                                            
                                    | 1067 |  | 							'title' => __('Registrations', 'event_espresso'), | 
                                                            
                                    | 1068 |  | 							'target' => '', | 
                                                            
                                    | 1069 |  | 							'class' => $menu_class | 
                                                            
                                    | 1070 |  | 					), | 
                                                            
                                    | 1071 |  | 			)); | 
                                                            
                                    | 1072 |  | 		} | 
                                                            
                                    | 1073 |  |  | 
                                                            
                                    | 1074 |  | 		//Registration Overview Today | 
                                                            
                                    | 1075 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today' ) ) { | 
                                                                                
                                |  | @@ 1226-1238 (lines=13) @@ | 
                                                            
                                    | 1223 |  | 		} | 
                                                            
                                    | 1224 |  |  | 
                                                            
                                    | 1225 |  | 		//Extensions & Services | 
                                                            
                                    | 1226 |  | 		if ( $this->registry->CAP->current_user_can( 'ee_read_ee', 'ee_admin_bar_menu_espresso-toolbar-extensions-and-services' ) ) { | 
                                                            
                                    | 1227 |  | 			$admin_bar->add_menu(array( | 
                                                            
                                    | 1228 |  | 					'id' => 'espresso-toolbar-extensions-and-services', | 
                                                            
                                    | 1229 |  | 					'parent' => 'espresso-toolbar', | 
                                                            
                                    | 1230 |  | 					'title' => __( 'Extensions & Services', 'event_espresso' ), | 
                                                            
                                    | 1231 |  | 					'href' => $extensions_admin_url, | 
                                                            
                                    | 1232 |  | 					'meta' => array( | 
                                                            
                                    | 1233 |  | 							'title' => __('Extensions & Services', 'event_espresso'), | 
                                                            
                                    | 1234 |  | 							'target' => '', | 
                                                            
                                    | 1235 |  | 							'class' => $menu_class | 
                                                            
                                    | 1236 |  | 					), | 
                                                            
                                    | 1237 |  | 			)); | 
                                                            
                                    | 1238 |  | 		} | 
                                                            
                                    | 1239 |  | 	} | 
                                                            
                                    | 1240 |  |  | 
                                                            
                                    | 1241 |  |  |