v 3.7.5 released

This commit is contained in:
magepeopleteam 2022-10-05 06:31:39 +00:00
parent f5e86da424
commit 6bf80219b3
6 changed files with 45 additions and 7 deletions

View File

@ -199,6 +199,7 @@ function mep_fw_meta_boxs()
'item_id' => 'mep_day_content',
'name' => __('Content','mage-eventpress')
),
),
),
)
@ -314,5 +315,5 @@ function mep_fw_meta_boxs()
'speakers_meta_boxs' => $email_body_meta_boxs
),
);
new AddMetaBox( $email_body_meta_args );
// new AddMetaBox( $email_body_meta_args );
}

View File

@ -51,6 +51,9 @@ class MP_Event_All_Info_In_One
<li data-target-tabs="#mp_event_rich_text">
<i class="far fa-newspaper"></i><?php esc_html_e('Rich text', 'mage-eventpress'); ?>
</li>
<li data-target-tabs="#mp_event_email_text">
<i class="far fa-envelope-open"></i><?php esc_html_e('Email Text', 'mage-eventpress'); ?>
</li>
<?php do_action('mep_admin_event_details_before_tab_name_rich_text', $post_id); ?>
<?php do_action('mp_event_all_in_tab_menu'); ?>
@ -108,6 +111,7 @@ class MP_Event_All_Info_In_One
</div>
<?php do_action('mep_admin_event_details_after_tab_details_settings', $post_id); ?>
<?php if (get_option('woocommerce_calc_taxes') == 'yes') { ?>
<div class="mp_tab_item" data-tab-item="#mp_event_tax_settings">
<h3><?php echo esc_html($event_label);
@ -115,7 +119,21 @@ class MP_Event_All_Info_In_One
<hr />
<?php $this->mp_event_tax($post_id); ?>
<?php do_action('mep_event_tab_after_tax_settings'); ?>
</div>
<div class="mp_tab_item" data-tab-item="#mp_event_email_text">
<?php
$text= get_post_meta($post_id, 'mep_event_cc_email_text' , true );
wp_editor( htmlspecialchars_decode($text), 'mep_event_cc_email_text', $settings = array('textarea_name'=>'mep_event_cc_email_text', 'editor_height' => 625,) );
?>
<b>Usable Dynamic tags:</b>
<br/> Attendee Name:<b>{name}</b><br/>
Event Name: <b>{event}</b><br/>
Ticket Type: <b>{ticket_type}</b><br/>
Event Date: <b>{event_date}</b><br/>
Start Time: <b>{event_time}</b><br/>
Full DateTime: <b>{event_datetime}</b>
</div>
<?php } ?>
<?php do_action('mp_event_all_in_tab_item', $post_id); ?>
<?php
@ -1400,6 +1418,8 @@ function mep_event_meta_save($post_id)
$mep_custom_event_time_format = isset($_POST['mep_custom_event_time_format']) ? sanitize_text_field($_POST['mep_custom_event_time_format']) : $current_global_custom_time_format;
$mep_time_zone_display = isset($_POST['mep_time_zone_display']) ? sanitize_text_field($_POST['mep_time_zone_display']) : $current_global_timezone_display;
$mep_event_cc_email_text = isset($_POST['mep_event_cc_email_text']) ? sanitize_text_field(htmlentities($_POST['mep_event_cc_email_text'])) : '';
if($mep_reg_status == 'on'){
update_post_meta($post_id, 'mep_event_date_format', $mep_event_date_format);
@ -1411,6 +1431,7 @@ function mep_event_meta_save($post_id)
update_post_meta($post_id, 'mep_event_cc_email_text', $mep_event_cc_email_text);
update_post_meta($post_id, 'mep_show_end_datetime', $mep_show_end_datetime);
update_post_meta($post_id, 'mep_rich_text_status', $mep_rich_text_status);
update_post_meta($post_id, 'mep_available_seat', $mep_available_seat);

View File

@ -4512,8 +4512,12 @@ function mep_get_list_thumbnail_src($event_id,$size='full') {
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) {
// print_r(WC()->cart->get_cart());
// Loop through cart items checking if the product is already in cart
if (!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) {
if ($cart_item['data']->get_id() == $product) {
return false;

View File

@ -5897,6 +5897,12 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
$value = isset( $option['value'] ) ? $option['value'] : "";
$value = !empty($value) ? $value : $default;
$field_id = $id;
// $value = preg_replace('#^<\/p>|<p>&nbsp;$#', '', $value);
// $value = preg_replace('/^[ \t]*[\r\n]+/m', '', $value);
if(!empty($conditions)):
$depends = '';
@ -5906,7 +5912,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
$type = isset($conditions['type']) ? $conditions['type'] : '';
$pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
$modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
$like = isset($conditions['like']) ? $conditions['like'] : '';
$like = isset($conditions['like']) ? $conitions['like'] : '';
$strict = isset($conditions['strict']) ? $conditions['strict'] : '';
$empty = isset($conditions['empty']) ? $conditions['empty'] : '';
$sign = isset($conditions['sign']) ? $conditions['sign'] : '';
@ -5985,11 +5991,10 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?> id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-wp_editor-wrapper
field-wp_editor-wrapper-<?php echo esc_attr($id); ?>">
<?php
wp_editor( html_entity_decode(nl2br($value)), $id, $settings = $editor_settings);
wp_editor( htmlspecialchars_decode($value), $id, $settings = $editor_settings);
?>
<div class="error-mgs"></div>
</div>
<?php
return ob_get_clean();
}

View File

@ -872,4 +872,11 @@ Bug fixed
* Update Release:
Event Based Date Time Format has been added.
Bug fixed
08 Sep 2022*
08 Sep 2022*
= 3.7.5=
* Update Release:
Email Text Blank Space issue fixed
Gurenberg Editor error issue fixed
Bug fixed
05 Oct 2022*

View File

@ -3,7 +3,7 @@
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 3.7.4
* Version: 3.7.5
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress