get_render_path();
// before/after Month
$_1month_before = strtotime('first day of -1 month', strtotime($this->start_date));
$_1month_after = strtotime('first day of +1 month', strtotime($this->start_date));
// Current month time
$current_month_time = strtotime($this->start_date);
// Generate Month
ob_start();
include $render_path;
$month_html = ob_get_clean();
$navigator_html = '';
// Generate Month Navigator
if($this->next_previous_button)
{
// Show previous month 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 strtotime(date('Y-m-t', $_1month_before)) >= time())
)
{
$navigator_html .= '
';
}
$navigator_html .= '';
// Show next month handler if needed
if(!$this->show_only_expired_events or
($this->show_only_expired_events and strtotime(date('Y-m-01', $_1month_after)) <= time())
)
{
$navigator_html .= '';
}
}
// Return the data if called by AJAX
if(isset($this->atts['return_items']) and $this->atts['return_items'])
{
echo json_encode(array(
'month' => $month_html,
'events_side'=>(in_array($this->style, array('clean', 'modern')) ? $this->events_str : ''),
'navigator' => $navigator_html,
'previous_month' => array('label' => $this->main->date_i18n('Y F', $_1month_before), 'id' => date('Ym', $_1month_before), 'year' => date('Y', $_1month_before), 'month' => date('m', $_1month_before)),
'current_month' => array('label' => $this->main->date_i18n('Y F', $current_month_time), 'id' => date('Ym', $current_month_time), 'year' => date('Y', $current_month_time), 'month' => date('m', $current_month_time)),
'next_month' => array('label' => $this->main->date_i18n('Y F', $_1month_after), 'id' => date('Ym', $_1month_after), 'year' => date('Y', $_1month_after), 'month' => date('m', $_1month_after)),
));
exit;
}
$sed_method = $this->sed_method;
if($sed_method === 'new' || is_admin()) $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 = '';
if($this->style == 'classic' || $this->style == 'novel' || $this->style == 'simple' || $this->style == 'admin')
{
$cal_style = 'mec-box-calendar mec-event-calendar-classic mec-event-container-'.$this->style.($this->style === 'admin' ? ' mec-event-container-simple' : '');
$div_start_topsec = $div_end_topsec = $events_side = $div_footer = '';
}
else
{
$cal_style = $this->style == 'modern' ? 'mec-box-calendar' : '';
$div_start_topsec = '';
$div_end_topsec = '
';
$events_side = '';
$div_footer = '';
}
do_action('mec_start_skin', $this->id);
do_action('mec_monthly_skin_head');
?>
sf_status) echo MEC_kses::full($this->sf_search_form()); ?>
next_previous_button): ?>
subscribe_to_calendar(); ?>
display_credit_url(); ?>