Version Description
- Fixed: Issue in saving settings
- Fixed: Issue in disable google font
- Fixed: Issue in frontend event submission of custom days event
Download this release
Release Info
Developer | webnus |
Plugin | Modern Events Calendar Lite |
Version | 3.5.1 |
Comparing to | |
See all releases |
Code changes from version 3.5.0 to 3.5.1
- app/features/fes.php +26 -8
- app/features/mec/gateways.php +9 -7
- app/features/mec/messages.php +1 -1
- app/features/mec/notifications.php +3 -2
- app/features/mec/regform.php +6 -4
- app/features/mec/settings.php +4 -4
- app/features/mec/styles.php +6 -4
- app/features/mec/styling.php +10 -13
- app/libraries/factory.php +3 -3
- app/libraries/main.php +3 -4
- changelog.txt +6 -1
- modern-events-calendar-lite.php +2 -2
- readme.txt +7 -2
app/features/fes.php
CHANGED
@@ -671,20 +671,38 @@ class MEC_feature_fes extends MEC_base
|
|
671 |
$week = '*';
|
672 |
$weekday = '*';
|
673 |
}
|
674 |
-
|
675 |
// "In Days" and "Not In Days"
|
676 |
-
$in_days = '';
|
677 |
-
$not_in_days = '';
|
678 |
-
|
679 |
$in_days_arr = (isset($mec['in_days']) and is_array($mec['in_days']) and count($mec['in_days'])) ? array_unique($mec['in_days']) : array();
|
680 |
$not_in_days_arr = (isset($mec['not_in_days']) and is_array($mec['not_in_days']) and count($mec['not_in_days'])) ? array_unique($mec['not_in_days']) : array();
|
681 |
-
|
682 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
if(count($not_in_days_arr)) foreach($not_in_days_arr as $key=>$not_in_day_arr) if(is_numeric($key)) $not_in_days .= $not_in_day_arr.',';
|
684 |
-
|
685 |
$in_days = trim($in_days, ', ');
|
686 |
$not_in_days = trim($not_in_days, ', ');
|
687 |
-
|
688 |
update_post_meta($post_id, 'mec_in_days', $in_days);
|
689 |
update_post_meta($post_id, 'mec_not_in_days', $not_in_days);
|
690 |
|
671 |
$week = '*';
|
672 |
$weekday = '*';
|
673 |
}
|
674 |
+
|
675 |
// "In Days" and "Not In Days"
|
|
|
|
|
|
|
676 |
$in_days_arr = (isset($mec['in_days']) and is_array($mec['in_days']) and count($mec['in_days'])) ? array_unique($mec['in_days']) : array();
|
677 |
$not_in_days_arr = (isset($mec['not_in_days']) and is_array($mec['not_in_days']) and count($mec['not_in_days'])) ? array_unique($mec['not_in_days']) : array();
|
678 |
+
|
679 |
+
// Clear MEC Dates Table
|
680 |
+
$this->db->q("DELETE FROM `#__mec_dates` WHERE `post_id`='$post_id'");
|
681 |
+
|
682 |
+
$in_days = '';
|
683 |
+
if(count($in_days_arr))
|
684 |
+
{
|
685 |
+
foreach($in_days_arr as $key=>$in_day_arr)
|
686 |
+
{
|
687 |
+
if(!is_numeric($key)) continue;
|
688 |
+
|
689 |
+
$in_days .= $in_day_arr.',';
|
690 |
+
|
691 |
+
$ex = explode(':', $in_day_arr);
|
692 |
+
|
693 |
+
$in_day_start = $ex[0];
|
694 |
+
$in_day_end = $ex[1];
|
695 |
+
|
696 |
+
$this->db->q("INSERT INTO `#__mec_dates` (`post_id`,`dstart`,`dend`,`type`) VALUES ('$post_id','$in_day_start','$in_day_end','include')");
|
697 |
+
}
|
698 |
+
}
|
699 |
+
|
700 |
+
$not_in_days = '';
|
701 |
if(count($not_in_days_arr)) foreach($not_in_days_arr as $key=>$not_in_day_arr) if(is_numeric($key)) $not_in_days .= $not_in_day_arr.',';
|
702 |
+
|
703 |
$in_days = trim($in_days, ', ');
|
704 |
$not_in_days = trim($not_in_days, ', ');
|
705 |
+
|
706 |
update_post_meta($post_id, 'mec_in_days', $in_days);
|
707 |
update_post_meta($post_id, 'mec_not_in_days', $not_in_days);
|
708 |
|
app/features/mec/gateways.php
CHANGED
@@ -8,7 +8,7 @@ $gateways = $this->main->get_gateways();
|
|
8 |
<div class="wns-be-container">
|
9 |
|
10 |
<div id="wns-be-infobar">
|
11 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
12 |
</div>
|
13 |
|
14 |
<div class="wns-be-sidebar">
|
@@ -117,7 +117,7 @@ $gateways = $this->main->get_gateways();
|
|
117 |
</div>
|
118 |
|
119 |
<div id="wns-be-footer">
|
120 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
121 |
</div>
|
122 |
|
123 |
</div>
|
@@ -125,11 +125,13 @@ $gateways = $this->main->get_gateways();
|
|
125 |
<script type="text/javascript">
|
126 |
jQuery(document).ready(function()
|
127 |
{
|
128 |
-
jQuery(".dpr-save-btn").on('click', function(event)
|
129 |
-
|
|
|
130 |
jQuery("#mec_gateways_form_button").trigger('click');
|
131 |
});
|
132 |
});
|
|
|
133 |
jQuery("#mec_gateways_form").on('submit', function(event)
|
134 |
{
|
135 |
event.preventDefault();
|
@@ -137,12 +139,12 @@ jQuery("#mec_gateways_form").on('submit', function(event)
|
|
137 |
// Add loading Class to the button
|
138 |
jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
|
139 |
jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
|
140 |
-
|
|
|
141 |
{
|
142 |
jQuery('.wns-saved-settings').addClass('sticky');
|
143 |
}
|
144 |
-
|
145 |
-
|
146 |
var gateways = jQuery("#mec_gateways_form").serialize();
|
147 |
jQuery.ajax(
|
148 |
{
|
8 |
<div class="wns-be-container">
|
9 |
|
10 |
<div id="wns-be-infobar">
|
11 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
12 |
</div>
|
13 |
|
14 |
<div class="wns-be-sidebar">
|
117 |
</div>
|
118 |
|
119 |
<div id="wns-be-footer">
|
120 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
121 |
</div>
|
122 |
|
123 |
</div>
|
125 |
<script type="text/javascript">
|
126 |
jQuery(document).ready(function()
|
127 |
{
|
128 |
+
jQuery(".dpr-save-btn").on('click', function(event)
|
129 |
+
{
|
130 |
+
event.preventDefault();
|
131 |
jQuery("#mec_gateways_form_button").trigger('click');
|
132 |
});
|
133 |
});
|
134 |
+
|
135 |
jQuery("#mec_gateways_form").on('submit', function(event)
|
136 |
{
|
137 |
event.preventDefault();
|
139 |
// Add loading Class to the button
|
140 |
jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
|
141 |
jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
|
142 |
+
|
143 |
+
if(jQuery('#wns-be-infobar').hasClass('sticky'))
|
144 |
{
|
145 |
jQuery('.wns-saved-settings').addClass('sticky');
|
146 |
}
|
147 |
+
|
|
|
148 |
var gateways = jQuery("#mec_gateways_form").serialize();
|
149 |
jQuery.ajax(
|
150 |
{
|
app/features/mec/messages.php
CHANGED
@@ -124,7 +124,7 @@ $values = $this->main->get_messages_options();
|
|
124 |
</div>
|
125 |
|
126 |
<div id="wns-be-footer">
|
127 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
128 |
</div>
|
129 |
|
130 |
</div>
|
124 |
</div>
|
125 |
|
126 |
<div id="wns-be-footer">
|
127 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
128 |
</div>
|
129 |
|
130 |
</div>
|
app/features/mec/notifications.php
CHANGED
@@ -7,7 +7,7 @@ $notifications = $this->main->get_notifications();
|
|
7 |
<div class="wns-be-container">
|
8 |
|
9 |
<div id="wns-be-infobar">
|
10 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
11 |
</div>
|
12 |
|
13 |
<div class="wns-be-sidebar">
|
@@ -380,7 +380,7 @@ $notifications = $this->main->get_notifications();
|
|
380 |
</div>
|
381 |
|
382 |
<div id="wns-be-footer">
|
383 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
384 |
</div>
|
385 |
|
386 |
</div>
|
@@ -420,6 +420,7 @@ jQuery("#mec_notifications_form").on('submit', function(event)
|
|
420 |
// Add loading Class to the button
|
421 |
jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
|
422 |
jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
|
|
|
423 |
var notifications = jQuery("#mec_notifications_form").serialize();
|
424 |
jQuery.ajax(
|
425 |
{
|
7 |
<div class="wns-be-container">
|
8 |
|
9 |
<div id="wns-be-infobar">
|
10 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
11 |
</div>
|
12 |
|
13 |
<div class="wns-be-sidebar">
|
380 |
</div>
|
381 |
|
382 |
<div id="wns-be-footer">
|
383 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
384 |
</div>
|
385 |
|
386 |
</div>
|
420 |
// Add loading Class to the button
|
421 |
jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
|
422 |
jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
|
423 |
+
|
424 |
var notifications = jQuery("#mec_notifications_form").serialize();
|
425 |
jQuery.ajax(
|
426 |
{
|
app/features/mec/regform.php
CHANGED
@@ -8,7 +8,7 @@ $reg_fields = $this->main->get_reg_fields();
|
|
8 |
<div class="wns-be-container">
|
9 |
|
10 |
<div id="wns-be-infobar">
|
11 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
12 |
</div>
|
13 |
|
14 |
<div class="wns-be-sidebar">
|
@@ -190,7 +190,7 @@ $reg_fields = $this->main->get_reg_fields();
|
|
190 |
</div>
|
191 |
|
192 |
<div id="wns-be-footer">
|
193 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
194 |
</div>
|
195 |
|
196 |
</div>
|
@@ -198,11 +198,13 @@ $reg_fields = $this->main->get_reg_fields();
|
|
198 |
<script type="text/javascript">
|
199 |
jQuery(document).ready(function()
|
200 |
{
|
201 |
-
jQuery(".dpr-save-btn").on('click', function(event)
|
202 |
-
|
|
|
203 |
jQuery("#mec_reg_fields_form_button").trigger('click');
|
204 |
});
|
205 |
});
|
|
|
206 |
jQuery("#mec_reg_fields_form").on('submit', function(event)
|
207 |
{
|
208 |
event.preventDefault();
|
8 |
<div class="wns-be-container">
|
9 |
|
10 |
<div id="wns-be-infobar">
|
11 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
12 |
</div>
|
13 |
|
14 |
<div class="wns-be-sidebar">
|
190 |
</div>
|
191 |
|
192 |
<div id="wns-be-footer">
|
193 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
194 |
</div>
|
195 |
|
196 |
</div>
|
198 |
<script type="text/javascript">
|
199 |
jQuery(document).ready(function()
|
200 |
{
|
201 |
+
jQuery(".dpr-save-btn").on('click', function(event)
|
202 |
+
{
|
203 |
+
event.preventDefault();
|
204 |
jQuery("#mec_reg_fields_form_button").trigger('click');
|
205 |
});
|
206 |
});
|
207 |
+
|
208 |
jQuery("#mec_reg_fields_form").on('submit', function(event)
|
209 |
{
|
210 |
event.preventDefault();
|
app/features/mec/settings.php
CHANGED
@@ -1421,9 +1421,11 @@ if($this->getPRO())
|
|
1421 |
<script type="text/javascript">
|
1422 |
jQuery(document).ready(function()
|
1423 |
{
|
1424 |
-
jQuery('.WnTabLinks').each(function()
|
|
|
1425 |
var ContentId = jQuery(this).attr('data-id');
|
1426 |
-
jQuery(this).click(function
|
|
|
1427 |
jQuery('.pr-be-group-menu-li').removeClass('active');
|
1428 |
jQuery(this).parent().addClass('active');
|
1429 |
jQuery(".mec-options-fields").hide();
|
@@ -1465,8 +1467,6 @@ function mec_category_skin_style_changed(category_value)
|
|
1465 |
}
|
1466 |
mec_category_skin_style_changed(category_value);
|
1467 |
|
1468 |
-
|
1469 |
-
|
1470 |
jQuery("#mec_settings_form").on('submit', function(event)
|
1471 |
{
|
1472 |
event.preventDefault();
|
1421 |
<script type="text/javascript">
|
1422 |
jQuery(document).ready(function()
|
1423 |
{
|
1424 |
+
jQuery('.WnTabLinks').each(function()
|
1425 |
+
{
|
1426 |
var ContentId = jQuery(this).attr('data-id');
|
1427 |
+
jQuery(this).click(function()
|
1428 |
+
{
|
1429 |
jQuery('.pr-be-group-menu-li').removeClass('active');
|
1430 |
jQuery(this).parent().addClass('active');
|
1431 |
jQuery(".mec-options-fields").hide();
|
1467 |
}
|
1468 |
mec_category_skin_style_changed(category_value);
|
1469 |
|
|
|
|
|
1470 |
jQuery("#mec_settings_form").on('submit', function(event)
|
1471 |
{
|
1472 |
event.preventDefault();
|
app/features/mec/styles.php
CHANGED
@@ -8,7 +8,7 @@ $styles = $this->main->get_styles();
|
|
8 |
<div class="wns-be-container">
|
9 |
|
10 |
<div id="wns-be-infobar">
|
11 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
12 |
</div>
|
13 |
|
14 |
<div class="wns-be-sidebar">
|
@@ -109,7 +109,7 @@ $styles = $this->main->get_styles();
|
|
109 |
</div>
|
110 |
|
111 |
<div id="wns-be-footer">
|
112 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
113 |
</div>
|
114 |
|
115 |
</div>
|
@@ -117,7 +117,8 @@ $styles = $this->main->get_styles();
|
|
117 |
<script type="text/javascript">
|
118 |
jQuery(document).ready(function()
|
119 |
{
|
120 |
-
jQuery(".dpr-save-btn").on('click', function(event)
|
|
|
121 |
event.preventDefault();
|
122 |
jQuery("#mec_styles_form_button").trigger('click');
|
123 |
});
|
@@ -137,7 +138,8 @@ jQuery("#mec_styles_form").on('submit', function(event)
|
|
137 |
type: "POST",
|
138 |
url: ajaxurl,
|
139 |
data: "action=mec_save_styles&"+styles,
|
140 |
-
beforeSend: function
|
|
|
141 |
jQuery('.wns-be-main').append('<div class="mec-loarder-wrap mec-settings-loader"><div class="mec-loarder"><div></div><div></div><div></div></div></div>');
|
142 |
},
|
143 |
success: function(data)
|
8 |
<div class="wns-be-container">
|
9 |
|
10 |
<div id="wns-be-infobar">
|
11 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
12 |
</div>
|
13 |
|
14 |
<div class="wns-be-sidebar">
|
109 |
</div>
|
110 |
|
111 |
<div id="wns-be-footer">
|
112 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
113 |
</div>
|
114 |
|
115 |
</div>
|
117 |
<script type="text/javascript">
|
118 |
jQuery(document).ready(function()
|
119 |
{
|
120 |
+
jQuery(".dpr-save-btn").on('click', function(event)
|
121 |
+
{
|
122 |
event.preventDefault();
|
123 |
jQuery("#mec_styles_form_button").trigger('click');
|
124 |
});
|
138 |
type: "POST",
|
139 |
url: ajaxurl,
|
140 |
data: "action=mec_save_styles&"+styles,
|
141 |
+
beforeSend: function()
|
142 |
+
{
|
143 |
jQuery('.wns-be-main').append('<div class="mec-loarder-wrap mec-settings-loader"><div class="mec-loarder"><div></div><div></div><div></div></div></div>');
|
144 |
},
|
145 |
success: function(data)
|
app/features/mec/styling.php
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
defined('MECEXEC') or die();
|
4 |
|
5 |
$styling = $this->main->get_styling();
|
6 |
-
$settings = $this->main->get_settings();
|
7 |
$fonts = include MEC::import('app.features.mec.webfonts.webfonts', true, true);
|
8 |
|
9 |
$google_fonts = array();
|
@@ -28,14 +27,10 @@ if(is_array($fonts))
|
|
28 |
}
|
29 |
}
|
30 |
?>
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
<div class="wns-be-container">
|
36 |
|
37 |
<div id="wns-be-infobar">
|
38 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
39 |
</div>
|
40 |
|
41 |
<div class="wns-be-sidebar">
|
@@ -277,10 +272,10 @@ if(is_array($fonts))
|
|
277 |
</div>
|
278 |
<div class="mec-form-row">
|
279 |
|
280 |
-
<label class="mec-col-3" for="
|
281 |
<div class="mec-col-8">
|
282 |
-
<input type="hidden" name="mec[
|
283 |
-
<input value="1" type="checkbox" id="
|
284 |
|
285 |
<a class="mec-tooltip" title="<?php esc_attr_e('To be GDPR compliant you may need to disable Google fonts!', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
|
286 |
</div>
|
@@ -315,7 +310,7 @@ if(is_array($fonts))
|
|
315 |
</div>
|
316 |
|
317 |
<div id="wns-be-footer">
|
318 |
-
<a href="" id="" class="dpr-btn dpr-save-btn"
|
319 |
</div>
|
320 |
|
321 |
</div>
|
@@ -323,11 +318,13 @@ if(is_array($fonts))
|
|
323 |
<script type="text/javascript">
|
324 |
jQuery(document).ready(function()
|
325 |
{
|
326 |
-
jQuery(".dpr-save-btn").on('click', function(event)
|
|
|
327 |
event.preventDefault();
|
328 |
jQuery("#mec_styling_form_button").trigger('click');
|
329 |
});
|
330 |
});
|
|
|
331 |
(function($)
|
332 |
{
|
333 |
'use strict';
|
@@ -351,7 +348,6 @@ jQuery(document).ready(function()
|
|
351 |
$('#mec_settings_upload').val(image_url);
|
352 |
});
|
353 |
});
|
354 |
-
|
355 |
})(jQuery);
|
356 |
|
357 |
jQuery("#mec_styling_form").on('submit', function(event)
|
@@ -375,7 +371,8 @@ jQuery("#mec_styling_form").on('submit', function(event)
|
|
375 |
success: function(data)
|
376 |
{
|
377 |
// Remove the loading Class to the button
|
378 |
-
setTimeout(function()
|
|
|
379 |
jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
|
380 |
jQuery('.wns-saved-settings').remove();
|
381 |
jQuery('.mec-loarder-wrap').remove();
|
3 |
defined('MECEXEC') or die();
|
4 |
|
5 |
$styling = $this->main->get_styling();
|
|
|
6 |
$fonts = include MEC::import('app.features.mec.webfonts.webfonts', true, true);
|
7 |
|
8 |
$google_fonts = array();
|
27 |
}
|
28 |
}
|
29 |
?>
|
|
|
|
|
|
|
|
|
30 |
<div class="wns-be-container">
|
31 |
|
32 |
<div id="wns-be-infobar">
|
33 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
34 |
</div>
|
35 |
|
36 |
<div class="wns-be-sidebar">
|
272 |
</div>
|
273 |
<div class="mec-form-row">
|
274 |
|
275 |
+
<label class="mec-col-3" for="mec_styling_disable_gfonts"><?php _e('Disable Google Fonts', 'modern-events-calendar-lite'); ?></label>
|
276 |
<div class="mec-col-8">
|
277 |
+
<input type="hidden" name="mec[styling][disable_gfonts]" value="0" />
|
278 |
+
<input value="1" type="checkbox" id="mec_styling_disable_gfonts" name="mec[styling][disable_gfonts]" <?php if(isset($styling['disable_gfonts']) and $styling['disable_gfonts']) echo 'checked="checked"'; ?> />
|
279 |
|
280 |
<a class="mec-tooltip" title="<?php esc_attr_e('To be GDPR compliant you may need to disable Google fonts!', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
|
281 |
</div>
|
310 |
</div>
|
311 |
|
312 |
<div id="wns-be-footer">
|
313 |
+
<a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
|
314 |
</div>
|
315 |
|
316 |
</div>
|
318 |
<script type="text/javascript">
|
319 |
jQuery(document).ready(function()
|
320 |
{
|
321 |
+
jQuery(".dpr-save-btn").on('click', function(event)
|
322 |
+
{
|
323 |
event.preventDefault();
|
324 |
jQuery("#mec_styling_form_button").trigger('click');
|
325 |
});
|
326 |
});
|
327 |
+
|
328 |
(function($)
|
329 |
{
|
330 |
'use strict';
|
348 |
$('#mec_settings_upload').val(image_url);
|
349 |
});
|
350 |
});
|
|
|
351 |
})(jQuery);
|
352 |
|
353 |
jQuery("#mec_styling_form").on('submit', function(event)
|
371 |
success: function(data)
|
372 |
{
|
373 |
// Remove the loading Class to the button
|
374 |
+
setTimeout(function()
|
375 |
+
{
|
376 |
jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
|
377 |
jQuery('.wns-saved-settings').remove();
|
378 |
jQuery('.mec-loarder-wrap').remove();
|
app/libraries/factory.php
CHANGED
@@ -268,11 +268,11 @@ class MEC_factory extends MEC_base
|
|
268 |
// Current locale
|
269 |
$locale = $this->main->get_current_language();
|
270 |
|
271 |
-
//
|
272 |
-
$
|
273 |
|
274 |
// Google Fonts Status
|
275 |
-
$gfonts_status = (isset($
|
276 |
|
277 |
// Include WordPress jQuery
|
278 |
wp_enqueue_script('jquery');
|
268 |
// Current locale
|
269 |
$locale = $this->main->get_current_language();
|
270 |
|
271 |
+
// Styling
|
272 |
+
$styling = $this->main->get_styling();
|
273 |
|
274 |
// Google Fonts Status
|
275 |
+
$gfonts_status = (isset($styling['disable_gfonts']) and $styling['disable_gfonts']) ? false : true;
|
276 |
|
277 |
// Include WordPress jQuery
|
278 |
wp_enqueue_script('jquery');
|
app/libraries/main.php
CHANGED
@@ -698,11 +698,10 @@ class MEC_main extends MEC_base
|
|
698 |
$current = get_option('mec_options', array());
|
699 |
if(is_string($current) and trim($current) == '') $current = array();
|
700 |
|
701 |
-
//
|
702 |
if(isset($filtered['settings']) and isset($filtered['settings']['slug'])) $filtered['settings']['slug'] = strtolower(str_replace(' ', '-', $filtered['settings']['slug']));
|
703 |
-
if(isset($filtered['
|
704 |
-
|
705 |
-
$filtered['settings']['custom_archive'] = isset($filtered['settings']['custom_archive']) ? str_replace('\"','"',$filtered['settings']['custom_archive']) : '';
|
706 |
|
707 |
// Merge new options with previous options
|
708 |
$final = array_merge($current, $filtered);
|
698 |
$current = get_option('mec_options', array());
|
699 |
if(is_string($current) and trim($current) == '') $current = array();
|
700 |
|
701 |
+
// Validations
|
702 |
if(isset($filtered['settings']) and isset($filtered['settings']['slug'])) $filtered['settings']['slug'] = strtolower(str_replace(' ', '-', $filtered['settings']['slug']));
|
703 |
+
if(isset($filtered['settings']) and isset($filtered['settings']['category_slug'])) $filtered['settings']['category_slug'] = strtolower(str_replace(' ', '-', $filtered['settings']['category_slug']));
|
704 |
+
if(isset($filtered['settings']) and isset($filtered['settings']['custom_archive'])) $filtered['settings']['custom_archive'] = isset($filtered['settings']['custom_archive']) ? str_replace('\"','"',$filtered['settings']['custom_archive']) : '';
|
|
|
705 |
|
706 |
// Merge new options with previous options
|
707 |
$final = array_merge($current, $filtered);
|
changelog.txt
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
-
v 3.5.
|
|
|
|
|
|
|
|
|
|
|
2 |
- Added: Facebook events importer
|
3 |
- Added: Activation box in welcome page and removed activation tab from MEC settings
|
4 |
- Added: Ability to define date period for custom days
|
1 |
+
v 3.5.1 – 20 March 2019
|
2 |
+
- Fixed: Issue in saving settings
|
3 |
+
- Fixed: Issue in disable google font
|
4 |
+
- Fixed: Issue in frontend event submission of custom days event
|
5 |
+
|
6 |
+
v 3.5.0 – 16 March 2019
|
7 |
- Added: Facebook events importer
|
8 |
- Added: Activation box in welcome page and removed activation tab from MEC settings
|
9 |
- Added: Ability to define date period for custom days
|
modern-events-calendar-lite.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://webnus.net/modern-events-calendar/
|
5 |
Description: An awesome plugin for events calendar
|
6 |
Author: Webnus Team
|
7 |
-
Version: 3.5.
|
8 |
Text Domain: modern-events-calendar-lite
|
9 |
Domain Path: /languages
|
10 |
Author URI: http://webnus.net
|
@@ -31,7 +31,7 @@ if(!defined('MECEXEC'))
|
|
31 |
define('MEC_BASENAME', plugin_basename(__FILE__)); // modern-events-calendar/mec.php
|
32 |
|
33 |
/** Plugin Version **/
|
34 |
-
define('MEC_VERSION', '3.5.
|
35 |
|
36 |
/** Include Webnus MEC class if not included before **/
|
37 |
if(!class_exists('MEC')) require_once MEC_ABSPATH.'mec-init.php';
|
4 |
Plugin URI: http://webnus.net/modern-events-calendar/
|
5 |
Description: An awesome plugin for events calendar
|
6 |
Author: Webnus Team
|
7 |
+
Version: 3.5.1
|
8 |
Text Domain: modern-events-calendar-lite
|
9 |
Domain Path: /languages
|
10 |
Author URI: http://webnus.net
|
31 |
define('MEC_BASENAME', plugin_basename(__FILE__)); // modern-events-calendar/mec.php
|
32 |
|
33 |
/** Plugin Version **/
|
34 |
+
define('MEC_VERSION', '3.5.1');
|
35 |
|
36 |
/** Include Webnus MEC class if not included before **/
|
37 |
if(!class_exists('MEC')) require_once MEC_ABSPATH.'mec-init.php';
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Modern Events Calendar Lite ===
|
2 |
Contributors: webnus
|
3 |
Donate link: https://webnus.net
|
4 |
Tags: Event, Events, Calendar, Booking, Schedule, Organizer, Venue
|
5 |
Requires at least: 4.0.0
|
6 |
Tested up to: 5.1.1
|
7 |
-
Stable tag: 3.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -192,6 +192,11 @@ You can see [plugin documentation here](https://webnus.net/dox/modern-events-cal
|
|
192 |
|
193 |
== Changelog ==
|
194 |
|
|
|
|
|
|
|
|
|
|
|
195 |
= 3.5.0 =
|
196 |
- Added: Facebook events importer
|
197 |
- Added: Activation box in welcome page and removed activation tab from MEC settings
|
1 |
+
=== Modern Events Calendar Lite ===
|
2 |
Contributors: webnus
|
3 |
Donate link: https://webnus.net
|
4 |
Tags: Event, Events, Calendar, Booking, Schedule, Organizer, Venue
|
5 |
Requires at least: 4.0.0
|
6 |
Tested up to: 5.1.1
|
7 |
+
Stable tag: 3.5.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
192 |
|
193 |
== Changelog ==
|
194 |
|
195 |
+
= 3.5.1 =
|
196 |
+
- Fixed: Issue in saving settings
|
197 |
+
- Fixed: Issue in disable google font
|
198 |
+
- Fixed: Issue in frontend event submission of custom days event
|
199 |
+
|
200 |
= 3.5.0 =
|
201 |
- Added: Facebook events importer
|
202 |
- Added: Activation box in welcome page and removed activation tab from MEC settings
|