All-in-One Event Calendar - Version 2.5.37

Version Description

Download this release

Release Info

Developer calvinyeh
Plugin Icon 128x128 All-in-One Event Calendar
Version 2.5.37
Comparing to
See all releases

Code changes from version 2.5.36 to 2.5.37

all-in-one-event-calendar.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A calendar system with month, week, day, agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
6
  * Author: Time.ly Network Inc.
7
  * Author URI: https://time.ly/
8
- * Version: 2.5.36
9
  * Text Domain: all-in-one-event-calendar
10
  * Domain Path: /language
11
  */
5
  * Description: A calendar system with month, week, day, agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
6
  * Author: Time.ly Network Inc.
7
  * Author URI: https://time.ly/
8
+ * Version: 2.5.37
9
  * Text Domain: all-in-one-event-calendar
10
  * Domain Path: /language
11
  */
app/config/constants.php CHANGED
@@ -50,7 +50,7 @@ function ai1ec_initiate_constants( $ai1ec_base_dir, $ai1ec_base_url ) {
50
  // = Plugin Version =
51
  // ==================
52
  if ( ! defined( 'AI1EC_VERSION' ) ) {
53
- define( 'AI1EC_VERSION', '2.5.36' );
54
  }
55
 
56
  // ================
50
  // = Plugin Version =
51
  // ==================
52
  if ( ! defined( 'AI1EC_VERSION' ) ) {
53
+ define( 'AI1EC_VERSION', '2.5.37' );
54
  }
55
 
56
  // ================
app/model/event/instance.php CHANGED
@@ -104,7 +104,7 @@ class Ai1ec_Event_Instance extends Ai1ec_Base {
104
  $wdate = $startdate = $enddate
105
  = $this->_parsed_date_array( $_start, $timezone );
106
  $enddate['year'] = $enddate['year'] + 10;
107
- $exclude_dates = array();
108
  $recurrence_dates = array();
109
  if ( $recurrence_dates = $event->get( 'recurrence_dates' ) ) {
110
  $recurrence_dates = $this->_populate_recurring_dates(
@@ -114,7 +114,7 @@ class Ai1ec_Event_Instance extends Ai1ec_Base {
114
  );
115
  }
116
  if ( $exception_dates = $event->get( 'exception_dates' ) ) {
117
- $exclude_dates = $this->_populate_recurring_dates(
118
  $exception_dates,
119
  $startdate,
120
  $timezone
@@ -148,7 +148,7 @@ class Ai1ec_Event_Instance extends Ai1ec_Base {
148
  $startTime = $startHour . $startMinute . $startSecond;
149
  // Convert to timestamp
150
  if ( is_array( $exclude_dates ) ) {
151
- $new_exclude_dates = [];
152
  foreach ( $exclude_dates as $key => $value ) {
153
  $timestamp = strtotime( $key . 'T' . $startTime );
154
  $new_exclude_dates[$timestamp] = $value;
@@ -180,7 +180,7 @@ class Ai1ec_Event_Instance extends Ai1ec_Base {
180
  $startTime = $startHour . $startMinute . $startSecond;
181
  // Convert to timestamp
182
  if ( is_array( $recurrence_dates ) ) {
183
- $new_recurrence_dates = [];
184
  foreach ( $recurrence_dates as $key => $value ) {
185
  $timestamp = strtotime( $key . 'T' . $startTime );
186
  $new_recurrence_dates[$timestamp] = $value;
104
  $wdate = $startdate = $enddate
105
  = $this->_parsed_date_array( $_start, $timezone );
106
  $enddate['year'] = $enddate['year'] + 10;
107
+ $exclude_dates = array();
108
  $recurrence_dates = array();
109
  if ( $recurrence_dates = $event->get( 'recurrence_dates' ) ) {
110
  $recurrence_dates = $this->_populate_recurring_dates(
114
  );
115
  }
116
  if ( $exception_dates = $event->get( 'exception_dates' ) ) {
117
+ $exclude_dates = $this->_populate_recurring_dates(
118
  $exception_dates,
119
  $startdate,
120
  $timezone
148
  $startTime = $startHour . $startMinute . $startSecond;
149
  // Convert to timestamp
150
  if ( is_array( $exclude_dates ) ) {
151
+ $new_exclude_dates = array();
152
  foreach ( $exclude_dates as $key => $value ) {
153
  $timestamp = strtotime( $key . 'T' . $startTime );
154
  $new_exclude_dates[$timestamp] = $value;
180
  $startTime = $startHour . $startMinute . $startSecond;
181
  // Convert to timestamp
182
  if ( is_array( $recurrence_dates ) ) {
183
+ $new_recurrence_dates = array();
184
  foreach ( $recurrence_dates as $key => $value ) {
185
  $timestamp = strtotime( $key . 'T' . $startTime );
186
  $new_recurrence_dates[$timestamp] = $value;
language/all-in-one-event-calendar-de_DE.mo CHANGED
Binary file
language/all-in-one-event-calendar-de_DE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the 2.3 package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2018-12-04 20:11:08+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,7 +12,7 @@ msgstr ""
12
 
13
  #: app/model/settings.php:870
14
  msgid "<div class=\"ai1ec-twitterinfo-wrap\"><b>Twitter</b><br>This feature allows your events to be automatically tweeted before they happen. Great way to add regular content to your twitter roll and keep your audience informed of all your great events. This feature is not yet enabled in your product. Please purchase it as a standalone for a low annual subscription or inside the Core+ bundle. <a target=\"_blank\" href=\"https://time.ly/wordpress-calendar-plugin/addons/\">Click here.</a></div>"
15
- msgstr ""
16
 
17
  #: app/view/admin/settings.php:158
18
  msgid "Twitter"
@@ -20,11 +20,11 @@ msgstr "Twitter"
20
 
21
  #: public/admin/box_support.php:44
22
  msgid "More Features"
23
- msgstr ""
24
 
25
  #: app/view/admin/add-new-event.php:35
26
  msgid "Empower your calendar, build your community"
27
- msgstr ""
28
 
29
  #: app/view/admin/add-new-event.php:50
30
  msgid "<ul class=\"ai1ec-features-list\"><li><a href=\"https://time.ly/hub\" target=\"_blank\">Pull events from other calendars</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Pull events from Facebook</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Add a Newsletter</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Get public event submissions</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Charge people to post events</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Add social sharing</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">And more</a></li></ul>"
@@ -45,6 +45,13 @@ msgid ""
45
  " Any existing markup found within the target will be replaced\n"
46
  " by the calendar."
47
  msgstr ""
 
 
 
 
 
 
 
48
 
49
  #: app/model/settings.php:588
50
  msgid ""
@@ -64,69 +71,74 @@ msgstr ""
64
 
65
  #: app/controller/javascript.php:462
66
  msgid "Please enter a valid Registration URL, starting with https:// or http://."
67
- msgstr ""
68
 
69
  #: app/view/event/single.php:209
70
  msgid "No data"
71
- msgstr ""
72
 
73
  #: public/admin/plugins/ics/import_feed.php:8
74
  msgid "unlimited"
75
- msgstr ""
76
 
77
  #: public/admin/plugins/ics/import_feed.php:45
78
  msgid ""
79
  "<b>You have reached the limit of how many feeds you can import.</b><br>\n"
80
  " Please sign up for EventBoost plan <a href=\"https://time.ly/eventboost/\" target=\"_blank\">here</a>."
81
  msgstr ""
 
 
82
 
83
  #: app/view/admin/settings.php:214
84
  msgid "Calendar Type:"
85
- msgstr ""
86
 
87
  #: app/view/admin/settings.php:216
88
  msgid "Tourism"
89
- msgstr ""
90
 
91
  #: app/view/admin/settings.php:217
92
  msgid "Media"
93
- msgstr ""
94
 
95
  #: app/view/admin/settings.php:218
96
  msgid "Community Hubs"
97
- msgstr ""
98
 
99
  #: app/view/admin/settings.php:219
100
  msgid "Education"
101
- msgstr ""
102
 
103
  #: app/view/admin/settings.php:220
104
  msgid "Venue/Business"
105
- msgstr ""
106
 
107
  #: app/view/admin/settings.php:221
108
  msgid "Artist/Performer"
109
- msgstr ""
110
 
111
  #: app/view/admin/settings.php:222
112
  msgid "Church/Spiritual"
113
- msgstr ""
114
 
115
  #: app/view/admin/settings.php:223
116
  msgid "Association/Group"
117
- msgstr ""
118
 
119
  #: app/view/admin/settings.php:224
120
  msgid "Other"
121
- msgstr ""
122
 
123
  #: app/view/admin/add-new-event.php:337
124
  msgid "Timely Ticketing saves time & money. Create ticketing/registration right here and now. You do not pay any ticketing fees (other than regular PayPal transaction costs). Create as many ticketing/registration as you'd like.<br /><br />Ticketing feature is not enabled for this website. Please sign up for Ticketing plan <a href=\"https://time.ly/tickets-existing-users/\" target=\"_blank\">here</a>."
125
  msgstr ""
 
 
 
126
 
127
  #: app/view/event/single.php:231
128
  msgid "This post was imported from a CSV/ICS file."
129
- msgstr ""
130
 
131
  #: app/view/admin/tickets.php:77 app/view/admin/tickets.php:93
132
  #: app/view/admin/tickets.php:104 app/view/admin/tickets.php:116
@@ -400,7 +412,7 @@ msgstr ""
400
 
401
  #: app/view/admin/add-new-event.php:446
402
  msgid ", email: "
403
- msgstr ""
404
 
405
  #: app/view/admin/add-new-event.php:450
406
  msgid "<span class=\"ai1ec-info-text\">The event was submitted by %s.</span>"
2
  # This file is distributed under the same license as the 2.3 package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2019-03-08 18:38:44+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
12
 
13
  #: app/model/settings.php:870
14
  msgid "<div class=\"ai1ec-twitterinfo-wrap\"><b>Twitter</b><br>This feature allows your events to be automatically tweeted before they happen. Great way to add regular content to your twitter roll and keep your audience informed of all your great events. This feature is not yet enabled in your product. Please purchase it as a standalone for a low annual subscription or inside the Core+ bundle. <a target=\"_blank\" href=\"https://time.ly/wordpress-calendar-plugin/addons/\">Click here.</a></div>"
15
+ msgstr "<div class=\"ai1ec-twitterinfo-wrap\"><b>Twitter</b><br><br>Diese Funktion ermöglicht es, dass deine Events automatisch getwittert werden, bevor sie stattfinden. Eine großartige Möglichkeit, deinem Twitter-Feed regelmäßige Inhalte hinzuzufügen und dein Publikum über all deine großartigen Events auf dem Laufenden zu halten. Diese Funktion ist in deinem Produkt noch nicht aktiviert. Bitte kauf es als Standalone-Version für ein kleines Jahresabonnement oder im Core+ Bundle. <a target=\"_blank\" href=\"https://time.ly/wordpress-calendar-plugin/addons/\" >Klick hier.</a></div>"
16
 
17
  #: app/view/admin/settings.php:158
18
  msgid "Twitter"
20
 
21
  #: public/admin/box_support.php:44
22
  msgid "More Features"
23
+ msgstr "Mehr Funktionen"
24
 
25
  #: app/view/admin/add-new-event.php:35
26
  msgid "Empower your calendar, build your community"
27
+ msgstr "Verbessere deinen Kalender, baue deine Community auf."
28
 
29
  #: app/view/admin/add-new-event.php:50
30
  msgid "<ul class=\"ai1ec-features-list\"><li><a href=\"https://time.ly/hub\" target=\"_blank\">Pull events from other calendars</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Pull events from Facebook</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Add a Newsletter</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Get public event submissions</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Charge people to post events</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">Add social sharing</a></li><li><a href=\"https://time.ly/hub\" target=\"_blank\">And more</a></li></ul>"
45
  " Any existing markup found within the target will be replaced\n"
46
  " by the calendar."
47
  msgstr ""
48
+ "Optional. Benutze diese JavaScript-basierte Verknüpfung, um den \n"
49
+ " Kalender mit einem anderen DOM-Element als dem üblichen Seiteninhalt container\n"
50
+ " zu versehen, wenn du keine passendes Seiten Template\n"
51
+ " für die Kalenderseite erstellen kannst. Zur Verwendung gibst du a\n"
52
+ " <a target=\"_blank\" href=\"https://api.jquery.com/category/selectors/\">\n"
53
+ " jQuery-Selektor</a> ein, der zu einem einzigen DOM-Element evaluiert.\n"
54
+ " Jedes vorhandene Markup, das innerhalb des Ziels gefunden wird, wird durch den Kalender ersetzt."
55
 
56
  #: app/model/settings.php:588
57
  msgid ""
71
 
72
  #: app/controller/javascript.php:462
73
  msgid "Please enter a valid Registration URL, starting with https:// or http://."
74
+ msgstr "Bitte gib eine gültige Registrierungs-URL ein, beginnend mit https:// oder http://."
75
 
76
  #: app/view/event/single.php:209
77
  msgid "No data"
78
+ msgstr "Keine Daten"
79
 
80
  #: public/admin/plugins/ics/import_feed.php:8
81
  msgid "unlimited"
82
+ msgstr "unlimitiert"
83
 
84
  #: public/admin/plugins/ics/import_feed.php:45
85
  msgid ""
86
  "<b>You have reached the limit of how many feeds you can import.</b><br>\n"
87
  " Please sign up for EventBoost plan <a href=\"https://time.ly/eventboost/\" target=\"_blank\">here</a>."
88
  msgstr ""
89
+ "<b> Du hast die Obergrenze der Feeds erreicht, die du importieren kannst.</b><br><br>\n"
90
+ " Bitte meld dich für den EventBoost-Plan <a href=\"https://time.ly/eventboost/\" target=\"_blank\">hier</a> an."
91
 
92
  #: app/view/admin/settings.php:214
93
  msgid "Calendar Type:"
94
+ msgstr "Kalender Typ:"
95
 
96
  #: app/view/admin/settings.php:216
97
  msgid "Tourism"
98
+ msgstr "Tourismus"
99
 
100
  #: app/view/admin/settings.php:217
101
  msgid "Media"
102
+ msgstr "Medien"
103
 
104
  #: app/view/admin/settings.php:218
105
  msgid "Community Hubs"
106
+ msgstr "Community Hubs"
107
 
108
  #: app/view/admin/settings.php:219
109
  msgid "Education"
110
+ msgstr "Bildung"
111
 
112
  #: app/view/admin/settings.php:220
113
  msgid "Venue/Business"
114
+ msgstr "Veranstaltungsort/Unternehmen"
115
 
116
  #: app/view/admin/settings.php:221
117
  msgid "Artist/Performer"
118
+ msgstr "Künstler/Darstellerin"
119
 
120
  #: app/view/admin/settings.php:222
121
  msgid "Church/Spiritual"
122
+ msgstr "Kirche/Geistliches"
123
 
124
  #: app/view/admin/settings.php:223
125
  msgid "Association/Group"
126
+ msgstr "Verein/Gruppe"
127
 
128
  #: app/view/admin/settings.php:224
129
  msgid "Other"
130
+ msgstr "Sonstiges"
131
 
132
  #: app/view/admin/add-new-event.php:337
133
  msgid "Timely Ticketing saves time & money. Create ticketing/registration right here and now. You do not pay any ticketing fees (other than regular PayPal transaction costs). Create as many ticketing/registration as you'd like.<br /><br />Ticketing feature is not enabled for this website. Please sign up for Ticketing plan <a href=\"https://time.ly/tickets-existing-users/\" target=\"_blank\">here</a>."
134
  msgstr ""
135
+ "Frühzeitiger Ticketverkauf spart Zeit und Geld. Erstelle Tickets/Anmeldungen direkt hier und jetzt. Du bezahlst keine Ticketgebühren (außer den regulären PayPal-Transaktionskosten). Erstellen Sie so viele Tickets/Anmeldungen, wie du möchtest.<br /><br /><br />Ticketing-Funktion ist für diese Website nicht aktiviert. Bitte melde dich für den Ticketing-Plan an <a href=\"https://time.ly/tickets-existing-users/\" target=\"_blank\">hier</a>.\n"
136
+ "\n"
137
+ "Übersetzt mit www.DeepL.com/Translator"
138
 
139
  #: app/view/event/single.php:231
140
  msgid "This post was imported from a CSV/ICS file."
141
+ msgstr "Dieser Post wurde aus einer CSV/ICS-Datei importiert."
142
 
143
  #: app/view/admin/tickets.php:77 app/view/admin/tickets.php:93
144
  #: app/view/admin/tickets.php:104 app/view/admin/tickets.php:116
412
 
413
  #: app/view/admin/add-new-event.php:446
414
  msgid ", email: "
415
+ msgstr ", E-Mail:"
416
 
417
  #: app/view/admin/add-new-event.php:450
418
  msgid "<span class=\"ai1ec-info-text\">The event was submitted by %s.</span>"
language/all-in-one-event-calendar-nl_NL.mo CHANGED
Binary file
language/all-in-one-event-calendar-nl_NL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the 2.3 package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2018-12-04 20:10:59+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
@@ -400,7 +400,7 @@ msgstr ""
400
 
401
  #: app/view/admin/add-new-event.php:446
402
  msgid ", email: "
403
- msgstr ""
404
 
405
  #: app/view/admin/add-new-event.php:450
406
  msgid "<span class=\"ai1ec-info-text\">The event was submitted by %s.</span>"
2
  # This file is distributed under the same license as the 2.3 package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2019-01-02 15:00:45+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
400
 
401
  #: app/view/admin/add-new-event.php:446
402
  msgid ", email: "
403
+ msgstr ", email:"
404
 
405
  #: app/view/admin/add-new-event.php:450
406
  msgid "<span class=\"ai1ec-info-text\">The event was submitted by %s.</span>"
language/all-in-one-event-calendar.mo CHANGED
Binary file
language/all-in-one-event-calendar.po CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2018 All-in-One Event Calendar by Time.ly
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.36\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
- "POT-Creation-Date: 2018-12-18 18:37:38+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2018-12-18 18:37+0000\n"
12
  "Last-Translator: Timely <support@time.ly>\n"
13
  "Language-Team:\n"
14
 
@@ -2637,7 +2637,7 @@ msgstr ""
2637
  "page. Do not attempt to embed the calendar via shortcode in a page that "
2638
  "already displays the calendar."
2639
 
2640
- #: lib/import-export/ics.php:879
2641
  msgid "Tickets: "
2642
  msgstr "Tickets: "
2643
 
1
+ # Copyright (C) 2019 All-in-One Event Calendar by Time.ly
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.37\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
+ "POT-Creation-Date: 2019-03-08 18:39:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2019-03-08 18:39+0000\n"
12
  "Last-Translator: Timely <support@time.ly>\n"
13
  "Language-Team:\n"
14
 
2637
  "page. Do not attempt to embed the calendar via shortcode in a page that "
2638
  "already displays the calendar."
2639
 
2640
+ #: lib/import-export/ics.php:884
2641
  msgid "Tickets: "
2642
  msgstr "Tickets: "
2643
 
language/all-in-one-event-calendar.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2018 All-in-One Event Calendar by Time.ly
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.36\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
- "POT-Creation-Date: 2018-12-18 18:37:38+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
@@ -2389,7 +2389,7 @@ msgid ""
2389
  "already displays the calendar."
2390
  msgstr ""
2391
 
2392
- #: lib/import-export/ics.php:879
2393
  msgid "Tickets: "
2394
  msgstr ""
2395
 
1
+ # Copyright (C) 2019 All-in-One Event Calendar by Time.ly
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.37\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
+ "POT-Creation-Date: 2019-03-08 18:39:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
2389
  "already displays the calendar."
2390
  msgstr ""
2391
 
2392
+ #: lib/import-export/ics.php:884
2393
  msgid "Tickets: "
2394
  msgstr ""
2395
 
lib/bootstrap/loader-map.php CHANGED
@@ -2929,12 +2929,6 @@
2929
  'c' => '__TwigTemplate_5438397cd9464722671fd647af1253048c35b31f97a6d5372f3c78b5bc143543',
2930
  'i' => 'g',
2931
  ),
2932
- '__TwigTemplate_57450188512a8737525f2a834d1b88782d9a19e5e6d3a9e57df3dbed47bab219' =>
2933
- array (
2934
- 'f' => AI1EC_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'twig' . DIRECTORY_SEPARATOR . '57' . DIRECTORY_SEPARATOR . '45' . DIRECTORY_SEPARATOR . '0188512a8737525f2a834d1b88782d9a19e5e6d3a9e57df3dbed47bab219.php',
2935
- 'c' => '__TwigTemplate_57450188512a8737525f2a834d1b88782d9a19e5e6d3a9e57df3dbed47bab219',
2936
- 'i' => 'g',
2937
- ),
2938
  '__TwigTemplate_5ca1499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4' =>
2939
  array (
2940
  'f' => AI1EC_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'twig' . DIRECTORY_SEPARATOR . '5c' . DIRECTORY_SEPARATOR . 'a1' . DIRECTORY_SEPARATOR . '499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4.php',
@@ -4932,12 +4926,6 @@
4932
  'c' => '__TwigTemplate_5438397cd9464722671fd647af1253048c35b31f97a6d5372f3c78b5bc143543',
4933
  'i' => 'g',
4934
  ),
4935
- 'twig.57.45.0188512a8737525f2a834d1b88782d9a19e5e6d3a9e57df3dbed47bab219' =>
4936
- array (
4937
- 'f' => AI1EC_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'twig' . DIRECTORY_SEPARATOR . '57' . DIRECTORY_SEPARATOR . '45' . DIRECTORY_SEPARATOR . '0188512a8737525f2a834d1b88782d9a19e5e6d3a9e57df3dbed47bab219.php',
4938
- 'c' => '__TwigTemplate_57450188512a8737525f2a834d1b88782d9a19e5e6d3a9e57df3dbed47bab219',
4939
- 'i' => 'g',
4940
- ),
4941
  'twig.5c.a1.499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4' =>
4942
  array (
4943
  'f' => AI1EC_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'twig' . DIRECTORY_SEPARATOR . '5c' . DIRECTORY_SEPARATOR . 'a1' . DIRECTORY_SEPARATOR . '499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4.php',
2929
  'c' => '__TwigTemplate_5438397cd9464722671fd647af1253048c35b31f97a6d5372f3c78b5bc143543',
2930
  'i' => 'g',
2931
  ),
 
 
 
 
 
 
2932
  '__TwigTemplate_5ca1499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4' =>
2933
  array (
2934
  'f' => AI1EC_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'twig' . DIRECTORY_SEPARATOR . '5c' . DIRECTORY_SEPARATOR . 'a1' . DIRECTORY_SEPARATOR . '499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4.php',
4926
  'c' => '__TwigTemplate_5438397cd9464722671fd647af1253048c35b31f97a6d5372f3c78b5bc143543',
4927
  'i' => 'g',
4928
  ),
 
 
 
 
 
 
4929
  'twig.5c.a1.499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4' =>
4930
  array (
4931
  'f' => AI1EC_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'twig' . DIRECTORY_SEPARATOR . '5c' . DIRECTORY_SEPARATOR . 'a1' . DIRECTORY_SEPARATOR . '499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4.php',
lib/import-export/ics.php CHANGED
@@ -1,7 +1,8 @@
1
  <?php
2
 
3
- use kigkonsult\iCalcreator\vcalendar;
4
  use kigkonsult\iCalcreator\timezoneHandler;
 
5
 
6
  /**
7
  * The ics import/export engine.
@@ -40,9 +41,7 @@ class Ai1ec_Ics_Import_Export_Engine
40
  */
41
  public function export( array $arguments, array $params = array() ) {
42
  $vparams = array();
43
- if ( isset( $params['xml'] ) && true === $params['xml'] ) {
44
- $vparams['format'] = 'xcal';
45
- }
46
  $c = new vcalendar( $vparams );
47
  $c->setProperty( 'calscale', 'GREGORIAN' );
48
  $c->setProperty( 'method', 'PUBLISH' );
@@ -80,7 +79,13 @@ class Ai1ec_Ics_Import_Export_Engine
80
  }
81
  $this->_registry->get( 'controller.content-filter' )
82
  ->restore_the_content_filters();
83
- $str = ltrim( $c->createCalendar() );
 
 
 
 
 
 
84
  return $str;
85
  }
86
 
1
  <?php
2
 
3
+ use kigkonsult\iCalcreator\iCalXML;
4
  use kigkonsult\iCalcreator\timezoneHandler;
5
+ use kigkonsult\iCalcreator\vcalendar;
6
 
7
  /**
8
  * The ics import/export engine.
41
  */
42
  public function export( array $arguments, array $params = array() ) {
43
  $vparams = array();
44
+
 
 
45
  $c = new vcalendar( $vparams );
46
  $c->setProperty( 'calscale', 'GREGORIAN' );
47
  $c->setProperty( 'method', 'PUBLISH' );
79
  }
80
  $this->_registry->get( 'controller.content-filter' )
81
  ->restore_the_content_filters();
82
+
83
+ if ( isset( $params['xml'] ) && true === $params['xml'] ) {
84
+ $str = iCalXML::iCal2XML( $c );
85
+ } else {
86
+ $str = ltrim( $c->createCalendar() );
87
+ }
88
+
89
  return $str;
90
  }
91
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: uchu, calvinyeh, raquelleira, renatotbueno, domanb, elirenato, hubrik, vtowel, yani.iliev, nicolapeluchetti, jbutkus, lpawlik, bangelov
3
  Tags: calendar, event, ical, feed, ics, icalendar, sync, aggregator, google, venue, calendar widget, events widget
4
  Requires at least: 3.5
5
- Tested up to: 5.0.2
6
- Stable tag: 2.5.36
7
  Requires PHP: 5.4
8
  License: GNU General Public License, version 3 (GPL-3.0)
9
 
@@ -124,8 +124,12 @@ You can help translate by going to [https://translate.time.ly](https://translate
124
 
125
  == Changelog ==
126
 
 
 
 
 
127
  = Version 2.5.36 =
128
- * Updating and fixing compatibility with CSV addon
129
 
130
  = Version 2.5.35 =
131
  * Bumping version
2
  Contributors: uchu, calvinyeh, raquelleira, renatotbueno, domanb, elirenato, hubrik, vtowel, yani.iliev, nicolapeluchetti, jbutkus, lpawlik, bangelov
3
  Tags: calendar, event, ical, feed, ics, icalendar, sync, aggregator, google, venue, calendar widget, events widget
4
  Requires at least: 3.5
5
+ Tested up to: 5.1
6
+ Stable tag: 2.5.37
7
  Requires PHP: 5.4
8
  License: GNU General Public License, version 3 (GPL-3.0)
9
 
124
 
125
  == Changelog ==
126
 
127
+ = Version 2.5.37 =
128
+ * Fixed: Exporting as XML wasn't working as expected.
129
+ * Fixed compatibility with PHP 5.2 and 5.3.
130
+
131
  = Version 2.5.36 =
132
+ * Updating and fixing compatibility with CSV addon.
133
 
134
  = Version 2.5.35 =
135
  * Bumping version