| @@ 1029-1045 (lines=17) @@ | ||
| 1026 | : 0; | |
| 1027 |         if ($ATT_ID) { | |
| 1028 | $attendee = EEM_Attendee::instance()->get_one_by_ID($ATT_ID); | |
| 1029 |             if ($attendee instanceof EE_Attendee) { | |
| 1030 | $this->_template_args['admin_page_header'] = sprintf( | |
| 1031 | esc_html__( | |
| 1032 | '%1$s Viewing registrations for %2$s%3$s', | |
| 1033 | 'event_espresso' | |
| 1034 | ), | |
| 1035 | '<h3 style="line-height:1.5em;">', | |
| 1036 | '<a href="' . EE_Admin_Page::add_query_args_and_nonce( | |
| 1037 | array( | |
| 1038 | 'action' => 'edit_attendee', | |
| 1039 | 'post' => $ATT_ID | |
| 1040 | ), | |
| 1041 | REG_ADMIN_URL | |
| 1042 | ) . '">' . $attendee->full_name() . '</a>', | |
| 1043 | '</h3>' | |
| 1044 | ); | |
| 1045 | } | |
| 1046 | } | |
| 1047 |         if ($EVT_ID) { | |
| 1048 | if (EE_Registry::instance()->CAP->current_user_can( | |
| @@ 1061-1081 (lines=21) @@ | ||
| 1058 | ); | |
| 1059 | } | |
| 1060 | $event = EEM_Event::instance()->get_one_by_ID($EVT_ID); | |
| 1061 |             if ($event instanceof EE_Event) { | |
| 1062 | $this->_template_args['admin_page_header'] = sprintf( | |
| 1063 | esc_html__( | |
| 1064 | '%s Viewing registrations for the event: %s%s', | |
| 1065 | 'event_espresso' | |
| 1066 | ), | |
| 1067 | '<h3 style="line-height:1.5em;">', | |
| 1068 | '<br /><a href="' | |
| 1069 | . EE_Admin_Page::add_query_args_and_nonce( | |
| 1070 | array( | |
| 1071 | 'action' => 'edit', | |
| 1072 | 'post' => $event->ID(), | |
| 1073 | ), | |
| 1074 | EVENTS_ADMIN_URL | |
| 1075 | ) | |
| 1076 | . '"> ' | |
| 1077 |                         . $event->get('EVT_name') | |
| 1078 | . ' </a> ', | |
| 1079 | '</h3>' | |
| 1080 | ); | |
| 1081 | } | |
| 1082 | $DTT_ID = ! empty($this->_req_data['datetime_id']) ? absint($this->_req_data['datetime_id']) : 0; | |
| 1083 | $datetime = EEM_Datetime::instance()->get_one_by_ID($DTT_ID); | |
| 1084 |             if ($datetime instanceof EE_Datetime && $this->_template_args['admin_page_header'] !== '') { | |