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