issue fixed

This commit is contained in:
magepeopleteam 2021-10-29 21:14:29 +00:00
parent 92a0417ded
commit d77069e6a5
24 changed files with 226 additions and 324 deletions

View File

@ -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;
}
/********************************/

View File

@ -961,8 +961,8 @@ add_action('wsa_form_bottom_mep_settings_licensing','mep_licensing_page',5);
function mep_licensing_page($form){
?>
<div class='mep-licensing-page'>
<h3>Woocommerce Event Manager Licensing</h3>
<p>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. </p>
<h3>Event Manager For Woocommerce Licensing</h3>
<p>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. </p>
<div class="mep_licensae_info"></div>
<table class='wp-list-table widefat striped posts mep-licensing-table'>

View File

@ -2,84 +2,3 @@
if (!defined('ABSPATH')) {
die;
} // Cannot access pages directly.
add_action( 'admin_menu', 'mep_addon_list_menu',10,99);
function mep_addon_list_menu() {
add_submenu_page('edit.php?post_type=mep_events', __('Get Addon','wbtm-menu'), __('<span style="color:red">Get Addons</span>','mage-eventpress'), 'manage_options', 'mep_all_addon_list', 'mep_addon_list_sec');
}
function mep_addon_list_sec(){
?>
<style type="text/css">
.addon_list_sec .mep_addon_list li img{
max-width: 100%;
width: auto;
}
.addon_list_sec .mep_addon_list li {
border: 1px solid #ddd!important;
display: inline-block!important;
float: left;
margin: 10px!important;
min-height: 405px;
padding: 0px;
position: relative;
text-align: center;
vertical-align: top;
width: 31.2%!important;
box-shadow: 3px 4px 5px #d9e1e7;
background: #fff;
overflow: hidden;
}
.addon_list_sec .mep_addon_list li a {
display: block;
background: #0000b5;
color: #fff;
width: 95%;
margin: 0 auto;
padding: 10px;
text-decoration: none;
font-size: 15px;
position: absolute;
bottom: 0;
left: 0;
right: auto;
}
.addon_list_sec .mep_addon_list li h3 {
margin-top: 10px;
}
.addon_list_sec .mep_addon_list li p {
padding: 0 15px;
font-size: 12px;
}
.addon_list_sec .mep_addon_list li h4 {
background: #e74635;
color: #fff;
font-size: 20px;
padding: 10px;
width: 50px;
position: absolute;
bottom: 40%;
top: auto;
}
</style>
<?php
$json = file_get_contents('http://vaincode.com/update/addon-list.json');
$obj = json_decode($json, true);
if(is_array($obj) && sizeof($obj) > 0){
echo '<div class="addon_list_sec"><ul class="mep_addon_list">';
foreach ($obj as $list) {
echo '<li>';
echo '<img src='.$list['banner'].'>';
echo '<h3>'.$list['name'].'</h3>';
echo '<p>'.$list['excerpt'].'</p>';
echo '<h4>'.$list['price'].'</h4>';
echo '<a href='.$list['url'].' target="_blank">'.$list['btn_txt'].'</a>';
echo '</li>';
}
echo '</ul></div>';
}
}

View File

@ -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(){
?>
<script type="text/javascript">
// WooCommerce Event Manager Ajax URL
// Event Manager For Woocommerce Ajax URL
var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
</script>
<?php

View File

@ -1220,13 +1220,12 @@ function mep_events_repeatable_meta_box_save($post_id)
if (get_post_type($post_id) == 'mep_events') {
// mage_array_strip(
$old = get_post_meta($post_id, 'mep_events_extra_prices', true);
$new = array();
$names = isset($_POST['option_name']) ? mage_array_strip($_POST['option_name']) : [];
$urls = isset($_POST['option_price']) ? mage_array_strip($_POST['option_price']) : [];
$qty = isset($_POST['option_qty']) ? mage_array_strip($_POST['option_qty']) : [];
$qty_type = isset($_POST['option_qty_type']) ? mage_array_strip($_POST['']) : [];
$qty_type = isset($_POST['option_qty_type']) ? mage_array_strip($_POST['option_qty_type']) : [];
$order_id = 0;
$count = count($names);

View File

@ -11,8 +11,8 @@ if (!defined('ABSPATH')) {
function mep_basic_before_cart_add_validation($passed)
{
$wc_product_id = isset($_REQUEST['add-to-cart']) ? strip_tags($_REQUEST['add-to-cart']) : '';
$product_id = isset($_REQUEST['add-to-cart']) ? strip_tags($_REQUEST['add-to-cart']) : '';
$wc_product_id = isset($_REQUEST['add-to-cart']) ? sanitize_text_field($_REQUEST['add-to-cart']) : '';
$product_id = isset($_REQUEST['add-to-cart']) ? sanitize_text_field($_REQUEST['add-to-cart']) : '';
$linked_event_id = get_post_meta($product_id, 'link_mep_event', true) ? get_post_meta($product_id, 'link_mep_event', true) : $product_id;
$product_id = mep_product_exists($linked_event_id) ? $linked_event_id : $product_id;
$event_id = $product_id;
@ -62,7 +62,7 @@ function mep_add_custom_fields_text_to_cart_item($cart_item_data, $product_id, $
/**
* Now Store the datas into Cart Session
*/
$time_slot_text = isset($_REQUEST['time_slot_name']) ? $_REQUEST['time_slot_name'] : '';
$time_slot_text = isset($_REQUEST['time_slot_name']) ? sanitize_text_field($_REQUEST['time_slot_name']) : '';
if (!empty($time_slot_text)) {
$cart_item_data['event_everyday_time_slot'] = $time_slot_text;
}

View File

@ -25,7 +25,6 @@ if (!class_exists('EDD_SL_Plugin_Updater')) {
require_once(dirname(__DIR__) . "/inc/mep_enque.php");
require_once(dirname(__DIR__) . "/inc/mep_user_custom_style.php");
require_once(dirname(__DIR__) . "/inc/mep_tax_meta.php");
// require_once(dirname(__DIR__) . "/inc/mep_addon_list.php");
require_once(dirname(__DIR__) . "/inc/mep_upgrade.php");
require_once(dirname(__DIR__) . "/inc/mep_functions.php");
require_once(dirname(__DIR__) . "/inc/mep_query.php");

View File

@ -5,7 +5,6 @@ if (!defined('ABSPATH')) {
appsero_init_tracker_mage_eventpress();
define('MEP_STORE_URL', 'https://magepeople.staging.wpengine.com/');
// Language Load
add_action('init', 'mep_language_load');
@ -23,30 +22,14 @@ function mepfix_sitemap_exclude_post_type() {
if (!function_exists('mep_get_builder_version')) {
function mep_get_builder_version() {
if (is_plugin_active('woocommerce-event-manager-addon-form-builder/addon-builder.php')) {
$data = get_plugin_data(ABSPATH . "wp-content/plugins/woocommerce-event-manager-addon-form-builder/addon-builder.php", false, false);
return $data['Version'];
} else {
return 0;
}
return '3.8.1';
}
}
if (!function_exists('mep_check_builder_status')) {
function mep_check_builder_status() {
$version = '3.2';
if (is_plugin_active('woocommerce-event-manager-addon-form-builder/addon-builder.php')) {
$data = get_plugin_data(ABSPATH . "wp-content/plugins/woocommerce-event-manager-addon-form-builder/addon-builder.php", false, false);
if (is_plugin_active('woocommerce-event-manager-addon-form-builder/addon-builder.php') && $data['Version'] >= $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;
}
}
}
@ -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();
?>
<style>
.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;
}
</style>
<div class="mep-user-ticket-list">
<table>
<tr>
@ -1373,15 +1342,6 @@ if (!function_exists('mep_ticket_lits_users')) {
<?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
if ($virtual_info) { ?>
<button id='mep_vr_view_btn_<?php echo get_the_id(); ?>' class='mep_view_vr_btn'><?php _e('View Virtual Info', 'mage-eventpress'); ?></button> <?php } ?>
<script>
jQuery(document).ready(function ($) {
jQuery('.mep_virtual_event_info_sec').hide();
// mep_view_vr_btn
$(document).on('click', '#mep_vr_view_btn_<?php echo get_the_id(); ?>', function () {
$('#mep_vr_view_sec_<?php echo get_the_id(); ?>').toggle(1000);
});
});
</script>
</td>
<?php do_action('mep_user_order_list_table_row', get_the_id()); ?>
</tr>
@ -1405,7 +1365,7 @@ if (!function_exists('mep_ticket_lits_users')) {
</div>
<?php
$content = ob_get_clean();
echo $content;
echo wp_kses_post($content);
}
}
@ -1458,7 +1418,7 @@ if (!function_exists('event_single_template_list')) {
$buffer .= "<option value=$num $cc>$desc</option>";
}//end foreach
$buffer .= '</select>';
echo $buffer;
echo wp_kses($buffer,['select' => array('name'=>[]),'option' => array('value'=>[], 'selected'=>[])]);
}
}
@ -2767,16 +2727,35 @@ if (!function_exists('mep_avada_mini_cart_price_fixed')) {
}
if (!function_exists('mage_array_strip')) {
function mage_array_strip($string, $allowed_tags = null) {
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 $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_strip($v, $allowed_tags);
$string[$k] = mage_array_sanitize($v, $allowed_tags);
}
return $string;
}
return strip_tags($string, $allowed_tags);
}
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();
?>
<style>
/* Custom CSS Code From WooCommerce Event Manager Plugin */
/* Custom CSS Code From Event Manager For Woocommerce Plugin */
<?php echo $custom_css; ?>
</style>
<?php
@ -2980,12 +2959,14 @@ function mep_get_ticket_type_price_arr($ticket_type, $event_id) {
if (!function_exists('mep_get_ticket_name')) {
function mep_get_ticket_name($name) {
if (function_exists('mep_sp_not_active_warning')) {
// if (function_exists('mep_sp_not_active_warning')) {
// $ticket = explode('_', $name);
// return $ticket[0];
// }else{
// return $name;
// }
$ticket = explode('_', $name);
return $ticket[0];
}else{
return $name;
}
}
}
@ -3018,9 +2999,6 @@ if (!function_exists('mep_cart_ticket_type')) {
$count = count($names);
$ticket_type_arr = [];
$vald = 0;
if (sizeof($names) > 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' => '<div id="%1$s" class="mep_sidebar mep_widget_sec widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
@ -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')) {
?>
<?php if ($show_multidate == 'yes') { ?>
<span class='mep_more_date_btn mep-tem3-title-sec mp_event_visible_event_time'
data-event-id="<?php echo $event_id; ?>"
data-active-text="<?php echo mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', __('View More Date', 'mage-eventpress')); ?>"
data-hide-text="<?php echo mep_get_option('mep_event_hide_date_list_btn_text', 'label_setting_sec', __('Hide Date Lists', 'mage-eventpress')); ?>"
data-event-id="<?php echo esc_attr($event_id); ?>"
data-active-text="<?php echo esc_attr(mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', __('View More Date', 'mage-eventpress'))); ?>"
data-hide-text="<?php echo esc_attr(mep_get_option('mep_event_hide_date_list_btn_text', 'label_setting_sec', __('Hide Date Lists', 'mage-eventpress'))); ?>"
>
<?php echo mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', __('View More Date', 'mage-eventpress')); //_e('View More Date','mage-eventpress'); ?>
</span>

View File

@ -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 '<div class=event-cart-section-list>';
do_action('mep_add_to_cart_list');
echo '</div>';

View File

@ -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);

View File

@ -42,7 +42,7 @@ $from_email = mep_get_option( 'mep_email_form_email', 'email_setting_sec', '');
<table class="wc_status_table widefat" cellspacing="0" id="status">
<thead>
<tr>
<th colspan="3" data-export-label="WordPress Environment"><h2>WooCommerce Event Manager Environment Status</h2></th>
<th colspan="3" data-export-label="WordPress Environment"><h2>Event Manager For Woocommerce Environment Status</h2></th>
</tr>
</thead>
<tbody>

View File

@ -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);

View File

@ -40,8 +40,8 @@ if (!function_exists('mep_event_google_map')) {
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {
lat: <?php echo $lat; ?>,
lng: <?php echo $lon; ?>
lat: <?php echo esc_attr($lat); ?>,
lng: <?php echo esc_attr($lon); ?>
},
zoom: 17
});
@ -50,8 +50,8 @@ if (!function_exists('mep_event_google_map')) {
draggable: false,
animation: google.maps.Animation.DROP,
position: {
lat: <?php echo $lat; ?>,
lng: <?php echo $lon; ?>
lat: <?php echo esc_attr($lat); ?>,
lng: <?php echo esc_attr($lon); ?>
}
});
marker.addListener('click', toggleBounce);

View File

@ -10,9 +10,9 @@ global $post,$event_meta;
ob_start();
if($event_meta['_price'][0]>0){
if($event_meta['mep_price_label'][0]){ ?>
<h3><?php echo $event_meta['mep_price_label'][0]; ?>: </h3>
<h3><?php echo esc_attr($event_meta['mep_price_label'][0]); ?>: </h3>
<?php }
echo wc_price($event_meta['_price'][0]);
echo wc_price(esc_attr($event_meta['_price'][0]));
}
$content = ob_get_clean();
echo apply_filters('mage_event_single_price', $content,$post->ID);

View File

@ -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;

View File

@ -29,7 +29,7 @@ function mep_event_welcome_page()
<?php
$active_tab = 'welcome';
if (isset($_GET['tab'])) {
$active_tab = $_GET['tab'];
$active_tab = mage_array_strip($_GET['tab']);
} // end if
?>

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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',
]
);

View File

@ -1,7 +1,7 @@
<div id="mep_add_calender_button" class='mep-add-calender'><i class="fa fa-calendar"></i><?php _e(mep_get_label($pid,'mep_calender_btn_text','Add Calendar'),'mage-eventpress'); ?></div>
<ul id="mep_add_calender_links">
<li><a href="https://calendar.google.com/calendar/r/eventedit?text=<?php echo $event->post_title; ?>&dates=<?php echo mep_calender_date($event_start); ?>/<?php echo mep_calender_date($event_end); ?>&details=<?php echo substr(strip_tags($event->post_content),0,1000); ?>&location=<?php echo $location; ?>&sf=true" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Google</a></li>
<li><a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=<?php echo $event->post_title; ?>&st=<?php echo mep_calender_date($event_start); ?>&et=<?php echo mep_calender_date($event_end); ?>&desc=<?php echo substr(strip_tags($event->post_content),0,1000); ?>&in_loc=<?php echo $location; ?>&uid=" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Yahoo</a></li>
<li><a href="https://calendar.google.com/calendar/r/eventedit?text=<?php echo $event->post_title; ?>&dates=<?php echo mep_calender_date($event_start); ?>/<?php echo mep_calender_date($event_end); ?>&details=<?php echo substr(mage_array_strip($event->post_content),0,1000); ?>&location=<?php echo $location; ?>&sf=true" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Google</a></li>
<li><a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=<?php echo $event->post_title; ?>&st=<?php echo mep_calender_date($event_start); ?>&et=<?php echo mep_calender_date($event_end); ?>&desc=<?php echo substr(mage_array_strip($event->post_content),0,1000); ?>&in_loc=<?php echo $location; ?>&uid=" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Yahoo</a></li>
<li><a href ="https://outlook.live.com/owa/?path=/calendar/view/Month&rru=addevent&startdt=<?php echo mep_calender_date($event_start); ?>&enddt=<?php echo mep_calender_date($event_end); ?>&subject=<?php echo $event->post_title; ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Outlook</a></li>
<li><a href="https://webapps.genprod.com/wa/cal/download-ics.php?date_end=<?php echo mep_calender_date($event_end); ?>&date_start=<?php echo mep_calender_date($event_start); ?>&summary=<?php echo $event->post_title; ?>&location=<?php echo $location; ?>&description=<?php echo substr(strip_tags($event->post_content),0,1000); ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender'>Apple</a></li>
<li><a href="https://webapps.genprod.com/wa/cal/download-ics.php?date_end=<?php echo mep_calender_date($event_end); ?>&date_start=<?php echo mep_calender_date($event_start); ?>&summary=<?php echo $event->post_title; ?>&location=<?php echo $location; ?>&description=<?php echo substr(mage_array_strip($event->post_content),0,1000); ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender'>Apple</a></li>
</ul>

View File

@ -1,5 +1,5 @@
<h3 class='ex-sec-title mep_extra_service_title'><?php echo $extra_service_label; ?></h3>
<table id='mep_event_extra_service_table'>
<table id='mep_event_extra_service_table'>
<tr class='mep_extra_service_table_head'>
<td align="left"><?php echo mep_get_option('mep_name_text', 'label_setting_sec', __('Name:', 'mage-eventpress')); ?></td>
<td class="mage_text_center"><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec', __('Quantity:', 'mage-eventpress')); ?></td>
@ -9,10 +9,10 @@
foreach ($mep_events_extra_prices as $field) {
$service_name = array_key_exists('option_name',$field) ? $field['option_name'] : '';
$service_qty = array_key_exists('option_qty',$field) ? $field['option_qty'] : 0;
$service_price = array_key_exists('option_price',$field) ? $field['option_price'] : 0;
$service_qty_type = array_key_exists('option_qty_type',$field) ? $field['option_qty_type'] : 'input';
$service_name = array_key_exists('option_name', $field) ? $field['option_name'] : '';
$service_qty = array_key_exists('option_qty', $field) ? $field['option_qty'] : 0;
$service_price = array_key_exists('option_price', $field) ? $field['option_price'] : 0;
$service_qty_type = array_key_exists('option_qty_type', $field) ? $field['option_qty_type'] : 'input';
@ -21,11 +21,11 @@
$total_sold = (int) mep_extra_service_sold($post_id, $service_name, $event_date);
$ext_left = ($total_extra_service - $total_sold);
$tic_price=mep_get_price_including_tax($post_id, $service_price);
$actual_price=strip_tags(wc_price(mep_get_price_including_tax($post_id, $service_price)));
$data_price=str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
$data_price=str_replace(wc_get_price_thousand_separator(), '', $data_price);
$data_price=str_replace(wc_get_price_decimal_separator(), '.', $data_price);
$tic_price = mep_get_price_including_tax($post_id, $service_price);
$actual_price = mage_array_strip(wc_price(mep_get_price_including_tax($post_id, $service_price)));
$data_price = str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
$data_price = str_replace(wc_get_price_thousand_separator(), '', $data_price);
$data_price = str_replace(wc_get_price_decimal_separator(), '.', $data_price);
?>
<tr>
<td align="Left"><?php echo $service_name; ?>
@ -66,4 +66,4 @@
$count++;
}
?>
</table>
</table>

View File

@ -13,7 +13,7 @@
</span>
<?php
$tic_price = mep_get_price_including_tax($post_id,$ticket_price);
$actual_price = strip_tags(wc_price(mep_get_price_including_tax($post_id,$ticket_price)));
$actual_price = mage_array_strip(wc_price(mep_get_price_including_tax($post_id,$ticket_price)));
$data_price = str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
$data_price = str_replace(wc_get_price_thousand_separator(), '', $data_price);
$data_price = str_replace(wc_get_price_decimal_separator(), '.', $data_price);

View File

@ -1,6 +1,6 @@
<?php
/**
* Plugin Name: Woocommerce Events Manager
* Plugin Name: Event Manager for WooCommerce
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 3.5.3
@ -9,7 +9,7 @@
* Text Domain: mage-eventpress
* Domain Path: /languages/
* WC requires at least: 3.0.9
* WC tested up to: 5.0
* WC tested up to: 5.8
*/
if (!defined('ABSPATH')) {
@ -24,7 +24,7 @@ if (is_plugin_active('woocommerce/woocommerce.php')) {
if (!class_exists('Appsero\Client')) {
require_once __DIR__ . '/lib/appsero/src/Client.php';
}
$client = new Appsero\Client('08cd627c-4ed9-49cf-a9b5-1536ec384a5a', 'WooCommerce Event Manager', __FILE__);
$client = new Appsero\Client('08cd627c-4ed9-49cf-a9b5-1536ec384a5a', 'Event Manager For Woocommerce ', __FILE__);
$client->insights()->init();
}
@ -42,7 +42,7 @@ if (is_plugin_active('woocommerce/woocommerce.php')) {
$class = 'notice notice-error';
printf(
'<div class="error" style="background:red; color:#fff;"><p>%s</p></div>',
__('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');