'.MEC_kses::element($event->data->thumbnails['thumbnail']).'
';
$events_str .= MEC_kses::element($this->get_label_captions($event));
if($this->display_detailed_time and $this->main->is_multipleday_occurrence($event)) $events_str .= '
';
$events_str .= MEC_kses::element($this->booking_button($event));
$events_str .= '';
}
$events_str .= '
';
}
else
{
echo ''.$this->icons->display('clock-o').' '.MEC_kses::element($this->display_detailed_time($event)).'
';
elseif(trim($start_time)) $events_str .= ''.$this->icons->display('clock-o').' '.esc_html($start_time.(trim($end_time) ? ' - '.$end_time : '')).'
';
$event_color = $this->get_event_color_dot($event);
$events_str .= ''.MEC_kses::element($this->display_link($event).$this->main->get_flags($event).MEC_kses::embed($this->display_custom_data($event)).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); if(has_filter('mec_monthly_virtual_badge')) $events_str .= MEC_kses::full(apply_filters('mec_monthly_virtual_badge', '', $event->data->ID)); $events_str .='
'; if($this->localtime) $events_str .= MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); $events_str .= ''.(isset($location['name']) ? esc_html($location['name']) : '').'
'.MEC_kses::element($this->display_organizers($event)).'
'.MEC_kses::element($this->day_label($time));
foreach($events[$today] as $event)
{
$location_id = $this->main->get_master_location_id($event);
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
$startDate = !empty($event->data->meta['mec_date']['start']['date'] ) ? $event->data->meta['mec_date']['start']['date'] : '';
$endDate = !empty($event->data->meta['mec_date']['end']['date'] ) ? $event->data->meta['mec_date']['end']['date'] : '' ;
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
// MEC Schema
do_action('mec_schema', $event);
$events_str .= '';
$content_style = !empty($event->data->thumbnails['thumblist']) ? 'width: calc(100% - 85px)' : 'width: 100%';
$events_str .= '- '.MEC_kses::full(apply_filters('mec_filter_list_day_value', $list_day, $today, $this)).'
';
$events_str .= '
'.MEC_kses::element($event->data->thumbnails['thumbnail']).'
';
$events_str .= MEC_kses::element($this->get_label_captions($event));
if($this->display_detailed_time and $this->main->is_multipleday_occurrence($event)) $events_str .= '
';
$events_str .= MEC_kses::full($this->booking_button($event));
$events_str .= '';
}
$events_str .= '
';
}
else
{
echo ''.$this->icons->display('clock-o').' '.MEC_kses::element($this->display_detailed_time($event)).'
';
elseif(trim($start_time)) $events_str .= ''.$this->icons->display('clock-o').' '.esc_html($start_time.(trim($end_time) ? ' - '.$end_time : '')).'
';
$event_color = $this->get_event_color_dot($event);
$events_str .= ''.MEC_kses::element($this->display_link($event).$this->main->get_flags($event).MEC_kses::embed($this->display_custom_data($event)).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); if(has_filter('mec_monthly_virtual_badge')) $events_str .= MEC_kses::full(apply_filters('mec_monthly_virtual_badge', '', $event->data->ID)); $events_str .='
'; if($this->localtime) $events_str .= MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); $events_str .= ''.(isset($location['name']) ? esc_html($location['name']) : '').'
'.MEC_kses::element($this->display_organizers($event)).'
'.MEC_kses::element($this->day_label($time));
$events_str .= '';
$events_str .= ' ';
$events_str .= '
';
}
if($running_day == 6)
{
echo '';
echo ''.esc_html__('No Events', 'modern-events-calendar-lite').'
';
$events_str .= '';
echo MEC_kses::full($events_str);
echo '
';
if((($day_counter+1) != $days_in_month) or (($day_counter+1) == $days_in_month and $days_in_this_week == 7))
{
echo '- ';
$events_str = '';
}
$running_day = -1;
$days_in_this_week = 0;
}
$days_in_this_week++; $running_day++; $day_counter++;
}
// finish the rest of the days in the week
if($days_in_this_week > 1 && $days_in_this_week < 8)
{
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
{
$list_day = $x;
$time = strtotime(($month == 12 ? ($year + 1) : $year).'-'.($month == 12 ? 1 : ($month + 1)).'-'.$list_day);
$today = date('Y-m-d', $time);
$day_id = date('Ymd', $time);
$selected_day = (str_replace('-', '', $this->active_day) == $day_id) ? ' mec-selected-day' : '';
// Print events
if(isset($events[$today]) and count($events[$today]))
{
echo '
- '.MEC_kses::full(apply_filters('mec_filter_list_day_value', $list_day, $today, $this)).''; do_action('monthly_box_hook', $events[$today]); echo ' '; $events_str .= '
- '.esc_html($x).' '; } } } ?>
'.MEC_kses::element($this->day_label($time));
foreach($events[$today] as $event)
{
$location_id = $this->main->get_master_location_id($event);
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
$startDate = !empty($event->data->meta['mec_date']['start']['date'] ) ? $event->data->meta['mec_date']['start']['date'] : '';
$endDate = !empty($event->data->meta['mec_date']['end']['date'] ) ? $event->data->meta['mec_date']['end']['date'] : '' ;
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
// MEC Schema
do_action('mec_schema', $event);
$events_str .= '';
$content_style = !empty($event->data->thumbnails['thumblist']) ? 'width: calc(100% - 85px)' : 'width: 100%';
$events_str .= '
'.MEC_kses::element($event->data->thumbnails['thumbnail']).'
';
$events_str .= MEC_kses::element($this->get_label_captions($event));
if($this->display_detailed_time and $this->main->is_multipleday_occurrence($event)) $events_str .= '
';
$events_str .= MEC_kses::full($this->booking_button($event));
$events_str .= '';
}
$events_str .= '
';
}
else
{
echo ''.$this->icons->display('clock-o').' '.MEC_kses::element($this->display_detailed_time($event)).'
';
elseif(trim($start_time)) $events_str .= ''.$this->icons->display('clock-o').' '.esc_html($start_time.(trim($end_time) ? ' - '.$end_time : '')).'
';
$event_color = $this->get_event_color_dot($event);
$events_str .= ''.MEC_kses::element($this->display_link($event).$this->main->get_flags($event).MEC_kses::embed($this->display_custom_data($event)).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); if(has_filter('mec_monthly_virtual_badge')) $events_str .= MEC_kses::full(apply_filters('mec_monthly_virtual_badge', '', $event->data->ID)); $events_str .='
'; if($this->localtime) $events_str .= MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); $events_str .= ''.(isset($location['name']) ? esc_html($location['name']) : '').'
'.MEC_kses::element($this->display_organizers($event)).'