Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.59

Version Description

  • Fixed: Bug on mini calendar
  • Fixed: Bug on multi-day events
  • Fixed: Bug on event pop-up
  • Fixed: Bug on widget
Download this release

Release Info

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

Code changes from version 1.0.58 to 1.0.59

css/style.css CHANGED
@@ -2691,4 +2691,7 @@ table.ecwd_calendar_container > tbody > tr >td{
2691
  }
2692
  .ecwd_popup_container #ecwd-modal-preview .more_events li .event-details-container{
2693
  right: auto;
 
 
 
2694
  }
2691
  }
2692
  .ecwd_popup_container #ecwd-modal-preview .more_events li .event-details-container{
2693
  right: auto;
2694
+ }
2695
+ .ecwd_open_event_popup{
2696
+ cursor: pointer;
2697
  }
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.0.58
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
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.0.59
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
ecwd_admin_class.php CHANGED
@@ -6,7 +6,7 @@
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
- protected $version = '1.0.58';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.59';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
ecwd_class.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
  class ECWD {
8
 
9
- protected $version = '1.0.58';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
@@ -26,7 +26,7 @@ class ECWD {
26
  add_action('ecwd_show_related_events', array($this, 'show_related_events'), 10, 2);
27
  }
28
 
29
- public function show_related_events($events, $upcoming_events = false) {
30
  global $ecwd_options;
31
  $today = date('Y-m-d');
32
  $date_format = 'Y-m-d';
@@ -49,7 +49,7 @@ class ECWD {
49
  } else {
50
  $related_events_count = -1;
51
  }
52
- $related_events_count -= 1;
53
  include_once 'views/related_events.php';
54
  }
55
 
6
  */
7
  class ECWD {
8
 
9
+ protected $version = '1.0.59';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
26
  add_action('ecwd_show_related_events', array($this, 'show_related_events'), 10, 2);
27
  }
28
 
29
+ public function show_related_events($events, $upcoming_events = false) {
30
  global $ecwd_options;
31
  $today = date('Y-m-d');
32
  $date_format = 'Y-m-d';
49
  } else {
50
  $related_events_count = -1;
51
  }
52
+ $related_events_count -= 1;
53
  include_once 'views/related_events.php';
54
  }
55
 
includes/ecwd-display-class.php CHANGED
@@ -1012,13 +1012,13 @@ class ECWD_Display {
1012
  $this->events[$long_from] = array();
1013
  }
1014
  $event_data['date'] = date("Y-n-j", $long_from);
1015
- $this->events[$long_from][] = $event_data;
1016
  }
1017
  } else {
1018
  if (!isset($this->events[strtotime($date)])) {
1019
  $this->events[strtotime($date)] = array();
1020
  }
1021
- $this->events[strtotime($date)][] = $event_data;
1022
  }
1023
  }
1024
 
1012
  $this->events[$long_from] = array();
1013
  }
1014
  $event_data['date'] = date("Y-n-j", $long_from);
1015
+ $this->events[$long_from][$event_data['id']] = $event_data;
1016
  }
1017
  } else {
1018
  if (!isset($this->events[strtotime($date)])) {
1019
  $this->events[strtotime($date)] = array();
1020
  }
1021
+ $this->events[strtotime($date)][$event_data['id']] = $event_data;
1022
  }
1023
  }
1024
 
includes/ecwd-functions.php CHANGED
@@ -120,7 +120,7 @@ function ecwd_print_calendar($calendar_ids, $display = 'mini', $args = array(),
120
 
121
  $markup .= '</div>';
122
  }
123
- $markup .= '<script id="ecwd_script_handler" type="text/javascript">if(typeof ecwd_js_init_call=="object"){ecwd_js_init_call = new ecwd_js_init();}</script>';
124
  return do_shortcode($markup);
125
  }
126
 
120
 
121
  $markup .= '</div>';
122
  }
123
+ $markup .='<script id="ecwd_script_handler" type="text/javascript">if(typeof ecwd_js_init_call=="object"){ecwd_js_init_call = new ecwd_js_init();}</script>';
124
  return do_shortcode($markup);
125
  }
126
 
