@@ 1252-1265 (lines=14) @@ | ||
1249 | ), |
|
1250 | )); |
|
1251 | } |
|
1252 | if ($this->registry->CAP->current_user_can('ee_read_events', |
|
1253 | 'ee_admin_bar_menu_espresso-toolbar-events-today') |
|
1254 | ) { |
|
1255 | //Events View Today |
|
1256 | $admin_bar->add_menu(array( |
|
1257 | 'id' => 'espresso-toolbar-events-today', |
|
1258 | 'parent' => 'espresso-toolbar-events-view', |
|
1259 | 'title' => __('Today', 'event_espresso'), |
|
1260 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'today'), |
|
1261 | $events_admin_url), |
|
1262 | 'meta' => array( |
|
1263 | 'title' => __('Today', 'event_espresso'), |
|
1264 | 'target' => '', |
|
1265 | 'class' => $menu_class, |
|
1266 | ), |
|
1267 | )); |
|
1268 | } |
|
@@ 1269-1282 (lines=14) @@ | ||
1266 | ), |
|
1267 | )); |
|
1268 | } |
|
1269 | if ($this->registry->CAP->current_user_can('ee_read_events', |
|
1270 | 'ee_admin_bar_menu_espresso-toolbar-events-month') |
|
1271 | ) { |
|
1272 | //Events View This Month |
|
1273 | $admin_bar->add_menu(array( |
|
1274 | 'id' => 'espresso-toolbar-events-month', |
|
1275 | 'parent' => 'espresso-toolbar-events-view', |
|
1276 | 'title' => __('This Month', 'event_espresso'), |
|
1277 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'month'), |
|
1278 | $events_admin_url), |
|
1279 | 'meta' => array( |
|
1280 | 'title' => __('This Month', 'event_espresso'), |
|
1281 | 'target' => '', |
|
1282 | 'class' => $menu_class, |
|
1283 | ), |
|
1284 | )); |
|
1285 | } |
|
@@ 1303-1315 (lines=13) @@ | ||
1300 | )); |
|
1301 | } |
|
1302 | //Registration Overview Today |
|
1303 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1304 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today') |
|
1305 | ) { |
|
1306 | $admin_bar->add_menu(array( |
|
1307 | 'id' => 'espresso-toolbar-registrations-today', |
|
1308 | 'parent' => 'espresso-toolbar-registrations', |
|
1309 | 'title' => __('Today', 'event_espresso'), |
|
1310 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'today'), |
|
1311 | $reg_admin_url), |
|
1312 | 'meta' => array( |
|
1313 | 'title' => __('Today', 'event_espresso'), |
|
1314 | 'target' => '', |
|
1315 | 'class' => $menu_class, |
|
1316 | ), |
|
1317 | )); |
|
1318 | } |
|
@@ 1320-1332 (lines=13) @@ | ||
1317 | )); |
|
1318 | } |
|
1319 | //Registration Overview Today Completed |
|
1320 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1321 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved') |
|
1322 | ) { |
|
1323 | $admin_bar->add_menu(array( |
|
1324 | 'id' => 'espresso-toolbar-registrations-today-approved', |
|
1325 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1326 | 'title' => __('Approved', 'event_espresso'), |
|
1327 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1328 | 'action' => 'default', |
|
1329 | 'status' => 'today', |
|
1330 | '_reg_status' => EEM_Registration::status_id_approved, |
|
1331 | ), $reg_admin_url), |
|
1332 | 'meta' => array( |
|
1333 | 'title' => __('Approved', 'event_espresso'), |
|
1334 | 'target' => '', |
|
1335 | 'class' => $menu_class, |
|
@@ 1340-1352 (lines=13) @@ | ||
1337 | )); |
|
1338 | } |
|
1339 | //Registration Overview Today Pending\ |
|
1340 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1341 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending') |
|
1342 | ) { |
|
1343 | $admin_bar->add_menu(array( |
|
1344 | 'id' => 'espresso-toolbar-registrations-today-pending', |
|
1345 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1346 | 'title' => __('Pending', 'event_espresso'), |
|
1347 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1348 | 'action' => 'default', |
|
1349 | 'status' => 'today', |
|
1350 | 'reg_status' => EEM_Registration::status_id_pending_payment, |
|
1351 | ), $reg_admin_url), |
|
1352 | 'meta' => array( |
|
1353 | 'title' => __('Pending Payment', 'event_espresso'), |
|
1354 | 'target' => '', |
|
1355 | 'class' => $menu_class, |
|
@@ 1360-1372 (lines=13) @@ | ||
1357 | )); |
|
1358 | } |
|
1359 | //Registration Overview Today Incomplete |
|
1360 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1361 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved') |
|
1362 | ) { |
|
1363 | $admin_bar->add_menu(array( |
|
1364 | 'id' => 'espresso-toolbar-registrations-today-not-approved', |
|
1365 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1366 | 'title' => __('Not Approved', 'event_espresso'), |
|
1367 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1368 | 'action' => 'default', |
|
1369 | 'status' => 'today', |
|
1370 | '_reg_status' => EEM_Registration::status_id_not_approved, |
|
1371 | ), $reg_admin_url), |
|
1372 | 'meta' => array( |
|
1373 | 'title' => __('Not Approved', 'event_espresso'), |
|
1374 | 'target' => '', |
|
1375 | 'class' => $menu_class, |
|
@@ 1380-1392 (lines=13) @@ | ||
1377 | )); |
|
1378 | } |
|
1379 | //Registration Overview Today Incomplete |
|
1380 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1381 | 'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled') |
|
1382 | ) { |
|
1383 | $admin_bar->add_menu(array( |
|
1384 | 'id' => 'espresso-toolbar-registrations-today-cancelled', |
|
1385 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1386 | 'title' => __('Cancelled', 'event_espresso'), |
|
1387 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1388 | 'action' => 'default', |
|
1389 | 'status' => 'today', |
|
1390 | '_reg_status' => EEM_Registration::status_id_cancelled, |
|
1391 | ), $reg_admin_url), |
|
1392 | 'meta' => array( |
|
1393 | 'title' => __('Cancelled', 'event_espresso'), |
|
1394 | 'target' => '', |
|
1395 | 'class' => $menu_class, |
|
@@ 1400-1412 (lines=13) @@ | ||
1397 | )); |
|
1398 | } |
|
1399 | //Registration Overview This Month |
|
1400 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1401 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month') |
|
1402 | ) { |
|
1403 | $admin_bar->add_menu(array( |
|
1404 | 'id' => 'espresso-toolbar-registrations-month', |
|
1405 | 'parent' => 'espresso-toolbar-registrations', |
|
1406 | 'title' => __('This Month', 'event_espresso'), |
|
1407 | 'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'month'), |
|
1408 | $reg_admin_url), |
|
1409 | 'meta' => array( |
|
1410 | 'title' => __('This Month', 'event_espresso'), |
|
1411 | 'target' => '', |
|
1412 | 'class' => $menu_class, |
|
1413 | ), |
|
1414 | )); |
|
1415 | } |
|
@@ 1417-1429 (lines=13) @@ | ||
1414 | )); |
|
1415 | } |
|
1416 | //Registration Overview This Month Approved |
|
1417 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1418 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved') |
|
1419 | ) { |
|
1420 | $admin_bar->add_menu(array( |
|
1421 | 'id' => 'espresso-toolbar-registrations-month-approved', |
|
1422 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1423 | 'title' => __('Approved', 'event_espresso'), |
|
1424 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1425 | 'action' => 'default', |
|
1426 | 'status' => 'month', |
|
1427 | '_reg_status' => EEM_Registration::status_id_approved, |
|
1428 | ), $reg_admin_url), |
|
1429 | 'meta' => array( |
|
1430 | 'title' => __('Approved', 'event_espresso'), |
|
1431 | 'target' => '', |
|
1432 | 'class' => $menu_class, |
|
@@ 1437-1449 (lines=13) @@ | ||
1434 | )); |
|
1435 | } |
|
1436 | //Registration Overview This Month Pending |
|
1437 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1438 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending') |
|
1439 | ) { |
|
1440 | $admin_bar->add_menu(array( |
|
1441 | 'id' => 'espresso-toolbar-registrations-month-pending', |
|
1442 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1443 | 'title' => __('Pending', 'event_espresso'), |
|
1444 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1445 | 'action' => 'default', |
|
1446 | 'status' => 'month', |
|
1447 | '_reg_status' => EEM_Registration::status_id_pending_payment, |
|
1448 | ), $reg_admin_url), |
|
1449 | 'meta' => array( |
|
1450 | 'title' => __('Pending', 'event_espresso'), |
|
1451 | 'target' => '', |
|
1452 | 'class' => $menu_class, |
|
@@ 1457-1469 (lines=13) @@ | ||
1454 | )); |
|
1455 | } |
|
1456 | //Registration Overview This Month Not Approved |
|
1457 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1458 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved') |
|
1459 | ) { |
|
1460 | $admin_bar->add_menu(array( |
|
1461 | 'id' => 'espresso-toolbar-registrations-month-not-approved', |
|
1462 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1463 | 'title' => __('Not Approved', 'event_espresso'), |
|
1464 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1465 | 'action' => 'default', |
|
1466 | 'status' => 'month', |
|
1467 | '_reg_status' => EEM_Registration::status_id_not_approved, |
|
1468 | ), $reg_admin_url), |
|
1469 | 'meta' => array( |
|
1470 | 'title' => __('Not Approved', 'event_espresso'), |
|
1471 | 'target' => '', |
|
1472 | 'class' => $menu_class, |
|
@@ 1477-1489 (lines=13) @@ | ||
1474 | )); |
|
1475 | } |
|
1476 | //Registration Overview This Month Cancelled |
|
1477 | if ($this->registry->CAP->current_user_can('ee_read_registrations', |
|
1478 | 'ee_admin_bar_menu_espresso-toolbar-registrations-month-cancelled') |
|
1479 | ) { |
|
1480 | $admin_bar->add_menu(array( |
|
1481 | 'id' => 'espresso-toolbar-registrations-month-cancelled', |
|
1482 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1483 | 'title' => __('Cancelled', 'event_espresso'), |
|
1484 | 'href' => EEH_URL::add_query_args_and_nonce(array( |
|
1485 | 'action' => 'default', |
|
1486 | 'status' => 'month', |
|
1487 | '_reg_status' => EEM_Registration::status_id_cancelled, |
|
1488 | ), $reg_admin_url), |
|
1489 | 'meta' => array( |
|
1490 | 'title' => __('Cancelled', 'event_espresso'), |
|
1491 | 'target' => '', |
|
1492 | 'class' => $menu_class, |