Timetable and Event Schedule by MotoPress - Version 2.3.5

Version Description

Download this release

Release Info

Developer MotoPress
Plugin Icon 128x128 Timetable and Event Schedule by MotoPress
Version 2.3.5
Comparing to
See all releases

Code changes from version 2.3.4 to 2.3.5

admin/help/index.php CHANGED
@@ -1,11 +1,10 @@
1
  <div class="wrap">
2
  <h1 class="wp-heading-inline">Help</h1>
3
- <p class="alignright"><?php
4
-
5
- $filePath = Mp_Time_Table::get_plugin_path() . Mp_Time_Table::get_plugin_name() . '.php';
6
- $pluginObject = get_plugin_data( $filePath );
7
  $name = $pluginObject[ 'Name' ];
8
-
9
  echo sprintf(
10
  /* translators: 1: Timetable and Event Schedule 2:: five stars rating */
11
  __( 'If you like %1$s please leave us a %2$s rating.', 'mp-timetable' ),
@@ -33,35 +32,36 @@
33
  <li>
34
  <p><strong>Add Timetable to a Page</strong></p>
35
  <ol>
36
- <li>Find "TimeTable" icon on TinyMCE panel in Classic Editor .</li>
37
  <li>Build Timetable shortcode manually.
38
- <p>Shortcode <code>[mp-timetable ... ]</code> attributes:</p>
39
- <ul>
40
- <li><code>col</code> - comma-separated column IDs.</li>
41
- <li><code>events</code> - comma-separated event IDs.</li>
42
- <li><code>event_categ</code> - comma-separated event category IDs.</li>
43
- <li><code>increment</code> - hour measure; possible values <kbd>1</kbd> - hour (1h), <kbd>0.5</kbd> - half an hour (30min), <kbd>0.25</kbd> - quarter an hour (15min).</li>
44
- <li><code>title</code> - display event title; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
45
- <li><code>time</code> - display event time; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
46
- <li><code>sub-title</code> - display event subtitle; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
47
- <li><code>description</code> - display event description; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
48
- <li><code>user</code> - display event head; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
49
- <li><code>row_height</code> - event block height in pixels; example <kbd>45</kbd></li>
50
- <li><code>font_size</code> - base font size for the table; example <kbd>12px</kbd>, <kbd>2em</kbd>, <kbd>80%</kbd>.</li>
51
- <li><code>view</code> - filter style; possible values <kbd>dropdown_list</kbd> or <kbd>tabs</kbd>.</li>
52
- <li><code>label</code> - filter label; default is <kbd>All Events</kbd>.</li>
53
- <li><code>hide_label</code> - display 'All Events' label or not; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
54
- <li><code>hide_hrs</code> - hide first (hours) column; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
55
- <li><code>hide_empty_rows</code> - hide empty rows; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
56
- <li><code>group</code> - merge cells with common events; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
57
- <li><code>disable_event_url</code> - disable event URL; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
58
- <li><code>text_align</code> - horizontal align; possible values <kbd>left</kbd>, <kbd>center</kbd>, <kbd>right</kbd>.</li>
59
- <li><code>text_align_vertical</code> - vertical align ; possible values <kbd>default</kbd>, <kbd>top</kbd>, <kbd>middle</kbd>, <kbd>bottom</kbd>.</li>
60
- <li><code>id</code> - unique ID.</li>
61
- <li><code>custom_class</code> - CSS class.</li>
62
- <li><code>responsive</code> - mobile layout; possible values <kbd>1</kbd> - display as list, <kbd>0</kbd> - display as table.</li>
63
- </ul>
64
- </li>
 
65
  </ol>
66
  </li>
67
  </ol>
1
  <div class="wrap">
2
  <h1 class="wp-heading-inline">Help</h1>
3
+ <p><?php
4
+
5
+ $pluginObject = get_plugin_data( MP_TT_PLUGIN_FILE );
 
6
  $name = $pluginObject[ 'Name' ];
7
+
8
  echo sprintf(
9
  /* translators: 1: Timetable and Event Schedule 2:: five stars rating */
10
  __( 'If you like %1$s please leave us a %2$s rating.', 'mp-timetable' ),
32
  <li>
33
  <p><strong>Add Timetable to a Page</strong></p>
34
  <ol>
35
+ <li>Find "TimeTable" icon on TinyMCE panel in Classic Editor.</li>
36
  <li>Build Timetable shortcode manually.
37
+ <p>Shortcode <code>[mp-timetable ... ]</code> attributes:</p>
38
+ <ul>
39
+ <li><code>col</code> - comma-separated column IDs.</li>
40
+ <li><code>events</code> - comma-separated event IDs.</li>
41
+ <li><code>event_categ</code> - comma-separated event category IDs.</li>
42
+ <li><code>increment</code> - hour measure; possible values <kbd>1</kbd> - hour (1h), <kbd>0.5</kbd> - half an hour (30min), <kbd>0.25</kbd> - quarter an hour (15min).</li>
43
+ <li><code>title</code> - display event title; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
44
+ <li><code>time</code> - display event time; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
45
+ <li><code>sub-title</code> - display event subtitle; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
46
+ <li><code>description</code> - display event description; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
47
+ <li><code>user</code> - display event head; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
48
+ <li><code>row_height</code> - event block height in pixels; example <kbd>45</kbd></li>
49
+ <li><code>font_size</code> - base font size for the table; example <kbd>12px</kbd>, <kbd>2em</kbd>, <kbd>80%</kbd>.</li>
50
+ <li><code>view</code> - filter style; possible values <kbd>dropdown_list</kbd> or <kbd>tabs</kbd>.</li>
51
+ <li><code>label</code> - filter label; default is <kbd>All Events</kbd>.</li>
52
+ <li><code>hide_label</code> - display 'All Events' label or not; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
53
+ <li><code>hide_hrs</code> - hide first (hours) column; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
54
+ <li><code>hide_empty_rows</code> - hide empty rows; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
55
+ <li><code>group</code> - merge cells with common events; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
56
+ <li><code>disable_event_url</code> - disable event URL; possible values <kbd>1</kbd> or <kbd>0</kbd>.</li>
57
+ <li><code>text_align</code> - horizontal align; possible values <kbd>left</kbd>, <kbd>center</kbd>, <kbd>right</kbd>.</li>
58
+ <li><code>text_align_vertical</code> - vertical align ; possible values <kbd>default</kbd>, <kbd>top</kbd>, <kbd>middle</kbd>, <kbd>bottom</kbd>.</li>
59
+ <li><code>id</code> - unique ID.</li>
60
+ <li><code>custom_class</code> - CSS class.</li>
61
+ <li><code>responsive</code> - mobile layout; possible values <kbd>1</kbd> - display as list, <kbd>0</kbd> - display as table.</li>
62
+ </ul>
63
+ </li>
64
+ <li>Use "TimeTable" block in the new Block Editor.</li>
65
  </ol>
66
  </li>
67
  </ol>
classes/class-hooks.php CHANGED
@@ -55,6 +55,7 @@ class Hooks extends Core {
55
  add_filter( 'post_class', 'mptt_post_class', 15, 3 );
56
  // to display events with other posts on author page
57
  add_filter( 'pre_get_posts', array( Post::get_instance(), 'pre_get_posts' ), 9 );
 
58
  }
59
 
60
  /**
@@ -264,4 +265,24 @@ class Hooks extends Core {
264
  public function set_html_js_class() {
265
  echo View::get_instance()->get_template_html('events/no-script');
266
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  }
55
  add_filter( 'post_class', 'mptt_post_class', 15, 3 );
56
  // to display events with other posts on author page
57
  add_filter( 'pre_get_posts', array( Post::get_instance(), 'pre_get_posts' ), 9 );
58
+ add_filter( 'plugin_row_meta', array( __CLASS__, 'plugin_row_meta' ), 10, 2 );
59
  }
60
 
61
  /**
265
  public function set_html_js_class() {
266
  echo View::get_instance()->get_template_html('events/no-script');
267
  }
268
+
269
+ /**
270
+ * Show row meta on the plugin screen.
271
+ *
272
+ * @return array
273
+ */
274
+ public static function plugin_row_meta( $links, $file ) {
275
+
276
+ if ( MP_TT_PLUGIN_BASENAME === $file ) {
277
+ $row_meta = array(
278
+ 'help' => '<a href="' . esc_url( admin_url('edit.php?post_type=mp-event&page=mptt-help') ) . '" aria-label="' . esc_attr__( 'Quick Start Guide', 'mp-timetable' ) . '">' .
279
+ esc_html__( 'Help', 'mp-timetable' ) . '</a>',
280
+ 'review' => '<a href="' . esc_url( 'https://wordpress.org/support/plugin/mp-timetable/reviews?rate=5#new-post' ) . '" aria-label="' . esc_attr__( 'Leave a Review', 'mp-timetable' ) . '" target="_blank">' . esc_html__( 'Leave a Review', 'mp-timetable' ) . '</a>',
281
+ );
282
+
283
+ return array_merge( $links, $row_meta );
284
+ }
285
+
286
+ return (array) $links;
287
+ }
288
  }
classes/models/class-events.php CHANGED
@@ -120,8 +120,9 @@ class Events extends Model {
120
  $event_data[ $key ]->event_end = date( 'H:i', strtotime( $event_data[ $key ]->event_end ) );
121
  $event_data[ $key ]->user = get_user_by( 'id', $event_data[ $key ]->user_id );
122
  $event_data[ $key ]->post = get_post( $event_data[ $key ]->event_id );
 
123
  }
124
-
125
  return $event_data;
126
  }
