2018-07-02 05:44:24 -04:00
|
|
|
<?php
|
|
|
|
add_action('mep_event_date','mep_ev_datetime');
|
|
|
|
|
|
|
|
|
|
|
|
function mep_ev_datetime(){
|
|
|
|
global $event_meta;
|
2019-03-06 05:09:54 -05:00
|
|
|
|
|
|
|
if(array_key_exists('mep_event_more_date', $event_meta)){
|
2019-03-06 05:34:55 -05:00
|
|
|
$more_date = unserialize($event_meta['mep_event_more_date'][0]);
|
|
|
|
}else{
|
|
|
|
$more_date = '';
|
|
|
|
}
|
2019-03-06 05:09:54 -05:00
|
|
|
|
2019-02-18 23:30:58 -05:00
|
|
|
|
2018-07-02 05:44:24 -04:00
|
|
|
?>
|
2019-02-18 23:30:58 -05:00
|
|
|
<p><?php mep_get_full_time_and_date($event_meta['mep_event_start_date'][0]); if($more_date){ foreach ($more_date as $md) {
|
|
|
|
echo " - "; mep_get_full_time_and_date($md['event_more_date']);
|
|
|
|
} } else{ echo " - "; } ?> <?php if($more_date){ echo " - "; } mep_get_full_time_and_date($event_meta['mep_event_end_date'][0]); ?></p>
|
2018-07-02 05:44:24 -04:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-09-14 01:20:47 -04:00
|
|
|
|
2018-07-02 05:44:24 -04:00
|
|
|
add_action('mep_event_date_only','mep_ev_date');
|
|
|
|
function mep_ev_date(){
|
|
|
|
global $event_meta;
|
|
|
|
?>
|
2018-11-28 00:19:53 -05:00
|
|
|
<p><?php echo date_i18n('d M Y', strtotime($event_meta['mep_event_start_date'][0])); ?> </p>
|
2018-07-02 05:44:24 -04:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
add_action('mep_event_time_only','mep_ev_time');
|
|
|
|
function mep_ev_time(){
|
|
|
|
global $event_meta;
|
|
|
|
?>
|
2019-01-22 06:02:55 -05:00
|
|
|
<p><?php mep_get_only_time($event_meta['mep_event_start_date'][0]); ?> </p>
|
2018-07-02 05:44:24 -04:00
|
|
|
<?php
|
2019-01-31 06:55:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function mep_ev_time_ticket($event_meta){
|
|
|
|
// global $event_meta;
|
|
|
|
?>
|
|
|
|
<?php mep_get_only_time($event_meta['mep_event_start_date'][0]); ?>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
function mep_ev_date_ticket($event_meta){
|
|
|
|
// global $event_meta;
|
|
|
|
?>
|
|
|
|
<?php echo date_i18n('d M Y', strtotime($event_meta['mep_event_start_date'][0])); ?>
|
|
|
|
<?php
|
2018-11-28 00:19:53 -05:00
|
|
|
}
|