From 15720d0ceb2c52f64925fee5812daf934730d0de Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Mon, 1 Nov 2021 07:26:30 +0000 Subject: [PATCH] function update --- inc/mep_enque.php | 8 +- inc/mep_functions.php | 88 +++++++++---------- inc/template-prts/add_calender.php | 2 +- .../elementor/widget/event-add-calender.php | 2 +- 4 files changed, 53 insertions(+), 47 deletions(-) diff --git a/inc/mep_enque.php b/inc/mep_enque.php index 17489e7..61bf97a 100644 --- a/inc/mep_enque.php +++ b/inc/mep_enque.php @@ -111,4 +111,10 @@ function mep_ajax_url(){ var ajaxurl = ""; () section. */ -add_action('wp_head', 'mep_event_rich_text_data'); + if (!function_exists('mep_event_rich_text_data')) { function mep_event_rich_text_data() { global $post; @@ -2791,44 +2795,42 @@ if (!function_exists('mep_event_rich_text_data')) { ?> meta_value; } } - //wp_reset_postdata(); - //ob_get_clean(); return $city_list; } diff --git a/inc/template-prts/add_calender.php b/inc/template-prts/add_calender.php index 90dfb69..dca83c3 100755 --- a/inc/template-prts/add_calender.php +++ b/inc/template-prts/add_calender.php @@ -14,7 +14,7 @@ if (!function_exists('mep_ev_calender')) { * Action Hook mep_before_add_calendar_button & mep_after_add_calendar_button */ do_action('mep_before_add_calendar_button'); - mep_add_to_google_calender_link($event_id); + echo mep_add_to_google_calender_link($event_id); do_action('mep_after_add_calendar_button'); ?> diff --git a/support/elementor/widget/event-add-calender.php b/support/elementor/widget/event-add-calender.php index ad115a6..cf7d047 100644 --- a/support/elementor/widget/event-add-calender.php +++ b/support/elementor/widget/event-add-calender.php @@ -96,7 +96,7 @@ class MEPEventAddCalendarWidget extends Widget_Base {