127
 
120
  $event_data[ $key ]->event_end = date( 'H:i', strtotime( $event_data[ $key ]->event_end ) );
121
  $event_data[ $key ]->user = get_user_by( 'id', $event_data[ $key ]->user_id );
122
  $event_data[ $key ]->post = get_post( $event_data[ $key ]->event_id );
123
+ $event_data[ $key ]->description = stripcslashes( $event_data[ $key ]->description );
124
  }
125
+
126
  return $event_data;
127
  }
128
 
languages/mp-timetable.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Timetable and Event Schedule Plugin\n"
5
- "POT-Creation-Date: 2019-04-04 15:08+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: MotoPress <info@getmotopress.com>\n"
@@ -19,7 +19,7 @@ msgstr ""
19
  "X-Poedit-SearchPathExcluded-0: classes/libs\n"
20
  "X-Poedit-SearchPathExcluded-1: node_modules\n"
21
 
22
- #: admin/help/index.php:11
23
  #, php-format
24
  msgid "If you like %1$s please leave us a %2$s rating."
25
  msgstr ""
@@ -40,7 +40,7 @@ msgstr ""
40
  msgid "Import"
41
  msgstr ""
42
 
43
- #: classes/blocks/class-timetable-block.php:140 classes/class-core.php:440
44
  #: classes/class-shortcode.php:69 classes/class-shortcode.php:277
45
  #: templates-functions/action-shortcode-functions.php:39
46
  #: templates-functions/action-shortcode-functions.php:52
@@ -132,7 +132,7 @@ msgid "No Event tags found in Trash"
132
  msgstr ""
133
 
134
  #: classes/class-core.php:434 classes/class-core.php:445
135
- #: classes/class-hooks.php:181 classes/class-shortcode.php:256
136
  msgid "Events"
137
  msgstr ""
138
 
@@ -169,7 +169,7 @@ msgid "No Events found in Trash"
169
  msgstr ""
170
 