includes/ecwd_config.php CHANGED
@@ -46,7 +46,7 @@ class ECWD_Config {
46
  $upload_dir = wp_upload_dir(__FILE__);
47
  $dir = $upload_dir['basedir'] . '/wd_configs/';
48
  $this->file_dir = $dir . $this->file_name;
49
- if (!is_dir($dir)) {
50
  mkdir($dir, 0777,true);
51
  chmod($dir, 0777);
52
  $fp = fopen($this->file_dir, 'w');
46
  $upload_dir = wp_upload_dir(__FILE__);
47
  $dir = $upload_dir['basedir'] . '/wd_configs/';
48
  $this->file_dir = $dir . $this->file_name;
49
+ if (!is_dir($dir)) {
50
  mkdir($dir, 0777,true);
51
  chmod($dir, 0777);
52
  $fp = fopen($this->file_dir, 'w');
js/ecwd_popup.js CHANGED
@@ -30,7 +30,7 @@
30
  el.hide();
31
  params.button.on('click', function (e) {
32
  e.preventDefault();
33
- if (!el.hasClass('ecwd_popup_el')) {
34
  var data = params.get_ajax_data($(this));
35
  if (data) {
36
  if (params.fillhtml) {
@@ -57,9 +57,7 @@
57
  params.popup_close(el);
58
  }
59
  });
60
- } else {
61
- el.show();
62
- }
63
  });
64
 
65
  function open_popup(html) {
30
  el.hide();
31
  params.button.on('click', function (e) {
32
  e.preventDefault();
33
+
34
  var data = params.get_ajax_data($(this));
35
  if (data) {
36
  if (params.fillhtml) {
57
  params.popup_close(el);
58
  }
59
  });
60
+
 
 
61
  });
62
 
63
  function open_popup(html) {
js/scripts.js CHANGED
@@ -66,6 +66,7 @@ if (typeof ecwd_js_init != "function")
66
  },
67
  });
68
  });
 
69
  add_single_events_popup();
70
 
71
  jQuery('.ecwd_calendar_prev_next .next, .ecwd_calendar_prev_next .previous, .ecwd_calendar .type, .cpage, .current-month a, .ecwd_filter, .ecwd_reset_filters').on('click', function (e) {
@@ -133,7 +134,6 @@ if (typeof ecwd_js_init != "function")
133
  ecwd_nonce: ecwd.ajaxnonce
134
  }, function (data) {
135
  $(main_div).find('div.ecwd_calendar').replaceWith(data);
136
-
137
  $(main_div).find('.ecwd_loader').hide();
138
  if ($('.ecwd_open_event_popup').length > 0) {
139
  $('.ecwd_open_event_popup').css({
@@ -239,11 +239,24 @@ if (typeof ecwd_js_init != "function")
239
 
240
  function showEvent(el, calendar) {
241
  if (el.parent().parent().parent().parent().attr('class').indexOf("full") != -1) {
242
- jQuery(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').html(el.find('.event-details').clone().css('display', 'block'));
243
- } else if (el.parent().parent().parent().parent().attr('class').indexOf("mini") != -1) {
244
- jQuery(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').html(el.clone());
 
 
 
 
 
 
 
 
 
245
  }
246
-
 
 
 
 
247
  }
248
 
249
  function showFullCalendarEventOnHover() {
@@ -506,25 +519,23 @@ if (typeof ecwd_js_init != "function")
506
 
507
  }
508
  function add_single_events_popup() {
509
- jQuery('.single_event_popup').each(function () {
510
- jQuery(this).ecwd_popup({
511
- button: jQuery('.ecwd_open_event_popup'),
512
- body_class: "ecwd-excluded-events ecwd_popup_body_scroll",
513
- title: "Event Details",
514
- get_ajax_data: function (el) {
515
- var date = el.attr('start-date-data');
516
- if (date) {
517
- var data = {
518
- action: 'ecwd_event_popup_ajax',
519
- id: el.attr('class').split('event')[2],
520
- date: date
521
- };
522
- return data;
523
- } else {
524
- return {};
525
- }
526
  }
527
- });
528
  });
529
  }
530
 
@@ -709,6 +720,7 @@ if (typeof ecwd_js_init != "function")
709
  this.showMap();
710
  }
711
  }
 
712
  ecwd_js_init_call = new ecwd_js_init();
713
  }(jQuery));
714
  function ecwd_eventsOff() {
66
  },
67
  });
68
  });
69
+
70
  add_single_events_popup();
71
 
