All-in-One Event Calendar - Version 2.1.2

Version Description

Download this release

Release Info

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

Code changes from version 2.1.1 to 2.1.2

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: http://time.ly/
8
- * Version: 2.1.1
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: http://time.ly/
8
+ * Version: 2.1.2
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.1.0.10.rc4' );
54
  }
55
 
56
  // ================
50
  // = Plugin Version =
51
  // ==================
52
  if ( ! defined( 'AI1EC_VERSION' ) ) {
53
+ define( 'AI1EC_VERSION', '2.1.2' );
54
  }
55
 
56
  // ================
app/model/settings.php CHANGED
@@ -294,9 +294,10 @@ class Ai1ec_Settings extends Ai1ec_App {
294
  * Do things needed on every plugin upgrade.
295
  */
296
  protected function _perform_upgrade_actions() {
297
- add_action( 'init', 'flush_rewrite_rules' );
298
  $this->_registry->get( 'model.option' )
299
- ->set( 'ai1ec_invalidate_css_cache', true );
 
 
300
  }
301
 
302
  /**
@@ -611,7 +612,7 @@ class Ai1ec_Settings extends Ai1ec_App {
611
  'item' => 'viewing-events',
612
  'label' =>
613
  '<i class="ai1ec-fa ai1ec-fa-lg ai1ec-fa-fw ai1ec-fa-desktop"></i> ' .
614
- Ai1ec_I18n::__( 'Wide screens only ( 1200px)' ),
615
  'type' => 'append',
616
  'append' => 'pixels',
617
  'validator' => 'numeric',
294
  * Do things needed on every plugin upgrade.
295
  */
296
  protected function _perform_upgrade_actions() {
 
297
  $this->_registry->get( 'model.option' )
298
+ ->set( 'ai1ec_force_flush_rewrite_rules', true, true );
299
+ $this->_registry->get( 'model.option' )
300
+ ->set( 'ai1ec_invalidate_css_cache', true, true );
301
  }
302
 
303
  /**
612
  'item' => 'viewing-events',
613
  'label' =>
614
  '<i class="ai1ec-fa ai1ec-fa-lg ai1ec-fa-fw ai1ec-fa-desktop"></i> ' .
615
+ Ai1ec_I18n::__( 'Wide screens only (&#8805; 1200px)' ),
616
  'type' => 'append',
617
  'append' => 'pixels',
618
  'validator' => 'numeric',
language/all-in-one-event-calendar.mo CHANGED
Binary file
language/all-in-one-event-calendar.po CHANGED
@@ -2,13 +2,13 @@
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.1.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
- "POT-Creation-Date: 2014-08-05 15:44:42+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: 2014-08-05 18:44+0300\n"
12
  "Last-Translator: Timely <support@time.ly>\n"
13
  "Language-Team:\n"
14
 
@@ -137,44 +137,44 @@ msgstr "Edit &#8220;%s&#8221;"
137
  msgid "Base Event"
138
  msgstr "Base Event"
139
 
140
- #: app/model/settings.php:342
141
  #: lib/html/element/setting/calendar-page-selector.php:50
142
  msgid "Calendar page"
143
  msgstr "Calendar page"
144
 
145
- #: app/model/settings.php:352
146
  msgid "Week starts on"
147
  msgstr "Week starts on"
148
 
149
- #: app/model/settings.php:365
150
  msgid "Available views"
151
  msgstr "Available views"
152
 
153
- #: app/model/settings.php:373
154
  msgid "Agenda"
155
  msgstr "Agenda"
156
 
157
- #: app/model/settings.php:380
158
  msgid "Day"
159
  msgstr "Day"
160
 
161
- #: app/model/settings.php:387
162
  msgid "Month"
163
  msgstr "Month"
164
 
165
- #: app/model/settings.php:394
166
  msgid "Week"
167
  msgstr "Week"
168
 
169
- #: app/model/settings.php:404
170
  msgid "Timezone"
171
  msgstr "Timezone"
172
 
173
- #: app/model/settings.php:418
174
  msgid "Preselected calendar filters"
175
  msgstr "Preselected calendar filters"
176
 
177
- #: app/model/settings.php:419
178
  msgid ""
179
  "To clear, hold &#8984;/<abbr class=\"initialism\">CTRL</abbr> and click "
180
  "selection."
@@ -182,31 +182,31 @@ msgstr ""
182
  "To clear, hold &#8984;/<abbr class=\"initialism\">CTRL</abbr> and click "
183
  "selection."
184
 
185
- #: app/model/settings.php:434
186
  msgid "Default calendar start date (optional)"
187
  msgstr "Default calendar start date (optional)"
188
 
189
- #: app/model/settings.php:445
190
  msgid "Agenda pages show at most"
191
  msgstr "Agenda pages show at most"
192
 
193
- #: app/model/settings.php:458
194
  msgid "Week/Day view starts at"
195
  msgstr "Week/Day view starts at"
196
 
197
- #: app/model/settings.php:471
198
  msgid "Week/Day view ends at"
199
  msgstr "Week/Day view ends at"
200
 
201
- #: app/model/settings.php:484
202
  msgid "<strong>Word-wrap event stubs</strong> in Month view"
203
  msgstr "<strong>Word-wrap event stubs</strong> in Month view"
204
 
205
- #: app/model/settings.php:487
206
  msgid "Only applies to events that span a single day."
207
  msgstr "Only applies to events that span a single day."
208
 
209
- #: app/model/settings.php:499
210
  msgid ""
211
  "In <span class=\"ai1ec-tooltip-toggle\"\n"
212
  "\t\t\t\t\t\tdata-original-title=\"These include Agenda view,\n"
@@ -220,23 +220,23 @@ msgstr ""
220
  "\t\t\t\t\t\tAgenda-like views</span>, <strong>include all events\n"
221
  "\t\t\t\t\t\tfrom last day shown</strong>"
222
 
223
- #: app/model/settings.php:515
224
  msgid "Keep all events <strong>expanded</strong> in Agenda view"
225
  msgstr "Keep all events <strong>expanded</strong> in Agenda view"
226
 
227
- #: app/model/settings.php:527
228
  msgid "<strong>Show year</strong> in calendar date labels"
229
  msgstr "<strong>Show year</strong> in calendar date labels"
230
 
231
- #: app/model/settings.php:539
232
  msgid "<strong>Show location in event titles</strong> in calendar views"
233
  msgstr "<strong>Show location in event titles</strong> in calendar views"
234
 
235
- #: app/model/settings.php:551
236
  msgid "<strong>Exclude</strong> events from search results"
237
  msgstr "<strong>Exclude</strong> events from search results"
238
 
239
- #: app/model/settings.php:563
240
  msgid ""
241
  "Hide <strong>Subscribe</strong>/<strong>Add to Calendar</strong> buttons in "
242
  "calendar and single event views "
@@ -244,11 +244,11 @@ msgstr ""
244
  "Hide <strong>Subscribe</strong>/<strong>Add to Calendar</strong> buttons in "
245
  "calendar and single event views "
246
 
247
- #: app/model/settings.php:575
248
  msgid " Hide <strong>Google Maps</strong> until clicked"
249
  msgstr " Hide <strong>Google Maps</strong> until clicked"
250
 
251
- #: app/model/settings.php:587
252
  msgid ""
253
  " <strong>Affix filter menu</strong> to top of window when it scrolls out of "
254
  "view"
@@ -256,61 +256,61 @@ msgstr ""
256
  " <strong>Affix filter menu</strong> to top of window when it scrolls out of "
257
  "view"
258
 
259
- #: app/model/settings.php:599
260
  msgid "Offset affixed filter bar vertically by"
261
  msgstr "Offset affixed filter bar vertically by"
262
 
263
- #: app/model/settings.php:614
264
- msgid "Wide screens only ( 1200px)"
265
- msgstr "Wide screens only ( 1200px)"
266
 
267
- #: app/model/settings.php:629
268
  msgid "Tablets only (< 980px)"
269
  msgstr "Tablets only (< 980px)"
270
 
271
- #: app/model/settings.php:644
272
  msgid "Phones only (< 768px)"
273
  msgstr "Phones only (< 768px)"
274
 
275
- #: app/model/settings.php:657
276
  msgid " <strong>Hide featured image</strong> from event details page"
277
  msgstr " <strong>Hide featured image</strong> from event details page"
278
 
279
- #: app/model/settings.php:660
280
  msgid ""
281
  "Select this option if your theme already displays each post's featured image."
282
  msgstr ""
283
  "Select this option if your theme already displays each post's featured image."
284
 
285
- #: app/model/settings.php:671
286
  msgid "Input dates in this format"
287
  msgstr "Input dates in this format"
288
 
289
- #: app/model/settings.php:676
290
  msgid "Default (d/m/yyyy)"
291
  msgstr "Default (d/m/yyyy)"
292
 
293
- #: app/model/settings.php:680
294
  msgid "US (m/d/yyyy)"
295
  msgstr "US (m/d/yyyy)"
296
 
297
- #: app/model/settings.php:684
298
  msgid "ISO 8601 (yyyy-m-d)"
299
  msgstr "ISO 8601 (yyyy-m-d)"
300
 
301
- #: app/model/settings.php:688
302
  msgid "Dotted (m.d.yyyy)"
303
  msgstr "Dotted (m.d.yyyy)"
304
 
305
- #: app/model/settings.php:700
306
  msgid " Use <strong>24h time</strong> in time pickers"
307
  msgstr " Use <strong>24h time</strong> in time pickers"
308
 
309
- #: app/model/settings.php:711
310
  msgid "<strong>Disable address autocomplete</strong> function"
311
  msgstr "<strong>Disable address autocomplete</strong> function"
312
 
313
- #: app/model/settings.php:722
314
  msgid ""
315
  "Use the configured <strong>region</strong> (WordPress locale) to bias the "
316
  "address autocomplete function "
@@ -318,7 +318,7 @@ msgstr ""
318
  "Use the configured <strong>region</strong> (WordPress locale) to bias the "
319
  "address autocomplete function "
320
 
321
- #: app/model/settings.php:738
322
  msgid ""
323
  " Show the old <strong>Post Your Event</strong> button above the calendar to "
324
  "privileged users"
@@ -326,7 +326,7 @@ msgstr ""
326
  " Show the old <strong>Post Your Event</strong> button above the calendar to "
327
  "privileged users"
328
 
329
- #: app/model/settings.php:741
330
  msgid ""
331
  "Install the <a target=\"_blank\" href=\"http://time.ly/\">Interactive "
332
  "Frontend Extension</a> for the <strong>frontend Post Your Event form</"
@@ -336,11 +336,11 @@ msgstr ""
336
  "Frontend Extension</a> for the <strong>frontend Post Your Event form</"
337
  "strong>."
338
 
339
- #: app/model/settings.php:762
340
  msgid "Move calendar into this DOM element"
341
  msgstr "Move calendar into this DOM element"
342
 
343
- #: app/model/settings.php:764
344
  msgid ""
345
  "Optional. Use this JavaScript-based shortcut to place the\n"
346
  "\t\t\t\t\t\tcalendar a DOM element other than the usual page content "
@@ -364,7 +364,7 @@ msgstr ""
364
  "\t\t\t\t\t\tAny existing markup found within the target will be replaced\n"
365
  "\t\t\t\t\t\tby the calendar."
366
 
367
- #: app/model/settings.php:783
368
  msgid ""
369
  "<strong>Skip <tt>in_the_loop()</tt> check </strong> that protects against "
370
  "multiple calendar output"
@@ -372,7 +372,7 @@ msgstr ""
372
  "<strong>Skip <tt>in_the_loop()</tt> check </strong> that protects against "
373
  "multiple calendar output"
374
 
375
- #: app/model/settings.php:786
376
  msgid ""
377
  "Try enabling this option if your calendar does not appear on the calendar "
378
  "page. It is needed for compatibility with a small number of themes that call "
@@ -382,11 +382,11 @@ msgstr ""
382
  "page. It is needed for compatibility with a small number of themes that call "
383
  "<tt>the_content()</tt> from outside of The Loop. Leave disabled otherwise."
384
 
385
- #: app/model/settings.php:798
386
  msgid "Disable <strong>gzip</strong> compression."
387
  msgstr "Disable <strong>gzip</strong> compression."
388
 
389
- #: app/model/settings.php:801
390
  msgid ""
391
  "Use this option if calendar is unresponsive. <a href=\"http://support.time."
392
  "ly/disable-gzip-compression/\">Read more</a> about the issue. (From version "
@@ -396,7 +396,7 @@ msgstr ""
396
  "ly/disable-gzip-compression/\">Read more</a> about the issue. (From version "
397
  "2.1 onwards, gzip is disabled by default for maximum compatibility.)"
398
 
399
- #: app/model/settings.php:813
400
  msgid ""
401
  "<strong>Link CSS</strong> in <code>&lt;head&gt;</code> section when file "
402
  "cache is unavailable."
@@ -404,7 +404,7 @@ msgstr ""
404
  "<strong>Link CSS</strong> in <code>&lt;head&gt;</code> section when file "
405
  "cache is unavailable."
406
 
407
- #: app/model/settings.php:816
408
  msgid ""
409
  "Use this option if file cache is unavailable and you would prefer to serve "
410
  "CSS as a link rather than have it output inline."
@@ -412,11 +412,11 @@ msgstr ""
412
  "Use this option if file cache is unavailable and you would prefer to serve "
413
  "CSS as a link rather than have it output inline."
414
 
415
- #: app/model/settings.php:828
416
  msgid "Current <strong>robots.txt</strong> on this site"
417
  msgstr "Current <strong>robots.txt</strong> on this site"
418
 
419
- #: app/model/settings.php:832
420
  msgid ""
421
  "The Robot Exclusion Standard, also known as the Robots Exclusion Protocol "
422
  "or\n"
@@ -440,7 +440,7 @@ msgstr ""
440
  "\t\t\t\t\t\tYou can change it manually by editing <code>robots.txt</code> in "
441
  "your root WordPress directory."
442
 
443
- #: app/model/settings.php:849
444
  msgid ""
445
  "<strong>Publicize, promote, and share my events</strong> marked as public on "
446
  "the Timely network. (<a href=\"%s\" target=\"_blank\">Learn more »</a>)"
@@ -448,7 +448,7 @@ msgstr ""
448
  "<strong>Publicize, promote, and share my events</strong> marked as public on "
449
  "the Timely network. (<a href=\"%s\" target=\"_blank\">Learn more »</a>)"
450
 
451
- #: app/model/settings.php:872
452
  msgid "Templates cache improves site performance"
453
  msgstr "Templates cache improves site performance"
454
 
@@ -2652,9 +2652,9 @@ msgstr "Today background"
2652
  msgid "All-in-One Event Calendar by Time.ly"
2653
  msgstr "All-in-One Event Calendar by Time.ly"
2654
 
2655
- #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.1) #-#-#-#-#
2656
  #. Plugin URI of the plugin/theme
2657
- #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.1) #-#-#-#-#
2658
  #. Author URI of the plugin/theme
2659
  msgid "http://time.ly/"
2660
  msgstr "http://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.1.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
+ "POT-Creation-Date: 2014-08-07 17:15:51+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: 2014-08-07 20:15+0300\n"
12
  "Last-Translator: Timely <support@time.ly>\n"
13
  "Language-Team:\n"
14
 
137
  msgid "Base Event"
138
  msgstr "Base Event"
139
 
140
+ #: app/model/settings.php:343
141
  #: lib/html/element/setting/calendar-page-selector.php:50
142
  msgid "Calendar page"
143
  msgstr "Calendar page"
144
 
145
+ #: app/model/settings.php:353
146
  msgid "Week starts on"
147
  msgstr "Week starts on"
148
 
149
+ #: app/model/settings.php:366
150
  msgid "Available views"
151
  msgstr "Available views"
152
 
153
+ #: app/model/settings.php:374
154
  msgid "Agenda"
155
  msgstr "Agenda"
156
 
157
+ #: app/model/settings.php:381
158
  msgid "Day"
159
  msgstr "Day"
160
 
161
+ #: app/model/settings.php:388
162
  msgid "Month"
163
  msgstr "Month"
164
 
165
+ #: app/model/settings.php:395
166
  msgid "Week"
167
  msgstr "Week"
168
 
169
+ #: app/model/settings.php:405
170
  msgid "Timezone"
171
  msgstr "Timezone"
172
 
173
+ #: app/model/settings.php:419
174
  msgid "Preselected calendar filters"
175
  msgstr "Preselected calendar filters"
176
 
177
+ #: app/model/settings.php:420
178
  msgid ""
179
  "To clear, hold &#8984;/<abbr class=\"initialism\">CTRL</abbr> and click "
180
  "selection."
182
  "To clear, hold &#8984;/<abbr class=\"initialism\">CTRL</abbr> and click "
183
  "selection."
184
 
185
+ #: app/model/settings.php:435
186
  msgid "Default calendar start date (optional)"
187
  msgstr "Default calendar start date (optional)"
188
 
189
+ #: app/model/settings.php:446
190
  msgid "Agenda pages show at most"
191
  msgstr "Agenda pages show at most"
192
 
193
+ #: app/model/settings.php:459
194
  msgid "Week/Day view starts at"
195
  msgstr "Week/Day view starts at"
196
 
197
+ #: app/model/settings.php:472
198
  msgid "Week/Day view ends at"
199
  msgstr "Week/Day view ends at"
200
 
201
+ #: app/model/settings.php:485
202
  msgid "<strong>Word-wrap event stubs</strong> in Month view"
203
  msgstr "<strong>Word-wrap event stubs</strong> in Month view"
204
 
205
+ #: app/model/settings.php:488
206
  msgid "Only applies to events that span a single day."
207
  msgstr "Only applies to events that span a single day."
208
 
209
+ #: app/model/settings.php:500
210
  msgid ""
211
  "In <span class=\"ai1ec-tooltip-toggle\"\n"
212
  "\t\t\t\t\t\tdata-original-title=\"These include Agenda view,\n"
220
  "\t\t\t\t\t\tAgenda-like views</span>, <strong>include all events\n"
221
  "\t\t\t\t\t\tfrom last day shown</strong>"
222
 
223
+ #: app/model/settings.php:516
224
  msgid "Keep all events <strong>expanded</strong> in Agenda view"
225
  msgstr "Keep all events <strong>expanded</strong> in Agenda view"
226
 
227
+ #: app/model/settings.php:528
228
  msgid "<strong>Show year</strong> in calendar date labels"
229
  msgstr "<strong>Show year</strong> in calendar date labels"
230
 
231
+ #: app/model/settings.php:540
232
  msgid "<strong>Show location in event titles</strong> in calendar views"
233
  msgstr "<strong>Show location in event titles</strong> in calendar views"
234
 
235
+ #: app/model/settings.php:552
236
  msgid "<strong>Exclude</strong> events from search results"
237
  msgstr "<strong>Exclude</strong> events from search results"
238
 
239
+ #: app/model/settings.php:564
240
  msgid ""
241
  "Hide <strong>Subscribe</strong>/<strong>Add to Calendar</strong> buttons in "
242
  "calendar and single event views "
244
  "Hide <strong>Subscribe</strong>/<strong>Add to Calendar</strong> buttons in "
245
  "calendar and single event views "
246
 
247
+ #: app/model/settings.php:576
248
  msgid " Hide <strong>Google Maps</strong> until clicked"
249
  msgstr " Hide <strong>Google Maps</strong> until clicked"
250
 
251
+ #: app/model/settings.php:588
252
  msgid ""
253
  " <strong>Affix filter menu</strong> to top of window when it scrolls out of "
254
  "view"
256
  " <strong>Affix filter menu</strong> to top of window when it scrolls out of "
257
  "view"
258
 
259
+ #: app/model/settings.php:600
260
  msgid "Offset affixed filter bar vertically by"
261
  msgstr "Offset affixed filter bar vertically by"
262
 
263
+ #: app/model/settings.php:615
264
+ msgid "Wide screens only (&#8805; 1200px)"
265
+ msgstr "Wide screens only (&#8805; 1200px)"
266
 
267
+ #: app/model/settings.php:630
268
  msgid "Tablets only (< 980px)"
269
  msgstr "Tablets only (< 980px)"
270
 
271
+ #: app/model/settings.php:645
272
  msgid "Phones only (< 768px)"
273
  msgstr "Phones only (< 768px)"
274
 
275
+ #: app/model/settings.php:658
276
  msgid " <strong>Hide featured image</strong> from event details page"
277
  msgstr " <strong>Hide featured image</strong> from event details page"
278
 
279
+ #: app/model/settings.php:661
280
  msgid ""
281
  "Select this option if your theme already displays each post's featured image."
282
  msgstr ""
283
  "Select this option if your theme already displays each post's featured image."
284
 
285
+ #: app/model/settings.php:672
286
  msgid "Input dates in this format"
287
  msgstr "Input dates in this format"
288
 
289
+ #: app/model/settings.php:677
290
  msgid "Default (d/m/yyyy)"
291
  msgstr "Default (d/m/yyyy)"
292
 
293
+ #: app/model/settings.php:681
294
  msgid "US (m/d/yyyy)"
295
  msgstr "US (m/d/yyyy)"
296
 
297
+ #: app/model/settings.php:685
298
  msgid "ISO 8601 (yyyy-m-d)"
299
  msgstr "ISO 8601 (yyyy-m-d)"
300
 
301
+ #: app/model/settings.php:689
302
  msgid "Dotted (m.d.yyyy)"
303
  msgstr "Dotted (m.d.yyyy)"
304
 
305
+ #: app/model/settings.php:701
306
  msgid " Use <strong>24h time</strong> in time pickers"
307
  msgstr " Use <strong>24h time</strong> in time pickers"
308
 
309
+ #: app/model/settings.php:712
310
  msgid "<strong>Disable address autocomplete</strong> function"
311
  msgstr "<strong>Disable address autocomplete</strong> function"
312
 
313
+ #: app/model/settings.php:723
314
  msgid ""
315
  "Use the configured <strong>region</strong> (WordPress locale) to bias the "
316
  "address autocomplete function "
318
  "Use the configured <strong>region</strong> (WordPress locale) to bias the "
319
  "address autocomplete function "
320
 
321
+ #: app/model/settings.php:739
322
  msgid ""
323
  " Show the old <strong>Post Your Event</strong> button above the calendar to "
324
  "privileged users"
326
  " Show the old <strong>Post Your Event</strong> button above the calendar to "
327
  "privileged users"
328
 
329
+ #: app/model/settings.php:742
330
  msgid ""
331
  "Install the <a target=\"_blank\" href=\"http://time.ly/\">Interactive "
332
  "Frontend Extension</a> for the <strong>frontend Post Your Event form</"
336
  "Frontend Extension</a> for the <strong>frontend Post Your Event form</"
337
  "strong>."
338
 
339
+ #: app/model/settings.php:763
340
  msgid "Move calendar into this DOM element"
341
  msgstr "Move calendar into this DOM element"
342
 
343
+ #: app/model/settings.php:765
344
  msgid ""
345
  "Optional. Use this JavaScript-based shortcut to place the\n"
346
  "\t\t\t\t\t\tcalendar a DOM element other than the usual page content "
364
  "\t\t\t\t\t\tAny existing markup found within the target will be replaced\n"
365
  "\t\t\t\t\t\tby the calendar."
366
 
367
+ #: app/model/settings.php:784
368
  msgid ""
369
  "<strong>Skip <tt>in_the_loop()</tt> check </strong> that protects against "
370
  "multiple calendar output"
372
  "<strong>Skip <tt>in_the_loop()</tt> check </strong> that protects against "
373
  "multiple calendar output"
374
 
375
+ #: app/model/settings.php:787
376
  msgid ""
377
  "Try enabling this option if your calendar does not appear on the calendar "
378
  "page. It is needed for compatibility with a small number of themes that call "
382
  "page. It is needed for compatibility with a small number of themes that call "
383
  "<tt>the_content()</tt> from outside of The Loop. Leave disabled otherwise."
384
 
385
+ #: app/model/settings.php:799
386
  msgid "Disable <strong>gzip</strong> compression."
387
  msgstr "Disable <strong>gzip</strong> compression."
388
 
389
+ #: app/model/settings.php:802
390
  msgid ""
391
  "Use this option if calendar is unresponsive. <a href=\"http://support.time."
392
  "ly/disable-gzip-compression/\">Read more</a> about the issue. (From version "
396
  "ly/disable-gzip-compression/\">Read more</a> about the issue. (From version "
397
  "2.1 onwards, gzip is disabled by default for maximum compatibility.)"
398
 
399
+ #: app/model/settings.php:814
400
  msgid ""
401
  "<strong>Link CSS</strong> in <code>&lt;head&gt;</code> section when file "
402
  "cache is unavailable."
404
  "<strong>Link CSS</strong> in <code>&lt;head&gt;</code> section when file "
405
  "cache is unavailable."
406
 
407
+ #: app/model/settings.php:817
408
  msgid ""
409
  "Use this option if file cache is unavailable and you would prefer to serve "
410
  "CSS as a link rather than have it output inline."
412
  "Use this option if file cache is unavailable and you would prefer to serve "
413
  "CSS as a link rather than have it output inline."
414
 
415
+ #: app/model/settings.php:829
416
  msgid "Current <strong>robots.txt</strong> on this site"
417
  msgstr "Current <strong>robots.txt</strong> on this site"
418
 
419
+ #: app/model/settings.php:833
420
  msgid ""
421
  "The Robot Exclusion Standard, also known as the Robots Exclusion Protocol "
422
  "or\n"
440
  "\t\t\t\t\t\tYou can change it manually by editing <code>robots.txt</code> in "
441
  "your root WordPress directory."
442
 
443
+ #: app/model/settings.php:850
444
  msgid ""
445
  "<strong>Publicize, promote, and share my events</strong> marked as public on "
446
  "the Timely network. (<a href=\"%s\" target=\"_blank\">Learn more »</a>)"
448
  "<strong>Publicize, promote, and share my events</strong> marked as public on "
449
  "the Timely network. (<a href=\"%s\" target=\"_blank\">Learn more »</a>)"
450
 
451
+ #: app/model/settings.php:873
452
  msgid "Templates cache improves site performance"
453
  msgstr "Templates cache improves site performance"
454
 
2652
  msgid "All-in-One Event Calendar by Time.ly"
2653
  msgstr "All-in-One Event Calendar by Time.ly"
2654
 
2655
+ #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.2) #-#-#-#-#
2656
  #. Plugin URI of the plugin/theme
2657
+ #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.2) #-#-#-#-#
2658
  #. Author URI of the plugin/theme
2659
  msgid "http://time.ly/"
2660
  msgstr "http://time.ly/"
language/all-in-one-event-calendar.pot CHANGED
@@ -2,9 +2,9 @@
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.1.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
- "POT-Creation-Date: 2014-08-05 15:44:42+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -117,74 +117,74 @@ msgstr ""
117
  msgid "Base Event"
118
  msgstr ""
119
 
120
- #: app/model/settings.php:342
121
  #: lib/html/element/setting/calendar-page-selector.php:50
122
  msgid "Calendar page"
123
  msgstr ""
124
 
125
- #: app/model/settings.php:352
126
  msgid "Week starts on"
127
  msgstr ""
128
 
129
- #: app/model/settings.php:365
130
  msgid "Available views"
131
  msgstr ""
132
 
133
- #: app/model/settings.php:373
134
  msgid "Agenda"
135
  msgstr ""
136
 
137
- #: app/model/settings.php:380
138
  msgid "Day"
139
  msgstr ""
140
 
141
- #: app/model/settings.php:387
142
  msgid "Month"
143
  msgstr ""
144
 
145
- #: app/model/settings.php:394
146
  msgid "Week"
147
  msgstr ""
148
 
149
- #: app/model/settings.php:404
150
  msgid "Timezone"
151
  msgstr ""
152
 
153
- #: app/model/settings.php:418
154
  msgid "Preselected calendar filters"
155
  msgstr ""
156
 
157
- #: app/model/settings.php:419
158
  msgid ""
159
  "To clear, hold &#8984;/<abbr class=\"initialism\">CTRL</abbr> and click "
160
  "selection."
161
  msgstr ""
162
 
163
- #: app/model/settings.php:434
164
  msgid "Default calendar start date (optional)"
165
  msgstr ""
166
 
167
- #: app/model/settings.php:445
168
  msgid "Agenda pages show at most"
169
  msgstr ""
170
 
171
- #: app/model/settings.php:458
172
  msgid "Week/Day view starts at"
173
  msgstr ""
174
 
175
- #: app/model/settings.php:471
176
  msgid "Week/Day view ends at"
177
  msgstr ""
178
 
179
- #: app/model/settings.php:484
180
  msgid "<strong>Word-wrap event stubs</strong> in Month view"
181
  msgstr ""
182
 
183
- #: app/model/settings.php:487
184
  msgid "Only applies to events that span a single day."
185
  msgstr ""
186
 
187
- #: app/model/settings.php:499
188
  msgid ""
189
  "In <span class=\"ai1ec-tooltip-toggle\"\n"
190
  "\t\t\t\t\t\tdata-original-title=\"These include Agenda view,\n"
@@ -193,115 +193,115 @@ msgid ""
193
  "\t\t\t\t\t\tfrom last day shown</strong>"
194
  msgstr ""
195
 
196
- #: app/model/settings.php:515
197
  msgid "Keep all events <strong>expanded</strong> in Agenda view"
198
  msgstr ""
199
 
200
- #: app/model/settings.php:527
201
  msgid "<strong>Show year</strong> in calendar date labels"
202
  msgstr ""
203
 
204
- #: app/model/settings.php:539
205
  msgid "<strong>Show location in event titles</strong> in calendar views"
206
  msgstr ""
207
 
208
- #: app/model/settings.php:551
209
  msgid "<strong>Exclude</strong> events from search results"
210
  msgstr ""
211
 
212
- #: app/model/settings.php:563
213
  msgid ""
214
  "Hide <strong>Subscribe</strong>/<strong>Add to Calendar</strong> buttons in "
215
  "calendar and single event views "
216
  msgstr ""
217
 
218
- #: app/model/settings.php:575
219
  msgid " Hide <strong>Google Maps</strong> until clicked"
220
  msgstr ""
221
 
222
- #: app/model/settings.php:587
223
  msgid ""
224
  " <strong>Affix filter menu</strong> to top of window when it scrolls out of "
225
  "view"
226
  msgstr ""
227
 
228
- #: app/model/settings.php:599
229
  msgid "Offset affixed filter bar vertically by"
230
  msgstr ""
231
 
232
- #: app/model/settings.php:614
233
- msgid "Wide screens only ( 1200px)"
234
  msgstr ""
235
 
236
- #: app/model/settings.php:629
237
  msgid "Tablets only (< 980px)"
238
  msgstr ""
239
 
240
- #: app/model/settings.php:644
241
  msgid "Phones only (< 768px)"
242
  msgstr ""
243
 
244
- #: app/model/settings.php:657
245
  msgid " <strong>Hide featured image</strong> from event details page"
246
  msgstr ""
247
 
248
- #: app/model/settings.php:660
249
  msgid ""
250
  "Select this option if your theme already displays each post's featured image."
251
  msgstr ""
252
 
253
- #: app/model/settings.php:671
254
  msgid "Input dates in this format"
255
  msgstr ""
256
 
257
- #: app/model/settings.php:676
258
  msgid "Default (d/m/yyyy)"
259
  msgstr ""
260
 
261
- #: app/model/settings.php:680
262
  msgid "US (m/d/yyyy)"
263
  msgstr ""
264
 
265
- #: app/model/settings.php:684
266
  msgid "ISO 8601 (yyyy-m-d)"
267
  msgstr ""
268
 
269
- #: app/model/settings.php:688
270
  msgid "Dotted (m.d.yyyy)"
271
  msgstr ""
272
 
273
- #: app/model/settings.php:700
274
  msgid " Use <strong>24h time</strong> in time pickers"
275
  msgstr ""
276
 
277
- #: app/model/settings.php:711
278
  msgid "<strong>Disable address autocomplete</strong> function"
279
  msgstr ""
280
 
281
- #: app/model/settings.php:722
282
  msgid ""
283
  "Use the configured <strong>region</strong> (WordPress locale) to bias the "
284
  "address autocomplete function "
285
  msgstr ""
286
 
287
- #: app/model/settings.php:738
288
  msgid ""
289
  " Show the old <strong>Post Your Event</strong> button above the calendar to "
290
  "privileged users"
291
  msgstr ""
292
 
293
- #: app/model/settings.php:741
294
  msgid ""
295
  "Install the <a target=\"_blank\" href=\"http://time.ly/\">Interactive "
296
  "Frontend Extension</a> for the <strong>frontend Post Your Event form</"
297
  "strong>."
298
  msgstr ""
299
 
300
- #: app/model/settings.php:762
301
  msgid "Move calendar into this DOM element"
302
  msgstr ""
303
 
304
- #: app/model/settings.php:764
305
  msgid ""
306
  "Optional. Use this JavaScript-based shortcut to place the\n"
307
  "\t\t\t\t\t\tcalendar a DOM element other than the usual page content "
@@ -315,47 +315,47 @@ msgid ""
315
  "\t\t\t\t\t\tby the calendar."
316
  msgstr ""
317
 
318
- #: app/model/settings.php:783
319
  msgid ""
320
  "<strong>Skip <tt>in_the_loop()</tt> check </strong> that protects against "
321
  "multiple calendar output"
322
  msgstr ""
323
 
324
- #: app/model/settings.php:786
325
  msgid ""
326
  "Try enabling this option if your calendar does not appear on the calendar "
327
  "page. It is needed for compatibility with a small number of themes that call "
328
  "<tt>the_content()</tt> from outside of The Loop. Leave disabled otherwise."
329
  msgstr ""
330
 
331
- #: app/model/settings.php:798
332
  msgid "Disable <strong>gzip</strong> compression."
333
  msgstr ""
334
 
335
- #: app/model/settings.php:801
336
  msgid ""
337
  "Use this option if calendar is unresponsive. <a href=\"http://support.time."
338
  "ly/disable-gzip-compression/\">Read more</a> about the issue. (From version "
339
  "2.1 onwards, gzip is disabled by default for maximum compatibility.)"
340
  msgstr ""
341
 
342
- #: app/model/settings.php:813
343
  msgid ""
344
  "<strong>Link CSS</strong> in <code>&lt;head&gt;</code> section when file "
345
  "cache is unavailable."
346
  msgstr ""
347
 
348
- #: app/model/settings.php:816
349
  msgid ""
350
  "Use this option if file cache is unavailable and you would prefer to serve "
351
  "CSS as a link rather than have it output inline."
352
  msgstr ""
353
 
354
- #: app/model/settings.php:828
355
  msgid "Current <strong>robots.txt</strong> on this site"
356
  msgstr ""
357
 
358
- #: app/model/settings.php:832
359
  msgid ""
360
  "The Robot Exclusion Standard, also known as the Robots Exclusion Protocol "
361
  "or\n"
@@ -369,13 +369,13 @@ msgid ""
369
  "your root WordPress directory."
370
  msgstr ""
371
 
372
- #: app/model/settings.php:849
373
  msgid ""
374
  "<strong>Publicize, promote, and share my events</strong> marked as public on "
375
  "the Timely network. (<a href=\"%s\" target=\"_blank\">Learn more »</a>)"
376
  msgstr ""
377
 
378
- #: app/model/settings.php:872
379
  msgid "Templates cache improves site performance"
380
  msgstr ""
381
 
@@ -2477,9 +2477,9 @@ msgstr ""
2477
  msgid "All-in-One Event Calendar by Time.ly"
2478
  msgstr ""
2479
 
2480
- #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.1) #-#-#-#-#
2481
  #. Plugin URI of the plugin/theme
2482
- #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.1) #-#-#-#-#
2483
  #. Author URI of the plugin/theme
2484
  msgid "http://time.ly/"
2485
  msgstr ""
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.1.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
+ "POT-Creation-Date: 2014-08-07 17:15:51+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
117
  msgid "Base Event"
118
  msgstr ""
119
 
120
+ #: app/model/settings.php:343
121
  #: lib/html/element/setting/calendar-page-selector.php:50
122
  msgid "Calendar page"
123
  msgstr ""
124
 
125
+ #: app/model/settings.php:353
126
  msgid "Week starts on"
127
  msgstr ""
128
 
129
+ #: app/model/settings.php:366
130
  msgid "Available views"
131
  msgstr ""
132
 
133
+ #: app/model/settings.php:374
134
  msgid "Agenda"
135
  msgstr ""
136
 
137
+ #: app/model/settings.php:381
138
  msgid "Day"
139
  msgstr ""
140
 
141
+ #: app/model/settings.php:388
142
  msgid "Month"
143
  msgstr ""
144
 
145
+ #: app/model/settings.php:395
146
  msgid "Week"
147
  msgstr ""
148
 
149
+ #: app/model/settings.php:405
150
  msgid "Timezone"
151
  msgstr ""
152
 
153
+ #: app/model/settings.php:419
154
  msgid "Preselected calendar filters"
155
  msgstr ""
156
 
157
+ #: app/model/settings.php:420
158
  msgid ""
159
  "To clear, hold &#8984;/<abbr class=\"initialism\">CTRL</abbr> and click "
160
  "selection."
161
  msgstr ""
162
 
163
+ #: app/model/settings.php:435
164
  msgid "Default calendar start date (optional)"
165
  msgstr ""
166
 
167
+ #: app/model/settings.php:446
168
  msgid "Agenda pages show at most"
169
  msgstr ""
170
 
171
+ #: app/model/settings.php:459
172
  msgid "Week/Day view starts at"
173
  msgstr ""
174
 
175
+ #: app/model/settings.php:472
176
  msgid "Week/Day view ends at"
177
  msgstr ""
178
 
179
+ #: app/model/settings.php:485
180
  msgid "<strong>Word-wrap event stubs</strong> in Month view"
181
  msgstr ""
182
 
183
+ #: app/model/settings.php:488
184
  msgid "Only applies to events that span a single day."
185
  msgstr ""
186
 
187
+ #: app/model/settings.php:500
188
  msgid ""
189
  "In <span class=\"ai1ec-tooltip-toggle\"\n"
190
  "\t\t\t\t\t\tdata-original-title=\"These include Agenda view,\n"
193
  "\t\t\t\t\t\tfrom last day shown</strong>"
194
  msgstr ""
195
 
196
+ #: app/model/settings.php:516
197
  msgid "Keep all events <strong>expanded</strong> in Agenda view"
198
  msgstr ""
199
 
200
+ #: app/model/settings.php:528
201
  msgid "<strong>Show year</strong> in calendar date labels"
202
  msgstr ""
203
 
204
+ #: app/model/settings.php:540
205
  msgid "<strong>Show location in event titles</strong> in calendar views"
206
  msgstr ""
207
 
208
+ #: app/model/settings.php:552
209
  msgid "<strong>Exclude</strong> events from search results"
210
  msgstr ""
211
 
212
+ #: app/model/settings.php:564
213
  msgid ""
214
  "Hide <strong>Subscribe</strong>/<strong>Add to Calendar</strong> buttons in "
215
  "calendar and single event views "
216
  msgstr ""
217
 
218
+ #: app/model/settings.php:576
219
  msgid " Hide <strong>Google Maps</strong> until clicked"
220
  msgstr ""
221
 
222
+ #: app/model/settings.php:588
223
  msgid ""
224
  " <strong>Affix filter menu</strong> to top of window when it scrolls out of "
225
  "view"
226
  msgstr ""
227
 
228
+ #: app/model/settings.php:600
229
  msgid "Offset affixed filter bar vertically by"
230
  msgstr ""
231
 
232
+ #: app/model/settings.php:615
233
+ msgid "Wide screens only (&#8805; 1200px)"
234
  msgstr ""
235
 
236
+ #: app/model/settings.php:630
237
  msgid "Tablets only (< 980px)"
238
  msgstr ""
239
 
240
+ #: app/model/settings.php:645
241
  msgid "Phones only (< 768px)"
242
  msgstr ""
243
 
244
+ #: app/model/settings.php:658
245
  msgid " <strong>Hide featured image</strong> from event details page"
246
  msgstr ""
247
 
248
+ #: app/model/settings.php:661
249
  msgid ""
250
  "Select this option if your theme already displays each post's featured image."
251
  msgstr ""
252
 
253
+ #: app/model/settings.php:672
254
  msgid "Input dates in this format"
255
  msgstr ""
256
 
257
+ #: app/model/settings.php:677
258
  msgid "Default (d/m/yyyy)"
259
  msgstr ""
260
 
261
+ #: app/model/settings.php:681
262
  msgid "US (m/d/yyyy)"
263
  msgstr ""
264
 
265
+ #: app/model/settings.php:685
266
  msgid "ISO 8601 (yyyy-m-d)"
267
  msgstr ""
268
 
269
+ #: app/model/settings.php:689
270
  msgid "Dotted (m.d.yyyy)"
271
  msgstr ""
272
 
273
+ #: app/model/settings.php:701
274
  msgid " Use <strong>24h time</strong> in time pickers"
275
  msgstr ""
276
 
277
+ #: app/model/settings.php:712
278
  msgid "<strong>Disable address autocomplete</strong> function"
279
  msgstr ""
280
 
281
+ #: app/model/settings.php:723
282
  msgid ""
283
  "Use the configured <strong>region</strong> (WordPress locale) to bias the "
284
  "address autocomplete function "
285
  msgstr ""
286
 
287
+ #: app/model/settings.php:739
288
  msgid ""
289
  " Show the old <strong>Post Your Event</strong> button above the calendar to "
290
  "privileged users"
291
  msgstr ""
292
 
293
+ #: app/model/settings.php:742
294
  msgid ""
295
  "Install the <a target=\"_blank\" href=\"http://time.ly/\">Interactive "
296
  "Frontend Extension</a> for the <strong>frontend Post Your Event form</"
297
  "strong>."
298
  msgstr ""
299
 
300
+ #: app/model/settings.php:763
301
  msgid "Move calendar into this DOM element"
302
  msgstr ""
303
 
304
+ #: app/model/settings.php:765
305
  msgid ""
306
  "Optional. Use this JavaScript-based shortcut to place the\n"
307
  "\t\t\t\t\t\tcalendar a DOM element other than the usual page content "
315
  "\t\t\t\t\t\tby the calendar."
316
  msgstr ""
317
 
318
+ #: app/model/settings.php:784
319
  msgid ""
320
  "<strong>Skip <tt>in_the_loop()</tt> check </strong> that protects against "
321
  "multiple calendar output"
322
  msgstr ""
323
 
324
+ #: app/model/settings.php:787
325
  msgid ""
326
  "Try enabling this option if your calendar does not appear on the calendar "
327
  "page. It is needed for compatibility with a small number of themes that call "
328
  "<tt>the_content()</tt> from outside of The Loop. Leave disabled otherwise."
329
  msgstr ""
330
 
331
+ #: app/model/settings.php:799
332
  msgid "Disable <strong>gzip</strong> compression."
333
  msgstr ""
334
 
335
+ #: app/model/settings.php:802
336
  msgid ""
337
  "Use this option if calendar is unresponsive. <a href=\"http://support.time."
338
  "ly/disable-gzip-compression/\">Read more</a> about the issue. (From version "
339
  "2.1 onwards, gzip is disabled by default for maximum compatibility.)"
340
  msgstr ""
341
 
342
+ #: app/model/settings.php:814
343
  msgid ""
344
  "<strong>Link CSS</strong> in <code>&lt;head&gt;</code> section when file "
345
  "cache is unavailable."
346
  msgstr ""
347
 
348
+ #: app/model/settings.php:817
349
  msgid ""
350
  "Use this option if file cache is unavailable and you would prefer to serve "
351
  "CSS as a link rather than have it output inline."
352
  msgstr ""
353
 
354
+ #: app/model/settings.php:829
355
  msgid "Current <strong>robots.txt</strong> on this site"
356
  msgstr ""
357
 
358
+ #: app/model/settings.php:833
359
  msgid ""
360
  "The Robot Exclusion Standard, also known as the Robots Exclusion Protocol "
361
  "or\n"
369
  "your root WordPress directory."
370
  msgstr ""
371
 
372
+ #: app/model/settings.php:850
373
  msgid ""
374
  "<strong>Publicize, promote, and share my events</strong> marked as public on "
375
  "the Timely network. (<a href=\"%s\" target=\"_blank\">Learn more »</a>)"
376
  msgstr ""
377
 
378
+ #: app/model/settings.php:873
379
  msgid "Templates cache improves site performance"
380
  msgstr ""
381
 
2477
  msgid "All-in-One Event Calendar by Time.ly"
2478
  msgstr ""
2479
 
2480
+ #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.2) #-#-#-#-#
2481
  #. Plugin URI of the plugin/theme
2482
+ #. #-#-#-#-# all-in-one-event-calendar.pot (All-in-One Event Calendar by Time.ly 2.1.2) #-#-#-#-#
2483
  #. Author URI of the plugin/theme
2484
  msgid "http://time.ly/"
2485
  msgstr ""
lib/environment/check.php CHANGED
@@ -19,7 +19,7 @@ class Ai1ec_Environment_Checks extends Ai1ec_Base {
19
  public function run_checks() {
20
  $role = get_role( 'administrator' );
21
  $current_user = get_userdata( get_current_user_id() );
22
- if (
23
  ! is_object( $role ) ||
24
  ! is_object( $current_user ) ||
25
  ! $role->has_cap( 'manage_ai1ec_options' ) ||
@@ -80,6 +80,19 @@ class Ai1ec_Environment_Checks extends Ai1ec_Base {
80
  array( Ai1ec_Notification_Admin::RCPT_ADMIN )
81
  );
82
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
 
85
  }
19
  public function run_checks() {
20
  $role = get_role( 'administrator' );
21
  $current_user = get_userdata( get_current_user_id() );
22
+ if (
23
  ! is_object( $role ) ||
24
  ! is_object( $current_user ) ||
25
  ! $role->has_cap( 'manage_ai1ec_options' ) ||
80
  array( Ai1ec_Notification_Admin::RCPT_ADMIN )
81
  );
82
  }
83
+ global $wp_rewrite;
84
+ $option = $this->_registry->get( 'model.option' );
85
+ $rewrite = $option->get( 'ai1ec_force_flush_rewrite_rules' );
86
+ if (
87
+ ! $rewrite ||
88
+ ! is_object( $wp_rewrite ) ||
89
+ ! isset( $wp_rewrite->rules ) ||
90
+ 0 === count( $wp_rewrite->rules )
91
+ ) {
92
+ return;
93
+ }
94
+ $this->_registry->get( 'rewrite.helper' )->flush_rewrite_rules();
95
+ $option->set( 'ai1ec_force_flush_rewrite_rules', false );
96
  }
97
 
98
  }
lib/import-export/ics.php CHANGED
@@ -272,30 +272,38 @@ class Ai1ec_Ics_Import_Export_Engine
272
  // ===================
273
  // = Exception dates =
274
  // ===================
275
- $exdate_array = array();
276
  if ( $exdates = $e->createExdate() ){
277
  // We may have two formats:
278
  // one exdate with many dates ot more EXDATE rules
279
- $exdates = explode( "EXDATE", $exdates );
280
  foreach ( $exdates as $exd ) {
281
  if ( empty( $exd ) ) {
282
  continue;
283
  }
284
- $exploded = explode( ':', $exd );
285
- $exdate_array[] = trim( end( $exploded ) );
286
- }
287
- }
288
- // This is the local string.
289
- $exdate_loc = implode( ',', $exdate_array );
290
- $gmt_exdates = array();
291
- // Now we convert the string to gmt. I must do it here
292
- // because EXDATE:date1,date2,date3 must be parsed
293
- if( ! empty( $exdate_loc ) ) {
294
- foreach ( explode( ',', $exdate_loc ) as $date ) {
295
- $gmt_exdates[] = substr( (string)$date, 0, 8 );
 
 
 
 
 
 
 
 
 
296
  }
297
  }
298
- $exdate = implode( ',', $gmt_exdates );
299
 
300
  // ========================
301
  // = Latitude & longitude =
@@ -953,8 +961,10 @@ class Ai1ec_Ics_Import_Export_Engine
953
  explode( ',', $exception_dates )
954
  as $exdate
955
  ) {
 
 
956
  $exdate = $this->_registry->get( 'date.time', $exdate )
957
- ->format( 'Ymd' );
958
  $e->setProperty(
959
  'exdate',
960
  array( $exdate . $dt_suffix ),
272
  // ===================
273
  // = Exception dates =
274
  // ===================
275
+ $exdate = '';
276
  if ( $exdates = $e->createExdate() ){
277
  // We may have two formats:
278
  // one exdate with many dates ot more EXDATE rules
279
+ $exdates = explode( 'EXDATE', $exdates );
280
  foreach ( $exdates as $exd ) {
281
  if ( empty( $exd ) ) {
282
  continue;
283
  }
284
+ $exploded = explode( ':', $exd );
285
+ $excpt_timezone = $timezone;
286
+ $excpt_date = null;
287
+ foreach ( $exploded as $particle ) {
288
+ if ( ';TZID=' === substr( $particle, 0, 5 ) ) {
289
+ $excpt_timezone = substr( $particle, 5 );
290
+ } else {
291
+ $excpt_date = trim( $particle );
292
+ }
293
+ }
294
+ $ex_dt = $this->_registry->get(
295
+ 'date.time',
296
+ $excpt_date,
297
+ $excpt_timezone
298
+ );
299
+ if ( $ex_dt ) {
300
+ if ( isset( $exdate{0} ) ) {
301
+ $exdate .= ',';
302
+ }
303
+ $exdate .= $ex_dt->format( 'Ymd\THis', $excpt_timezone );
304
+ }
305
  }
306
  }
 
307
 
308
  // ========================
309
  // = Latitude & longitude =
961
  explode( ',', $exception_dates )
962
  as $exdate
963
  ) {
964
+ // date-time string in EXDATES is formatted as 'Ymd\THis\Z', that
965
+ // means - in UTC timezone, thus we use `format_to_gmt` here.
966
  $exdate = $this->_registry->get( 'date.time', $exdate )
967
+ ->format_to_gmt( 'Ymd' );
968
  $e->setProperty(
969
  'exdate',
970
  array( $exdate . $dt_suffix ),
readme.txt CHANGED
@@ -5,7 +5,7 @@ calendar, ical, iCalendar, all-in-one, events sync, events widget,
5
  calendar widget
6
  Requires WorPress at least: 3.5
7
  Tested up to: 3.9.1
8
- Stable tag: 2.1.1
9
  License: GNU General Public License, version 3 (GPL-3.0)
10
 
11
  A calendar system with many views, upcoming events widget, color-coded
@@ -172,6 +172,13 @@ http://vimeo.com/55904173
172
 
173
  == Changelog ==
174
 
 
 
 
 
 
 
 
175
  = Version 2.1.1 =
176
  * Added ability to select mobile specific default views
177
  * Improved filter bar layout for mobile rendering
5
  calendar widget
6
  Requires WorPress at least: 3.5
7
  Tested up to: 3.9.1
8
+ Stable tag: 2.1.2
9
  License: GNU General Public License, version 3 (GPL-3.0)
10
 
11
  A calendar system with many views, upcoming events widget, color-coded
172
 
173
  == Changelog ==
174
 
175
+ = Version 2.1.2 =
176
+ * Fixed issue where settings weren't saving in some cases
177
+ * Fixed issue where permalinks for events weren't working until "save"
178
+ was clicked in permalinks settings page
179
+ * Fixed issue where excluded dates from ICS feeds weren't correctly
180
+ imported
181
+
182
  = Version 2.1.1 =
183
  * Added ability to select mobile specific default views
184
  * Improved filter bar layout for mobile rendering