171
  #: classes/class-core.php:473 classes/class-core.php:484
172
- #: classes/class-hooks.php:189 media/js/blocks/src/timetable/inspector.js:87
173
  msgid "Columns"
174
  msgstr ""
175
 
@@ -210,48 +210,56 @@ msgstr ""
210
  msgid "No Columns found in Trash"
211
  msgstr ""
212
 
213
- #: classes/class-hooks.php:67
214
  msgid "Timetable Sidebar"
215
  msgstr ""
216
 
217
- #: classes/class-hooks.php:69 classes/class-hooks.php:177
218
  #: classes/class-shortcode.php:356 media/js/blocks/src/timetable/index.js:12
219
  msgid "Timetable"
220
  msgstr ""
221
 
222
- #: classes/class-hooks.php:168
223
  msgid "Import Timetable events, categories, tags and images."
224
  msgstr ""
225
 
226
- #: classes/class-hooks.php:185
227
  msgid "Add Event"
228
  msgstr ""
229
 
230
- #: classes/class-hooks.php:193
231
  msgid "Add Column"
232
  msgstr ""
233
 
234
- #: classes/class-hooks.php:197
235
  msgid "Event Categories"
236
  msgstr ""
237
 
238
- #: classes/class-hooks.php:201
239
  msgid "Event Tags"
240
  msgstr ""
241
 
242
- #: classes/class-hooks.php:205 classes/modules/class-post.php:41
243
  #: media/js/blocks/src/timetable/inspector.js:82
244
  msgid "Settings"
245
  msgstr ""
246
 
247
- #: classes/class-hooks.php:209
248
  msgid "Export / Import"
249
  msgstr ""
250
 
251
- #: classes/class-hooks.php:213
252
  msgid "Help"
253
  msgstr ""
254
 
 
 
 
 
 
 
 
 
255
  #: classes/class-permalinks.php:26
256
  msgid "Timetable Permalinks"
257
  msgstr ""
@@ -277,17 +285,17 @@ msgid "Hour measure"
277
  msgstr ""
278
 
279
  #: classes/class-shortcode.php:267
280
- #: media/js/blocks/src/timetable/inspector.js:162 templates/popup/index.php:66
281
  msgid "Hour (1h)"
282
  msgstr ""
283
 
284
  #: classes/class-shortcode.php:267
285
- #: media/js/blocks/src/timetable/inspector.js:163 templates/popup/index.php:67
286
  msgid "Half hour (30min)"
287
  msgstr ""
288
 
289
  #: classes/class-shortcode.php:267
290
- #: media/js/blocks/src/timetable/inspector.js:164 templates/popup/index.php:68
291
  msgid "Quarter hour (15min)"
292
  msgstr ""
293
 
@@ -296,12 +304,12 @@ msgid "Filter style"
296
  msgstr ""
297
 
298
  #: classes/class-shortcode.php:272
299
- #: media/js/blocks/src/timetable/inspector.js:172
300
  msgid "Dropdown list"
301
  msgstr ""
302
 
303
  #: classes/class-shortcode.php:272
304
- #: media/js/blocks/src/timetable/inspector.js:173 templates/popup/index.php:77
305
  msgid "Tabs"
306
  msgstr ""
307
 
@@ -318,11 +326,11 @@ msgstr ""
318
  #: classes/class-shortcode.php:305 classes/class-shortcode.php:311
319
  #: classes/class-shortcode.php:317 classes/class-shortcode.php:323
320
  #: classes/class-shortcode.php:328 classes/class-shortcode.php:352
321
- #: media/js/blocks/src/timetable/inspector.js:186
322
- #: media/js/blocks/src/timetable/inspector.js:195
323
- #: media/js/blocks/src/timetable/inspector.js:204
324
- #: media/js/blocks/src/timetable/inspector.js:213
325
- #: media/js/blocks/src/timetable/inspector.js:222
326
  #: templates/events/metabox-event-options.php:45 templates/popup/index.php:93
327
  #: templates/popup/index.php:102 templates/popup/index.php:112
328
  #: templates/popup/index.php:120 templates/popup/index.php:129
@@ -335,11 +343,11 @@ msgstr ""
335
  #: classes/class-shortcode.php:305 classes/class-shortcode.php:311
336
  #: classes/class-shortcode.php:317 classes/class-shortcode.php:323
337
  #: classes/class-shortcode.php:328 classes/class-shortcode.php:352
338
- #: media/js/blocks/src/timetable/inspector.js:187
339
- #: media/js/blocks/src/timetable/inspector.js:196
340
- #: media/js/blocks/src/timetable/inspector.js:205
341
- #: media/js/blocks/src/timetable/inspector.js:214
342
- #: media/js/blocks/src/timetable/inspector.js:223
343
  #: templates/events/metabox-event-options.php:46 templates/popup/index.php:94
344
  #: templates/popup/index.php:103 templates/popup/index.php:111
345
  #: templates/popup/index.php:121 templates/popup/index.php:130
@@ -390,17 +398,17 @@ msgid "Text align"
390
  msgstr ""
391
 
392
  #: classes/class-shortcode.php:333
393
- #: media/js/blocks/src/timetable/inspector.js:231 templates/popup/index.php:137
394
  msgid "center"
395
  msgstr ""
396
 
397
  #: classes/class-shortcode.php:333
398
- #: media/js/blocks/src/timetable/inspector.js:232 templates/popup/index.php:138
399
  msgid "left"
400
  msgstr ""
401
 
402
  #: classes/class-shortcode.php:333
403
- #: media/js/blocks/src/timetable/inspector.js:233 templates/popup/index.php:139
404
  msgid "right"
405
  msgstr ""
406
 
@@ -428,11 +436,11 @@ msgstr ""
428
  msgid "Timeslots"
429
  msgstr ""
430
 
