@@ 1026-1039 (lines=14) @@ | ||
1023 | } |
|
1024 | ||
1025 | ||
1026 | if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-today' ) ) { |
|
1027 | //Events View Today |
|
1028 | $admin_bar->add_menu(array( |
|
1029 | 'id' => 'espresso-toolbar-events-today', |
|
1030 | 'parent' => 'espresso-toolbar-events-view', |
|
1031 | 'title' => __('Today', 'event_espresso'), |
|
1032 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today' ), $events_admin_url ), |
|
1033 | 'meta' => array( |
|
1034 | 'title' => __('Today', 'event_espresso'), |
|
1035 | 'target' => '', |
|
1036 | 'class' => $menu_class |
|
1037 | ), |
|
1038 | )); |
|
1039 | } |
|
1040 | ||
1041 | ||
1042 | if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-month' ) ) { |
|
@@ 1042-1055 (lines=14) @@ | ||
1039 | } |
|
1040 | ||
1041 | ||
1042 | if ( $this->registry->CAP->current_user_can( 'ee_read_events', 'ee_admin_bar_menu_espresso-toolbar-events-month' ) ) { |
|
1043 | //Events View This Month |
|
1044 | $admin_bar->add_menu(array( |
|
1045 | 'id' => 'espresso-toolbar-events-month', |
|
1046 | 'parent' => 'espresso-toolbar-events-view', |
|
1047 | 'title' => __( 'This Month', 'event_espresso'), |
|
1048 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month' ), $events_admin_url ), |
|
1049 | 'meta' => array( |
|
1050 | 'title' => __('This Month', 'event_espresso'), |
|
1051 | 'target' => '', |
|
1052 | 'class' => $menu_class |
|
1053 | ), |
|
1054 | )); |
|
1055 | } |
|
1056 | ||
1057 | //Registration Overview |
|
1058 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations' ) ) { |
|
@@ 1073-1085 (lines=13) @@ | ||
1070 | } |
|
1071 | ||
1072 | //Registration Overview Today |
|
1073 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today' ) ) { |
|
1074 | $admin_bar->add_menu(array( |
|
1075 | 'id' => 'espresso-toolbar-registrations-today', |
|
1076 | 'parent' => 'espresso-toolbar-registrations', |
|
1077 | 'title' => __( 'Today', 'event_espresso'), |
|
1078 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today' ), $reg_admin_url ), |
|
1079 | 'meta' => array( |
|
1080 | 'title' => __('Today', 'event_espresso'), |
|
1081 | 'target' => '', |
|
1082 | 'class' => $menu_class |
|
1083 | ), |
|
1084 | )); |
|
1085 | } |
|
1086 | ||
1087 | //Registration Overview Today Completed |
|
1088 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved' ) ) { |
|
@@ 1088-1100 (lines=13) @@ | ||
1085 | } |
|
1086 | ||
1087 | //Registration Overview Today Completed |
|
1088 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-approved' ) ) { |
|
1089 | $admin_bar->add_menu(array( |
|
1090 | 'id' => 'espresso-toolbar-registrations-today-approved', |
|
1091 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1092 | 'title' => __( 'Approved', 'event_espresso' ), |
|
1093 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', '_reg_status'=>EEM_Registration::status_id_approved ), $reg_admin_url ), |
|
1094 | 'meta' => array( |
|
1095 | 'title' => __('Approved', 'event_espresso' ), |
|
1096 | 'target' => '', |
|
1097 | 'class' => $menu_class |
|
1098 | ), |
|
1099 | )); |
|
1100 | } |
|
1101 | ||
1102 | //Registration Overview Today Pending\ |
|
1103 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending' ) ) { |
|
@@ 1103-1115 (lines=13) @@ | ||
1100 | } |
|
1101 | ||
1102 | //Registration Overview Today Pending\ |
|
1103 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-pending' ) ) { |
|
1104 | $admin_bar->add_menu(array( |
|
1105 | 'id' => 'espresso-toolbar-registrations-today-pending', |
|
1106 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1107 | 'title' => __( 'Pending', 'event_espresso' ), |
|
1108 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', 'reg_status'=>EEM_Registration::status_id_pending_payment ), $reg_admin_url ), |
|
1109 | 'meta' => array( |
|
1110 | 'title' => __('Pending Payment', 'event_espresso' ), |
|
1111 | 'target' => '', |
|
1112 | 'class' => $menu_class |
|
1113 | ), |
|
1114 | )); |
|
1115 | } |
|
1116 | ||
1117 | //Registration Overview Today Incomplete |
|
1118 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved' ) ) { |
|
@@ 1118-1130 (lines=13) @@ | ||
1115 | } |
|
1116 | ||
1117 | //Registration Overview Today Incomplete |
|
1118 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-not-approved' ) ) { |
|
1119 | $admin_bar->add_menu(array( |
|
1120 | 'id' => 'espresso-toolbar-registrations-today-not-approved', |
|
1121 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1122 | 'title' => __( 'Not Approved', 'event_espresso' ), |
|
1123 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', '_reg_status'=>EEM_Registration::status_id_not_approved ), $reg_admin_url ), |
|
1124 | 'meta' => array( |
|
1125 | 'title' => __('Not Approved', 'event_espresso' ), |
|
1126 | 'target' => '', |
|
1127 | 'class' => $menu_class |
|
1128 | ), |
|
1129 | )); |
|
1130 | } |
|
1131 | ||
1132 | //Registration Overview Today Incomplete |
|
1133 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled' ) ) { |
|
@@ 1133-1145 (lines=13) @@ | ||
1130 | } |
|
1131 | ||
1132 | //Registration Overview Today Incomplete |
|
1133 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-today-cancelled' ) ) { |
|
1134 | $admin_bar->add_menu(array( |
|
1135 | 'id' => 'espresso-toolbar-registrations-today-cancelled', |
|
1136 | 'parent' => 'espresso-toolbar-registrations-today', |
|
1137 | 'title' => __( 'Cancelled', 'event_espresso'), |
|
1138 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'today', '_reg_status'=>EEM_Registration::status_id_cancelled ), $reg_admin_url ), |
|
1139 | 'meta' => array( |
|
1140 | 'title' => __('Cancelled', 'event_espresso'), |
|
1141 | 'target' => '', |
|
1142 | 'class' => $menu_class |
|
1143 | ), |
|
1144 | )); |
|
1145 | } |
|
1146 | ||
1147 | //Registration Overview This Month |
|
1148 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month' ) ) { |
|
@@ 1148-1160 (lines=13) @@ | ||
1145 | } |
|
1146 | ||
1147 | //Registration Overview This Month |
|
1148 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month' ) ) { |
|
1149 | $admin_bar->add_menu(array( |
|
1150 | 'id' => 'espresso-toolbar-registrations-month', |
|
1151 | 'parent' => 'espresso-toolbar-registrations', |
|
1152 | 'title' => __( 'This Month', 'event_espresso' ), |
|
1153 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month' ), $reg_admin_url ), |
|
1154 | 'meta' => array( |
|
1155 | 'title' => __('This Month', 'event_espresso'), |
|
1156 | 'target' => '', |
|
1157 | 'class' => $menu_class |
|
1158 | ), |
|
1159 | )); |
|
1160 | } |
|
1161 | ||
1162 | //Registration Overview This Month Approved |
|
1163 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved' ) ) { |
|
@@ 1163-1175 (lines=13) @@ | ||
1160 | } |
|
1161 | ||
1162 | //Registration Overview This Month Approved |
|
1163 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-approved' ) ) { |
|
1164 | $admin_bar->add_menu(array( |
|
1165 | 'id' => 'espresso-toolbar-registrations-month-approved', |
|
1166 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1167 | 'title' => __( 'Approved', 'event_espresso' ), |
|
1168 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_approved ), $reg_admin_url ), |
|
1169 | 'meta' => array( |
|
1170 | 'title' => __('Approved', 'event_espresso'), |
|
1171 | 'target' => '', |
|
1172 | 'class' => $menu_class |
|
1173 | ), |
|
1174 | )); |
|
1175 | } |
|
1176 | ||
1177 | //Registration Overview This Month Pending |
|
1178 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending' ) ) { |
|
@@ 1178-1190 (lines=13) @@ | ||
1175 | } |
|
1176 | ||
1177 | //Registration Overview This Month Pending |
|
1178 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-pending' ) ) { |
|
1179 | $admin_bar->add_menu(array( |
|
1180 | 'id' => 'espresso-toolbar-registrations-month-pending', |
|
1181 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1182 | 'title' => __( 'Pending', 'event_espresso'), |
|
1183 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_pending_payment ), $reg_admin_url ), |
|
1184 | 'meta' => array( |
|
1185 | 'title' => __('Pending', 'event_espresso'), |
|
1186 | 'target' => '', |
|
1187 | 'class' => $menu_class |
|
1188 | ), |
|
1189 | )); |
|
1190 | } |
|
1191 | ||
1192 | //Registration Overview This Month Not Approved |
|
1193 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved' ) ) { |
|
@@ 1193-1205 (lines=13) @@ | ||
1190 | } |
|
1191 | ||
1192 | //Registration Overview This Month Not Approved |
|
1193 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-not-approved' ) ) { |
|
1194 | $admin_bar->add_menu(array( |
|
1195 | 'id' => 'espresso-toolbar-registrations-month-not-approved', |
|
1196 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1197 | 'title' => __( 'Not Approved', 'event_espresso'), |
|
1198 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_not_approved ), $reg_admin_url ), |
|
1199 | 'meta' => array( |
|
1200 | 'title' => __('Not Approved', 'event_espresso' ), |
|
1201 | 'target' => '', |
|
1202 | 'class' => $menu_class |
|
1203 | ), |
|
1204 | )); |
|
1205 | } |
|
1206 | ||
1207 | ||
1208 | //Registration Overview This Month Cancelled |
|
@@ 1209-1221 (lines=13) @@ | ||
1206 | ||
1207 | ||
1208 | //Registration Overview This Month Cancelled |
|
1209 | if ( $this->registry->CAP->current_user_can( 'ee_read_registrations', 'ee_admin_bar_menu_espresso-toolbar-registrations-month-cancelled' ) ) { |
|
1210 | $admin_bar->add_menu(array( |
|
1211 | 'id' => 'espresso-toolbar-registrations-month-cancelled', |
|
1212 | 'parent' => 'espresso-toolbar-registrations-month', |
|
1213 | 'title' => __('Cancelled', 'event_espresso'), |
|
1214 | 'href' => EEH_URL::add_query_args_and_nonce( array( 'action'=>'default', 'status'=>'month', '_reg_status'=>EEM_Registration::status_id_cancelled ), $reg_admin_url ), |
|
1215 | 'meta' => array( |
|
1216 | 'title' => __('Cancelled', 'event_espresso'), |
|
1217 | 'target' => '', |
|
1218 | 'class' => $menu_class |
|
1219 | ), |
|
1220 | )); |
|
1221 | } |
|
1222 | ||
1223 | //Extensions & Services |
|
1224 | if ( $this->registry->CAP->current_user_can( 'ee_read_ee', 'ee_admin_bar_menu_espresso-toolbar-extensions-and-services' ) ) { |