Event Calendar WD – Responsive Event Calendar plugin - Version 1.1.31

Version Description

  • Fixed: Calendar events problems while using 12-hour format time.
  • Added: Category icon on Month view.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.1.31
Comparing to
See all releases

Code changes from version 1.1.30 to 1.1.31

ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.1.30
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
@@ -28,7 +28,7 @@ if(! defined( 'ECWD_URL' ) ){
28
  }
29
 
30
  if (!defined('ECWD_VERSION')) {
31
- define('ECWD_VERSION', "1.1.30");
32
  }
33
 
34
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.1.31
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
28
  }
29
 
30
  if (!defined('ECWD_VERSION')) {
31
+ define('ECWD_VERSION', "1.1.31");
32
  }
33
 
34
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
includes/calendar-class.php CHANGED
@@ -998,11 +998,15 @@
998
  $eventcontent .= ' no-cat-image ';
999
  }
1000
  $eventcontent .= '">';
 
1001
  if ($this->displaytype != 'mini') {
1002
- if (isset($cellevent['terms']['ecwd_taxonomy_image']) && $this->displaytype != 'mini') {
1003
- if ($cellevent['terms']['ecwd_taxonomy_image'] != '') {
1004
- $eventcontent .= '<img itemprop="image" class="ecwd-event-cat-icon" src="' . $cellevent['terms']['ecwd_taxonomy_image'] . '" />';
1005
- }/* elseif (isset($cellevent['color'])){
 
 
 
1006
  $eventcontent .= ' <span class="event-metalabel" style="background:' . $cellevent['color'] . '"></span>';
1007
  } */
1008
  }
998
  $eventcontent .= ' no-cat-image ';
999
  }
1000
  $eventcontent .= '">';
1001
+
1002
  if ($this->displaytype != 'mini') {
1003
+ if (is_array($cellevent['terms'])) {
1004
+ foreach ($cellevent['terms'] as $terms) {
1005
+ if (isset($terms['ecwd_taxonomy_image']) && $terms['ecwd_taxonomy_image'] != '') {
1006
+ $eventcontent .= '<img itemprop="image" class="ecwd-event-cat-icon" src="' . $terms['ecwd_taxonomy_image'] . '" />';
1007
+ break;
1008
+ }
1009
+ } /* elseif (isset($cellevent['color'])){
1010
  $eventcontent .= ' <span class="event-metalabel" style="background:' . $cellevent['color'] . '"></span>';
1011
  } */
1012
  }
includes/ecwd-cpt-class.php CHANGED
@@ -1231,8 +1231,8 @@ class ECWD_Cpt {
1231
  include_once 'events/ecwd-events-controller.php';
1232
 
1233
  $event = new ecwd_single_event($post_id);
1234
- $event->set_start_date($_POST['ecwd_event_date_from']);
1235
- $event->set_end_date($_POST['ecwd_event_date_to']);
1236
 
1237
  if((isset($_POST['ecwd_all_day_event'])) && $_POST['ecwd_all_day_event'] === '1') {
1238
  $event->set_all_day(true);
1231
  include_once 'events/ecwd-events-controller.php';
1232
 
1233
  $event = new ecwd_single_event($post_id);
1234
+ $event->set_start_date(str_replace(array(" pm"," am"),array("pm","am"),$_POST['ecwd_event_date_from']));
1235
+ $event->set_end_date(str_replace(array(" pm"," am"),array("pm","am"),$_POST['ecwd_event_date_to']));
1236
 
1237
  if((isset($_POST['ecwd_all_day_event'])) && $_POST['ecwd_all_day_event'] === '1') {
1238
  $event->set_all_day(true);
js/admin/admin.js CHANGED
@@ -115,8 +115,8 @@
115
  if ($("#ecwd_event_meta").length > 0) {
116
  $("#post").submit(function (e)
117
  {
118
- var dateTo = Date.parse($("#ecwd_event_date_to").val()),
119
- dateFrom = Date.parse($("#ecwd_event_date_from").val());
120
  if (dateFrom == '' || isNaN(dateFrom) || isNaN(dateTo) || dateTo == '') {
121
  alert('Please set the event dates');
122
  e.preventDefault();
115
  if ($("#ecwd_event_meta").length > 0) {
116
  $("#post").submit(function (e)
117
  {
118
+ var dateTo = Date.parse($("#ecwd_event_date_to").val().replace("am", " am").replace("pm", " pm")),
119
+ dateFrom = Date.parse($("#ecwd_event_date_from").val().replace("am", " am").replace("pm", " pm"));
120
  if (dateFrom == '' || isNaN(dateFrom) || isNaN(dateTo) || dateTo == '') {
121
  alert('Please set the event dates');
122
  e.preventDefault();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: calendar, date, event, event calendar, events, events calendar, meeting, o
4
  Requires at least: 3.9
5
  Tested up to: 5.2
6
  Requires PHP: 5.2
7
- Stable tag: 1.1.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -345,6 +345,10 @@ After downloading the ZIP file of the Event Calendar WD plugin,
345
  Event Calendar WD plugin optionally embeds Google Maps on front end to display events on the map. Embedded Google Maps behave in the exact same way as if visitor has opened Google Maps site. Google may collect data about visitors, use cookies and tracking, included their logged-in experience interaction with Google platform. Google Maps are regulated under terms of Google privacy policy https://policies.google.com/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
346
 
347
  == Changelog ==
 
 
 
 
348
  = 1.1.30 =
349
  * Added: Ask a question button.
350
  * Fixed: Filters are not applied on titles in the popup window.
4
  Requires at least: 3.9
5
  Tested up to: 5.2
6
  Requires PHP: 5.2
7
+ Stable tag: 1.1.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
345
  Event Calendar WD plugin optionally embeds Google Maps on front end to display events on the map. Embedded Google Maps behave in the exact same way as if visitor has opened Google Maps site. Google may collect data about visitors, use cookies and tracking, included their logged-in experience interaction with Google platform. Google Maps are regulated under terms of Google privacy policy https://policies.google.com/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
346
 
347
  == Changelog ==
348
+ = 1.1.31 =
349
+ * Fixed: Calendar events problems while using 12-hour format time.
350
+ * Added: Category icon on Month view.
351
+
352
  = 1.1.30 =
353
  * Added: Ask a question button.
354
  * Fixed: Filters are not applied on titles in the popup window.