431
- #: classes/models/class-events.php:167
432
  msgid "Tags"
433
  msgstr ""
434
 
435
- #: classes/models/class-events.php:168
436
  msgid "Categories"
437
  msgstr ""
438
 
@@ -625,87 +633,87 @@ msgstr ""
625
  msgid "Base font size for the table. Example 12px, 2em, 80%."
626
  msgstr ""
627
 
628
- #: media/js/blocks/src/timetable/inspector.js:158 templates/popup/index.php:63
629
  msgid "Time frame for event"
630
  msgstr ""
631
 
632
- #: media/js/blocks/src/timetable/inspector.js:168 templates/popup/index.php:73
633
  msgid "Filter events style"
634
  msgstr ""
635
 
636
- #: media/js/blocks/src/timetable/inspector.js:177 templates/popup/index.php:83
637
  msgid "Filter title to display all events"
638
  msgstr ""
639
 
640
- #: media/js/blocks/src/timetable/inspector.js:182 templates/popup/index.php:89
641
  msgid "Hide 'All Events' option"
642
  msgstr ""
643
 
644
- #: media/js/blocks/src/timetable/inspector.js:191 templates/popup/index.php:99
645
  msgid "Hide column with hours"
646
  msgstr ""
647
 
648
- #: media/js/blocks/src/timetable/inspector.js:200 templates/popup/index.php:108
649
  msgid "Do not display empty rows"
650
  msgstr ""
651
 
652
- #: media/js/blocks/src/timetable/inspector.js:209 templates/popup/index.php:117
653
  msgid "Merge cells with common events"
654
  msgstr ""
655
 
656
- #: media/js/blocks/src/timetable/inspector.js:218 templates/popup/index.php:126
657
  #: templates/widgets/gallery-list.php:56
658
  msgid "Disable event link"
659
  msgstr ""
660
 
661
- #: media/js/blocks/src/timetable/inspector.js:227 templates/popup/index.php:135
662
  msgid "Horizontal align"
663
  msgstr ""
664
 
665
- #: media/js/blocks/src/timetable/inspector.js:237 templates/popup/index.php:144
666
  msgid "Vertical align"
667
  msgstr ""
668
 
669
- #: media/js/blocks/src/timetable/inspector.js:241
670
  msgid "Default"
671
  msgstr ""
672
 
673
- #: media/js/blocks/src/timetable/inspector.js:242 templates/popup/index.php:147
674
  msgid "top"
675
  msgstr ""
676
 
677
- #: media/js/blocks/src/timetable/inspector.js:243 templates/popup/index.php:148
678
  msgid "middle"
679
  msgstr ""
680
 
681
- #: media/js/blocks/src/timetable/inspector.js:244 templates/popup/index.php:149
682
  msgid "bottom"
683
  msgstr ""
684
 
685
- #: media/js/blocks/src/timetable/inspector.js:248 templates/popup/index.php:154
686
  msgid "Unique ID"
687
  msgstr ""
688
 
689
- #: media/js/blocks/src/timetable/inspector.js:249 templates/popup/index.php:157
690
  msgid ""
691
  "If you use more than one table on a page specify the unique ID for a "
692
  "timetable. It is usually all lowercase and contains only letters, numbers, "
693
  "and hyphens."
694
  msgstr ""
695
 
696
- #: media/js/blocks/src/timetable/inspector.js:254 templates/popup/index.php:161
697
  msgid "CSS class"
698
  msgstr ""
699
 
700
- #: media/js/blocks/src/timetable/inspector.js:259 templates/popup/index.php:167
701
  msgid "Mobile behavior"
702
  msgstr ""
703
 
704
- #: media/js/blocks/src/timetable/inspector.js:263 templates/popup/index.php:171
705
  msgid "Table"
706
  msgstr ""
707
 
708
- #: media/js/blocks/src/timetable/inspector.js:264 templates/popup/index.php:170
709
  msgid "List"
710
  msgstr ""
711
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Timetable and Event Schedule Plugin\n"
5
+ "POT-Creation-Date: 2020-02-19 15:44+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: MotoPress <info@getmotopress.com>\n"
19
  "X-Poedit-SearchPathExcluded-0: classes/libs\n"
20
  "X-Poedit-SearchPathExcluded-1: node_modules\n"
21
 
22
+ #: admin/help/index.php:10 templates/settings/general.php:41
23
  #, php-format
24
  msgid "If you like %1$s please leave us a %2$s rating."
25
  msgstr ""
40
  msgid "Import"
41
  msgstr ""
42
 
43
+ #: classes/blocks/class-timetable-block.php:75 classes/class-core.php:440
44
  #: classes/class-shortcode.php:69 classes/class-shortcode.php:277
45
  #: templates-functions/action-shortcode-functions.php:39
46
  #: templates-functions/action-shortcode-functions.php:52
132
  msgstr ""
133
 
134
  #: classes/class-core.php:434 classes/class-core.php:445
135
+ #: classes/class-hooks.php:182 classes/class-shortcode.php:256
136
  msgid "Events"
137
  msgstr ""
138
 
169
  msgstr ""
170
 
171
  #: classes/class-core.php:473 classes/class-core.php:484
172
+ #: classes/class-hooks.php:190 media/js/blocks/src/timetable/inspector.js:87
173
  msgid "Columns"
174
  msgstr ""
175
 
210
  msgid "No Columns found in Trash"
211
  msgstr ""
212
 
213
+ #: classes/class-hooks.php:68
214
  msgid "Timetable Sidebar"
215
  msgstr ""
216
 
217
+ #: classes/class-hooks.php:70 classes/class-hooks.php:178
218
  #: classes/class-shortcode.php:356 media/js/blocks/src/timetable/index.js:12
219
  msgid "Timetable"
220
  msgstr ""
221
 
222
+ #: classes/class-hooks.php:169
223
  msgid "Import Timetable events, categories, tags and images."
