echo $time_data['disp'] . epl_prefix(' - ', $event_details['_epl_end_time'][$time_id]) . epl_prefix(' - ', epl_get_element_m($time_id, '_epl_time_note', $event_details)); ?> </td> <td></td> <td><?php echo $show_avail_spaces ? $time_data['avail'] : ''; ?> </td> </tr> <?php } foreach ($prices as $price_id => $price_data) { if (epl_is_time_specific_price($price_id) && !epl_get_element_m($time_id, $price_id, epl_get_element('_epl_time_specific_price', $event_details))) { continue; } if (epl_is_date_specific_price($price_id) && !epl_get_element_m($date_id, $price_id, epl_get_element('_epl_date_specific_price', $event_details))) { continue; } if (epl_get_element($price_id, epl_get_element('_epl_price_hide', $event_details)) == 0) { ?> <tr class="epl_price"> <td><?php echo $price_data['disp']; ?> </td> <td><?php echo epl_get_formatted_curr($event_details['_epl_price'][$price_id], null, true); ?> </td> <td><?php
function get_the_event_dates_times_prices() { global $event_details, $event_snapshot; $_today = EPL_DATE; $_r = array(); foreach ($event_details['_epl_start_date'] as $date_key => $date) { if (epl_is_ongoing_event() || true) { $_note = epl_get_element_m($date_key, '_epl_date_note', $event_details); $_location = ''; if (epl_get_element($date_key, epl_get_element('_epl_date_location', $event_details))) { $_location_id = epl_get_element($date_key, $event_details['_epl_date_location']); $l = the_location_details($_location_id); //sets up the location info $_location = $l['post_title']; //get_the_location_name();// . ' ' . get_the_location_gmap_icon(); //echo "<pre class='prettyprint'>" . __LINE__ . "> " . print_r( epl_formatted_date( $date ) . $_location_id, true ) . "</pre>"; } $_end = $date != $event_details['_epl_end_date'][$date_key] ? ' - ' . epl_formatted_date($event_details['_epl_end_date'][$date_key]) : ''; $_r[$date_key]['date'] = array('disp' => epl_formatted_date($date) . $_end . ' ' . $_location); foreach ($event_details['_epl_start_time'] as $time_key => $time) { if (epl_is_date_level_time() && epl_is_date_specific_time($time_key) && !epl_get_element_m($date_key, $time_key, $event_details['_epl_date_specific_time'])) { continue; } $_r[$date_key]['time'][$time_key] = array('disp' => $time . epl_prefix(' - ', epl_get_element_m($time_key, '_epl_time_note', $event_details))); foreach ($event_details['_epl_price_name'] as $price_key => $price_name) { if (epl_is_date_level_price() && epl_is_date_specific_price($price_key) && !epl_get_element_m($date_key, $price_key, $event_details['_epl_date_specific_price'])) { continue; } //echo "<pre class='prettyprint'>" . __LINE__ . "> " . print_r($event_details['_epl_price_name'], true). "</pre>"; $_r[$date_key]['time'][$time_key]['price'][$price_key] = array('disp' => $price_name, 'price' => epl_get_formatted_curr($event_details['_epl_price'][$price_key], null, true)); if (epl_is_time_specific_price($price_key) && !epl_get_element_m($time_key, $price_key, epl_get_element('_epl_time_specific_price', $event_details))) { unset($_r[$date_key]['time'][$time_key]['price'][$price_key]); } if (epl_is_date_specific_price($price_key) && !epl_get_element_m($date_key, $price_key, epl_get_element('_epl_date_specific_price', $event_details))) { unset($_r[$date_key]['time'][$time_key]['price'][$price_key]); } } } } } return $this->epl->load_view('front/dates-times-prices', array('table_data' => $_r), true); }