function sc_add_event_details($event_id) { ob_start(); ?> <div class="sc_event_details" id="sc_event_details_<?php echo $event_id; ?> "> <div class="sc_event_details_inner"> <div class="sc_event_date"><?php echo __('Date:', 'pippin_sc') . ' ' . sc_get_event_date($event_id); ?> </div> <div class="sc_event_time"> <span class="sc_event_start_time"><?php echo __('Time:', 'pippin_sc') . ' ' . sc_get_event_start_time($event_id); ?> </span> <span class="sc_event_time_sep"> <?php _e('to', 'pippin_sc'); ?> </span> <span class="sc_event_end_time"><?php echo sc_get_event_end_time($event_id); ?> </span> </div><!--end .sc_event_time--> </div><!--end .sc_event_details_inner--> </div><!--end .sc_event_details--> <?php echo ob_get_clean(); }
/** * Retrieves the time for an event * * @access public * @since 1.0 * @param $event_id int The ID number of the event * @return array */ function sc_get_event_time($event_id) { $start_time = sc_get_event_start_time($event_id); $end_time = sc_get_event_end_time($event_id); return apply_filters('sc_event_time', array('start' => $start_time, 'end' => $end_time)); }