224
  msgstr ""
225
 
226
+ #: classes/class-hooks.php:186
227
  msgid "Add Event"
228
  msgstr ""
229
 
230
+ #: classes/class-hooks.php:194
231
  msgid "Add Column"
232
  msgstr ""
233
 
234
+ #: classes/class-hooks.php:198
235
  msgid "Event Categories"
236
  msgstr ""
237
 
238
+ #: classes/class-hooks.php:202
239
  msgid "Event Tags"
240
  msgstr ""
241
 
242
+ #: classes/class-hooks.php:206 classes/modules/class-post.php:41
243
  #: media/js/blocks/src/timetable/inspector.js:82
244
  msgid "Settings"
245
  msgstr ""
246
 
247
+ #: classes/class-hooks.php:210
248
  msgid "Export / Import"
249
  msgstr ""
250
 
251
+ #: classes/class-hooks.php:214 classes/class-hooks.php:279
252
  msgid "Help"
253
  msgstr ""
254
 
255
+ #: classes/class-hooks.php:278
256
+ msgid "Quick Start Guide"
257
+ msgstr ""
258
+
259
+ #: classes/class-hooks.php:280
260
+ msgid "Leave a Review"
261
+ msgstr ""
262
+
263
  #: classes/class-permalinks.php:26
264
  msgid "Timetable Permalinks"
265
  msgstr ""
285
  msgstr ""
286
 
287
  #: classes/class-shortcode.php:267
288
+ #: media/js/blocks/src/timetable/inspector.js:157 templates/popup/index.php:66
289
  msgid "Hour (1h)"
290
  msgstr ""
291
 
292
  #: classes/class-shortcode.php:267
293
+ #: media/js/blocks/src/timetable/inspector.js:158 templates/popup/index.php:67
294
  msgid "Half hour (30min)"
295
  msgstr ""
296
 
297
  #: classes/class-shortcode.php:267
298
+ #: media/js/blocks/src/timetable/inspector.js:159 templates/popup/index.php:68
299
  msgid "Quarter hour (15min)"
300
  msgstr ""
301
 
304
  msgstr ""
305
 
306
  #: classes/class-shortcode.php:272
307
+ #: media/js/blocks/src/timetable/inspector.js:167
308
  msgid "Dropdown list"
309
  msgstr ""
310
 
311
  #: classes/class-shortcode.php:272
312
+ #: media/js/blocks/src/timetable/inspector.js:168 templates/popup/index.php:77
313
  msgid "Tabs"
314
  msgstr ""
315
 
326
  #: classes/class-shortcode.php:305 classes/class-shortcode.php:311
327
  #: classes/class-shortcode.php:317 classes/class-shortcode.php:323
328
  #: classes/class-shortcode.php:328 classes/class-shortcode.php:352
329
+ #: media/js/blocks/src/timetable/inspector.js:181
330
+ #: media/js/blocks/src/timetable/inspector.js:190
331
+ #: media/js/blocks/src/timetable/inspector.js:199
332
+ #: media/js/blocks/src/timetable/inspector.js:208
333
+ #: media/js/blocks/src/timetable/inspector.js:217
334
  #: templates/events/metabox-event-options.php:45 templates/popup/index.php:93
335
  #: templates/popup/index.php:102 templates/popup/index.php:112
336
  #: templates/popup/index.php:120 templates/popup/index.php:129
343
  #: classes/class-shortcode.php:305 classes/class-shortcode.php:311
344
  #: classes/class-shortcode.php:317 classes/class-shortcode.php:323
345
  #: classes/class-shortcode.php:328 classes/class-shortcode.php:352
346
+ #: media/js/blocks/src/timetable/inspector.js:182
347
+ #: media/js/blocks/src/timetable/inspector.js:191
348
+ #: media/js/blocks/src/timetable/inspector.js:200
349
+ #: media/js/blocks/src/timetable/inspector.js:209
350
+ #: media/js/blocks/src/timetable/inspector.js:218
351
  #: templates/events/metabox-event-options.php:46 templates/popup/index.php:94
352
  #: templates/popup/index.php:103 templates/popup/index.php:111
353
  #: templates/popup/index.php:121 templates/popup/index.php:130
398
  msgstr ""
399
 
400
  #: classes/class-shortcode.php:333
401
+ #: media/js/blocks/src/timetable/inspector.js:226 templates/popup/index.php:137
402
  msgid "center"
403
  msgstr ""
404
 
405
  #: classes/class-shortcode.php:333
406
+ #: media/js/blocks/src/timetable/inspector.js:227 templates/popup/index.php:138
407
  msgid "left"
408
  msgstr ""
409
 
410
  #: classes/class-shortcode.php:333
411
+ #: media/js/blocks/src/timetable/inspector.js:228 templates/popup/index.php:139
412
  msgid "right"
413
  msgstr ""
414
 
436
  msgid "Timeslots"
437
  msgstr ""
438
 
439
+ #: classes/models/class-events.php:168
440
  msgid "Tags"
441
  msgstr ""
442
 
443
+ #: classes/models/class-events.php:169
444
  msgid "Categories"
445
  msgstr ""
446
 
633
  msgid "Base font size for the table. Example 12px, 2em, 80%."
634
  msgstr ""
635
 
636
+ #: media/js/blocks/src/timetable/inspector.js:153 templates/popup/index.php:63
637
  msgid "Time frame for event"
638
  msgstr ""
639
 
640
+ #: media/js/blocks/src/timetable/inspector.js:163 templates/popup/index.php:73
641
  msgid "Filter events style"
642
  msgstr ""
643
 
644
+ #: media/js/blocks/src/timetable/inspector.js:172 templates/popup/index.php:83
645
  msgid "Filter title to display all events"
646
  msgstr ""
647
 
