@@ 1032-1045 (lines=14) @@ | ||
1029 | } |
|
1030 | ||
1031 | ||
1032 | if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-today' ) ) { |
|
1033 | //Events View Today |
|
1034 | $admin_bar->add_menu(array( |
|
1035 | 'id' => 'espresso-toolbar-events-today', |
|
1036 | 'parent' => 'espresso-toolbar-events-view', |
|
1037 | 'title' => __('Today', 'event_espresso'), |
|
1038 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today' ), $events_admin_url ), |
|
1039 | 'meta' => array( |
|
1040 | 'title' => __('Today', 'event_espresso'), |
|
1041 | 'target' => '', |
|
1042 | 'class' => $menu_class |
|
1043 | ), |
|
1044 | )); |
|
1045 | } |
|
1046 | ||
1047 | ||
1048 | if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-month' ) ) { |
|
@@ 1048-1061 (lines=14) @@ | ||
1045 | } |
|
1046 | ||
1047 | ||
1048 | if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-month' ) ) { |
|
1049 | //Events View This Month |
|
1050 | $admin_bar->add_menu(array( |
|
1051 | 'id' => 'espresso-toolbar-events-month', |
|
1052 | 'parent' => 'espresso-toolbar-events-view', |
|
1053 | 'title' => __( 'This Month', 'event_espresso'), |
|
1054 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month' ), $events_admin_url ), |
|
1055 | 'meta' => array( |
|
1056 | 'title' => __('This Month', 'event_espresso'), |
|
1057 | 'target' => '', |
|
1058 | 'class' => $menu_class |
|
1059 | ), |
|
1060 | )); |
|
1061 | } |
|
1062 | ||
1063 | //Registration Overview |
|
1064 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations' ) ) { |
|
@@ 1079-1091 (lines=13) @@ | ||
1076 | } |
|
1077 | ||
1078 | //Registration Overview Today |
|
1079 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today' ) ) { |
|
1080 | $admin_bar->add_menu(array( |
|
1081 | 'id' => 'espresso-toolbar-registrations-today', |
|
1082 | 'parent' => 'espresso-toolbar-registrations', |
|
1083 | 'title' => __( 'Today', 'event_espresso'), |
|
1084 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today' ), $reg_admin_url ), |
|
1085 | 'meta' => array( |
|
1086 | 'title' => __('Today', 'event_espresso'), |
|
1087 | 'target' => '', |
|
1088 | 'class' => $menu_class |
|
1089 | ), |
|
1090 | )); |
|
1091 | } |
|
1092 | ||
1093 | //Registration Overview Today Completed |
|
1094 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved' ) ) { |
|
@@ 1094-1106 (lines=13) @@ | ||
1091 | } |
|
1092 | ||
1093 | //Registration Overview Today Completed |
|
1094 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved' ) ) { |
|
1095 | $admin_bar->add_menu(array( |
|
1096 | 'id' => 'espresso-toolbar-registrations-today-approved', |
|
1097 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1098 | 'title' => __( 'Approved', 'event_espresso' ), |
|
1099 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', '_reg_status'=>EEM_Registration::status_id_approved ), $reg_admin_url ), |
|
1100 | 'meta' => array( |
|
1101 | 'title' => __('Approved', 'event_espresso' ), |
|
1102 | 'target' => '', |
|
1103 | 'class' => $menu_class |
|
1104 | ), |
|
1105 | )); |
|
1106 | } |
|
1107 | ||
1108 | //Registration Overview Today Pending\ |
|
1109 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending' ) ) { |
|
@@ 1109-1121 (lines=13) @@ | ||
1106 | } |
|
1107 | ||
1108 | //Registration Overview Today Pending\ |
|
1109 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending' ) ) { |
|
1110 | $admin_bar->add_menu(array( |
|
1111 | 'id' => 'espresso-toolbar-registrations-today-pending', |
|
1112 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1113 | 'title' => __( 'Pending', 'event_espresso' ), |
|
1114 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', 'reg_status'=>EEM_Registration::status_id_pending_payment ), $reg_admin_url ), |
|
1115 | 'meta' => array( |
|
1116 | 'title' => __('Pending Payment', 'event_espresso' ), |
|
1117 | 'target' => '', |
|
1118 | 'class' => $menu_class |
|
1119 | ), |
|
1120 | )); |
|
1121 | } |
|
1122 | ||
1123 | //Registration Overview Today Incomplete |
|
1124 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved' ) ) { |
|
@@ 1124-1136 (lines=13) @@ | ||
1121 | } |
|
1122 | ||
1123 | //Registration Overview Today Incomplete |
|
1124 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved' ) ) { |
|
1125 | $admin_bar->add_menu(array( |
|
1126 | 'id' => 'espresso-toolbar-registrations-today-not-approved', |
|
1127 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1128 | 'title' => __( 'Not Approved', 'event_espresso' ), |
|
1129 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', '_reg_status'=>EEM_Registration::status_id_not_approved ), $reg_admin_url ), |
|
1130 | 'meta' => array( |
|
1131 | 'title' => __('Not Approved', 'event_espresso' ), |
|
1132 | 'target' => '', |
|
1133 | 'class' => $menu_class |
|
1134 | ), |
|
1135 | )); |
|
1136 | } |
|
1137 | ||
1138 | //Registration Overview Today Incomplete |
|
1139 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled' ) ) { |
|
@@ 1139-1151 (lines=13) @@ | ||
1136 | } |
|
1137 | ||
1138 | //Registration Overview Today Incomplete |
|
1139 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled' ) ) { |
|
1140 | $admin_bar->add_menu(array( |
|
1141 | 'id' => 'espresso-toolbar-registrations-today-cancelled', |
|
1142 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1143 | 'title' => __( 'Cancelled', 'event_espresso'), |
|
1144 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', '_reg_status'=>EEM_Registration::status_id_cancelled ), $reg_admin_url ), |
|
1145 | 'meta' => array( |
|
1146 | 'title' => __('Cancelled', 'event_espresso'), |
|
1147 | 'target' => '', |
|
1148 | 'class' => $menu_class |
|
1149 | ), |
|
1150 | )); |
|
1151 | } |
|
1152 | ||
1153 | //Registration Overview This Month |
|
1154 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month' ) ) { |
|
@@ 1154-1166 (lines=13) @@ | ||
1151 | } |
|
1152 | ||
1153 | //Registration Overview This Month |
|
1154 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month' ) ) { |
|
1155 | $admin_bar->add_menu(array( |
|
1156 | 'id' => 'espresso-toolbar-registrations-month', |
|
1157 | 'parent' => 'espresso-toolbar-registrations', |
|
1158 | 'title' => __( 'This Month', 'event_espresso' ), |
|
1159 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month' ), $reg_admin_url ), |
|
1160 | 'meta' => array( |
|
1161 | 'title' => __('This Month', 'event_espresso'), |
|
1162 | 'target' => '', |
|
1163 | 'class' => $menu_class |
|
1164 | ), |
|
1165 | )); |
|
1166 | } |
|
1167 | ||
1168 | //Registration Overview This Month Approved |
|
1169 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved' ) ) { |
|
@@ 1169-1181 (lines=13) @@ | ||
1166 | } |
|
1167 | ||
1168 | //Registration Overview This Month Approved |
|
1169 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved' ) ) { |
|
1170 | $admin_bar->add_menu(array( |
|
1171 | 'id' => 'espresso-toolbar-registrations-month-approved', |
|
1172 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1173 | 'title' => __( 'Approved', 'event_espresso' ), |
|
1174 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_approved ), $reg_admin_url ), |
|
1175 | 'meta' => array( |
|
1176 | 'title' => __('Approved', 'event_espresso'), |
|
1177 | 'target' => '', |
|
1178 | 'class' => $menu_class |
|
1179 | ), |
|
1180 | )); |
|
1181 | } |
|
1182 | ||
1183 | //Registration Overview This Month Pending |
|
1184 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending' ) ) { |
|
@@ 1184-1196 (lines=13) @@ | ||
1181 | } |
|
1182 | ||
1183 | //Registration Overview This Month Pending |
|
1184 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending' ) ) { |
|
1185 | $admin_bar->add_menu(array( |
|
1186 | 'id' => 'espresso-toolbar-registrations-month-pending', |
|
1187 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1188 | 'title' => __( 'Pending', 'event_espresso'), |
|
1189 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_pending_payment ), $reg_admin_url ), |
|
1190 | 'meta' => array( |
|
1191 | 'title' => __('Pending', 'event_espresso'), |
|
1192 | 'target' => '', |
|
1193 | 'class' => $menu_class |
|
1194 | ), |
|
1195 | )); |
|
1196 | } |
|
1197 | ||
1198 | //Registration Overview This Month Not Approved |
|
1199 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved' ) ) { |
|
@@ 1199-1211 (lines=13) @@ | ||
1196 | } |
|
1197 | ||
1198 | //Registration Overview This Month Not Approved |
|
1199 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved' ) ) { |
|
1200 | $admin_bar->add_menu(array( |
|
1201 | 'id' => 'espresso-toolbar-registrations-month-not-approved', |
|
1202 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1203 | 'title' => __( 'Not Approved', 'event_espresso'), |
|
1204 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_not_approved ), $reg_admin_url ), |
|
1205 | 'meta' => array( |
|
1206 | 'title' => __('Not Approved', 'event_espresso' ), |
|
1207 | 'target' => '', |
|
1208 | 'class' => $menu_class |
|
1209 | ), |
|
1210 | )); |
|
1211 | } |
|
1212 | ||
1213 | ||
1214 | //Registration Overview This Month Cancelled |
|
@@ 1215-1227 (lines=13) @@ | ||
1212 | ||
1213 | ||
1214 | //Registration Overview This Month Cancelled |
|
1215 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-cancelled' ) ) { |
|
1216 | $admin_bar->add_menu(array( |
|
1217 | 'id' => 'espresso-toolbar-registrations-month-cancelled', |
|
1218 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1219 | 'title' => __('Cancelled', 'event_espresso'), |
|
1220 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_cancelled ), $reg_admin_url ), |
|
1221 | 'meta' => array( |
|
1222 | 'title' => __('Cancelled', 'event_espresso'), |
|
1223 | 'target' => '', |
|
1224 | 'class' => $menu_class |
|
1225 | ), |
|
1226 | )); |
|
1227 | } |
|
1228 | ||
1229 | //Extensions & Services |
|
1230 | if ( $this->registry->CAP->current_user_can( 'ee_read_ee', 'ee_admin_bar_menu_espresso-toolbar-extensions-and-services' ) ) { |