get_render_path(); // before/after Month $_1year_before = strtotime('first day of January '.(date('Y', strtotime($this->start_date))-1)); $_1year_after = strtotime('first day of January '.(date('Y', strtotime($this->start_date))+1)); // Current month time $current_year_time = strtotime($this->start_date); // Generate Month ob_start(); include $render_path; $year_html = ob_get_clean(); $navigator_html = ''; // Generate Month Navigator if($this->next_previous_button) { // Show previous year handler if showing past events allowed if(!isset($this->atts['show_past_events']) or (isset($this->atts['show_past_events']) and $this->atts['show_past_events']) or (isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and date('Y', $_1year_before) >= current_time('Y')) ) { $navigator_html .= '
'.esc_html($this->main->date_i18n('Y', $_1year_before)).'
'; } $navigator_html .= '

'.esc_html($this->main->date_i18n('Y', $current_year_time)).'

'; // Show next month handler if needed if(!$this->show_only_expired_events or ($this->show_only_expired_events and strtotime(date('Y-01-01', $_1year_after)) <= time()) ) { $navigator_html .= '
'.esc_html($this->main->date_i18n('Y', $_1year_after)).'
'; } } // Return the data if called by AJAX if(isset($this->atts['return_items']) and $this->atts['return_items']) { echo json_encode(array( 'year' => $year_html, 'navigator' => $navigator_html, 'previous_year' => array('label' => $this->main->date_i18n('Y', $_1year_before), 'id' => date('Y', $_1year_before), 'year' => date('Y', $_1year_before), 'month' => date('m', $_1year_before)), 'current_year' => array('label' => $this->main->date_i18n('Y', $current_year_time), 'id' => date('Y', $current_year_time), 'year' => date('Y', $current_year_time), 'month' => date('m', $current_year_time)), 'next_year' => array('label' => $this->main->date_i18n('Y', $_1year_after), 'id' => date('Y', $_1year_after), 'year' => date('Y', $_1year_after), 'month' => date('m', $_1year_after)), )); exit; } $sed_method = $this->sed_method; if($sed_method == 'new') $sed_method = '0'; // 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_yearly_skin_head'); ?>
sf_status) echo MEC_kses::full($this->sf_search_form()); ?>
next_previous_button): ?>

main->date_i18n('Y', $current_year_time)); ?>

subscribe_to_calendar(); ?> display_credit_url(); ?>