Timetable and Event Schedule by MotoPress - Version 2.3.11

Version Description

Download this release

Release Info

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

Code changes from version 2.3.10 to 2.3.11

admin/help/index.php CHANGED
@@ -60,6 +60,7 @@
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
  <li>Use "TimeTable" block in the new Block Editor.</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
+ <li><code>table_layout</code> - table layout; possible values <kbd>auto</kbd>, <kbd>fixed</kbd>.</li>
64
  </ul>
65
  </li>
66
  <li>Use "TimeTable" block in the new Block Editor.</li>
classes/blocks/class-timetable-block.php CHANGED
@@ -142,7 +142,10 @@ class Timetable_Block {
142
  ),
143
  'custom_class' => array(
144
  'type' => 'string',
145
- ),
 
 
 
146
  ),
147
  'render_callback' => [ $this, 'render_timetable' ],
148
  'editor_style' => 'mptt-blocks-editor',
142
  ),
143
  'custom_class' => array(
144
  'type' => 'string',
145
+ ),
146
+ 'table_layout' => array(
147
+ 'type' => 'string'
148
+ ),
149
  ),
150
  'render_callback' => [ $this, 'render_timetable' ],
151
  'editor_style' => 'mptt-blocks-editor',
classes/class-hooks.php CHANGED
@@ -55,6 +55,10 @@ class Hooks extends Core {
55
  // Manage event/column columns
56
  add_filter( 'manage_edit-mp-event_columns', array( $this->get( 'events' ), 'set_event_columns' ) );
57
  add_filter( 'manage_edit-mp-column_columns', array( $this->get( 'column' ), 'set_column_columns' ) );
 
 
 
 
58
 
59
  // post_class filter
60
  add_filter( 'post_class', 'mptt_post_class', 15, 3 );
55
  // Manage event/column columns
56
  add_filter( 'manage_edit-mp-event_columns', array( $this->get( 'events' ), 'set_event_columns' ) );
57
  add_filter( 'manage_edit-mp-column_columns', array( $this->get( 'column' ), 'set_column_columns' ) );
58
+
59
+ // Duplicate Event
60
+ add_filter( 'post_row_actions', array( $this->get( 'events' ), 'post_row_actions' ), 999, 2 );
61
+ add_action( 'post_action_mptt_duplicate_event', array( $this->get( 'events' ), 'post_action_mptt_duplicate_event' ) );
62
 
63
  // post_class filter
64
  add_filter( 'post_class', 'mptt_post_class', 15, 3 );
classes/class-shortcode.php CHANGED
@@ -84,7 +84,8 @@ class Shortcode extends Core {
84
  'text_align' => "center", // left | center | right
85
  'id' => "",
86
  'custom_class' => "",
87
- 'responsive' => "1"
 
88
  ), $params );
89
 
90
  $mptt_shortcode_data[ 'events_data' ] = $this->get_shortcode_events( $params );
@@ -274,7 +275,7 @@ class Shortcode extends Core {
274
  'label' => __( 'Filter style', 'mp-timetable' ),
275
  'list' => array( 'dropdown_list' => __( 'Dropdown list', 'mp-timetable' ), 'tabs' => __( 'Tabs', 'mp-timetable' ) )
276
  ),
277
- 'view_sort' => array(
278
  'type' => 'select',
279
  'label' => __( 'Order of items in filter', 'mp-timetable' ),
280
  'list' => array( '' => __( 'Default', 'mp-timetable' ), 'menu_order' => __( 'Menu Order', 'mp-timetable' ), 'post_title' => __( 'Title', 'mp-timetable' ) )
@@ -359,7 +360,12 @@ class Shortcode extends Core {
359
  'label' => __( 'Responsive', 'mp-timetable' ),
360
  'list' => array( '1' => __( 'Yes', 'mp-timetable' ), '0' => __( 'No', 'mp-timetable' ) ),
361
  'default' => 1,
362
- )
 
 
 
 
 
363
  );
364
  $mp_timetable = new \MPCEObject( 'mp-timetable', __( 'Timetable', 'mp-timetable' ), '', $attributes );
365
 
84
  'text_align' => "center", // left | center | right
85
  'id' => "",
86
  'custom_class' => "",
87
+ 'responsive' => "1",
88
+ 'table_layout' => "" // default | auto | fixed
89
  ), $params );
90
 
91
  $mptt_shortcode_data[ 'events_data' ] = $this->get_shortcode_events( $params );
275
  'label' => __( 'Filter style', 'mp-timetable' ),
276
  'list' => array( 'dropdown_list' => __( 'Dropdown list', 'mp-timetable' ), 'tabs' => __( 'Tabs', 'mp-timetable' ) )
277
  ),
278
+ 'view_sort' => array(
279
  'type' => 'select',
280
  'label' => __( 'Order of items in filter', 'mp-timetable' ),
281
  'list' => array( '' => __( 'Default', 'mp-timetable' ), 'menu_order' => __( 'Menu Order', 'mp-timetable' ), 'post_title' => __( 'Title', 'mp-timetable' ) )
360
  'label' => __( 'Responsive', 'mp-timetable' ),
361
  'list' => array( '1' => __( 'Yes', 'mp-timetable' ), '0' => __( 'No', 'mp-timetable' ) ),
362
  'default' => 1,
363
+ ),
364
+ 'table_layout' => array(
365
+ 'type' => 'select',
366
+ 'label' => __( 'Table layout', 'mp-timetable' ),
367
+ 'list' => array( '' => __( 'Default', 'mp-timetable' ), 'auto' => __( 'Auto', 'mp-timetable' ), 'fixed' => __( 'Fixed', 'mp-timetable' ) )
368
+ ),
369
  );
370
  $mp_timetable = new \MPCEObject( 'mp-timetable', __( 'Timetable', 'mp-timetable' ), '', $attributes );
371
 
