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