Version Description
Added: Export to GCal/ICal
Download this release
Release Info
Developer | webdorado |
Plugin | Event Calendar WD – Responsive Event Calendar plugin |
Version | 1.0.53 |
Comparing to | |
See all releases |
Code changes from version 1.0.52 to 1.0.53
- assets/export_addon.png +0 -0
- ecwd.php +1 -1
- ecwd_admin_class.php +16 -9
- ecwd_class.php +1 -1
- includes/calendar-class.php +13 -14
- includes/ecwd-display-class.php +4 -3
- includes/ecwd-functions.php +3 -3
- js/scripts.js +1 -1
- readme.txt +7 -3
assets/export_addon.png
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.
|
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.53
|
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.
|
10 |
protected $ecwd_page = null;
|
11 |
protected $notices = null;
|
12 |
|
@@ -77,9 +77,9 @@ class ECWD_Admin {
|
|
77 |
add_option('ecwd_old_events', 0);
|
78 |
}
|
79 |
}
|
80 |
-
|
81 |
$conf = ECWD_Config::get_instance();
|
82 |
-
$conf->update_conf_file();
|
83 |
}
|
84 |
|
85 |
public static function uninstall() {
|
@@ -174,6 +174,13 @@ class ECWD_Admin {
|
|
174 |
'icon' => '',
|
175 |
'image' => plugins_url('assets/Subscribe.png', __FILE__)
|
176 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
),
|
178 |
'Events Grouping' => array(
|
179 |
'event_filters' => array(
|
@@ -263,16 +270,16 @@ class ECWD_Admin {
|
|
263 |
$post_type = (isset($_GET['post_type']) && $_GET['post_type'] == 'ecwd_calendar');
|
264 |
$page = (isset($_GET['page']) && $_GET['page'] == 'ecwd_config');
|
265 |
$save_config = (isset($_GET['ecwd_save_config']) && $_GET['ecwd_save_config'] == '1');
|
266 |
-
|
267 |
-
$config_obj = ECWD_Config::get_instance();
|
268 |
-
|
269 |
if ($post_type && $page && $save_config) {
|
270 |
-
$config_obj->save_new_config($_POST);
|
271 |
}
|
272 |
-
|
273 |
$configs = $config_obj->get_config();
|
274 |
$response = $config_obj->get_response();
|
275 |
-
$action = $_SERVER['REQUEST_URI'] . '&ecwd_save_config=1';
|
276 |
|
277 |
include(ECWD_DIR . '/views/admin/ecwd-config.php');
|
278 |
}
|
6 |
class ECWD_Admin {
|
7 |
|
8 |
protected static $instance = null;
|
9 |
+
protected $version = '1.0.53';
|
10 |
protected $ecwd_page = null;
|
11 |
protected $notices = null;
|
12 |
|
77 |
add_option('ecwd_old_events', 0);
|
78 |
}
|
79 |
}
|
80 |
+
include_once ECWD_DIR . '/includes/ecwd_config.php';
|
81 |
$conf = ECWD_Config::get_instance();
|
82 |
+
$conf->update_conf_file();
|
83 |
}
|
84 |
|
85 |
public static function uninstall() {
|
174 |
'icon' => '',
|
175 |
'image' => plugins_url('assets/Subscribe.png', __FILE__)
|
176 |
),
|
177 |
+
'ecwd_export' => array(
|
178 |
+
'name' => 'ECWD Export to GCal/ICal',
|
179 |
+
'url' => 'https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/export.html',
|
180 |
+
'description' => 'Export add-on will enable your calendar users to export single or whole month events in CSV and ICS formats and import to their iCalendars and Google calendars.',
|
181 |
+
'icon' => '',
|
182 |
+
'image' => plugins_url('assets/export_addon.png', __FILE__),
|
183 |
+
)
|
184 |
),
|
185 |
'Events Grouping' => array(
|
186 |
'event_filters' => array(
|
270 |
$post_type = (isset($_GET['post_type']) && $_GET['post_type'] == 'ecwd_calendar');
|
271 |
$page = (isset($_GET['page']) && $_GET['page'] == 'ecwd_config');
|
272 |
$save_config = (isset($_GET['ecwd_save_config']) && $_GET['ecwd_save_config'] == '1');
|
273 |
+
|
274 |
+
$config_obj = ECWD_Config::get_instance();
|
275 |
+
|
276 |
if ($post_type && $page && $save_config) {
|
277 |
+
$config_obj->save_new_config($_POST);
|
278 |
}
|
279 |
+
|
280 |
$configs = $config_obj->get_config();
|
281 |
$response = $config_obj->get_response();
|
282 |
+
$action = $_SERVER['REQUEST_URI'] . '&ecwd_save_config=1';
|
283 |
|
284 |
include(ECWD_DIR . '/views/admin/ecwd-config.php');
|
285 |
}
|
ecwd_class.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*/
|
7 |
class ECWD {
|
8 |
|
9 |
-
protected $version = '1.0.
|
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.53';
|
10 |
protected $plugin_name = 'event-calendar-wd';
|
11 |
protected $prefix = 'ecwd';
|
12 |
protected static $instance = null;
|
includes/calendar-class.php
CHANGED
@@ -253,7 +253,7 @@ class Calendar {
|
|
253 |
|
254 |
public function showcal() {
|
255 |
global $cal_ID;
|
256 |
-
global $ecwd_options;
|
257 |
$html = '';
|
258 |
$start_date = strtotime($this->year . '-' . $this->month . '-1');
|
259 |
$end_date = date('Y-m-t', strtotime($this->date));
|
@@ -390,13 +390,14 @@ global $ecwd_options;
|
|
390 |
$ev_counts = 0;
|
391 |
|
392 |
$events_for_list = $this->events;
|
393 |
-
if (!isset($ecwd_options['long_events']) || (isset($ecwd_options['long_events']) && $ecwd_options['long_events'] == '0')) {
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
|
|
|
|
398 |
|
399 |
-
foreach ($events_for_list as $date_key => $events) {
|
400 |
foreach ($events as $event) {
|
401 |
if ($date_key >= $start_date && $date_key <= strtotime($end_date)) {
|
402 |
if ($page_index >= $page * $this->listlimit) {
|
@@ -886,15 +887,13 @@ global $ecwd_options;
|
|
886 |
if (!$date && is_int($day)) {
|
887 |
$date = $this->year . '-' . $this->month . '-' . $day;
|
888 |
}
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
} else {
|
893 |
-
$all_events = array();
|
894 |
-
}
|
895 |
} else {
|
896 |
-
$all_events =
|
897 |
}
|
|
|
898 |
if (is_array($all_events) && $date) { // events array populated from addEvent()
|
899 |
foreach ($all_events as $event) {
|
900 |
//echo $event['from'].'------'.$event['title'].'<br />';
|
253 |
|
254 |
public function showcal() {
|
255 |
global $cal_ID;
|
256 |
+
global $ecwd_options;
|
257 |
$html = '';
|
258 |
$start_date = strtotime($this->year . '-' . $this->month . '-1');
|
259 |
$end_date = date('Y-m-t', strtotime($this->date));
|
390 |
$ev_counts = 0;
|
391 |
|
392 |
$events_for_list = $this->events;
|
393 |
+
/* if (!isset($ecwd_options['long_events']) || (isset($ecwd_options['long_events']) && $ecwd_options['long_events'] == '0')) {
|
394 |
+
$events_for_list = array(
|
395 |
+
$start_date => $events_for_list,
|
396 |
+
);
|
397 |
+
} */
|
398 |
+
|
399 |
+
foreach ($events_for_list as $date_key => $events) {
|
400 |
|
|
|
401 |
foreach ($events as $event) {
|
402 |
if ($date_key >= $start_date && $date_key <= strtotime($end_date)) {
|
403 |
if ($page_index >= $page * $this->listlimit) {
|
887 |
if (!$date && is_int($day)) {
|
888 |
$date = $this->year . '-' . $this->month . '-' . $day;
|
889 |
}
|
890 |
+
|
891 |
+
if (isset($this->events[strtotime($date)])) {
|
892 |
+
$all_events = array_reverse($this->events[strtotime($date)]);
|
|
|
|
|
|
|
893 |
} else {
|
894 |
+
$all_events = array();
|
895 |
}
|
896 |
+
|
897 |
if (is_array($all_events) && $date) { // events array populated from addEvent()
|
898 |
foreach ($all_events as $event) {
|
899 |
//echo $event['from'].'------'.$event['title'].'<br />';
|
includes/ecwd-display-class.php
CHANGED
@@ -1009,7 +1009,10 @@ class ECWD_Display {
|
|
1009 |
$this->events[$long_from][] = $event_data;
|
1010 |
}
|
1011 |
} else {
|
1012 |
-
$this->events[]
|
|
|
|
|
|
|
1013 |
}
|
1014 |
}
|
1015 |
|
@@ -1024,7 +1027,6 @@ class ECWD_Display {
|
|
1024 |
}
|
1025 |
$this->events[] = $event_data;
|
1026 |
}
|
1027 |
-
|
1028 |
function literalDate($timestamp, $weekday) {
|
1029 |
$timestamp = is_numeric($timestamp) ? $timestamp : strtotime($timestamp);
|
1030 |
$month = date('M', $timestamp);
|
@@ -1081,7 +1083,6 @@ class ECWD_Display {
|
|
1081 |
if ($organizers) {
|
1082 |
$cal->add_terms('organizers', $organizers);
|
1083 |
}
|
1084 |
-
|
1085 |
if ($this->events) {
|
1086 |
$cal->addEvents($this->events);
|
1087 |
}
|
1009 |
$this->events[$long_from][] = $event_data;
|
1010 |
}
|
1011 |
} else {
|
1012 |
+
if (!isset($this->events[strtotime($date)])) {
|
1013 |
+
$this->events[strtotime($date)] = array();
|
1014 |
+
}
|
1015 |
+
$this->events[strtotime($date)][] = $event_data;
|
1016 |
}
|
1017 |
}
|
1018 |
|
1027 |
}
|
1028 |
$this->events[] = $event_data;
|
1029 |
}
|
|
|
1030 |
function literalDate($timestamp, $weekday) {
|
1031 |
$timestamp = is_numeric($timestamp) ? $timestamp : strtotime($timestamp);
|
1032 |
$month = date('M', $timestamp);
|
1083 |
if ($organizers) {
|
1084 |
$cal->add_terms('organizers', $organizers);
|
1085 |
}
|
|
|
1086 |
if ($this->events) {
|
1087 |
$cal->addEvents($this->events);
|
1088 |
}
|
includes/ecwd-functions.php
CHANGED
@@ -134,9 +134,9 @@ function ecwd_ajax() {
|
|
134 |
|
135 |
// check to see if the submitted nonce matches with the
|
136 |
// generated nonce
|
137 |
-
if ( ! check_ajax_referer( ECWD_PLUGIN_PREFIX . '_ajax_nonce', ECWD_PLUGIN_PREFIX . '_nonce' ) ) {
|
138 |
-
die( 'Request has failed.' );
|
139 |
-
}
|
140 |
|
141 |
$ids = esc_html( $_POST[ ECWD_PLUGIN_PREFIX . '_calendar_ids' ] );
|
142 |
$args = array();
|
134 |
|
135 |
// check to see if the submitted nonce matches with the
|
136 |
// generated nonce
|
137 |
+
// if ( ! check_ajax_referer( ECWD_PLUGIN_PREFIX . '_ajax_nonce', ECWD_PLUGIN_PREFIX . '_nonce' ) ) {
|
138 |
+
// die( 'Request has failed.' );
|
139 |
+
// }
|
140 |
|
141 |
$ids = esc_html( $_POST[ ECWD_PLUGIN_PREFIX . '_calendar_ids' ] );
|
142 |
$args = array();
|
js/scripts.js
CHANGED
@@ -70,7 +70,7 @@ if (typeof ecwd_js_init != "function")
|
|
70 |
body_class: "ecwd-excluded-events ecwd_popup_body_scroll",
|
71 |
title: "Event Details",
|
72 |
get_ajax_data: function (el) {
|
73 |
-
var date = el.
|
74 |
var data = {
|
75 |
action: 'ecwd_event_popup_ajax',
|
76 |
id: el.attr('class').split('event')[2],
|
70 |
body_class: "ecwd-excluded-events ecwd_popup_body_scroll",
|
71 |
title: "Event Details",
|
72 |
get_ajax_data: function (el) {
|
73 |
+
var date = el.attr('start-date-data');
|
74 |
var data = {
|
75 |
action: 'ecwd_event_popup_ajax',
|
76 |
id: el.attr('class').split('event')[2],
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -54,7 +54,8 @@ Upgrade to [WordPress Event Calendar Pro](http://web-dorado.com/products/wordpre
|
|
54 |
[Facebook Integration](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/facebook-integration.html)
|
55 |
[Import/Export](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/import-export.html)
|
56 |
[Custom Fields](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/custom-fields.html)
|
57 |
-
[Views](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/views.html)
|
|
|
58 |
|
59 |
[WordPress Event Calendar WD](http://web-dorado.com/products/wordpress-event-calendar-wd.html)
|
60 |
[Demo](http://wpdemo.web-dorado.com/event-calendar-wd/)
|
@@ -152,8 +153,11 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
155 |
= 1.0.52 =
|
156 |
-
Added: Mark all days of multi-day event option
|
157 |
|
158 |
= 1.0.51 =
|
159 |
Added: Config page
|
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.53
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
54 |
[Facebook Integration](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/facebook-integration.html)
|
55 |
[Import/Export](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/import-export.html)
|
56 |
[Custom Fields](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/custom-fields.html)
|
57 |
+
[Views](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/views.html)
|
58 |
+
[Export to GCal/ICal](https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/export.html)
|
59 |
|
60 |
[WordPress Event Calendar WD](http://web-dorado.com/products/wordpress-event-calendar-wd.html)
|
61 |
[Demo](http://wpdemo.web-dorado.com/event-calendar-wd/)
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 1.0.53 =
|
157 |
+
Added: Export to GCal/ICal
|
158 |
+
|
159 |
= 1.0.52 =
|
160 |
+
Added: Mark all days of multi-day event option
|
161 |
|
162 |
= 1.0.51 =
|
163 |
Added: Config page
|