main->get_styling(); $event_colorskin = (isset($styling['mec_colorskin'] ) || isset($styling['color'])) ? 'colorskin-custom' : ''; $settings = $this->main->get_settings(); $display_label = $this->skin_options['display_label'] ?? false; $reason_for_cancellation = $this->skin_options['reason_for_cancellation'] ?? false; $map_events = []; // colorful $colorful_flag = $colorful_class = ''; if($this->style == 'colorful') { $colorful_flag = true; $this->style = 'modern'; $colorful_class = ' mec-event-grid-colorful'; } ?>
count; $grid_div = $this->count; $grid_limit = $this->limit; if($count == 0 or $count == 5) $col = 4; else $col = 12 / $count; $close_row = true; $rcount = 1 ; foreach($this->events as $date): foreach($date as $event): $map_events[] = $event; if($rcount == 1) { echo '
'; $close_row = true; } echo '
'; $location_id = $this->main->get_master_location_id($event); $location = ($location_id ? $this->main->get_location_data($location_id) : array()); $organizer_id = $this->main->get_master_organizer_id($event); $organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array()); $event_color = $this->get_event_color_dot($event); $start_time = (isset($event->data->time) ? $event->data->time['start'] : ''); $end_time = (isset($event->data->time) ? $event->data->time['end'] : ''); $event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : ''; $mec_data = $this->display_custom_data($event); $custom_data_class = !empty($mec_data) ? 'mec-custom-data' : ''; // colorful $colorful_bg_color = ($colorful_flag && isset($event->data->meta['mec_color'])) ? ' style="background: #' . esc_attr($event->data->meta['mec_color']) . '"' : ''; // MEC Schema do_action('mec_schema', $event); echo '
'; ?> style == 'modern'): ?>
main->date_i18n($this->date_format_modern_1, strtotime($event->date['start']['date']))); ?>
main->date_i18n($this->date_format_modern_2, strtotime($event->date['start']['date']))); ?>
main->dateify($event, $this->date_format_modern_1 .' '. $this->date_format_modern_2)); ?>
'.$this->icons->display('location-pin'). esc_html($location['name']) . '
' : ''); ?> display_categories($event)); ?> display_organizers($event)); ?> get_label_captions($event)); ?>
main->date_i18n($this->date_format_modern_3, strtotime($event->date['start']['date']))); ?>
main->get_flags($event); ?>

display_link($event)); ?>display_custom_data($event)); ?>main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?>data->ID ); ?>

localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?> include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>

display_cost($event)); ?>
style == 'classic'): ?>
display_link($event, $event->data->thumbnails['medium'], '')); ?>
main->date_i18n($this->date_format_classic_1, strtotime($event->date['start']['date']))); ?> localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?> include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
main->dateify($event, $this->date_format_classic_1)); ?> localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?> include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
main->get_flags($event); ?>

display_link($event)); ?>display_custom_data($event)); ?>main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?>data->ID ); ?>

get_label_captions($event)); ?>

display_categories($event)); ?> display_organizers($event)); ?> display_cost($event)); ?>
style == 'minimal'): ?>
main->date_i18n($this->date_format_minimal_1, strtotime($event->date['start']['date']))); ?>main->date_i18n($this->date_format_minimal_2, strtotime($event->date['start']['date']))); ?>

display_link($event)); ?>display_custom_data($event)); ?>main->get_flags($event).$event_color); echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?>data->ID); ?>get_label_captions($event,'mec-fc-style')); ?>

localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?> include_events_times) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
'.$this->icons->display('location-pin'). esc_html($location['name']) . '
' : ''); ?> display_categories($event)); ?> display_organizers($event)); ?> display_cost($event)); ?> booking_button($event)); ?>
style == 'clean'): ?>
main->date_i18n($this->date_format_clean_1, strtotime($event->date['start']['date']))); ?>
main->date_i18n($this->date_format_clean_2, strtotime($event->date['start']['date']))); ?>
localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?> include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
main->dateify($event, $this->date_format_clean_1.' '.$this->date_format_clean_2)); ?>
localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?> include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
'. $this->icons->display('location-pin') . esc_html($location['name']) . '
' : ''); ?> display_categories($event)); ?> display_organizers($event)); ?> display_cost($event)); ?> get_label_captions($event)); ?>
display_link($event, $event->data->thumbnails['medium'], '')); ?>
main->get_flags($event); ?>

display_link($event)); ?>display_custom_data($event)); ?>main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?>data->ID ); ?>

style == 'novel'): ?>
display_link($event, $event->data->thumbnails['thumblist'], '')); ?>
main->get_flags($event); ?>

display_link($event)); ?>display_custom_data($event)); ?>main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?>data->ID ); ?>

main->date_i18n($this->date_format_novel_1, strtotime($event->date['start']['date']))); ?>
main->dateify($event, $this->date_format_novel_1)); ?>
include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time, array('class' => 'mec-event-detail'))); if(isset($location['address'])) echo '
'.esc_html($location['address']).'
'; if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event, 'display_svg' => true ))); echo MEC_kses::element($this->display_categories($event)); echo MEC_kses::element($this->display_organizers($event)); echo MEC_kses::element($this->display_cost($event)); ?> get_label_captions($event)); ?>
style == 'simple'): ?>
main->dateify($event, $this->date_format_simple_1)); ?>

display_link($event)); ?>display_custom_data($event)); ?>main->get_flags($event).$event_color); echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?>data->ID); ?>get_label_captions($event,'mec-fc-style')); ?>

localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?> include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?> display_categories($event)); ?> display_organizers($event)); ?> display_cost($event)); ?>
booking_button($event)); ?>
'; if($rcount == $count) { echo ''; $rcount = 0; $close_row = false; } $rcount++; ?> '; ?> map_on_top) and $this->map_on_top and isset($map_events) and !empty($map_events)) { // Include Map Assets such as JS and CSS libraries $this->main->load_map_assets(); // It changing geolocation focus, because after done filtering, if it doesn't. then the map position will not set correctly. if((isset($_REQUEST['action']) and sanitize_text_field($_REQUEST['action']) == 'mec_grid_load_more') and isset($_REQUEST['sf'])) $this->geolocation_focus = true; $map_javascript = ''; $map_data = new stdClass; $map_data->id = $this->id; $map_data->atts = $this->atts; $map_data->events = $map_events; $map_data->render = $this->render; $map_data->geolocation = $this->geolocation; $map_data->sf_status = null; $map_data->main = $this->main; $map_javascript = apply_filters('mec_map_load_script', $map_javascript, $this, $settings); // Include javascript code into the page if($this->main->is_ajax()) echo MEC_kses::full($map_javascript); else $this->factory->params('footer', $map_javascript); }