648
+ #: media/js/blocks/src/timetable/inspector.js:177 templates/popup/index.php:89
649
  msgid "Hide 'All Events' option"
650
  msgstr ""
651
 
652
+ #: media/js/blocks/src/timetable/inspector.js:186 templates/popup/index.php:99
653
  msgid "Hide column with hours"
654
  msgstr ""
655
 
656
+ #: media/js/blocks/src/timetable/inspector.js:195 templates/popup/index.php:108
657
  msgid "Do not display empty rows"
658
  msgstr ""
659
 
660
+ #: media/js/blocks/src/timetable/inspector.js:204 templates/popup/index.php:117
661
  msgid "Merge cells with common events"
662
  msgstr ""
663
 
664
+ #: media/js/blocks/src/timetable/inspector.js:213 templates/popup/index.php:126
665
  #: templates/widgets/gallery-list.php:56
666
  msgid "Disable event link"
667
  msgstr ""
668
 
669
+ #: media/js/blocks/src/timetable/inspector.js:222 templates/popup/index.php:135
670
  msgid "Horizontal align"
671
  msgstr ""
672
 
673
+ #: media/js/blocks/src/timetable/inspector.js:232 templates/popup/index.php:144
674
  msgid "Vertical align"
675
  msgstr ""
676
 
677
+ #: media/js/blocks/src/timetable/inspector.js:236
678
  msgid "Default"
679
  msgstr ""
680
 
681
+ #: media/js/blocks/src/timetable/inspector.js:237 templates/popup/index.php:147
682
  msgid "top"
683
  msgstr ""
684
 
685
+ #: media/js/blocks/src/timetable/inspector.js:238 templates/popup/index.php:148
686
  msgid "middle"
687
  msgstr ""
688
 
689
+ #: media/js/blocks/src/timetable/inspector.js:239 templates/popup/index.php:149
690
  msgid "bottom"
691
  msgstr ""
692
 
693
+ #: media/js/blocks/src/timetable/inspector.js:243 templates/popup/index.php:154
694
  msgid "Unique ID"
695
  msgstr ""
696
 
697
+ #: media/js/blocks/src/timetable/inspector.js:244 templates/popup/index.php:157
698
  msgid ""
699
  "If you use more than one table on a page specify the unique ID for a "
700
  "timetable. It is usually all lowercase and contains only letters, numbers, "
701
  "and hyphens."
702
  msgstr ""
703
 
704
+ #: media/js/blocks/src/timetable/inspector.js:249 templates/popup/index.php:161
705
  msgid "CSS class"
706
  msgstr ""
707
 
708
+ #: media/js/blocks/src/timetable/inspector.js:254 templates/popup/index.php:167
709
  msgid "Mobile behavior"
710
  msgstr ""
711
 
712
+ #: media/js/blocks/src/timetable/inspector.js:258 templates/popup/index.php:171
713
  msgid "Table"
714
  msgstr ""
715
 
716
+ #: media/js/blocks/src/timetable/inspector.js:259 templates/popup/index.php:170
717
  msgid "List"
718
  msgstr ""
719
 
mp-timetable.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Timetable and Event Schedule
5
  * Plugin URI: https://motopress.com/products/timetable-event-schedule/
6
  * Description: Smart time-management tool with a clean minimalist design for featuring your timetables and upcoming events.
7
- * Version: 2.3.4
8
  * Author: MotoPress
9
  * Author URI: https://motopress.com
10
  * License: GPLv2 or later
@@ -23,10 +23,25 @@
23
  * https://developer.wordpress.org/themes/basics/template-hierarchy/#visual-overview
24
  */
25
 
 
 
26
  use mp_timetable\plugin_core\classes\Core;
27
 
28
- define( "MP_TT_PLUGIN_NAME", 'mp-timetable' );
29
- define( 'MP_TT_DEBUG', false );
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  register_activation_hook( __FILE__, array( Mp_Time_Table::init(), 'on_activation' ) );
32
  register_deactivation_hook( __FILE__, array( 'Mp_Time_Table', 'on_deactivation' ) );
4
  * Plugin Name: Timetable and Event Schedule
5
  * Plugin URI: https://motopress.com/products/timetable-event-schedule/
6
  * Description: Smart time-management tool with a clean minimalist design for featuring your timetables and upcoming events.
7
+ * Version: 2.3.5
8
  * Author: MotoPress
9
  * Author URI: https://motopress.com
10
  * License: GPLv2 or later
23
  * https://developer.wordpress.org/themes/basics/template-hierarchy/#visual-overview
24
  */
25
 
26
+ defined( 'ABSPATH' ) || exit;
27
+
28
  use mp_timetable\plugin_core\classes\Core;
29
 
30
+ if ( ! defined( 'MP_TT_PLUGIN_NAME' ) ) {
31
+ define( "MP_TT_PLUGIN_NAME", 'mp-timetable' );
32
+ }
33
+
34
+ if ( ! defined( 'MP_TT_DEBUG' ) ) {
35
+ define( 'MP_TT_DEBUG', false );
36
+ }
37
+
38
+ if ( ! defined( 'MP_TT_PLUGIN_FILE' ) ) {
39
+ define( 'MP_TT_PLUGIN_FILE', __FILE__ );
40
+ }
41
+
42
+ if ( ! defined( 'MP_TT_PLUGIN_BASENAME' ) ) {
43
+ define( 'MP_TT_PLUGIN_BASENAME', plugin_basename( MP_TT_PLUGIN_FILE ) );
44
+ }
45
 
46
  register_activation_hook( __FILE__, array( Mp_Time_Table::init(), 'on_activation' ) );
47
  register_deactivation_hook( __FILE__, array( 'Mp_Time_Table', 'on_deactivation' ) );
readme.txt CHANGED
@@ -79,6 +79,9 @@ Plugin bundles the following third-party resources:
79
 
