get_render_path(); ob_start(); include $render_path; $items_html = ob_get_clean(); if(isset($this->atts['return_items']) and $this->atts['return_items']) { echo json_encode(array('html' => $items_html, 'end_date' => $this->end_date, 'offset' => $this->next_offset, 'count' => $this->found, 'has_more_event' => (int) $this->has_more_events)); exit; } $sed_method = $this->sed_method; if($sed_method == 'new') $sed_method = '0'; // Inclue Isotope Assets $this->main->load_isotope_assets(); // Generating javascript code tpl $javascript = ''; // Include javascript code into the page if($this->main->is_ajax() or $this->main->preview()) echo MEC_kses::full($javascript); else $this->factory->params('footer', $javascript); $styling = $this->main->get_styling(); $event_colorskin = (isset($styling['mec_colorskin']) || isset($styling['color'])) ? ' colorskin-custom ' : ''; $dark_mode = $styling['dark_mode'] ?? ''; if($dark_mode == 1) $set_dark = 'mec-dark-mode'; else $set_dark = ''; do_action('mec_start_skin', $this->id); do_action('mec_masonry_skin_head'); ?>