function update
This commit is contained in:
parent
b7fd432839
commit
dbfe501b89
|
@ -7,12 +7,14 @@ add_action('mep_event_ticket_type_loop_list', 'mep_event_ticket_type_loop_list_h
|
||||||
if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
||||||
function mep_event_ticket_type_loop_list_html($post_id)
|
function mep_event_ticket_type_loop_list_html($post_id)
|
||||||
{
|
{
|
||||||
$current_time = apply_filters('mep_ticket_current_time',current_time('Y-m-d H:i'),get_post_meta($post_id, $event_expire_on, true),$post_id);
|
|
||||||
|
|
||||||
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
||||||
$event_order_by = mep_get_option('mep_event_list_order_by', 'general_setting_sec', 'meta_value');
|
$event_order_by = mep_get_option('mep_event_list_order_by', 'general_setting_sec', 'meta_value');
|
||||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
||||||
|
|
||||||
|
$current_time = apply_filters('mep_ticket_current_time',current_time('Y-m-d H:i'),get_post_meta($post_id, $event_expire_on, true),$post_id);
|
||||||
|
|
||||||
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
||||||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
Loading…
Reference in New Issue