|
@@ 949-961 (lines=13) @@
|
| 946 |
|
)); |
| 947 |
|
|
| 948 |
|
//Events |
| 949 |
|
if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events' ) ) { |
| 950 |
|
$admin_bar->add_menu(array( |
| 951 |
|
'id' => 'espresso-toolbar-events', |
| 952 |
|
'parent' => 'espresso-toolbar', |
| 953 |
|
'title' => __( 'Events', 'event_espresso' ), |
| 954 |
|
'href' => $events_admin_url, |
| 955 |
|
'meta' => array( |
| 956 |
|
'title' => __('Events', 'event_espresso'), |
| 957 |
|
'target' => '', |
| 958 |
|
'class' => $menu_class |
| 959 |
|
), |
| 960 |
|
)); |
| 961 |
|
} |
| 962 |
|
|
| 963 |
|
|
| 964 |
|
if ( $this->registry->CAP->current_user_can( 'ee_edit_events', 'ee_admin_bar_menu_espresso-toolbar-events-new' ) ) { |
|
@@ 1002-1014 (lines=13) @@
|
| 999 |
|
} |
| 1000 |
|
|
| 1001 |
|
//Events View |
| 1002 |
|
if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-view' ) ) { |
| 1003 |
|
$admin_bar->add_menu(array( |
| 1004 |
|
'id' => 'espresso-toolbar-events-view', |
| 1005 |
|
'parent' => 'espresso-toolbar-events', |
| 1006 |
|
'title' => __( 'View', 'event_espresso' ), |
| 1007 |
|
'href' => $events_admin_url, |
| 1008 |
|
'meta' => array( |
| 1009 |
|
'title' => __('View', 'event_espresso'), |
| 1010 |
|
'target' => '', |
| 1011 |
|
'class' => $menu_class |
| 1012 |
|
), |
| 1013 |
|
)); |
| 1014 |
|
} |
| 1015 |
|
|
| 1016 |
|
if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-all' ) ) { |
| 1017 |
|
//Events View All |
|
@@ 1016-1029 (lines=14) @@
|
| 1013 |
|
)); |
| 1014 |
|
} |
| 1015 |
|
|
| 1016 |
|
if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-all' ) ) { |
| 1017 |
|
//Events View All |
| 1018 |
|
$admin_bar->add_menu(array( |
| 1019 |
|
'id' => 'espresso-toolbar-events-all', |
| 1020 |
|
'parent' => 'espresso-toolbar-events-view', |
| 1021 |
|
'title' => __( 'All', 'event_espresso' ), |
| 1022 |
|
'href' => $events_admin_url, |
| 1023 |
|
'meta' => array( |
| 1024 |
|
'title' => __('All', 'event_espresso'), |
| 1025 |
|
'target' => '', |
| 1026 |
|
'class' => $menu_class |
| 1027 |
|
), |
| 1028 |
|
)); |
| 1029 |
|
} |
| 1030 |
|
|
| 1031 |
|
|
| 1032 |
|
if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-today' ) ) { |
|
@@ 1064-1076 (lines=13) @@
|
| 1061 |
|
} |
| 1062 |
|
|
| 1063 |
|
//Registration Overview |
| 1064 |
|
if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations' ) ) { |
| 1065 |
|
$admin_bar->add_menu(array( |
| 1066 |
|
'id' => 'espresso-toolbar-registrations', |
| 1067 |
|
'parent' => 'espresso-toolbar', |
| 1068 |
|
'title' => __( 'Registrations', 'event_espresso' ), |
| 1069 |
|
'href' => $reg_admin_url, |
| 1070 |
|
'meta' => array( |
| 1071 |
|
'title' => __('Registrations', 'event_espresso'), |
| 1072 |
|
'target' => '', |
| 1073 |
|
'class' => $menu_class |
| 1074 |
|
), |
| 1075 |
|
)); |
| 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' ) ) { |
|
@@ 1230-1242 (lines=13) @@
|
| 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' ) ) { |
| 1231 |
|
$admin_bar->add_menu(array( |
| 1232 |
|
'id' => 'espresso-toolbar-extensions-and-services', |
| 1233 |
|
'parent' => 'espresso-toolbar', |
| 1234 |
|
'title' => __( 'Extensions & Services', 'event_espresso' ), |
| 1235 |
|
'href' => $extensions_admin_url, |
| 1236 |
|
'meta' => array( |
| 1237 |
|
'title' => __('Extensions & Services', 'event_espresso'), |
| 1238 |
|
'target' => '', |
| 1239 |
|
'class' => $menu_class |
| 1240 |
|
), |
| 1241 |
|
)); |
| 1242 |
|
} |
| 1243 |
|
} |
| 1244 |
|
|
| 1245 |
|
|