main->get_weekday_abbr_labels(); echo '
'.implode('
', $headings).'
'; // Start day of week $week_start = $this->main->get_first_day_of_week(); // Single Event Display Method $sed_method = $this->skin_options['sed_method'] ?? false; $target_url = ($sed_method === 'new') ? 'target="_blank"' : ''; $this->localtime = $this->skin_options['include_local_time'] ?? false; $display_label = $this->skin_options['display_label'] ?? false; $reason_for_cancellation = $this->skin_options['reason_for_cancellation'] ?? false; // days and weeks vars $running_day = date('w', mktime(0, 0, 0, $month, 1, $year)); $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year)); $days_in_previous_month = $this->main->get_days_in_previous_month($month, $year); $days_in_this_week = 1; $day_counter = 0; if($week_start == 1) // Monday { if($running_day != 0) $running_day = $running_day - 1; else $running_day = 6; } elseif($week_start == 6) // Saturday { if($running_day != 6) $running_day = $running_day + 1; else $running_day = 0; } elseif($week_start == 5) // Friday { if($running_day < 4) $running_day = $running_day + 2; elseif($running_day == 5) $running_day = 0; elseif($running_day == 6) $running_day = 1; } ?>
active_day) == $day_id) ? ' mec-selected-day' : ''; $selected_day_date = (str_replace('-', '', $this->active_day) == $day_id) ? ' mec-bg-color' : ''; // Print events if(isset($events[$today]) && count($events[$today])) { echo '
'.apply_filters('mec_filter_list_day_value', $list_day, $today, $this).'
'; foreach($events[$today] as $event) { $start_time = (isset($event->data->time) ? $event->data->time['start'] : ''); $end_time = (isset($event->data->time) ? $event->data->time['end'] : ''); $event_unique = (isset($event->data->time) ? $event->data->ID.$event->data->time['start_timestamp'] : $event->data->ID); // Event Content if(!$this->cache->has($event->data->ID.'_content')) { if(get_post_meta($event->data->ID, '_elementor_edit_mode', true) && class_exists('\Elementor\Plugin')) $event_content = get_the_excerpt($event->data->ID); else $event_content = isset($event->data->content) && trim($event->data->content) != '' ? mb_substr(strip_tags($event->data->content, '