classes/models/class-events.php CHANGED
@@ -317,7 +317,9 @@ class Events extends Model {
317
  * @return array
318
  */
319
  public function save_event_data( array $params ) {
 
320
  $rows_affected = array();
 
321
  if ( ! empty( $params[ 'event_data' ] ) ) {
322
  foreach ( $params[ 'event_data' ] as $key => $event ) {
323
  if ( is_array( $event[ 'event_start' ] ) && ! empty( $event[ 'event_start' ] ) ) {
@@ -754,4 +756,142 @@ class Events extends Model {
754
 
755
  return $events;
756
  }
757
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  * @return array
318
  */
319
  public function save_event_data( array $params ) {
320
+
321
  $rows_affected = array();
322
+
323
  if ( ! empty( $params[ 'event_data' ] ) ) {
324
  foreach ( $params[ 'event_data' ] as $key => $event ) {
325
  if ( is_array( $event[ 'event_start' ] ) && ! empty( $event[ 'event_start' ] ) ) {
756
 
757
  return $events;
758
  }
759
+
760
+ public function post_row_actions( $actions, $post ) {
761
+
762
+ if ( $post->post_type == $this->post_type && current_user_can('edit_posts') ) {
763
+
764
+ $action_url = add_query_arg(
765
+ array(
766
+ 'post' => $post->ID,
767
+ 'action' => 'mptt_duplicate_event',
768
+ '_wpnonce' => wp_create_nonce( 'mptt_duplicate_event' )
769
+ ),
770
+ admin_url( 'post.php' )
771
+ );
772
+
773
+ $actions['duplicate'] = '<a href="' . $action_url . '" aria-label="' .
774
+ __('Duplicate', 'mp-timetable') . '" rel="permalink">' . __('Duplicate', 'mp-timetable') . '</a>';
775
+ }
776
+
777
+ return $actions;
778
+ }
779
+
780
+ public function post_action_mptt_duplicate_event( $post_id ) {
781
+
782
+ global $wpdb;
783
+
784
+ $post_type = '';
785
+
786
+ if ( $post_id ) {
787
+ $post = get_post( $post_id );
788
+ }
789
+
790
+ if ( $post ) {
791
+ $post_type = $post->post_type;
792
+ }
793
+
794
+ if ( $post_type !== $this->post_type ) {
795
+ wp_die( __( 'A post type mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
796
+ }
797
+
798
+ $nonce = $_REQUEST['_wpnonce'];
799
+
800
+ if ( wp_verify_nonce( $nonce, 'mptt_duplicate_event' ) && current_user_can('edit_posts') ) {
801
+
802
+ $current_user = wp_get_current_user();
803
+ $new_post_author = $current_user->ID;
804
+
805
+ /*
806
+ * new post data array
807
+ */
808
+ $args = array(
809
+ 'comment_status' => $post->comment_status,
810
+ 'ping_status' => $post->ping_status,
811
+ 'post_author' => $new_post_author,
812
+ 'post_content' => $post->post_content,
813
+ 'post_excerpt' => $post->post_excerpt,
814
+ 'post_name' => $post->post_name,
815
+ 'post_parent' => $post->post_parent,
816
+ 'post_password' => $post->post_password,
817
+ 'post_status' => 'draft',
818
+ // translators: New post title of the duplicated post
819
+ 'post_title' => sprintf( __('%s - Copy', 'mp-timetable'), $post->post_title ),
820
+ 'post_type' => $post->post_type,
821
+ 'to_ping' => $post->to_ping,
822
+ 'menu_order' => $post->menu_order
823
+ );
824
+
825
+ /*
826
+ * insert the post by wp_insert_post() function
827
+ */
828
+ $new_post_id = wp_insert_post( $args );
829
+
830
+ if( is_wp_error($new_post_id) ) {
831
+ wp_die( $post_id->get_error_message() );
832
+ }
833
+
834
+ /*
835
+ * get all current post terms and set them to the new post draft
836
+ */
837
+ $taxonomies = get_object_taxonomies($post->post_type);
838
+ foreach ($taxonomies as $taxonomy) {
839
+ $post_terms = wp_get_object_terms($post_id, $taxonomy, array('fields' => 'slugs'));
840
+ wp_set_object_terms($new_post_id, $post_terms, $taxonomy, false);
841
+ }
842
+
843
+ /*
844
+ * duplicate all post meta
845
+ */
846
+ $post_meta = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->postmeta WHERE post_id=$post_id");
847
+
848
+ if ( !empty($post_meta) ) {
849
+
850
+ $sql_query = "INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) ";
851
+
852
+ foreach ($post_meta as $meta_info) {
853
+ $meta_key = $meta_info->meta_key;
854
+ if ( $meta_key == '_wp_old_slug' ) continue;
855
+ $meta_value = addslashes($meta_info->meta_value);
856
+ $sql_query_sel[]= "SELECT $new_post_id, '$meta_key', '$meta_value'";
857
+ }
858
+
859
+ $sql_query .= implode( " UNION ALL ", $sql_query_sel );
860
+
861
+ $wpdb->query( $sql_query );
862
+ }
863
+
864
+ /*
865
+ * duplicate timeslots in custom BD
866
+ */
867
+ $timeslots = $wpdb->get_results( "SELECT * FROM {$this->table_name} WHERE event_id = " . $post_id, OBJECT );
868
+
869
+ if ( !empty($timeslots) ) {
870
+
871
+ foreach ( $timeslots as $timeslot ) {
872
+ $wpdb->insert(
873
+ $this->table_name,
874
+ array(
875
+ 'column_id' => $timeslot->column_id,
876
+ 'event_id' => $new_post_id,
877
+ 'event_start' => date( 'H:i', strtotime( $timeslot->event_start ) ),
878
+ 'event_end' => date( 'H:i', strtotime( $timeslot->event_end ) ),
879
+ 'user_id' => $timeslot->user_id,
880
+ 'description' => $timeslot->description
881
+ )
882
+ );
883
+ }
884
+ }
885
+
886
+ /*
887
+ * redirect to the edit post screen for the new draft
888
+ */
889
+ wp_safe_redirect( get_edit_post_link( $new_post_id, '' ) );
890
+ exit();
891
+
892
+ } else {
893
+ wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
894
+ }
895
+ }
896
+
897
+ }
classes/widgets/class-mp-timetable-widget.php CHANGED
@@ -44,13 +44,23 @@ class Timetable_widget extends \WP_Widget {
44
  'item_border_color' => '',
45
  'hover_item_border_color' => '',
46
  ), $instance );
47
-
48
- $data[ 'columns' ] = Column::get_instance()->get_all_column();
49
  $data[ 'events' ] = Events::get_instance()->get_all_events();
50
- $data[ 'categories' ] = get_terms( 'mp-event_category', 'orderby=count&hide_empty=0' );;
51
  $data[ 'localtime' ] = date( get_option( 'time_format' ), current_time( 'timestamp', 0 ) );
52
  $data[ 'utc_time' ] = date( get_option( 'time_format' ), current_time( 'timestamp', 1 ) );
53
- View::get_instance()->render_html( 'widgets/gallery-list', array( 'widget_object' => $this, 'data' => $data, 'instance' => $instance ), true );
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
  /**
44
  'item_border_color' => '',
45
  'hover_item_border_color' => '',
46
  ), $instance );
47
+
48
+ /*$data[ 'columns' ] = Column::get_instance()->get_all_column();
49
  $data[ 'events' ] = Events::get_instance()->get_all_events();
50
+ $data[ 'categories' ] = get_terms( 'mp-event_category', 'orderby=count&hide_empty=0' );
51
  $data[ 'localtime' ] = date( get_option( 'time_format' ), current_time( 'timestamp', 0 ) );
52
  $data[ 'utc_time' ] = date( get_option( 'time_format' ), current_time( 'timestamp', 1 ) );
53
+
54
+ View::get_instance()->render_html( 'widgets/gallery-list', array( 'widget_object' => $this, 'data' => $data, 'instance' => $instance ), true );*/
55
+
56
+ $event_categories = get_terms( 'mp-event_category', 'orderby=title&hide_empty=0' );
57
+
58
+ View::get_instance()->render_html('widgets/gallery-list', array(
59
+ 'widget_object' => $this,
60
+ 'event_categories' => $event_categories,
61
+ 'instance' => $instance
62
+ ), true);
63
+
64
  }
65
 
66
  /**
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: 2020-04-21 18:40+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: MotoPress <info@getmotopress.com>\n"
@@ -41,7 +41,7 @@ msgid "Import"
41
  msgstr ""
42
 
43
  #: classes/blocks/class-timetable-block.php:79 classes/class-core.php:442
44
- #: classes/class-shortcode.php:70 classes/class-shortcode.php:285
45
  #: templates-functions/action-shortcode-functions.php:57
46
  #: templates-functions/action-shortcode-functions.php:71
47
  #: templates-functions/action-shortcode-functions.php:72
@@ -49,8 +49,8 @@ msgid "All Events"
49
  msgstr ""
50
 
51
  #: classes/class-core.php:331 classes/class-core.php:342
52
- #: classes/class-core.php:346 classes/class-shortcode.php:264
53
- #: media/js/blocks/src/timetable/inspector.js:105
54
  msgid "Event categories"
55
  msgstr ""
56
 
@@ -132,7 +132,7 @@ msgid "No Event tags found in Trash"
132
  msgstr ""
133
 
134
  #: classes/class-core.php:436 classes/class-core.php:447
135
- #: classes/class-hooks.php:182 classes/class-shortcode.php:259
136
  msgid "Events"
137
  msgstr ""
138
 
@@ -169,11 +169,12 @@ msgid "No Events found in Trash"
169
  msgstr ""
170
 
171
  #: classes/class-core.php:475 classes/class-core.php:486
172
- #: classes/class-hooks.php:190 media/js/blocks/src/timetable/inspector.js:88
 
173
  msgid "Columns"
174
  msgstr ""
175
 
176
- #: classes/class-core.php:476 classes/class-shortcode.php:254
177
  #: templates/events/event-data.php:4
178
  msgid "Column"
179
  msgstr ""
@@ -210,57 +211,57 @@ msgstr ""
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:364 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:83
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
252
  msgid "Help & Shortcode"
253
  msgstr ""
254
 
255
- #: classes/class-hooks.php:278
256
  msgid "Quick Start Guide"
257
  msgstr ""
258
 
259
- #: classes/class-hooks.php:279
260
  msgid "Help"
261
  msgstr ""
262
 
263
- #: classes/class-hooks.php:280
264
  msgid "Leave a Review"
265
  msgstr ""
266
 
@@ -284,172 +285,189 @@ msgstr ""
284
  msgid "Event Tag base"
285
  msgstr ""
286
 
287
- #: classes/class-shortcode.php:269
288
  msgid "Hour measure"
289
  msgstr ""
290
 
291
- #: classes/class-shortcode.php:270
292
- #: media/js/blocks/src/timetable/inspector.js:158 templates/popup/index.php:66
293
  msgid "Hour (1h)"
294
  msgstr ""
295
 
296
- #: classes/class-shortcode.php:270
297
- #: media/js/blocks/src/timetable/inspector.js:159 templates/popup/index.php:67
298
  msgid "Half hour (30min)"
299
  msgstr ""
300
 
301
- #: classes/class-shortcode.php:270
302
- #: media/js/blocks/src/timetable/inspector.js:160 templates/popup/index.php:68
303
  msgid "Quarter hour (15min)"
304
  msgstr ""
305
 
306
- #: classes/class-shortcode.php:274
307
  msgid "Filter style"
308
  msgstr ""
309
 
310
- #: classes/class-shortcode.php:275
311
- #: media/js/blocks/src/timetable/inspector.js:168
312
  msgid "Dropdown list"
313
  msgstr ""
314
 
315
- #: classes/class-shortcode.php:275
316
- #: media/js/blocks/src/timetable/inspector.js:169 templates/popup/index.php:77
317
  msgid "Tabs"
318
  msgstr ""
319
 
320
- #: classes/class-shortcode.php:279
321
- #: media/js/blocks/src/timetable/inspector.js:173 templates/popup/index.php:83
322
  msgid "Order of items in filter"
323
  msgstr ""
324
 
325
- #: classes/class-shortcode.php:280
326
- #: media/js/blocks/src/timetable/inspector.js:177
327
- #: media/js/blocks/src/timetable/inspector.js:247 templates/popup/index.php:86
 
 
328
  msgid "Default"
329
  msgstr ""
330
 
331
- #: classes/class-shortcode.php:280
332
- #: media/js/blocks/src/timetable/inspector.js:178 templates/popup/index.php:87
333
  msgid "Menu Order"
334
  msgstr ""
335
 
336
- #: classes/class-shortcode.php:280 classes/class-shortcode.php:305
337
- #: media/js/blocks/src/timetable/inspector.js:111
338
- #: media/js/blocks/src/timetable/inspector.js:179 templates/popup/index.php:40
339
  #: templates/popup/index.php:88 templates/widgets/gallery-list.php:3
340
  msgid "Title"
341
  msgstr ""
342
 
343
- #: classes/class-shortcode.php:284
344
  msgid "Filter label"
345
  msgstr ""
346
 
347
- #: classes/class-shortcode.php:289
348
  msgid "Hide 'All Events' view"
349
  msgstr ""
350
 
351
- #: classes/class-shortcode.php:290 classes/class-shortcode.php:295
352
- #: classes/class-shortcode.php:300 classes/class-shortcode.php:307
353
- #: classes/class-shortcode.php:313 classes/class-shortcode.php:319
354
- #: classes/class-shortcode.php:325 classes/class-shortcode.php:331
355
- #: classes/class-shortcode.php:336 classes/class-shortcode.php:360
356
- #: media/js/blocks/src/timetable/inspector.js:192
357
- #: media/js/blocks/src/timetable/inspector.js:201
358
- #: media/js/blocks/src/timetable/inspector.js:210
359
- #: media/js/blocks/src/timetable/inspector.js:219
360
- #: media/js/blocks/src/timetable/inspector.js:228
361
  #: templates/events/metabox-event-options.php:45 templates/popup/index.php:103
362
  #: templates/popup/index.php:112 templates/popup/index.php:122
363
  #: templates/popup/index.php:130 templates/popup/index.php:139
364
- #: templates/widgets/gallery-list.php:60
365
  msgid "No"
366
  msgstr ""
367
 
368
- #: classes/class-shortcode.php:290 classes/class-shortcode.php:295
369
- #: classes/class-shortcode.php:300 classes/class-shortcode.php:307
370
- #: classes/class-shortcode.php:313 classes/class-shortcode.php:319
371
- #: classes/class-shortcode.php:325 classes/class-shortcode.php:331
372
- #: classes/class-shortcode.php:336 classes/class-shortcode.php:360
373
- #: media/js/blocks/src/timetable/inspector.js:193
374
- #: media/js/blocks/src/timetable/inspector.js:202
375
- #: media/js/blocks/src/timetable/inspector.js:211
376
- #: media/js/blocks/src/timetable/inspector.js:220
377
- #: media/js/blocks/src/timetable/inspector.js:229
378
  #: templates/events/metabox-event-options.php:46 templates/popup/index.php:104
379
  #: templates/popup/index.php:113 templates/popup/index.php:121
380
  #: templates/popup/index.php:131 templates/popup/index.php:140
381
- #: templates/widgets/gallery-list.php:62
382
  msgid "Yes"
383
  msgstr ""
384
 
385
- #: classes/class-shortcode.php:294
386
  msgid "Hide first (hours) column"
387
  msgstr ""
388
 
389
- #: classes/class-shortcode.php:299
390
  msgid "Hide empty rows"
391
  msgstr ""
392
 
393
- #: classes/class-shortcode.php:311
394
- #: media/js/blocks/src/timetable/inspector.js:118 templates/popup/index.php:41
395
  msgid "Time"
396
  msgstr ""
397
 
398
- #: classes/class-shortcode.php:317
399
- #: media/js/blocks/src/timetable/inspector.js:123 templates/popup/index.php:42
400
  msgid "Subtitle"
401
  msgstr ""
402
 
403
- #: classes/class-shortcode.php:323
404
- #: media/js/blocks/src/timetable/inspector.js:128
405
  #: templates/events/event-data.php:7 templates/popup/index.php:43
406
  msgid "Description"
407
  msgstr ""
408
 
409
- #: classes/class-shortcode.php:329
410
  msgid "User"
411
  msgstr ""
412
 
413
- #: classes/class-shortcode.php:335
414
  msgid "Disable event URL"
415
  msgstr ""
416
 
417
- #: classes/class-shortcode.php:340
418
  msgid "Text align"
419
  msgstr ""
420
 
421
- #: classes/class-shortcode.php:341
422
- #: media/js/blocks/src/timetable/inspector.js:237 templates/popup/index.php:147
423
  msgid "center"
424
  msgstr ""
425
 
426
- #: classes/class-shortcode.php:341
427
- #: media/js/blocks/src/timetable/inspector.js:238 templates/popup/index.php:148
428
  msgid "left"
429
  msgstr ""
430
 
431
- #: classes/class-shortcode.php:341
432
- #: media/js/blocks/src/timetable/inspector.js:239 templates/popup/index.php:149
433
  msgid "right"
434
  msgstr ""
435
 
436
- #: classes/class-shortcode.php:345
437
  msgid "Id"
438
  msgstr ""
439
 
440
- #: classes/class-shortcode.php:349
441
  msgid "Row height (in px)"
442
  msgstr ""
443
 
444
- #: classes/class-shortcode.php:354
445
  msgid "Base Font Size"
446
  msgstr ""
447
 
448
- #: classes/class-shortcode.php:359
449
  msgid "Responsive"
450
  msgstr ""
451
 
452
- #: classes/controllers/class-controller-settings.php:74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
  msgid "Settings saved."
454
  msgstr ""
455
 
@@ -457,14 +475,31 @@ msgstr ""
457
  msgid "Timeslots"
458
  msgstr ""
459
 
460
- #: classes/models/class-events.php:168
461
  msgid "Tags"
462
  msgstr ""
463
 
464
- #: classes/models/class-events.php:169
465
  msgid "Categories"
466
  msgstr ""
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  #: classes/models/class-import.php:125
469
  msgid "Assign Authors"
470
  msgstr ""
@@ -629,108 +664,111 @@ msgstr ""
629
  msgid "Timetable Events"
630
  msgstr ""
631
 
632
- #: media/js/blocks/src/timetable/inspector.js:89 templates/popup/index.php:12
 
 
633
  #: templates/popup/index.php:23 templates/popup/index.php:34
634
- msgid "In order to display multiple points hold ctrl/cmd button."
 
635
  msgstr ""
636
 
637
- #: media/js/blocks/src/timetable/inspector.js:97
638
  msgid "Specific events"
639
  msgstr ""
640
 
641
- #: media/js/blocks/src/timetable/inspector.js:133 templates/popup/index.php:44
642
  msgid "Event Head"
643
  msgstr ""
644
 
645
- #: media/js/blocks/src/timetable/inspector.js:138 templates/popup/index.php:49
646
  msgid "Block height in pixels"
647
  msgstr ""
648
 
649
- #: media/js/blocks/src/timetable/inspector.js:148 templates/popup/index.php:56
650
  msgid "Base font size"
651
  msgstr ""
652
 
653
- #: media/js/blocks/src/timetable/inspector.js:149 templates/popup/index.php:59
654
  msgid "Base font size for the table. Example 12px, 2em, 80%."
655
  msgstr ""
656
 
657
- #: media/js/blocks/src/timetable/inspector.js:154 templates/popup/index.php:63
658
  msgid "Time frame for event"
659
  msgstr ""
660
 
661
- #: media/js/blocks/src/timetable/inspector.js:164 templates/popup/index.php:73
662
  msgid "Filter events style"
663
  msgstr ""
664
 
665
- #: media/js/blocks/src/timetable/inspector.js:183 templates/popup/index.php:93
666
  msgid "Filter title to display all events"
667
  msgstr ""
668
 
669
- #: media/js/blocks/src/timetable/inspector.js:188 templates/popup/index.php:99
670
  msgid "Hide 'All Events' option"
671
  msgstr ""
672
 
673
- #: media/js/blocks/src/timetable/inspector.js:197 templates/popup/index.php:109
674
  msgid "Hide column with hours"
675
  msgstr ""
676
 
677
- #: media/js/blocks/src/timetable/inspector.js:206 templates/popup/index.php:118
678
  msgid "Do not display empty rows"
679
  msgstr ""
680
 
681
- #: media/js/blocks/src/timetable/inspector.js:215 templates/popup/index.php:127
682
  msgid "Merge cells with common events"
683
  msgstr ""
684
 
685
- #: media/js/blocks/src/timetable/inspector.js:224 templates/popup/index.php:136
686
- #: templates/widgets/gallery-list.php:56
687
  msgid "Disable event link"
688
  msgstr ""
689
 
690
- #: media/js/blocks/src/timetable/inspector.js:233 templates/popup/index.php:145
691
  msgid "Horizontal align"
692
  msgstr ""
693
 
694
- #: media/js/blocks/src/timetable/inspector.js:243 templates/popup/index.php:154
695
  msgid "Vertical align"
696
  msgstr ""
697
 
698
- #: media/js/blocks/src/timetable/inspector.js:248 templates/popup/index.php:157
699
  msgid "top"
700
  msgstr ""
701
 
702
- #: media/js/blocks/src/timetable/inspector.js:249 templates/popup/index.php:158
703
  msgid "middle"
704
  msgstr ""
705
 
706
- #: media/js/blocks/src/timetable/inspector.js:250 templates/popup/index.php:159
707
  msgid "bottom"
708
  msgstr ""
709
 
710
- #: media/js/blocks/src/timetable/inspector.js:254 templates/popup/index.php:164
711
  msgid "Unique ID"
712
  msgstr ""
713
 
714
- #: media/js/blocks/src/timetable/inspector.js:255 templates/popup/index.php:167
715
  msgid ""
716
  "If you use more than one table on a page specify the unique ID for a "
717
  "timetable. It is usually all lowercase and contains only letters, numbers, "
718
  "and hyphens."
719
  msgstr ""
720
 
721
- #: media/js/blocks/src/timetable/inspector.js:260 templates/popup/index.php:171
722
  msgid "CSS class"
723
  msgstr ""
724
 
725
- #: media/js/blocks/src/timetable/inspector.js:265 templates/popup/index.php:177
726
  msgid "Mobile behavior"
727
  msgstr ""
728
 
729
- #: media/js/blocks/src/timetable/inspector.js:269 templates/popup/index.php:181
730
  msgid "Table"
731
  msgstr ""
732
 
733
- #: media/js/blocks/src/timetable/inspector.js:270 templates/popup/index.php:180
734
  msgid "List"
735
  msgstr ""
736
 
@@ -879,18 +917,6 @@ msgstr ""
879
  msgid "Disable link to this event:"
880
  msgstr ""
881
 
882
- #: templates/popup/index.php:5
883
- msgid "<b>Columns</b> (required)"
884
- msgstr ""
885
-
886
- #: templates/popup/index.php:16
887
- msgid "Specific <b>events</b>"
888
- msgstr ""
889
-
890
- #: templates/popup/index.php:27
891
- msgid "Event <b>categories</b>"
892
- msgstr ""
893
-
894
  #: templates/popup/index.php:38
895
  msgid "Fields to display:"
896
  msgstr ""
@@ -915,13 +941,13 @@ msgstr ""
915
  msgid "default"
916
  msgstr ""
917
 
918
- #: templates/popup/index.php:183
919
  msgid ""
920
  "Tick \"List\" to display events in a list view on mobile devices. Tick "
921
  "\"Table\" to display events in a table."
922
  msgstr ""
923
 
924
- #: templates/popup/index.php:189
925
  msgid "Add Timetable"
926
  msgstr ""
927
 
@@ -1004,34 +1030,34 @@ msgstr ""
1004
  msgid "Event categories. Leave blank to display all."
1005
  msgstr ""
1006
 
1007
- #: templates/widgets/gallery-list.php:49
1008
  msgid "Number of events to display"
1009
  msgstr ""
1010
 
1011
- #: templates/widgets/gallery-list.php:67
1012
  msgid "Custom link for events"
1013
  msgstr ""
1014
 
1015
- #: templates/widgets/gallery-list.php:75
1016
  msgid "Event background color"
1017
  msgstr ""
1018
 
1019
- #: templates/widgets/gallery-list.php:85
1020
  msgid "Event background color on hover"
1021
  msgstr ""
1022
 
1023
- #: templates/widgets/gallery-list.php:95
1024
  msgid "Event text color"
1025
  msgstr ""
1026
 
1027
- #: templates/widgets/gallery-list.php:105
1028
  msgid "Event text color on hover"
1029
  msgstr ""
1030
 
1031
- #: templates/widgets/gallery-list.php:115
1032
  msgid "Event border color"
1033
  msgstr ""
1034
 
1035
- #: templates/widgets/gallery-list.php:125
1036
  msgid "Event border color on hover"
1037
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Timetable and Event Schedule Plugin\n"
5
+ "POT-Creation-Date: 2020-05-16 00:09+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: MotoPress <info@getmotopress.com>\n"
41
  msgstr ""
42
 
43
  #: classes/blocks/class-timetable-block.php:79 classes/class-core.php:442
44
+ #: classes/class-shortcode.php:70 classes/class-shortcode.php:286
45
  #: templates-functions/action-shortcode-functions.php:57
46
  #: templates-functions/action-shortcode-functions.php:71
47
  #: templates-functions/action-shortcode-functions.php:72
49
  msgstr ""
50
 
51
  #: classes/class-core.php:331 classes/class-core.php:342
52
+ #: classes/class-core.php:346 classes/class-shortcode.php:265
53
+ #: media/js/blocks/src/timetable/inspector.js:107 templates/popup/index.php:27
54
  msgid "Event categories"
55
  msgstr ""
56
 
132
  msgstr ""
133
 
134
  #: classes/class-core.php:436 classes/class-core.php:447
135
+ #: classes/class-hooks.php:192 classes/class-shortcode.php:260
136
  msgid "Events"
137
  msgstr ""
138
 
169
  msgstr ""
170
 
171
  #: classes/class-core.php:475 classes/class-core.php:486
172
+ #: classes/class-hooks.php:200 media/js/blocks/src/timetable/inspector.js:89
173
+ #: templates/popup/index.php:5
174
  msgid "Columns"
175
  msgstr ""
176
 
177
+ #: classes/class-core.php:476 classes/class-shortcode.php:255
178
  #: templates/events/event-data.php:4
179
  msgid "Column"
180
  msgstr ""
211
  msgid "No Columns found in Trash"
212
  msgstr ""
213
 
214
+ #: classes/class-hooks.php:78
215
  msgid "Timetable Sidebar"
216
  msgstr ""
217
 
218
+ #: classes/class-hooks.php:80 classes/class-hooks.php:188
219
+ #: classes/class-shortcode.php:370 media/js/blocks/src/timetable/index.js:12
220
  msgid "Timetable"
221
  msgstr ""
222
 
223
+ #: classes/class-hooks.php:179
224
  msgid "Import Timetable events, categories, tags and images."
225
  msgstr ""
226
 
227
+ #: classes/class-hooks.php:196
228
  msgid "Add Event"
229
  msgstr ""
230
 
231
+ #: classes/class-hooks.php:204
232
  msgid "Add Column"
233
  msgstr ""
234
 
235
+ #: classes/class-hooks.php:208
236
  msgid "Event Categories"
237
  msgstr ""
238
 
239
+ #: classes/class-hooks.php:212
240
  msgid "Event Tags"
241
  msgstr ""
242
 
243
+ #: classes/class-hooks.php:216 classes/modules/class-post.php:41
244
+ #: media/js/blocks/src/timetable/inspector.js:84
245
  msgid "Settings"
246
  msgstr ""
247
 
248
+ #: classes/class-hooks.php:220
249
  msgid "Export / Import"
250
  msgstr ""
251
 
252
+ #: classes/class-hooks.php:224
253
  msgid "Help & Shortcode"
254
  msgstr ""
255
 
256
+ #: classes/class-hooks.php:288
257
  msgid "Quick Start Guide"
258
  msgstr ""
259
 
260
+ #: classes/class-hooks.php:289
261
  msgid "Help"
262
  msgstr ""
263
 
264
+ #: classes/class-hooks.php:290
265
  msgid "Leave a Review"
266
  msgstr ""
267
 
285
  msgid "Event Tag base"
286
  msgstr ""
287
 
288
+ #: classes/class-shortcode.php:270
289
  msgid "Hour measure"
290
  msgstr ""
291
 
292
+ #: classes/class-shortcode.php:271
293
+ #: media/js/blocks/src/timetable/inspector.js:161 templates/popup/index.php:66
294
  msgid "Hour (1h)"
295
  msgstr ""
296
 
297
+ #: classes/class-shortcode.php:271
298
+ #: media/js/blocks/src/timetable/inspector.js:162 templates/popup/index.php:67
299
  msgid "Half hour (30min)"
300
  msgstr ""
301
 
302
+ #: classes/class-shortcode.php:271
303
+ #: media/js/blocks/src/timetable/inspector.js:163 templates/popup/index.php:68
304
  msgid "Quarter hour (15min)"
305
  msgstr ""
306
 
307
+ #: classes/class-shortcode.php:275
308
  msgid "Filter style"
309
  msgstr ""
310
 
311
+ #: classes/class-shortcode.php:276
312
+ #: media/js/blocks/src/timetable/inspector.js:171
313
  msgid "Dropdown list"
314
  msgstr ""
315
 
316
+ #: classes/class-shortcode.php:276
317
+ #: media/js/blocks/src/timetable/inspector.js:172 templates/popup/index.php:77
318
  msgid "Tabs"
319
  msgstr ""
320
 
321
+ #: classes/class-shortcode.php:280
322
+ #: media/js/blocks/src/timetable/inspector.js:176 templates/popup/index.php:83
323
  msgid "Order of items in filter"
324
  msgstr ""
325
 
326
+ #: classes/class-shortcode.php:281 classes/class-shortcode.php:367
327
+ #: media/js/blocks/src/timetable/inspector.js:180
328
+ #: media/js/blocks/src/timetable/inspector.js:250
329
+ #: media/js/blocks/src/timetable/inspector.js:261 templates/popup/index.php:86
330
+ #: templates/popup/index.php:167
331
  msgid "Default"
332
  msgstr ""
333
 
334
+ #: classes/class-shortcode.php:281
335
+ #: media/js/blocks/src/timetable/inspector.js:181 templates/popup/index.php:87
336
  msgid "Menu Order"
337
  msgstr ""
338
 
339
+ #: classes/class-shortcode.php:281 classes/class-shortcode.php:306
340
+ #: media/js/blocks/src/timetable/inspector.js:114
341
+ #: media/js/blocks/src/timetable/inspector.js:182 templates/popup/index.php:40
342
  #: templates/popup/index.php:88 templates/widgets/gallery-list.php:3
343
  msgid "Title"
344
  msgstr ""
345
 
346
+ #: classes/class-shortcode.php:285
347
  msgid "Filter label"
348
  msgstr ""
349
 
350
+ #: classes/class-shortcode.php:290
351
  msgid "Hide 'All Events' view"
352
  msgstr ""
353
 
354
+ #: classes/class-shortcode.php:291 classes/class-shortcode.php:296
355
+ #: classes/class-shortcode.php:301 classes/class-shortcode.php:308
356
+ #: classes/class-shortcode.php:314 classes/class-shortcode.php:320
357
+ #: classes/class-shortcode.php:326 classes/class-shortcode.php:332
358
+ #: classes/class-shortcode.php:337 classes/class-shortcode.php:361
359
+ #: media/js/blocks/src/timetable/inspector.js:195
360
+ #: media/js/blocks/src/timetable/inspector.js:204
361
+ #: media/js/blocks/src/timetable/inspector.js:213
362
+ #: media/js/blocks/src/timetable/inspector.js:222
363
+ #: media/js/blocks/src/timetable/inspector.js:231
364
  #: templates/events/metabox-event-options.php:45 templates/popup/index.php:103
365
  #: templates/popup/index.php:112 templates/popup/index.php:122
366
  #: templates/popup/index.php:130 templates/popup/index.php:139
367
+ #: templates/widgets/gallery-list.php:63
368
  msgid "No"
369
  msgstr ""
370
 
371
+ #: classes/class-shortcode.php:291 classes/class-shortcode.php:296
372
+ #: classes/class-shortcode.php:301 classes/class-shortcode.php:308
373
+ #: classes/class-shortcode.php:314 classes/class-shortcode.php:320
374
+ #: classes/class-shortcode.php:326 classes/class-shortcode.php:332
375
+ #: classes/class-shortcode.php:337 classes/class-shortcode.php:361
376
+ #: media/js/blocks/src/timetable/inspector.js:196
377
+ #: media/js/blocks/src/timetable/inspector.js:205
378
+ #: media/js/blocks/src/timetable/inspector.js:214
379
+ #: media/js/blocks/src/timetable/inspector.js:223
380
+ #: media/js/blocks/src/timetable/inspector.js:232
381
  #: templates/events/metabox-event-options.php:46 templates/popup/index.php:104
382
  #: templates/popup/index.php:113 templates/popup/index.php:121
383
  #: templates/popup/index.php:131 templates/popup/index.php:140
384
+ #: templates/widgets/gallery-list.php:65
385
  msgid "Yes"
386
  msgstr ""
387
 
388
+ #: classes/class-shortcode.php:295
389
  msgid "Hide first (hours) column"
390
  msgstr ""
391
 
392
+ #: classes/class-shortcode.php:300
393
  msgid "Hide empty rows"
394
  msgstr ""
395
 
396
+ #: classes/class-shortcode.php:312
397
+ #: media/js/blocks/src/timetable/inspector.js:121 templates/popup/index.php:41
398
  msgid "Time"
399
  msgstr ""
400
 
401
+ #: classes/class-shortcode.php:318
402
+ #: media/js/blocks/src/timetable/inspector.js:126 templates/popup/index.php:42
403
  msgid "Subtitle"
404
  msgstr ""
405
 
406
+ #: classes/class-shortcode.php:324
407
+ #: media/js/blocks/src/timetable/inspector.js:131
408
  #: templates/events/event-data.php:7 templates/popup/index.php:43
409
  msgid "Description"
410
  msgstr ""
411
 
412
+ #: classes/class-shortcode.php:330
413
  msgid "User"
414
  msgstr ""
415
 
416
+ #: classes/class-shortcode.php:336
417
  msgid "Disable event URL"
418
  msgstr ""
419
 
420
+ #: classes/class-shortcode.php:341
421
  msgid "Text align"
422
  msgstr ""
423
 
424
+ #: classes/class-shortcode.php:342
425
+ #: media/js/blocks/src/timetable/inspector.js:240 templates/popup/index.php:147
426
  msgid "center"
427
  msgstr ""
428
 
429
+ #: classes/class-shortcode.php:342
430
+ #: media/js/blocks/src/timetable/inspector.js:241 templates/popup/index.php:148
431
  msgid "left"
432
  msgstr ""
433
 
434
+ #: classes/class-shortcode.php:342
435
+ #: media/js/blocks/src/timetable/inspector.js:242 templates/popup/index.php:149
436
  msgid "right"
437
  msgstr ""
438
 
439
+ #: classes/class-shortcode.php:346
440
  msgid "Id"
441
  msgstr ""
442
 
443
+ #: classes/class-shortcode.php:350
444
  msgid "Row height (in px)"
445
  msgstr ""
446
 
447
+ #: classes/class-shortcode.php:355
448
  msgid "Base Font Size"
449
  msgstr ""
450
 
451
+ #: classes/class-shortcode.php:360
452
  msgid "Responsive"
453
  msgstr ""
454
 
455
+ #: classes/class-shortcode.php:366
456
+ #: media/js/blocks/src/timetable/inspector.js:257 templates/popup/index.php:164
457
+ msgid "Table layout"
458
+ msgstr ""
459
+
460
+ #: classes/class-shortcode.php:367
461
+ #: media/js/blocks/src/timetable/inspector.js:262 templates/popup/index.php:168
462
+ msgid "Auto"
463
+ msgstr ""
464
+
465
+ #: classes/class-shortcode.php:367
466
+ #: media/js/blocks/src/timetable/inspector.js:263 templates/popup/index.php:169
467
+ msgid "Fixed"
468
+ msgstr ""
469
+
470
+ #: classes/controllers/class-controller-settings.php:70
471
  msgid "Settings saved."
472
  msgstr ""
473
 
475
  msgid "Timeslots"
476
  msgstr ""
477
 
478
+ #: classes/models/class-events.php:171
479
  msgid "Tags"
480
  msgstr ""
481
 
482
+ #: classes/models/class-events.php:172
483
  msgid "Categories"
484
  msgstr ""
485
 
486
+ #: classes/models/class-events.php:774
487
+ msgid "Duplicate"
488
+ msgstr ""
489
+
490
+ #: classes/models/class-events.php:795
491
+ msgid "A post type mismatch has been detected."
492
+ msgstr ""
493
+
494
+ #: classes/models/class-events.php:795 classes/models/class-events.php:893
495
+ msgid "Sorry, you are not allowed to edit this item."
496
+ msgstr ""
497
+
498
+ #: classes/models/class-events.php:819
499
+ #, php-format
500
+ msgid "%s - Copy"
501
+ msgstr ""
502
+
503
  #: classes/models/class-import.php:125
504
  msgid "Assign Authors"
505
  msgstr ""
664
  msgid "Timetable Events"
665
  msgstr ""
666
 
667
+ #: media/js/blocks/src/timetable/inspector.js:90
668
+ #: media/js/blocks/src/timetable/inspector.js:99
669
+ #: media/js/blocks/src/timetable/inspector.js:108 templates/popup/index.php:12
670
  #: templates/popup/index.php:23 templates/popup/index.php:34
671
+ #: templates/widgets/gallery-list.php:48
672
+ msgid "Hold the Ctrl or Command key to select/deselect multiple options."
673
  msgstr ""
674
 
675
+ #: media/js/blocks/src/timetable/inspector.js:98 templates/popup/index.php:16
676
  msgid "Specific events"
677
  msgstr ""
678
 
679
+ #: media/js/blocks/src/timetable/inspector.js:136 templates/popup/index.php:44
680
  msgid "Event Head"
681
  msgstr ""
682
 
683
+ #: media/js/blocks/src/timetable/inspector.js:141 templates/popup/index.php:49
684
  msgid "Block height in pixels"
685
  msgstr ""
686
 
687
+ #: media/js/blocks/src/timetable/inspector.js:151 templates/popup/index.php:56
688
  msgid "Base font size"
689
  msgstr ""
690
 
691
+ #: media/js/blocks/src/timetable/inspector.js:152 templates/popup/index.php:59
692
  msgid "Base font size for the table. Example 12px, 2em, 80%."
693
  msgstr ""
694
 
695
+ #: media/js/blocks/src/timetable/inspector.js:157 templates/popup/index.php:63
696
  msgid "Time frame for event"
697
  msgstr ""
698
 
699
+ #: media/js/blocks/src/timetable/inspector.js:167 templates/popup/index.php:73
700
  msgid "Filter events style"
701
  msgstr ""
702
 
703
+ #: media/js/blocks/src/timetable/inspector.js:186 templates/popup/index.php:93
704
  msgid "Filter title to display all events"
705
  msgstr ""
706
 
707
+ #: media/js/blocks/src/timetable/inspector.js:191 templates/popup/index.php:99
708
  msgid "Hide 'All Events' option"
709
  msgstr ""
710
 
711
+ #: media/js/blocks/src/timetable/inspector.js:200 templates/popup/index.php:109
712
  msgid "Hide column with hours"
713
  msgstr ""
714
 
715
+ #: media/js/blocks/src/timetable/inspector.js:209 templates/popup/index.php:118
716
  msgid "Do not display empty rows"
717
  msgstr ""
718
 
719
+ #: media/js/blocks/src/timetable/inspector.js:218 templates/popup/index.php:127
720
  msgid "Merge cells with common events"
721
  msgstr ""
722
 
723
+ #: media/js/blocks/src/timetable/inspector.js:227 templates/popup/index.php:136
724
+ #: templates/widgets/gallery-list.php:59
725
  msgid "Disable event link"
726
  msgstr ""
727
 
728
+ #: media/js/blocks/src/timetable/inspector.js:236 templates/popup/index.php:145
729
  msgid "Horizontal align"
730
  msgstr ""
731
 
732
+ #: media/js/blocks/src/timetable/inspector.js:246 templates/popup/index.php:154
733
  msgid "Vertical align"
734
  msgstr ""
735
 
736
+ #: media/js/blocks/src/timetable/inspector.js:251 templates/popup/index.php:157
737
  msgid "top"
738
  msgstr ""
739
 
740
+ #: media/js/blocks/src/timetable/inspector.js:252 templates/popup/index.php:158
741
  msgid "middle"
742
  msgstr ""
743
 
744
+ #: media/js/blocks/src/timetable/inspector.js:253 templates/popup/index.php:159
745
  msgid "bottom"
746
  msgstr ""
747
 
748
+ #: media/js/blocks/src/timetable/inspector.js:267 templates/popup/index.php:174
749
  msgid "Unique ID"
750
  msgstr ""
751
 
752
+ #: media/js/blocks/src/timetable/inspector.js:268 templates/popup/index.php:177
753
  msgid ""
754
  "If you use more than one table on a page specify the unique ID for a "
755
  "timetable. It is usually all lowercase and contains only letters, numbers, "
756
  "and hyphens."
757
  msgstr ""
758
 
759
+ #: media/js/blocks/src/timetable/inspector.js:273 templates/popup/index.php:181
760
  msgid "CSS class"
761
  msgstr ""
762
 
763
+ #: media/js/blocks/src/timetable/inspector.js:278 templates/popup/index.php:187
764
  msgid "Mobile behavior"
765
  msgstr ""
766
 
767
+ #: media/js/blocks/src/timetable/inspector.js:282 templates/popup/index.php:191
768
  msgid "Table"
769
  msgstr ""
770
 
771
+ #: media/js/blocks/src/timetable/inspector.js:283 templates/popup/index.php:190
772
  msgid "List"
773
  msgstr ""
774
 
917
  msgid "Disable link to this event:"
918
  msgstr ""
919
 
 
 
 
 
 
 
 
 
 
 
 
 
920
  #: templates/popup/index.php:38
921
  msgid "Fields to display:"
922
  msgstr ""
941
  msgid "default"
942
  msgstr ""
943
 
944
+ #: templates/popup/index.php:193
945
  msgid ""
946
  "Tick \"List\" to display events in a list view on mobile devices. Tick "
947
  "\"Table\" to display events in a table."
948
  msgstr ""
949
 
950
+ #: templates/popup/index.php:199
951
  msgid "Add Timetable"
952
  msgstr ""
953
 
1030
  msgid "Event categories. Leave blank to display all."
1031
  msgstr ""
1032
 
1033
+ #: templates/widgets/gallery-list.php:52
1034
  msgid "Number of events to display"
1035
  msgstr ""
1036
 
1037
+ #: templates/widgets/gallery-list.php:70
1038
  msgid "Custom link for events"
1039
  msgstr ""
1040
 
1041
+ #: templates/widgets/gallery-list.php:78
1042
  msgid "Event background color"
1043
  msgstr ""
1044
 
1045
+ #: templates/widgets/gallery-list.php:88
1046
  msgid "Event background color on hover"
1047
  msgstr ""
1048
 
1049
+ #: templates/widgets/gallery-list.php:98
1050
  msgid "Event text color"
1051
  msgstr ""
1052
 
1053
+ #: templates/widgets/gallery-list.php:108
1054
  msgid "Event text color on hover"
1055
  msgstr ""
1056
 
1057
+ #: templates/widgets/gallery-list.php:118
1058
  msgid "Event border color"
1059
  msgstr ""
1060
 
1061
+ #: templates/widgets/gallery-list.php:128
1062
  msgid "Event border color on hover"
1063
  msgstr ""
media/css/admin.css CHANGED
@@ -1 +1 @@
1
- #mp-event_data #add_event_table #event_end,#mp-event_data #add_event_table #event_start{min-width:100px}#mp-event_data .spinner.left{float:none}#mp-event_data .events-list-wrapper{max-height:360px;overflow-y:auto;overflow-x:hidden;margin-bottom:1em}#mp-event_data #events-list .active *{background-color:#F7FCFE}#mp-event_data #events-list .active td:first-child{border-left:4px solid #0091cd}#mp-event_data #events-list .delete-event-button,#mp-event_data #events-list .edit-event-button{margin:0 5px 10px 0;position:relative;width:2em;height:2em}#mp-event_data #events-list .delete-event-button.icon:before,#mp-event_data #events-list .edit-event-button.icon:before{font-family:Dashicons;font-variant:normal;font-weight:400;height:100%;left:0;line-height:1.85;margin:0;position:absolute;text-align:center;text-indent:0;text-transform:none;top:0;width:100%}@media screen and (max-width:1200px){#mp-event_data #events-list .event-description{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}}#column-options .mp-date,#column-options .mp-weekday{margin:10px 0 0}div[id^=jBoxID].jBox-Modal .jBox-container{overflow:hidden}div[id^=jBoxID].jBox-Modal .jBox-content{max-width:980px;max-height:800px;padding:0;overflow:hidden}div[id^=jBoxID].jBox-Modal .jBox-content>form{height:100%;overflow:hidden;position:relative}div[id^=jBoxID].jBox-Modal .jBox-content>form .mptt-shortcode-settings-wrapper{height:calc(100% - 60px);overflow-y:scroll;padding:0 15px 0 10px}div[id^=jBoxID].jBox-Modal .jBox-content>form .mptt-shortcode-submit-wrapper{background:#f4f5f6;border-top:1px solid #ddd;padding:15px;position:relative;text-align:left}#add_event_options_table.form-table tr>:first-child,#add_event_table.form-table tr>:first-child{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}
1
+ #mp-event_data #add_event_table #event_end,#mp-event_data #add_event_table #event_start{min-width:100px}#mp-event_data .spinner.left{float:none}#mp-event_data .events-list-wrapper{max-height:360px;overflow-y:auto;overflow-x:hidden;margin-bottom:1em}#mp-event_data #events-list .active *{background-color:#F7FCFE}#mp-event_data #events-list .active td:first-child{border-left:4px solid #0091cd}#mp-event_data #events-list .delete-event-button,#mp-event_data #events-list .edit-event-button{margin:0 5px 10px 0;position:relative;width:2em;height:2em}#mp-event_data #events-list .delete-event-button.icon:before,#mp-event_data #events-list .edit-event-button.icon:before{font-family:Dashicons;font-variant:normal;font-weight:400;height:100%;left:0;line-height:1.85;margin:0;position:absolute;text-align:center;text-indent:0;text-transform:none;top:0;width:100%}@media screen and (max-width:1200px){#mp-event_data #events-list .event-description{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}}#column-options .mp-date,#column-options .mp-weekday{margin:10px 0 0}div[id^=jBoxID].jBox-Modal .jBox-container{overflow:hidden}div[id^=jBoxID].jBox-Modal .jBox-content{max-width:980px;max-height:800px;padding:0;overflow:hidden}div[id^=jBoxID].jBox-Modal .jBox-content>form{height:100%;overflow:hidden;position:relative}div[id^=jBoxID].jBox-Modal .jBox-content>form .mptt-shortcode-settings-wrapper{height:calc(100% - 60px);overflow-y:scroll;padding:0 15px 0 10px}div[id^=jBoxID].jBox-Modal .jBox-content>form .mptt-shortcode-submit-wrapper{background:#f4f5f6;border-top:1px solid #ddd;padding:15px;position:relative;text-align:left}#add_event_options_table.form-table tr>:first-child,#add_event_table.form-table tr>:first-child{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}select.mptt-resize-vertical{resize:vertical;min-height:4em}
media/css/style.css CHANGED
@@ -1 +1 @@
1
- .twentyfourteen .tfmp{padding:12px 10px 0;max-width:474px;margin:0 auto}.twentyfourteen .tfmp div.product.hentry.has-post-thumbnail{margin-top:0}.twentythirteen h1{margin:0}.twentythirteen ul{padding:0}@media screen and (min-width:673px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1040px){.twentyfourteen .tfmp{padding-right:15px;padding-left:15px}}@media screen and (min-width:1110px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1218px){.twentyfourteen .tfmp{margin-right:54px}.full-width .twentyfourteen .tfmp{margin-right:auto}}.twentyfifteen .t15mp{padding-left:7.6923%;padding-right:7.6923%;padding-top:7.6923%;margin-bottom:7.6923%;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.15)}.twentyfifteen .mptt-sidebar .widget.mptt-container{padding:0}@media screen and (min-width:38.75em){.twentyfifteen .t15mp{margin-right:7.6923%;margin-left:7.6923%;margin-top:8.3333%}}@media screen and (min-width:59.6875em){.twentyfifteen .t15mp{margin-left:8.3333%;margin-right:8.3333%;padding:10%}.single-product .twentyfifteen .entry-summary{padding:0!important}}.twentysixteen .site-main{margin-right:7.6923%;margin-left:7.6923%}.twentysixteen .entry-summary{margin-right:0;margin-left:0}@media screen and (min-width:44.375em){.twentysixteen .site-main{margin-right:23.0769%}}@media screen and (min-width:56.875em){.twentysixteen .site-main{margin-right:0;margin-left:0}}.mptt-column .event[id^=event_columns_],.mptt-theme-mode-event.event{overflow:auto}.mptt-main-wrapper.mp-event-item img:not(.avatar ){width:100%;height:auto}.mptt-main-wrapper .mptt-content{width:66.999%;margin-right:3%;float:left}.mptt-main-wrapper .mptt-sidebar{width:30%;float:left}.mptt-main-wrapper .event-title{margin:0 0 2rem}.mptt-main-wrapper .thumbnail-wrapper{margin-bottom:1rem}.mptt-main-wrapper .event-content,.mptt-main-wrapper .timeslots-title{margin:1rem 0}.mptt-main-wrapper .mptt-event.events-list{margin:0 0 1rem 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-event.events-list .event{list-style:outside;padding:1rem}.mptt-main-wrapper .mptt-event.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-event.events-list .event .event-title,.mptt-main-wrapper .mptt-event.events-list .event .event-user,.mptt-main-wrapper .mptt-event.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-event.events-list .event .event-description{margin:.25rem 0 0;padding:0;hyphens:auto}.mptt-main-wrapper .mptt-event.events-list .event .event-user .avatar{border-radius:50%}.mptt-main-wrapper .mptt-event.events-list .event:last-child{margin-bottom:0}.mptt-main-wrapper .column-title{margin:0 0 2rem}.mptt-main-wrapper .column-content{margin:1rem 0}.mptt-main-wrapper .mptt-column.events-list{margin:0 0 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-column.events-list .event{list-style:none;padding:1rem}.mptt-main-wrapper .mptt-column.events-list .event .event-thumbnail{float:left;margin:0 2rem 2rem 0}.mptt-main-wrapper .mptt-column.events-list .event .event-title{clear:none;margin:0 0 .25rem;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-column.events-list .event .event-user,.mptt-main-wrapper .mptt-column.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-description{margin:.25rem 0 0;padding:0;hyphens:auto}.mptt-main-wrapper .mptt-column.events-list .event .event-user .avatar{border-radius:50%}.upcoming-events-widget{margin-top:2rem}.upcoming-events-widget .mptt-widget.events-list{list-style:none;margin:0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event{list-style:none;margin-bottom:2rem;padding:.5rem 2rem;border:none;border-left:3px solid #3b5998}.upcoming-events-widget .mptt-widget.events-list .event .event-title{margin:0 0 .25rem;padding:0}.upcoming-events-widget .mptt-widget.events-list .event .column-title,.upcoming-events-widget .mptt-widget.events-list .event .event-user,.upcoming-events-widget .mptt-widget.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title{margin:0 0 .25rem;padding:0;color:inherit}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title .event-link{color:inherit}.mptt-hidden{display:none;opacity:0;clear:both}.mprm_ie_browser .mptt-inner-event-content{width:100%}.mptt-container{list-style:none}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container{display:flex;flex-direction:column}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container:hover{display:flex}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-top .mptt-event-container{justify-content:flex-start;align-content:flex-start}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-middle .mptt-event-container{justify-content:center;align-content:center}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-bottom .mptt-event-container{justify-content:flex-end;align-content:flex-end}.mptt-shortcode-wrapper .mptt-shortcode-table{margin-top:1rem}.mptt-shortcode-wrapper .mptt-shortcode-table tr.mptt-shortcode-row th{background-color:#f0f0f0;border:1px solid #fff;text-align:center;color:#404040;padding:.25rem 1rem;overflow-wrap:normal;hyphens:none}.mptt-shortcode-wrapper .mptt-shortcode-table tbody tr:nth-child(2n+2){background-color:#f0f0f0}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td{position:relative;border:1px solid #fff;padding:0;line-height:normal;box-sizing:initial}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.event{background-color:#3b5998}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.mptt-shortcode-hours{padding:0 1rem!important;white-space:nowrap;width:1%;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container{position:absolute;top:0;right:0;left:0;z-index:3;overflow:hidden;outline:#fff solid 1px;color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover{background-color:inherit;overflow:visible;z-index:10}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover .event-title{text-decoration:underline}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container p{color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-title{color:inherit;display:inline-block;margin:.5rem .25rem .25rem;text-decoration:none;font-size:1.1em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-subtitle,.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user{margin:.25rem;font-size:.8em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-description{font-size:.8em;margin:.25rem;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .timeslot{font-size:.9em;margin:.25rem}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody tr:nth-child(2n+2) td.event{background-color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event{background-color:#fff}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event .event-user img{position:relative}.mptt-shortcode-wrapper .mptt-navigation-tabs{margin:0 0 1rem;list-style-type:none}.mptt-shortcode-wrapper .mptt-navigation-tabs li{display:inline-block;padding:.25rem .5rem .25rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list{display:none}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-column-title{margin:2rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list{list-style:none;margin:2rem;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event{list-style:none;margin-bottom:2rem;padding:0 0 0 2rem;border-left:3px solid #3b5998}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .mptt-event-title,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .timeslot{margin:.25rem 0 0;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-description,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-subtitle{margin:.25rem 0 0;padding:0;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user{margin:.25rem 0 0;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper.mptt-table-fixed{overflow-x:scroll}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{table-layout:auto}.mptt-shortcode-wrapper.mptt-table-fixed tbody,.mptt-shortcode-wrapper.mptt-table-fixed thead{width:100%}.mptt-shortcode-wrapper td{vertical-align:middle}@media (max-width:767px){.mptt-main-wrapper .mptt-content,.mptt-main-wrapper .mptt-sidebar{padding:0 2rem 2rem;width:100%}.mptt-shortcode-wrapper .mptt-shortcode-list{display:block}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-list{display:none!important}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{display:table}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table td.event{min-width:200px}.mptt-shortcode-wrapper.mptt-table-responsive .mptt-shortcode-table{display:none!important}}.mptt-clearfix{*zoom:1}.mptt-clearfix:after,.mptt-clearfix:before{display:table;content:"";line-height:0}.mptt-clearfix:after{clear:both}.twentysixteen.mptt-shortcode-wrapper .event-title{box-shadow:none}.mptt-theme-mode-event.event .event-user img{position:relative}.twentyfifteen.mptt-shortcode-wrapper .event-title{border-bottom:none}.twentyfourteen .mptt-content{width:100%;margin:0}
1
+ .mptt-main-wrapper .mptt-column.events-list .event .event-user .avatar,.mptt-main-wrapper .mptt-event.events-list .event .event-user .avatar{border-radius:50%}.twentyfourteen .tfmp{padding:12px 10px 0;max-width:474px;margin:0 auto}.twentyfourteen .tfmp div.product.hentry.has-post-thumbnail{margin-top:0}.twentythirteen h1{margin:0}.twentythirteen ul{padding:0}@media screen and (min-width:673px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1040px){.twentyfourteen .tfmp{padding-right:15px;padding-left:15px}}@media screen and (min-width:1110px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1218px){.twentyfourteen .tfmp{margin-right:54px}.full-width .twentyfourteen .tfmp{margin-right:auto}}.twentyfifteen .t15mp{padding-left:7.6923%;padding-right:7.6923%;padding-top:7.6923%;margin-bottom:7.6923%;background:#fff;-webkit-box-shadow:0 0 1px rgba(0,0,0,.15);box-shadow:0 0 1px rgba(0,0,0,.15)}.twentyfifteen .mptt-sidebar .widget.mptt-container{padding:0}@media screen and (min-width:38.75em){.twentyfifteen .t15mp{margin-right:7.6923%;margin-left:7.6923%;margin-top:8.3333%}}@media screen and (min-width:59.6875em){.twentyfifteen .t15mp{margin-left:8.3333%;margin-right:8.3333%;padding:10%}.single-product .twentyfifteen .entry-summary{padding:0!important}}.twentysixteen .site-main{margin-right:7.6923%;margin-left:7.6923%}.twentysixteen .entry-summary{margin-right:0;margin-left:0}@media screen and (min-width:44.375em){.twentysixteen .site-main{margin-right:23.0769%}}@media screen and (min-width:56.875em){.twentysixteen .site-main{margin-right:0;margin-left:0}}.mptt-column .event[id^=event_columns_],.mptt-theme-mode-event.event{overflow:auto}.mptt-main-wrapper.mp-event-item img:not(.avatar ){width:100%;height:auto}.mptt-main-wrapper .mptt-content{width:66.999%;margin-right:3%;float:left}.mptt-main-wrapper .mptt-sidebar{width:30%;float:left}.mptt-main-wrapper .event-title{margin:0 0 2rem}.mptt-main-wrapper .thumbnail-wrapper{margin-bottom:1rem}.mptt-main-wrapper .event-content,.mptt-main-wrapper .timeslots-title{margin:1rem 0}.mptt-main-wrapper .mptt-event.events-list{margin:0 0 1rem 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-event.events-list .event{list-style:outside;padding:1rem}.mptt-main-wrapper .mptt-event.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-event.events-list .event .event-title,.mptt-main-wrapper .mptt-event.events-list .event .event-user,.mptt-main-wrapper .mptt-event.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-event.events-list .event .event-description{margin:.25rem 0 0;padding:0;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.mptt-main-wrapper .mptt-event.events-list .event:last-child{margin-bottom:0}.mptt-main-wrapper .column-title{margin:0 0 2rem}.mptt-main-wrapper .column-content{margin:1rem 0}.mptt-main-wrapper .mptt-column.events-list{margin:0 0 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-column.events-list .event{list-style:none;padding:1rem}.mptt-main-wrapper .mptt-column.events-list .event .event-thumbnail{float:left;margin:0 2rem 2rem 0}.mptt-main-wrapper .mptt-column.events-list .event .event-title{clear:none;margin:0 0 .25rem;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-column.events-list .event .event-user,.mptt-main-wrapper .mptt-column.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-description{margin:.25rem 0 0;padding:0;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.upcoming-events-widget{margin-top:2rem}.upcoming-events-widget .mptt-widget.events-list{list-style:none;margin:0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event{list-style:none;margin-bottom:2rem;padding:.5rem 2rem;border:none;border-left:3px solid #3b5998}.upcoming-events-widget .mptt-widget.events-list .event .event-title{margin:0 0 .25rem;padding:0}.upcoming-events-widget .mptt-widget.events-list .event .column-title,.upcoming-events-widget .mptt-widget.events-list .event .event-user,.upcoming-events-widget .mptt-widget.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title{margin:0 0 .25rem;padding:0;color:inherit}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title .event-link{color:inherit}.mptt-hidden{display:none;opacity:0;clear:both}.mprm_ie_browser .mptt-inner-event-content{width:100%}.mptt-container{list-style:none}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container:hover{display:-webkit-box;display:-ms-flexbox;display:flex}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-top .mptt-event-container{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-middle .mptt-event-container{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-bottom .mptt-event-container{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-line-pack:end;align-content:flex-end}.mptt-shortcode-wrapper .mptt-shortcode-table{margin-top:1rem}.mptt-shortcode-wrapper .mptt-shortcode-table tr.mptt-shortcode-row th{background-color:#f0f0f0;border:1px solid #fff;text-align:center;color:#404040;padding:.25rem 1rem;overflow-wrap:normal;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}.mptt-shortcode-wrapper .mptt-shortcode-table tbody tr:nth-child(2n+2){background-color:#f0f0f0}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td{position:relative;border:1px solid #fff;padding:0;line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.event{background-color:#3b5998}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.mptt-shortcode-hours{padding:0 1rem!important;white-space:nowrap;width:1%;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container{position:absolute;top:0;right:0;left:0;z-index:3;overflow:hidden;outline:#fff solid 1px;color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event .event-user img,.mptt-theme-mode-event.event .event-user img{position:relative}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover{background-color:inherit;overflow:visible;z-index:10}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover .event-title{text-decoration:underline}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container p{color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-title{color:inherit;display:inline-block;margin:.5rem .25rem .25rem;text-decoration:none;font-size:1.1em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-subtitle,.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user{margin:.25rem;font-size:.8em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-description{font-size:.8em;margin:.25rem;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .timeslot{font-size:.9em;margin:.25rem}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody tr:nth-child(2n+2) td.event{background-color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event{background-color:#fff}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-table-layout-auto{table-layout:auto}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-table-layout-fixed{table-layout:fixed}.mptt-shortcode-wrapper .mptt-navigation-tabs{margin:0 0 1rem;list-style-type:none}.mptt-shortcode-wrapper .mptt-navigation-tabs li{display:inline-block;padding:.25rem .5rem .25rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list{display:none}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-column-title{margin:2rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list{list-style:none;margin:2rem;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event{list-style:none;margin-bottom:2rem;padding:0 0 0 2rem;border-left:3px solid #3b5998}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .mptt-event-title,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .timeslot{margin:.25rem 0 0;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-description,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-subtitle{margin:.25rem 0 0;padding:0;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper.mptt-table-fixed{overflow-x:scroll}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{table-layout:auto}.mptt-shortcode-wrapper.mptt-table-fixed tbody,.mptt-shortcode-wrapper.mptt-table-fixed thead{width:100%}.mptt-shortcode-wrapper td{vertical-align:middle}@media (max-width:767px){.mptt-main-wrapper .mptt-content,.mptt-main-wrapper .mptt-sidebar{padding:0 2rem 2rem;width:100%}.mptt-shortcode-wrapper .mptt-shortcode-list{display:block}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-list{display:none!important}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{display:table}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table td.event{min-width:200px}.mptt-shortcode-wrapper.mptt-table-responsive .mptt-shortcode-table{display:none!important}}.mptt-clearfix:after,.mptt-clearfix:before{display:table;content:"";line-height:0}.mptt-clearfix:after{clear:both}.twentysixteen.mptt-shortcode-wrapper .event-title{-webkit-box-shadow:none;box-shadow:none}.twentyfifteen.mptt-shortcode-wrapper .event-title{border-bottom:none}.twentyfourteen .mptt-content{width:100%;margin:0}
media/js/blocks/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(l,o,function(t){return e[t]}.bind(null,o));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=lodash},,,function(e,t,n){"use strict";n.r(t);var l=n(0);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function i(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=wp.i18n.__,b=wp.element.Component,f=wp.editor.InspectorControls,v=wp.components,h=v.SelectControl,y=v.CheckboxControl,d=v.PanelBody,g=v.TextControl,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(_,e);var t,n,o,b,v=(t=_,function(){var e,n=p(t);if(c()){var l=p(this).constructor;e=Reflect.construct(n,arguments,l)}else e=n.apply(this,arguments);return i(this,e)});function _(){var e;return r(this,_),(e=v.apply(this,arguments)).setOptions=e.setOptions.bind(u(e)),e}return n=_,(o=[{key:"setOptions",value:function(e){var t=[];return e&&(t=e.map((function(e){return{value:e.id.toString(),label:Object(l.get)(e,["title","raw"])||Object(l.get)(e,["name"])}}))),t}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.col,l=t.events,o=t.event_categ,r=t.increment,a=t.view,i=t.view_sort,u=t.label,c=t.hide_label,p=t.hide_hrs,s=t.hide_empty_rows,b=t.title,v=t.time,_=t.sub_title,w=t.description,E=t.user,R=t.group,C=t.disable_event_url,O=t.text_align,S=t.text_align_vertical,j=t.id,k=t.custom_class,x=t.row_height,T=t.font_size,P=t.responsive,D=e.selectedEvents,I=e.selectedColumns,z=e.selectedEventCategories,M=e.setAttributes;return React.createElement(f,null,React.createElement(d,{title:m("Settings","mp-timetable")},React.createElement(h,{multiple:!0,size:"7",label:m("Columns","mp-timetable"),help:m("In order to display multiple points hold ctrl/cmd button.","mp-timetable"),value:n,onChange:function(e){return M({col:e})},options:this.setOptions(I)}),React.createElement(h,{multiple:!0,size:"7",label:m("Specific events","mp-timetable"),value:l,onChange:function(e){return M({events:e})},options:this.setOptions(D)}),React.createElement(h,{multiple:!0,size:"7",label:m("Event categories","mp-timetable"),value:o,onChange:function(e){return M({event_categ:e})},options:this.setOptions(z)}),React.createElement(y,{label:m("Title","mp-timetable"),checked:"1"==b,onChange:function(e){M({title:e?"1":"0"})}}),React.createElement(y,{label:m("Time","mp-timetable"),checked:"1"==v,onChange:function(e){M({time:e?"1":"0"})}}),React.createElement(y,{label:m("Subtitle","mp-timetable"),checked:"1"==_,onChange:function(e){M({sub_title:e?"1":"0"})}}),React.createElement(y,{label:m("Description","mp-timetable"),checked:"1"==w,onChange:function(e){M({description:e?"1":"0"})}}),React.createElement(y,{label:m("Event Head","mp-timetable"),checked:"1"==E,onChange:function(e){M({user:e?"1":"0"})}}),React.createElement(g,{label:m("Block height in pixels","mp-timetable"),type:"number",value:isNaN(x)?0:parseInt(x),onChange:function(e){M({row_height:e.toString()})},min:1,step:1}),React.createElement(g,{label:m("Base font size","mp-timetable"),help:m("Base font size for the table. Example 12px, 2em, 80%.","mp-timetable"),value:T,onChange:function(e){return M({font_size:e})}}),React.createElement(h,{label:m("Time frame for event","mp-timetable"),value:r,onChange:function(e){return M({increment:e})},options:[{value:"1",label:m("Hour (1h)","mp-timetable")},{value:"0.5",label:m("Half hour (30min)","mp-timetable")},{value:"0.25",label:m("Quarter hour (15min)","mp-timetable")}]}),React.createElement(h,{label:m("Filter events style","mp-timetable"),value:a,onChange:function(e){return M({view:e})},options:[{value:"dropdown_list",label:m("Dropdown list","mp-timetable")},{value:"tabs",label:m("Tabs","mp-timetable")}]}),React.createElement(h,{label:m("Order of items in filter","mp-timetable"),value:i,onChange:function(e){return M({view_sort:e})},options:[{value:"",label:m("Default","mp-timetable")},{value:"menu_order",label:m("Menu Order","mp-timetable")},{value:"post_title",label:m("Title","mp-timetable")}]}),React.createElement(g,{label:m("Filter title to display all events","mp-timetable"),value:u,onChange:function(e){return M({label:e})}}),React.createElement(h,{label:m("Hide 'All Events' option","mp-timetable"),value:c,onChange:function(e){return M({hide_label:e})},options:[{value:"0",label:m("No","mp-timetable")},{value:"1",label:m("Yes","mp-timetable")}]}),React.createElement(h,{label:m("Hide column with hours","mp-timetable"),value:p,onChange:function(e){return M({hide_hrs:e})},options:[{value:"0",label:m("No","mp-timetable")},{value:"1",label:m("Yes","mp-timetable")}]}),React.createElement(h,{label:m("Do not display empty rows","mp-timetable"),value:s,onChange:function(e){return M({hide_empty_rows:e})},options:[{value:"0",label:m("No","mp-timetable")},{value:"1",label:m("Yes","mp-timetable")}]}),React.createElement(h,{label:m("Merge cells with common events","mp-timetable"),value:R,onChange:function(e){return M({group:e})},options:[{value:"0",label:m("No","mp-timetable")},{value:"1",label:m("Yes","mp-timetable")}]}),React.createElement(h,{label:m("Disable event link","mp-timetable"),value:C,onChange:function(e){return M({disable_event_url:e})},options:[{value:"0",label:m("No","mp-timetable")},{value:"1",label:m("Yes","mp-timetable")}]}),React.createElement(h,{label:m("Horizontal align","mp-timetable"),value:O,onChange:function(e){return M({text_align:e})},options:[{value:"center",label:m("center","mp-timetable")},{value:"left",label:m("left","mp-timetable")},{value:"right",label:m("right","mp-timetable")}]}),React.createElement(h,{label:m("Vertical align","mp-timetable"),value:S,onChange:function(e){return M({text_align_vertical:e})},options:[{value:"default",label:m("Default","mp-timetable")},{value:"top",label:m("top","mp-timetable")},{value:"middle",label:m("middle","mp-timetable")},{value:"bottom",label:m("bottom","mp-timetable")}]}),React.createElement(g,{label:m("Unique ID","mp-timetable"),help:m("If you use more than one table on a page specify the unique ID for a timetable. It is usually all lowercase and contains only letters, numbers, and hyphens.","mp-timetable"),value:j,onChange:function(e){return M({id:e})}}),React.createElement(g,{label:m("CSS class","mp-timetable"),value:k,onChange:function(e){return M({custom_class:e})}}),React.createElement(h,{label:m("Mobile behavior","mp-timetable"),value:P,onChange:function(e){return M({responsive:e})},options:[{value:"0",label:m("Table","mp-timetable")},{value:"1",label:m("List","mp-timetable")}]})))}}])&&a(n.prototype,o),b&&a(n,b),_}(b);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function C(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}wp.i18n.__;var k=wp.element,x=k.Component,T=k.Fragment,P=wp.compose.compose,D=wp.components,I=D.Disabled,z=D.ServerSideRender,M=wp.data.withSelect,N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(i,e);var t,n,o,r,a=(t=i,function(){var e,n=S(t);if(O()){var l=S(this).constructor;e=Reflect.construct(n,arguments,l)}else e=n.apply(this,arguments);return C(this,e)});function i(){return E(this,i),a.apply(this,arguments)}return n=i,(o=[{key:"initTable",value:function(){var e=setInterval((function(){jQuery(".mptt-shortcode-wrapper").length&&!jQuery(".mptt-shortcode-wrapper").hasClass("table-init")&&(clearInterval(e),window.mptt.tableInit())}),1)}},{key:"componentDidUpdate",value:function(e,t){Object(l.isEqual)(this.props.attributes,e.attributes)||this.initTable()}},{key:"componentDidMount",value:function(){this.initTable()}},{key:"render",value:function(){var e=this.props.attributes;return e.events,e.event_categ,React.createElement(T,null,React.createElement(_,this.props),React.createElement(I,null,React.createElement(z,{block:"mp-timetable/timetable",attributes:this.props.attributes})))}}])&&R(n.prototype,o),r&&R(n,r),i}(x),H=P([M((function(e,t){var n=e("core"),o=n.getEntityRecords,r=(n.getCategories,o("postType","mp-event",{per_page:-1,orderby:"title",order:"asc"})),a=o("postType","mp-column",{per_page:-1}),i=o("taxonomy","mp-event_category",{per_page:-1});return{selectedEvents:r?r.map((function(e){return Object(l.pick)(e,["id","title"])})):null,selectedColumns:a?a.map((function(e){return Object(l.pick)(e,["id","title"])})):null,selectedEventCategories:i?i.map((function(e){return Object(l.pick)(e,["id","name"])})):null}}))])(N);(0,wp.blocks.registerBlockType)("mp-timetable/timetable",{title:(0,wp.i18n.__)("Timetable","mp-timetable"),category:"common",icon:"calendar",supports:{align:["wide","full"]},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},edit:H,save:function(){return null}})}]);
1
+ !function(e){var t={};function n(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(l,a,function(t){return e[t]}.bind(null,a));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=lodash},,,function(e,t,n){"use strict";n.r(t);var l=n(0);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function i(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=wp.i18n.__,b=wp.element.Component,f=wp.editor.InspectorControls,v=wp.components,h=v.SelectControl,d=v.CheckboxControl,y=v.PanelBody,g=v.TextControl,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(_,e);var t,n,a,b,v=(t=_,function(){var e,n=p(t);if(c()){var l=p(this).constructor;e=Reflect.construct(n,arguments,l)}else e=n.apply(this,arguments);return i(this,e)});function _(){var e;return o(this,_),(e=v.apply(this,arguments)).setOptions=e.setOptions.bind(u(e)),e}return n=_,(a=[{key:"setOptions",value:function(e){var t=[];return e&&(t=e.map((function(e){return{value:e.id.toString(),label:Object(l.get)(e,["title","raw"])||Object(l.get)(e,["name"])}}))),t}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.col,l=t.events,a=t.event_categ,o=t.increment,r=t.view,i=t.view_sort,u=t.label,c=t.hide_label,p=t.hide_hrs,m=t.hide_empty_rows,b=t.title,v=t.time,_=t.sub_title,w=t.description,C=t.user,E=t.group,R=t.disable_event_url,O=t.text_align,S=t.text_align_vertical,j=t.id,k=t.custom_class,x=t.row_height,T=t.font_size,P=t.responsive,D=t.table_layout,I=e.selectedEvents,H=e.selectedColumns,z=e.selectedEventCategories,M=e.setAttributes;return React.createElement(f,null,React.createElement(y,{title:s("Settings","mp-timetable")},React.createElement(h,{multiple:!0,size:"7",label:s("Columns","mp-timetable"),help:s("Hold the Ctrl or Command key to select/deselect multiple options.","mp-timetable"),value:n,onChange:function(e){return M({col:e})},options:this.setOptions(H)}),React.createElement(h,{multiple:!0,size:"7",label:s("Specific events","mp-timetable"),help:s("Hold the Ctrl or Command key to select/deselect multiple options.","mp-timetable"),value:l,onChange:function(e){return M({events:e})},options:this.setOptions(I)}),React.createElement(h,{multiple:!0,size:"7",label:s("Event categories","mp-timetable"),help:s("Hold the Ctrl or Command key to select/deselect multiple options.","mp-timetable"),value:a,onChange:function(e){return M({event_categ:e})},options:this.setOptions(z)}),React.createElement(d,{label:s("Title","mp-timetable"),checked:"1"==b,onChange:function(e){M({title:e?"1":"0"})}}),React.createElement(d,{label:s("Time","mp-timetable"),checked:"1"==v,onChange:function(e){M({time:e?"1":"0"})}}),React.createElement(d,{label:s("Subtitle","mp-timetable"),checked:"1"==_,onChange:function(e){M({sub_title:e?"1":"0"})}}),React.createElement(d,{label:s("Description","mp-timetable"),checked:"1"==w,onChange:function(e){M({description:e?"1":"0"})}}),React.createElement(d,{label:s("Event Head","mp-timetable"),checked:"1"==C,onChange:function(e){M({user:e?"1":"0"})}}),React.createElement(g,{label:s("Block height in pixels","mp-timetable"),type:"number",value:isNaN(x)?0:parseInt(x),onChange:function(e){M({row_height:e.toString()})},min:1,step:1}),React.createElement(g,{label:s("Base font size","mp-timetable"),help:s("Base font size for the table. Example 12px, 2em, 80%.","mp-timetable"),value:T,onChange:function(e){return M({font_size:e})}}),React.createElement(h,{label:s("Time frame for event","mp-timetable"),value:o,onChange:function(e){return M({increment:e})},options:[{value:"1",label:s("Hour (1h)","mp-timetable")},{value:"0.5",label:s("Half hour (30min)","mp-timetable")},{value:"0.25",label:s("Quarter hour (15min)","mp-timetable")}]}),React.createElement(h,{label:s("Filter events style","mp-timetable"),value:r,onChange:function(e){return M({view:e})},options:[{value:"dropdown_list",label:s("Dropdown list","mp-timetable")},{value:"tabs",label:s("Tabs","mp-timetable")}]}),React.createElement(h,{label:s("Order of items in filter","mp-timetable"),value:i,onChange:function(e){return M({view_sort:e})},options:[{value:"",label:s("Default","mp-timetable")},{value:"menu_order",label:s("Menu Order","mp-timetable")},{value:"post_title",label:s("Title","mp-timetable")}]}),React.createElement(g,{label:s("Filter title to display all events","mp-timetable"),value:u,onChange:function(e){return M({label:e})}}),React.createElement(h,{label:s("Hide 'All Events' option","mp-timetable"),value:c,onChange:function(e){return M({hide_label:e})},options:[{value:"0",label:s("No","mp-timetable")},{value:"1",label:s("Yes","mp-timetable")}]}),React.createElement(h,{label:s("Hide column with hours","mp-timetable"),value:p,onChange:function(e){return M({hide_hrs:e})},options:[{value:"0",label:s("No","mp-timetable")},{value:"1",label:s("Yes","mp-timetable")}]}),React.createElement(h,{label:s("Do not display empty rows","mp-timetable"),value:m,onChange:function(e){return M({hide_empty_rows:e})},options:[{value:"0",label:s("No","mp-timetable")},{value:"1",label:s("Yes","mp-timetable")}]}),React.createElement(h,{label:s("Merge cells with common events","mp-timetable"),value:E,onChange:function(e){return M({group:e})},options:[{value:"0",label:s("No","mp-timetable")},{value:"1",label:s("Yes","mp-timetable")}]}),React.createElement(h,{label:s("Disable event link","mp-timetable"),value:R,onChange:function(e){return M({disable_event_url:e})},options:[{value:"0",label:s("No","mp-timetable")},{value:"1",label:s("Yes","mp-timetable")}]}),React.createElement(h,{label:s("Horizontal align","mp-timetable"),value:O,onChange:function(e){return M({text_align:e})},options:[{value:"center",label:s("center","mp-timetable")},{value:"left",label:s("left","mp-timetable")},{value:"right",label:s("right","mp-timetable")}]}),React.createElement(h,{label:s("Vertical align","mp-timetable"),value:S,onChange:function(e){return M({text_align_vertical:e})},options:[{value:"default",label:s("Default","mp-timetable")},{value:"top",label:s("top","mp-timetable")},{value:"middle",label:s("middle","mp-timetable")},{value:"bottom",label:s("bottom","mp-timetable")}]}),React.createElement(h,{label:s("Table layout","mp-timetable"),value:D,onChange:function(e){return M({table_layout:e})},options:[{value:"",label:s("Default","mp-timetable")},{value:"auto",label:s("Auto","mp-timetable")},{value:"fixed",label:s("Fixed","mp-timetable")}]}),React.createElement(g,{label:s("Unique ID","mp-timetable"),help:s("If you use more than one table on a page specify the unique ID for a timetable. It is usually all lowercase and contains only letters, numbers, and hyphens.","mp-timetable"),value:j,onChange:function(e){return M({id:e})}}),React.createElement(g,{label:s("CSS class","mp-timetable"),value:k,onChange:function(e){return M({custom_class:e})}}),React.createElement(h,{label:s("Mobile behavior","mp-timetable"),value:P,onChange:function(e){return M({responsive:e})},options:[{value:"0",label:s("Table","mp-timetable")},{value:"1",label:s("List","mp-timetable")}]})))}}])&&r(n.prototype,a),b&&r(n,b),_}(b);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function R(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}wp.i18n.__;var k=wp.element,x=k.Component,T=k.Fragment,P=wp.compose.compose,D=wp.components,I=D.Disabled,H=D.ServerSideRender,z=wp.data.withSelect,M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(i,e);var t,n,a,o,r=(t=i,function(){var e,n=S(t);if(O()){var l=S(this).constructor;e=Reflect.construct(n,arguments,l)}else e=n.apply(this,arguments);return R(this,e)});function i(){return C(this,i),r.apply(this,arguments)}return n=i,(a=[{key:"initTable",value:function(){var e=this.props.clientId,t=jQuery("#block-".concat(e)),n=setInterval((function(){t.find(".mptt-shortcode-wrapper").length&&!t.find(".mptt-shortcode-wrapper").hasClass("table-init")&&(clearInterval(n),window.mptt.tableInit())}),1)}},{key:"componentDidUpdate",value:function(e,t){Object(l.isEqual)(this.props.attributes,e.attributes)||this.initTable()}},{key:"componentDidMount",value:function(){this.initTable()}},{key:"render",value:function(){var e=this.props.attributes;return e.events,e.event_categ,React.createElement(T,null,React.createElement(_,this.props),React.createElement(I,null,React.createElement(H,{block:"mp-timetable/timetable",attributes:this.props.attributes})))}}])&&E(n.prototype,a),o&&E(n,o),i}(x),N=P([z((function(e,t){var n=e("core"),a=n.getEntityRecords,o=(n.getCategories,a("postType","mp-event",{per_page:-1,orderby:"title",order:"asc"})),r=a("postType","mp-column",{per_page:-1}),i=a("taxonomy","mp-event_category",{per_page:-1});return{selectedEvents:o?o.map((function(e){return Object(l.pick)(e,["id","title"])})):null,selectedColumns:r?r.map((function(e){return Object(l.pick)(e,["id","title"])})):null,selectedEventCategories:i?i.map((function(e){return Object(l.pick)(e,["id","name"])})):null}}))])(M);(0,wp.blocks.registerBlockType)("mp-timetable/timetable",{title:(0,wp.i18n.__)("Timetable","mp-timetable"),category:"common",icon:"calendar",supports:{align:["wide","full"]},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},edit:N,save:function(){return null}})}]);
media/js/blocks/src/timetable/edit.js CHANGED
@@ -21,9 +21,12 @@ class Edit extends Component {
21
  }
22
 
23
  initTable(){
 
 
 
24
  //Set timer and check when table is load fully, and then initialize table data, and after stop timer
25
  const waitLoadTable = setInterval( () => {
26
- if (jQuery('.mptt-shortcode-wrapper').length && !jQuery('.mptt-shortcode-wrapper').hasClass('table-init')){
27
  clearInterval(waitLoadTable);
28
  window.mptt.tableInit();
29
  }
21
  }
22
 
23
  initTable(){
24
+ const { clientId } = this.props;
25
+ const $block = jQuery( `#block-${clientId}` );
26
+
27
  //Set timer and check when table is load fully, and then initialize table data, and after stop timer
28
  const waitLoadTable = setInterval( () => {
29
+ if ($block.find('.mptt-shortcode-wrapper').length && !$block.find('.mptt-shortcode-wrapper').hasClass('table-init')){
30
  clearInterval(waitLoadTable);
31
  window.mptt.tableInit();
32
  }
media/js/blocks/src/timetable/inspector.js CHANGED
@@ -67,7 +67,8 @@ class Inspector extends Component {
67
 
68
  row_height,
69
  font_size,
70
- responsive,
 
71
  },
72
 
73
  selectedEvents,
@@ -86,7 +87,7 @@ class Inspector extends Component {
86
  multiple
87
  size="7"
88
  label={__('Columns', 'mp-timetable')}
89
- help={__('In order to display multiple points hold ctrl/cmd button.', 'mp-timetable')}
90
  value={col}
91
  onChange={col => setAttributes({col})}
92
  options={this.setOptions(selectedColumns)}
@@ -95,6 +96,7 @@ class Inspector extends Component {
95
  multiple
96
  size="7"
97
  label={__('Specific events', 'mp-timetable')}
 
98
  value={events}
99
  onChange={events => setAttributes({events})}
100
  options={this.setOptions(selectedEvents )}
@@ -103,6 +105,7 @@ class Inspector extends Component {
103
  multiple
104
  size="7"
105
  label={__('Event categories', 'mp-timetable')}
 
106
  value={event_categ}
107
  onChange={event_categ => setAttributes({event_categ})}
108
  options={this.setOptions(selectedEventCategories)}
@@ -250,6 +253,16 @@ class Inspector extends Component {
250
  { value: 'bottom', label: __( 'bottom' , 'mp-timetable' ) },
251
  ]}
252
  />
 
 
 
 
 
 
 
 
 
 
253
  <TextControl
254
  label={__('Unique ID', 'mp-timetable')}
255
  help={__('If you use more than one table on a page specify the unique ID for a timetable. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'mp-timetable')}
67
 
68
  row_height,
69
  font_size,
70
+ responsive,
71
+ table_layout,
72
  },
73
 
74
  selectedEvents,
87
  multiple
88
  size="7"
89
  label={__('Columns', 'mp-timetable')}
90
+ help={__('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable')}
91
  value={col}
92
  onChange={col => setAttributes({col})}
93
  options={this.setOptions(selectedColumns)}
96
  multiple
97
  size="7"
98
  label={__('Specific events', 'mp-timetable')}
99
+ help={__('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable')}
100
  value={events}
101
  onChange={events => setAttributes({events})}
102
  options={this.setOptions(selectedEvents )}
105
  multiple
106
  size="7"
107
  label={__('Event categories', 'mp-timetable')}
108
+ help={__('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable')}
109
  value={event_categ}
110
  onChange={event_categ => setAttributes({event_categ})}
111
  options={this.setOptions(selectedEventCategories)}
253
  { value: 'bottom', label: __( 'bottom' , 'mp-timetable' ) },
254
  ]}
255
  />
256
+ <SelectControl
257
+ label={__('Table layout', 'mp-timetable')}
258
+ value={table_layout}
259
+ onChange={table_layout => setAttributes({ table_layout })}
260
+ options={[
261
+ { value: '', label: __( 'Default', 'mp-timetable' ) },
262
+ { value: 'auto', label: __( 'Auto' , 'mp-timetable' ) },
263
+ { value: 'fixed', label: __( 'Fixed' , 'mp-timetable' ) },
264
+ ]}
265
+ />
266
  <TextControl
267
  label={__('Unique ID', 'mp-timetable')}
268
  help={__('If you use more than one table on a page specify the unique ID for a timetable. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'mp-timetable')}
media/js/mce-timeTable-buttons.js CHANGED
@@ -116,6 +116,9 @@
116
  case 'responsive':
117
  shortcode_obj.attrs.responsive = parameters.value;
118
  break;
 
 
 
119
  }
120
  });
121
 
116
  case 'responsive':
117
  shortcode_obj.attrs.responsive = parameters.value;
118
  break;
119
+ case 'table_layout':
120
+ shortcode_obj.attrs.table_layout = parameters.value;
121
+ break;
122
  }
123
  });
124
 
media/less/admin.less CHANGED
@@ -114,3 +114,7 @@ div[id^="jBoxID"] {
114
  }
115
  }
116
 
 
 
 
 
114
  }
115
  }
116
 
117
+ select.mptt-resize-vertical {
118
+ resize: vertical;
119
+ min-height: 4em;
120
+ }
media/less/style.less CHANGED
@@ -313,6 +313,12 @@
313
  }
314
  }
315
  }
 
 
 
 
 
 
316
  }
317
  .mptt-navigation-tabs {
318
  margin: 0 0 1rem;
313
  }
314
  }
315
  }
316
+ &.mptt-table-layout-auto {
317
+ table-layout: auto;
318
+ }
319
+ &.mptt-table-layout-fixed {
320
+ table-layout: fixed;
321
+ }
322
  }
323
  .mptt-navigation-tabs {
324
  margin: 0 0 1rem;
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.10
8
  * Author: MotoPress
9
  * Author URI: https://motopress.com
10
  * License: GPLv2 or later
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.11
8
  * Author: MotoPress
9
  * Author URI: https://motopress.com
10
  * License: GPLv2 or later
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: MotoPress
3
  Donate link: https://motopress.com/
4
  Tags: schedule, timetable, calendar, event, events calendar, dates, event organizer, booking, appointments, upcoming events
5
  Requires at least: 4.6
6
- Tested up to: 5.4
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -49,6 +49,8 @@ The plugin can be used for timetabling different types of events like various le
49
  * Color settings for background, background hover, text, and text hover
50
  * Export/import of your data
51
 
 
 
52
  Proud developers of Timetable plugin and the biggest set of blocks for Gutenberg - [Getwid WordPress Blocks](https://wordpress.org/plugins/getwid/).
53
 
54
  == Installation ==
@@ -79,6 +81,11 @@ Plugin bundles the following third-party resources:
79
 
80
  == Changelog ==
81
 
 
 
 
 
 
82
  = 2.3.10, Apr 24 2020 =
83
  * Bug fix: fixed an issue when a user with the Editor role could not access the administration area.
84
  * Improved compatibility with PHP 7.4.
3
  Donate link: https://motopress.com/
4
  Tags: schedule, timetable, calendar, event, events calendar, dates, event organizer, booking, appointments, upcoming events
5
  Requires at least: 4.6
6
+ Tested up to: 5.5
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
49
  * Color settings for background, background hover, text, and text hover
50
  * Export/import of your data
51
 
52
+ Timetable can be added to Elementor, Divi, Beaver or any other builder via shortcode. Plugin provides Timetable block for Gutenberg.
53
+
54
  Proud developers of Timetable plugin and the biggest set of blocks for Gutenberg - [Getwid WordPress Blocks](https://wordpress.org/plugins/getwid/).
55
 
56
  == Installation ==
81
 
82
  == Changelog ==
83
 
84
+ = 2.3.11, May 18 2020 =
85
+ * Added the ability to duplicate events.
86
+ * Added the ability to set table layout fixed or auto.
87
+ * Bug fix: fixed an issue with an empty categories list in the widget.
88
+
89
  = 2.3.10, Apr 24 2020 =
90
  * Bug fix: fixed an issue when a user with the Editor role could not access the administration area.
91
  * Improved compatibility with PHP 7.4.
templates-functions/action-shortcode-functions.php CHANGED
@@ -116,7 +116,12 @@ function mptt_shortcode_template_event( $mptt_shortcode_data, $post = 'all' ) {
116
  $font_size = ! empty( $params[ 'font_size' ] ) ? ' font-size:' . $params[ 'font_size' ] . ';' : '';
117
  $row_height = $params[ 'row_height' ];
118
  $table_class = apply_filters( 'mptt_shortcode_static_table_class', 'mptt-shortcode-table' ) . ' ' . $params[ 'custom_class' ];
119
- $table_class .= Settings::get_instance()->is_plugin_template_mode() ? '' : ' mptt-theme-mode';
 
 
 
 
 
120
 
121
  $data_grouped_by_row = mptt_make_data_shortcode( $bounds, $mptt_shortcode_data, $column_events );
122
 
116
  $font_size = ! empty( $params[ 'font_size' ] ) ? ' font-size:' . $params[ 'font_size' ] . ';' : '';
117
  $row_height = $params[ 'row_height' ];
118
  $table_class = apply_filters( 'mptt_shortcode_static_table_class', 'mptt-shortcode-table' ) . ' ' . $params[ 'custom_class' ];
119
+ $table_class .= Settings::get_instance()->is_plugin_template_mode() ? '' : ' mptt-theme-mode';
120
+
121
+ $table_layout = $params['table_layout'];
122
+ if ( !empty($table_layout) && ($table_layout == 'fixed' || $table_layout == 'auto') ) {
123
+ $table_class .= ' mptt-table-layout-' . $table_layout;
124
+ }
125
 
126
  $data_grouped_by_row = mptt_make_data_shortcode( $bounds, $mptt_shortcode_data, $column_events );
127
 
templates/popup/index.php CHANGED
@@ -2,36 +2,36 @@
2
  <div class="mptt-shortcode-settings-wrapper">
3
  <table class="form-table striped">
4
  <tr>
5
- <td><label for="weekday"><?php _e('<b>Columns</b> (required)', 'mp-timetable') ?></label></td>
6
  <td>
7
- <select multiple="multiple" id="weekday" name="weekday" class="widefat">
8
  <?php foreach ($data[ 'column' ] as $column): ?>
9
  <option value="<?php echo $column->ID; ?>"><?php echo $column->post_title; ?></option>
10
  <?php endforeach; ?>
11
  </select>
12
- <p class="description"><?php _e('In order to display multiple points hold ctrl/cmd button.', 'mp-timetable') ?></p>
13
  </td>
14
  </tr>
15
  <tr>
16
- <td><label for="event"><?php _e('Specific <b>events</b>', 'mp-timetable') ?></label></td>
17
  <td>
18
- <select multiple="multiple" id="event" name="event" class="widefat">
19
  <?php foreach ($data[ 'events' ] as $events): ?>
20
  <option value="<?php echo $events->ID; ?>"><?php echo $events->post_title; ?></option>
21
  <?php endforeach; ?>
22
  </select>
23
- <p class="description"><?php _e('In order to display multiple points hold ctrl/cmd button.', 'mp-timetable') ?></p>
24
  </td>
25
  </tr>
26
  <tr>
27
- <td><label for="event_category"><?php _e('Event <b>categories</b>', 'mp-timetable'); ?></label></td>
28
  <td>
29
- <select multiple="multiple" id="event_category" name="event_category" class="widefat">
30
  <?php foreach ($data[ 'category' ] as $category): ?>
31
  <option value="<?php echo $category->term_id; ?>"><?php echo $category->name; ?></option>
32
  <?php endforeach; ?>
33
  </select>
34
- <p class="description"><?php _e('In order to display multiple points hold ctrl/cmd button.', 'mp-timetable'); ?></p>
35
  </td>
36
  </tr>
37
  <tr>
@@ -160,6 +160,16 @@
160
  </select>
161
  </td>
162
  </tr>
 
 
 
 
 
 
 
 
 
 
163
  <tr>
164
  <td><label for="id"><?php _e('Unique ID', 'mp-timetable'); ?></label></td>
165
  <td>
2
  <div class="mptt-shortcode-settings-wrapper">
3
  <table class="form-table striped">
4
  <tr>
5
+ <td><label for="weekday"><?php _e('Columns', 'mp-timetable') ?></label></td>
6
  <td>
7
+ <select multiple="multiple" id="weekday" name="weekday" class="widefat mptt-resize-vertical">
8
  <?php foreach ($data[ 'column' ] as $column): ?>
9
  <option value="<?php echo $column->ID; ?>"><?php echo $column->post_title; ?></option>
10
  <?php endforeach; ?>
11
  </select>
12
+ <p class="description"><?php _e('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable') ?></p>
13
  </td>
14
  </tr>
15
  <tr>
16
+ <td><label for="event"><?php _e('Specific events', 'mp-timetable') ?></label></td>
17
  <td>
18
+ <select multiple="multiple" id="event" name="event" class="widefat mptt-resize-vertical">
19
  <?php foreach ($data[ 'events' ] as $events): ?>
20
  <option value="<?php echo $events->ID; ?>"><?php echo $events->post_title; ?></option>
21
  <?php endforeach; ?>
22
  </select>
23
+ <p class="description"><?php _e('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable') ?></p>
24
  </td>
25
  </tr>
26
  <tr>
27
+ <td><label for="event_category"><?php _e('Event categories', 'mp-timetable'); ?></label></td>
28
  <td>
29
+ <select multiple="multiple" id="event_category" name="event_category" class="widefat mptt-resize-vertical">
30
  <?php foreach ($data[ 'category' ] as $category): ?>
31
  <option value="<?php echo $category->term_id; ?>"><?php echo $category->name; ?></option>
32
  <?php endforeach; ?>
33
  </select>
34
+ <p class="description"><?php _e('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable'); ?></p>
35
  </td>
36
  </tr>
37
  <tr>
160
  </select>
161
  </td>
162
  </tr>
163
+ <tr>
164
+ <td><label for="table_layout"><?php _e('Table layout', 'mp-timetable'); ?> </label></td>
165
+ <td>
166
+ <select id="table_layout" name="table_layout">
167
+ <option value=""><?php _e('Default', 'mp-timetable'); ?></option>
168
+ <option value="auto"><?php _e('Auto', 'mp-timetable'); ?></option>
169
+ <option value="fixed"><?php _e('Fixed', 'mp-timetable'); ?></option>
170
+ </select>
171
+ </td>
172
+ </tr>
173
  <tr>
174
  <td><label for="id"><?php _e('Unique ID', 'mp-timetable'); ?></label></td>
175
  <td>
templates/widgets/gallery-list.php CHANGED
@@ -30,19 +30,22 @@
30
  <p>
31
  <label class="widget-categories"
32
  for="<?php echo $widget_object->get_field_id('mp_categories') ?>"><?php _e('Event categories. Leave blank to display all.', "mp-timetable") ?></label>
33
- <select class="widefat" multiple="multiple" id="<?php echo $widget_object->get_field_id('mp_categories') ?>"
34
  name="<?php echo $widget_object->get_field_name('mp_categories') ?>[]">
35
  <?php
36
- if (!empty($data['categories'])):
37
- foreach ($data['categories'] as $category) :
38
- if (empty($instance['mp_categories'])):
39
  $instance['mp_categories'] = array();
40
  endif ?>
41
- <option
42
- value="<?php echo $category->term_id ?>"<?php echo in_array($category->term_id, $instance['mp_categories']) ? 'selected="selected"' : '' ?> ><?php echo $category->name ?></option>
43
- <?php endforeach;
 
 
44
  endif; ?>
45
  </select>
 
46
  </p>
47
  <p>
48
  <label
30
  <p>
31
  <label class="widget-categories"
32
  for="<?php echo $widget_object->get_field_id('mp_categories') ?>"><?php _e('Event categories. Leave blank to display all.', "mp-timetable") ?></label>
33
+ <select class="widefat mptt-resize-vertical" multiple="multiple" id="<?php echo $widget_object->get_field_id('mp_categories') ?>"
34
  name="<?php echo $widget_object->get_field_name('mp_categories') ?>[]">
35
  <?php
36
+ if ( !empty($event_categories) ):
37
+ foreach ( $event_categories as $category ) :
38
+ if ( empty($instance['mp_categories']) ):
39
  $instance['mp_categories'] = array();
40
  endif ?>
41
+ <option value="<?php echo $category->term_id ?>"<?php
42
+ echo in_array($category->term_id, $instance['mp_categories']) ? 'selected="selected"' : '' ?> ><?php
43
+ echo $category->name
44
+ ?></option>
45
+ <?php endforeach;
46
  endif; ?>
47
  </select>
48
+ <small><?php _e('Hold the Ctrl or Command key to select/deselect multiple options.', 'mp-timetable'); ?></small>
49
  </p>
50
  <p>
51
  <label