72
  jQuery('.ecwd_calendar_prev_next .next, .ecwd_calendar_prev_next .previous, .ecwd_calendar .type, .cpage, .current-month a, .ecwd_filter, .ecwd_reset_filters').on('click', function (e) {
134
  ecwd_nonce: ecwd.ajaxnonce
135
  }, function (data) {
136
  $(main_div).find('div.ecwd_calendar').replaceWith(data);
 
137
  $(main_div).find('.ecwd_loader').hide();
138
  if ($('.ecwd_open_event_popup').length > 0) {
139
  $('.ecwd_open_event_popup').css({
239
 
240
  function showEvent(el, calendar) {
241
  if (el.parent().parent().parent().parent().attr('class').indexOf("full") != -1) {
242
+ var obj = el;
243
+ if (el.length > 1) {
244
+ el.each(function () {
245
+ if ($(this).hasClass('more_events')) {
246
+ obj = $(this);
247
+ return;
248
+ }
249
+ });
250
+ }
251
+ $(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').html(obj.find('.event-details').clone().css('display', 'block'));
252
+ } else if (el.parent().parent().parent().parent().attr('class').indexOf("mini") != -1) {
253
+ $(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').html(el.clone());
254
  }
255
+ $(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').find('li').each(function(){
256
+ $(this).css('background','none');
257
+
258
+ });
259
+ add_single_events_popup();
260
  }
261
 
262
  function showFullCalendarEventOnHover() {
519
 
520
  }
521
  function add_single_events_popup() {
522
+ jQuery('.single_event_popup').ecwd_popup({
523
+ button: jQuery('.ecwd_open_event_popup'),
524
+ body_class: "ecwd-excluded-events ecwd_popup_body_scroll",
525
+ title: "Event Details",
526
+ get_ajax_data: function (el) {
527
+ var date = el.attr('start-date-data');
528
+ if (date) {
529
+ var data = {
530
+ action: 'ecwd_event_popup_ajax',
531
+ id: el.attr('class').split('event')[2],
532
+ date: date
533
+ };
534
+ return data;
535
+ } else {
536
+ return {};
 
 
537
  }
538
+ }
539
  });
540
  }
541
 
720
  this.showMap();
721
  }
722
  }
723
+
724
  ecwd_js_init_call = new ecwd_js_init();
725
  }(jQuery));
726
  function ecwd_eventsOff() {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, facebook integration, widget, reservation
5
  Requires at least: 3.9
6
  Tested up to: 4.5
7
- Stable tag: 1.0.58
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -154,6 +154,13 @@ After downloading the ZIP file of the Event Calendar WD plugin,
154
 
155
  == Changelog ==
156
 
 
 
 
 
 
 
 
157
  = 1.0.58 =
158
  * Added: Order of events archive page option
159
  * Fixed: Minor bug
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, facebook integration, widget, reservation
5
  Requires at least: 3.9
6
  Tested up to: 4.5
7
+ Stable tag: 1.0.59
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
154
 
155
  == Changelog ==
156
 
157
+
158
+ = 1.0.59 =
159
+ * Fixed: Bug on mini calendar
160
+ * Fixed: Bug on multi-day events
161
+ * Fixed: Bug on event pop-up
162
+ * Fixed: Bug on widget
163
+
164
  = 1.0.58 =
165
  * Added: Order of events archive page option
166
  * Fixed: Minor bug
views/widgets.php CHANGED
@@ -11,7 +11,6 @@ if (!defined('ABSPATH')) {
11
  /**
12
  * Class functions for the SC widgets
13
  */
14
-
15
  class ECWD_Widget extends WP_Widget {
16
 
17
  function __construct() {
@@ -31,8 +30,8 @@ class ECWD_Widget extends WP_Widget {
31
  //Output before widget stuff
32
  echo $before_widget;
33
  // Check whether any calendars have been added yet
34
-
35
- if (wp_count_posts(ECWD_PLUGIN_PREFIX.'_calendar')->publish > 0) {
36
  //Output title stuff
37
  $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
38
 
@@ -76,7 +75,7 @@ class ECWD_Widget extends WP_Widget {
76
  $args = array(
77
  'title_text' => $title_text,
78
  'sort' => $sort_order,
79
- 'page_items' =>$page_items,
80
  'month' => null,
81
  'year' => null,
82
  'widget' => 1,
@@ -124,13 +123,13 @@ class ECWD_Widget extends WP_Widget {
124
  function form($instance) {
125
 
126
  // Check for existing events and if there are none then display a message and return
127
- if (wp_count_posts(ECWD_PLUGIN_PREFIX.'_calendar')->publish <= 0) {
128
  echo '<p>' . __('There are no calendars created yet.', 'ecwd') .
129
  ' <a href="' . admin_url('edit.php?post_type=ecwd_calendar') . '">' . __('Add your first calendar!', 'ecwd') . '</a>' .
130
  '</p>';
131
  return;
132
  }
133
- $type = ECWD_PLUGIN_PREFIX.'_calendar';
134
  $args = array(
135
  'post_type' => $type,
136
  'post_status' => 'publish',
@@ -149,17 +148,16 @@ class ECWD_Widget extends WP_Widget {
149
  </p>
150
  <p>
151
  <label for="<?php echo $this->get_field_id('id'); ?>">
152
- <?php _e('Calendar to display', 'ecwd'); ?>
153
  </label>
154
- <?php
155
- if($calendar_posts) {?>
156
- <select id="<?php echo $this->get_field_id('id'); ?>" name="<?php echo $this->get_field_name('id'); ?>" class="widefat">
157
  <?php foreach ($calendar_posts as $calendar_post) {
158
- ?>
159
- <option value="<?php echo $calendar_post->ID; ?>" <?php selected($ids, $calendar_post->ID); ?>><?php echo $calendar_post->post_title; ?></option>
 
 
160
  <?php } ?>
161
- </select>
162
- <?php }?>
163
  </p>
164
 
165
  <p>
@@ -167,8 +165,8 @@ class ECWD_Widget extends WP_Widget {
167
  <select id="<?php echo $this->get_field_id('display_type'); ?>" name="<?php echo $this->get_field_name('display_type'); ?>" class="widefat">
168
  <option value="mini"<?php selected($display_type, 'mini'); ?>><?php _e('Month', 'ecwd'); ?></option>
169
  <option value="list"<?php selected($display_type, 'list'); ?>><?php _e('List', 'ecwd'); ?></option>
170
- <option value="week" <?php selected($display_type, 'week'); ?>><?php _e('Week', 'ecwd'); ?></option>
171
- <option value="day" <?php selected($display_type, 'day'); ?>><?php _e('Day', 'ecwd'); ?></option>
172
  </select>
173
  </p>
174
  <p>
@@ -177,11 +175,12 @@ class ECWD_Widget extends WP_Widget {
177
  </p>
178
 
179
 
180
- <?php
181
  }
182
 
183
  }
184
- if(defined('ECWD_MAIN_FILE') && is_plugin_active(ECWD_MAIN_FILE)) {
 
185
 
186
  add_action('widgets_init', create_function('', 'register_widget("ECWD_Widget");'));
187
  }
11
  /**
12
  * Class functions for the SC widgets
13
  */
 
14
  class ECWD_Widget extends WP_Widget {
15
 
16
  function __construct() {
30
  //Output before widget stuff
31
  echo $before_widget;
32
  // Check whether any calendars have been added yet
33
+
34
+ if (wp_count_posts(ECWD_PLUGIN_PREFIX . '_calendar')->publish > 0) {
35
  //Output title stuff
36
  $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
37
 
75
  $args = array(
76
  'title_text' => $title_text,
77
  'sort' => $sort_order,
78
+ 'page_items' => $page_items,
79
  'month' => null,
80
  'year' => null,
81
  'widget' => 1,
123
  function form($instance) {
124
 
125
  // Check for existing events and if there are none then display a message and return
126
+ if (wp_count_posts(ECWD_PLUGIN_PREFIX . '_calendar')->publish <= 0) {
127
  echo '<p>' . __('There are no calendars created yet.', 'ecwd') .
128
  ' <a href="' . admin_url('edit.php?post_type=ecwd_calendar') . '">' . __('Add your first calendar!', 'ecwd') . '</a>' .
129
  '</p>';
130
  return;
131
  }
132
+ $type = ECWD_PLUGIN_PREFIX . '_calendar';
133
  $args = array(
134
  'post_type' => $type,
135
  'post_status' => 'publish',
148
  </p>
149
  <p>
150
  <label for="<?php echo $this->get_field_id('id'); ?>">
151
+ <?php _e('Calendar to display', 'ecwd'); ?>
152
  </label>
153
+ <?php if ($calendar_posts) { ?>
154
+ <select id="<?php echo $this->get_field_id('id'); ?>" name="<?php echo $this->get_field_name('id'); ?>" class="widefat">
 
155
  <?php foreach ($calendar_posts as $calendar_post) {
156
+ ?>
157
+ <option value="<?php echo $calendar_post->ID; ?>" <?php selected($ids, $calendar_post->ID); ?>><?php echo $calendar_post->post_title; ?></option>
158
+ <?php } ?>
159
+ </select>
160
  <?php } ?>
 
 
161
  </p>
162
 
163
  <p>
165
  <select id="<?php echo $this->get_field_id('display_type'); ?>" name="<?php echo $this->get_field_name('display_type'); ?>" class="widefat">
166
  <option value="mini"<?php selected($display_type, 'mini'); ?>><?php _e('Month', 'ecwd'); ?></option>
167
  <option value="list"<?php selected($display_type, 'list'); ?>><?php _e('List', 'ecwd'); ?></option>
168
+ <option value="week" <?php selected($display_type, 'week'); ?>><?php _e('Week', 'ecwd'); ?></option>
169
+ <option value="day" <?php selected($display_type, 'day'); ?>><?php _e('Day', 'ecwd'); ?></option>
170
  </select>
171
  </p>
172
  <p>
175
  </p>
176
 
177
 
178
+ <?php
179
  }
180
 
181
  }
182
+
183
+ if (defined('ECWD_MAIN_FILE') && is_plugin_active(ECWD_MAIN_FILE)) {
184
 
185
  add_action('widgets_init', create_function('', 'register_widget("ECWD_Widget");'));
186
  }