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