version 3.8.4 released
This commit is contained in:
parent
a37ab59285
commit
9a982068f7
|
@ -61,7 +61,6 @@ function mep_add_admin_scripts($hook)
|
||||||
wp_enqueue_script('wp-color-picker');
|
wp_enqueue_script('wp-color-picker');
|
||||||
wp_enqueue_script('magepeople-options-framework', plugins_url('js/mage-options-framework.js', __DIR__), array('jquery'));
|
wp_enqueue_script('magepeople-options-framework', plugins_url('js/mage-options-framework.js', __DIR__), array('jquery'));
|
||||||
wp_localize_script('PickpluginsOptionsFramework', 'PickpluginsOptionsFramework_ajax', array('PickpluginsOptionsFramework_ajaxurl' => admin_url('admin-ajax.php')));
|
wp_localize_script('PickpluginsOptionsFramework', 'PickpluginsOptionsFramework_ajax', array('PickpluginsOptionsFramework_ajaxurl' => admin_url('admin-ajax.php')));
|
||||||
// wp_enqueue_script('select2.min', plugins_url('js/select2.min.js', __DIR__), array('jquery'));
|
|
||||||
wp_enqueue_script('codemirror', plugin_dir_url(__DIR__) . 'js/codemirror.min.js', array('jquery'), null, false);
|
wp_enqueue_script('codemirror', plugin_dir_url(__DIR__) . 'js/codemirror.min.js', array('jquery'), null, false);
|
||||||
wp_enqueue_script('form-field-dependency', plugins_url('js/form-field-dependency.js', __DIR__), array('jquery'), null, false);
|
wp_enqueue_script('form-field-dependency', plugins_url('js/form-field-dependency.js', __DIR__), array('jquery'), null, false);
|
||||||
wp_localize_script('jquery', 'mep_ajax', array( 'mep_ajaxurl' => admin_url( 'admin-ajax.php')));
|
wp_localize_script('jquery', 'mep_ajax', array( 'mep_ajaxurl' => admin_url( 'admin-ajax.php')));
|
||||||
|
@ -126,7 +125,7 @@ function mep_event_enqueue_scripts()
|
||||||
wp_enqueue_script('filter_pagination', plugin_dir_url(__DIR__) . 'js/filter_pagination.js', array(), time(), true);
|
wp_enqueue_script('filter_pagination', plugin_dir_url(__DIR__) . 'js/filter_pagination.js', array(), time(), true);
|
||||||
wp_enqueue_script('mp_event_custom_script', plugin_dir_url(__DIR__) . 'js/mp_event_custom_script.js', array(), time(), true);
|
wp_enqueue_script('mp_event_custom_script', plugin_dir_url(__DIR__) . 'js/mp_event_custom_script.js', array(), time(), true);
|
||||||
|
|
||||||
wp_enqueue_script('mep-moment-js',plugin_dir_url( __DIR__ ).'js/moment.js',array(),1,true);
|
wp_enqueue_script('mep-moment-js','https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment-with-locales.min.js',array(),1,true);
|
||||||
wp_enqueue_script('mep-timeline-min', plugin_dir_url(__DIR__) . 'js/timeline.min.js', array('jquery'), 1, true);
|
wp_enqueue_script('mep-timeline-min', plugin_dir_url(__DIR__) . 'js/timeline.min.js', array('jquery'), 1, true);
|
||||||
wp_enqueue_script('mep-event-custom-scripts', plugin_dir_url(__DIR__) . 'js/mkb-scripts.js', array(), time(), true);
|
wp_enqueue_script('mep-event-custom-scripts', plugin_dir_url(__DIR__) . 'js/mkb-scripts.js', array(), time(), true);
|
||||||
wp_localize_script('jquery', 'mep_ajax', array( 'mep_ajaxurl' => admin_url( 'admin-ajax.php')));
|
wp_localize_script('jquery', 'mep_ajax', array( 'mep_ajaxurl' => admin_url( 'admin-ajax.php')));
|
||||||
|
|
|
@ -1501,6 +1501,13 @@ if (!function_exists('mep_get_event_order_metadata')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// add_action( 'wp_head', 'mep_remove_my_event_order_list_from_my_account_page_action' );
|
||||||
|
// function mep_remove_my_event_order_list_from_my_account_page_action() {
|
||||||
|
// remove_action( 'woocommerce_account_dashboard', 'mep_ticket_lits_users' );
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
add_action('woocommerce_account_dashboard', 'mep_ticket_lits_users');
|
add_action('woocommerce_account_dashboard', 'mep_ticket_lits_users');
|
||||||
if (!function_exists('mep_ticket_lits_users')) {
|
if (!function_exists('mep_ticket_lits_users')) {
|
||||||
function mep_ticket_lits_users() {
|
function mep_ticket_lits_users() {
|
||||||
|
@ -2599,9 +2606,11 @@ if (!function_exists('mep_ticket_sold')) {
|
||||||
$sold = 0;
|
$sold = 0;
|
||||||
if (is_array($get_ticket_type_list) && sizeof($get_ticket_type_list) > 0) {
|
if (is_array($get_ticket_type_list) && sizeof($get_ticket_type_list) > 0) {
|
||||||
foreach ($get_ticket_type_list as $ticket_type) {
|
foreach ($get_ticket_type_list as $ticket_type) {
|
||||||
|
if(array_key_exists('option_name_t',$ticket_type)){
|
||||||
$sold = $sold + mep_ticket_type_sold($event_id, mep_remove_apostopie($ticket_type['option_name_t']), $event_start_date);
|
$sold = $sold + mep_ticket_type_sold($event_id, mep_remove_apostopie($ticket_type['option_name_t']), $event_start_date);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($recurring == 'yes') {
|
if ($recurring == 'yes') {
|
||||||
// $mep_event_more_date = get_post_meta($event_id,'mep_event_more_date',true);
|
// $mep_event_more_date = get_post_meta($event_id,'mep_event_more_date',true);
|
||||||
|
@ -2610,12 +2619,14 @@ if (!function_exists('mep_ticket_sold')) {
|
||||||
foreach ($mep_event_more_date as $md) {
|
foreach ($mep_event_more_date as $md) {
|
||||||
if (is_array($get_ticket_type_list) && sizeof($get_ticket_type_list) > 0) {
|
if (is_array($get_ticket_type_list) && sizeof($get_ticket_type_list) > 0) {
|
||||||
foreach ($get_ticket_type_list as $ticket_type) {
|
foreach ($get_ticket_type_list as $ticket_type) {
|
||||||
|
if(array_key_exists('option_name_t',$ticket_type)){
|
||||||
$sold = $sold + mep_ticket_type_sold($event_id, mep_remove_apostopie($ticket_type['option_name_t']), $md['event_more_start_date']);
|
$sold = $sold + mep_ticket_type_sold($event_id, mep_remove_apostopie($ticket_type['option_name_t']), $md['event_more_start_date']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $sold;
|
return $sold;
|
||||||
}
|
}
|
||||||
|
@ -2930,6 +2941,7 @@ if (!function_exists('mep_wc_link_product_on_save')) {
|
||||||
|
|
||||||
add_action('admin_head', 'mep_hide_date_from_order_page');
|
add_action('admin_head', 'mep_hide_date_from_order_page');
|
||||||
if (!function_exists('mep_hide_date_from_order_page')) {
|
if (!function_exists('mep_hide_date_from_order_page')) {
|
||||||
|
|
||||||
function mep_hide_date_from_order_page() {
|
function mep_hide_date_from_order_page() {
|
||||||
$product_id = [];
|
$product_id = [];
|
||||||
$args = array(
|
$args = array(
|
||||||
|
@ -2946,6 +2958,32 @@ function mep_hide_date_from_order_page() {
|
||||||
echo '<style> ' . esc_html($parr) . '{display:none!important}' . ' </style>';
|
echo '<style> ' . esc_html($parr) . '{display:none!important}' . ' </style>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
add_action('init','mep_get_all_hidden_product_id_array');
|
||||||
|
function mep_get_all_hidden_product_id_array() {
|
||||||
|
$product_id = [];
|
||||||
|
$args = array(
|
||||||
|
'post_type' => 'mep_events',
|
||||||
|
'posts_per_page' => -1
|
||||||
|
);
|
||||||
|
$qr = new WP_Query($args);
|
||||||
|
foreach ($qr->posts as $result) {
|
||||||
|
$post_id = $result->ID;
|
||||||
|
$product_id[] = get_post_meta($post_id, 'link_wc_product', true) ? get_post_meta($post_id, 'link_wc_product', true) : '';
|
||||||
|
}
|
||||||
|
$product_id = array_filter($product_id);
|
||||||
|
return $product_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', 'mep_get_all_hidden_product_id_array' );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// add_action('parse_query', 'mep_product_tags_sorting_query');
|
// add_action('parse_query', 'mep_product_tags_sorting_query');
|
||||||
if (!function_exists('mep_product_tags_sorting_query')) {
|
if (!function_exists('mep_product_tags_sorting_query')) {
|
||||||
function mep_product_tags_sorting_query($query) {
|
function mep_product_tags_sorting_query($query) {
|
||||||
|
@ -2972,7 +3010,7 @@ if (!function_exists('mep_product_tags_sorting_query')) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
add_action('wp_head', 'mep_exclude_hidden_product_from_search_engine');
|
add_action('wp_head', 'mep_exclude_hidden_product_from_search_engine');
|
||||||
if (!function_exists('mep_exclude_hidden_product_from_search_engine')) {
|
if (!function_exists('mep_exclude_hidden_product_from_search_engine')) {
|
||||||
|
@ -3612,36 +3650,36 @@ if (!function_exists('mep_cart_display_user_list')) {
|
||||||
foreach ($user_info as $userinf) {
|
foreach ($user_info as $userinf) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<ul>
|
<ul class='mep_cart_user_inforation_details'>
|
||||||
<?php if ($userinf['user_name']) { ?>
|
<?php if ($userinf['user_name']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Name')) . ": ";
|
<li class='mep_cart_user_name'><?php echo esc_attr(mep_get_reg_label($event_id, 'Name')) . ": ";
|
||||||
echo esc_attr($userinf['user_name']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_name']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_email']) { ?>
|
<?php if ($userinf['user_email']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Email')) . ": ";
|
<li class='mep_cart_user_email'><?php echo esc_attr(mep_get_reg_label($event_id, 'Email')) . ": ";
|
||||||
echo esc_attr($userinf['user_email']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_email']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_phone']) { ?>
|
<?php if ($userinf['user_phone']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Phone')) . ": ";
|
<li class='mep_cart_user_phone'><?php echo esc_attr(mep_get_reg_label($event_id, 'Phone')) . ": ";
|
||||||
echo esc_attr($userinf['user_phone']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_phone']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_address']) { ?>
|
<?php if ($userinf['user_address']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Address')) . ": ";
|
<li class='mep_cart_user_address'><?php echo esc_attr(mep_get_reg_label($event_id, 'Address')) . ": ";
|
||||||
echo esc_attr($userinf['user_address']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_address']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_gender']) { ?>
|
<?php if ($userinf['user_gender']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Gender')) . ": ";
|
<li class='mep_cart_user_gender'><?php echo esc_attr(mep_get_reg_label($event_id, 'Gender')) . ": ";
|
||||||
echo esc_attr($userinf['user_gender']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_gender']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_tshirtsize']) { ?>
|
<?php if ($userinf['user_tshirtsize']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'T-Shirt Size')) . ": ";
|
<li class='mep_cart_user_tshirt'><?php echo esc_attr(mep_get_reg_label($event_id, 'T-Shirt Size')) . ": ";
|
||||||
echo esc_attr($userinf['user_tshirtsize']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_tshirtsize']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_company']) { ?>
|
<?php if ($userinf['user_company']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Company')) . ": ";
|
<li class='mep_cart_user_company'><?php echo esc_attr(mep_get_reg_label($event_id, 'Company')) . ": ";
|
||||||
echo esc_attr($userinf['user_company']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_company']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_designation']) { ?>
|
<?php if ($userinf['user_designation']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Designation')) . ": ";
|
<li class='mep_cart_user_designation'><?php echo esc_attr(mep_get_reg_label($event_id, 'Designation')) . ": ";
|
||||||
echo esc_attr($userinf['user_designation']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_designation']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_website']) { ?>
|
<?php if ($userinf['user_website']) { ?>
|
||||||
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Website')) . ": ";
|
<li class='mep_cart_user_website'><?php echo esc_attr(mep_get_reg_label($event_id, 'Website')) . ": ";
|
||||||
echo esc_attr($userinf['user_website']); ?></li> <?php } ?>
|
echo esc_attr($userinf['user_website']); ?></li> <?php } ?>
|
||||||
<?php if ($userinf['user_vegetarian']) { ?>
|
<?php if ($userinf['user_vegetarian']) { ?>
|
||||||
<li>
|
<li class='mep_cart_user_vegitarian'>
|
||||||
<?php
|
<?php
|
||||||
$vegetarian=strtolower($userinf['user_vegetarian'])=='yes'?esc_html__('Yes','mage-eventpress'):esc_html__('No','mage-eventpress');
|
$vegetarian=strtolower($userinf['user_vegetarian'])=='yes'?esc_html__('Yes','mage-eventpress'):esc_html__('No','mage-eventpress');
|
||||||
echo esc_attr(mep_get_reg_label($event_id, 'Vegetarian')) . ": ";
|
echo esc_attr(mep_get_reg_label($event_id, 'Vegetarian')) . ": ";
|
||||||
|
@ -3657,15 +3695,15 @@ if (!function_exists('mep_cart_display_user_list')) {
|
||||||
}
|
}
|
||||||
} ?>
|
} ?>
|
||||||
<?php if ($userinf['user_ticket_type']) { ?>
|
<?php if ($userinf['user_ticket_type']) { ?>
|
||||||
<li><?php esc_html_e('Ticket Type', 'mage-eventpress');
|
<li class='mep_cart_user_ticket_type'><?php esc_html_e('Ticket Type', 'mage-eventpress');
|
||||||
echo ": " . esc_attr($userinf['user_ticket_type']); ?></li> <?php } ?>
|
echo ": " . esc_attr($userinf['user_ticket_type']); ?></li> <?php } ?>
|
||||||
|
|
||||||
<?php if ($recurring == 'everyday' && $time_status == 'no') { ?>
|
<?php if ($recurring == 'everyday' && $time_status == 'no') { ?>
|
||||||
<li><?php
|
<li class='mep_cart_user_date'><?php
|
||||||
esc_html_e(' Date', 'mage-eventpress');
|
esc_html_e(' Date', 'mage-eventpress');
|
||||||
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-text')); ?></li>
|
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-text')); ?></li>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<li><?php
|
<li class='mep_cart_user_date'><?php
|
||||||
esc_html_e(' Date', 'mage-eventpress');
|
esc_html_e(' Date', 'mage-eventpress');
|
||||||
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-time-text')); ?></li>
|
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-time-text')); ?></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -4429,6 +4467,7 @@ if (!function_exists('mep_add_expire_min_in_current_date')) {
|
||||||
function mep_add_expire_min_in_current_date($current_date, $event_date, $event_id) {
|
function mep_add_expire_min_in_current_date($current_date, $event_date, $event_id) {
|
||||||
|
|
||||||
$minutes_to_add = (int)mep_get_option('mep_ticket_expire_time', 'general_setting_sec', 0);
|
$minutes_to_add = (int)mep_get_option('mep_ticket_expire_time', 'general_setting_sec', 0);
|
||||||
|
|
||||||
$time = new DateTime($current_date);
|
$time = new DateTime($current_date);
|
||||||
$time->add(new DateInterval('PT' . $minutes_to_add . 'M'));
|
$time->add(new DateInterval('PT' . $minutes_to_add . 'M'));
|
||||||
$current_date = $time->format('Y-m-d H:i');
|
$current_date = $time->format('Y-m-d H:i');
|
||||||
|
@ -4647,8 +4686,6 @@ if (!function_exists('mep_disable_add_to_cart_if_product_is_in_cart')) {
|
||||||
function mep_disable_add_to_cart_if_product_is_in_cart($is_purchasable, $product) {
|
function mep_disable_add_to_cart_if_product_is_in_cart($is_purchasable, $product) {
|
||||||
|
|
||||||
|
|
||||||
// print_r(WC()->cart->get_cart());
|
|
||||||
|
|
||||||
// Loop through cart items checking if the product is already in cart
|
// Loop through cart items checking if the product is already in cart
|
||||||
if (isset(WC()->cart) && !is_admin() && !empty(WC()->cart->get_cart())) {
|
if (isset(WC()->cart) && !is_admin() && !empty(WC()->cart->get_cart())) {
|
||||||
foreach (WC()->cart->get_cart() as $cart_item) {
|
foreach (WC()->cart->get_cart() as $cart_item) {
|
||||||
|
|
|
@ -57,6 +57,7 @@ function mep_event_query($show, $sort = '', $cat = '', $org = '', $city = '', $c
|
||||||
'compare' => $etype
|
'compare' => $etype
|
||||||
) : '';
|
) : '';
|
||||||
|
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => array('mep_events'),
|
'post_type' => array('mep_events'),
|
||||||
'paged' => $paged,
|
'paged' => $paged,
|
||||||
|
|
|
@ -167,7 +167,7 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
||||||
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<?php do_action('mep_before_add_cart_btn',$post_id); ?>
|
<?php do_action('mep_before_add_cart_btn',$post_id, false); ?>
|
||||||
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
||||||
<input type="hidden" name="mep_event_date_cart" value="<?php //do_action('mep_event_date'); ?>">
|
<input type="hidden" name="mep_event_date_cart" value="<?php //do_action('mep_event_date'); ?>">
|
||||||
<?php if($not_in_the_cart && class_exists('MP_ESP_Frontend') && sizeof($seat_plan) > 0 && $seat_plan_visible ==2 &&$new_registration_system_sp=='on'){ ?>
|
<?php if($not_in_the_cart && class_exists('MP_ESP_Frontend') && sizeof($seat_plan) > 0 && $seat_plan_visible ==2 &&$new_registration_system_sp=='on'){ ?>
|
||||||
|
|
|
@ -7,6 +7,12 @@ 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)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$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_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
||||||
|
|
||||||
|
|
||||||
$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();
|
||||||
|
@ -22,10 +28,13 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
||||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',mep_template_file_path('single/ticket_type_list.php'),$post_id);
|
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',mep_template_file_path('single/ticket_type_list.php'),$post_id);
|
||||||
require($ticket_type_file_path);
|
require($ticket_type_file_path);
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
foreach ($mep_event_ticket_type as $field) {
|
foreach ($mep_event_ticket_type as $field) {
|
||||||
$current_time = apply_filters('mep_ticket_current_time',current_time('Y-m-d H:i'),$event_expire_date,$post_id);
|
// echo get_post_meta($post_id, $event_expire_on, true);
|
||||||
|
echo $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);
|
||||||
|
|
||||||
$ticket_type_name = array_key_exists('option_name_t',$field) ? mep_remove_apostopie($field['option_name_t']) : '';
|
$ticket_type_name = array_key_exists('option_name_t',$field) ? mep_remove_apostopie($field['option_name_t']) : '';
|
||||||
$ticket_type = array_key_exists('option_qty_t_type',$field) ? $field['option_qty_t_type'] : 'input';
|
$ticket_type = array_key_exists('option_qty_t_type',$field) ? $field['option_qty_t_type'] : 'input';
|
||||||
$ticket_type_qty = array_key_exists('option_qty_t',$field) ? $field['option_qty_t'] : 0;
|
$ticket_type_qty = array_key_exists('option_qty_t',$field) ? $field['option_qty_t'] : 0;
|
||||||
|
|
|
@ -51,7 +51,6 @@ if (post_password_required()) {
|
||||||
<div class="mep-related-events-sec">
|
<div class="mep-related-events-sec">
|
||||||
<?php do_action('after-single-events'); ?>
|
<?php do_action('after-single-events'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
do_action('mep_event_single_template_end', get_the_id());
|
do_action('mep_event_single_template_end', get_the_id());
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
||||||
* Plugin URI: http://mage-people.com
|
* Plugin URI: http://mage-people.com
|
||||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||||
* Version: 3.8.3
|
* Version: 3.8.4
|
||||||
* Author: MagePeople Team
|
* Author: MagePeople Team
|
||||||
* Author URI: http://www.mage-people.com/
|
* Author URI: http://www.mage-people.com/
|
||||||
* Text Domain: mage-eventpress
|
* Text Domain: mage-eventpress
|
||||||
|
|
Loading…
Reference in New Issue