@@ 1138-1151 (lines=14) @@ | ||
1135 | ), |
|
1136 | )); |
|
1137 | } |
|
1138 | if ($this->registry->CAP->current_user_can('ee_read_events', |
|
1139 | 'ee_admin_bar_menu_espresso-toolbar-events-today') |
|
1140 | ) { |
|
1141 | //Events View Today |
|
1142 | $admin_bar->add_menu(array( |
|
1143 | 'id' => 'espresso-toolbar-events-today', |
|
1144 | 'parent' => 'espresso-toolbar-events-view', |
|
1145 | 'title' => __('Today', 'event_espresso'), |
|
1146 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'today'), |
|
1147 | $events_admin_url), |
|
1148 | 'meta' => array( |
|
1149 | 'title' => __('Today', 'event_espresso'), |
|
1150 | 'target' => '', |
|
1151 | 'class' => $menu_class, |
|
1152 | ), |
|
1153 | )); |
|
1154 | } |
|
@@ 1155-1168 (lines=14) @@ | ||
1152 | ), |
|
1153 | )); |
|
1154 | } |
|
1155 | if ($this->registry->CAP->current_user_can('ee_read_events', |
|
1156 | 'ee_admin_bar_menu_espresso-toolbar-events-month') |
|
1157 | ) { |
|
1158 | //Events View This Month |
|
1159 | $admin_bar->add_menu(array( |
|
1160 | 'id' => 'espresso-toolbar-events-month', |
|
1161 | 'parent' => 'espresso-toolbar-events-view', |
|
1162 | 'title' => __('This Month', 'event_espresso'), |
|
1163 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'month'), |
|
1164 | $events_admin_url), |
|
1165 | 'meta' => array( |
|
1166 | 'title' => __('This Month', 'event_espresso'), |
|
1167 | 'target' => '', |
|
1168 | 'class' => $menu_class, |
|
1169 | ), |
|
1170 | )); |
|
1171 | } |
|
@@ 1189-1201 (lines=13) @@ | ||
1186 | )); |
|
1187 | } |
|
1188 | //Registration Overview Today |
|
1189 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1190 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today') |
|
1191 | ) { |
|
1192 | $admin_bar->add_menu(array( |
|
1193 | 'id' => 'espresso-toolbar-registrations-today', |
|
1194 | 'parent' => 'espresso-toolbar-registrations', |
|
1195 | 'title' => __('Today', 'event_espresso'), |
|
1196 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'today'), |
|
1197 | $reg_admin_url), |
|
1198 | 'meta' => array( |
|
1199 | 'title' => __('Today', 'event_espresso'), |
|
1200 | 'target' => '', |
|
1201 | 'class' => $menu_class, |
|
1202 | ), |
|
1203 | )); |
|
1204 | } |
|
@@ 1206-1218 (lines=13) @@ | ||
1203 | )); |
|
1204 | } |
|
1205 | //Registration Overview Today Completed |
|
1206 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1207 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved') |
|
1208 | ) { |
|
1209 | $admin_bar->add_menu(array( |
|
1210 | 'id' => 'espresso-toolbar-registrations-today-approved', |
|
1211 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1212 | 'title' => __('Approved', 'event_espresso'), |
|
1213 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1214 | 'action' => 'default', |
|
1215 | 'status' => 'today', |
|
1216 | '_reg_status' => EEM_Registration::status_id_approved, |
|
1217 | ), $reg_admin_url), |
|
1218 | 'meta' => array( |
|
1219 | 'title' => __('Approved', 'event_espresso'), |
|
1220 | 'target' => '', |
|
1221 | 'class' => $menu_class, |
|
@@ 1226-1238 (lines=13) @@ | ||
1223 | )); |
|
1224 | } |
|
1225 | //Registration Overview Today Pending\ |
|
1226 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1227 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending') |
|
1228 | ) { |
|
1229 | $admin_bar->add_menu(array( |
|
1230 | 'id' => 'espresso-toolbar-registrations-today-pending', |
|
1231 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1232 | 'title' => __('Pending', 'event_espresso'), |
|
1233 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1234 | 'action' => 'default', |
|
1235 | 'status' => 'today', |
|
1236 | 'reg_status' => EEM_Registration::status_id_pending_payment, |
|
1237 | ), $reg_admin_url), |
|
1238 | 'meta' => array( |
|
1239 | 'title' => __('Pending Payment', 'event_espresso'), |
|
1240 | 'target' => '', |
|
1241 | 'class' => $menu_class, |
|
@@ 1246-1258 (lines=13) @@ | ||
1243 | )); |
|
1244 | } |
|
1245 | //Registration Overview Today Incomplete |
|
1246 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1247 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved') |
|
1248 | ) { |
|
1249 | $admin_bar->add_menu(array( |
|
1250 | 'id' => 'espresso-toolbar-registrations-today-not-approved', |
|
1251 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1252 | 'title' => __('Not Approved', 'event_espresso'), |
|
1253 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1254 | 'action' => 'default', |
|
1255 | 'status' => 'today', |
|
1256 | '_reg_status' => EEM_Registration::status_id_not_approved, |
|
1257 | ), $reg_admin_url), |
|
1258 | 'meta' => array( |
|
1259 | 'title' => __('Not Approved', 'event_espresso'), |
|
1260 | 'target' => '', |
|
1261 | 'class' => $menu_class, |
|
@@ 1266-1278 (lines=13) @@ | ||
1263 | )); |
|
1264 | } |
|
1265 | //Registration Overview Today Incomplete |
|
1266 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1267 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled') |
|
1268 | ) { |
|
1269 | $admin_bar->add_menu(array( |
|
1270 | 'id' => 'espresso-toolbar-registrations-today-cancelled', |
|
1271 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1272 | 'title' => __('Cancelled', 'event_espresso'), |
|
1273 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1274 | 'action' => 'default', |
|
1275 | 'status' => 'today', |
|
1276 | '_reg_status' => EEM_Registration::status_id_cancelled, |
|
1277 | ), $reg_admin_url), |
|
1278 | 'meta' => array( |
|
1279 | 'title' => __('Cancelled', 'event_espresso'), |
|
1280 | 'target' => '', |
|
1281 | 'class' => $menu_class, |
|
@@ 1286-1298 (lines=13) @@ | ||
1283 | )); |
|
1284 | } |
|
1285 | //Registration Overview This Month |
|
1286 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1287 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month') |
|
1288 | ) { |
|
1289 | $admin_bar->add_menu(array( |
|
1290 | 'id' => 'espresso-toolbar-registrations-month', |
|
1291 | 'parent' => 'espresso-toolbar-registrations', |
|
1292 | 'title' => __('This Month', 'event_espresso'), |
|
1293 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'month'), |
|
1294 | $reg_admin_url), |
|
1295 | 'meta' => array( |
|
1296 | 'title' => __('This Month', 'event_espresso'), |
|
1297 | 'target' => '', |
|
1298 | 'class' => $menu_class, |
|
1299 | ), |
|
1300 | )); |
|
1301 | } |
|
@@ 1303-1315 (lines=13) @@ | ||
1300 | )); |
|
1301 | } |
|
1302 | //Registration Overview This Month Approved |
|
1303 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1304 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved') |
|
1305 | ) { |
|
1306 | $admin_bar->add_menu(array( |
|
1307 | 'id' => 'espresso-toolbar-registrations-month-approved', |
|
1308 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1309 | 'title' => __('Approved', 'event_espresso'), |
|
1310 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1311 | 'action' => 'default', |
|
1312 | 'status' => 'month', |
|
1313 | '_reg_status' => EEM_Registration::status_id_approved, |
|
1314 | ), $reg_admin_url), |
|
1315 | 'meta' => array( |
|
1316 | 'title' => __('Approved', 'event_espresso'), |
|
1317 | 'target' => '', |
|
1318 | 'class' => $menu_class, |
|
@@ 1323-1335 (lines=13) @@ | ||
1320 | )); |
|
1321 | } |
|
1322 | //Registration Overview This Month Pending |
|
1323 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1324 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending') |
|
1325 | ) { |
|
1326 | $admin_bar->add_menu(array( |
|
1327 | 'id' => 'espresso-toolbar-registrations-month-pending', |
|
1328 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1329 | 'title' => __('Pending', 'event_espresso'), |
|
1330 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1331 | 'action' => 'default', |
|
1332 | 'status' => 'month', |
|
1333 | '_reg_status' => EEM_Registration::status_id_pending_payment, |
|
1334 | ), $reg_admin_url), |
|
1335 | 'meta' => array( |
|
1336 | 'title' => __('Pending', 'event_espresso'), |
|
1337 | 'target' => '', |
|
1338 | 'class' => $menu_class, |
|
@@ 1343-1355 (lines=13) @@ | ||
1340 | )); |
|
1341 | } |
|
1342 | //Registration Overview This Month Not Approved |
|
1343 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1344 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved') |
|
1345 | ) { |
|
1346 | $admin_bar->add_menu(array( |
|
1347 | 'id' => 'espresso-toolbar-registrations-month-not-approved', |
|
1348 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1349 | 'title' => __('Not Approved', 'event_espresso'), |
|
1350 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1351 | 'action' => 'default', |
|
1352 | 'status' => 'month', |
|
1353 | '_reg_status' => EEM_Registration::status_id_not_approved, |
|
1354 | ), $reg_admin_url), |
|
1355 | 'meta' => array( |
|
1356 | 'title' => __('Not Approved', 'event_espresso'), |
|
1357 | 'target' => '', |
|
1358 | 'class' => $menu_class, |
|
@@ 1363-1375 (lines=13) @@ | ||
1360 | )); |
|
1361 | } |
|
1362 | //Registration Overview This Month Cancelled |
|
1363 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1364 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-cancelled') |
|
1365 | ) { |
|
1366 | $admin_bar->add_menu(array( |
|
1367 | 'id' => 'espresso-toolbar-registrations-month-cancelled', |
|
1368 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1369 | 'title' => __('Cancelled', 'event_espresso'), |
|
1370 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1371 | 'action' => 'default', |
|
1372 | 'status' => 'month', |
|
1373 | '_reg_status' => EEM_Registration::status_id_cancelled, |
|
1374 | ), $reg_admin_url), |
|
1375 | 'meta' => array( |
|
1376 | 'title' => __('Cancelled', 'event_espresso'), |
|
1377 | 'target' => '', |
|
1378 | 'class' => $menu_class, |