|
@@ 1157-1170 (lines=14) @@
|
| 1154 |
|
), |
| 1155 |
|
)); |
| 1156 |
|
} |
| 1157 |
|
if ($this->registry->CAP->current_user_can('ee_read_events', |
| 1158 |
|
'ee_admin_bar_menu_espresso-toolbar-events-today') |
| 1159 |
|
) { |
| 1160 |
|
//Events View Today |
| 1161 |
|
$admin_bar->add_menu(array( |
| 1162 |
|
'id' => 'espresso-toolbar-events-today', |
| 1163 |
|
'parent' => 'espresso-toolbar-events-view', |
| 1164 |
|
'title' => __('Today', 'event_espresso'), |
| 1165 |
|
'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'today'), |
| 1166 |
|
$events_admin_url), |
| 1167 |
|
'meta' => array( |
| 1168 |
|
'title' => __('Today', 'event_espresso'), |
| 1169 |
|
'target' => '', |
| 1170 |
|
'class' => $menu_class, |
| 1171 |
|
), |
| 1172 |
|
)); |
| 1173 |
|
} |
|
@@ 1174-1187 (lines=14) @@
|
| 1171 |
|
), |
| 1172 |
|
)); |
| 1173 |
|
} |
| 1174 |
|
if ($this->registry->CAP->current_user_can('ee_read_events', |
| 1175 |
|
'ee_admin_bar_menu_espresso-toolbar-events-month') |
| 1176 |
|
) { |
| 1177 |
|
//Events View This Month |
| 1178 |
|
$admin_bar->add_menu(array( |
| 1179 |
|
'id' => 'espresso-toolbar-events-month', |
| 1180 |
|
'parent' => 'espresso-toolbar-events-view', |
| 1181 |
|
'title' => __('This Month', 'event_espresso'), |
| 1182 |
|
'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'month'), |
| 1183 |
|
$events_admin_url), |
| 1184 |
|
'meta' => array( |
| 1185 |
|
'title' => __('This Month', 'event_espresso'), |
| 1186 |
|
'target' => '', |
| 1187 |
|
'class' => $menu_class, |
| 1188 |
|
), |
| 1189 |
|
)); |
| 1190 |
|
} |
|
@@ 1208-1220 (lines=13) @@
|
| 1205 |
|
)); |
| 1206 |
|
} |
| 1207 |
|
//Registration Overview Today |
| 1208 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1209 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-today') |
| 1210 |
|
) { |
| 1211 |
|
$admin_bar->add_menu(array( |
| 1212 |
|
'id' => 'espresso-toolbar-registrations-today', |
| 1213 |
|
'parent' => 'espresso-toolbar-registrations', |
| 1214 |
|
'title' => __('Today', 'event_espresso'), |
| 1215 |
|
'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'today'), |
| 1216 |
|
$reg_admin_url), |
| 1217 |
|
'meta' => array( |
| 1218 |
|
'title' => __('Today', 'event_espresso'), |
| 1219 |
|
'target' => '', |
| 1220 |
|
'class' => $menu_class, |
| 1221 |
|
), |
| 1222 |
|
)); |
| 1223 |
|
} |
|
@@ 1225-1237 (lines=13) @@
|
| 1222 |
|
)); |
| 1223 |
|
} |
| 1224 |
|
//Registration Overview Today Completed |
| 1225 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1226 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved') |
| 1227 |
|
) { |
| 1228 |
|
$admin_bar->add_menu(array( |
| 1229 |
|
'id' => 'espresso-toolbar-registrations-today-approved', |
| 1230 |
|
'parent' => 'espresso-toolbar-registrations-today', |
| 1231 |
|
'title' => __('Approved', 'event_espresso'), |
| 1232 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1233 |
|
'action' => 'default', |
| 1234 |
|
'status' => 'today', |
| 1235 |
|
'_reg_status' => EEM_Registration::status_id_approved, |
| 1236 |
|
), $reg_admin_url), |
| 1237 |
|
'meta' => array( |
| 1238 |
|
'title' => __('Approved', 'event_espresso'), |
| 1239 |
|
'target' => '', |
| 1240 |
|
'class' => $menu_class, |
|
@@ 1245-1257 (lines=13) @@
|
| 1242 |
|
)); |
| 1243 |
|
} |
| 1244 |
|
//Registration Overview Today Pending\ |
| 1245 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1246 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending') |
| 1247 |
|
) { |
| 1248 |
|
$admin_bar->add_menu(array( |
| 1249 |
|
'id' => 'espresso-toolbar-registrations-today-pending', |
| 1250 |
|
'parent' => 'espresso-toolbar-registrations-today', |
| 1251 |
|
'title' => __('Pending', 'event_espresso'), |
| 1252 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1253 |
|
'action' => 'default', |
| 1254 |
|
'status' => 'today', |
| 1255 |
|
'reg_status' => EEM_Registration::status_id_pending_payment, |
| 1256 |
|
), $reg_admin_url), |
| 1257 |
|
'meta' => array( |
| 1258 |
|
'title' => __('Pending Payment', 'event_espresso'), |
| 1259 |
|
'target' => '', |
| 1260 |
|
'class' => $menu_class, |
|
@@ 1265-1277 (lines=13) @@
|
| 1262 |
|
)); |
| 1263 |
|
} |
| 1264 |
|
//Registration Overview Today Incomplete |
| 1265 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1266 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved') |
| 1267 |
|
) { |
| 1268 |
|
$admin_bar->add_menu(array( |
| 1269 |
|
'id' => 'espresso-toolbar-registrations-today-not-approved', |
| 1270 |
|
'parent' => 'espresso-toolbar-registrations-today', |
| 1271 |
|
'title' => __('Not Approved', 'event_espresso'), |
| 1272 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1273 |
|
'action' => 'default', |
| 1274 |
|
'status' => 'today', |
| 1275 |
|
'_reg_status' => EEM_Registration::status_id_not_approved, |
| 1276 |
|
), $reg_admin_url), |
| 1277 |
|
'meta' => array( |
| 1278 |
|
'title' => __('Not Approved', 'event_espresso'), |
| 1279 |
|
'target' => '', |
| 1280 |
|
'class' => $menu_class, |
|
@@ 1285-1297 (lines=13) @@
|
| 1282 |
|
)); |
| 1283 |
|
} |
| 1284 |
|
//Registration Overview Today Incomplete |
| 1285 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1286 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled') |
| 1287 |
|
) { |
| 1288 |
|
$admin_bar->add_menu(array( |
| 1289 |
|
'id' => 'espresso-toolbar-registrations-today-cancelled', |
| 1290 |
|
'parent' => 'espresso-toolbar-registrations-today', |
| 1291 |
|
'title' => __('Cancelled', 'event_espresso'), |
| 1292 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1293 |
|
'action' => 'default', |
| 1294 |
|
'status' => 'today', |
| 1295 |
|
'_reg_status' => EEM_Registration::status_id_cancelled, |
| 1296 |
|
), $reg_admin_url), |
| 1297 |
|
'meta' => array( |
| 1298 |
|
'title' => __('Cancelled', 'event_espresso'), |
| 1299 |
|
'target' => '', |
| 1300 |
|
'class' => $menu_class, |
|
@@ 1305-1317 (lines=13) @@
|
| 1302 |
|
)); |
| 1303 |
|
} |
| 1304 |
|
//Registration Overview This Month |
| 1305 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1306 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-month') |
| 1307 |
|
) { |
| 1308 |
|
$admin_bar->add_menu(array( |
| 1309 |
|
'id' => 'espresso-toolbar-registrations-month', |
| 1310 |
|
'parent' => 'espresso-toolbar-registrations', |
| 1311 |
|
'title' => __('This Month', 'event_espresso'), |
| 1312 |
|
'href' => EEH_URL::add_query_args_and_nonce(array('action' => 'default', 'status' => 'month'), |
| 1313 |
|
$reg_admin_url), |
| 1314 |
|
'meta' => array( |
| 1315 |
|
'title' => __('This Month', 'event_espresso'), |
| 1316 |
|
'target' => '', |
| 1317 |
|
'class' => $menu_class, |
| 1318 |
|
), |
| 1319 |
|
)); |
| 1320 |
|
} |
|
@@ 1322-1334 (lines=13) @@
|
| 1319 |
|
)); |
| 1320 |
|
} |
| 1321 |
|
//Registration Overview This Month Approved |
| 1322 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1323 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved') |
| 1324 |
|
) { |
| 1325 |
|
$admin_bar->add_menu(array( |
| 1326 |
|
'id' => 'espresso-toolbar-registrations-month-approved', |
| 1327 |
|
'parent' => 'espresso-toolbar-registrations-month', |
| 1328 |
|
'title' => __('Approved', 'event_espresso'), |
| 1329 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1330 |
|
'action' => 'default', |
| 1331 |
|
'status' => 'month', |
| 1332 |
|
'_reg_status' => EEM_Registration::status_id_approved, |
| 1333 |
|
), $reg_admin_url), |
| 1334 |
|
'meta' => array( |
| 1335 |
|
'title' => __('Approved', 'event_espresso'), |
| 1336 |
|
'target' => '', |
| 1337 |
|
'class' => $menu_class, |
|
@@ 1342-1354 (lines=13) @@
|
| 1339 |
|
)); |
| 1340 |
|
} |
| 1341 |
|
//Registration Overview This Month Pending |
| 1342 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1343 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending') |
| 1344 |
|
) { |
| 1345 |
|
$admin_bar->add_menu(array( |
| 1346 |
|
'id' => 'espresso-toolbar-registrations-month-pending', |
| 1347 |
|
'parent' => 'espresso-toolbar-registrations-month', |
| 1348 |
|
'title' => __('Pending', 'event_espresso'), |
| 1349 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1350 |
|
'action' => 'default', |
| 1351 |
|
'status' => 'month', |
| 1352 |
|
'_reg_status' => EEM_Registration::status_id_pending_payment, |
| 1353 |
|
), $reg_admin_url), |
| 1354 |
|
'meta' => array( |
| 1355 |
|
'title' => __('Pending', 'event_espresso'), |
| 1356 |
|
'target' => '', |
| 1357 |
|
'class' => $menu_class, |
|
@@ 1362-1374 (lines=13) @@
|
| 1359 |
|
)); |
| 1360 |
|
} |
| 1361 |
|
//Registration Overview This Month Not Approved |
| 1362 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1363 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved') |
| 1364 |
|
) { |
| 1365 |
|
$admin_bar->add_menu(array( |
| 1366 |
|
'id' => 'espresso-toolbar-registrations-month-not-approved', |
| 1367 |
|
'parent' => 'espresso-toolbar-registrations-month', |
| 1368 |
|
'title' => __('Not Approved', 'event_espresso'), |
| 1369 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1370 |
|
'action' => 'default', |
| 1371 |
|
'status' => 'month', |
| 1372 |
|
'_reg_status' => EEM_Registration::status_id_not_approved, |
| 1373 |
|
), $reg_admin_url), |
| 1374 |
|
'meta' => array( |
| 1375 |
|
'title' => __('Not Approved', 'event_espresso'), |
| 1376 |
|
'target' => '', |
| 1377 |
|
'class' => $menu_class, |
|
@@ 1382-1394 (lines=13) @@
|
| 1379 |
|
)); |
| 1380 |
|
} |
| 1381 |
|
//Registration Overview This Month Cancelled |
| 1382 |
|
if ($this->registry->CAP->current_user_can('ee_read_registrations', |
| 1383 |
|
'ee_admin_bar_menu_espresso-toolbar-registrations-month-cancelled') |
| 1384 |
|
) { |
| 1385 |
|
$admin_bar->add_menu(array( |
| 1386 |
|
'id' => 'espresso-toolbar-registrations-month-cancelled', |
| 1387 |
|
'parent' => 'espresso-toolbar-registrations-month', |
| 1388 |
|
'title' => __('Cancelled', 'event_espresso'), |
| 1389 |
|
'href' => EEH_URL::add_query_args_and_nonce(array( |
| 1390 |
|
'action' => 'default', |
| 1391 |
|
'status' => 'month', |
| 1392 |
|
'_reg_status' => EEM_Registration::status_id_cancelled, |
| 1393 |
|
), $reg_admin_url), |
| 1394 |
|
'meta' => array( |
| 1395 |
|
'title' => __('Cancelled', 'event_espresso'), |
| 1396 |
|
'target' => '', |
| 1397 |
|
'class' => $menu_class, |