From d77069e6a5327280fe3c0edf5eb817751a0b2a35 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Fri, 29 Oct 2021 21:14:29 +0000 Subject: [PATCH] issue fixed --- css/style.css | 26 +++- inc/admin_setting_panel.php | 4 +- inc/mep_addon_list.php | 83 +------------ inc/mep_enque.php | 4 +- inc/mep_event_meta.php | 5 +- inc/mep_extra_price.php | 10 +- inc/mep_file_include.php | 1 - inc/mep_functions.php | 155 +++++++++--------------- inc/mep_shortcode.php | 20 +-- inc/mep_upgrade.php | 8 +- inc/status.php | 2 +- inc/template-prts/event_add_cart.php | 40 +++--- inc/template-prts/google_map.php | 8 +- inc/template-prts/price.php | 4 +- inc/template-prts/single-events.php | 20 +-- inc/welcome.php | 2 +- lib/classes/class-menu-page.php | 2 +- lib/classes/class-theme-page.php | 2 +- readme.txt | 4 +- support/elementor/elementor-support.php | 2 +- templates/single/add_calendar.php | 6 +- templates/single/extra_service_list.php | 132 ++++++++++---------- templates/single/ticket_type_list.php | 2 +- woocommerce-event-press.php | 8 +- 24 files changed, 226 insertions(+), 324 deletions(-) diff --git a/css/style.css b/css/style.css index c9aa0f1..c088216 100644 --- a/css/style.css +++ b/css/style.css @@ -1,7 +1,18 @@ .mep-hidden { display: none!important; } - +.mep-vr-vs-content { + background: #fdfbfb; + border: 2px solid #ddd; + padding: 10px; +} +.mep-vr-vs-content h3 { + font-size: 16px; + font-weight: bold; + border-bottom: 1px dashed #ddd; + padding: 0 0 5px 0; + margin: 0 0 10px 0; +} .mep-events-wrapper, .mep_related_product_area { display: block; @@ -33,7 +44,18 @@ ul#mep_add_calender_links a { -webkit-transition: 200ms ease-in-out; transition: 200ms ease-in-out; } - + .mep-vr-vs-content { + background: #fdfbfb; + border: 2px solid #ddd; + padding: 10px; + } + .mep-vr-vs-content h3 { + font-size: 16px; + font-weight: bold; + border-bottom: 1px dashed #ddd; + padding: 0 0 5px 0; + margin: 0 0 10px 0; + } /********************************/ diff --git a/inc/admin_setting_panel.php b/inc/admin_setting_panel.php index 7839bf0..51809f5 100644 --- a/inc/admin_setting_panel.php +++ b/inc/admin_setting_panel.php @@ -961,8 +961,8 @@ add_action('wsa_form_bottom_mep_settings_licensing','mep_licensing_page',5); function mep_licensing_page($form){ ?>
-

Woocommerce Event Manager Licensing

-

Thanks you for using our Woocommerce Event Manager plugin. This plugin is free and no license is required. We have some Additional addon to enhace feature of this plugin functionality. If you have any addon you need to enter a valid license for that plugin below.

+

Event Manager For Woocommerce Licensing

+

Thanks you for using our Event Manager For Woocommerce plugin. This plugin is free and no license is required. We have some Additional addon to enhace feature of this plugin functionality. If you have any addon you need to enter a valid license for that plugin below.

diff --git a/inc/mep_addon_list.php b/inc/mep_addon_list.php index eb7be95..afdfddd 100644 --- a/inc/mep_addon_list.php +++ b/inc/mep_addon_list.php @@ -1,85 +1,4 @@ Get Addons','mage-eventpress'), 'manage_options', 'mep_all_addon_list', 'mep_addon_list_sec'); -} - -function mep_addon_list_sec(){ - -?> - - - 0){ -echo '
    '; -foreach ($obj as $list) { -echo '
  • '; - echo ''; - echo '

    '.$list['name'].'

    '; - echo '

    '.$list['excerpt'].'

    '; - echo '

    '.$list['price'].'

    '; - echo ''.$list['btn_txt'].''; -echo '
  • '; -} -echo '
'; -} -} \ No newline at end of file +} // Cannot access pages directly. \ No newline at end of file diff --git a/inc/mep_enque.php b/inc/mep_enque.php index f3048df..304a661 100644 --- a/inc/mep_enque.php +++ b/inc/mep_enque.php @@ -60,7 +60,7 @@ function mep_add_admin_scripts($hook) } /** - * Woocommerce Event Manager Style & Scripts Hooked up below for the Frontend + * Event Manager For Woocommerce Style & Scripts Hooked up below for the Frontend */ add_action('wp_enqueue_scripts', 'mep_event_enqueue_scripts', 90); function mep_event_enqueue_scripts() @@ -107,7 +107,7 @@ add_action('admin_head','mep_ajax_url',5); function mep_ajax_url(){ ?> = $version) { - return true; - } elseif (is_plugin_active('woocommerce-event-manager-addon-form-builder/addon-builder.php') && $data['Version'] < $version) { - return false; - } else { - return true; - } - } else { - return true; - } + $version = '3.2'; + return true; } } @@ -819,8 +802,8 @@ if (!function_exists('change_extra_service_status')) { } -if (!function_exists('change_wc_event_product_status')) { - function change_wc_event_product_status($order_id, $set_status, $post_status, $qr_status = null) { +if (!function_exists('mep_change_wc_event_product_status')) { + function mep_change_wc_event_product_status($order_id, $set_status, $post_status, $qr_status = null) { add_filter('wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5); $args = array( 'post_type' => array('product'), @@ -862,7 +845,7 @@ if (!function_exists('mep_addendee_trash')) { if ($post_type == 'mep_events') { - change_wc_event_product_status($post_id, 'trash', 'publish', ''); + mep_change_wc_event_product_status($post_id, 'trash', 'publish', ''); } } } @@ -880,7 +863,7 @@ if (!function_exists('mep_addendee_untrash')) { } if ($post_type == 'mep_events') { - change_wc_event_product_status($post_id, 'publish', 'trash', ''); + mep_change_wc_event_product_status($post_id, 'publish', 'trash', ''); } } @@ -973,7 +956,7 @@ if (!function_exists('mep_filter_post_type_by_taxonomy')) { $post_type = 'mep_events'; // change to your post type $taxonomy = 'mep_cat'; // change to your taxonomy if ($typenow == $post_type) { - $selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : ''; + $selected = isset($_GET[$taxonomy]) ? mage_array_strip($_GET[$taxonomy]) : ''; $info_taxonomy = get_taxonomy($taxonomy); wp_dropdown_categories(array( 'show_option_all' => __("Show All {$info_taxonomy->label}"), @@ -1013,17 +996,17 @@ if (!function_exists('mep_attendee_filter_query')) { $post_type = 'mep_events_attendees'; $q_vars = &$query->query_vars; - if ($pagenow == 'edit.php' && isset($_GET['post_type']) && $_GET['post_type'] == $post_type && isset($_GET['meta_value']) && $_GET['meta_value'] != 0) { + if ($pagenow == 'edit.php' && isset($_GET['post_type']) && mage_array_strip($_GET['post_type']) == $post_type && isset($_GET['meta_value']) && mage_array_strip($_GET['meta_value']) != 0) { $q_vars['meta_key'] = 'ea_event_id'; - $q_vars['meta_value'] = $_GET['meta_value']; + $q_vars['meta_value'] = mage_array_strip($_GET['meta_value']); - } elseif ($pagenow == 'edit.php' && isset($_GET['post_type']) && $_GET['post_type'] == $post_type && isset($_GET['event_id']) && $_GET['event_id'] != 0 && !isset($_GET['action'])) { + } elseif ($pagenow == 'edit.php' && isset($_GET['post_type']) && mage_array_strip($_GET['post_type']) == $post_type && isset($_GET['event_id']) && mage_array_strip($_GET['event_id']) != 0 && !isset($_GET['action'])) { - $event_date = date('Y-m-d', strtotime($_GET['ea_event_date'])); + $event_date = date('Y-m-d', strtotime(mage_array_strip($_GET['ea_event_date']))); $meta_query = array([ 'key' => 'ea_event_id', - 'value' => $_GET['event_id'], + 'value' => mage_array_strip($_GET['event_id']), 'compare' => '=' ], [ 'key' => 'ea_event_date', @@ -1321,20 +1304,6 @@ if (!function_exists('mep_ticket_lits_users')) { function mep_ticket_lits_users() { ob_start(); ?> -
@@ -1373,15 +1342,6 @@ if (!function_exists('mep_ticket_lits_users')) { - @@ -1405,7 +1365,7 @@ if (!function_exists('mep_ticket_lits_users')) { $desc"; }//end foreach $buffer .= ''; - echo $buffer; + echo wp_kses($buffer,['select' => array('name'=>[]),'option' => array('value'=>[], 'selected'=>[])]); } } @@ -2767,17 +2727,36 @@ if (!function_exists('mep_avada_mini_cart_price_fixed')) { } if (!function_exists('mage_array_strip')) { - function mage_array_strip($string, $allowed_tags = null) { - if (is_array($string)) { - foreach ($string as $k => $v) { - $string[$k] = mage_array_strip($v, $allowed_tags); + function mage_array_strip($array_or_string) { + if (is_string($array_or_string)) { + $array_or_string = sanitize_text_field($array_or_string); + } elseif (is_array($array_or_string)) { + foreach ($array_or_string as $key => &$value) { + if (is_array($value)) { + $value = mage_array_strip($value); + } else { + $value = sanitize_text_field($value); + } } - return $string; } - return strip_tags($string, $allowed_tags); + return $array_or_string; } } + +if (!function_exists('mage_array_sanitize')) { +function mage_array_sanitize($string, $allowed_tags = null) { + if (is_array($string)) { + foreach ($string as $k => $v) { + $string[$k] = mage_array_sanitize($v, $allowed_tags); + } + return $string; + } + return sanitize_text_field($string, $allowed_tags); +} +} + + /** * The Giant SEO Plugin Yoast PRO doing some weird thing and that is its auto create a 301 redirect url when delete a post its causing our event some issue Thats why i disable those part for our event post type with the below filter hoook which is provide by Yoast. */ @@ -2945,7 +2924,7 @@ if (!function_exists('mep_apply_custom_css')) { ob_start(); ?> 0) { for ($i = 0; $i < $count; $i++) { @@ -3923,9 +3901,9 @@ function mep_get_event_add_cart_sec($post_id) { if (!function_exists('mep_default_sidebar_reg')) { function mep_default_sidebar_reg() { register_sidebar(array( - 'name' => __('Woocommerce Event Manager Sidebar', 'mage-eventpress'), + 'name' => __('Event Manager For Woocommerce Sidebar', 'mage-eventpress'), 'id' => 'mep_default_sidebar', - 'description' => __('This is the Default sidebar of the Woocommerce Event manager template.', 'mage-eventpress'), + 'description' => __('This is the Default sidebar of the Event manager for Woocommerce template.', 'mage-eventpress'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', @@ -4162,31 +4140,16 @@ function mep_get_list_thumbnail_src($event_id,$size='full') { if ($thumbnail_id > 0) { $thumbnail = wp_get_attachment_image_src($thumbnail_id, $size); - echo $thumbnail[0]; + // echo $thumbnail[0]; + echo is_array($thumbnail) && sizeof($thumbnail) > 0 ? $thumbnail[0] : ''; } else { $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($event_id), $size); - echo $thumbnail[0]; + echo is_array($thumbnail) && sizeof($thumbnail) > 0 ? $thumbnail[0] : ''; } } } -// function mep_import_elementor_template($filepath) { -// $fileContent = file_get_contents($filepath); -// $fileJson = json_decode($fileContent, true); -// $result = \Elementor\Plugin::instance()->templates_manager->import_template([ -// 'fileData' => base64_encode($fileContent), -// 'fileName' => 'test.json', -// ] -// ); -// if (empty($result) || empty($result[0])) { -// return; -// } -// update_post_meta($result[0]['template_id'], '_elementor_location', 'myCustomLocation'); -// update_post_meta($result[0]['template_id'], '_elementor_conditions', ['include/general']); -// } - - add_filter('mep_check_product_into_cart', 'mep_disable_add_to_cart_if_product_is_in_cart', 10, 2); 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) { @@ -4241,9 +4204,9 @@ if (!function_exists('mep_event_recurring_date_list_in_event_list_loop')) { ?> diff --git a/inc/mep_shortcode.php b/inc/mep_shortcode.php index 9eff57d..62fca68 100644 --- a/inc/mep_shortcode.php +++ b/inc/mep_shortcode.php @@ -522,16 +522,16 @@ function mep_event_onepage_list($atts, $content = null) do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style,$width); $currency_pos = get_option('woocommerce_currency_pos'); - $mep_full_name = strip_tags($event_meta['mep_full_name'][0]); - $mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]); - $mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]); - $mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]); - $mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]); - $mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]); - $mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]); - $mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]); - $mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]); - $mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]); + $mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]); + $mep_reg_email = mage_array_strip($event_meta['mep_reg_email'][0]); + $mep_reg_phone = mage_array_strip($event_meta['mep_reg_phone'][0]); + $mep_reg_address = mage_array_strip($event_meta['mep_reg_address'][0]); + $mep_reg_designation = mage_array_strip($event_meta['mep_reg_designation'][0]); + $mep_reg_website = mage_array_strip($event_meta['mep_reg_website'][0]); + $mep_reg_veg = mage_array_strip($event_meta['mep_reg_veg'][0]); + $mep_reg_company = mage_array_strip($event_meta['mep_reg_company'][0]); + $mep_reg_gender = mage_array_strip($event_meta['mep_reg_gender'][0]); + $mep_reg_tshirtsize = mage_array_strip($event_meta['mep_reg_tshirtsize'][0]); echo '
'; do_action('mep_add_to_cart_list'); echo '
'; diff --git a/inc/mep_upgrade.php b/inc/mep_upgrade.php index a0cc6c2..bcd8f71 100644 --- a/inc/mep_upgrade.php +++ b/inc/mep_upgrade.php @@ -251,10 +251,10 @@ function mep_get_all_order_data_and_create_attendee() foreach ($more_date as $_multi_date) { $start_date = date('Y-m-d', strtotime($_multi_date['event_more_date'])); $start_time = date('H:i A', strtotime($_multi_date['event_more_date'])); - $multi_dates[$count]['event_more_start_date'] = stripslashes(strip_tags($start_date)); - $multi_dates[$count]['event_more_start_time'] = stripslashes(strip_tags($start_time)); - $multi_dates[$count]['event_more_end_date'] = stripslashes(strip_tags('')); - $multi_dates[$count]['event_more_end_time'] = stripslashes(strip_tags('')); + $multi_dates[$count]['event_more_start_date'] = stripslashes(mage_array_strip($start_date)); + $multi_dates[$count]['event_more_start_time'] = stripslashes(mage_array_strip($start_time)); + $multi_dates[$count]['event_more_end_date'] = stripslashes(mage_array_strip('')); + $multi_dates[$count]['event_more_end_time'] = stripslashes(mage_array_strip('')); $count++; } update_post_meta($post_id, 'mep_event_more_date', $multi_dates); diff --git a/inc/status.php b/inc/status.php index de44dfe..4f3b399 100644 --- a/inc/status.php +++ b/inc/status.php @@ -42,7 +42,7 @@ $from_email = mep_get_option( 'mep_email_form_email', 'email_setting_sec', '');

- + diff --git a/inc/template-prts/event_add_cart.php b/inc/template-prts/event_add_cart.php index f3ddd06..a804584 100755 --- a/inc/template-prts/event_add_cart.php +++ b/inc/template-prts/event_add_cart.php @@ -27,16 +27,16 @@ if (!function_exists('mep_get_event_reg_btn')) { $event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old; $event_expire_date = $event_meta[$event_expire_on][0]; // $event_sqi = array_key_exists('mep_sqi',$event_meta) ? $event_meta['mep_sqi'][0] : ''; - $mep_full_name = strip_tags($event_meta['mep_full_name'][0]); - $mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]); - $mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]); - $mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]); - $mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]); - $mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]); - $mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]); - $mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]); - $mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]); - $mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]); + $mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]); + $mep_reg_email = mage_array_strip($event_meta['mep_reg_email'][0]); + $mep_reg_phone = mage_array_strip($event_meta['mep_reg_phone'][0]); + $mep_reg_address = mage_array_strip($event_meta['mep_reg_address'][0]); + $mep_reg_designation = mage_array_strip($event_meta['mep_reg_designation'][0]); + $mep_reg_website = mage_array_strip($event_meta['mep_reg_website'][0]); + $mep_reg_veg = mage_array_strip($event_meta['mep_reg_veg'][0]); + $mep_reg_company = mage_array_strip($event_meta['mep_reg_company'][0]); + $mep_reg_gender = mage_array_strip($event_meta['mep_reg_gender'][0]); + $mep_reg_tshirtsize = mage_array_strip($event_meta['mep_reg_tshirtsize'][0]); $time = strtotime($event_expire_date); $newformat = date('Y-m-d H:i:s', $time); $datetime1 = new DateTime(); @@ -212,16 +212,16 @@ if (!function_exists('mep_get_event_reg_btn_list')) { $event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old; $event_expire_date = $event_meta[$event_expire_on][0]; // $event_sqi = $event_meta['mep_sqi'][0]; - $mep_full_name = strip_tags($event_meta['mep_full_name'][0]); - $mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]); - $mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]); - $mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]); - $mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]); - $mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]); - $mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]); - $mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]); - $mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]); - $mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]); + $mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]); + $mep_reg_email = mage_array_strip($event_meta['mep_reg_email'][0]); + $mep_reg_phone = mage_array_strip($event_meta['mep_reg_phone'][0]); + $mep_reg_address = mage_array_strip($event_meta['mep_reg_address'][0]); + $mep_reg_designation = mage_array_strip($event_meta['mep_reg_designation'][0]); + $mep_reg_website = mage_array_strip($event_meta['mep_reg_website'][0]); + $mep_reg_veg = mage_array_strip($event_meta['mep_reg_veg'][0]); + $mep_reg_company = mage_array_strip($event_meta['mep_reg_company'][0]); + $mep_reg_gender = mage_array_strip($event_meta['mep_reg_gender'][0]); + $mep_reg_tshirtsize = mage_array_strip($event_meta['mep_reg_tshirtsize'][0]); // $simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0; // $total_book = ($total_book + $simple_rsv); // $seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book); diff --git a/inc/template-prts/google_map.php b/inc/template-prts/google_map.php index 46e1314..b05401c 100755 --- a/inc/template-prts/google_map.php +++ b/inc/template-prts/google_map.php @@ -40,8 +40,8 @@ if (!function_exists('mep_event_google_map')) { function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: { - lat: , - lng: + lat: , + lng: }, zoom: 17 }); @@ -50,8 +50,8 @@ if (!function_exists('mep_event_google_map')) { draggable: false, animation: google.maps.Animation.DROP, position: { - lat: , - lng: + lat: , + lng: } }); marker.addListener('click', toggleBounce); diff --git a/inc/template-prts/price.php b/inc/template-prts/price.php index e3549ca..d8dff2e 100755 --- a/inc/template-prts/price.php +++ b/inc/template-prts/price.php @@ -10,9 +10,9 @@ global $post,$event_meta; ob_start(); if($event_meta['_price'][0]>0){ if($event_meta['mep_price_label'][0]){ ?> -

:

+

:

ID); diff --git a/inc/template-prts/single-events.php b/inc/template-prts/single-events.php index a74c99d..f067aac 100644 --- a/inc/template-prts/single-events.php +++ b/inc/template-prts/single-events.php @@ -11,16 +11,16 @@ if (post_password_required()) { $author_terms = get_the_terms(get_the_id(), 'mep_org'); $book_count = get_post_meta(get_the_id(), 'total_booking', true); $user_api = mep_get_option('google-map-api', 'general_setting_sec', ''); - $mep_full_name = strip_tags($event_meta['mep_full_name'][0]); - $mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]); - $mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]); - $mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]); - $mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]); - $mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]); - $mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]); - $mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]); - $mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]); - $mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]); + $mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]); + $mep_reg_email = mage_array_strip($event_meta['mep_reg_email'][0]); + $mep_reg_phone = mage_array_strip($event_meta['mep_reg_phone'][0]); + $mep_reg_address = mage_array_strip($event_meta['mep_reg_address'][0]); + $mep_reg_designation = mage_array_strip($event_meta['mep_reg_designation'][0]); + $mep_reg_website = mage_array_strip($event_meta['mep_reg_website'][0]); + $mep_reg_veg = mage_array_strip($event_meta['mep_reg_veg'][0]); + $mep_reg_company = mage_array_strip($event_meta['mep_reg_company'][0]); + $mep_reg_gender = mage_array_strip($event_meta['mep_reg_gender'][0]); + $mep_reg_tshirtsize = mage_array_strip($event_meta['mep_reg_tshirtsize'][0]); $global_template = mep_get_option('mep_global_single_template', 'general_setting_sec', 'default-theme.php'); $current_template = $event_meta['mep_event_template'][0]; $_current_template = $current_template ? $current_template : $global_template; diff --git a/inc/welcome.php b/inc/welcome.php index 7bf7710..ffbf2fa 100644 --- a/inc/welcome.php +++ b/inc/welcome.php @@ -29,7 +29,7 @@ function mep_event_welcome_page() diff --git a/lib/classes/class-menu-page.php b/lib/classes/class-menu-page.php index a9b6032..fd040e8 100755 --- a/lib/classes/class-menu-page.php +++ b/lib/classes/class-menu-page.php @@ -510,7 +510,7 @@ if( ! class_exists( 'AddMenuPage' ) ) { public function get_current_page(){ - $current_page = isset($_GET['page'])? $_GET['page'] : ''; + $current_page = isset($_GET['page'])? mage_array_strip($_GET['page']) : ''; $pages = array(); foreach ($this->get_pages() as $panelsIndex=>$panels): diff --git a/lib/classes/class-theme-page.php b/lib/classes/class-theme-page.php index 63c5620..973bae3 100755 --- a/lib/classes/class-theme-page.php +++ b/lib/classes/class-theme-page.php @@ -460,7 +460,7 @@ if( ! class_exists( 'AddThemePage' ) ) { public function get_current_page(){ - $current_page = isset($_GET['page'])? $_GET['page'] : ''; + $current_page = isset($_GET['page'])? mage_array_strip($_GET['page']) : ''; $pages = array(); foreach ($this->get_pages() as $panelsIndex=>$panels): diff --git a/readme.txt b/readme.txt index b8ebf4d..256fa13 100644 --- a/readme.txt +++ b/readme.txt @@ -4,9 +4,9 @@ Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Requires at least: 5.3 Stable tag: 3.5.3 Version: 2.1.3 -Tested up to: 5.8 +Tested up to: 5.8.1 WC requires at least: 3.0 -WC tested up to: 5.0 +WC tested up to: 5.8 Requires PHP: 7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/support/elementor/elementor-support.php b/support/elementor/elementor-support.php index 976a69d..4d695fb 100755 --- a/support/elementor/elementor-support.php +++ b/support/elementor/elementor-support.php @@ -23,7 +23,7 @@ class MEPPluginElementor { $elements_manager->add_category( 'mep-elementor-support', [ - 'title' => __( 'WooCommerce Event Manager', 'mage-eventpress'), + 'title' => __( 'Event Manager For Woocommerce ', 'mage-eventpress'), 'icon' => 'fa fa-plug', ] ); diff --git a/templates/single/add_calendar.php b/templates/single/add_calendar.php index 2a10246..1520bf2 100644 --- a/templates/single/add_calendar.php +++ b/templates/single/add_calendar.php @@ -1,7 +1,7 @@
\ No newline at end of file diff --git a/templates/single/extra_service_list.php b/templates/single/extra_service_list.php index b0d5e51..8daa5fb 100644 --- a/templates/single/extra_service_list.php +++ b/templates/single/extra_service_list.php @@ -1,69 +1,69 @@

-

WooCommerce Event Manager Environment Status

Event Manager For Woocommerce Environment Status

- - - - - +
+ + + + + + + + + - - - - - -
+
+ +
+ +
-
-
- -
- -
- 0) { - if ($qty_type == 'dropdown') { ?> - - -
- - - -
- -
0) { ?> - - - + if ($ext_left > 0) { + if ($qty_type == 'dropdown') { ?> +
\ No newline at end of file + + +
+ + + +
+ + + 0) { ?> + + + + + + + + \ No newline at end of file diff --git a/templates/single/ticket_type_list.php b/templates/single/ticket_type_list.php index bdcd24c..493b94d 100644 --- a/templates/single/ticket_type_list.php +++ b/templates/single/ticket_type_list.php @@ -13,7 +13,7 @@ insights()->init(); } @@ -42,7 +42,7 @@ if (is_plugin_active('woocommerce/woocommerce.php')) { $class = 'notice notice-error'; printf( '

%s

', - __('You Must Install WooCommerce Plugin before activating WooCommerce Event Manager, Becuase It is dependent on Woocommerce Plugin') + __('You Must Install WooCommerce Plugin before activating Event Manager For Woocommerce , Becuase It is dependent on Woocommerce Plugin') ); } add_action('admin_notices', 'mep_admin_notice_wc_not_active');