@@ -434,30 +455,19 @@ function mep_event_onepage_list($atts, $content = null)
$show_price_label = mep_get_option('event-price-label', 'general_setting_sec', 'Price Starts from:');
$paged = get_query_var("paged") ? get_query_var("paged") : 1;
- /**
- * The Main Query function mep_event_query is locet in inc/mep_query.php File
- */
- if ($cat > 0) {
- $loop = mep_event_query('cat', $show, $sort, $cat, 0, 'upcoming');
- } elseif ($org > 0) {
- $loop = mep_event_query('org', $show, $sort, 0, $org, 'upcoming');
- } else {
- $loop = mep_event_query('all', $show, $sort, 0, 0, 'upcoming');
- }
+
+
?>
0) {
- $loop = mep_event_query('cat', $show, $sort, $cat, 0, 'upcoming');
- } elseif ($org > 0) {
- $loop = mep_event_query('org', $show, $sort, 0, $org, 'upcoming');
- } else {
- $loop = mep_event_query('all', $show, $sort, 0, 0, 'upcoming');
- }
+ $loop = mep_event_query($show, $sort, $cat, $org, $city, $country, $status);
$loop->the_post();
+
+
$event_meta = get_post_custom(get_the_id());
$author_terms = get_the_terms(get_the_id(), 'mep_org');
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
diff --git a/inc/mep_upgrade.php b/inc/mep_upgrade.php
index bd4923d..07daf5b 100644
--- a/inc/mep_upgrade.php
+++ b/inc/mep_upgrade.php
@@ -182,6 +182,27 @@ function mep_get_all_order_data_and_create_attendee()
+ if (get_option('mep_attendee_checkin_update_01') != 'completed') {
+
+ $args = array(
+ 'post_type' => 'mep_events_attendees',
+ 'posts_per_page' => -1
+ );
+
+ $qr = new WP_Query($args);
+ foreach ($qr->posts as $result) {
+ $post_id = $result->ID;
+ $ea_checkin = get_post_meta($post_id, 'mep_checkin', true) ? get_post_meta($post_id, 'mep_checkin', true) : 'No';
+ if ($ea_checkin == 'No') {
+ $event_id = get_post_meta($post_id, 'ea_event_id', true);
+ update_post_meta($post_id, 'mep_checkin', 'No');
+ }
+ }
+ update_option('mep_attendee_checkin_update_01', 'completed');
+ }
+
+
+
if (get_option('mep_event_multidate_update_2') != 'completed') {
diff --git a/inc/template-prts/event_add_cart.php b/inc/template-prts/event_add_cart.php
index cdaa4ac..768fbe5 100755
--- a/inc/template-prts/event_add_cart.php
+++ b/inc/template-prts/event_add_cart.php
@@ -90,8 +90,8 @@ if (!function_exists('mep_get_event_reg_btn')) {
/**
* If All the seats are booked then it fire the below hooks, The event no seat texts are in the inc/template-parts/event_labels.php file
*/
- do_action('mep_event_no_seat_text');
- do_action('mep_after_no_seat_notice');
+ do_action('mep_event_no_seat_text',$post_id);
+ do_action('mep_after_no_seat_notice',$post_id);
} else {
/**
@@ -144,7 +144,6 @@ if (!function_exists('mep_get_event_reg_btn')) {
add_action('mep_add_to_cart_list', 'mep_get_event_reg_btn_list');
-
if (!function_exists('mep_get_event_reg_btn_list')) {
// Get Event Registration Button
function mep_get_event_reg_btn_list()
@@ -233,8 +232,8 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
/**
* If All the seats are booked then it fire the below hooks, The event no seat texts are in the inc/template-parts/event_labels.php file
*/
- do_action('mep_event_no_seat_text');
- do_action('mep_after_no_seat_notice');
+ do_action('mep_event_no_seat_text',$post_id);
+ do_action('mep_after_no_seat_notice',$post_id);
} else {
/**
* If everything is fine then its go on ....
diff --git a/inc/template-prts/event_list_tax_name_list.php b/inc/template-prts/event_list_tax_name_list.php
index 1a8c152..cd19a2b 100644
--- a/inc/template-prts/event_list_tax_name_list.php
+++ b/inc/template-prts/event_list_tax_name_list.php
@@ -5,20 +5,26 @@ if (!defined('ABSPATH')) {
add_action('mep_event_list_cat_names', 'mep_display_event_cat_name_in_list');
if (!function_exists('mep_display_event_cat_name_in_list')) {
- function mep_display_event_cat_name_in_list()
+ function mep_display_event_cat_name_in_list($cat)
{
ob_start();
?>
0){
$terms = get_terms(array(
+ 'parent' => $cat,
'taxonomy' => 'mep_cat'
- ));
+ )); }else{
+ $terms = get_terms(array(
+ 'taxonomy' => 'mep_cat'
+ ));
+ }
?>
- name; ?>
+ name; ?>
@@ -27,23 +33,32 @@ if (!function_exists('mep_display_event_cat_name_in_list')) {
echo apply_filters('mage_event_category_name_filter_list', $content);
}
}
+
+//
+
+
+
add_action('mep_event_list_org_names', 'mep_display_event_org_name_in_list');
if (!function_exists('mep_display_event_org_name_in_list')) {
- function mep_display_event_org_name_in_list()
+ function mep_display_event_org_name_in_list($org)
{
ob_start();
?>
0){
+ $terms = get_terms(array(
+ 'parent' => $org,
'taxonomy' => 'mep_org'
- )
- );
+ )); }else{
+ $terms = get_terms(array(
+ 'taxonomy' => 'mep_org'
+ ));
+ }
?>
- name; ?>
+ name; ?>
" . mep_get_label($post_id, 'mep_event_ticket_type_text', 'Ticket Type:') . ""; ?>
-