main->get_styling(); $event_colorskin = (isset($styling['mec_colorskin']) || isset($styling['color'])) ? 'colorskin-custom' : ''; $settings = $this->main->get_settings(); $current_month_divider = isset($_REQUEST['current_month_divider']) ? sanitize_text_field($_REQUEST['current_month_divider']) : 0; global $MEC_Shortcode_id; $MEC_Shortcode_id = !empty($MEC_Shortcode_id) ? $MEC_Shortcode_id : $this->atts['id']; // colorful $colorful_flag = $colorful_class = ''; if($this->style == 'colorful') { $colorful_flag = true; $this->style = 'modern'; $colorful_class = ' mec-event-custom-colorful'; } global $mec_enqueue_custom_css; $is_load_more = 'mec_custom_load_more' === ($_REQUEST['action'] ?? '') ? true : false; $with_css = $is_load_more ? false : true; ?>
count; if($count == 0 or $count == 5) $col = 4; else $col = 12 / $count; global $post; global $mec_old_post; $mec_old_post = $post; $rcount = 1; if(!empty($this->events)) { foreach($this->events as $date => $events) { $month_id = date('Ym', strtotime($date)); foreach($events as $event) { global $post; $post = $event->data->post; if($this->count == '1' and $this->month_divider and $month_id != $current_month_divider): $current_month_divider = $month_id; ?>
main->date_i18n('F Y', strtotime($date))); ?>
' : ''; echo '
'; echo '
'; if( isset( $mec_enqueue_custom_css[ $this->style ] ) ) { $with_css = false; }else{ $mec_enqueue_custom_css[ $this->style ] = true; } echo Plugin::instance()->frontend->get_builder_content_for_display($this->style, $with_css); echo '
'; if($rcount == $count) { echo '
'; $rcount = 0; } $rcount++; } } } global $post; global $mec_old_post; $post = $mec_old_post; ?>
$value) { foreach($value as $keyy => $valuee) $map_eventss[] = $valuee; } } if(isset($this->map_on_top) and $this->map_on_top): if(isset($map_eventss) and !empty($map_eventss)) { // Include Map Assets such as JS and CSS libraries $this->main->load_map_assets(); $map_javascript = ''; $map_data = new stdClass; $map_data->id = $this->id; $map_data->atts = $this->atts; $map_data->events = $map_eventss; $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, $map_data, $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); } endif;