Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.81

Version Description

  • Fixed: Bug on widget list view
  • Fixed: Styles
Download this release

Release Info

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

Code changes from version 1.0.80 to 1.0.81

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.80
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -22,7 +22,7 @@ if( ! defined( 'ECWD_MAIN_FILE' ) ) {
22
  }
23
 
24
  if(! defined( 'ECWD_VERSION' ) ){
25
- define ('ECWD_VERSION',"1.0.80");
26
  }
27
 
28
  add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
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.81
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
22
  }
23
 
24
  if(! defined( 'ECWD_VERSION' ) ){
25
+ define ('ECWD_VERSION',"1.0.81");
26
  }
27
 
28
  add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
ecwd_admin_class.php CHANGED
@@ -6,7 +6,7 @@
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
- protected $version = '1.0.80';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
@@ -80,13 +80,33 @@ class ECWD_Admin {
80
  add_option('ecwd_old_events', 0);
81
  }
82
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  include_once ECWD_DIR . '/includes/ecwd_config.php';
84
  $conf = ECWD_Config::get_instance();
85
  $conf->update_conf_file();
86
  if (get_option("ecwd_version") == false) {
87
  self::fix_events_locations();
88
- update_option('ecwd_version', ECWD_VERSION);
89
  }
 
90
  }
91
 
92
  static function fix_events_locations(){
@@ -117,9 +137,9 @@ class ECWD_Admin {
117
  }
118
 
119
  }
120
-
121
  public static function uninstall() {
122
-
123
  }
124
 
125
  public function add_plugin_admin_menu() {
@@ -455,7 +475,7 @@ class ECWD_Admin {
455
  wp_enqueue_style('thickbox');
456
  wp_enqueue_script('thickbox');
457
  }
458
-
459
  $gmap_key = (isset($ecwd_options['gmap_key'])) ? $ecwd_options['gmap_key'] : "";
460
  $params['gmap_style'] = (isset($ecwd_options['gmap_style'])) ? $ecwd_options['gmap_style'] : "";
461
 
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.81';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
80
  add_option('ecwd_old_events', 0);
81
  }
82
  }
83
+
84
+ $calendars = get_posts(array(
85
+ 'post_type' => 'ecwd_calendar',
86
+ ));
87
+
88
+ $blue_theme = get_page_by_title('Default', 'OBJECT', 'ecwd_theme');
89
+ $blue_id = (isset($blue_theme->ID)) ? $blue_theme->ID : 0;
90
+
91
+ $calendar = get_posts($calendars);
92
+ if (!empty($calendar)) {
93
+ foreach ($calendars as $calendar) {
94
+ $theme_id = get_post_meta($calendar->ID, 'ecwd_calendar_theme', true);
95
+ if ($theme_id == $blue_id) {
96
+ update_post_meta($calendar->ID, 'ecwd_calendar_theme', "calendar");
97
+ } else {
98
+ update_post_meta($calendar->ID, 'ecwd_calendar_theme', "calendar_grey");
99
+ }
100
+ }
101
+ }
102
+
103
  include_once ECWD_DIR . '/includes/ecwd_config.php';
104
  $conf = ECWD_Config::get_instance();
105
  $conf->update_conf_file();
106
  if (get_option("ecwd_version") == false) {
107
  self::fix_events_locations();
 
108
  }
109
+ update_option('ecwd_version', ECWD_VERSION);
110
  }
111
 
112
  static function fix_events_locations(){
137
  }
138
 
139
  }
140
+
141
  public static function uninstall() {
142
+
143
  }
144
 
145
  public function add_plugin_admin_menu() {
475
  wp_enqueue_style('thickbox');
476
  wp_enqueue_script('thickbox');
477
  }
478
+
479
  $gmap_key = (isset($ecwd_options['gmap_key'])) ? $ecwd_options['gmap_key'] : "";
480
  $params['gmap_style'] = (isset($ecwd_options['gmap_style'])) ? $ecwd_options['gmap_style'] : "";
481
 
