-
,
-
0) {
?>
-
-
-
';
if ($recurring == 'yes') {
if (strtotime(current_time('Y-m-d H:i')) < strtotime($start_datetime)) {
?>
-
-
0) {
?>
-
-
';
}
add_action('mep_event_date_only', 'mep_ev_date');
function mep_ev_date()
{
global $event_meta;
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
$start_date = $event_meta['event_start_date'][0];
$start_time = $event_meta['event_start_time'][0];
$end_datetime = $event_meta['event_end_date'][0] . ' ' . $event_meta['event_end_time'][0];
$end_date = $event_meta['event_end_date'][0];
$end_time = $event_meta['event_end_time'][0];
$cn = 1;
$more_date = array($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0]);
$recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no';
$mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no';
if ($recurring == 'yes') {
$event_more_dates = get_post_meta(get_the_id(), 'mep_event_more_date', true);
foreach ($event_more_dates as $md) {
$more_date[] = $md['event_more_start_date'] . ' ' . $md['event_more_start_time'];
}
foreach ($more_date as $ev_date) {
if (strtotime(current_time('Y-m-d H:i:s')) < strtotime($ev_date)) {
if ($mep_show_upcoming_event == 'yes') {
$cnt = 1;
} else {
$cnt = $cn;
}
if ($cn == $cnt) {
?>