echo $event['title']; ?> </a> <span style="display:none;" class="event_details_hidden"><?php echo strip_tags($event['description'], '<img>'); ?> </span> </div> <?php if (!is_null($loc_id = epl_get_element_m($event['date_id'], '_epl_date_location', $event_details, epl_get_event_property('_epl_event_location', true) > 0))) { ?> <div class="location_details" style="text-align: right;"> <div class="event_location"> <?php the_location_details($loc_id); echo get_the_location_name(); ?> <br /> <?php echo get_the_location_address(); ?> <br /> <?php echo get_the_location_address2() != '' ? get_the_location_address2() . '<br />' : ''; ?> <?php echo get_the_location_city(); ?> <?php echo get_the_location_state();
?> </th> </tr> </thead> <?php } foreach ($table_data as $date_id => $data) { $date = '<span itemprop="startDate" content="' . epl_formatted_date($data['date']['disp'], 'Y-m-d') . '">' . $data['date']['disp'] . '</span>'; $times = $data['time']; $_note = epl_get_element_m($date_id, '_epl_date_note', $event_details); $_location = ''; if (epl_get_element($date_id, epl_get_element('_epl_date_location', $event_details))) { $_location_id = epl_get_element($date_id, $event_details['_epl_date_location']); $l = the_location_details($_location_id); //sets up the location info $_location = $l['post_title']; } ?> <tr class="epl_date"> <td><?php echo $date . epl_prefix(' - ', $_note) . epl_prefix(' - ', $_location); ?> </td> <td></td> <td><?php echo $show_avail_spaces ? $data['date']['avail'] : ''; ?> </td>
<?php /** * The Template for displaying a single location * * @package WordPress * @subpackage Events Planner www.wpeventsplanner.com */ get_header(); the_post(); //required the_location_details(); //puts the location details in a global variable $location_details global $location_details; //This is an array with all the information from the db ?> <div id="primary"> <div id="content"> <?php //You can uncomment this line to see what is in $location_details //echo "<pre class='prettyprint'>LOCATION DETAILS " . print_r( $location_details, true ) . "</pre>"; ?> <h1 class="entry-title"><?php the_title(); ?> </h1>
?> " /> </span> <?php } ?> </div> <div class="epl_date_extra"> <?php if (epl_get_element('_epl_date_location', $event_details) && $event_details['_epl_date_location'][$date_id] != '') { ?> <?php the_location_details($event_details['_epl_date_location'][$date_id]); //sets up the location info $map_text = apply_filters('epl_get_the_location_gmap_icon_text_cart_dates', epl__('See Map')); echo epl__('Location') . ': ' . get_the_location_name() . ' ' . get_the_location_address() . ' ' . get_the_location_city() . ' ' . get_the_location_state() . ' ' . get_the_location_zip(); ?> <?php } ?> </div> <?php if (isset($time[$date_id])) { ?> <div class="epl_ind_time_wrapper"> <?php epl_e('Time');
function get_location_map() { $location_id = (int) str_replace('location_id_', '', $_POST['location_id']); global $location_details; the_location_details($location_id); $r = $this->epl->load_view("front/location-map", '', true); return $this->epl_util->epl_response(array('html' => $r)); }
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); }