ecwd_class.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
  class ECWD {
8
 
9
- protected $version = '1.0.80';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
6
  */
7
  class ECWD {
8
 
9
+ protected $version = '1.0.81';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
includes/calendar-class.php CHANGED
@@ -429,7 +429,7 @@
429
  }
430
  $html .= '</div></div></div>';
431
  } else {
432
- $html .= '<div class="ecwd-list-date" itemprop="startDate" content="' . date('Y-m-d', strtotime($event['from'])) . 'T' . date('H:i', strtotime($event['starttime'])) . '">' . __(date('d', strtotime($event['from'])), 'ecwd') . '</div>';
433
  $html .= '<span class="ecwd_hidden" itemprop="endDate" content="' . date('Y-m-d', strtotime($event['to'])) . 'T' . date('H:i', strtotime($event['endtime'])) . '"></span>';
434
  }
435
  $html .= '<div class="event-main-content">';
@@ -470,7 +470,7 @@
470
  }
471
  $html .= $eventtime;
472
  if ($event['from'] != '') { // event details - hidden until clicked (full)
473
- $eventdate = '<div class="ecwd-date"><span class="metainfo"> ' . date($this->dateformat, strtotime($event['from']));
474
  if ($event['to'] != '' && strtotime($event['to']) !== strtotime($event['from'])) {
475
  $eventdate .= "-" . date($this->dateformat, strtotime($event['to']));
476
  }
429
  }
430
  $html .= '</div></div></div>';
431
  } else {
432
+ $html .= '<div class="ecwd-list-date" itemprop="startDate" content="' . date('Y-m-d', strtotime($event['from'])) . 'T' . date('H:i', $date_key) . '">' . __(date('d', $date_key), 'ecwd') . '</div>';
433
  $html .= '<span class="ecwd_hidden" itemprop="endDate" content="' . date('Y-m-d', strtotime($event['to'])) . 'T' . date('H:i', strtotime($event['endtime'])) . '"></span>';
434
  }
435
  $html .= '<div class="event-main-content">';
470
  }
471
  $html .= $eventtime;
472
  if ($event['from'] != '') { // event details - hidden until clicked (full)
473
+ $eventdate = '<div class="ecwd-date"><span class="metainfo"> ' . date($this->dateformat, $date_key);
474
  if ($event['to'] != '' && strtotime($event['to']) !== strtotime($event['from'])) {
475
  $eventdate .= "-" . date($this->dateformat, strtotime($event['to']));
476
  }
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.7
7
- Stable tag: 1.0.80
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -58,10 +58,10 @@ Upgrade to [WordPress Event Calendar Pro](http://web-dorado.com/products/wordpre
58
  [Export to GCal/ICal](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/export.html)
59
  [Embed](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/embed.html)
60
 
61
- [WordPress Event Calendar WD](http://web-dorado.com/products/wordpress-event-calendar-wd.html)
62
  [Demo](http://wpdemo.web-dorado.com/event-calendar-wd/)
63
- [User Guide](https://web-dorado.com/wordpress-event-calendar-wd/installing.html)
64
- [Support Forum](https://web-dorado.com/forum/wordpress-event-calendar-wd.html)
65
 
66
 
67
  https://www.youtube.com/watch?v=htmdAkRuIzw
@@ -155,6 +155,10 @@ After downloading the ZIP file of the Event Calendar WD plugin,
155
 
156
  == Changelog ==
157
 
 
 
 
 
158
  = 1.0.80 =
159
  * Fixed: Clear cache option notice
160
  * Added: Translations
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.7
7
+ Stable tag: 1.0.81
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
58
  [Export to GCal/ICal](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/export.html)
59
  [Embed](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/embed.html)
60
 
61
+ [WordPress Event Calendar WD](http://web-dorado.com/products/wordpress-event-calendar-wd.html)
62
  [Demo](http://wpdemo.web-dorado.com/event-calendar-wd/)
63
+ [User Guide](https://web-dorado.com/wordpress-event-calendar-wd/installing.html)
64
+ [Support Forum](https://web-dorado.com/forum/wordpress-event-calendar-wd.html)
65
 
66
 
67
  https://www.youtube.com/watch?v=htmdAkRuIzw
155
 
156
  == Changelog ==
157
 
158
+ = 1.0.81 =
159
+ * Fixed: Bug on widget list view
160
+ * Fixed: Styles
161
+
162
  = 1.0.80 =
163
  * Fixed: Clear cache option notice
164
  * Added: Translations