Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.34

Version Description

  • Fixed: Show events issue in list view
  • Increased: Date range of events in venue and organizer pages
  • Added: Event Tickets add-on
Download this release

Release Info

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

Code changes from version 1.0.33 to 1.0.34

assets/ticketing_addon.png ADDED
Binary file
css/style.css CHANGED
@@ -2534,6 +2534,17 @@ table.ecwd_calendar_container > tbody > tr >td{
2534
 
2535
 
2536
 
 
 
 
 
 
 
 
 
 
 
 
2537
  /*
2538
  Default Themes Correction
2539
  */
2534
 
2535
 
2536
 
2537
+ .ecwd-events-tickets-title{
2538
+ color: #000000 !important;
2539
+ }
2540
+
2541
+ .ecwd-events-tickets td{
2542
+
2543
+ color: #000000 !important;
2544
+ border:0px !important;
2545
+ border-top: 1px solid #ededed !important;
2546
+ padding: 6px 10px 6px 0 !important;
2547
+ }
2548
  /*
2549
  Default Themes Correction
2550
  */
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.33
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.34
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.33';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
@@ -201,6 +201,13 @@ class ECWD_Admin {
201
  'icon' => '',
202
  'image' => plugins_url('assets/add_ical.jpg', __FILE__)
203
  ),
 
 
 
 
 
 
 
204
  )
205
  );
206
  include_once( 'views/admin/addons.php' );
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.34';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
201
  'icon' => '',
202
  'image' => plugins_url('assets/add_ical.jpg', __FILE__)
203
  ),
204
+ 'tickets' => array(
205
+ 'name' => 'ECWD Event Tickets',
206
+ 'url' => 'https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/event-tickets.html',
207
+ 'description' => 'Event Tickets Add-on is an easy set up tool for integrating ECWD with WooCommerce to sell tickets for your events.',
208
+ 'icon' => '',
209
+ 'image' => plugins_url('assets/ticketing_addon.png', __FILE__)
210
+ ),
211
  )
212
  );
213
  include_once( 'views/admin/addons.php' );
includes/calendar-class.php CHANGED
@@ -389,10 +389,9 @@ class Calendar {
389
  $this->events = array_slice( $this->events, $offset, $this->listlimit );
390
  }
