Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.43

Version Description

  • Added: Option for no additional details text
Download this release

Release Info

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

Code changes from version 1.0.42 to 1.0.43

assets/themes.jpg DELETED
Binary file
assets/themes1.jpg ADDED
Binary file
assets/themes2.jpg ADDED
Binary file
assets/themes3.jpg ADDED
Binary file
assets/themes4.jpg ADDED
Binary file
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.42
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.43
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.42';
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.43';
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.42';
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.43';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
includes/calendar-class.php CHANGED
@@ -77,6 +77,7 @@ class Calendar {
77
  public function __construct($type = 'full', $date = '', $staticdisplaytype = false, $widget = 0, $limit = false, $page = 1, $displays = null, $filters = null, $event_search = 'yes', $ecwd_views = array(), $preview) {
78
  // static displaytype
79
  global $ecwd_options;
 
80
  if ( isset( $ecwd_options['date_format'] ) && $ecwd_options['date_format'] != '' ) {
81
  if ( isset( $ecwd_options['date_format'] ) ) {
82
  $this->dateformat = $ecwd_options['date_format'];
@@ -1090,6 +1091,7 @@ class Calendar {
1090
  if ( isset( $cellevent['link'] ) && $cellevent['link'] != '' ) {
1091
  $eventcontent .= '<div class="ecwd-link"> <a href="' . $cellevent['link'] . '" itemprop="url">' . $cellevent['link'] . '</a></div>';
1092
  }
 
1093
  $image = $this->getAndReplaceFirstImage( $cellevent['details'] );
1094
  if ( $cellevent['details'] != '' || has_post_thumbnail( $cellevent['id'] ) || $cellevent['image'] ) {
1095
  $eventcontent .= '<div class="ecwd-detalis" itemprop="description">';
@@ -1148,6 +1150,7 @@ class Calendar {
1148
  foreach ( $cellevents as $cellevent ) {
1149
 
1150
  $image_class = '';
 
1151
  $image = $this->getAndReplaceFirstImage( $cellevent['details'] );
1152
  if ( ! has_post_thumbnail( $cellevent['id'] ) && $cellevent['image'] == "" ) {
1153
  $image_class = "ecwd-no-image";
77
  public function __construct($type = 'full', $date = '', $staticdisplaytype = false, $widget = 0, $limit = false, $page = 1, $displays = null, $filters = null, $event_search = 'yes', $ecwd_views = array(), $preview) {
78
  // static displaytype
79
  global $ecwd_options;
80
+ $this->eventemptytext = isset($ecwd_options['event_default_description']) ? $ecwd_options['event_default_description'] : $this->eventemptytext;
81
  if ( isset( $ecwd_options['date_format'] ) && $ecwd_options['date_format'] != '' ) {
82
  if ( isset( $ecwd_options['date_format'] ) ) {
83
  $this->dateformat = $ecwd_options['date_format'];
1091
  if ( isset( $cellevent['link'] ) && $cellevent['link'] != '' ) {
1092
  $eventcontent .= '<div class="ecwd-link"> <a href="' . $cellevent['link'] . '" itemprop="url">' . $cellevent['link'] . '</a></div>';
1093
  }
1094
+ $cellevent['details'] = $cellevent['details'] == '' ? $this->eventemptytext : $cellevent['details'];
1095
  $image = $this->getAndReplaceFirstImage( $cellevent['details'] );
1096
  if ( $cellevent['details'] != '' || has_post_thumbnail( $cellevent['id'] ) || $cellevent['image'] ) {
1097
  $eventcontent .= '<div class="ecwd-detalis" itemprop="description">';
1150
  foreach ( $cellevents as $cellevent ) {
1151
 
1152
  $image_class = '';
1153
+ $cellevent['details'] = $cellevent['details'] == '' ? $this->eventemptytext : $cellevent['details'];
1154
  $image = $this->getAndReplaceFirstImage( $cellevent['details'] );
1155
  if ( ! has_post_thumbnail( $cellevent['id'] ) && $cellevent['image'] == "" ) {
1156
  $image_class = "ecwd-no-image";
includes/ecwd-display-class.php CHANGED
@@ -385,19 +385,19 @@ class ECWD_Display {
385
  }
386
  }
387
  }
 
388
  if ( isset( $terms['0']['color'] ) ) {
389
  $color = $terms['0']['color'];
390
  } else {
391
  $color = '';
392
  }
393
  $catIds = array();
394
- if ( $terms ) {
395
  foreach ( $terms as $term ) {
396
  if ( isset( $term['id'] ) ) {
397
  $catIds[] = $term['id'];
398
  }
399
  }
400
- }
401
  if ( isset( $this->search['categories'] ) && $this->search['categories'] > 0 ) {
402
  if ( ! array_intersect( $this->search['categories'], $catIds ) ) {
403
  continue;
385
  }
386
  }
387
  }
388
+ if ( $terms ) {
389
  if ( isset( $terms['0']['color'] ) ) {
390
  $color = $terms['0']['color'];
391
  } else {
392
  $color = '';
393
  }
394
  $catIds = array();
 
395
  foreach ( $terms as $term ) {
396
  if ( isset( $term['id'] ) ) {
397
  $catIds[] = $term['id'];
398
  }
399
  }
400
+ }
401
  if ( isset( $this->search['categories'] ) && $this->search['categories'] > 0 ) {
402
  if ( ! array_intersect( $this->search['categories'], $catIds ) ) {
403
  continue;
includes/register-settings.php CHANGED
@@ -166,7 +166,15 @@ function ecwd_register_settings() {
166
  'name' => __('Display Events in popup', 'ecwd'),
167
  'desc' => __('Check to display events in popup.', 'ecwd'),
168
  'type' => 'checkbox'
169
- )
 
 
 
 
 
 
 
 
170
  ),
171
  'category_archive' => array(
172
  'category_archive_slug' => array(
166
  'name' => __('Display Events in popup', 'ecwd'),
167
  'desc' => __('Check to display events in popup.', 'ecwd'),
168
  'type' => 'checkbox'
169
+ ),
170
+ 'event_default_description' => array(
171
+ 'id' => 'event_default_description',
172
+ 'name' => __('Description for events.', 'ecwd'),
173
+ 'default' => __('No additional detail for this event.', 'ecwd'),
174
+ 'desc' => __('Define the default text for empty events description.', 'ecwd'),
175
+ 'size' => 'medium-text',
176
+ 'type' => 'text'
177
+ ),
178
  ),
179
  'category_archive' => array(
180
  'category_archive_slug' => array(
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
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
- Stable tag: 1.0.42
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -144,6 +144,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
144
 
145
  == Changelog ==
146
 
 
 
 
147
  = 1.0.42 =
148
  * Fixed: Google structured data errors
149
  * Changed: Event hover popup styles
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
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
+ Stable tag: 1.0.43
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
144
 
145
  == Changelog ==
146
 
147
+ = 1.0.43 =
148
+ * Added: Option for no additional details text
149
+
150
  = 1.0.42 =
151
  * Fixed: Google structured data errors
152
  * Changed: Event hover popup styles
views/admin/ecwd-theme-meta.php CHANGED
@@ -18,7 +18,13 @@ global $post;
18
  <br/>
19
  <div class="ecwd-meta-control">
20
  <img width="100%" height="100%"
21
- src="<?php echo plugins_url( '/assets/themes.jpg', ECWD_MAIN_FILE ); ?>">
 
 
 
 
 
 
22
  </div>
23
  </div>
24
  </div>
18
  <br/>
19
  <div class="ecwd-meta-control">
20
  <img width="100%" height="100%"
21
+ src="<?php echo plugins_url( '/assets/themes1.jpg', ECWD_MAIN_FILE ); ?>">
22
+ <img width="100%" height="100%"
23
+ src="<?php echo plugins_url( '/assets/themes4.jpg', ECWD_MAIN_FILE ); ?>">
24
+ <img width="100%" height="100%"
25
+ src="<?php echo plugins_url( '/assets/themes3.jpg', ECWD_MAIN_FILE ); ?>">
26
+ <img width="100%" height="100%"
27
+ src="<?php echo plugins_url( '/assets/themes2.jpg', ECWD_MAIN_FILE ); ?>">
28
  </div>
29
  </div>
30
  </div>