Event Calendar WD – Responsive Event Calendar plugin - Version 1.1.6

Version Description

  • Fixed: Conflict with some plugins on calendar frontend
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

Files changed (4) hide show
  1. ecwd.php +2 -2
  2. includes/ecwd-functions.php +2 -2
  3. js/scripts.js +9 -6
  4. readme.txt +4 -1
ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.1.5
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -24,7 +24,7 @@ if (!defined('ECWD_URL')) {
24
  }
25
 
26
  if (!defined('ECWD_VERSION')) {
27
- define('ECWD_VERSION', "1.1.5");
28
  }
29
 
30
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.1.6
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
24
  }
25
 
26
  if (!defined('ECWD_VERSION')) {
27
+ define('ECWD_VERSION', "1.1.6");
28
  }
29
 
30
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
includes/ecwd-functions.php CHANGED
@@ -92,11 +92,11 @@ function ecwd_print_calendar($calendar_ids, $display = 'mini', $args = array(),
92
  }
93
  if ($widget == 1) {
94
  $markup .= '<div class="ecwd-widget-mini ecwd_calendar">';
95
- $markup .= '<div class="ecwd-widget-' . $calendar_ids_html . '">';
96
  } else {
97
 
98
  $markup .= '<div class="ecwd-page-' . $display . ' ecwd_calendar">';
99
- $markup .= '<div class="ecwd-page-' . $calendar_ids_html . '">';
100
  }
101
 
102
  $markup .= $d->get_view($date, $display, $widget, $ecwd_views, $preview);
92
  }
93
  if ($widget == 1) {
94
  $markup .= '<div class="ecwd-widget-mini ecwd_calendar">';
95
+ $markup .= '<div data-id="'.$calendar_ids_html.'" data-type="widget" class="ecwd-widget-' . $calendar_ids_html . '">';
96
  } else {
97
 
98
  $markup .= '<div class="ecwd-page-' . $display . ' ecwd_calendar">';
99
+ $markup .= '<div data-id="'.$calendar_ids_html.'" data-type="page" class="ecwd-page-' . $calendar_ids_html . '">';
100
  }
101
 
102
  $markup .= $d->get_view($date, $display, $widget, $ecwd_views, $preview);
js/scripts.js CHANGED
@@ -95,9 +95,11 @@ if (typeof ecwd_js_init != "function")
95
  }
96
  var main_div = navLink.closest('.calendar_main');
97
 
98
- var calendar_ids_class = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').attr('class').split('-');
 
 
99
  var display = jQuery(main_div).find('div.ecwd_calendar').attr('class').split(' ')[0].split('-')[2];
100
- var calendar_ids = calendar_ids_class[2];
101
  var query = jQuery(main_div).find('input.ecwd-search').val();
102
  var tag = jQuery('.ecwd_tags').val();
103
  var venue = jQuery('.ecwd_venues').val();
@@ -113,7 +115,7 @@ if (typeof ecwd_js_init != "function")
113
  action: 'ecwd_ajax',
114
  ecwd_calendar_ids: calendar_ids,
115
  ecwd_link: navLink.attr('href'),
116
- ecwd_type: calendar_ids_class[1],
117
  ecwd_query: query,
118
  ecwd_weekdays: days,
119
  ecwd_categories: cats,
@@ -187,8 +189,9 @@ if (typeof ecwd_js_init != "function")
187
  var venue = jQuery(main_div).find('.ecwd_venues').val();
188
  var organizer = jQuery(main_div).find('.ecwd_organizers').val();
189
  var category = jQuery(main_div).find('.ecwd_categories').val();
190
- var calendar_ids_class = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').attr('class').split('-');
191
- var calendar_ids = calendar_ids_class[2];
 
192
  var displays = jQuery(main_div).find('.ecwd_displays').val();
193
  var page_items = jQuery(main_div).find('.ecwd_page_items').val();
194
  var event_search = jQuery(main_div).find('.event_search').val();
@@ -208,7 +211,7 @@ if (typeof ecwd_js_init != "function")
208
  ecwd_calendar_ids: calendar_ids,
209
  ecwd_event_search: event_search,
210
  ecwd_date: 1,
211
- ecwd_type: calendar_ids_class[1],
212
  ecwd_calendar_search:1,//not filter
213
  ecwd_nonce: ecwd.ajaxnonce
214
  }, function (data) {
95
  }
96
  var main_div = navLink.closest('.calendar_main');
97
 
98
+ var calendar_ids_class_1 = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').data("id");
99
+ var calendar_ids_class_2 = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').data("type");
100
+
101
  var display = jQuery(main_div).find('div.ecwd_calendar').attr('class').split(' ')[0].split('-')[2];
102
+ var calendar_ids = calendar_ids_class_1;
103
  var query = jQuery(main_div).find('input.ecwd-search').val();
104
  var tag = jQuery('.ecwd_tags').val();
105
  var venue = jQuery('.ecwd_venues').val();
115
  action: 'ecwd_ajax',
116
  ecwd_calendar_ids: calendar_ids,
117
  ecwd_link: navLink.attr('href'),
118
+ ecwd_type: calendar_ids_class_2,
119
  ecwd_query: query,
120
  ecwd_weekdays: days,
121
  ecwd_categories: cats,
189
  var venue = jQuery(main_div).find('.ecwd_venues').val();
190
  var organizer = jQuery(main_div).find('.ecwd_organizers').val();
191
  var category = jQuery(main_div).find('.ecwd_categories').val();
192
+ var calendar_ids_class_1 = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').data("id");
193
+ var calendar_ids_class_2 = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').data("type");
194
+ var calendar_ids = calendar_ids_class_1;
195
  var displays = jQuery(main_div).find('.ecwd_displays').val();
196
  var page_items = jQuery(main_div).find('.ecwd_page_items').val();
197
  var event_search = jQuery(main_div).find('.event_search').val();
211
  ecwd_calendar_ids: calendar_ids,
212
  ecwd_event_search: event_search,
213
  ecwd_date: 1,
214
+ ecwd_type: calendar_ids_class_2,
215
  ecwd_calendar_search:1,//not filter
216
  ecwd_nonce: ecwd.ajaxnonce
217
  }, function (data) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
- Stable tag: 1.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -247,6 +247,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
247
 
248
  == Changelog ==
249
 
 
 
 
250
  = 1.1.5 =
251
  * Changed: Show notification to install Backup WD plugin only on plugin pages.
252
 
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
+ Stable tag: 1.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
247
 
248
  == Changelog ==
249
 
250
+ = 1.1.6 =
251
+ * Fixed: Conflict with some plugins on calendar frontend
252
+
253
  = 1.1.5 =
254
  * Changed: Show notification to install Backup WD plugin only on plugin pages.
255