391
  foreach ( $this->events as $event ) {
 
 
392
  if ( $this->displaytype == 'list' ) { // full event list
393
- if ( strtotime( $event['from'] ) >= strtotime( $this->year . '-' . $this->month . '-1' ) &&
394
- strtotime( $event['from'] ) <= strtotime( date( 'Y-m-t', strtotime( $this->date ) ) )
395
- ) {
396
  $image_class = '';
397
  $image = $this->getAndReplaceFirstImage( $event['details'] );
398
  if ( ! has_post_thumbnail( $event['id'] ) && $event['image'] == "" ) {
389
  $this->events = array_slice( $this->events, $offset, $this->listlimit );
390
  }
391
  foreach ( $this->events as $event ) {
392
+ if ( strtotime( $event['from'] ) >= strtotime( $this->year . '-' . $this->month . '-1' ) &&
393
+ strtotime( $event['from'] ) <= strtotime( date( 'Y-m-t', strtotime( $this->date ) ) ) ) {
394
  if ( $this->displaytype == 'list' ) { // full event list
 
 
 
395
  $image_class = '';
396
  $image = $this->getAndReplaceFirstImage( $event['details'] );
397
  if ( ! has_post_thumbnail( $event['id'] ) && $event['image'] == "" ) {
includes/ecwd-cpt-class.php CHANGED
@@ -20,6 +20,7 @@ class ECWD_Cpt {
20
  add_action( 'init', array( $this, 'setup_cpt' ) );
21
 
22
  add_action( 'pre_get_posts', array( $this, 'add_custom_post_type_to_query' ) );
 
23
  add_action( 'add_meta_boxes', array( $this, 'calendars_cpt_meta' ) );
24
  add_action( 'add_meta_boxes', array( $this, 'events_cpt_meta' ) );
25
  add_action( 'add_meta_boxes', array( $this, 'themes_cpt_meta' ) );
@@ -81,7 +82,7 @@ class ECWD_Cpt {
81
  ) );
82
  add_filter( 'manage_' . ECWD_PLUGIN_PREFIX . '_event_posts_columns', array( $this, 'add_column_headers' ) );
83
 
84
- add_filter( 'template_include', array( $this, 'ecwd_templates' ) );
85
  add_filter( 'request', array( &$this, 'ecwd_archive_order' ) );
86
 
87
  //category filter
@@ -1137,6 +1138,9 @@ class ECWD_Cpt {
1137
 
1138
  function create_taxonomies() {
1139
  // Add new taxonomy, make it hierarchical (like categories)
 
 
 
1140
  $labels = array(
1141
  'name' => _x( 'Event Categories', 'taxonomy general name', 'ecwd' ),
1142
  'singular_name' => _x( 'Event Category', 'taxonomy singular name', 'ecwd' ),
@@ -1157,7 +1161,7 @@ class ECWD_Cpt {
1157
  'show_ui' => true,
1158
  'show_admin_column' => true,
1159
  'query_var' => true,
1160
- 'rewrite' => array( 'slug' => 'event_category' ),
1161
  );
1162
  //register_taxonomy_for_object_type(ECWD_PLUGIN_PREFIX.'_event_category', array(ECWD_PLUGIN_PREFIX.'_event'));
1163
  register_taxonomy( ECWD_PLUGIN_PREFIX . '_event_category', array( ECWD_PLUGIN_PREFIX . '_event' ), $args );
@@ -1311,9 +1315,18 @@ class ECWD_Cpt {
1311
  if ( is_singular( $post_types ) && ! file_exists( get_stylesheet_directory() . '/single-event.php' ) ) {
1312
  $template = ECWD_DIR . '/views/single-event.php';
1313
  }
 
 
 
1314
 
1315
  return $template;
1316
  }
 
 
 
 
 
 
1317
 
1318
  public function delete_transient() {
1319
  try {
20
  add_action( 'init', array( $this, 'setup_cpt' ) );
21
 
22
  add_action( 'pre_get_posts', array( $this, 'add_custom_post_type_to_query' ) );
23
+ add_action( 'pre_get_posts', array( $this, 'category_archive_page_query') );
24
  add_action( 'add_meta_boxes', array( $this, 'calendars_cpt_meta' ) );
25
  add_action( 'add_meta_boxes', array( $this, 'events_cpt_meta' ) );
26
  add_action( 'add_meta_boxes', array( $this, 'themes_cpt_meta' ) );
82
  ) );
83
  add_filter( 'manage_' . ECWD_PLUGIN_PREFIX . '_event_posts_columns', array( $this, 'add_column_headers' ) );
84
 
85
+ add_filter( 'template_include', array( $this, 'ecwd_templates' ),28 );
86
  add_filter( 'request', array( &$this, 'ecwd_archive_order' ) );
87
 
88
  //category filter
1138
 
1139
  function create_taxonomies() {
1140
  // Add new taxonomy, make it hierarchical (like categories)
1141
+ global $ecwd_options;
1142
+ $slug = (isset($ecwd_options['category_archive_slug']) && $ecwd_options['category_archive_slug']!="") ? $ecwd_options['category_archive_slug']: 'event_category';
1143
+
1144
  $labels = array(
1145
  'name' => _x( 'Event Categories', 'taxonomy general name', 'ecwd' ),
1146
  'singular_name' => _x( 'Event Category', 'taxonomy singular name', 'ecwd' ),
1161
  'show_ui' => true,
1162
  'show_admin_column' => true,
1163
  'query_var' => true,
1164
+ 'rewrite' => array( 'slug' => $slug ),
1165
  );
1166
  //register_taxonomy_for_object_type(ECWD_PLUGIN_PREFIX.'_event_category', array(ECWD_PLUGIN_PREFIX.'_event'));
1167
  register_taxonomy( ECWD_PLUGIN_PREFIX . '_event_category', array( ECWD_PLUGIN_PREFIX . '_event' ), $args );
1315
  if ( is_singular( $post_types ) && ! file_exists( get_stylesheet_directory() . '/single-event.php' ) ) {
1316
  $template = ECWD_DIR . '/views/single-event.php';
1317
  }
1318
+ // elseif (is_tax('ecwd_event_category')) {
1319
+ // $template = ECWD_DIR . '/views/taxonomy-ecwd_event_category.php';
1320
+ // }
1321
 
1322
  return $template;
1323
  }
1324
+
1325
+ public function category_archive_page_query($query) {
1326
+ if (is_tax('ecwd_event_category') === true) {
1327
+ $query->query_vars['posts_per_page'] = 5;
1328
+ }
1329
+ }
1330
 
1331
  public function delete_transient() {
1332
  try {
includes/register-settings.php CHANGED
@@ -165,7 +165,8 @@ function ecwd_register_settings() {
165
  'desc' => __('Check to display events in popup.', 'ecwd'),
166
  'type' => 'checkbox'
167
  )
168
- )
 
169
  );
170
  if (1 == get_option('ecwd_old_events')) {
171
  $ecwd_settings['general']['show_repeat_rate'] = array(
@@ -461,6 +462,7 @@ function ecwd_missing_callback($args) {
461
  function ecwd_get_settings() {
462
  $ecwd_tabs = array(
463
  'general' => 'General',
 
464
  'fb' => 'FB settings',
465
  'gcal' => 'Gcal settings',
466
  'ical' => 'Ical settings',
165
  'desc' => __('Check to display events in popup.', 'ecwd'),
166
  'type' => 'checkbox'
167
  )
168
+ ),
169
+
170
  );
171
  if (1 == get_option('ecwd_old_events')) {
172
  $ecwd_settings['general']['show_repeat_rate'] = array(
462
  function ecwd_get_settings() {
463
  $ecwd_tabs = array(
464
  'general' => 'General',
465
+ 'category_archive' => 'Category Archive',
466
  'fb' => 'FB settings',
467
  'gcal' => 'Gcal settings',
468
  'ical' => 'Ical settings',
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Event Calendar WD ===
2
  Contributors: webdorado
3
  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
5
  Requires at least: 3.9
6
  Tested up to: 4.3
7
- Stable tag: 1.0.33
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,9 +43,10 @@ Upgrade to [WordPress Event Calendar Pro](http://web-dorado.com/products/wordpre
43
  * Pro support
44
 
45
  = Event Calendar WD Add-ons: =
46
- [Frontend Event Management Add-on](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/frontend-event-management.html)
 
47
  [Upcoming Events](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/upcoming-events.html)
48
- [Filter Add-on](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/filter.html)
49
  [Countdown](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/countdown.html)
50
  [Google Calendar Integration](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/google-calendar-integration.html)
51
  [iCal Integration](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/ical-integration.html)
@@ -54,10 +55,10 @@ Upgrade to [WordPress Event Calendar Pro](http://web-dorado.com/products/wordpre
54
  [Custom Fields](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/custom-fields.html)
55
  [Views](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/views.html)
56
 
57
- [WordPress Event Calendar WD](http://web-dorado.com/products/wordpress-event-calendar-wd.html)
58
  [Demo](http://wpdemo.web-dorado.com/event-calendar-wd/)
59
- [User Guide](https://web-dorado.com/wordpress-event-calendar-wd/installing.html)
60
- [Support Forum](https://web-dorado.com/forum/wordpress-event-calendar-wd.html)
61
 
62
 
63
  https://www.youtube.com/watch?v=htmdAkRuIzw
@@ -81,7 +82,7 @@ The Event Calendar WD can be also used as an integral part of your site, not sim
81
 
82
 
83
  ###IMPORTANT:
84
- If you think you found a bug in Event Calendar WD or have any problem/question concerning the plugin, please check out [Support Forum](https://web-dorado.com/forum/wordpress-event-calendar-wd.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
85
 
86
 
87
 
@@ -136,10 +137,15 @@ After downloading the ZIP file of the Event Calendar WD plugin,
136
  *Go to your Downloads folder and locate the folder with the Event Calendar WD. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.*
137
  4. Click "Install Now" button.
138
  5. Click "Activate Plugin" button for activating the Event Calendar WD.
139
- 6. If the installation does not succeed, please contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
140
 
141
  == Changelog ==
142
 
 
 
 
 
 
143
  = 1.0.33 =
144
  * Added: Date format option for list, week and day views
145
  * Fixed: "Back" link in single event page
@@ -295,7 +301,7 @@ Click on "Choose file" or drag and drop the zip file of the Event Calendar plugi
295
  Press "Upload and Install" button.
296
  Click on "Activate Plugin" link.
297
 
298
- When the installation succeeds you will be automatically redirected to the plugins page. If any issues occur during the process contact us at info@web-dorado.com.
299
 
300
 
301
  = Creating/Modifying Calendars =
1
  === Event Calendar WD ===
2
  Contributors: webdorado
3
  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.3
7
+ Stable tag: 1.0.34
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
43
  * Pro support
44
 
45
  = Event Calendar WD Add-ons: =
46
+ [Event Tickets Add-on](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/event-tickets.html)
47
+ [Frontend Event Management Add-on](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/frontend-event-management.html)
48
  [Upcoming Events](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/upcoming-events.html)
49
+ [Filter Add-on](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/filter.html)
50
  [Countdown](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/countdown.html)
51
  [Google Calendar Integration](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/google-calendar-integration.html)
52
  [iCal Integration](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/ical-integration.html)
55
  [Custom Fields](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/custom-fields.html)
56
  [Views](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/views.html)
57
 
58
+ [WordPress Event Calendar WD](http://web-dorado.com/products/wordpress-event-calendar-wd.html)
59
  [Demo](http://wpdemo.web-dorado.com/event-calendar-wd/)
60
+ [User Guide](https://web-dorado.com/wordpress-event-calendar-wd/installing.html)
61
+ [Support Forum](https://web-dorado.com/forum/wordpress-event-calendar-wd.html)
62
 
63
 
64
  https://www.youtube.com/watch?v=htmdAkRuIzw
82
 
83
 
84
  ###IMPORTANT:
85
+ If you think you found a bug in Event Calendar WD or have any problem/question concerning the plugin, please check out [Support Forum](https://web-dorado.com/forum/wordpress-event-calendar-wd.html) in our website. If you do not find a solution here, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
86
 
87
 
88
 
137
  *Go to your Downloads folder and locate the folder with the Event Calendar WD. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.*
138
  4. Click "Install Now" button.
139
  5. Click "Activate Plugin" button for activating the Event Calendar WD.
140
+ 6. If the installation does not succeed, please [click here to contact us](https://web-dorado.com/support/contact-us.html).
141
 
142
  == Changelog ==
143
 
144
+ = 1.0.34 =
145
+ * Fixed: Show events issue in list view
146
+ * Increased: Date range of events in venue and organizer pages
147
+ * Added: Event Tickets add-on
148
+
149
  = 1.0.33 =
150
  * Added: Date format option for list, week and day views
151
  * Fixed: "Back" link in single event page
301
  Press "Upload and Install" button.
302
  Click on "Activate Plugin" link.
303
 
304
+ When the installation succeeds you will be automatically redirected to the plugins page. If any issues occur during the process [click here to contact us](https://web-dorado.com/support/contact-us.html).
305
 
306
 
307
  = Creating/Modifying Calendars =
views/ecwd-organizer-content.php CHANGED
@@ -79,7 +79,8 @@ foreach ( $ecwd_events as $ecwd_event ) {
79
  }
80
 
81
  $d = new ECWD_Display( 0, '', '', $today );
82
- $events = $d->get_event_days( $events );
 
83
 
84
 
85
  echo $content;
79
  }
80
 
81
  $d = new ECWD_Display( 0, '', '', $today );
82
+ $max_date = date('Y-m-d', strtotime(( date("Y-m-t", ( strtotime(date('Y-m-d')))) . " +" . ( ( 12 ) ) . " month")));
83
+ $events = $d->get_event_days( $events, 0, date('Y-m-d'), $max_date );
84
 
85
 
86
  echo $content;
views/ecwd-venue-content.php CHANGED
@@ -88,7 +88,8 @@ foreach ( $ecwd_events as $ecwd_event ) {
88
  }
89
 
90
  $d = new ECWD_Display( 0, '', '', $today );
91
- $events = $d->get_event_days( $events );
 
92
 
93
  ?>
94
  <?php
88
  }
89
 
90
  $d = new ECWD_Display( 0, '', '', $today );
91
+ $max_date = date('Y-m-d', strtotime(( date("Y-m-t", ( strtotime(date('Y-m-d')))) . " +" . ( ( 12 ) ) . " month")));
92
+ $events = $d->get_event_days( $events, 0, date('Y-m-d'), $max_date );
93
 
94
  ?>
95
  <?php
views/single-event.php CHANGED
@@ -143,14 +143,16 @@ get_header();
143
  the_post();
144
  ?>
145
  <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
146
-
147
  <div class="ecwd-event" itemscope itemtype="http://schema.org/Event">
148
  <header class="entry-header">
149
  <?php the_title( '<h1 class="ecwd-events-single-event-title summary entry-title" '.$event_title_style.'>', '</h1>' ); ?>
150
  </header>
151
- <?php if(isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']){?>
152
- <a id="ecwd_back_link" href="#">Back</a>
153
- <?php }?>
 
 
154
  <div class="event-detalis">
155
 
156
  <?php ?>
@@ -544,6 +546,7 @@ get_header();
544
 
545
  </div>
546
  <!-- #Related Events-->
 
547
  </div> <!-- #post-x -->
548
  <?php if (comments_open() && $post->comment_status == 'open') { ?>
549
  <div class="ecwd-comments">
143
  the_post();
144
  ?>
145
  <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
146
+ <article>
147
  <div class="ecwd-event" itemscope itemtype="http://schema.org/Event">
148
  <header class="entry-header">
149
  <?php the_title( '<h1 class="ecwd-events-single-event-title summary entry-title" '.$event_title_style.'>', '</h1>' ); ?>
150
  </header>
151
+ <?php if ( isset( $_SERVER['HTTP_REFERER'] ) && $_SERVER['HTTP_REFERER'] ) {
152
+ if ( parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_HOST ) == parse_url( site_url(), PHP_URL_HOST ) ) {?>
153
+ <a id="ecwd_back_link" href="#">Back</a>
154
+ <?php }
155
+ }?>
156
  <div class="event-detalis">
157
 
158
  <?php ?>
546
 
547
  </div>
548
  <!-- #Related Events-->
549
+ </article>
550
  </div> <!-- #post-x -->
551
  <?php if (comments_open() && $post->comment_status == 'open') { ?>
552
  <div class="ecwd-comments">