<?php } else { ?> <td><?php echo $time_data['disp']; ?> </td> <td><?php echo epl_get_element($time_id, $event_details['_epl_end_time']); ?> </td> <?php } ?> <td><?php echo epl_get_regis_status($date_id); ?> </td> <td><?php echo $time_data['regis']; ?> / <?php echo $capacity ? $capacity : '∞'; ?> </td> <td> <?php
<?php foreach ($dates as $date_id => $date) { $date_capacity = epl_get_element_m($date_id, '_epl_date_capacity', $event_details); foreach ($times as $time_id => $time) { if (epl_is_date_level_time() && $date_specifc_time && (!isset($date_specifc_time[$time_id]) || !isset($date_specifc_time[$time_id][$date_id]))) { continue; } $time_capacity = epl_get_element_m($time_id, '_epl_time_capacity', $event_details); $capacity = $time_capacity ? $time_capacity : ($date_capacity ? $date_capacity : epl_get_element_m($date_id, '_epl_date_per_time_capacity', $event_details, '∞')); $num_regis = epl_get_element("_total_att_{$event_id}_time_{$date_id}_{$time_id}", $counts, 0); $links = ''; if ($num_regis > 0) { $dt_array = array('date_id' => $date_id, 'time_id' => $time_id); $table_link_arr = array_merge($table_link_arr, $dt_array); $csv_link_arr += $dt_array; $send_email_arr = array('epl_action' => 'get_the_email_form', 'epl_controller' => 'epl_registration', 'event_id' => $event_id, 'post_type' => false); $links = epl_anchor(add_query_arg(array_merge($table_link_arr, $dt_array) + array('names_only' => 1), $base_url), epl__('View Attendees'), null, 'class="epl_view_attendee_list_table button-secondary"'); // $table_link_arr['epl_action'] = 'epl_attendee_list'; // $table_link_arr['epl_controller'] = 'epl_registration'; $links .= epl_anchor(add_query_arg($table_link_arr, $base_url), epl__('View Full Data'), null, 'class="epl_view_attendee_list_table button-secondary"'); $links .= epl_anchor(add_query_arg(array_merge($csv_link_arr, $dt_array), $base_url), epl__('Export CSV'), null, 'class="button-secondary"'); $links .= epl_anchor(add_query_arg($send_email_arr + $dt_array, $base_url), epl__('Send Email'), null, "class='epl_send_email_form_link button-secondary' data-post_ID='{$post_ID}' data-event_id='{$event_id}'"); } $row = array(epl_formatted_date($date, 'D'), epl_formatted_date($date), epl_is_time_optonal() ? epl__('All Day') : $time . ' - ' . $event_details['_epl_end_time'][$time_id], epl_get_regis_status($date_id), $num_regis . '/' . $capacity, $links); echo '<tr><td>' . implode('</td><td>', $row) . "</td><tr>"; } } ?> </tbody> </table>