80
  == Changelog ==
81
 
 
 
 
82
  = 2.3.4, Sep 25 2019 =
83
  * Bug fix: fixed an issue with UTC timezone offset.
84
 
79
 
80
  == Changelog ==
81
 
82
+ = 2.3.5, Feb 19 2020 =
83
+ * Bug fix: fixed an issue with slashes in event description.
84
+
85
  = 2.3.4, Sep 25 2019 =
86
  * Bug fix: fixed an issue with UTC timezone offset.
87
 
templates-functions/action-mp-column-functions.php CHANGED
@@ -52,7 +52,7 @@ function mptt_column_template_content_events_list() {
52
  <?php } ?>
53
 
54
  <?php if (!empty($event->description)) { ?>
55
- <p class="event-description"><?php echo $event->description; ?></p>
56
  <?php } ?>
57
 
58
  <?php if (!empty($event->user)) { ?>
52
  <?php } ?>
53
 
54
  <?php if (!empty($event->description)) { ?>
55
+ <p class="event-description"><?php echo stripslashes( $event->description ); ?></p>
56
  <?php } ?>
57
 
58
  <?php if (!empty($event->user)) { ?>
templates-functions/action-shortcode-functions.php CHANGED
@@ -242,9 +242,9 @@ function mptt_shortcode_template_content_responsive_table() {
242
  </p>
243
  <?php endif;
244
  if ( $mptt_shortcode_data[ 'params' ][ 'description' ] ): ?>
245
- <p class="event-description">
246
- <?php echo $event->description ?>
247
- </p>
248
  <?php endif;
249
  if ( $mptt_shortcode_data[ 'params' ][ 'user' ] && ( $event->user_id != '-1' ) ): ?>
250
  <p class="event-user"><?php $user_info = get_userdata( $event->user_id );
242
  </p>
243
  <?php endif;
244
  if ( $mptt_shortcode_data[ 'params' ][ 'description' ] ): ?>
245
+ <p class="event-description"><?php
246
+ echo stripslashes( $event->description );
247
+ ?></p>
248
  <?php endif;
249
  if ( $mptt_shortcode_data[ 'params' ][ 'user' ] && ( $event->user_id != '-1' ) ): ?>
250
  <p class="event-user"><?php $user_info = get_userdata( $event->user_id );
templates-functions/actions-mp-event-functions.php CHANGED
@@ -52,7 +52,7 @@ function mptt_event_template_content_time_list() {
52
  <?php } ?>
53
 
54
  <?php if (!empty($event->description)) { ?>
55
- <p class="event-description"><?php echo $event->description; ?></p>
56
  <?php } ?>
57
  <?php if (!empty($event->user)) { ?>
58
  <p class="event-user"><a href="<?php echo get_author_posts_url($event->user->ID); ?>" title="<?php echo $event->user->display_name; ?>"><?php echo get_avatar($event->user->ID, apply_filters('mptt-column-user-avatar-size', 32), '', $event->user->display_name) . ' ';
52
  <?php } ?>
53
 
54
  <?php if (!empty($event->description)) { ?>
55
+ <p class="event-description"><?php echo stripslashes( $event->description ); ?></p>
56
  <?php } ?>
57
  <?php if (!empty($event->user)) { ?>
58
  <p class="event-user"><a href="<?php echo get_author_posts_url($event->user->ID); ?>" title="<?php echo $event->user->display_name; ?>"><?php echo get_avatar($event->user->ID, apply_filters('mptt-column-user-avatar-size', 32), '', $event->user->display_name) . ' ';
templates/events/event-data.php CHANGED
@@ -21,7 +21,7 @@
21
  <td class="event-column"><?php echo get_the_title($data->column_id); ?></td>
22
  <td class="event-start"><?php echo date(get_option('time_format'), strtotime($data->event_start)); ?></td>
23
  <td class="event-end"><?php echo date(get_option('time_format'), strtotime($data->event_end)); ?></td>
24
- <td class="event-description"><?php echo $data->description ?></td>
25
  <td class="event-user-id"><?php
26
  $user = ($data->user_id != '-1') ? get_userdata($data->user_id) : false;
27
  if ($user) {
21
  <td class="event-column"><?php echo get_the_title($data->column_id); ?></td>
22
  <td class="event-start"><?php echo date(get_option('time_format'), strtotime($data->event_start)); ?></td>
23
  <td class="event-end"><?php echo date(get_option('time_format'), strtotime($data->event_end)); ?></td>
24
+ <td class="event-description"><?php echo $data->description; ?></td>
25
  <td class="event-user-id"><?php
26
  $user = ($data->user_id != '-1') ? get_userdata($data->user_id) : false;
27
  if ($user) {
templates/events/metabox-event-data.php CHANGED
@@ -4,7 +4,7 @@
4
  <input type="hidden" id="time_format" value="<?php echo $date["time_format"]["am_pm"] === true ? '1' : '0' ?>"/>
5
 
6
  <?php \mp_timetable\plugin_core\classes\View::get_instance()->render_html('events/event-data', array('event_data' => $event_data), true) ?>
7
-
8
  <table id="add_event_table" class="widefat">
9
  <tr>
10
  <td><label for="weekday_id"><?php _e('Column:', 'mp-timetable') ?></label></td>
4
  <input type="hidden" id="time_format" value="<?php echo $date["time_format"]["am_pm"] === true ? '1' : '0' ?>"/>
5
 
6
  <?php \mp_timetable\plugin_core\classes\View::get_instance()->render_html('events/event-data', array('event_data' => $event_data), true) ?>
7
+ <h4>Add New / Edit Timeslot</h4>
8
  <table id="add_event_table" class="widefat">
9
  <tr>
10
  <td><label for="weekday_id"><?php _e('Column:', 'mp-timetable') ?></label></td>
templates/events/metabox-event-options.php CHANGED
@@ -2,12 +2,12 @@
2
  <table id="add_event_options_table" class="form-table">
3
  <tr>
4
  <td><label for="sub_title"><?php _e('Event Subtitle:', 'mp-timetable') ?></label></td>
5
- <td><input id="sub_title" class="widefat" type="text" value="<?php echo $post->sub_title ?>" name="event_meta[sub_title]"></td>
6
  </tr>
7
  <tr class="select-color">
8
  <td><label for="color"><?php _e('Background Color:', 'mp-timetable'); ?></label></td>
9
  <td>
10
- <input type="hidden" class="clr-picker" value="<?php echo $post->color ?>">
11
  <input type="text" id="color" name="event_meta[color]" value="<?php echo $post->color ?>" data-default-color="transparent">
12
  </td>
13
  </tr>
@@ -35,7 +35,7 @@
35
  <tr>
36
  <td><label for="timetable_custom_url"><?php _e('Custom Event URL:', 'mp-timetable'); ?></label></td>
37
  <td>
38
- <input type="text" id="timetable_custom_url" class="widefat" placeholder="http://mywebsite.com" name="event_meta[timetable_custom_url]" value="<?php echo $post->timetable_custom_url ?>">
39
  </td>
40
  </tr>
41
  <tr>
2
  <table id="add_event_options_table" class="form-table">
3
  <tr>
4
  <td><label for="sub_title"><?php _e('Event Subtitle:', 'mp-timetable') ?></label></td>
5
+ <td><input id="sub_title" class="widefat" type="text" value="<?php echo esc_attr( $post->sub_title ); ?>" name="event_meta[sub_title]"></td>
6
  </tr>
7
  <tr class="select-color">
8
  <td><label for="color"><?php _e('Background Color:', 'mp-timetable'); ?></label></td>
9
  <td>
10
+ <input type="hidden" class="clr-picker" value="<?php echo esc_attr( $post->color ); ?>">
11
  <input type="text" id="color" name="event_meta[color]" value="<?php echo $post->color ?>" data-default-color="transparent">
12
  </td>
13
  </tr>
35
  <tr>
36
  <td><label for="timetable_custom_url"><?php _e('Custom Event URL:', 'mp-timetable'); ?></label></td>
37
  <td>
38
+ <input type="text" id="timetable_custom_url" class="widefat" placeholder="http://mywebsite.com" name="event_meta[timetable_custom_url]" value="<?php echo esc_attr( $post->timetable_custom_url ); ?>">
39
  </td>
40
  </tr>
41
  <tr>
templates/settings/general.php CHANGED
@@ -30,4 +30,16 @@
30
  <input type="hidden" name="mp-timetable-save-settings" value="<?php echo wp_create_nonce('mp_timetable_nonce_settings') ?>">
31
  </p>
32
  </form>
33
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
30
  <input type="hidden" name="mp-timetable-save-settings" value="<?php echo wp_create_nonce('mp_timetable_nonce_settings') ?>">
31
  </p>
32
  </form>
33
+ </div>
34
+ <p><?php
35
+
36
+ $pluginObject = get_plugin_data( MP_TT_PLUGIN_FILE );
37
+ $name = $pluginObject[ 'Name' ];
38
+
39
+ echo sprintf(
40
+ /* translators: 1: Timetable and Event Schedule 2:: five stars rating */
41
+ __( 'If you like %1$s please leave us a %2$s rating.', 'mp-timetable' ),
42
+ sprintf( '<strong>%s</strong>', esc_html( $name ) ),
43
+ '<a href="https://wordpress.org/support/plugin/mp-timetable/reviews?rate=5#new-post" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
44
+ );
45
+ ?></p>
templates/shortcodes/event-container.php CHANGED
@@ -39,7 +39,7 @@
39
  <?php endif;
40
 
41
  if ( $params[ 'description' ] && ! empty( $item[ 'description' ] ) ): ?>
42
- <p class="event-description"><?php echo $item[ 'description' ]; ?></p>
43
  <?php endif;
44
 
45
  if ( $params[ 'user' ] && $item[ 'user_id' ] != '-1' ): ?>
39
  <?php endif;
40
 
41
  if ( $params[ 'description' ] && ! empty( $item[ 'description' ] ) ): ?>
42
+ <p class="event-description"><?php echo stripslashes( $item[ 'description' ] ); ?></p>
43
  <?php endif;
44
 
45
  if ( $params[ 'user' ] && $item[ 'user_id' ] != '-1' ): ?>
templates/theme/column-events.php CHANGED
@@ -30,7 +30,7 @@ if ( !empty($events) ) {
30
 
31
  <?php if (!empty($event->description)) { ?>
32
  <br/>
33
- <span class="event-description"><?php echo $event->description; ?></span>
34
  <?php } ?>
35
 
36
  <?php if (!empty($event->user)) { ?>
30
 
31
  <?php if (!empty($event->description)) { ?>
32
  <br/>
33
+ <span class="event-description"><?php echo stripslashes( $event->description ); ?></span>
34
  <?php } ?>
35
 
36
  <?php if (!empty($event->user)) { ?>
templates/theme/event-timeslots.php CHANGED
@@ -29,7 +29,7 @@ if ( !empty($events) ) {
29
 
30
  <?php if (!empty($event->description)) { ?>
31
  <br/>
32
- <span class="timeslot-description"><?php echo $event->description; ?></span>
33
  <?php } ?>
34
  <?php if (!empty($event->user)) { ?>
35
  <br/>
29
 
30
  <?php if (!empty($event->description)) { ?>
31
  <br/>
32
+ <span class="timeslot-description"><?php echo stripslashes( $event->description ); ?></span>
33
  <?php } ?>
34
  <?php if (!empty($event->user)) { ?>
35
  <br/>