Modern Events Calendar Lite - Version 3.1.4

Version Description

  • Added: VK social sharing
  • Fixed: Titles containing '&' when shared via email
  • Fixed: Sold-out message when '0' is set for ticket numbers
Download this release

Release Info

Developer webnus
Plugin Icon 128x128 Modern Events Calendar Lite
Version 3.1.4
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.4

Files changed (89) hide show
  1. app/addons/KC.php +4 -4
  2. app/addons/VC.php +4 -4
  3. app/features/colors.php +1 -1
  4. app/features/contextual.php +29 -29
  5. app/features/events.php +178 -178
  6. app/features/fes.php +11 -11
  7. app/features/fes/form.php +72 -72
  8. app/features/fes/list.php +5 -5
  9. app/features/ix.php +24 -24
  10. app/features/ix/export.php +19 -19
  11. app/features/ix/export_g_calendar.php +24 -24
  12. app/features/ix/import.php +17 -17
  13. app/features/ix/import_f_calendar.php +23 -23
  14. app/features/ix/import_g_calendar.php +26 -26
  15. app/features/ix/sync.php +16 -16
  16. app/features/ix/thirdparty.php +29 -29
  17. app/features/labels.php +20 -20
  18. app/features/locations.php +49 -49
  19. app/features/mec.php +24 -27
  20. app/features/mec/dashboard.php +43 -39
  21. app/features/mec/gateways.php +14 -14
  22. app/features/mec/messages.php +16 -16
  23. app/features/mec/meta_boxes/display_options.php +266 -266
  24. app/features/mec/meta_boxes/filter.php +20 -20
  25. app/features/mec/meta_boxes/search_form.php +172 -172
  26. app/features/mec/notifications.php +154 -154
  27. app/features/mec/regform.php +23 -23
  28. app/features/mec/settings.php +271 -263
  29. app/features/mec/styles.php +15 -15
  30. app/features/mec/styling.php +28 -28
  31. app/features/mec/support.php +24 -24
  32. app/features/organizers.php +51 -51
  33. app/libraries/book.php +14 -3
  34. app/libraries/envato.php +1 -1
  35. app/libraries/factory.php +18 -18
  36. app/libraries/main.php +16 -1
  37. app/libraries/notifications.php +11 -11
  38. app/libraries/render.php +2 -2
  39. app/libraries/skins.php +6 -6
  40. app/modules/attendees-list/details.php +3 -3
  41. app/modules/booking/default.php +1 -0
  42. app/modules/booking/steps/checkout.php +4 -4
  43. app/modules/booking/steps/form.php +20 -20
  44. app/modules/booking/steps/message.php +1 -1
  45. app/modules/booking/steps/tickets.php +6 -6
  46. app/modules/countdown/details.php +6 -6
  47. app/modules/export/details.php +2 -2
  48. app/modules/googlemap/details.php +2 -2
  49. app/modules/links/details.php +1 -1
  50. app/modules/local-time/details.php +4 -4
  51. app/modules/next-event/details.php +5 -5
  52. app/modules/qrcode/details.php +2 -2
  53. app/modules/qrcode/invoice.php +1 -1
  54. app/modules/weather/details.php +5 -5
  55. app/skins/agenda/tpl.php +3 -3
  56. app/skins/available_spot/tpl.php +6 -6
  57. app/skins/carousel/render.php +2 -2
  58. app/skins/carousel/tpl.php +1 -1
  59. app/skins/countdown/tpl.php +18 -18
  60. app/skins/cover/tpl.php +2 -2
  61. app/skins/daily_view/render.php +1 -1
  62. app/skins/daily_view/tpl.php +2 -2
  63. app/skins/full_calendar/tpl.php +5 -5
  64. app/skins/grid/render.php +4 -4
  65. app/skins/grid/tpl.php +3 -3
  66. app/skins/list/render.php +3 -3
  67. app/skins/list/tpl.php +3 -3
  68. app/skins/map/tpl.php +1 -1
  69. app/skins/masonry.php +1 -1
  70. app/skins/masonry/render.php +1 -1
  71. app/skins/masonry/tpl.php +2 -2
  72. app/skins/monthly_view/calendar.php +3 -3
  73. app/skins/monthly_view/calendar_clean.php +3 -3
  74. app/skins/monthly_view/tpl.php +2 -2
  75. app/skins/single.php +4 -4
  76. app/skins/single/default.php +30 -30
  77. app/skins/single/m1.php +16 -16
  78. app/skins/single/m2.php +11 -11
  79. app/skins/single/modern.php +16 -16
  80. app/skins/slider/render.php +5 -5
  81. app/skins/slider/tpl.php +1 -1
  82. app/skins/timetable/modern.php +1 -1
  83. app/skins/timetable/render.php +1 -1
  84. app/skins/weekly_view/render.php +1 -1
  85. app/skins/weekly_view/tpl.php +1 -1
  86. app/skins/yearly_view/render.php +1 -1
  87. app/skins/yearly_view/tpl.php +2 -2
  88. app/widgets/MEC.php +3 -3
  89. app/widgets/SINGLE.php +13 -14
app/addons/KC.php CHANGED
@@ -65,17 +65,17 @@ class MEC_addon_KC extends MEC_base
65
  kc_add_map(array
66
  (
67
  'MEC' => array(
68
- 'name' => esc_html__('Modern Events Calendar', 'mec'),
69
  'icon' => 'mec-kingcomposer-icon',
70
- 'category' => esc_html__('Content', 'mec'),
71
  'params' => array(
72
  'General' => array(
73
  array(
74
  'name' => 'id',
75
- 'label' => esc_html__('Shortcode', 'mec'),
76
  'type' => 'select',
77
  'options' => $calendars_array,
78
- 'description' => esc_html__('Select from predefined shortcodes', 'mec'),
79
  ),
80
  ),
81
  )
65
  kc_add_map(array
66
  (
67
  'MEC' => array(
68
+ 'name' => esc_html__('Modern Events Calendar', 'modern-events-calendar-lite'),
69
  'icon' => 'mec-kingcomposer-icon',
70
+ 'category' => esc_html__('Content', 'modern-events-calendar-lite'),
71
  'params' => array(
72
  'General' => array(
73
  array(
74
  'name' => 'id',
75
+ 'label' => esc_html__('Shortcode', 'modern-events-calendar-lite'),
76
  'type' => 'select',
77
  'options' => $calendars_array,
78
+ 'description' => esc_html__('Select from predefined shortcodes', 'modern-events-calendar-lite'),
79
  ),
80
  ),
81
  )
app/addons/VC.php CHANGED
@@ -56,21 +56,21 @@ class MEC_addon_VC extends MEC_base
56
  foreach($calendar_posts as $calendar_post) $calendars[$calendar_post->post_title] = $calendar_post->ID;
57
 
58
  vc_map(array(
59
- 'name'=>esc_html__('Modern Events Calendar', 'mec'),
60
  'base'=>'MEC',
61
  'class'=>'',
62
  'controls'=>'full',
63
  'icon'=>$this->main->asset('img/ico-mec-vc.png'),
64
- 'category'=>esc_html__('Content', 'mec'),
65
  'params'=>array(
66
  array(
67
  'type'=>'dropdown',
68
  'holder'=>'div',
69
  'class'=>'',
70
- 'heading'=>esc_html__('Shortcode', 'mec'),
71
  'param_name'=>'id',
72
  'value'=>$calendars,
73
- 'description'=>esc_html__('Select from predefined shortcodes', 'mec')
74
  )
75
  )
76
  ));
56
  foreach($calendar_posts as $calendar_post) $calendars[$calendar_post->post_title] = $calendar_post->ID;
57
 
58
  vc_map(array(
59
+ 'name'=>esc_html__('Modern Events Calendar', 'modern-events-calendar-lite'),
60
  'base'=>'MEC',
61
  'class'=>'',
62
  'controls'=>'full',
63
  'icon'=>$this->main->asset('img/ico-mec-vc.png'),
64
+ 'category'=>esc_html__('Content', 'modern-events-calendar-lite'),
65
  'params'=>array(
66
  array(
67
  'type'=>'dropdown',
68
  'holder'=>'div',
69
  'class'=>'',
70
+ 'heading'=>esc_html__('Shortcode', 'modern-events-calendar-lite'),
71
  'param_name'=>'id',
72
  'value'=>$calendars,
73
+ 'description'=>esc_html__('Select from predefined shortcodes', 'modern-events-calendar-lite')
74
  )
75
  )
76
  ));
app/features/colors.php CHANGED
@@ -47,7 +47,7 @@ class MEC_feature_colors extends MEC_base
47
  */
48
  public function register_meta_boxes()
49
  {
50
- add_meta_box('mec_metabox_color', __('Event Color', 'mec'), array($this, 'meta_box_colors'), $this->main->get_main_post_type(), 'side');
51
  }
52
 
53
  /**
47
  */
48
  public function register_meta_boxes()
49
  {
50
+ add_meta_box('mec_metabox_color', __('Event Color', 'modern-events-calendar-lite'), array($this, 'meta_box_colors'), $this->main->get_main_post_type(), 'side');
51
  }
52
 
53
  /**
app/features/contextual.php CHANGED
@@ -52,30 +52,30 @@ class MEC_feature_contextual extends MEC_base
52
  $screen->add_help_tab(array
53
  (
54
  'id' => 'mec-settings',
55
- 'title' => __('Settings', 'mec'),
56
  'callback' => array($this, 'settings')
57
  ));
58
 
59
  $screen->add_help_tab(array
60
  (
61
  'id' => 'mec-form',
62
- 'title' => __('Booking Form', 'mec'),
63
  'content' => __('<h2 class="dark-text">Booking Form<hr></h2>
64
- <strong>Build your booking registration form ( This form will be repeat for all attendees ).</strong> <iframe width="600" height="300" src="https://www.youtube.com/embed/YM8cCOvgpk0" frameborder="0" allowfullscreen></iframe>', 'mec')
65
  ));
66
 
67
  $screen->add_help_tab(array
68
  (
69
  'id' => 'mec-gateways',
70
- 'title' => __('Payment Gateways', 'mec'),
71
- 'content' => __('<h2 class="dark-text">Payment Gateways <hr></h2><iframe width="600" height="300" src="https://www.youtube.com/embed/Hpg4chWlxoQ" frameborder="0" allowfullscreen></iframe>', 'mec')
72
  ));
73
 
74
  $screen->add_help_tab(array
75
  (
76
  'id' => 'mec-notifications',
77
- 'title' => __('Notifications', 'mec'),
78
- 'content' => __('<h2 class="dark-text">Notifications <hr></h2><strong>You can edit your messages in there.</strong><strong>Mec Notificatoin Module</strong><iframe width="600" height="300" src="https://www.youtube.com/embed/ZAA8zVewOj0" frameborder="0" allowfullscreen></iframe>', 'mec')
79
  ));
80
 
81
  break;
@@ -85,22 +85,22 @@ class MEC_feature_contextual extends MEC_base
85
  $screen->add_help_tab(array
86
  (
87
  'id' => 'mec-importexport',
88
- 'title' => __('Google Cal. Import', 'mec'),
89
- 'content' => __('<h2 class="dark-text">Import/Export<hr></h2><div class="big-title2"><strong>Google Cal. Import:</strong></div><iframe width="854" height="420" src="https://www.youtube.com/embed/vxHC7NVbmuc" frameborder="0" allowfullscreen></iframe>', 'mec')
90
  ));
91
 
92
  $screen->add_help_tab(array
93
  (
94
  'id' => 'mec-importexportg',
95
- 'title' => __('Google Cal. Export', 'mec'),
96
- 'content' => __('<h2 class="dark-text">Import/Export<hr></h2><div class="big-title2"><strong>Google Cal. Export:</strong></div><iframe width="854" height="420" src="https://www.youtube.com/embed/DdeNazxbLyo" frameborder="0" allowfullscreen></iframe>', 'mec')
97
  ));
98
 
99
  $screen->add_help_tab(array
100
  (
101
  'id' => 'mec-importexportf',
102
- 'title' => __('Facebook Cal. Import', 'mec'),
103
- 'content' => __('<h2 class="dark-text">Import/Export<hr></h2><div class="big-title2"><strong>Facebook Cal. Import:</strong></div><iframe width="854" height="420" src="https://www.youtube.com/embed/dqgt1b8X8hs" frameborder="0" allowfullscreen></iframe>', 'mec')
104
  ));
105
 
106
  break;
@@ -114,7 +114,7 @@ class MEC_feature_contextual extends MEC_base
114
  ?>
115
  <div class="mec-form-row" id="mec_setting_contextual">
116
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
117
- <li class="mec-acc-label" data-key="genral_setting" data-status="close"><?php _e('General Options','mec'); ?></li>
118
  <ul id="mec-acc-genral_setting" style="display: none;">
119
  <h2 class="dark-text">GENERAL OPTIONS<hr></h2>
120
  <ol class="list-w">
@@ -136,7 +136,7 @@ class MEC_feature_contextual extends MEC_base
136
  </ul>
137
 
138
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
139
- <li class="mec-acc-label" data-key="slugs" data-status="close"><?php _e('Slugs/Permalinks','mec'); ?></li>
140
  <ul id="mec-acc-slugs" style="display: none;">
141
  <h2 class="dark-text">SLUG OPTIONS<hr></h2>
142
  <strong>Setup slug of category and main events slug.</strong>
@@ -149,7 +149,7 @@ class MEC_feature_contextual extends MEC_base
149
  </ul>
150
 
151
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
152
- <li class="mec-acc-label" data-key="event_detail" data-status="close"><?php _e('Event Details/Single Event Page','mec'); ?></li>
153
  <ul id="mec-acc-event_detail" style="display: none;">
154
  <h2 class="dark-text">Event Details/Single Event Page<hr></h2>
155
  <ol class="list-w">
@@ -163,7 +163,7 @@ class MEC_feature_contextual extends MEC_base
163
  </ul>
164
 
165
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
166
- <li class="mec-acc-label" data-key="currency" data-status="close"><?php _e('Currency Options','mec'); ?></li>
167
  <ul id="mec-acc-currency" style="display: none;">
168
  <h2 class="dark-text">CURRENCY OPTIONS <hr></h2>
169
  <strong>Setup your event calendar currency option.</strong>
@@ -179,7 +179,7 @@ class MEC_feature_contextual extends MEC_base
179
  </ul>
180
 
181
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
182
- <li class="mec-acc-label" data-key="g_map" data-status="close"><?php _e('Google Maps Options','mec'); ?></li>
183
  <ul id="mec-acc-g_map" style="display: none;">
184
  <h2 class="dark-text">GOOGLE MAPS OPTIONS<hr></h2>
185
  <p><strong>Modern Event Calendar is Google map integrated for feature access, modern view calendar needs api key from Google to contract with Google and fetch your requested map. For activation, check the "Show Google Maps On Event Page".</strong>
@@ -241,7 +241,7 @@ class MEC_feature_contextual extends MEC_base
241
  </ul>
242
 
243
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
244
- <li class="mec-acc-label" data-key="g_recaptcha" data-status="close"><?php _e('Google Recaptcha Options','mec'); ?></li>
245
  <ul id="mec-acc-g_recaptcha" style="display: none;">
246
  <h2 class="dark-text">GOOGLE RECAPTCHA OPTIONS<hr></h2>
247
  <strong>Easily setup your captcha and security on mec by google captcha.</strong>
@@ -255,7 +255,7 @@ class MEC_feature_contextual extends MEC_base
255
  </ul>
256
 
257
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
258
- <li class="mec-acc-label" data-key="countdown" data-status="close"><?php _e('Countdown Options','mec'); ?></li>
259
  <ul id="mec-acc-countdown" style="display: none;">
260
  <h2 class="dark-text">COUNTDOWN OPTIONS<hr></h2>
261
  <strong>1- Shows Event Countdown in event single.</strong><br />
@@ -265,7 +265,7 @@ class MEC_feature_contextual extends MEC_base
265
  </ul>
266
 
267
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
268
- <li class="mec-acc-label" data-key="social" data-status="close"><?php _e('Social Networks','mec'); ?></li>
269
  <ul id="mec-acc-social" style="display: none;">
270
  <h2 class="dark-text">Social Networks <hr></h2>
271
  <strong>Show social networks in event single. (For better displaying in grid view, you should just select 3 of them)</strong>
@@ -275,7 +275,7 @@ class MEC_feature_contextual extends MEC_base
275
  </ul>
276
 
277
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
278
- <li class="mec-acc-label" data-key="next_event" data-status="close"><?php _e('Next Event Module','mec'); ?></li>
279
  <ul id="mec-acc-next_event" style="display: none;">
280
  <h2 class="dark-text">Next Event Module<hr></h2>
281
  <iframe width="600" height="420" src="https://www.youtube.com/embed/2CsOdgkBIms" frameborder="0" allowfullscreen></iframe>
@@ -283,7 +283,7 @@ class MEC_feature_contextual extends MEC_base
283
  </ul>
284
 
285
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
286
- <li class="mec-acc-label" data-key="fes" data-status="close"><?php _e('Frontend Event Submission','mec'); ?></li>
287
  <ul id="mec-acc-fes" style="display: none;">
288
  <h2 class="dark-text">Front Event Submission<hr></h2>
289
  <ol class="list-w">
@@ -295,7 +295,7 @@ class MEC_feature_contextual extends MEC_base
295
  </ul>
296
 
297
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
298
- <li class="mec-acc-label" data-key="exceptional" data-status="close"><?php _e('Exceptional Days','mec'); ?></li>
299
  <ul id="mec-acc-exceptional" style="display: none;">
300
  <h2 class="dark-text">Exceptional Days<hr></h2>
301
  <strong>Show exceptional days option on Add/Edit events page</strong>
@@ -305,7 +305,7 @@ class MEC_feature_contextual extends MEC_base
305
  </ul>
306
 
307
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
308
- <li class="mec-acc-label" data-key="booking" data-status="close"><?php _e('Booking','mec'); ?></li>
309
  <ul id="mec-acc-booking" style="display: none;">
310
  <h2 class="dark-text">Booking<hr></h2>
311
  <strong>By enabling booking module service, Modern Event calendar will be able to handle ticket service with registration form you can easily build up your own form to get information you need before processing payment.</strong>
@@ -315,7 +315,7 @@ class MEC_feature_contextual extends MEC_base
315
  </ul>
316
 
317
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
318
- <li class="mec-acc-label" data-key="coupon" data-status="close"><?php _e('Coupons','mec'); ?></li>
319
  <ul id="mec-acc-coupon" style="display: none;">
320
  <h2 class="dark-text">Coupons<hr></h2>
321
  <strong>When you enable the option Coupons in Dashboard > Booking, an option would be added ‘Coupons’ which you can add coupons<br />Show coupons in event single.</strong>
@@ -323,7 +323,7 @@ class MEC_feature_contextual extends MEC_base
323
  </ul>
324
 
325
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
326
- <li class="mec-acc-label" data-key="buddy" data-status="close"><?php _e('BuddyPress Integration','mec'); ?></li>
327
  <ul id="mec-acc-buddy" style="display: none;">
328
  <h2 class="dark-text">Buddypress<hr></h2>
329
  <iframe width="600" height="300" src="https://www.youtube.com/embed/ZNZOSgXO16o" frameborder="0" allowfullscreen></iframe>
@@ -331,7 +331,7 @@ class MEC_feature_contextual extends MEC_base
331
  </ul>
332
 
333
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
334
- <li class="mec-acc-label" data-key="mailchimp" data-status="close"><?php _e('Mailchimp Integration','mec'); ?></li>
335
  <ul id="mec-acc-mailchimp" style="display: none;">
336
  <h2 class="dark-text">Mailchimp Integration<hr></h2>
337
  <strong>API Key : Mailchimp account > Extras > API Key > Copy APIKey</strong>
@@ -343,7 +343,7 @@ class MEC_feature_contextual extends MEC_base
343
  </ul>
344
 
345
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
346
- <li class="mec-acc-label" data-key="activation" data-status="close"><?php _e('MEC Activation','mec'); ?></li>
347
  <ul id="mec-acc-activation" style="display: none;">
348
  <h2 class="dark-text">How to Activate Plugin<hr></h2>
349
  <p>To activate the M.E.Calendar, you should enter the exact purchase code without using any space in <strong>M.E.Calendar > Setting > Settings (bottom of the page)</strong>, then Save Changes. By refreshing the page, your purchase code would be verified. </p>
52
  $screen->add_help_tab(array
53
  (
54
  'id' => 'mec-settings',
55
+ 'title' => __('Settings', 'modern-events-calendar-lite'),
56
  'callback' => array($this, 'settings')
57
  ));
58
 
59
  $screen->add_help_tab(array
60
  (
61
  'id' => 'mec-form',
62
+ 'title' => __('Booking Form', 'modern-events-calendar-lite'),
63
  'content' => __('<h2 class="dark-text">Booking Form<hr></h2>
64
+ <strong>Build your booking registration form ( This form will be repeat for all attendees ).</strong> <iframe width="600" height="300" src="https://www.youtube.com/embed/YM8cCOvgpk0" frameborder="0" allowfullscreen></iframe>', 'modern-events-calendar-lite')
65
  ));
66
 
67
  $screen->add_help_tab(array
68
  (
69
  'id' => 'mec-gateways',
70
+ 'title' => __('Payment Gateways', 'modern-events-calendar-lite'),
71
+ 'content' => __('<h2 class="dark-text">Payment Gateways <hr></h2><iframe width="600" height="300" src="https://www.youtube.com/embed/Hpg4chWlxoQ" frameborder="0" allowfullscreen></iframe>', 'modern-events-calendar-lite')
72
  ));
73
 
74
  $screen->add_help_tab(array
75
  (
76
  'id' => 'mec-notifications',
77
+ 'title' => __('Notifications', 'modern-events-calendar-lite'),
78
+ 'content' => __('<h2 class="dark-text">Notifications <hr></h2><strong>You can edit your messages in there.</strong><strong>Mec Notificatoin Module</strong><iframe width="600" height="300" src="https://www.youtube.com/embed/ZAA8zVewOj0" frameborder="0" allowfullscreen></iframe>', 'modern-events-calendar-lite')
79
  ));
80
 
81
  break;
85
  $screen->add_help_tab(array
86
  (
87
  'id' => 'mec-importexport',
88
+ 'title' => __('Google Cal. Import', 'modern-events-calendar-lite'),
89
+ 'content' => __('<h2 class="dark-text">Import/Export<hr></h2><div class="big-title2"><strong>Google Cal. Import:</strong></div><iframe width="854" height="420" src="https://www.youtube.com/embed/vxHC7NVbmuc" frameborder="0" allowfullscreen></iframe>', 'modern-events-calendar-lite')
90
  ));
91
 
92
  $screen->add_help_tab(array
93
  (
94
  'id' => 'mec-importexportg',
95
+ 'title' => __('Google Cal. Export', 'modern-events-calendar-lite'),
96
+ 'content' => __('<h2 class="dark-text">Import/Export<hr></h2><div class="big-title2"><strong>Google Cal. Export:</strong></div><iframe width="854" height="420" src="https://www.youtube.com/embed/DdeNazxbLyo" frameborder="0" allowfullscreen></iframe>', 'modern-events-calendar-lite')
97
  ));
98
 
99
  $screen->add_help_tab(array
100
  (
101
  'id' => 'mec-importexportf',
102
+ 'title' => __('Facebook Cal. Import', 'modern-events-calendar-lite'),
103
+ 'content' => __('<h2 class="dark-text">Import/Export<hr></h2><div class="big-title2"><strong>Facebook Cal. Import:</strong></div><iframe width="854" height="420" src="https://www.youtube.com/embed/dqgt1b8X8hs" frameborder="0" allowfullscreen></iframe>', 'modern-events-calendar-lite')
104
  ));
105
 
106
  break;
114
  ?>
115
  <div class="mec-form-row" id="mec_setting_contextual">
116
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
117
+ <li class="mec-acc-label" data-key="genral_setting" data-status="close"><?php _e('General Options','modern-events-calendar-lite'); ?></li>
118
  <ul id="mec-acc-genral_setting" style="display: none;">
119
  <h2 class="dark-text">GENERAL OPTIONS<hr></h2>
120
  <ol class="list-w">
136
  </ul>
137
 
138
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
139
+ <li class="mec-acc-label" data-key="slugs" data-status="close"><?php _e('Slugs/Permalinks','modern-events-calendar-lite'); ?></li>
140
  <ul id="mec-acc-slugs" style="display: none;">
141
  <h2 class="dark-text">SLUG OPTIONS<hr></h2>
142
  <strong>Setup slug of category and main events slug.</strong>
149
  </ul>
150
 
151
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
152
+ <li class="mec-acc-label" data-key="event_detail" data-status="close"><?php _e('Event Details/Single Event Page','modern-events-calendar-lite'); ?></li>
153
  <ul id="mec-acc-event_detail" style="display: none;">
154
  <h2 class="dark-text">Event Details/Single Event Page<hr></h2>
155
  <ol class="list-w">
163
  </ul>
164
 
165
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
166
+ <li class="mec-acc-label" data-key="currency" data-status="close"><?php _e('Currency Options','modern-events-calendar-lite'); ?></li>
167
  <ul id="mec-acc-currency" style="display: none;">
168
  <h2 class="dark-text">CURRENCY OPTIONS <hr></h2>
169
  <strong>Setup your event calendar currency option.</strong>
179
  </ul>
180
 
181
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
182
+ <li class="mec-acc-label" data-key="g_map" data-status="close"><?php _e('Google Maps Options','modern-events-calendar-lite'); ?></li>
183
  <ul id="mec-acc-g_map" style="display: none;">
184
  <h2 class="dark-text">GOOGLE MAPS OPTIONS<hr></h2>
185
  <p><strong>Modern Event Calendar is Google map integrated for feature access, modern view calendar needs api key from Google to contract with Google and fetch your requested map. For activation, check the "Show Google Maps On Event Page".</strong>
241
  </ul>
242
 
243
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
244
+ <li class="mec-acc-label" data-key="g_recaptcha" data-status="close"><?php _e('Google Recaptcha Options','modern-events-calendar-lite'); ?></li>
245
  <ul id="mec-acc-g_recaptcha" style="display: none;">
246
  <h2 class="dark-text">GOOGLE RECAPTCHA OPTIONS<hr></h2>
247
  <strong>Easily setup your captcha and security on mec by google captcha.</strong>
255
  </ul>
256
 
257
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
258
+ <li class="mec-acc-label" data-key="countdown" data-status="close"><?php _e('Countdown Options','modern-events-calendar-lite'); ?></li>
259
  <ul id="mec-acc-countdown" style="display: none;">
260
  <h2 class="dark-text">COUNTDOWN OPTIONS<hr></h2>
261
  <strong>1- Shows Event Countdown in event single.</strong><br />
265
  </ul>
266
 
267
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
268
+ <li class="mec-acc-label" data-key="social" data-status="close"><?php _e('Social Networks','modern-events-calendar-lite'); ?></li>
269
  <ul id="mec-acc-social" style="display: none;">
270
  <h2 class="dark-text">Social Networks <hr></h2>
271
  <strong>Show social networks in event single. (For better displaying in grid view, you should just select 3 of them)</strong>
275
  </ul>
276
 
277
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
278
+ <li class="mec-acc-label" data-key="next_event" data-status="close"><?php _e('Next Event Module','modern-events-calendar-lite'); ?></li>
279
  <ul id="mec-acc-next_event" style="display: none;">
280
  <h2 class="dark-text">Next Event Module<hr></h2>
281
  <iframe width="600" height="420" src="https://www.youtube.com/embed/2CsOdgkBIms" frameborder="0" allowfullscreen></iframe>
283
  </ul>
284
 
285
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
286
+ <li class="mec-acc-label" data-key="fes" data-status="close"><?php _e('Frontend Event Submission','modern-events-calendar-lite'); ?></li>
287
  <ul id="mec-acc-fes" style="display: none;">
288
  <h2 class="dark-text">Front Event Submission<hr></h2>
289
  <ol class="list-w">
295
  </ul>
296
 
297
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
298
+ <li class="mec-acc-label" data-key="exceptional" data-status="close"><?php _e('Exceptional Days','modern-events-calendar-lite'); ?></li>
299
  <ul id="mec-acc-exceptional" style="display: none;">
300
  <h2 class="dark-text">Exceptional Days<hr></h2>
301
  <strong>Show exceptional days option on Add/Edit events page</strong>
305
  </ul>
306
 
307
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
308
+ <li class="mec-acc-label" data-key="booking" data-status="close"><?php _e('Booking','modern-events-calendar-lite'); ?></li>
309
  <ul id="mec-acc-booking" style="display: none;">
310
  <h2 class="dark-text">Booking<hr></h2>
311
  <strong>By enabling booking module service, Modern Event calendar will be able to handle ticket service with registration form you can easily build up your own form to get information you need before processing payment.</strong>
315
  </ul>
316
 
317
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
318
+ <li class="mec-acc-label" data-key="coupon" data-status="close"><?php _e('Coupons','modern-events-calendar-lite'); ?></li>
319
  <ul id="mec-acc-coupon" style="display: none;">
320
  <h2 class="dark-text">Coupons<hr></h2>
321
  <strong>When you enable the option Coupons in Dashboard > Booking, an option would be added ‘Coupons’ which you can add coupons<br />Show coupons in event single.</strong>
323
  </ul>
324
 
325
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
326
+ <li class="mec-acc-label" data-key="buddy" data-status="close"><?php _e('BuddyPress Integration','modern-events-calendar-lite'); ?></li>
327
  <ul id="mec-acc-buddy" style="display: none;">
328
  <h2 class="dark-text">Buddypress<hr></h2>
329
  <iframe width="600" height="300" src="https://www.youtube.com/embed/ZNZOSgXO16o" frameborder="0" allowfullscreen></iframe>
331
  </ul>
332
 
333
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
334
+ <li class="mec-acc-label" data-key="mailchimp" data-status="close"><?php _e('Mailchimp Integration','modern-events-calendar-lite'); ?></li>
335
  <ul id="mec-acc-mailchimp" style="display: none;">
336
  <h2 class="dark-text">Mailchimp Integration<hr></h2>
337
  <strong>API Key : Mailchimp account > Extras > API Key > Copy APIKey</strong>
343
  </ul>
344
 
345
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
346
+ <li class="mec-acc-label" data-key="activation" data-status="close"><?php _e('MEC Activation','modern-events-calendar-lite'); ?></li>
347
  <ul id="mec-acc-activation" style="display: none;">
348
  <h2 class="dark-text">How to Activate Plugin<hr></h2>
349
  <p>To activate the M.E.Calendar, you should enter the exact purchase code without using any space in <strong>M.E.Calendar > Setting > Settings (bottom of the page)</strong>, then Save Changes. By refreshing the page, your purchase code would be verified. </p>
app/features/events.php CHANGED
@@ -119,15 +119,15 @@ class MEC_feature_events extends MEC_base
119
  array(
120
  'labels'=>array
121
  (
122
- 'name'=>__('Events', 'mec'),
123
- 'singular_name'=>__('Event', 'mec'),
124
- 'add_new'=>__('Add Event', 'mec'),
125
- 'add_new_item'=>__('Add New Event', 'mec'),
126
- 'not_found'=>__('No events found!', 'mec'),
127
- 'all_items'=>__('All Events', 'mec'),
128
- 'edit_item'=>__('Edit Event', 'mec'),
129
- 'view_item'=>__('View Event', 'mec'),
130
- 'not_found_in_trash'=>__('No events found in Trash!', 'mec')
131
  ),
132
  'public'=>true,
133
  'has_archive'=>($this->main->get_archive_status() ? true : false),
@@ -139,8 +139,8 @@ class MEC_feature_events extends MEC_base
139
  )
140
  );
141
 
142
- $singular_label = $this->main->m('taxonomy_category', __('Category', 'mec'));
143
- $plural_label = $this->main->m('taxonomy_categories', __('Categories', 'mec'));
144
 
145
  register_taxonomy(
146
  'mec_category',
@@ -150,14 +150,14 @@ class MEC_feature_events extends MEC_base
150
  'labels'=>array(
151
  'name'=>$plural_label,
152
  'singular_name'=>$singular_label,
153
- 'all_items'=>sprintf(__('All %s', 'mec'), $plural_label),
154
- 'edit_item'=>sprintf(__('Edit %s', 'mec'), $singular_label),
155
- 'view_item'=>sprintf(__('View %s', 'mec'), $singular_label),
156
- 'update_item'=>sprintf(__('Update %s', 'mec'), $singular_label),
157
- 'add_new_item'=>sprintf(__('Add New %s', 'mec'), $singular_label),
158
- 'new_item_name'=>sprintf(__('New %s Name', 'mec'), $singular_label),
159
- 'popular_items'=>sprintf(__('Popular %s', 'mec'), $plural_label),
160
- 'search_items'=>sprintf(__('Search %s', 'mec'), $plural_label),
161
  ),
162
  'public'=>true,
163
  'show_ui'=>true,
@@ -179,9 +179,9 @@ class MEC_feature_events extends MEC_base
179
  add_thickbox();
180
  ?>
181
  <div class="form-field">
182
- <label for="mec_cat_icon"><?php _e('Category Icon', 'mec'); ?></label>
183
  <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value="" />
184
- <a href="<?php echo $this->main->asset('icon.html'); ?>" class="thickbox mec_category_icon button"><?php echo __('Select icon', 'mec'); ?></a>
185
  </div>
186
 
187
  <?php
@@ -197,11 +197,11 @@ class MEC_feature_events extends MEC_base
197
  ?>
198
  <tr class="form-field">
199
  <th scope="row" valign="top">
200
- <label for="mec_cat_icon"><?php _e('Category Icon', 'mec'); ?></label>
201
  </th>
202
  <td>
203
  <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value="<?php echo $icon; ?>" />
204
- <a href="<?php echo $this->main->asset('icon.html'); ?>" class="thickbox mec_category_icon button"><?php echo __('Select icon', 'mec'); ?></a>
205
  <?php if ( isset( $icon ) ): ?>
206
  <div class="mec-webnus-icon"><i class="<?php echo $icon; ?> mec-color"></i></div>
207
  <?php endif; ?>
@@ -247,10 +247,10 @@ class MEC_feature_events extends MEC_base
247
  */
248
  public function register_meta_boxes()
249
  {
250
- add_meta_box('mec_metabox_details', __('Event Details', 'mec'), array($this, 'meta_box_details'), $this->main->get_main_post_type(), 'normal', 'high');
251
 
252
  // Show Booking meta box onnly if booking module is enabled
253
- if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']) add_meta_box('mec_metabox_booking', __('Booking', 'mec'), array($this, 'meta_box_booking'), $this->main->get_main_post_type(), 'normal', 'high');
254
  }
255
 
256
  /**
@@ -283,10 +283,10 @@ class MEC_feature_events extends MEC_base
283
  $cost = get_post_meta($post->ID, 'mec_cost', true);
284
  ?>
285
  <div class="mec-meta-box-fields" id="mec-cost">
286
- <h4><?php echo $this->main->m('event_cost', __('Event Cost', 'mec')); ?></h4>
287
  <div id="mec_meta_box_cost_form">
288
  <div class="mec-form-row">
289
- <input type="text" class="mec-col-6" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" placeholder="<?php _e('Cost', 'mec'); ?>" />
290
  </div>
291
  </div>
292
  </div>
@@ -359,28 +359,28 @@ class MEC_feature_events extends MEC_base
359
 
360
  <?php if($note_visibility and trim($note)): ?>
361
  <div class="mec-event-note">
362
- <h4><?php _e('Note for reviewer', 'mec'); ?></h4>
363
  <p><?php echo $note; ?></p>
364
  </div>
365
  <?php endif; ?>
366
 
367
  <?php if(trim($fes_guest_email) and trim($fes_guest_name)): ?>
368
  <div class="mec-guest-data">
369
- <h4><?php _e('Guest Data', 'mec'); ?></h4>
370
- <p><strong><?php _e('Name', 'mec'); ?>:</strong> <?php echo $fes_guest_name; ?></p>
371
- <p><strong><?php _e('Email', 'mec'); ?>:</strong> <?php echo $fes_guest_email; ?></p>
372
  </div>
373
  <?php endif; ?>
374
 
375
- <h4><?php _e('Date and Time', 'mec'); ?></h4>
376
  <div id="mec_meta_box_date_form">
377
  <div class="mec-title">
378
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
379
- <label for="mec_start_date"><?php _e('Start Date', 'mec'); ?></label>
380
  </div>
381
  <div class="mec-form-row">
382
  <div class="mec-col-4">
383
- <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($start_date); ?>" placeholder="<?php _e('Start Date', 'mec'); ?>" class="" />
384
  </div>
385
  <div class="mec-col-6 mec-time-picker <?php if($allday == 1) echo 'mec-util-hidden'; ?>">
386
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($start_time_ampm == 'PM' and $start_time_hour != 12) $start_time_hour += 12; if($start_time_ampm == 'AM' and $start_time_hour == 12) $start_time_hour += 12; ?>
@@ -408,19 +408,19 @@ class MEC_feature_events extends MEC_base
408
  <?php endfor; ?>
409
  </select>
410
  <select name="mec[date][start][ampm]" id="mec_start_ampm">
411
- <option <?php if($start_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'mec'); ?></option>
412
- <option <?php if($start_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'mec'); ?></option>
413
  </select>
414
  <?php endif; ?>
415
  </div>
416
  </div>
417
  <div class="mec-title">
418
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
419
- <label for="mec_end_date"><?php _e('End Date', 'mec'); ?></label>
420
  </div>
421
  <div class="mec-form-row">
422
  <div class="mec-col-4">
423
- <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($end_date); ?>" placeholder="<?php _e('End Date', 'mec'); ?>" class="" />
424
  </div>
425
  <div class="mec-col-6 mec-time-picker <?php if($allday == 1) echo 'mec-util-hidden'; ?>">
426
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($end_time_ampm == 'PM' and $end_time_hour != 12) $end_time_hour += 12; if($end_time_ampm == 'AM' and $end_time_hour == 12) $end_time_hour += 12; ?>
@@ -448,66 +448,66 @@ class MEC_feature_events extends MEC_base
448
  <?php endfor; ?>
449
  </select>
450
  <select name="mec[date][end][ampm]" id="mec_end_ampm">
451
- <option <?php if($end_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'mec'); ?></option>
452
- <option <?php if($end_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'mec'); ?></option>
453
  </select>
454
  <?php endif; ?>
455
  </div>
456
  </div>
457
  <div class="mec-form-row">
458
- <input <?php if($allday == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][allday]" id="mec_allday" value="1" onchange="jQuery('.mec-time-picker').toggle();" /><label for="mec_allday"><?php _e('All Day Event', 'mec'); ?></label>
459
  </div>
460
  <div class="mec-form-row">
461
- <input <?php if($hide_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_time]" id="mec_hide_time" value="1" /><label for="mec_hide_time"><?php _e('Hide Event Time', 'mec'); ?></label>
462
  </div>
463
  <div class="mec-form-row">
464
- <input <?php if($hide_end_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_end_time]" id="mec_hide_end_time" value="1" /><label for="mec_hide_end_time"><?php _e('Hide Event End Time', 'mec'); ?></label>
465
  </div>
466
  <div class="mec-form-row">
467
  <div class="mec-col-4">
468
- <input type="text" class="" name="mec[date][comment]" id="mec_comment" placeholder="<?php _e('Time Comment', 'mec'); ?>" value="<?php echo esc_attr($comment); ?>" />
469
- <a class="mec-tooltip" title="<?php esc_attr_e('It shows next to event time on calendar. You can insert Timezone etc. in this field.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
470
  </div>
471
  </div>
472
  </div>
473
  <div id="mec_meta_box_repeat_form">
474
  <div class="mec-form-row">
475
- <input <?php if($repeat_status == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][repeat][status]" id="mec_repeat" value="1" /><label for="mec_repeat"><?php _e('Event Repeating', 'mec'); ?></label>
476
  </div>
477
  <div class="mec-form-repeating-event-row">
478
  <div class="mec-form-row">
479
- <label class="mec-col-3" for="mec_repeat_type"><?php _e('Repeats', 'mec'); ?></label>
480
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
481
- <option <?php if($repeat_type == 'daily') echo 'selected="selected"'; ?> value="daily"><?php _e('Daily', 'mec'); ?></option>
482
- <option <?php if($repeat_type == 'weekday') echo 'selected="selected"'; ?> value="weekday"><?php _e('Every Weekday', 'mec'); ?></option>
483
- <option <?php if($repeat_type == 'weekend') echo 'selected="selected"'; ?> value="weekend"><?php _e('Every Weekend', 'mec'); ?></option>
484
- <option <?php if($repeat_type == 'certain_weekdays') echo 'selected="selected"'; ?> value="certain_weekdays"><?php _e('Certain Weekdays', 'mec'); ?></option>
485
- <option <?php if($repeat_type == 'weekly') echo 'selected="selected"'; ?> value="weekly"><?php _e('Weekly', 'mec'); ?></option>
486
- <option <?php if($repeat_type == 'monthly') echo 'selected="selected"'; ?> value="monthly"><?php _e('Monthly', 'mec'); ?></option>
487
- <option <?php if($repeat_type == 'yearly') echo 'selected="selected"'; ?> value="yearly"><?php _e('Yearly', 'mec'); ?></option>
488
- <option <?php if($repeat_type == 'custom_days') echo 'selected="selected"'; ?> value="custom_days"><?php _e('Custom Days', 'mec'); ?></option>
489
  </select>
490
  </div>
491
  <div class="mec-form-row" id="mec_repeat_interval_container">
492
- <label class="mec-col-3" for="mec_repeat_interval"><?php _e('Repeat Interval', 'mec'); ?></label>
493
- <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval" placeholder="<?php _e('Repeat interval', 'mec'); ?>" value="<?php echo ($repeat_type == 'weekly' ? ($repeat_interval/7) : $repeat_interval); ?>" />
494
  </div>
495
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
496
- <label class="mec-col-3"><?php _e('Week Days', 'mec'); ?></label>
497
- <label><input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="1" <?php echo (in_array(1, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Monday', 'mec'); ?></label>
498
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="2" <?php echo (in_array(2, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Tuesday', 'mec'); ?></label>
499
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="3" <?php echo (in_array(3, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Wednesday', 'mec'); ?></label>
500
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="4" <?php echo (in_array(4, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Thursday', 'mec'); ?></label>
501
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="5" <?php echo (in_array(5, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Friday', 'mec'); ?></label>
502
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="6" <?php echo (in_array(6, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Saturday', 'mec'); ?></label>
503
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="7" <?php echo (in_array(7, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Sunday', 'mec'); ?></label>
504
  </div>
505
  <div class="mec-form-row" id="mec_exceptions_in_days_container">
506
  <div class="mec-form-row">
507
  <div class="mec-col-6">
508
- <input type="text" id="mec_exceptions_in_days_date" value="" placeholder="<?php _e('Date', 'mec'); ?>" class="mec_date_picker" />
509
- <button class="button" type="button" id="mec_add_in_days"><?php _e('Add', 'mec'); ?></button>
510
- <a class="mec-tooltip" title="<?php esc_attr_e('Add certain days to event occurrence dates.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
511
  </div>
512
  </div>
513
  <div class="mec-form-row mec-certain-day" id="mec_in_days">
@@ -529,26 +529,26 @@ class MEC_feature_events extends MEC_base
529
  </div>
530
  </div>
531
  <div class="mec-form-row">
532
- <label for="mec_repeat_ends_never"><h4 class="mec-title"><?php _e('Ends Repeat', 'mec'); ?></h4></label>
533
  </div>
534
  <div class="mec-form-row">
535
  <input <?php if($mec_repeat_end == 'never') echo 'checked="checked"'; ?> type="radio" value="never" name="mec[date][repeat][end]" id="mec_repeat_ends_never" />
536
- <label for="mec_repeat_ends_never"><?php _e('Never', 'mec'); ?></label>
537
  </div>
538
  <div class="mec-form-row">
539
  <div class="mec-col-3">
540
  <input <?php if($mec_repeat_end == 'date') echo 'checked="checked"'; ?> type="radio" value="date" name="mec[date][repeat][end]" id="mec_repeat_ends_date" />
541
- <label for="mec_repeat_ends_date"><?php _e('On', 'mec'); ?></label>
542
  </div>
543
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]" id="mec_date_repeat_end_at_date" value="<?php echo esc_attr($repeat_end_at_date); ?>" />
544
  </div>
545
  <div class="mec-form-row">
546
  <div class="mec-col-3">
547
  <input <?php if($mec_repeat_end == 'occurrences') echo 'checked="checked"'; ?> type="radio" value="occurrences" name="mec[date][repeat][end]" id="mec_repeat_ends_occurrences" />
548
- <label for="mec_repeat_ends_occurrences"><?php _e('After', 'mec'); ?></label>
549
  </div>
550
- <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]" id="mec_date_repeat_end_at_occurrences" placeholder="<?php _e('Occurrences times', 'mec'); ?>" value="<?php echo esc_attr(($repeat_end_at_occurrences+1)); ?>" />
551
- <a class="mec-tooltip" title="<?php esc_attr_e('The event will finish after certain repeats. For example if you set it to 10, the event will finish after 10 repeats.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
552
  </div>
553
  </div>
554
  </div>
@@ -567,19 +567,19 @@ class MEC_feature_events extends MEC_base
567
  $not_in_days = trim($not_in_days_str) ? explode(',', $not_in_days_str) : array();
568
  ?>
569
  <div class="mec-meta-box-fields" id="mec-exceptional-days">
570
- <h4><?php _e('Exceptional Days', 'mec'); ?></h4>
571
  <div id="mec_meta_box_exceptions_form">
572
 
573
  <div id="mec_exceptions_not_in_days_container">
574
  <div class="mec-title">
575
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
576
- <label for="mec_exceptions_not_in_days_date"><?php _e('Exclude certain days', 'mec'); ?></label>
577
  </div>
578
  <div class="mec-form-row">
579
  <div class="mec-col-6">
580
- <input type="text" id="mec_exceptions_not_in_days_date" value="" placeholder="<?php _e('Date', 'mec'); ?>" class="mec_date_picker" />
581
- <button class="button" type="button" id="mec_add_not_in_days"><?php _e('Add', 'mec'); ?></button>
582
- <a class="mec-tooltip" title="<?php esc_attr_e('Exclude certain days from event occurrence dates.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
583
  </div>
584
  </div>
585
  <div class="mec-form-row mec-certain-day" id="mec_not_in_days">
@@ -617,20 +617,20 @@ class MEC_feature_events extends MEC_base
617
  if(!is_array($hourly_schedules)) $hourly_schedules = array();
618
  ?>
619
  <div class="mec-meta-box-fields" id="mec-hourly-schedule">
620
- <h4><?php _e('Hourly Schedule', 'mec'); ?></h4>
621
  <div id="mec_meta_box_hourly_schedule_form">
622
  <div class="mec-form-row">
623
- <button class="button" type="button" id="mec_add_hourly_schedule_button"><?php _e('Add', 'mec'); ?></button>
624
- <span class="description"><?php esc_attr_e('Add new hourly schedule row', 'mec'); ?></span>
625
  </div>
626
  <div id="mec_hourly_schedules">
627
  <?php $i = 0; foreach($hourly_schedules as $key=>$hourly_schedule): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
628
  <div class="mec-form-row mec-box" id="mec_hourly_schedule_row<?php echo $key; ?>">
629
- <input class="mec-col-2" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][from]" placeholder="<?php esc_attr_e('From e.g. 8:15', 'mec'); ?>" value="<?php echo esc_attr($hourly_schedule['from']); ?>" />
630
- <input class="mec-col-2" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][to]" placeholder="<?php esc_attr_e('To e.g. 8:45', 'mec'); ?>" value="<?php echo esc_attr($hourly_schedule['to']); ?>" />
631
- <input class="mec-col-2" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][title]" placeholder="<?php esc_attr_e('Title', 'mec'); ?>" value="<?php echo esc_attr($hourly_schedule['title']); ?>" />
632
- <input class="mec-col-4" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][description]" placeholder="<?php esc_attr_e('Description', 'mec'); ?>" value="<?php echo esc_attr($hourly_schedule['description']); ?>" />
633
- <button class="button" type="button" onclick="mec_hourly_schedule_remove(<?php echo $key; ?>);"><?php _e('Remove', 'mec'); ?></button>
634
  </div>
635
  <?php endforeach; ?>
636
  </div>
@@ -638,11 +638,11 @@ class MEC_feature_events extends MEC_base
638
  <input type="hidden" id="mec_new_hourly_schedule_key" value="<?php echo $i+1; ?>" />
639
  <div class="mec-util-hidden" id="mec_new_hourly_schedule_raw">
640
  <div class="mec-form-row mec-box" id="mec_hourly_schedule_row:i:">
641
- <input class="mec-col-2" type="text" name="mec[hourly_schedules][:i:][from]" placeholder="<?php esc_attr_e('From e.g. 8:15', 'mec'); ?>" />
642
- <input class="mec-col-2" type="text" name="mec[hourly_schedules][:i:][to]" placeholder="<?php esc_attr_e('To e.g. 8:45', 'mec'); ?>" />
643
- <input class="mec-col-2" type="text" name="mec[hourly_schedules][:i:][title]" placeholder="<?php esc_attr_e('Title', 'mec'); ?>" />
644
- <input class="mec-col-4" type="text" name="mec[hourly_schedules][:i:][description]" placeholder="<?php esc_attr_e('Description', 'mec'); ?>" />
645
- <button class="button" type="button" onclick="mec_hourly_schedule_remove(:i:);"><?php _e('Remove', 'mec'); ?></button>
646
  </div>
647
  </div>
648
  </div>
@@ -662,21 +662,21 @@ class MEC_feature_events extends MEC_base
662
  $more_info_target = get_post_meta($post->ID, 'mec_more_info_target', true);
663
  ?>
664
  <div class="mec-meta-box-fields" id="mec-read-more">
665
- <h4><?php _e('Event Links', 'mec'); ?></h4>
666
  <div class="mec-form-row">
667
- <label class="mec-col-2" for="mec_read_more_link"><?php echo $this->main->m('read_more_link', __('Event Link', 'mec')); ?></label>
668
- <input class="mec-col-7" type="text" name="mec[read_more]" id="mec_read_more_link" value="<?php echo esc_attr($read_more); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'mec'); ?>" />
669
- <a class="mec-tooltip" title="<?php esc_attr_e('If you fill it, it will be replaced instead of default event page link. Insert full link including http(s)://', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
670
  </div>
671
  <div class="mec-form-row">
672
- <label class="mec-col-2" for="mec_more_info_link"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></label>
673
- <input class="mec-col-5" type="text" name="mec[more_info]" id="mec_more_info_link" value="<?php echo esc_attr($more_info); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'mec'); ?>" />
674
- <input class="mec-col-2" type="text" name="mec[more_info_title]" id="mec_more_info_title" value="<?php echo esc_attr($more_info_title); ?>" placeholder="<?php _e('More Information', 'mec'); ?>" />
675
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
676
- <option value="_self" <?php echo ($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php _e('Current Window', 'mec'); ?></option>
677
- <option value="_blank" <?php echo ($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php _e('New Window', 'mec'); ?></option>
678
  </select>
679
- <a class="mec-tooltip" title="<?php esc_attr_e('If you fill it, it will be shown in event details page as an optional link. Insert full link including http(s)://', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
680
  </div>
681
  </div>
682
  <?php
@@ -707,14 +707,14 @@ class MEC_feature_events extends MEC_base
707
  ?>
708
  <div id="mec-booking">
709
  <div class="mec-meta-box-fields" id="mec_meta_box_booking_options_form">
710
- <label for="mec_bookings_limit"><h4 class="mec-title"><?php _e('Total booking limits', 'mec'); ?></h4></label>
711
  <div class="mec-form-row">
712
  <label class="mec-col-4" for="mec_bookings_limit_unlimited" id="mec_bookings_limit_unlimited_label">
713
  <input type="hidden" name="mec[booking][bookings_limit_unlimited]" value="0" />
714
  <input id="mec_bookings_limit_unlimited" <?php if($bookings_limit_unlimited == 1) echo 'checked="checked"'; ?> type="checkbox" value="1" name="mec[booking][bookings_limit_unlimited]" />
715
- <?php _e('Unlimited', 'mec'); ?>
716
  </label>
717
- <input class="mec-col-4" type="text" name="mec[booking][bookings_limit]" id="mec_bookings_limit" value="<?php echo esc_attr($bookings_limit); ?>" placeholder="<?php _e('100', 'mec'); ?>" class="<?php if($bookings_limit_unlimited == 1) echo 'mec-util-hidden'; ?>" />
718
  </div>
719
  </div>
720
  </div>
@@ -732,43 +732,43 @@ class MEC_feature_events extends MEC_base
732
  if(!is_array($tickets)) $tickets = array();
733
  ?>
734
  <div class="mec-meta-box-fields" id="mec-tickets">
735
- <h4 class="mec-meta-box-header"><?php echo $this->main->m('tickets', __('Tickets', 'mec')); ?></h4>
736
 
737
  <?php if($post->ID != $this->main->get_original_event($post->ID)): ?>
738
- <p class="warning-msg"><?php _e("You're translating an event so MEC will use the original event for tickets and booking. You can only translate the ticket name and description. Please define exact tickets that you defined in the original event here.", 'mec'); ?></p>
739
  <?php endif; ?>
740
 
741
  <div id="mec_meta_box_tickets_form">
742
  <div class="mec-form-row">
743
- <button class="button" type="button" id="mec_add_ticket_button"><?php _e('Add', 'mec'); ?></button>
744
  </div>
745
  <div id="mec_tickets">
746
  <?php $i = 0; foreach($tickets as $key=>$ticket): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
747
  <div class="mec-box" id="mec_ticket_row<?php echo $key; ?>">
748
  <div class="mec-form-row">
749
- <input type="text" class="mec-col-12" name="mec[tickets][<?php echo $key; ?>][name]" placeholder="<?php esc_attr_e('Ticket Name', 'mec'); ?>" value="<?php echo (isset($ticket['name']) ? esc_attr($ticket['name']) : ''); ?>" />
750
  </div>
751
  <div class="mec-form-row">
752
- <input type="text" class="mec-col-12" name="mec[tickets][<?php echo $key; ?>][description]" placeholder="<?php esc_attr_e('Description', 'mec'); ?>" value="<?php echo (isset($ticket['description']) ? esc_attr($ticket['description']) : ''); ?>" />
753
  </div>
754
  <div class="mec-form-row">
755
  <span class="mec-col-4">
756
- <input type="text" name="mec[tickets][<?php echo $key; ?>][price]" placeholder="<?php esc_attr_e('Price', 'mec'); ?>" value="<?php echo (isset($ticket['price']) ? esc_attr($ticket['price']) : ''); ?>" />
757
- <a class="mec-tooltip" title="<?php esc_attr_e('Insert 0 for free ticket. Only numbers please.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
758
  </span>
759
  <span class="mec-col-8">
760
- <input type="text" name="mec[tickets][<?php echo $key; ?>][price_label]" placeholder="<?php esc_attr_e('Price Label', 'mec'); ?>" value="<?php echo (isset($ticket['price_label']) ? esc_attr($ticket['price_label']) : ''); ?>" class="mec-col-12" />
761
- <a class="mec-tooltip" title="<?php esc_attr_e('For showing on website. e.g. $15', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
762
  </span>
763
  </div>
764
  <div class="mec-form-row">
765
- <input class="mec-col-4" type="text" name="mec[tickets][<?php echo $key; ?>][limit]" placeholder="<?php esc_attr_e('Available Tickets', 'mec'); ?>" value="<?php echo (isset($ticket['limit']) ? esc_attr($ticket['limit']) : '100'); ?>" />
766
  <label class="mec-col-2" for="mec_tickets_unlimited_<?php echo $key; ?>" id="mec_bookings_limit_unlimited_label<?php echo $key; ?>">
767
  <input type="hidden" name="mec[tickets][<?php echo $key; ?>][unlimited]" value="0" />
768
  <input id="mec_tickets_unlimited_<?php echo $key; ?>" type="checkbox" value="1" name="mec[tickets][<?php echo $key; ?>][unlimited]" <?php if(isset($ticket['unlimited']) and $ticket['unlimited']) echo 'checked="checked"'; ?> />
769
- <?php _e('Unlimited', 'mec'); ?>
770
  </label>
771
- <button class="button" type="button" onclick="mec_ticket_remove(<?php echo $key; ?>);"><?php _e('Remove', 'mec'); ?></button>
772
  </div>
773
  </div>
774
  <?php endforeach; ?>
@@ -778,29 +778,29 @@ class MEC_feature_events extends MEC_base
778
  <div class="mec-util-hidden" id="mec_new_ticket_raw">
779
  <div class="mec-box" id="mec_ticket_row:i:">
780
  <div class="mec-form-row">
781
- <input class="mec-col-12" type="text" name="mec[tickets][:i:][name]" placeholder="<?php esc_attr_e('Ticket Name', 'mec'); ?>" />
782
  </div>
783
  <div class="mec-form-row">
784
- <input class="mec-col-12" type="text" name="mec[tickets][:i:][description]" placeholder="<?php esc_attr_e('Description', 'mec'); ?>" />
785
  </div>
786
  <div class="mec-form-row">
787
  <span class="mec-col-4">
788
- <input type="text" name="mec[tickets][:i:][price]" placeholder="<?php esc_attr_e('Price', 'mec'); ?>" />
789
- <a class="mec-tooltip" title="<?php esc_attr_e('Insert 0 for free ticket. Only numbers please.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
790
  </span>
791
  <span class="mec-col-8">
792
- <input type="text" name="mec[tickets][:i:][price_label]" placeholder="<?php esc_attr_e('Price Label', 'mec'); ?>" class="mec-col-12" />
793
- <a class="mec-tooltip" title="<?php esc_attr_e('For showing on website. e.g. $15', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
794
  </span>
795
  </div>
796
  <div class="mec-form-row">
797
- <input class="mec-col-4" type="text" name="mec[tickets][:i:][limit]" placeholder="<?php esc_attr_e('Available Tickets', 'mec'); ?>" />
798
  <label class="mec-col-4" for="mec_tickets_unlimited_:i:" id="mec_bookings_limit_unlimited_label">
799
  <input type="hidden" name="mec[tickets][:i:][unlimited]" value="0" />
800
  <input id="mec_tickets_unlimited_:i:" type="checkbox" value="1" name="mec[tickets][:i:][unlimited]" />
801
- <?php _e('Unlimited', 'mec'); ?>
802
  </label>
803
- <button class="button" type="button" onclick="mec_ticket_remove(:i:);"><?php _e('Remove', 'mec'); ?></button>
804
  </div>
805
  </div>
806
  </div>
@@ -826,37 +826,37 @@ class MEC_feature_events extends MEC_base
826
  if(!is_array($fees)) $fees = array();
827
  ?>
828
  <div class="mec-meta-box-fields" id="mec-fees">
829
- <h4 class="mec-meta-box-header"><?php _e('Fees', 'mec'); ?></h4>
830
  <div id="mec_meta_box_fees_form">
831
  <div class="mec-form-row">
832
  <label>
833
  <input type="hidden" name="mec[fees_global_inheritance]" value="0" />
834
- <input onchange="jQuery('#mec_taxes_fees_container_toggle').toggle();" value="1" type="checkbox" name="mec[fees_global_inheritance]" <?php if($global_inheritance) echo 'checked="checked"'; ?> /> <?php _e('Inherit from global options', 'mec'); ?>
835
  </label>
836
  </div>
837
  <div id="mec_taxes_fees_container_toggle" class="<?php if($global_inheritance) echo 'mec-util-hidden'; ?>">
838
  <div class="mec-form-row">
839
- <button class="button" type="button" id="mec_add_fee_button"><?php _e('Add', 'mec'); ?></button>
840
  </div>
841
  <div id="mec_fees_list">
842
  <?php $i = 0; foreach($fees as $key=>$fee): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
843
  <div class="mec-box" id="mec_fee_row<?php echo $i; ?>">
844
  <div class="mec-form-row">
845
- <input class="mec-col-12" type="text" name="mec[fees][<?php echo $i; ?>][title]" placeholder="<?php esc_attr_e('Fee Title', 'mec'); ?>" value="<?php echo (isset($fee['title']) ? esc_attr($fee['title']) : ''); ?>" />
846
  </div>
847
  <div class="mec-form-row">
848
  <span class="mec-col-4">
849
- <input type="text" name="mec[fees][<?php echo $i; ?>][amount]" placeholder="<?php esc_attr_e('Amount', 'mec'); ?>" value="<?php echo (isset($fee['amount']) ? esc_attr($fee['amount']) : ''); ?>" />
850
- <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
851
  </span>
852
  <span class="mec-col-4">
853
  <select name="mec[fees][<?php echo $i; ?>][type]">
854
- <option value="percent" <?php echo ((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php _e('Percent', 'mec'); ?></option>
855
- <option value="amount" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Ticket)', 'mec'); ?></option>
856
- <option value="amount_per_booking" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_booking') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Booking)', 'mec'); ?></option>
857
  </select>
858
  </span>
859
- <button class="button" type="button" id="mec_remove_fee_button<?php echo $i; ?>" onclick="mec_remove_fee(<?php echo $i; ?>);"><?php _e('Remove', 'mec'); ?></button>
860
  </div>
861
  </div>
862
  <?php endforeach; ?>
@@ -867,21 +867,21 @@ class MEC_feature_events extends MEC_base
867
  <div class="mec-util-hidden" id="mec_new_fee_raw">
868
  <div class="mec-box" id="mec_fee_row:i:">
869
  <div class="mec-form-row">
870
- <input class="mec-col-12" type="text" name="mec[fees][:i:][title]" placeholder="<?php esc_attr_e('Fee Title', 'mec'); ?>" />
871
  </div>
872
  <div class="mec-form-row">
873
  <span class="mec-col-4">
874
- <input type="text" name="mec[fees][:i:][amount]" placeholder="<?php esc_attr_e('Amount', 'mec'); ?>" />
875
- <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
876
  </span>
877
  <span class="mec-col-4">
878
  <select name="mec[fees][:i:][type]">
879
- <option value="percent"><?php _e('Percent', 'mec'); ?></option>
880
- <option value="amount"><?php _e('Amount (Per Ticket)', 'mec'); ?></option>
881
- <option value="amount_per_booking"><?php _e('Amount (Per Booking)', 'mec'); ?></option>
882
  </select>
883
  </span>
884
- <button class="button" type="button" id="mec_remove_fee_button:i:" onclick="mec_remove_fee(:i:);"><?php _e('Remove', 'mec'); ?></button>
885
  </div>
886
  </div>
887
  </div>
@@ -907,12 +907,12 @@ class MEC_feature_events extends MEC_base
907
  if(!is_array($reg_fields)) $reg_fields = array();
908
  ?>
909
  <div class="mec-meta-box-fields" id="mec-reg-fields">
910
- <h4 class="mec-meta-box-header"><?php _e('Booking Form', 'mec'); ?></h4>
911
  <div id="mec_meta_box_reg_fields_form">
912
  <div class="mec-form-row">
913
  <label>
914
  <input type="hidden" name="mec[reg_fields_global_inheritance]" value="0" />
915
- <input onchange="jQuery('#mec_regform_container_toggle').toggle();" value="1" type="checkbox" name="mec[reg_fields_global_inheritance]" <?php if($global_inheritance) echo 'checked="checked"'; ?> /> <?php _e('Inherit from global options', 'mec'); ?>
916
  </label>
917
  </div>
918
  <div id="mec_regform_container_toggle" class="<?php if($global_inheritance) echo 'mec-util-hidden'; ?>">
@@ -941,15 +941,15 @@ class MEC_feature_events extends MEC_base
941
  ?>
942
  </ul>
943
  <div id="mec_reg_form_field_types">
944
- <button type="button" class="button" data-type="text"><?php _e('Text', 'mec'); ?></button>
945
- <button type="button" class="button" data-type="email"><?php _e('Email', 'mec'); ?></button>
946
- <button type="button" class="button" data-type="tel"><?php _e('Tel', 'mec'); ?></button>
947
- <button type="button" class="button" data-type="textarea"><?php _e('Textarea', 'mec'); ?></button>
948
- <button type="button" class="button" data-type="checkbox"><?php _e('Checkboxes', 'mec'); ?></button>
949
- <button type="button" class="button" data-type="radio"><?php _e('Radio Buttons', 'mec'); ?></button>
950
- <button type="button" class="button" data-type="select"><?php _e('Dropdown', 'mec'); ?></button>
951
- <button type="button" class="button" data-type="agreement"><?php _e('Agreement', 'mec'); ?></button>
952
- <button type="button" class="button" data-type="p"><?php _e('Paragraph', 'mec'); ?></button>
953
  </div>
954
  <input type="hidden" id="mec_new_reg_field_key" value="<?php echo $i+1; ?>" />
955
  <div class="mec-util-hidden">
@@ -1392,7 +1392,7 @@ class MEC_feature_events extends MEC_base
1392
 
1393
  $taxonomy = 'mec_label';
1394
  if(wp_count_terms($taxonomy)) wp_dropdown_categories(array(
1395
- 'show_option_all'=>sprintf(__('Show all %s', 'mec'), $this->main->m('taxonomy_labels', __('labels', 'mec'))),
1396
  'taxonomy'=>$taxonomy,
1397
  'name'=>$taxonomy,
1398
  'value_field'=>'slug',
@@ -1407,7 +1407,7 @@ class MEC_feature_events extends MEC_base
1407
  if(wp_count_terms($taxonomy))
1408
  {
1409
  wp_dropdown_categories(array(
1410
- 'show_option_all'=>sprintf(__('Show all %s', 'mec'), $this->main->m('taxonomy_locations', __('locations', 'mec'))),
1411
  'taxonomy'=>$taxonomy,
1412
  'name'=>$taxonomy,
1413
  'value_field'=>'slug',
@@ -1421,7 +1421,7 @@ class MEC_feature_events extends MEC_base
1421
 
1422
  $taxonomy = 'mec_organizer';
1423
  if(wp_count_terms($taxonomy)) wp_dropdown_categories(array(
1424
- 'show_option_all'=>sprintf(__('Show all %s', 'mec'), $this->main->m('taxonomy_organizers', __('organizers', 'mec'))),
1425
  'taxonomy'=>$taxonomy,
1426
  'name'=>$taxonomy,
1427
  'value_field'=>'slug',
@@ -1446,14 +1446,14 @@ class MEC_feature_events extends MEC_base
1446
  unset($columns['author']);
1447
  unset($columns['tags']);
1448
 
1449
- $columns['title'] = __('Title', 'mec');
1450
- $columns['location'] = $this->main->m('taxonomy_location', __('Location', 'mec'));
1451
- $columns['organizer'] = $this->main->m('taxonomy_organizer', __('Organizer', 'mec'));
1452
- $columns['start_date'] = __('Start Date', 'mec');
1453
- $columns['end_date'] = __('End Date', 'mec');
1454
 
1455
- $columns['repeat'] = __('Repeat', 'mec');
1456
- $columns['author'] = __('Author', 'mec');
1457
 
1458
  return $columns;
1459
  }
@@ -1563,23 +1563,23 @@ class MEC_feature_events extends MEC_base
1563
  <script type="text/javascript">
1564
  jQuery(document).ready(function()
1565
  {
1566
- jQuery('<option>').val('ical-export').text('<?php echo __('iCal Export', 'mec'); ?>').appendTo("select[name='action']");
1567
- jQuery('<option>').val('ical-export').text('<?php echo __('iCal Export', 'mec'); ?>').appendTo("select[name='action2']");
1568
 
1569
- jQuery('<option>').val('csv-export').text('<?php echo __('CSV Export', 'mec'); ?>').appendTo("select[name='action']");
1570
- jQuery('<option>').val('csv-export').text('<?php echo __('CSV Export', 'mec'); ?>').appendTo("select[name='action2']");
1571
 
1572
- jQuery('<option>').val('ms-excel-export').text('<?php echo __('MS Excel Export', 'mec'); ?>').appendTo("select[name='action']");
1573
- jQuery('<option>').val('ms-excel-export').text('<?php echo __('MS Excel Export', 'mec'); ?>').appendTo("select[name='action2']");
1574
 
1575
- jQuery('<option>').val('xml-export').text('<?php echo __('XML Export', 'mec'); ?>').appendTo("select[name='action']");
1576
- jQuery('<option>').val('xml-export').text('<?php echo __('XML Export', 'mec'); ?>').appendTo("select[name='action2']");
1577
 
1578
- jQuery('<option>').val('json-export').text('<?php echo __('JSON Export', 'mec'); ?>').appendTo("select[name='action']");
1579
- jQuery('<option>').val('json-export').text('<?php echo __('JSON Export', 'mec'); ?>').appendTo("select[name='action2']");
1580
 
1581
- jQuery('<option>').val('duplicate').text('<?php echo __('Duplicate', 'mec'); ?>').appendTo("select[name='action']");
1582
- jQuery('<option>').val('duplicate').text('<?php echo __('Duplicate', 'mec'); ?>').appendTo("select[name='action2']");
1583
  });
1584
  </script>
1585
  <?php
@@ -1628,7 +1628,7 @@ class MEC_feature_events extends MEC_base
1628
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
1629
 
1630
  $post_ids = $_GET['post'];
1631
- $columns = array(__('ID', 'mec'), __('Title', 'mec'), __('Start Date', 'mec'), __('Start Time', 'mec'), __('End Date', 'mec'), __('End Time', 'mec'), __('Link', 'mec'), $this->main->m('taxonomy_location', __('Location', 'mec')), $this->main->m('taxonomy_organizer', __('Organizer', 'mec')), sprintf(__('%s Tel', 'mec'), $this->main->m('taxonomy_organizer', __('Organizer', 'mec'))), sprintf(__('%s Email', 'mec'), $this->main->m('taxonomy_organizer', __('Organizer', 'mec'))), $this->main->m('event_cost', __('Event Cost', 'mec')));
1632
 
1633
  $output = fopen('php://output', 'w');
1634
  fputcsv($output, $columns);
@@ -1672,7 +1672,7 @@ class MEC_feature_events extends MEC_base
1672
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
1673
 
1674
  $post_ids = $_GET['post'];
1675
- $columns = array(__('ID', 'mec'), __('Title', 'mec'), __('Start Date', 'mec'), __('Start Time', 'mec'), __('End Date', 'mec'), __('End Time', 'mec'), __('Link', 'mec'), $this->main->m('taxonomy_location', __('Location', 'mec')), $this->main->m('taxonomy_organizer', __('Organizer', 'mec')), sprintf(__('%s Tel', 'mec'), $this->main->m('taxonomy_organizer', __('Organizer', 'mec'))), sprintf(__('%s Email', 'mec'), $this->main->m('taxonomy_organizer', __('Organizer', 'mec'))), $this->main->m('event_cost', __('Event Cost', 'mec')));
1676
 
1677
  $output = fopen('php://output', 'w');
1678
  fwrite($output, "sep=\t".PHP_EOL);
119
  array(
120
  'labels'=>array
121
  (
122
+ 'name'=>__('Events', 'modern-events-calendar-lite'),
123
+ 'singular_name'=>__('Event', 'modern-events-calendar-lite'),
124
+ 'add_new'=>__('Add Event', 'modern-events-calendar-lite'),
125
+ 'add_new_item'=>__('Add New Event', 'modern-events-calendar-lite'),
126
+ 'not_found'=>__('No events found!', 'modern-events-calendar-lite'),
127
+ 'all_items'=>__('All Events', 'modern-events-calendar-lite'),
128
+ 'edit_item'=>__('Edit Event', 'modern-events-calendar-lite'),
129
+ 'view_item'=>__('View Event', 'modern-events-calendar-lite'),
130
+ 'not_found_in_trash'=>__('No events found in Trash!', 'modern-events-calendar-lite')
131
  ),
132
  'public'=>true,
133
  'has_archive'=>($this->main->get_archive_status() ? true : false),
139
  )
140
  );
141
 
142
+ $singular_label = $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite'));
143
+ $plural_label = $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite'));
144
 
145
  register_taxonomy(
146
  'mec_category',
150
  'labels'=>array(
151
  'name'=>$plural_label,
152
  'singular_name'=>$singular_label,
153
+ 'all_items'=>sprintf(__('All %s', 'modern-events-calendar-lite'), $plural_label),
154
+ 'edit_item'=>sprintf(__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
155
+ 'view_item'=>sprintf(__('View %s', 'modern-events-calendar-lite'), $singular_label),
156
+ 'update_item'=>sprintf(__('Update %s', 'modern-events-calendar-lite'), $singular_label),
157
+ 'add_new_item'=>sprintf(__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
158
+ 'new_item_name'=>sprintf(__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
159
+ 'popular_items'=>sprintf(__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
160
+ 'search_items'=>sprintf(__('Search %s', 'modern-events-calendar-lite'), $plural_label),
161
  ),
162
  'public'=>true,
163
  'show_ui'=>true,
179
  add_thickbox();
180
  ?>
181
  <div class="form-field">
182
+ <label for="mec_cat_icon"><?php _e('Category Icon', 'modern-events-calendar-lite'); ?></label>
183
  <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value="" />
184
+ <a href="<?php echo $this->main->asset('icon.html'); ?>" class="thickbox mec_category_icon button"><?php echo __('Select icon', 'modern-events-calendar-lite'); ?></a>
185
  </div>
186
 
187
  <?php
197
  ?>
198
  <tr class="form-field">
199
  <th scope="row" valign="top">
200
+ <label for="mec_cat_icon"><?php _e('Category Icon', 'modern-events-calendar-lite'); ?></label>
201
  </th>
202
  <td>
203
  <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value="<?php echo $icon; ?>" />
204
+ <a href="<?php echo $this->main->asset('icon.html'); ?>" class="thickbox mec_category_icon button"><?php echo __('Select icon', 'modern-events-calendar-lite'); ?></a>
205
  <?php if ( isset( $icon ) ): ?>
206
  <div class="mec-webnus-icon"><i class="<?php echo $icon; ?> mec-color"></i></div>
207
  <?php endif; ?>
247
  */
248
  public function register_meta_boxes()
249
  {
250
+ add_meta_box('mec_metabox_details', __('Event Details', 'modern-events-calendar-lite'), array($this, 'meta_box_details'), $this->main->get_main_post_type(), 'normal', 'high');
251
 
252
  // Show Booking meta box onnly if booking module is enabled
253
+ if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']) add_meta_box('mec_metabox_booking', __('Booking', 'modern-events-calendar-lite'), array($this, 'meta_box_booking'), $this->main->get_main_post_type(), 'normal', 'high');
254
  }
255
 
256
  /**
283
  $cost = get_post_meta($post->ID, 'mec_cost', true);
284
  ?>
285
  <div class="mec-meta-box-fields" id="mec-cost">
286
+ <h4><?php echo $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')); ?></h4>
287
  <div id="mec_meta_box_cost_form">
288
  <div class="mec-form-row">
289
+ <input type="text" class="mec-col-6" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" placeholder="<?php _e('Cost', 'modern-events-calendar-lite'); ?>" />
290
  </div>
291
  </div>
292
  </div>
359
 
360
  <?php if($note_visibility and trim($note)): ?>
361
  <div class="mec-event-note">
362
+ <h4><?php _e('Note for reviewer', 'modern-events-calendar-lite'); ?></h4>
363
  <p><?php echo $note; ?></p>
364
  </div>
365
  <?php endif; ?>
366
 
367
  <?php if(trim($fes_guest_email) and trim($fes_guest_name)): ?>
368
  <div class="mec-guest-data">
369
+ <h4><?php _e('Guest Data', 'modern-events-calendar-lite'); ?></h4>
370
+ <p><strong><?php _e('Name', 'modern-events-calendar-lite'); ?>:</strong> <?php echo $fes_guest_name; ?></p>
371
+ <p><strong><?php _e('Email', 'modern-events-calendar-lite'); ?>:</strong> <?php echo $fes_guest_email; ?></p>
372
  </div>
373
  <?php endif; ?>
374
 
375
+ <h4><?php _e('Date and Time', 'modern-events-calendar-lite'); ?></h4>
376
  <div id="mec_meta_box_date_form">
377
  <div class="mec-title">
378
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
379
+ <label for="mec_start_date"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
380
  </div>
381
  <div class="mec-form-row">
382
  <div class="mec-col-4">
383
+ <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($start_date); ?>" placeholder="<?php _e('Start Date', 'modern-events-calendar-lite'); ?>" class="" />
384
  </div>
385
  <div class="mec-col-6 mec-time-picker <?php if($allday == 1) echo 'mec-util-hidden'; ?>">
386
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($start_time_ampm == 'PM' and $start_time_hour != 12) $start_time_hour += 12; if($start_time_ampm == 'AM' and $start_time_hour == 12) $start_time_hour += 12; ?>
408
  <?php endfor; ?>
409
  </select>
410
  <select name="mec[date][start][ampm]" id="mec_start_ampm">
411
+ <option <?php if($start_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'modern-events-calendar-lite'); ?></option>
412
+ <option <?php if($start_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'modern-events-calendar-lite'); ?></option>
413
  </select>
414
  <?php endif; ?>
415
  </div>
416
  </div>
417
  <div class="mec-title">
418
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
419
+ <label for="mec_end_date"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
420
  </div>
421
  <div class="mec-form-row">
422
  <div class="mec-col-4">
423
+ <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($end_date); ?>" placeholder="<?php _e('End Date', 'modern-events-calendar-lite'); ?>" class="" />
424
  </div>
425
  <div class="mec-col-6 mec-time-picker <?php if($allday == 1) echo 'mec-util-hidden'; ?>">
426
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($end_time_ampm == 'PM' and $end_time_hour != 12) $end_time_hour += 12; if($end_time_ampm == 'AM' and $end_time_hour == 12) $end_time_hour += 12; ?>
448
  <?php endfor; ?>
449
  </select>
450
  <select name="mec[date][end][ampm]" id="mec_end_ampm">
451
+ <option <?php if($end_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'modern-events-calendar-lite'); ?></option>
452
+ <option <?php if($end_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'modern-events-calendar-lite'); ?></option>
453
  </select>
454
  <?php endif; ?>
455
  </div>
456
  </div>
457
  <div class="mec-form-row">
458
+ <input <?php if($allday == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][allday]" id="mec_allday" value="1" onchange="jQuery('.mec-time-picker').toggle();" /><label for="mec_allday"><?php _e('All Day Event', 'modern-events-calendar-lite'); ?></label>
459
  </div>
460
  <div class="mec-form-row">
461
+ <input <?php if($hide_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_time]" id="mec_hide_time" value="1" /><label for="mec_hide_time"><?php _e('Hide Event Time', 'modern-events-calendar-lite'); ?></label>
462
  </div>
463
  <div class="mec-form-row">
464
+ <input <?php if($hide_end_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_end_time]" id="mec_hide_end_time" value="1" /><label for="mec_hide_end_time"><?php _e('Hide Event End Time', 'modern-events-calendar-lite'); ?></label>
465
  </div>
466
  <div class="mec-form-row">
467
  <div class="mec-col-4">
468
+ <input type="text" class="" name="mec[date][comment]" id="mec_comment" placeholder="<?php _e('Time Comment', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($comment); ?>" />
469
+ <a class="mec-tooltip" title="<?php esc_attr_e('It shows next to event time on calendar. You can insert Timezone etc. in this field.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
470
  </div>
471
  </div>
472
  </div>
473
  <div id="mec_meta_box_repeat_form">
474
  <div class="mec-form-row">
475
+ <input <?php if($repeat_status == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][repeat][status]" id="mec_repeat" value="1" /><label for="mec_repeat"><?php _e('Event Repeating', 'modern-events-calendar-lite'); ?></label>
476
  </div>
477
  <div class="mec-form-repeating-event-row">
478
  <div class="mec-form-row">
479
+ <label class="mec-col-3" for="mec_repeat_type"><?php _e('Repeats', 'modern-events-calendar-lite'); ?></label>
480
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
481
+ <option <?php if($repeat_type == 'daily') echo 'selected="selected"'; ?> value="daily"><?php _e('Daily', 'modern-events-calendar-lite'); ?></option>
482
+ <option <?php if($repeat_type == 'weekday') echo 'selected="selected"'; ?> value="weekday"><?php _e('Every Weekday', 'modern-events-calendar-lite'); ?></option>
483
+ <option <?php if($repeat_type == 'weekend') echo 'selected="selected"'; ?> value="weekend"><?php _e('Every Weekend', 'modern-events-calendar-lite'); ?></option>
484
+ <option <?php if($repeat_type == 'certain_weekdays') echo 'selected="selected"'; ?> value="certain_weekdays"><?php _e('Certain Weekdays', 'modern-events-calendar-lite'); ?></option>
485
+ <option <?php if($repeat_type == 'weekly') echo 'selected="selected"'; ?> value="weekly"><?php _e('Weekly', 'modern-events-calendar-lite'); ?></option>
486
+ <option <?php if($repeat_type == 'monthly') echo 'selected="selected"'; ?> value="monthly"><?php _e('Monthly', 'modern-events-calendar-lite'); ?></option>
487
+ <option <?php if($repeat_type == 'yearly') echo 'selected="selected"'; ?> value="yearly"><?php _e('Yearly', 'modern-events-calendar-lite'); ?></option>
488
+ <option <?php if($repeat_type == 'custom_days') echo 'selected="selected"'; ?> value="custom_days"><?php _e('Custom Days', 'modern-events-calendar-lite'); ?></option>
489
  </select>
490
  </div>
491
  <div class="mec-form-row" id="mec_repeat_interval_container">
492
+ <label class="mec-col-3" for="mec_repeat_interval"><?php _e('Repeat Interval', 'modern-events-calendar-lite'); ?></label>
493
+ <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval" placeholder="<?php _e('Repeat interval', 'modern-events-calendar-lite'); ?>" value="<?php echo ($repeat_type == 'weekly' ? ($repeat_interval/7) : $repeat_interval); ?>" />
494
  </div>
495
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
496
+ <label class="mec-col-3"><?php _e('Week Days', 'modern-events-calendar-lite'); ?></label>
497
+ <label><input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="1" <?php echo (in_array(1, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Monday', 'modern-events-calendar-lite'); ?></label>
498
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="2" <?php echo (in_array(2, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Tuesday', 'modern-events-calendar-lite'); ?></label>
499
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="3" <?php echo (in_array(3, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Wednesday', 'modern-events-calendar-lite'); ?></label>
500
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="4" <?php echo (in_array(4, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Thursday', 'modern-events-calendar-lite'); ?></label>
501
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="5" <?php echo (in_array(5, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Friday', 'modern-events-calendar-lite'); ?></label>
502
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="6" <?php echo (in_array(6, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Saturday', 'modern-events-calendar-lite'); ?></label>
503
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="7" <?php echo (in_array(7, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Sunday', 'modern-events-calendar-lite'); ?></label>
504
  </div>
505
  <div class="mec-form-row" id="mec_exceptions_in_days_container">
506
  <div class="mec-form-row">
507
  <div class="mec-col-6">
508
+ <input type="text" id="mec_exceptions_in_days_date" value="" placeholder="<?php _e('Date', 'modern-events-calendar-lite'); ?>" class="mec_date_picker" />
509
+ <button class="button" type="button" id="mec_add_in_days"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
510
+ <a class="mec-tooltip" title="<?php esc_attr_e('Add certain days to event occurrence dates.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
511
  </div>
512
  </div>
513
  <div class="mec-form-row mec-certain-day" id="mec_in_days">
529
  </div>
530
  </div>
531
  <div class="mec-form-row">
532
+ <label for="mec_repeat_ends_never"><h4 class="mec-title"><?php _e('Ends Repeat', 'modern-events-calendar-lite'); ?></h4></label>
533
  </div>
534
  <div class="mec-form-row">
535
  <input <?php if($mec_repeat_end == 'never') echo 'checked="checked"'; ?> type="radio" value="never" name="mec[date][repeat][end]" id="mec_repeat_ends_never" />
536
+ <label for="mec_repeat_ends_never"><?php _e('Never', 'modern-events-calendar-lite'); ?></label>
537
  </div>
538
  <div class="mec-form-row">
539
  <div class="mec-col-3">
540
  <input <?php if($mec_repeat_end == 'date') echo 'checked="checked"'; ?> type="radio" value="date" name="mec[date][repeat][end]" id="mec_repeat_ends_date" />
541
+ <label for="mec_repeat_ends_date"><?php _e('On', 'modern-events-calendar-lite'); ?></label>
542
  </div>
543
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]" id="mec_date_repeat_end_at_date" value="<?php echo esc_attr($repeat_end_at_date); ?>" />
544
  </div>
545
  <div class="mec-form-row">
546
  <div class="mec-col-3">
547
  <input <?php if($mec_repeat_end == 'occurrences') echo 'checked="checked"'; ?> type="radio" value="occurrences" name="mec[date][repeat][end]" id="mec_repeat_ends_occurrences" />
548
+ <label for="mec_repeat_ends_occurrences"><?php _e('After', 'modern-events-calendar-lite'); ?></label>
549
  </div>
550
+ <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]" id="mec_date_repeat_end_at_occurrences" placeholder="<?php _e('Occurrences times', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr(($repeat_end_at_occurrences+1)); ?>" />
551
+ <a class="mec-tooltip" title="<?php esc_attr_e('The event will finish after certain repeats. For example if you set it to 10, the event will finish after 10 repeats.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
552
  </div>
553
  </div>
554
  </div>
567
  $not_in_days = trim($not_in_days_str) ? explode(',', $not_in_days_str) : array();
568
  ?>
569
  <div class="mec-meta-box-fields" id="mec-exceptional-days">
570
+ <h4><?php _e('Exceptional Days', 'modern-events-calendar-lite'); ?></h4>
571
  <div id="mec_meta_box_exceptions_form">
572
 
573
  <div id="mec_exceptions_not_in_days_container">
574
  <div class="mec-title">
575
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
576
+ <label for="mec_exceptions_not_in_days_date"><?php _e('Exclude certain days', 'modern-events-calendar-lite'); ?></label>
577
  </div>
578
  <div class="mec-form-row">
579
  <div class="mec-col-6">
580
+ <input type="text" id="mec_exceptions_not_in_days_date" value="" placeholder="<?php _e('Date', 'modern-events-calendar-lite'); ?>" class="mec_date_picker" />
581
+ <button class="button" type="button" id="mec_add_not_in_days"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
582
+ <a class="mec-tooltip" title="<?php esc_attr_e('Exclude certain days from event occurrence dates.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
583
  </div>
584
  </div>
585
  <div class="mec-form-row mec-certain-day" id="mec_not_in_days">
617
  if(!is_array($hourly_schedules)) $hourly_schedules = array();
618
  ?>
619
  <div class="mec-meta-box-fields" id="mec-hourly-schedule">
620
+ <h4><?php _e('Hourly Schedule', 'modern-events-calendar-lite'); ?></h4>
621
  <div id="mec_meta_box_hourly_schedule_form">
622
  <div class="mec-form-row">
623
+ <button class="button" type="button" id="mec_add_hourly_schedule_button"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
624
+ <span class="description"><?php esc_attr_e('Add new hourly schedule row', 'modern-events-calendar-lite'); ?></span>
625
  </div>
626
  <div id="mec_hourly_schedules">
627
  <?php $i = 0; foreach($hourly_schedules as $key=>$hourly_schedule): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
628
  <div class="mec-form-row mec-box" id="mec_hourly_schedule_row<?php echo $key; ?>">
629
+ <input class="mec-col-2" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][from]" placeholder="<?php esc_attr_e('From e.g. 8:15', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($hourly_schedule['from']); ?>" />
630
+ <input class="mec-col-2" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][to]" placeholder="<?php esc_attr_e('To e.g. 8:45', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($hourly_schedule['to']); ?>" />
631
+ <input class="mec-col-2" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][title]" placeholder="<?php esc_attr_e('Title', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($hourly_schedule['title']); ?>" />
632
+ <input class="mec-col-4" type="text" name="mec[hourly_schedules][<?php echo $key; ?>][description]" placeholder="<?php esc_attr_e('Description', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($hourly_schedule['description']); ?>" />
633
+ <button class="button" type="button" onclick="mec_hourly_schedule_remove(<?php echo $key; ?>);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
634
  </div>
635
  <?php endforeach; ?>
636
  </div>
638
  <input type="hidden" id="mec_new_hourly_schedule_key" value="<?php echo $i+1; ?>" />
639
  <div class="mec-util-hidden" id="mec_new_hourly_schedule_raw">
640
  <div class="mec-form-row mec-box" id="mec_hourly_schedule_row:i:">
641
+ <input class="mec-col-2" type="text" name="mec[hourly_schedules][:i:][from]" placeholder="<?php esc_attr_e('From e.g. 8:15', 'modern-events-calendar-lite'); ?>" />
642
+ <input class="mec-col-2" type="text" name="mec[hourly_schedules][:i:][to]" placeholder="<?php esc_attr_e('To e.g. 8:45', 'modern-events-calendar-lite'); ?>" />
643
+ <input class="mec-col-2" type="text" name="mec[hourly_schedules][:i:][title]" placeholder="<?php esc_attr_e('Title', 'modern-events-calendar-lite'); ?>" />
644
+ <input class="mec-col-4" type="text" name="mec[hourly_schedules][:i:][description]" placeholder="<?php esc_attr_e('Description', 'modern-events-calendar-lite'); ?>" />
645
+ <button class="button" type="button" onclick="mec_hourly_schedule_remove(:i:);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
646
  </div>
647
  </div>
648
  </div>
662
  $more_info_target = get_post_meta($post->ID, 'mec_more_info_target', true);
663
  ?>
664
  <div class="mec-meta-box-fields" id="mec-read-more">
665
+ <h4><?php _e('Event Links', 'modern-events-calendar-lite'); ?></h4>
666
  <div class="mec-form-row">
667
+ <label class="mec-col-2" for="mec_read_more_link"><?php echo $this->main->m('read_more_link', __('Event Link', 'modern-events-calendar-lite')); ?></label>
668
+ <input class="mec-col-7" type="text" name="mec[read_more]" id="mec_read_more_link" value="<?php echo esc_attr($read_more); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>" />
669
+ <a class="mec-tooltip" title="<?php esc_attr_e('If you fill it, it will be replaced instead of default event page link. Insert full link including http(s)://', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
670
  </div>
671
  <div class="mec-form-row">
672
+ <label class="mec-col-2" for="mec_more_info_link"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></label>
673
+ <input class="mec-col-5" type="text" name="mec[more_info]" id="mec_more_info_link" value="<?php echo esc_attr($more_info); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>" />
674
+ <input class="mec-col-2" type="text" name="mec[more_info_title]" id="mec_more_info_title" value="<?php echo esc_attr($more_info_title); ?>" placeholder="<?php _e('More Information', 'modern-events-calendar-lite'); ?>" />
675
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
676
+ <option value="_self" <?php echo ($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php _e('Current Window', 'modern-events-calendar-lite'); ?></option>
677
+ <option value="_blank" <?php echo ($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php _e('New Window', 'modern-events-calendar-lite'); ?></option>
678
  </select>
679
+ <a class="mec-tooltip" title="<?php esc_attr_e('If you fill it, it will be shown in event details page as an optional link. Insert full link including http(s)://', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
680
  </div>
681
  </div>
682
  <?php
707
  ?>
708
  <div id="mec-booking">
709
  <div class="mec-meta-box-fields" id="mec_meta_box_booking_options_form">
710
+ <label for="mec_bookings_limit"><h4 class="mec-title"><?php _e('Total booking limits', 'modern-events-calendar-lite'); ?></h4></label>
711
  <div class="mec-form-row">
712
  <label class="mec-col-4" for="mec_bookings_limit_unlimited" id="mec_bookings_limit_unlimited_label">
713
  <input type="hidden" name="mec[booking][bookings_limit_unlimited]" value="0" />
714
  <input id="mec_bookings_limit_unlimited" <?php if($bookings_limit_unlimited == 1) echo 'checked="checked"'; ?> type="checkbox" value="1" name="mec[booking][bookings_limit_unlimited]" />
715
+ <?php _e('Unlimited', 'modern-events-calendar-lite'); ?>
716
  </label>
717
+ <input class="mec-col-4" type="text" name="mec[booking][bookings_limit]" id="mec_bookings_limit" value="<?php echo esc_attr($bookings_limit); ?>" placeholder="<?php _e('100', 'modern-events-calendar-lite'); ?>" class="<?php if($bookings_limit_unlimited == 1) echo 'mec-util-hidden'; ?>" />
718
  </div>
719
  </div>
720
  </div>
732
  if(!is_array($tickets)) $tickets = array();
733
  ?>
734
  <div class="mec-meta-box-fields" id="mec-tickets">
735
+ <h4 class="mec-meta-box-header"><?php echo $this->main->m('tickets', __('Tickets', 'modern-events-calendar-lite')); ?></h4>
736
 
737
  <?php if($post->ID != $this->main->get_original_event($post->ID)): ?>
738
+ <p class="warning-msg"><?php _e("You're translating an event so MEC will use the original event for tickets and booking. You can only translate the ticket name and description. Please define exact tickets that you defined in the original event here.", 'modern-events-calendar-lite'); ?></p>
739
  <?php endif; ?>
740
 
741
  <div id="mec_meta_box_tickets_form">
742
  <div class="mec-form-row">
743
+ <button class="button" type="button" id="mec_add_ticket_button"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
744
  </div>
745
  <div id="mec_tickets">
746
  <?php $i = 0; foreach($tickets as $key=>$ticket): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
747
  <div class="mec-box" id="mec_ticket_row<?php echo $key; ?>">
748
  <div class="mec-form-row">
749
+ <input type="text" class="mec-col-12" name="mec[tickets][<?php echo $key; ?>][name]" placeholder="<?php esc_attr_e('Ticket Name', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket['name']) ? esc_attr($ticket['name']) : ''); ?>" />
750
  </div>
751
  <div class="mec-form-row">
752
+ <input type="text" class="mec-col-12" name="mec[tickets][<?php echo $key; ?>][description]" placeholder="<?php esc_attr_e('Description', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket['description']) ? esc_attr($ticket['description']) : ''); ?>" />
753
  </div>
754
  <div class="mec-form-row">
755
  <span class="mec-col-4">
756
+ <input type="text" name="mec[tickets][<?php echo $key; ?>][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket['price']) ? esc_attr($ticket['price']) : ''); ?>" />
757
+ <a class="mec-tooltip" title="<?php esc_attr_e('Insert 0 for free ticket. Only numbers please.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
758
  </span>
759
  <span class="mec-col-8">
760
+ <input type="text" name="mec[tickets][<?php echo $key; ?>][price_label]" placeholder="<?php esc_attr_e('Price Label', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket['price_label']) ? esc_attr($ticket['price_label']) : ''); ?>" class="mec-col-12" />
761
+ <a class="mec-tooltip" title="<?php esc_attr_e('For showing on website. e.g. $15', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
762
  </span>
763
  </div>
764
  <div class="mec-form-row">
765
+ <input class="mec-col-4" type="text" name="mec[tickets][<?php echo $key; ?>][limit]" placeholder="<?php esc_attr_e('Available Tickets', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket['limit']) ? esc_attr($ticket['limit']) : '100'); ?>" />
766
  <label class="mec-col-2" for="mec_tickets_unlimited_<?php echo $key; ?>" id="mec_bookings_limit_unlimited_label<?php echo $key; ?>">
767
  <input type="hidden" name="mec[tickets][<?php echo $key; ?>][unlimited]" value="0" />
768
  <input id="mec_tickets_unlimited_<?php echo $key; ?>" type="checkbox" value="1" name="mec[tickets][<?php echo $key; ?>][unlimited]" <?php if(isset($ticket['unlimited']) and $ticket['unlimited']) echo 'checked="checked"'; ?> />
769
+ <?php _e('Unlimited', 'modern-events-calendar-lite'); ?>
770
  </label>
771
+ <button class="button" type="button" onclick="mec_ticket_remove(<?php echo $key; ?>);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
772
  </div>
773
  </div>
774
  <?php endforeach; ?>
778
  <div class="mec-util-hidden" id="mec_new_ticket_raw">
779
  <div class="mec-box" id="mec_ticket_row:i:">
780
  <div class="mec-form-row">
781
+ <input class="mec-col-12" type="text" name="mec[tickets][:i:][name]" placeholder="<?php esc_attr_e('Ticket Name', 'modern-events-calendar-lite'); ?>" />
782
  </div>
783
  <div class="mec-form-row">
784
+ <input class="mec-col-12" type="text" name="mec[tickets][:i:][description]" placeholder="<?php esc_attr_e('Description', 'modern-events-calendar-lite'); ?>" />
785
  </div>
786
  <div class="mec-form-row">
787
  <span class="mec-col-4">
788
+ <input type="text" name="mec[tickets][:i:][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" />
789
+ <a class="mec-tooltip" title="<?php esc_attr_e('Insert 0 for free ticket. Only numbers please.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
790
  </span>
791
  <span class="mec-col-8">
792
+ <input type="text" name="mec[tickets][:i:][price_label]" placeholder="<?php esc_attr_e('Price Label', 'modern-events-calendar-lite'); ?>" class="mec-col-12" />
793
+ <a class="mec-tooltip" title="<?php esc_attr_e('For showing on website. e.g. $15', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
794
  </span>
795
  </div>
796
  <div class="mec-form-row">
797
+ <input class="mec-col-4" type="text" name="mec[tickets][:i:][limit]" placeholder="<?php esc_attr_e('Available Tickets', 'modern-events-calendar-lite'); ?>" />
798
  <label class="mec-col-4" for="mec_tickets_unlimited_:i:" id="mec_bookings_limit_unlimited_label">
799
  <input type="hidden" name="mec[tickets][:i:][unlimited]" value="0" />
800
  <input id="mec_tickets_unlimited_:i:" type="checkbox" value="1" name="mec[tickets][:i:][unlimited]" />
801
+ <?php _e('Unlimited', 'modern-events-calendar-lite'); ?>
802
  </label>
803
+ <button class="button" type="button" onclick="mec_ticket_remove(:i:);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
804
  </div>
805
  </div>
806
  </div>
826
  if(!is_array($fees)) $fees = array();
827
  ?>
828
  <div class="mec-meta-box-fields" id="mec-fees">
829
+ <h4 class="mec-meta-box-header"><?php _e('Fees', 'modern-events-calendar-lite'); ?></h4>
830
  <div id="mec_meta_box_fees_form">
831
  <div class="mec-form-row">
832
  <label>
833
  <input type="hidden" name="mec[fees_global_inheritance]" value="0" />
834
+ <input onchange="jQuery('#mec_taxes_fees_container_toggle').toggle();" value="1" type="checkbox" name="mec[fees_global_inheritance]" <?php if($global_inheritance) echo 'checked="checked"'; ?> /> <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
835
  </label>
836
  </div>
837
  <div id="mec_taxes_fees_container_toggle" class="<?php if($global_inheritance) echo 'mec-util-hidden'; ?>">
838
  <div class="mec-form-row">
839
+ <button class="button" type="button" id="mec_add_fee_button"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
840
  </div>
841
  <div id="mec_fees_list">
842
  <?php $i = 0; foreach($fees as $key=>$fee): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
843
  <div class="mec-box" id="mec_fee_row<?php echo $i; ?>">
844
  <div class="mec-form-row">
845
+ <input class="mec-col-12" type="text" name="mec[fees][<?php echo $i; ?>][title]" placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($fee['title']) ? esc_attr($fee['title']) : ''); ?>" />
846
  </div>
847
  <div class="mec-form-row">
848
  <span class="mec-col-4">
849
+ <input type="text" name="mec[fees][<?php echo $i; ?>][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($fee['amount']) ? esc_attr($fee['amount']) : ''); ?>" />
850
+ <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
851
  </span>
852
  <span class="mec-col-4">
853
  <select name="mec[fees][<?php echo $i; ?>][type]">
854
+ <option value="percent" <?php echo ((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
855
+ <option value="amount" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
856
+ <option value="amount_per_booking" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_booking') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
857
  </select>
858
  </span>
859
+ <button class="button" type="button" id="mec_remove_fee_button<?php echo $i; ?>" onclick="mec_remove_fee(<?php echo $i; ?>);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
860
  </div>
861
  </div>
862
  <?php endforeach; ?>
867
  <div class="mec-util-hidden" id="mec_new_fee_raw">
868
  <div class="mec-box" id="mec_fee_row:i:">
869
  <div class="mec-form-row">
870
+ <input class="mec-col-12" type="text" name="mec[fees][:i:][title]" placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>" />
871
  </div>
872
  <div class="mec-form-row">
873
  <span class="mec-col-4">
874
+ <input type="text" name="mec[fees][:i:][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" />
875
+ <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
876
  </span>
877
  <span class="mec-col-4">
878
  <select name="mec[fees][:i:][type]">
879
+ <option value="percent"><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
880
+ <option value="amount"><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
881
+ <option value="amount_per_booking"><?php _e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
882
  </select>
883
  </span>
884
+ <button class="button" type="button" id="mec_remove_fee_button:i:" onclick="mec_remove_fee(:i:);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
885
  </div>
886
  </div>
887
  </div>
907
  if(!is_array($reg_fields)) $reg_fields = array();
908
  ?>
909
  <div class="mec-meta-box-fields" id="mec-reg-fields">
910
+ <h4 class="mec-meta-box-header"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></h4>
911
  <div id="mec_meta_box_reg_fields_form">
912
  <div class="mec-form-row">
913
  <label>
914
  <input type="hidden" name="mec[reg_fields_global_inheritance]" value="0" />
915
+ <input onchange="jQuery('#mec_regform_container_toggle').toggle();" value="1" type="checkbox" name="mec[reg_fields_global_inheritance]" <?php if($global_inheritance) echo 'checked="checked"'; ?> /> <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
916
  </label>
917
  </div>
918
  <div id="mec_regform_container_toggle" class="<?php if($global_inheritance) echo 'mec-util-hidden'; ?>">
941
  ?>
942
  </ul>
943
  <div id="mec_reg_form_field_types">
944
+ <button type="button" class="button" data-type="text"><?php _e('Text', 'modern-events-calendar-lite'); ?></button>
945
+ <button type="button" class="button" data-type="email"><?php _e('Email', 'modern-events-calendar-lite'); ?></button>
946
+ <button type="button" class="button" data-type="tel"><?php _e('Tel', 'modern-events-calendar-lite'); ?></button>
947
+ <button type="button" class="button" data-type="textarea"><?php _e('Textarea', 'modern-events-calendar-lite'); ?></button>
948
+ <button type="button" class="button" data-type="checkbox"><?php _e('Checkboxes', 'modern-events-calendar-lite'); ?></button>
949
+ <button type="button" class="button" data-type="radio"><?php _e('Radio Buttons', 'modern-events-calendar-lite'); ?></button>
950
+ <button type="button" class="button" data-type="select"><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></button>
951
+ <button type="button" class="button" data-type="agreement"><?php _e('Agreement', 'modern-events-calendar-lite'); ?></button>
952
+ <button type="button" class="button" data-type="p"><?php _e('Paragraph', 'modern-events-calendar-lite'); ?></button>
953
  </div>
954
  <input type="hidden" id="mec_new_reg_field_key" value="<?php echo $i+1; ?>" />
955
  <div class="mec-util-hidden">
1392
 
1393
  $taxonomy = 'mec_label';
1394
  if(wp_count_terms($taxonomy)) wp_dropdown_categories(array(
1395
+ 'show_option_all'=>sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_labels', __('labels', 'modern-events-calendar-lite'))),
1396
  'taxonomy'=>$taxonomy,
1397
  'name'=>$taxonomy,
1398
  'value_field'=>'slug',
1407
  if(wp_count_terms($taxonomy))
1408
  {
1409
  wp_dropdown_categories(array(
1410
+ 'show_option_all'=>sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_locations', __('locations', 'modern-events-calendar-lite'))),
1411
  'taxonomy'=>$taxonomy,
1412
  'name'=>$taxonomy,
1413
  'value_field'=>'slug',
1421
 
1422
  $taxonomy = 'mec_organizer';
1423
  if(wp_count_terms($taxonomy)) wp_dropdown_categories(array(
1424
+ 'show_option_all'=>sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizers', __('organizers', 'modern-events-calendar-lite'))),
1425
  'taxonomy'=>$taxonomy,
1426
  'name'=>$taxonomy,
1427
  'value_field'=>'slug',
1446
  unset($columns['author']);
1447
  unset($columns['tags']);
1448
 
1449
+ $columns['title'] = __('Title', 'modern-events-calendar-lite');
1450
+ $columns['location'] = $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite'));
1451
+ $columns['organizer'] = $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'));
1452
+ $columns['start_date'] = __('Start Date', 'modern-events-calendar-lite');
1453
+ $columns['end_date'] = __('End Date', 'modern-events-calendar-lite');
1454
 
1455
+ $columns['repeat'] = __('Repeat', 'modern-events-calendar-lite');
1456
+ $columns['author'] = __('Author', 'modern-events-calendar-lite');
1457
 
1458
  return $columns;
1459
  }
1563
  <script type="text/javascript">
1564
  jQuery(document).ready(function()
1565
  {
1566
+ jQuery('<option>').val('ical-export').text('<?php echo __('iCal Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
1567
+ jQuery('<option>').val('ical-export').text('<?php echo __('iCal Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
1568
 
1569
+ jQuery('<option>').val('csv-export').text('<?php echo __('CSV Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
1570
+ jQuery('<option>').val('csv-export').text('<?php echo __('CSV Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
1571
 
1572
+ jQuery('<option>').val('ms-excel-export').text('<?php echo __('MS Excel Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
1573
+ jQuery('<option>').val('ms-excel-export').text('<?php echo __('MS Excel Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
1574
 
1575
+ jQuery('<option>').val('xml-export').text('<?php echo __('XML Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
1576
+ jQuery('<option>').val('xml-export').text('<?php echo __('XML Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
1577
 
1578
+ jQuery('<option>').val('json-export').text('<?php echo __('JSON Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
1579
+ jQuery('<option>').val('json-export').text('<?php echo __('JSON Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
1580
 
1581
+ jQuery('<option>').val('duplicate').text('<?php echo __('Duplicate', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
1582
+ jQuery('<option>').val('duplicate').text('<?php echo __('Duplicate', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
1583
  });
1584
  </script>
1585
  <?php
1628
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
1629
 
1630
  $post_ids = $_GET['post'];
1631
+ $columns = array(__('ID', 'modern-events-calendar-lite'), __('Title', 'modern-events-calendar-lite'), __('Start Date', 'modern-events-calendar-lite'), __('Start Time', 'modern-events-calendar-lite'), __('End Date', 'modern-events-calendar-lite'), __('End Time', 'modern-events-calendar-lite'), __('Link', 'modern-events-calendar-lite'), $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')), sprintf(__('%s Tel', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))), sprintf(__('%s Email', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))), $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')));
1632
 
1633
  $output = fopen('php://output', 'w');
1634
  fputcsv($output, $columns);
1672
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
1673
 
1674
  $post_ids = $_GET['post'];
1675
+ $columns = array(__('ID', 'modern-events-calendar-lite'), __('Title', 'modern-events-calendar-lite'), __('Start Date', 'modern-events-calendar-lite'), __('Start Time', 'modern-events-calendar-lite'), __('End Date', 'modern-events-calendar-lite'), __('End Time', 'modern-events-calendar-lite'), __('Link', 'modern-events-calendar-lite'), $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')), sprintf(__('%s Tel', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))), sprintf(__('%s Email', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))), $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')));
1676
 
1677
  $output = fopen('php://output', 'w');
1678
  fwrite($output, "sep=\t".PHP_EOL);
app/features/fes.php CHANGED
@@ -80,7 +80,7 @@ class MEC_feature_fes extends MEC_base
80
  if(!is_user_logged_in() and (!isset($this->settings['fes_guest_status']) or (isset($this->settings['fes_guest_status']) and $this->settings['fes_guest_status'] == '0')))
81
  {
82
  // Show message
83
- $message = sprintf(__('Please %s/%s in order to submit new events.', 'mec'), '<a href="'.wp_login_url($this->main->get_full_url()).'">'.__('Login', 'mec').'</a>', '<a href="'.wp_registration_url().'">'.__('Register', 'mec').'</a>');
84
 
85
  ob_start();
86
  include MEC::import('app.features.fes.message', true, true);
@@ -93,7 +93,7 @@ class MEC_feature_fes extends MEC_base
93
  if($post_id > 0 and get_post_type($post_id) != $this->PT)
94
  {
95
  // Show message
96
- $message = __("Sorry! Selected post is not an event.", 'mec');
97
 
98
  ob_start();
99
  include MEC::import('app.features.fes.message', true, true);
@@ -104,7 +104,7 @@ class MEC_feature_fes extends MEC_base
104
  if($post_id != -1 and !current_user_can('edit_post', $post_id))
105
  {
106
  // Show message
107
- $message = __("Sorry! You don't have access to modify this event.", 'mec');
108
 
109
  ob_start();
110
  include MEC::import('app.features.fes.message', true, true);
@@ -143,7 +143,7 @@ class MEC_feature_fes extends MEC_base
143
  if($post_id > 0 and !current_user_can('edit_post', $post_id))
144
  {
145
  // Show message
146
- $message = __("Sorry! You don't have access to modify this event.", 'mec');
147
 
148
  ob_start();
149
  include MEC::import('app.features.fes.message', true, true);
@@ -158,7 +158,7 @@ class MEC_feature_fes extends MEC_base
158
  if(!is_user_logged_in())
159
  {
160
  // Show message
161
- $message = sprintf(__('Please %s/%s in order to manage events.', 'mec'), '<a href="'.wp_login_url($this->main->get_full_url()).'">'.__('Login', 'mec').'</a>', '<a href="'.wp_registration_url().'">'.__('Register', 'mec').'</a>');
162
 
163
  ob_start();
164
  include MEC::import('app.features.fes.message', true, true);
@@ -188,7 +188,7 @@ class MEC_feature_fes extends MEC_base
188
  // Trash the event
189
  wp_delete_post($post_id);
190
 
191
- $this->main->response(array('success'=>1, 'message'=>__('The event removed!', 'mec')));
192
  }
193
 
194
  public function fes_upload()
@@ -223,7 +223,7 @@ class MEC_feature_fes extends MEC_base
223
  if($movefile and !isset($movefile['error']))
224
  {
225
  $success = 1;
226
- $message = __('The image is uploaded!', 'mec');
227
 
228
  $data['url'] = $movefile['url'];
229
  }
@@ -249,7 +249,7 @@ class MEC_feature_fes extends MEC_base
249
  if($this->main->get_recaptcha_status('fes'))
250
  {
251
  $g_recaptcha_response = isset($_POST['g-recaptcha-response']) ? sanitize_text_field($_POST['g-recaptcha-response']) : NULL;
252
- if(!$this->main->get_recaptcha_response($g_recaptcha_response)) $this->main->response(array('success'=>0, 'message'=>__('Captcha is invalid! Please try again.', 'mec'), 'code'=>'CAPTCHA_IS_INVALID'));
253
  }
254
 
255
  $post_id = isset($mec['post_id']) ? sanitize_text_field($mec['post_id']) : -1;
@@ -260,7 +260,7 @@ class MEC_feature_fes extends MEC_base
260
  $post_labels = isset($mec['labels']) ? $mec['labels'] : array();
261
  $featured_image = isset($mec['featured_image']) ? sanitize_text_field($mec['featured_image']) : '';
262
 
263
- if(!trim($post_title)) $this->main->response(array('success'=>0, 'message'=>__('Please fill event title field!', 'mec'), 'code'=>'TITLE_IS_EMPTY'));
264
 
265
  // Post Status
266
  $status = 'pending';
@@ -768,8 +768,8 @@ class MEC_feature_fes extends MEC_base
768
  update_post_meta($post_id, 'mec_reg_fields', $reg_fields);
769
 
770
  $message = '';
771
- if($status == 'pending') $message = __('The event submitted. It will publish as soon as possible.', 'mec');
772
- elseif($status == 'publish') $message = __('The event published.', 'mec');
773
 
774
  // Trigger Event
775
  if($method == 'updated') do_action('mec_fes_updated', $post_id);
80
  if(!is_user_logged_in() and (!isset($this->settings['fes_guest_status']) or (isset($this->settings['fes_guest_status']) and $this->settings['fes_guest_status'] == '0')))
81
  {
82
  // Show message
83
+ $message = sprintf(__('Please %s/%s in order to submit new events.', 'modern-events-calendar-lite'), '<a href="'.wp_login_url($this->main->get_full_url()).'">'.__('Login', 'modern-events-calendar-lite').'</a>', '<a href="'.wp_registration_url().'">'.__('Register', 'modern-events-calendar-lite').'</a>');
84
 
85
  ob_start();
86
  include MEC::import('app.features.fes.message', true, true);
93
  if($post_id > 0 and get_post_type($post_id) != $this->PT)
94
  {
95
  // Show message
96
+ $message = __("Sorry! Selected post is not an event.", 'modern-events-calendar-lite');
97
 
98
  ob_start();
99
  include MEC::import('app.features.fes.message', true, true);
104
  if($post_id != -1 and !current_user_can('edit_post', $post_id))
105
  {
106
  // Show message
107
+ $message = __("Sorry! You don't have access to modify this event.", 'modern-events-calendar-lite');
108
 
109
  ob_start();
110
  include MEC::import('app.features.fes.message', true, true);
143
  if($post_id > 0 and !current_user_can('edit_post', $post_id))
144
  {
145
  // Show message
146
+ $message = __("Sorry! You don't have access to modify this event.", 'modern-events-calendar-lite');
147
 
148
  ob_start();
149
  include MEC::import('app.features.fes.message', true, true);
158
  if(!is_user_logged_in())
159
  {
160
  // Show message
161
+ $message = sprintf(__('Please %s/%s in order to manage events.', 'modern-events-calendar-lite'), '<a href="'.wp_login_url($this->main->get_full_url()).'">'.__('Login', 'modern-events-calendar-lite').'</a>', '<a href="'.wp_registration_url().'">'.__('Register', 'modern-events-calendar-lite').'</a>');
162
 
163
  ob_start();
164
  include MEC::import('app.features.fes.message', true, true);
188
  // Trash the event
189
  wp_delete_post($post_id);
190
 
191
+ $this->main->response(array('success'=>1, 'message'=>__('The event removed!', 'modern-events-calendar-lite')));
192
  }
193
 
194
  public function fes_upload()
223
  if($movefile and !isset($movefile['error']))
224
  {
225
  $success = 1;
226
+ $message = __('The image is uploaded!', 'modern-events-calendar-lite');
227
 
228
  $data['url'] = $movefile['url'];
229
  }
249
  if($this->main->get_recaptcha_status('fes'))
250
  {
251
  $g_recaptcha_response = isset($_POST['g-recaptcha-response']) ? sanitize_text_field($_POST['g-recaptcha-response']) : NULL;
252
+ if(!$this->main->get_recaptcha_response($g_recaptcha_response)) $this->main->response(array('success'=>0, 'message'=>__('Captcha is invalid! Please try again.', 'modern-events-calendar-lite'), 'code'=>'CAPTCHA_IS_INVALID'));
253
  }
254
 
255
  $post_id = isset($mec['post_id']) ? sanitize_text_field($mec['post_id']) : -1;
260
  $post_labels = isset($mec['labels']) ? $mec['labels'] : array();
261
  $featured_image = isset($mec['featured_image']) ? sanitize_text_field($mec['featured_image']) : '';
262
 
263
+ if(!trim($post_title)) $this->main->response(array('success'=>0, 'message'=>__('Please fill event title field!', 'modern-events-calendar-lite'), 'code'=>'TITLE_IS_EMPTY'));
264
 
265
  // Post Status
266
  $status = 'pending';
768
  update_post_meta($post_id, 'mec_reg_fields', $reg_fields);
769
 
770
  $message = '';
771
+ if($status == 'pending') $message = __('The event submitted. It will publish as soon as possible.', 'modern-events-calendar-lite');
772
+ elseif($status == 'publish') $message = __('The event published.', 'modern-events-calendar-lite');
773
 
774
  // Trigger Event
775
  if($method == 'updated') do_action('mec_fes_updated', $post_id);
app/features/fes/form.php CHANGED
@@ -154,7 +154,7 @@ $this->factory->params('footer', $javascript);
154
  <div class="mec-fes-form">
155
  <?php if(is_user_logged_in()): ?>
156
  <div class="mec-fes-form-top-actions">
157
- <a href="<?php echo $this->link_list_events(); ?>"><?php echo __('Go back to events list.', 'mec'); ?></a>
158
  </div>
159
  <?php endif; ?>
160
 
@@ -211,22 +211,22 @@ $this->factory->params('footer', $javascript);
211
 
212
  <div class="mec-fes-form-cntt">
213
  <div class="mec-form-row">
214
- <label for="mec_fes_title"><?php _e('Title', 'mec'); ?></label>
215
  <input type="text" name="mec[title]" id="mec_fes_title" value="<?php echo (isset($post->post_title) ? $post->post_title : ''); ?>" required="required" />
216
  </div>
217
  <div class="mec-form-row">
218
  <?php wp_editor((isset($post->post_content) ? $post->post_content : ''), 'mec_fes_content', array('textarea_name'=>'mec[content]')); ?>
219
  </div>
220
  <div class="mec-meta-box-fields" id="mec-date-time">
221
- <h4><?php _e('Date and Time', 'mec'); ?></h4>
222
  <div id="mec_meta_box_date_form">
223
  <div class="mec-title">
224
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
225
- <label for="mec_start_date"><?php _e('Start Date', 'mec'); ?></label>
226
  </div>
227
  <div class="mec-form-row">
228
  <div class="mec-col-4">
229
- <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($start_date); ?>" placeholder="<?php _e('Start Date', 'mec'); ?>" class="" />
230
  </div>
231
  <div class="mec-col-6 mec-time-picker">
232
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($start_time_ampm == 'PM' and $start_time_hour != 12) $start_time_hour += 12; if($start_time_ampm == 'AM' and $start_time_hour == 12) $start_time_hour += 12; ?>
@@ -254,19 +254,19 @@ $this->factory->params('footer', $javascript);
254
  <?php endfor; ?>
255
  </select>
256
  <select name="mec[date][start][ampm]" id="mec_start_ampm">
257
- <option <?php if($start_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'mec'); ?></option>
258
- <option <?php if($start_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'mec'); ?></option>
259
  </select>
260
  <?php endif; ?>
261
  </div>
262
  </div>
263
  <div class="mec-title">
264
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
265
- <label for="mec_end_date"><?php _e('End Date', 'mec'); ?></label>
266
  </div>
267
  <div class="mec-form-row">
268
  <div class="mec-col-4">
269
- <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($end_date); ?>" placeholder="<?php _e('End Date', 'mec'); ?>" class="" />
270
  </div>
271
  <div class="mec-col-6 mec-time-picker">
272
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($end_time_ampm == 'PM' and $end_time_hour != 12) $end_time_hour += 12; if($end_time_ampm == 'AM' and $end_time_hour == 12) $end_time_hour += 12; ?>
@@ -294,66 +294,66 @@ $this->factory->params('footer', $javascript);
294
  <?php endfor; ?>
295
  </select>
296
  <select name="mec[date][end][ampm]" id="mec_end_ampm">
297
- <option <?php if($end_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'mec'); ?></option>
298
- <option <?php if($end_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'mec'); ?></option>
299
  </select>
300
  <?php endif; ?>
301
  </div>
302
  </div>
303
  <div class="mec-form-row">
304
- <input <?php if($allday == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][allday]" id="mec_allday" value="1" onchange="jQuery('.mec-time-picker').toggle();" /><label for="mec_allday"><?php _e('All Day Event', 'mec'); ?></label>
305
  </div>
306
  <div class="mec-form-row">
307
- <input <?php if($hide_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_time]" id="mec_hide_time" value="1" /><label for="mec_hide_time"><?php _e('Hide Event Time', 'mec'); ?></label>
308
  </div>
309
  <div class="mec-form-row">
310
- <input <?php if($hide_end_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_end_time]" id="mec_hide_end_time" value="1" /><label for="mec_hide_end_time"><?php _e('Hide Event End Time', 'mec'); ?></label>
311
  </div>
312
  <div class="mec-form-row">
313
  <div class="mec-col-4">
314
- <input type="text" class="" name="mec[date][comment]" id="mec_comment" placeholder="<?php _e('Time Comment', 'mec'); ?>" value="<?php echo esc_attr($comment); ?>" />
315
- <p class="description"><?php _e('It shows next to event time on calendar. You can insert Timezone etc. in this field.', 'mec'); ?></p>
316
  </div>
317
  </div>
318
  </div>
319
  <div id="mec_meta_box_repeat_form">
320
  <div class="mec-form-row">
321
- <input <?php if($repeat_status == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][repeat][status]" id="mec_repeat" value="1" /><label for="mec_repeat"><?php _e('Event Repeating', 'mec'); ?></label>
322
  </div>
323
  <div class="mec-form-repeating-event-row">
324
  <div class="mec-form-row">
325
- <label class="mec-col-3" for="mec_repeat_type"><?php _e('Repeats', 'mec'); ?></label>
326
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
327
- <option <?php if($repeat_type == 'daily') echo 'selected="selected"'; ?> value="daily"><?php _e('Daily', 'mec'); ?></option>
328
- <option <?php if($repeat_type == 'weekday') echo 'selected="selected"'; ?> value="weekday"><?php _e('Every Weekday', 'mec'); ?></option>
329
- <option <?php if($repeat_type == 'weekend') echo 'selected="selected"'; ?> value="weekend"><?php _e('Every Weekend', 'mec'); ?></option>
330
- <option <?php if($repeat_type == 'certain_weekdays') echo 'selected="selected"'; ?> value="certain_weekdays"><?php _e('Certain Weekdays', 'mec'); ?></option>
331
- <option <?php if($repeat_type == 'weekly') echo 'selected="selected"'; ?> value="weekly"><?php _e('Weekly', 'mec'); ?></option>
332
- <option <?php if($repeat_type == 'monthly') echo 'selected="selected"'; ?> value="monthly"><?php _e('Monthly', 'mec'); ?></option>
333
- <option <?php if($repeat_type == 'yearly') echo 'selected="selected"'; ?> value="yearly"><?php _e('Yearly', 'mec'); ?></option>
334
- <option <?php if($repeat_type == 'custom_days') echo 'selected="selected"'; ?> value="custom_days"><?php _e('Custom Days', 'mec'); ?></option>
335
  </select>
336
  </div>
337
  <div class="mec-form-row" id="mec_repeat_interval_container">
338
- <label class="mec-col-3" for="mec_repeat_interval"><?php _e('Repeat Interval', 'mec'); ?></label>
339
- <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval" placeholder="<?php _e('Repeat interval', 'mec'); ?>" value="<?php echo ($repeat_type == 'weekly' ? ($repeat_interval/7) : $repeat_interval); ?>" />
340
  </div>
341
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
342
- <label class="mec-col-3"><?php _e('Week Days', 'mec'); ?></label>
343
- <label><input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="1" <?php echo (in_array(1, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Monday', 'mec'); ?></label>
344
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="2" <?php echo (in_array(2, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Tuesday', 'mec'); ?></label>
345
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="3" <?php echo (in_array(3, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Wednesday', 'mec'); ?></label>
346
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="4" <?php echo (in_array(4, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Thursday', 'mec'); ?></label>
347
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="5" <?php echo (in_array(5, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Friday', 'mec'); ?></label>
348
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="6" <?php echo (in_array(6, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Saturday', 'mec'); ?></label>
349
- <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="7" <?php echo (in_array(7, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Sunday', 'mec'); ?></label>
350
  </div>
351
  <div class="mec-form-row" id="mec_exceptions_in_days_container">
352
  <div class="mec-form-row">
353
  <div class="mec-col-4">
354
- <input type="text" id="mec_exceptions_in_days_date" value="" placeholder="<?php _e('Date', 'mec'); ?>" class="mec_date_picker" />
355
- <button class="button" type="button" id="mec_add_in_days"><?php _e('Add', 'mec'); ?></button>
356
- <p class="description"><?php _e('Add certain days to event occurrence dates.', 'mec'); ?></p>
357
  </div>
358
  </div>
359
  <div class="mec-form-row" id="mec_in_days">
@@ -375,26 +375,26 @@ $this->factory->params('footer', $javascript);
375
  </div>
376
  </div>
377
  <div class="mec-form-row">
378
- <label for="mec_repeat_ends_never"><h5 class="mec-title"><?php _e('Ends Repeat', 'mec'); ?></h5></label>
379
  </div>
380
  <div class="mec-form-row">
381
  <input <?php if($mec_repeat_end == 'never') echo 'checked="checked"'; ?> type="radio" value="never" name="mec[date][repeat][end]" id="mec_repeat_ends_never" />
382
- <label for="mec_repeat_ends_never"><?php _e('Never', 'mec'); ?></label>
383
  </div>
384
  <div class="mec-form-row">
385
  <div class="mec-col-3">
386
  <input <?php if($mec_repeat_end == 'date') echo 'checked="checked"'; ?> type="radio" value="date" name="mec[date][repeat][end]" id="mec_repeat_ends_date" />
387
- <label for="mec_repeat_ends_date"><?php _e('On', 'mec'); ?></label>
388
  </div>
389
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]" id="mec_date_repeat_end_at_date" value="<?php echo esc_attr($repeat_end_at_date); ?>" />
390
  </div>
391
  <div class="mec-form-row">
392
  <div class="mec-col-3">
393
  <input <?php if($mec_repeat_end == 'occurrences') echo 'checked="checked"'; ?> type="radio" value="occurrences" name="mec[date][repeat][end]" id="mec_repeat_ends_occurrences" />
394
- <label for="mec_repeat_ends_occurrences"><?php _e('After', 'mec'); ?></label>
395
  </div>
396
- <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]" id="mec_date_repeat_end_at_occurrences" placeholder="<?php _e('Occurrences times', 'mec'); ?>" value="<?php echo esc_attr(($repeat_end_at_occurrences+1)); ?>" />
397
- <a class="mec-tooltip" title="<?php esc_attr_e('The event will finish after certain repeats. For example if you set it to 10, the event will finish after 10 repeats.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
398
  </div>
399
  </div>
400
  </div>
@@ -404,7 +404,7 @@ $this->factory->params('footer', $javascript);
404
 
405
  <?php /* Note feature is enabled */ if($this->main->is_note_visible(get_post_status($post_id))): $note = get_post_meta($post_id, 'mec_note', true); ?>
406
  <div class="mec-meta-box-fields" id="mec-event-note">
407
- <h4><?php _e('Note to reviewer', 'mec'); ?></h4>
408
  <div id="mec_meta_box_event_note">
409
  <textarea name="mec[note]"><?php echo $note; ?></textarea>
410
  </div>
@@ -413,7 +413,7 @@ $this->factory->params('footer', $javascript);
413
 
414
  <div class="mec-form-row mec-fes-submit-wide">
415
  <?php if($this->main->get_recaptcha_status('fes')): ?><div class="mec-form-row mec-google-recaptcha"><div class="g-recaptcha" data-sitekey="<?php echo $this->settings['google_recaptcha_sitekey']; ?>"></div></div><?php endif; ?>
416
- <button class="mec-fes-sub-button" type="submit"><?php _e('Submit', 'mec'); ?></button>
417
  <div class="mec-util-hidden">
418
  <input type="hidden" name="mec[post_id]" value="<?php echo $post_id; ?>" id="mec_fes_post_id" class="mec-fes-post-id" />
419
  <input type="hidden" name="action" value="mec_fes_form" />
@@ -432,14 +432,14 @@ $this->factory->params('footer', $javascript);
432
  $guest_name = get_post_meta($post_id, 'fes_guest_name', true);
433
  ?>
434
  <div class="mec-meta-box-fields" id="mec-guest-email-link">
435
- <h4><?php _e('User Data', 'mec'); ?></h4>
436
  <div class="mec-form-row">
437
- <label class="mec-col-2" for="mec_guest_email"><?php _e('Email', 'mec'); ?></label>
438
- <input class="mec-col-7" type="email" required="required" name="mec[fes_guest_email]" id="mec_guest_email" value="<?php echo esc_attr($guest_email); ?>" placeholder="<?php _e('eg. yourname@gmail.com', 'mec'); ?>" />
439
  </div>
440
  <div class="mec-form-row">
441
- <label class="mec-col-2" for="mec_guest_name"><?php _e('Name', 'mec'); ?></label>
442
- <input class="mec-col-7" type="text" required="required" name="mec[fes_guest_name]" id="mec_guest_name" value="<?php echo esc_attr($guest_name); ?>" placeholder="<?php _e('eg. John Smith', 'mec'); ?>" />
443
  </div>
444
  </div>
445
  <?php endif; ?>
@@ -453,21 +453,21 @@ $this->factory->params('footer', $javascript);
453
  $more_info_target = get_post_meta($post_id, 'mec_more_info_target', true);
454
  ?>
455
  <div class="mec-meta-box-fields" id="mec-event-links">
456
- <h4><?php _e('Event Links', 'mec'); ?></h4>
457
  <div class="mec-form-row">
458
- <label class="mec-col-2" for="mec_read_more_link"><?php echo $this->main->m('read_more_link', __('Event Link', 'mec')); ?></label>
459
- <input class="mec-col-7" type="text" name="mec[read_more]" id="mec_read_more_link" value="<?php echo esc_attr($read_more); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'mec'); ?>" />
460
- <p class="description"><?php _e('If you fill it, it will be replaced instead of default event page link. Insert full link including http(s)://', 'mec'); ?></p>
461
  </div>
462
  <div class="mec-form-row">
463
- <label class="mec-col-2" for="mec_more_info_link"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></label>
464
- <input class="mec-col-5" type="text" name="mec[more_info]" id="mec_more_info_link" value="<?php echo esc_attr($more_info); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'mec'); ?>" />
465
- <input class="mec-col-2" type="text" name="mec[more_info_title]" id="mec_more_info_title" value="<?php echo esc_attr($more_info_title); ?>" placeholder="<?php _e('More Information', 'mec'); ?>" />
466
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
467
- <option value="_self" <?php echo ($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php _e('Current Window', 'mec'); ?></option>
468
- <option value="_blank" <?php echo ($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php _e('New Window', 'mec'); ?></option>
469
  </select>
470
- <p class="description"><?php _e('If you fill it, it will be shown in event details page as an optional link. Insert full link including http(s)://', 'mec'); ?></p>
471
  </div>
472
  </div>
473
  <?php endif; ?>
@@ -476,10 +476,10 @@ $this->factory->params('footer', $javascript);
476
  <?php if(!isset($this->settings['fes_section_cost']) or (isset($this->settings['fes_section_cost']) and $this->settings['fes_section_cost'])): ?>
477
  <?php $cost = get_post_meta($post_id, 'mec_cost', true); ?>
478
  <div class="mec-meta-box-fields" id="mec-event-cost">
479
- <h4><?php echo $this->main->m('event_cost', __('Event Cost', 'mec')); ?></h4>
480
  <div id="mec_meta_box_cost_form">
481
  <div class="mec-form-row">
482
- <input type="text" class="mec-col-6" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" placeholder="<?php _e('Cost', 'mec'); ?>" />
483
  </div>
484
  </div>
485
  </div>
@@ -493,12 +493,12 @@ $this->factory->params('footer', $javascript);
493
  if(isset($featured_image[0])) $featured_image = $featured_image[0];
494
  ?>
495
  <div class="mec-meta-box-fields" id="mec-featured-image">
496
- <h4><?php _e('Featured Image', 'mec'); ?></h4>
497
  <div class="mec-form-row">
498
  <span id="mec_fes_thumbnail_img"><?php echo (trim($featured_image) ? '<img src="'.$featured_image.'" />' : ''); ?></span>
499
  <input type="hidden" id="mec_fes_thumbnail" name="mec[featured_image]" value="<?php echo (trim($featured_image) ? $featured_image : ''); ?>" />
500
  <input type="file" id="mec_featured_image_file" onchange="mec_fes_upload_featured_image();" />
501
- <span id="mec_fes_remove_image_button" class="<?php echo (trim($featured_image) ? '' : 'mec-util-hidden'); ?>"><?php _e('Remove Image', 'mec'); ?></span>
502
  </div>
503
  </div>
504
  <?php endif; ?>
@@ -515,7 +515,7 @@ $this->factory->params('footer', $javascript);
515
  ?>
516
  <?php if(count($category_terms)): ?>
517
  <div class="mec-meta-box-fields" id="mec-categories">
518
- <h4><?php echo $this->main->m('taxonomy_categories', __('Categories', 'mec')); ?></h4>
519
  <div class="mec-form-row">
520
  <?php foreach($category_terms as $category_term): ?>
521
  <label for="mec_fes_categories<?php echo $category_term->term_id; ?>">
@@ -540,7 +540,7 @@ $this->factory->params('footer', $javascript);
540
  ?>
541
  <?php if(count($label_terms)): ?>
542
  <div class="mec-meta-box-fields" id="mec-labels">
543
- <h4><?php echo $this->main->m('taxonomy_labels', __('Labels', 'mec')); ?></h4>
544
  <div class="mec-form-row">
545
  <?php foreach($label_terms as $label_term): ?>
546
  <label for="mec_fes_labels<?php echo $label_term->term_id; ?>">
@@ -563,7 +563,7 @@ $this->factory->params('footer', $javascript);
563
  ?>
564
  <?php if(count($available_colors)): ?>
565
  <div class="mec-meta-box-fields" id="mec-event-color">
566
- <h4><?php _e('Event Color', 'mec'); ?></h4>
567
  <div class="mec-form-row">
568
  <div class="mec-form-row mec-available-color-row">
569
  <input type="hidden" id="mec_event_color" name="mec[color]" value="#<?php echo $color; ?>" />
@@ -585,15 +585,15 @@ $this->factory->params('footer', $javascript);
585
  foreach($post_tags as $post_tag) $tags .= $post_tag->name.',';
586
  ?>
587
  <div class="mec-meta-box-fields" id="mec-tags">
588
- <h4><?php _e('Tags', 'mec'); ?></h4>
589
  <div class="mec-form-row">
590
- <textarea name="mec[tags]" id="mec_fes_tags" placeholder="<?php esc_attr_e('Insert your desired tags, comma separated.', 'mec'); ?>"><?php echo (trim($tags) ? trim($tags, ', ') : ''); ?></textarea>
591
  </div>
592
  </div>
593
  <?php endif; ?>
594
  <div class="mec-form-row mec-fes-submit-mobile">
595
  <?php if($this->main->get_recaptcha_status('fes')): ?><div class="mec-form-row mec-google-recaptcha"><div class="g-recaptcha" data-sitekey="<?php echo $this->settings['google_recaptcha_sitekey']; ?>"></div></div><?php endif; ?>
596
- <button class="mec-fes-sub-button" type="submit"><?php _e('Submit', 'mec'); ?></button>
597
  <div class="mec-util-hidden">
598
  <input type="hidden" name="mec[post_id]" value="<?php echo $post_id; ?>" id="mec_fes_post_id" class="mec-fes-post-id" />
599
  <input type="hidden" name="action" value="mec_fes_form" />
154
  <div class="mec-fes-form">
155
  <?php if(is_user_logged_in()): ?>
156
  <div class="mec-fes-form-top-actions">
157
+ <a href="<?php echo $this->link_list_events(); ?>"><?php echo __('Go back to events list.', 'modern-events-calendar-lite'); ?></a>
158
  </div>
159
  <?php endif; ?>
160
 
211
 
212
  <div class="mec-fes-form-cntt">
213
  <div class="mec-form-row">
214
+ <label for="mec_fes_title"><?php _e('Title', 'modern-events-calendar-lite'); ?></label>
215
  <input type="text" name="mec[title]" id="mec_fes_title" value="<?php echo (isset($post->post_title) ? $post->post_title : ''); ?>" required="required" />
216
  </div>
217
  <div class="mec-form-row">
218
  <?php wp_editor((isset($post->post_content) ? $post->post_content : ''), 'mec_fes_content', array('textarea_name'=>'mec[content]')); ?>
219
  </div>
220
  <div class="mec-meta-box-fields" id="mec-date-time">
221
+ <h4><?php _e('Date and Time', 'modern-events-calendar-lite'); ?></h4>
222
  <div id="mec_meta_box_date_form">
223
  <div class="mec-title">
224
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
225
+ <label for="mec_start_date"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
226
  </div>
227
  <div class="mec-form-row">
228
  <div class="mec-col-4">
229
+ <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($start_date); ?>" placeholder="<?php _e('Start Date', 'modern-events-calendar-lite'); ?>" class="" />
230
  </div>
231
  <div class="mec-col-6 mec-time-picker">
232
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($start_time_ampm == 'PM' and $start_time_hour != 12) $start_time_hour += 12; if($start_time_ampm == 'AM' and $start_time_hour == 12) $start_time_hour += 12; ?>
254
  <?php endfor; ?>
255
  </select>
256
  <select name="mec[date][start][ampm]" id="mec_start_ampm">
257
+ <option <?php if($start_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'modern-events-calendar-lite'); ?></option>
258
+ <option <?php if($start_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'modern-events-calendar-lite'); ?></option>
259
  </select>
260
  <?php endif; ?>
261
  </div>
262
  </div>
263
  <div class="mec-title">
264
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
265
+ <label for="mec_end_date"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
266
  </div>
267
  <div class="mec-form-row">
268
  <div class="mec-col-4">
269
+ <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($end_date); ?>" placeholder="<?php _e('End Date', 'modern-events-calendar-lite'); ?>" class="" />
270
  </div>
271
  <div class="mec-col-6 mec-time-picker">
272
  <?php if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24): if($end_time_ampm == 'PM' and $end_time_hour != 12) $end_time_hour += 12; if($end_time_ampm == 'AM' and $end_time_hour == 12) $end_time_hour += 12; ?>
294
  <?php endfor; ?>
295
  </select>
296
  <select name="mec[date][end][ampm]" id="mec_end_ampm">
297
+ <option <?php if($end_time_ampm == 'AM') echo 'selected="selected"'; ?> value="AM"><?php _e('AM', 'modern-events-calendar-lite'); ?></option>
298
+ <option <?php if($end_time_ampm == 'PM') echo 'selected="selected"'; ?> value="PM"><?php _e('PM', 'modern-events-calendar-lite'); ?></option>
299
  </select>
300
  <?php endif; ?>
301
  </div>
302
  </div>
303
  <div class="mec-form-row">
304
+ <input <?php if($allday == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][allday]" id="mec_allday" value="1" onchange="jQuery('.mec-time-picker').toggle();" /><label for="mec_allday"><?php _e('All Day Event', 'modern-events-calendar-lite'); ?></label>
305
  </div>
306
  <div class="mec-form-row">
307
+ <input <?php if($hide_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_time]" id="mec_hide_time" value="1" /><label for="mec_hide_time"><?php _e('Hide Event Time', 'modern-events-calendar-lite'); ?></label>
308
  </div>
309
  <div class="mec-form-row">
310
+ <input <?php if($hide_end_time == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][hide_end_time]" id="mec_hide_end_time" value="1" /><label for="mec_hide_end_time"><?php _e('Hide Event End Time', 'modern-events-calendar-lite'); ?></label>
311
  </div>
312
  <div class="mec-form-row">
313
  <div class="mec-col-4">
314
+ <input type="text" class="" name="mec[date][comment]" id="mec_comment" placeholder="<?php _e('Time Comment', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($comment); ?>" />
315
+ <p class="description"><?php _e('It shows next to event time on calendar. You can insert Timezone etc. in this field.', 'modern-events-calendar-lite'); ?></p>
316
  </div>
317
  </div>
318
  </div>
319
  <div id="mec_meta_box_repeat_form">
320
  <div class="mec-form-row">
321
+ <input <?php if($repeat_status == '1') echo 'checked="checked"'; ?> type="checkbox" name="mec[date][repeat][status]" id="mec_repeat" value="1" /><label for="mec_repeat"><?php _e('Event Repeating', 'modern-events-calendar-lite'); ?></label>
322
  </div>
323
  <div class="mec-form-repeating-event-row">
324
  <div class="mec-form-row">
325
+ <label class="mec-col-3" for="mec_repeat_type"><?php _e('Repeats', 'modern-events-calendar-lite'); ?></label>
326
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
327
+ <option <?php if($repeat_type == 'daily') echo 'selected="selected"'; ?> value="daily"><?php _e('Daily', 'modern-events-calendar-lite'); ?></option>
328
+ <option <?php if($repeat_type == 'weekday') echo 'selected="selected"'; ?> value="weekday"><?php _e('Every Weekday', 'modern-events-calendar-lite'); ?></option>
329
+ <option <?php if($repeat_type == 'weekend') echo 'selected="selected"'; ?> value="weekend"><?php _e('Every Weekend', 'modern-events-calendar-lite'); ?></option>
330
+ <option <?php if($repeat_type == 'certain_weekdays') echo 'selected="selected"'; ?> value="certain_weekdays"><?php _e('Certain Weekdays', 'modern-events-calendar-lite'); ?></option>
331
+ <option <?php if($repeat_type == 'weekly') echo 'selected="selected"'; ?> value="weekly"><?php _e('Weekly', 'modern-events-calendar-lite'); ?></option>
332
+ <option <?php if($repeat_type == 'monthly') echo 'selected="selected"'; ?> value="monthly"><?php _e('Monthly', 'modern-events-calendar-lite'); ?></option>
333
+ <option <?php if($repeat_type == 'yearly') echo 'selected="selected"'; ?> value="yearly"><?php _e('Yearly', 'modern-events-calendar-lite'); ?></option>
334
+ <option <?php if($repeat_type == 'custom_days') echo 'selected="selected"'; ?> value="custom_days"><?php _e('Custom Days', 'modern-events-calendar-lite'); ?></option>
335
  </select>
336
  </div>
337
  <div class="mec-form-row" id="mec_repeat_interval_container">
338
+ <label class="mec-col-3" for="mec_repeat_interval"><?php _e('Repeat Interval', 'modern-events-calendar-lite'); ?></label>
339
+ <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval" placeholder="<?php _e('Repeat interval', 'modern-events-calendar-lite'); ?>" value="<?php echo ($repeat_type == 'weekly' ? ($repeat_interval/7) : $repeat_interval); ?>" />
340
  </div>
341
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
342
+ <label class="mec-col-3"><?php _e('Week Days', 'modern-events-calendar-lite'); ?></label>
343
+ <label><input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="1" <?php echo (in_array(1, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Monday', 'modern-events-calendar-lite'); ?></label>
344
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="2" <?php echo (in_array(2, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Tuesday', 'modern-events-calendar-lite'); ?></label>
345
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="3" <?php echo (in_array(3, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Wednesday', 'modern-events-calendar-lite'); ?></label>
346
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="4" <?php echo (in_array(4, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Thursday', 'modern-events-calendar-lite'); ?></label>
347
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="5" <?php echo (in_array(5, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Friday', 'modern-events-calendar-lite'); ?></label>
348
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="6" <?php echo (in_array(6, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Saturday', 'modern-events-calendar-lite'); ?></label>
349
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="7" <?php echo (in_array(7, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php _e('Sunday', 'modern-events-calendar-lite'); ?></label>
350
  </div>
351
  <div class="mec-form-row" id="mec_exceptions_in_days_container">
352
  <div class="mec-form-row">
353
  <div class="mec-col-4">
354
+ <input type="text" id="mec_exceptions_in_days_date" value="" placeholder="<?php _e('Date', 'modern-events-calendar-lite'); ?>" class="mec_date_picker" />
355
+ <button class="button" type="button" id="mec_add_in_days"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
356
+ <p class="description"><?php _e('Add certain days to event occurrence dates.', 'modern-events-calendar-lite'); ?></p>
357
  </div>
358
  </div>
359
  <div class="mec-form-row" id="mec_in_days">
375
  </div>
376
  </div>
377
  <div class="mec-form-row">
378
+ <label for="mec_repeat_ends_never"><h5 class="mec-title"><?php _e('Ends Repeat', 'modern-events-calendar-lite'); ?></h5></label>
379
  </div>
380
  <div class="mec-form-row">
381
  <input <?php if($mec_repeat_end == 'never') echo 'checked="checked"'; ?> type="radio" value="never" name="mec[date][repeat][end]" id="mec_repeat_ends_never" />
382
+ <label for="mec_repeat_ends_never"><?php _e('Never', 'modern-events-calendar-lite'); ?></label>
383
  </div>
384
  <div class="mec-form-row">
385
  <div class="mec-col-3">
386
  <input <?php if($mec_repeat_end == 'date') echo 'checked="checked"'; ?> type="radio" value="date" name="mec[date][repeat][end]" id="mec_repeat_ends_date" />
387
+ <label for="mec_repeat_ends_date"><?php _e('On', 'modern-events-calendar-lite'); ?></label>
388
  </div>
389
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]" id="mec_date_repeat_end_at_date" value="<?php echo esc_attr($repeat_end_at_date); ?>" />
390
  </div>
391
  <div class="mec-form-row">
392
  <div class="mec-col-3">
393
  <input <?php if($mec_repeat_end == 'occurrences') echo 'checked="checked"'; ?> type="radio" value="occurrences" name="mec[date][repeat][end]" id="mec_repeat_ends_occurrences" />
394
+ <label for="mec_repeat_ends_occurrences"><?php _e('After', 'modern-events-calendar-lite'); ?></label>
395
  </div>
396
+ <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]" id="mec_date_repeat_end_at_occurrences" placeholder="<?php _e('Occurrences times', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr(($repeat_end_at_occurrences+1)); ?>" />
397
+ <a class="mec-tooltip" title="<?php esc_attr_e('The event will finish after certain repeats. For example if you set it to 10, the event will finish after 10 repeats.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
398
  </div>
399
  </div>
400
  </div>
404
 
405
  <?php /* Note feature is enabled */ if($this->main->is_note_visible(get_post_status($post_id))): $note = get_post_meta($post_id, 'mec_note', true); ?>
406
  <div class="mec-meta-box-fields" id="mec-event-note">
407
+ <h4><?php _e('Note to reviewer', 'modern-events-calendar-lite'); ?></h4>
408
  <div id="mec_meta_box_event_note">
409
  <textarea name="mec[note]"><?php echo $note; ?></textarea>
410
  </div>
413
 
414
  <div class="mec-form-row mec-fes-submit-wide">
415
  <?php if($this->main->get_recaptcha_status('fes')): ?><div class="mec-form-row mec-google-recaptcha"><div class="g-recaptcha" data-sitekey="<?php echo $this->settings['google_recaptcha_sitekey']; ?>"></div></div><?php endif; ?>
416
+ <button class="mec-fes-sub-button" type="submit"><?php _e('Submit', 'modern-events-calendar-lite'); ?></button>
417
  <div class="mec-util-hidden">
418
  <input type="hidden" name="mec[post_id]" value="<?php echo $post_id; ?>" id="mec_fes_post_id" class="mec-fes-post-id" />
419
  <input type="hidden" name="action" value="mec_fes_form" />
432
  $guest_name = get_post_meta($post_id, 'fes_guest_name', true);
433
  ?>
434
  <div class="mec-meta-box-fields" id="mec-guest-email-link">
435
+ <h4><?php _e('User Data', 'modern-events-calendar-lite'); ?></h4>
436
  <div class="mec-form-row">
437
+ <label class="mec-col-2" for="mec_guest_email"><?php _e('Email', 'modern-events-calendar-lite'); ?></label>
438
+ <input class="mec-col-7" type="email" required="required" name="mec[fes_guest_email]" id="mec_guest_email" value="<?php echo esc_attr($guest_email); ?>" placeholder="<?php _e('eg. yourname@gmail.com', 'modern-events-calendar-lite'); ?>" />
439
  </div>
440
  <div class="mec-form-row">
441
+ <label class="mec-col-2" for="mec_guest_name"><?php _e('Name', 'modern-events-calendar-lite'); ?></label>
442
+ <input class="mec-col-7" type="text" required="required" name="mec[fes_guest_name]" id="mec_guest_name" value="<?php echo esc_attr($guest_name); ?>" placeholder="<?php _e('eg. John Smith', 'modern-events-calendar-lite'); ?>" />
443
  </div>
444
  </div>
445
  <?php endif; ?>
453
  $more_info_target = get_post_meta($post_id, 'mec_more_info_target', true);
454
  ?>
455
  <div class="mec-meta-box-fields" id="mec-event-links">
456
+ <h4><?php _e('Event Links', 'modern-events-calendar-lite'); ?></h4>
457
  <div class="mec-form-row">
458
+ <label class="mec-col-2" for="mec_read_more_link"><?php echo $this->main->m('read_more_link', __('Event Link', 'modern-events-calendar-lite')); ?></label>
459
+ <input class="mec-col-7" type="text" name="mec[read_more]" id="mec_read_more_link" value="<?php echo esc_attr($read_more); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>" />
460
+ <p class="description"><?php _e('If you fill it, it will be replaced instead of default event page link. Insert full link including http(s)://', 'modern-events-calendar-lite'); ?></p>
461
  </div>
462
  <div class="mec-form-row">
463
+ <label class="mec-col-2" for="mec_more_info_link"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></label>
464
+ <input class="mec-col-5" type="text" name="mec[more_info]" id="mec_more_info_link" value="<?php echo esc_attr($more_info); ?>" placeholder="<?php _e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>" />
465
+ <input class="mec-col-2" type="text" name="mec[more_info_title]" id="mec_more_info_title" value="<?php echo esc_attr($more_info_title); ?>" placeholder="<?php _e('More Information', 'modern-events-calendar-lite'); ?>" />
466
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
467
+ <option value="_self" <?php echo ($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php _e('Current Window', 'modern-events-calendar-lite'); ?></option>
468
+ <option value="_blank" <?php echo ($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php _e('New Window', 'modern-events-calendar-lite'); ?></option>
469
  </select>
470
+ <p class="description"><?php _e('If you fill it, it will be shown in event details page as an optional link. Insert full link including http(s)://', 'modern-events-calendar-lite'); ?></p>
471
  </div>
472
  </div>
473
  <?php endif; ?>
476
  <?php if(!isset($this->settings['fes_section_cost']) or (isset($this->settings['fes_section_cost']) and $this->settings['fes_section_cost'])): ?>
477
  <?php $cost = get_post_meta($post_id, 'mec_cost', true); ?>
478
  <div class="mec-meta-box-fields" id="mec-event-cost">
479
+ <h4><?php echo $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')); ?></h4>
480
  <div id="mec_meta_box_cost_form">
481
  <div class="mec-form-row">
482
+ <input type="text" class="mec-col-6" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" placeholder="<?php _e('Cost', 'modern-events-calendar-lite'); ?>" />
483
  </div>
484
  </div>
485
  </div>
493
  if(isset($featured_image[0])) $featured_image = $featured_image[0];
494
  ?>
495
  <div class="mec-meta-box-fields" id="mec-featured-image">
496
+ <h4><?php _e('Featured Image', 'modern-events-calendar-lite'); ?></h4>
497
  <div class="mec-form-row">
498
  <span id="mec_fes_thumbnail_img"><?php echo (trim($featured_image) ? '<img src="'.$featured_image.'" />' : ''); ?></span>
499
  <input type="hidden" id="mec_fes_thumbnail" name="mec[featured_image]" value="<?php echo (trim($featured_image) ? $featured_image : ''); ?>" />
500
  <input type="file" id="mec_featured_image_file" onchange="mec_fes_upload_featured_image();" />
501
+ <span id="mec_fes_remove_image_button" class="<?php echo (trim($featured_image) ? '' : 'mec-util-hidden'); ?>"><?php _e('Remove Image', 'modern-events-calendar-lite'); ?></span>
502
  </div>
503
  </div>
504
  <?php endif; ?>
515
  ?>
516
  <?php if(count($category_terms)): ?>
517
  <div class="mec-meta-box-fields" id="mec-categories">
518
+ <h4><?php echo $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite')); ?></h4>
519
  <div class="mec-form-row">
520
  <?php foreach($category_terms as $category_term): ?>
521
  <label for="mec_fes_categories<?php echo $category_term->term_id; ?>">
540
  ?>
541
  <?php if(count($label_terms)): ?>
542
  <div class="mec-meta-box-fields" id="mec-labels">
543
+ <h4><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h4>
544
  <div class="mec-form-row">
545
  <?php foreach($label_terms as $label_term): ?>
546
  <label for="mec_fes_labels<?php echo $label_term->term_id; ?>">
563
  ?>
564
  <?php if(count($available_colors)): ?>
565
  <div class="mec-meta-box-fields" id="mec-event-color">
566
+ <h4><?php _e('Event Color', 'modern-events-calendar-lite'); ?></h4>
567
  <div class="mec-form-row">
568
  <div class="mec-form-row mec-available-color-row">
569
  <input type="hidden" id="mec_event_color" name="mec[color]" value="#<?php echo $color; ?>" />
585
  foreach($post_tags as $post_tag) $tags .= $post_tag->name.',';
586
  ?>
587
  <div class="mec-meta-box-fields" id="mec-tags">
588
+ <h4><?php _e('Tags', 'modern-events-calendar-lite'); ?></h4>
589
  <div class="mec-form-row">
590
+ <textarea name="mec[tags]" id="mec_fes_tags" placeholder="<?php esc_attr_e('Insert your desired tags, comma separated.', 'modern-events-calendar-lite'); ?>"><?php echo (trim($tags) ? trim($tags, ', ') : ''); ?></textarea>
591
  </div>
592
  </div>
593
  <?php endif; ?>
594
  <div class="mec-form-row mec-fes-submit-mobile">
595
  <?php if($this->main->get_recaptcha_status('fes')): ?><div class="mec-form-row mec-google-recaptcha"><div class="g-recaptcha" data-sitekey="<?php echo $this->settings['google_recaptcha_sitekey']; ?>"></div></div><?php endif; ?>
596
+ <button class="mec-fes-sub-button" type="submit"><?php _e('Submit', 'modern-events-calendar-lite'); ?></button>
597
  <div class="mec-util-hidden">
598
  <input type="hidden" name="mec[post_id]" value="<?php echo $post_id; ?>" id="mec_fes_post_id" class="mec-fes-post-id" />
599
  <input type="hidden" name="action" value="mec_fes_form" />
app/features/fes/list.php CHANGED
@@ -18,7 +18,7 @@ jQuery(document).ready(function()
18
  {
19
  jQuery(this).data("confirmed", "1");
20
  jQuery(this).addClass("mec-fes-waiting");
21
- jQuery(this).text("'.esc_attr__('Click again to remove!', 'mec').'");
22
 
23
  return false;
24
  }
@@ -61,20 +61,20 @@ $this->factory->params('footer', $javascript);
61
  <div class="mec-fes-list">
62
  <?php if($query->have_posts()): ?>
63
  <div class="mec-fes-list-top-actions">
64
- <a href="<?php echo $this->link_add_event(); ?>"><?php echo __('Add new', 'mec'); ?></a>
65
  </div>
66
  <ul>
67
  <?php while($query->have_posts()): $query->the_post(); ?>
68
  <li id="mec_fes_event_<?php echo get_the_ID(); ?>">
69
  <span class="mec-event-title"><a href="<?php echo $this->link_edit_event(get_the_ID()); ?>"><?php the_title(); ?></a></span>
70
- <span class="mec-fes-event-view"><a href="<?php the_permalink(); ?>"><?php _e('View', 'mec'); ?></a></span>
71
  <?php if(current_user_can('delete_post', get_the_ID())): ?>
72
- <span class="mec-fes-event-remove" data-confirmed="0" data-id="<?php echo get_the_ID(); ?>"><?php _e('Remove', 'mec'); ?></span>
73
  <?php endif; ?>
74
  </li>
75
  <?php endwhile; wp_reset_postdata(); // Restore original Post Data ?>
76
  </ul>
77
  <?php else: ?>
78
- <p><?php echo sprintf(__('No events found! %s', 'mec'), '<a href="'.$this->link_add_event().'">'.__('Add new', 'mec').'</a>'); ?></p>
79
  <?php endif; ?>
80
  </div>
18
  {
19
  jQuery(this).data("confirmed", "1");
20
  jQuery(this).addClass("mec-fes-waiting");
21
+ jQuery(this).text("'.esc_attr__('Click again to remove!', 'modern-events-calendar-lite').'");
22
 
23
  return false;
24
  }
61
  <div class="mec-fes-list">
62
  <?php if($query->have_posts()): ?>
63
  <div class="mec-fes-list-top-actions">
64
+ <a href="<?php echo $this->link_add_event(); ?>"><?php echo __('Add new', 'modern-events-calendar-lite'); ?></a>
65
  </div>
66
  <ul>
67
  <?php while($query->have_posts()): $query->the_post(); ?>
68
  <li id="mec_fes_event_<?php echo get_the_ID(); ?>">
69
  <span class="mec-event-title"><a href="<?php echo $this->link_edit_event(get_the_ID()); ?>"><?php the_title(); ?></a></span>
70
+ <span class="mec-fes-event-view"><a href="<?php the_permalink(); ?>"><?php _e('View', 'modern-events-calendar-lite'); ?></a></span>
71
  <?php if(current_user_can('delete_post', get_the_ID())): ?>
72
+ <span class="mec-fes-event-remove" data-confirmed="0" data-id="<?php echo get_the_ID(); ?>"><?php _e('Remove', 'modern-events-calendar-lite'); ?></span>
73
  <?php endif; ?>
74
  </li>
75
  <?php endwhile; wp_reset_postdata(); // Restore original Post Data ?>
76
  </ul>
77
  <?php else: ?>
78
+ <p><?php echo sprintf(__('No events found! %s', 'modern-events-calendar-lite'), '<a href="'.$this->link_add_event().'">'.__('Add new', 'modern-events-calendar-lite').'</a>'); ?></p>
79
  <?php endif; ?>
80
  </div>
app/features/ix.php CHANGED
@@ -92,7 +92,7 @@ class MEC_feature_ix extends MEC_base
92
  */
93
  public function menus()
94
  {
95
- add_submenu_page('mec-intro', __('MEC - Import / Export', 'mec'), __('Import / Export', 'mec'), 'manage_options', 'MEC-ix', array($this, 'ix'));
96
  }
97
 
98
  /**
@@ -177,10 +177,10 @@ class MEC_feature_ix extends MEC_base
177
  $feed_file = $_FILES['feed'];
178
 
179
  // File is not uploaded
180
- if(!isset($feed_file['name']) or (isset($feed_file['name']) and trim($feed_file['name']) == '')) return array('success' => 0, 'message' => __('Please upload the feed file.', 'mec'));
181
 
182
  // File Type is not valid
183
- if(!isset($feed_file['type']) or (isset($feed_file['type']) and !in_array(strtolower($feed_file['type']), array('text/xml', 'text/calendar')))) return array('success' => 0, 'message' => __('The file type should be XML or ICS.', 'mec'));
184
 
185
  // Upload the File
186
  $upload_dir = wp_upload_dir();
@@ -189,7 +189,7 @@ class MEC_feature_ix extends MEC_base
189
  $uploaded = move_uploaded_file($feed_file['tmp_name'], $target_path);
190
 
191
  // Error on Upload
192
- if(!$uploaded) return array('success' => 0, 'message' => __("An error ocurred during the file upload! Please check permissions!", 'mec'));
193
 
194
  // Import
195
  do_action('mec_import_file', $target_path);
@@ -197,7 +197,7 @@ class MEC_feature_ix extends MEC_base
197
  // Delete File
198
  unlink($target_path);
199
 
200
- return array('success' => 1, 'message' => __('The events are imported successfully!', 'mec'));
201
  }
202
 
203
  public function import_do($feed)
@@ -735,7 +735,7 @@ class MEC_feature_ix extends MEC_base
735
  elseif($third_party == 'the-events-calendar' and class_exists('Tribe__Events__Main')) $post_type = 'tribe_events';
736
  elseif($third_party == 'weekly-class' and class_exists('WeeklyClass')) $post_type = 'class';
737
  elseif($third_party == 'calendarize-it' and class_exists('plugin_righthere_calendar')) $post_type = 'events';
738
- else return array('success'=>0, 'message'=>__("Third Party plugin is not installed and activated!", 'mec'));
739
 
740
  $events = get_posts(array(
741
  'posts_per_page' => -1,
@@ -760,7 +760,7 @@ class MEC_feature_ix extends MEC_base
760
  elseif($third_party == 'weekly-class') return $this->thirdparty_weekly_class_import_do();
761
  elseif($third_party == 'calendarize-it') return $this->thirdparty_calendarize_it_import_do();
762
 
763
- return array('success'=>0, 'message'=>__('Third Party plugin is invalid!', 'mec'));
764
  }
765
 
766
  public function thirdparty_eventon_import_do()
@@ -1905,7 +1905,7 @@ class MEC_feature_ix extends MEC_base
1905
  $start_date = isset($this->ix['google_import_start_date']) ? $this->ix['google_import_start_date'] : 'Today';
1906
  $end_date = (isset($this->ix['google_import_end_date']) and trim($this->ix['google_import_end_date'])) ? $this->ix['google_import_end_date'] : 'Tomorrow';
1907
 
1908
- if(!trim($api_key) or !trim($calendar_id)) return array('success'=>0, 'error'=>__('Both of API key and Calendar ID are required!', 'mec'));
1909
 
1910
  // Save options
1911
  $this->main->save_ix_options(array('google_import_api_key'=>$api_key, 'google_import_calendar_id'=>$calendar_id));
@@ -1958,12 +1958,12 @@ class MEC_feature_ix extends MEC_base
1958
  public function g_calendar_import_do()
1959
  {
1960
  $g_events = isset($_POST['g-events']) ? $_POST['g-events'] : array();
1961
- if(!count($g_events)) return array('success'=>0, 'error'=>__('Please select some events to import!', 'mec'));
1962
 
1963
  $api_key = isset($this->ix['google_import_api_key']) ? $this->ix['google_import_api_key'] : NULL;
1964
  $calendar_id = isset($this->ix['google_import_calendar_id']) ? $this->ix['google_import_calendar_id'] : NULL;
1965
 
1966
- if(!trim($api_key) or !trim($calendar_id)) return array('success'=>0, 'error'=>__('Both of API key and Calendar ID are required!', 'mec'));
1967
 
1968
  // Timezone
1969
  $timezone = $this->main->get_timezone();
@@ -2325,7 +2325,7 @@ class MEC_feature_ix extends MEC_base
2325
  header('Content-Type: text/csv; charset=utf-8');
2326
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
2327
 
2328
- $columns = array(__('ID', 'mec'), __('Title', 'mec'), __('Start Date', 'mec'), __('Start Time', 'mec'), __('End Date', 'mec'), __('End Time', 'mec'), __('Link', 'mec'), __('Location', 'mec'), __('Organizer', 'mec'), __('Organizer Tel', 'mec'), __('Organizer Email', 'mec'), $this->main->m('event_cost', __('Event Cost', 'mec')));
2329
 
2330
  $output = fopen('php://output', 'w');
2331
  fputcsv($output, $columns);
@@ -2366,7 +2366,7 @@ class MEC_feature_ix extends MEC_base
2366
  header('Content-Type: application/vnd.ms-excel; charset=utf-8');
2367
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
2368
 
2369
- $columns = array(__('ID', 'mec'), __('Title', 'mec'), __('Start Date', 'mec'), __('Start Time', 'mec'), __('End Date', 'mec'), __('End Time', 'mec'), __('Link', 'mec'), __('Location', 'mec'), __('Organizer', 'mec'), __('Organizer Tel', 'mec'), __('Organizer Email', 'mec'), $this->main->m('event_cost', __('Event Cost', 'mec')));
2370
 
2371
  $output = fopen('php://output', 'w');
2372
  fwrite($output, "sep=\t".PHP_EOL);
@@ -2447,7 +2447,7 @@ class MEC_feature_ix extends MEC_base
2447
  $calendar_id = isset($ix['google_export_calendar_id']) ? $ix['google_export_calendar_id'] : NULL;
2448
  $auth_url = '';
2449
 
2450
- if(!trim($client_id) or !trim($client_secret) or !trim($calendar_id)) $this->main->response(array('success'=>0, 'message'=>__('All of Client ID, Client Secret and Calendar ID are required!', 'mec')));
2451
 
2452
  // Save options
2453
  $this->main->save_ix_options(array('google_export_client_id'=>$client_id, 'google_export_client_secret'=>$client_secret, 'google_export_calendar_id'=>$calendar_id));
@@ -2470,7 +2470,7 @@ class MEC_feature_ix extends MEC_base
2470
  $this->main->response(array('success'=>0, 'message'=>$ex->getMessage()));
2471
  }
2472
 
2473
- $this->main->response(array('success'=>1, 'message'=>sprintf(__('All seems good! Please click %s for authenticating your app.', 'mec'), '<a href="'.$auth_url.'">here</a>')));
2474
  }
2475
 
2476
  public function g_calendar_export_get_token()
@@ -2524,7 +2524,7 @@ class MEC_feature_ix extends MEC_base
2524
  $refresh_token = isset($ix['google_export_refresh_token']) ? $ix['google_export_refresh_token'] : NULL;
2525
  $calendar_id = isset($ix['google_export_calendar_id']) ? $ix['google_export_calendar_id'] : NULL;
2526
 
2527
- if(!trim($client_id) or !trim($client_secret) or !trim($calendar_id)) $this->main->response(array('success'=>0, 'message'=>__('All of Client App, Client Secret and Calendar ID are required!', 'mec')));
2528
 
2529
  $client = new Google_Client();
2530
  $client->setApplicationName('Modern Events Calendar');
@@ -2719,9 +2719,9 @@ class MEC_feature_ix extends MEC_base
2719
  foreach($g_events_not_inserted as $g_event_not_inserted) $results .= '<li><strong>'.$g_event_not_inserted['title'].'</strong>: '.$g_event_not_inserted['message'].'</li>';
2720
  $results .= '<ul>';
2721
 
2722
- $message = (count($g_events_inserted) ? sprintf(__('%s events added to Google Calendar successfully.', 'mec'), '<strong>'.count($g_events_inserted).'</strong>') : '');
2723
- $message .= (count($g_events_updated) ? ' '.sprintf(__('%s previously added events get updated.', 'mec'), '<strong>'.count($g_events_updated).'</strong>') : '');
2724
- $message .= (count($g_events_not_inserted) ? ' '.sprintf(__('%s events failed to add for following reasons: %s', 'mec'), '<strong>'.count($g_events_not_inserted).'</strong>', $results) : '');
2725
 
2726
  $this->main->response(array('success'=>((count($g_events_inserted) or count($g_events_updated)) ? 1 : 0), 'message'=>trim($message)));
2727
  }
@@ -2751,7 +2751,7 @@ class MEC_feature_ix extends MEC_base
2751
  public function f_calendar_import_start()
2752
  {
2753
  $fb_page_link = isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : NULL;
2754
- if(!trim($fb_page_link)) return array('success'=>0, 'message'=>__("Please insert your facebook page's link.", 'mec'));
2755
 
2756
  // Save options
2757
  $this->main->save_ix_options(array('facebook_import_page_link'=>$fb_page_link));
@@ -2759,7 +2759,7 @@ class MEC_feature_ix extends MEC_base
2759
  $fb_page = $this->f_calendar_import_get_page($fb_page_link);
2760
 
2761
  $fb_page_id = isset($fb_page['id']) ? $fb_page['id'] : 0;
2762
- if(!$fb_page_id) return array('success'=>0, 'message'=>__("We couldn't recognize your Facebook page. Please check it and provide us a valid facebook page link.", 'mec'));
2763
 
2764
  $events = array();
2765
  $next_page = 'https://graph.facebook.com/v2.8/'.$fb_page_id.'/events/?access_token='.$this->fb_access_token;
@@ -2781,22 +2781,22 @@ class MEC_feature_ix extends MEC_base
2781
  }
2782
  while($next_page);
2783
 
2784
- if(!count($events)) return array('success'=>0, 'message'=>__("No events found!", 'mec'));
2785
  else return array('success'=>1, 'message'=>'', 'data'=>array('events'=>$events, 'count'=>count($events), 'name'=>$fb_page['name']));
2786
  }
2787
 
2788
  public function f_calendar_import_do()
2789
  {
2790
  $f_events = isset($_POST['f-events']) ? $_POST['f-events'] : array();
2791
- if(!count($f_events)) return array('success'=>0, 'message'=>__('Please select some events to import!', 'mec'));
2792
 
2793
  $fb_page_link = isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : NULL;
2794
- if(!trim($fb_page_link)) return array('success'=>0, 'message'=>__("Please insert your facebook page's link.", 'mec'));
2795
 
2796
  $fb_page = $this->f_calendar_import_get_page($fb_page_link);
2797
 
2798
  $fb_page_id = isset($fb_page['id']) ? $fb_page['id'] : 0;
2799
- if(!$fb_page_id) return array('success'=>0, 'message'=>__("We couldn't recognize your Facebook page. Please check it and provide us a valid facebook page link.", 'mec'));
2800
 
2801
  // Timezone
2802
  $timezone = $this->main->get_timezone();
92
  */
93
  public function menus()
94
  {
95
+ add_submenu_page('mec-intro', __('MEC - Import / Export', 'modern-events-calendar-lite'), __('Import / Export', 'modern-events-calendar-lite'), 'manage_options', 'MEC-ix', array($this, 'ix'));
96
  }
97
 
98
  /**
177
  $feed_file = $_FILES['feed'];
178
 
179
  // File is not uploaded
180
+ if(!isset($feed_file['name']) or (isset($feed_file['name']) and trim($feed_file['name']) == '')) return array('success' => 0, 'message' => __('Please upload the feed file.', 'modern-events-calendar-lite'));
181
 
182
  // File Type is not valid
183
+ if(!isset($feed_file['type']) or (isset($feed_file['type']) and !in_array(strtolower($feed_file['type']), array('text/xml', 'text/calendar')))) return array('success' => 0, 'message' => __('The file type should be XML or ICS.', 'modern-events-calendar-lite'));
184
 
185
  // Upload the File
186
  $upload_dir = wp_upload_dir();
189
  $uploaded = move_uploaded_file($feed_file['tmp_name'], $target_path);
190
 
191
  // Error on Upload
192
+ if(!$uploaded) return array('success' => 0, 'message' => __("An error ocurred during the file upload! Please check permissions!", 'modern-events-calendar-lite'));
193
 
194
  // Import
195
  do_action('mec_import_file', $target_path);
197
  // Delete File
198
  unlink($target_path);
199
 
200
+ return array('success' => 1, 'message' => __('The events are imported successfully!', 'modern-events-calendar-lite'));
201
  }
202
 
203
  public function import_do($feed)
735
  elseif($third_party == 'the-events-calendar' and class_exists('Tribe__Events__Main')) $post_type = 'tribe_events';
736
  elseif($third_party == 'weekly-class' and class_exists('WeeklyClass')) $post_type = 'class';
737
  elseif($third_party == 'calendarize-it' and class_exists('plugin_righthere_calendar')) $post_type = 'events';
738
+ else return array('success'=>0, 'message'=>__("Third Party plugin is not installed and activated!", 'modern-events-calendar-lite'));
739
 
740
  $events = get_posts(array(
741
  'posts_per_page' => -1,
760
  elseif($third_party == 'weekly-class') return $this->thirdparty_weekly_class_import_do();
761
  elseif($third_party == 'calendarize-it') return $this->thirdparty_calendarize_it_import_do();
762
 
763
+ return array('success'=>0, 'message'=>__('Third Party plugin is invalid!', 'modern-events-calendar-lite'));
764
  }
765
 
766
  public function thirdparty_eventon_import_do()
1905
  $start_date = isset($this->ix['google_import_start_date']) ? $this->ix['google_import_start_date'] : 'Today';
1906
  $end_date = (isset($this->ix['google_import_end_date']) and trim($this->ix['google_import_end_date'])) ? $this->ix['google_import_end_date'] : 'Tomorrow';
1907
 
1908
+ if(!trim($api_key) or !trim($calendar_id)) return array('success'=>0, 'error'=>__('Both of API key and Calendar ID are required!', 'modern-events-calendar-lite'));
1909
 
1910
  // Save options
1911
  $this->main->save_ix_options(array('google_import_api_key'=>$api_key, 'google_import_calendar_id'=>$calendar_id));
1958
  public function g_calendar_import_do()
1959
  {
1960
  $g_events = isset($_POST['g-events']) ? $_POST['g-events'] : array();
1961
+ if(!count($g_events)) return array('success'=>0, 'error'=>__('Please select some events to import!', 'modern-events-calendar-lite'));
1962
 
1963
  $api_key = isset($this->ix['google_import_api_key']) ? $this->ix['google_import_api_key'] : NULL;
1964
  $calendar_id = isset($this->ix['google_import_calendar_id']) ? $this->ix['google_import_calendar_id'] : NULL;
1965
 
1966
+ if(!trim($api_key) or !trim($calendar_id)) return array('success'=>0, 'error'=>__('Both of API key and Calendar ID are required!', 'modern-events-calendar-lite'));
1967
 
1968
  // Timezone
1969
  $timezone = $this->main->get_timezone();
2325
  header('Content-Type: text/csv; charset=utf-8');
2326
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
2327
 
2328
+ $columns = array(__('ID', 'modern-events-calendar-lite'), __('Title', 'modern-events-calendar-lite'), __('Start Date', 'modern-events-calendar-lite'), __('Start Time', 'modern-events-calendar-lite'), __('End Date', 'modern-events-calendar-lite'), __('End Time', 'modern-events-calendar-lite'), __('Link', 'modern-events-calendar-lite'), __('Location', 'modern-events-calendar-lite'), __('Organizer', 'modern-events-calendar-lite'), __('Organizer Tel', 'modern-events-calendar-lite'), __('Organizer Email', 'modern-events-calendar-lite'), $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')));
2329
 
2330
  $output = fopen('php://output', 'w');
2331
  fputcsv($output, $columns);
2366
  header('Content-Type: application/vnd.ms-excel; charset=utf-8');
2367
  header('Content-Disposition: attachment; filename=bookings-'.md5(time().mt_rand(100, 999)).'.csv');
2368
 
2369
+ $columns = array(__('ID', 'modern-events-calendar-lite'), __('Title', 'modern-events-calendar-lite'), __('Start Date', 'modern-events-calendar-lite'), __('Start Time', 'modern-events-calendar-lite'), __('End Date', 'modern-events-calendar-lite'), __('End Time', 'modern-events-calendar-lite'), __('Link', 'modern-events-calendar-lite'), __('Location', 'modern-events-calendar-lite'), __('Organizer', 'modern-events-calendar-lite'), __('Organizer Tel', 'modern-events-calendar-lite'), __('Organizer Email', 'modern-events-calendar-lite'), $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')));
2370
 
2371
  $output = fopen('php://output', 'w');
2372
  fwrite($output, "sep=\t".PHP_EOL);
2447
  $calendar_id = isset($ix['google_export_calendar_id']) ? $ix['google_export_calendar_id'] : NULL;
2448
  $auth_url = '';
2449
 
2450
+ if(!trim($client_id) or !trim($client_secret) or !trim($calendar_id)) $this->main->response(array('success'=>0, 'message'=>__('All of Client ID, Client Secret and Calendar ID are required!', 'modern-events-calendar-lite')));
2451
 
2452
  // Save options
2453
  $this->main->save_ix_options(array('google_export_client_id'=>$client_id, 'google_export_client_secret'=>$client_secret, 'google_export_calendar_id'=>$calendar_id));
2470
  $this->main->response(array('success'=>0, 'message'=>$ex->getMessage()));
2471
  }
2472
 
2473
+ $this->main->response(array('success'=>1, 'message'=>sprintf(__('All seems good! Please click %s for authenticating your app.', 'modern-events-calendar-lite'), '<a href="'.$auth_url.'">here</a>')));
2474
  }
2475
 
2476
  public function g_calendar_export_get_token()
2524
  $refresh_token = isset($ix['google_export_refresh_token']) ? $ix['google_export_refresh_token'] : NULL;
2525
  $calendar_id = isset($ix['google_export_calendar_id']) ? $ix['google_export_calendar_id'] : NULL;
2526
 
2527
+ if(!trim($client_id) or !trim($client_secret) or !trim($calendar_id)) $this->main->response(array('success'=>0, 'message'=>__('All of Client App, Client Secret and Calendar ID are required!', 'modern-events-calendar-lite')));
2528
 
2529
  $client = new Google_Client();
2530
  $client->setApplicationName('Modern Events Calendar');
2719
  foreach($g_events_not_inserted as $g_event_not_inserted) $results .= '<li><strong>'.$g_event_not_inserted['title'].'</strong>: '.$g_event_not_inserted['message'].'</li>';
2720
  $results .= '<ul>';
2721
 
2722
+ $message = (count($g_events_inserted) ? sprintf(__('%s events added to Google Calendar successfully.', 'modern-events-calendar-lite'), '<strong>'.count($g_events_inserted).'</strong>') : '');
2723
+ $message .= (count($g_events_updated) ? ' '.sprintf(__('%s previously added events get updated.', 'modern-events-calendar-lite'), '<strong>'.count($g_events_updated).'</strong>') : '');
2724
+ $message .= (count($g_events_not_inserted) ? ' '.sprintf(__('%s events failed to add for following reasons: %s', 'modern-events-calendar-lite'), '<strong>'.count($g_events_not_inserted).'</strong>', $results) : '');
2725
 
2726
  $this->main->response(array('success'=>((count($g_events_inserted) or count($g_events_updated)) ? 1 : 0), 'message'=>trim($message)));
2727
  }
2751
  public function f_calendar_import_start()
2752
  {
2753
  $fb_page_link = isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : NULL;
2754
+ if(!trim($fb_page_link)) return array('success'=>0, 'message'=>__("Please insert your facebook page's link.", 'modern-events-calendar-lite'));
2755
 
2756
  // Save options
2757
  $this->main->save_ix_options(array('facebook_import_page_link'=>$fb_page_link));
2759
  $fb_page = $this->f_calendar_import_get_page($fb_page_link);
2760
 
2761
  $fb_page_id = isset($fb_page['id']) ? $fb_page['id'] : 0;
2762
+ if(!$fb_page_id) return array('success'=>0, 'message'=>__("We couldn't recognize your Facebook page. Please check it and provide us a valid facebook page link.", 'modern-events-calendar-lite'));
2763
 
2764
  $events = array();
2765
  $next_page = 'https://graph.facebook.com/v2.8/'.$fb_page_id.'/events/?access_token='.$this->fb_access_token;
2781
  }
2782
  while($next_page);
2783
 
2784
+ if(!count($events)) return array('success'=>0, 'message'=>__("No events found!", 'modern-events-calendar-lite'));
2785
  else return array('success'=>1, 'message'=>'', 'data'=>array('events'=>$events, 'count'=>count($events), 'name'=>$fb_page['name']));
2786
  }
2787
 
2788
  public function f_calendar_import_do()
2789
  {
2790
  $f_events = isset($_POST['f-events']) ? $_POST['f-events'] : array();
2791
+ if(!count($f_events)) return array('success'=>0, 'message'=>__('Please select some events to import!', 'modern-events-calendar-lite'));
2792
 
2793
  $fb_page_link = isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : NULL;
2794
+ if(!trim($fb_page_link)) return array('success'=>0, 'message'=>__("Please insert your facebook page's link.", 'modern-events-calendar-lite'));
2795
 
2796
  $fb_page = $this->f_calendar_import_get_page($fb_page_link);
2797
 
2798
  $fb_page_id = isset($fb_page['id']) ? $fb_page['id'] : 0;
2799
+ if(!$fb_page_id) return array('success'=>0, 'message'=>__("We couldn't recognize your Facebook page. Please check it and provide us a valid facebook page link.", 'modern-events-calendar-lite'));
2800
 
2801
  // Timezone
2802
  $timezone = $this->main->get_timezone();
app/features/ix/export.php CHANGED
@@ -5,36 +5,36 @@ defined('MECEXEC') or die();
5
  $events = $this->main->get_events('-1');
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
- <h1><?php _e('MEC Import / Export', 'mec'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'mec'); ?></a>
11
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'mec'); ?></a>
12
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
13
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab nav-tab-active"><?php echo __('Export', 'mec'); ?></a>
14
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'mec'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="export-content w-clearfix extra">
20
  <div class="mec-export-all-events">
21
- <h3><?php _e('Export all events to file', 'mec'); ?></h3>
22
- <p class="description"><?php _e("This will export all of your website events' data into your desired format.", 'mec'); ?></p>
23
  <ul>
24
- <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ical')); ?>"><?php _e('iCal', 'mec'); ?></a></li>
25
- <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'csv')); ?>"><?php _e('CSV', 'mec'); ?></a></li>
26
- <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ms-excel')); ?>"><?php _e('MS Excel', 'mec'); ?></a></li>
27
- <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'xml')); ?>"><?php _e('XML', 'mec'); ?></a></li>
28
- <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'json')); ?>"><?php _e('JSON', 'mec'); ?></a></li>
29
  </ul>
30
  </div>
31
  <div class="mec-export-certain-events">
32
- <h3><?php _e('Export certain events', 'mec'); ?></h3>
33
- <p class="description"><?php echo sprintf(__("For exporting filtered events, you can use bulk actions in %s page.", 'mec'), '<a href="'.$this->main->URL('backend').'edit.php?post_type=mec-events">'.__('Events', 'mec').'</a>'); ?></p>
34
  </div>
35
  <div class="mec-export-certain-bookings">
36
- <h3><?php _e('Export certain bookings', 'mec'); ?></h3>
37
- <p class="description"><?php echo sprintf(__("For exporting bookings events, you can use bulk actions in %s page.", 'mec'), '<a href="'.$this->main->URL('backend').'edit.php?post_type=mec-books">'.__('Bookings', 'mec').'</a>'); ?></p>
38
  </div>
39
  </div>
40
  </div>
5
  $events = $this->main->get_events('-1');
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab nav-tab-active"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="export-content w-clearfix extra">
20
  <div class="mec-export-all-events">
21
+ <h3><?php _e('Export all events to file', 'modern-events-calendar-lite'); ?></h3>
22
+ <p class="description"><?php _e("This will export all of your website events' data into your desired format.", 'modern-events-calendar-lite'); ?></p>
23
  <ul>
24
+ <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ical')); ?>"><?php _e('iCal', 'modern-events-calendar-lite'); ?></a></li>
25
+ <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'csv')); ?>"><?php _e('CSV', 'modern-events-calendar-lite'); ?></a></li>
26
+ <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ms-excel')); ?>"><?php _e('MS Excel', 'modern-events-calendar-lite'); ?></a></li>
27
+ <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'xml')); ?>"><?php _e('XML', 'modern-events-calendar-lite'); ?></a></li>
28
+ <li><a href="<?php echo $this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'json')); ?>"><?php _e('JSON', 'modern-events-calendar-lite'); ?></a></li>
29
  </ul>
30
  </div>
31
  <div class="mec-export-certain-events">
32
+ <h3><?php _e('Export certain events', 'modern-events-calendar-lite'); ?></h3>
33
+ <p class="description"><?php echo sprintf(__("For exporting filtered events, you can use bulk actions in %s page.", 'modern-events-calendar-lite'), '<a href="'.$this->main->URL('backend').'edit.php?post_type=mec-events">'.__('Events', 'modern-events-calendar-lite').'</a>'); ?></p>
34
  </div>
35
  <div class="mec-export-certain-bookings">
36
+ <h3><?php _e('Export certain bookings', 'modern-events-calendar-lite'); ?></h3>
37
+ <p class="description"><?php echo sprintf(__("For exporting bookings events, you can use bulk actions in %s page.", 'modern-events-calendar-lite'), '<a href="'.$this->main->URL('backend').'edit.php?post_type=mec-books">'.__('Bookings', 'modern-events-calendar-lite').'</a>'); ?></p>
38
  </div>
39
  </div>
40
  </div>
app/features/ix/export_g_calendar.php CHANGED
@@ -9,42 +9,42 @@ $ix_options = $this->main->get_ix_options();
9
  if($ix_options['google_export_token']) $this->action = 'google-calendar-export-start';
10
  ?>
11
  <div class="wrap" id="mec-wrap">
12
- <h1><?php _e('MEC Import / Export', 'mec'); ?></h1>
13
  <h2 class="nav-tab-wrapper">
14
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab nav-tab-active"><?php echo __('Google Cal. Export', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
17
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'mec'); ?></a>
18
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'mec'); ?></a>
19
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'mec'); ?></a>
20
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'mec'); ?></a>
21
  </h2>
22
  <div class="mec-container">
23
  <div class="export-content w-clearfix extra">
24
  <div class="mec-export-events-g-calendar">
25
- <h3><?php _e('Add events to Google Calendar', 'mec'); ?></h3>
26
- <p class="description"><?php _e("Add your desired website events to your Google Calendar.", 'mec'); ?> <?php echo sprintf(__('You should set %s as redirect page in Google App Console.', 'mec'), '<code>'.$this->main->add_qs_vars(array('mec-ix-action'=>'google-calendar-export-get-token'), $this->main->URL('backend').'admin.php?page=MEC-ix&tab=MEC-g-calendar-export').'</code>'); ?></p>
27
  <form id="mec_g_calendar_export_form_authenticate" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
28
  <div class="mec-form-row">
29
- <label class="mec-col-3" for="mec_ix_google_export_client_id"><?php _e('App Client ID', 'mec'); ?></label>
30
  <div class="mec-col-4">
31
  <input type="text" id="mec_ix_google_export_client_id" name="ix[google_export_client_id]" value="<?php echo (isset($ix_options['google_export_client_id']) ? $ix_options['google_export_client_id'] : ''); ?>" />
32
  </div>
33
  </div>
34
  <div class="mec-form-row">
35
- <label class="mec-col-3" for="mec_ix_google_export_client_secret"><?php _e('App Client Secret', 'mec'); ?></label>
36
  <div class="mec-col-4">
37
  <input type="text" id="mec_ix_google_export_client_secret" name="ix[google_export_client_secret]" value="<?php echo (isset($ix_options['google_export_client_secret']) ? $ix_options['google_export_client_secret'] : ''); ?>" />
38
  </div>
39
  </div>
40
  <div class="mec-form-row">
41
- <label class="mec-col-3" for="mec_ix_google_export_calendar_id"><?php _e('Calendar ID', 'mec'); ?></label>
42
  <div class="mec-col-4">
43
  <input type="text" id="mec_ix_google_export_calendar_id" name="ix[google_export_calendar_id]" value="<?php echo (isset($ix_options['google_export_calendar_id']) ? $ix_options['google_export_calendar_id'] : ''); ?>" />
44
  </div>
45
  </div>
46
  <div class="mec-options-fields">
47
- <button id="mec_ix_google_export_authenticate_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Authenticate', 'mec'); ?></button>
48
  </div>
49
  <p class="mec-col-6" id="mec_ix_google_export_authenticate_message" class="mec-util-hidden"></p>
50
  </form>
@@ -53,9 +53,9 @@ if($ix_options['google_export_token']) $this->action = 'google-calendar-export-s
53
  <div>
54
  <form id="mec_g_calendar_export_form_do">
55
  <ul class="mec-select-deselect-actions" data-for="#mec_export_g_calendar_events">
56
- <li data-action="select-all"><?php _e('Select All', 'mec'); ?></li>
57
- <li data-action="deselect-all"><?php _e('Deselect All', 'mec'); ?></li>
58
- <li data-action="toggle"><?php _e('Toggle', 'mec'); ?></li>
59
  </ul>
60
  <ul id="mec_export_g_calendar_events">
61
  <?php foreach($events as $event): ?>
@@ -68,7 +68,7 @@ if($ix_options['google_export_token']) $this->action = 'google-calendar-export-s
68
  <?php endforeach; ?>
69
  </ul>
70
  <div class="mec-options-fields">
71
- <button id="mec_ix_google_export_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Add to Google Calendar', 'mec'); ?></button>
72
  </div>
73
  <p class="mec-col-6" id="mec_ix_google_export_do_message" class="mec-util-hidden"></p>
74
  </form>
@@ -86,7 +86,7 @@ jQuery("#mec_g_calendar_export_form_authenticate").on('submit', function(e)
86
  jQuery('#mec_ix_google_export_authenticate_message').hide();
87
 
88
  // Add loading Class to the button
89
- jQuery("#mec_ix_google_export_authenticate_form_button").addClass('loading').text("<?php esc_attr_e('Checking ...', 'mec'); ?>");
90
 
91
  var options = jQuery("#mec_g_calendar_export_form_authenticate").serialize();
92
  jQuery.ajax(
@@ -99,7 +99,7 @@ jQuery("#mec_g_calendar_export_form_authenticate").on('submit', function(e)
99
  {
100
  // Remove the loading Class to the button
101
  setTimeout(function(){
102
- jQuery("#mec_ix_google_export_authenticate_form_button").removeClass('loading').text("<?php esc_attr_e('Authenticate', 'mec'); ?>");
103
  }, 1000);
104
 
105
  // Remove the classes
@@ -116,7 +116,7 @@ jQuery("#mec_g_calendar_export_form_authenticate").on('submit', function(e)
116
  {
117
  // Remove the loading Class to the button
118
  setTimeout(function(){
119
- jQuery("#mec_ix_google_export_authenticate_form_button").removeClass('loading').text("<?php esc_attr_e('Authenticate', 'mec'); ?>");
120
  }, 1000);
121
  }
122
  });
@@ -130,7 +130,7 @@ jQuery("#mec_g_calendar_export_form_do").on('submit', function(e)
130
  jQuery('#mec_ix_google_export_do_message').hide();
131
 
132
  // Add loading Class to the button
133
- jQuery("#mec_ix_google_export_do_form_button").addClass('loading').text("<?php esc_attr_e('Importing ...', 'mec'); ?>");
134
 
135
  var options = jQuery("#mec_g_calendar_export_form_do").serialize();
136
  jQuery.ajax(
@@ -143,7 +143,7 @@ jQuery("#mec_g_calendar_export_form_do").on('submit', function(e)
143
  {
144
  // Remove the loading Class to the button
145
  setTimeout(function(){
146
- jQuery("#mec_ix_google_export_do_form_button").removeClass('loading').text("<?php esc_attr_e('Add to Google Calendar', 'mec'); ?>");
147
  }, 1000);
148
 
149
  // Remove the classes
@@ -160,7 +160,7 @@ jQuery("#mec_g_calendar_export_form_do").on('submit', function(e)
160
  {
161
  // Remove the loading Class to the button
162
  setTimeout(function(){
163
- jQuery("#mec_ix_google_export_do_form_button").removeClass('loading').text("<?php esc_attr_e('Add to Google Calendar', 'mec'); ?>");
164
  }, 1000);
165
  }
166
  });
9
  if($ix_options['google_export_token']) $this->action = 'google-calendar-export-start';
10
  ?>
11
  <div class="wrap" id="mec-wrap">
12
+ <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
13
  <h2 class="nav-tab-wrapper">
14
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab nav-tab-active"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
18
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
19
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
20
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
21
  </h2>
22
  <div class="mec-container">
23
  <div class="export-content w-clearfix extra">
24
  <div class="mec-export-events-g-calendar">
25
+ <h3><?php _e('Add events to Google Calendar', 'modern-events-calendar-lite'); ?></h3>
26
+ <p class="description"><?php _e("Add your desired website events to your Google Calendar.", 'modern-events-calendar-lite'); ?> <?php echo sprintf(__('You should set %s as redirect page in Google App Console.', 'modern-events-calendar-lite'), '<code>'.$this->main->add_qs_vars(array('mec-ix-action'=>'google-calendar-export-get-token'), $this->main->URL('backend').'admin.php?page=MEC-ix&tab=MEC-g-calendar-export').'</code>'); ?></p>
27
  <form id="mec_g_calendar_export_form_authenticate" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
28
  <div class="mec-form-row">
29
+ <label class="mec-col-3" for="mec_ix_google_export_client_id"><?php _e('App Client ID', 'modern-events-calendar-lite'); ?></label>
30
  <div class="mec-col-4">
31
  <input type="text" id="mec_ix_google_export_client_id" name="ix[google_export_client_id]" value="<?php echo (isset($ix_options['google_export_client_id']) ? $ix_options['google_export_client_id'] : ''); ?>" />
32
  </div>
33
  </div>
34
  <div class="mec-form-row">
35
+ <label class="mec-col-3" for="mec_ix_google_export_client_secret"><?php _e('App Client Secret', 'modern-events-calendar-lite'); ?></label>
36
  <div class="mec-col-4">
37
  <input type="text" id="mec_ix_google_export_client_secret" name="ix[google_export_client_secret]" value="<?php echo (isset($ix_options['google_export_client_secret']) ? $ix_options['google_export_client_secret'] : ''); ?>" />
38
  </div>
39
  </div>
40
  <div class="mec-form-row">
41
+ <label class="mec-col-3" for="mec_ix_google_export_calendar_id"><?php _e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
42
  <div class="mec-col-4">
43
  <input type="text" id="mec_ix_google_export_calendar_id" name="ix[google_export_calendar_id]" value="<?php echo (isset($ix_options['google_export_calendar_id']) ? $ix_options['google_export_calendar_id'] : ''); ?>" />
44
  </div>
45
  </div>
46
  <div class="mec-options-fields">
47
+ <button id="mec_ix_google_export_authenticate_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Authenticate', 'modern-events-calendar-lite'); ?></button>
48
  </div>
49
  <p class="mec-col-6" id="mec_ix_google_export_authenticate_message" class="mec-util-hidden"></p>
50
  </form>
53
  <div>
54
  <form id="mec_g_calendar_export_form_do">
55
  <ul class="mec-select-deselect-actions" data-for="#mec_export_g_calendar_events">
56
+ <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
57
+ <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
58
+ <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
59
  </ul>
60
  <ul id="mec_export_g_calendar_events">
61
  <?php foreach($events as $event): ?>
68
  <?php endforeach; ?>
69
  </ul>
70
  <div class="mec-options-fields">
71
+ <button id="mec_ix_google_export_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Add to Google Calendar', 'modern-events-calendar-lite'); ?></button>
72
  </div>
73
  <p class="mec-col-6" id="mec_ix_google_export_do_message" class="mec-util-hidden"></p>
74
  </form>
86
  jQuery('#mec_ix_google_export_authenticate_message').hide();
87
 
88
  // Add loading Class to the button
89
+ jQuery("#mec_ix_google_export_authenticate_form_button").addClass('loading').text("<?php esc_attr_e('Checking ...', 'modern-events-calendar-lite'); ?>");
90
 
91
  var options = jQuery("#mec_g_calendar_export_form_authenticate").serialize();
92
  jQuery.ajax(
99
  {
100
  // Remove the loading Class to the button
101
  setTimeout(function(){
102
+ jQuery("#mec_ix_google_export_authenticate_form_button").removeClass('loading').text("<?php esc_attr_e('Authenticate', 'modern-events-calendar-lite'); ?>");
103
  }, 1000);
104
 
105
  // Remove the classes
116
  {
117
  // Remove the loading Class to the button
118
  setTimeout(function(){
119
+ jQuery("#mec_ix_google_export_authenticate_form_button").removeClass('loading').text("<?php esc_attr_e('Authenticate', 'modern-events-calendar-lite'); ?>");
120
  }, 1000);
121
  }
122
  });
130
  jQuery('#mec_ix_google_export_do_message').hide();
131
 
132
  // Add loading Class to the button
133
+ jQuery("#mec_ix_google_export_do_form_button").addClass('loading').text("<?php esc_attr_e('Importing ...', 'modern-events-calendar-lite'); ?>");
134
 
135
  var options = jQuery("#mec_g_calendar_export_form_do").serialize();
136
  jQuery.ajax(
143
  {
144
  // Remove the loading Class to the button
145
  setTimeout(function(){
146
+ jQuery("#mec_ix_google_export_do_form_button").removeClass('loading').text("<?php esc_attr_e('Add to Google Calendar', 'modern-events-calendar-lite'); ?>");
147
  }, 1000);
148
 
149
  // Remove the classes
160
  {
161
  // Remove the loading Class to the button
162
  setTimeout(function(){
163
+ jQuery("#mec_ix_google_export_do_form_button").removeClass('loading').text("<?php esc_attr_e('Add to Google Calendar', 'modern-events-calendar-lite'); ?>");
164
  }, 1000);
165
  }
166
  });
app/features/ix/import.php CHANGED
@@ -5,44 +5,44 @@ defined('MECEXEC') or die();
5
  $third_parties = $this->main->get_integrated_plugins_for_import();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
- <h1><?php _e('MEC Import / Export', 'mec'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'mec'); ?></a>
11
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'mec'); ?></a>
12
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
13
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'mec'); ?></a>
14
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab nav-tab-active"><?php echo __('Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'mec'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
- <h3><?php _e('Import MEC XML Feed', 'mec'); ?></h3>
21
  <form id="mec_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST" enctype="multipart/form-data">
22
  <div class="mec-form-row">
23
- <p><?php echo sprintf(__("You can import %s events from another website to this website. You just need an XML feed of the events that can be exported from source website!", 'mec'), '<strong>'.__('Modern Events Calendar', 'mec').'</strong>'); ?></p>
24
  </div>
25
  <div class="mec-form-row">
26
- <input type="file" name="feed" id="feed" title="<?php esc_attr_e('XML Feed', 'mec'); ?>">
27
  <input type="hidden" name="mec-ix-action" value="import-start">
28
- <button class="button button-primary"><?php _e('Upload & Import', 'mec'); ?></button>
29
  </div>
30
  </form>
31
 
32
- <h3><?php _e('Import .ics File', 'mec'); ?></h3>
33
  <?php if($this->getPRO()): ?>
34
  <form id="mec_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST" enctype="multipart/form-data">
35
  <div class="mec-form-row">
36
- <p><?php echo sprintf(__("ICS format supports by many different service providers like Facebook. Apple Calendar etc. You can import your ics file into the %s using this form.", 'mec'), '<strong>'.__('Modern Events Calendar', 'mec').'</strong>'); ?></p>
37
  </div>
38
  <div class="mec-form-row">
39
- <input type="file" name="feed" id="feed" title="<?php esc_attr_e('ICS Feed', 'mec'); ?>">
40
  <input type="hidden" name="mec-ix-action" value="import-start">
41
- <button class="button button-primary"><?php _e('Upload & Import', 'mec'); ?></button>
42
  </div>
43
  </form>
44
  <?php else: ?>
45
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
46
  <?php endif; ?>
47
 
48
  <?php if($this->action == 'import-start'): ?>
5
  $third_parties = $this->main->get_integrated_plugins_for_import();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab nav-tab-active"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
+ <h3><?php _e('Import MEC XML Feed', 'modern-events-calendar-lite'); ?></h3>
21
  <form id="mec_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST" enctype="multipart/form-data">
22
  <div class="mec-form-row">
23
+ <p><?php echo sprintf(__("You can import %s events from another website to this website. You just need an XML feed of the events that can be exported from source website!", 'modern-events-calendar-lite'), '<strong>'.__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
24
  </div>
25
  <div class="mec-form-row">
26
+ <input type="file" name="feed" id="feed" title="<?php esc_attr_e('XML Feed', 'modern-events-calendar-lite'); ?>">
27
  <input type="hidden" name="mec-ix-action" value="import-start">
28
+ <button class="button button-primary"><?php _e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
29
  </div>
30
  </form>
31
 
32
+ <h3><?php _e('Import .ics File', 'modern-events-calendar-lite'); ?></h3>
33
  <?php if($this->getPRO()): ?>
34
  <form id="mec_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST" enctype="multipart/form-data">
35
  <div class="mec-form-row">
36
+ <p><?php echo sprintf(__("ICS format supports by many different service providers like Facebook. Apple Calendar etc. You can import your ics file into the %s using this form.", 'modern-events-calendar-lite'), '<strong>'.__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
37
  </div>
38
  <div class="mec-form-row">
39
+ <input type="file" name="feed" id="feed" title="<?php esc_attr_e('ICS Feed', 'modern-events-calendar-lite'); ?>">
40
  <input type="hidden" name="mec-ix-action" value="import-start">
41
+ <button class="button button-primary"><?php _e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
42
  </div>
43
  </form>
44
  <?php else: ?>
45
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
46
  <?php endif; ?>
47
 
48
  <?php if($this->action == 'import-start'): ?>
app/features/ix/import_f_calendar.php CHANGED
@@ -5,34 +5,34 @@ defined('MECEXEC') or die();
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
- <h1><?php _e('MEC Import / Export', 'mec'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'mec'); ?></a>
11
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'mec'); ?></a>
12
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab nav-tab-active"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
13
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'mec'); ?></a>
14
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'mec'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
  <?php if(version_compare(PHP_VERSION, '5.4.0', '<')): ?>
21
- <p class="mec-error"><?php _e('The Facebook SDK requires PHP version 5.4 or higher.', 'mec'); ?></p>
22
  <?php else: ?>
23
  <div class="mec-facebook-import">
24
  <form id="mec_facebook_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
25
- <h3><?php _e('Import from Facebook Calendar', 'mec'); ?></h3>
26
- <p class="description"><?php _e('Import all of your facebook events into MEC.', 'mec'); ?></p>
27
  <div class="mec-form-row">
28
- <label class="mec-col-3" for="mec_ix_facebook_import_page_link"><?php _e('Facebook Page Link', 'mec'); ?></label>
29
  <div class="mec-col-4">
30
  <input type="text" id="mec_ix_facebook_import_page_link" name="ix[facebook_import_page_link]" value="<?php echo (isset($ix_options['facebook_import_page_link']) ? $ix_options['facebook_import_page_link'] : ''); ?>" />
31
  </div>
32
  </div>
33
  <div class="mec-options-fields">
34
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-start" />
35
- <button id="mec_ix_facebook_import_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Start', 'mec'); ?></button>
36
  </div>
37
  </form>
38
  </div>
@@ -43,35 +43,35 @@ $ix_options = $this->main->get_ix_options();
43
  <?php else: ?>
44
  <form id="mec_facebook_import_do_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
45
  <div class="mec-xi-facebook-import-events mec-options-fields">
46
- <h4><?php _e('Facebook Events', 'mec'); ?></h4>
47
- <div class="mec-success"><?php echo sprintf(__('We found %s events for %s page. Please select your desired events to import.', 'mec'), '<strong>'.$this->response['data']['count'].'</strong>', '<strong>'.$this->response['data']['name'].'</strong>'); ?></div>
48
  <ul class="mec-select-deselect-actions" data-for="#mec_import_f_calendar_events">
49
- <li data-action="select-all"><?php _e('Select All', 'mec'); ?></li>
50
- <li data-action="deselect-all"><?php _e('Deselect All', 'mec'); ?></li>
51
- <li data-action="toggle"><?php _e('Toggle', 'mec'); ?></li>
52
  </ul>
53
  <ul id="mec_import_f_calendar_events">
54
  <?php foreach($this->response['data']['events'] as $event): if(trim($event['name']) == '') continue; ?>
55
  <li>
56
  <label>
57
  <input type="checkbox" name="f-events[]" value="<?php echo $event['id']; ?>" checked="checked" />
58
- <span><?php echo sprintf(__('Event Title: %s', 'mec'), '<strong>'.$event['name'].'</strong>'); ?></span>
59
  </label>
60
  </li>
61
  <?php endforeach; ?>
62
  </ul>
63
  </div>
64
  <div class="mec-options-fields">
65
- <h4><?php _e('Import Options', 'mec'); ?></h4>
66
  <div class="mec-form-row">
67
  <label>
68
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
69
- <?php _e('Import Locations', 'mec'); ?>
70
  </label>
71
  </div>
72
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-do" />
73
  <input type="hidden" name="ix[facebook_import_page_link]" value="<?php echo (isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : ''); ?>" />
74
- <button id="mec_ix_facebook_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'mec'); ?></button>
75
  </div>
76
  </form>
77
  <?php endif; ?>
@@ -81,7 +81,7 @@ $ix_options = $this->main->get_ix_options();
81
  <?php if($this->response['success'] == 0): ?>
82
  <div class="mec-error"><?php echo $this->response['message']; ?></div>
83
  <?php else: ?>
84
- <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website from Facebook Calendar.', 'mec'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
85
  <?php endif; ?>
86
  </div>
87
  <?php endif; ?>
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab nav-tab-active"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
  <?php if(version_compare(PHP_VERSION, '5.4.0', '<')): ?>
21
+ <p class="mec-error"><?php _e('The Facebook SDK requires PHP version 5.4 or higher.', 'modern-events-calendar-lite'); ?></p>
22
  <?php else: ?>
23
  <div class="mec-facebook-import">
24
  <form id="mec_facebook_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
25
+ <h3><?php _e('Import from Facebook Calendar', 'modern-events-calendar-lite'); ?></h3>
26
+ <p class="description"><?php _e('Import all of your facebook events into MEC.', 'modern-events-calendar-lite'); ?></p>
27
  <div class="mec-form-row">
28
+ <label class="mec-col-3" for="mec_ix_facebook_import_page_link"><?php _e('Facebook Page Link', 'modern-events-calendar-lite'); ?></label>
29
  <div class="mec-col-4">
30
  <input type="text" id="mec_ix_facebook_import_page_link" name="ix[facebook_import_page_link]" value="<?php echo (isset($ix_options['facebook_import_page_link']) ? $ix_options['facebook_import_page_link'] : ''); ?>" />
31
  </div>
32
  </div>
33
  <div class="mec-options-fields">
34
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-start" />
35
+ <button id="mec_ix_facebook_import_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Start', 'modern-events-calendar-lite'); ?></button>
36
  </div>
37
  </form>
38
  </div>
43
  <?php else: ?>
44
  <form id="mec_facebook_import_do_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
45
  <div class="mec-xi-facebook-import-events mec-options-fields">
46
+ <h4><?php _e('Facebook Events', 'modern-events-calendar-lite'); ?></h4>
47
+ <div class="mec-success"><?php echo sprintf(__('We found %s events for %s page. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data']['count'].'</strong>', '<strong>'.$this->response['data']['name'].'</strong>'); ?></div>
48
  <ul class="mec-select-deselect-actions" data-for="#mec_import_f_calendar_events">
49
+ <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
50
+ <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
51
+ <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
52
  </ul>
53
  <ul id="mec_import_f_calendar_events">
54
  <?php foreach($this->response['data']['events'] as $event): if(trim($event['name']) == '') continue; ?>
55
  <li>
56
  <label>
57
  <input type="checkbox" name="f-events[]" value="<?php echo $event['id']; ?>" checked="checked" />
58
+ <span><?php echo sprintf(__('Event Title: %s', 'modern-events-calendar-lite'), '<strong>'.$event['name'].'</strong>'); ?></span>
59
  </label>
60
  </li>
61
  <?php endforeach; ?>
62
  </ul>
63
  </div>
64
  <div class="mec-options-fields">
65
+ <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
66
  <div class="mec-form-row">
67
  <label>
68
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
69
+ <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
70
  </label>
71
  </div>
72
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-do" />
73
  <input type="hidden" name="ix[facebook_import_page_link]" value="<?php echo (isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : ''); ?>" />
74
+ <button id="mec_ix_facebook_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'modern-events-calendar-lite'); ?></button>
75
  </div>
76
  </form>
77
  <?php endif; ?>
81
  <?php if($this->response['success'] == 0): ?>
82
  <div class="mec-error"><?php echo $this->response['message']; ?></div>
83
  <?php else: ?>
84
+ <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website from Facebook Calendar.', 'modern-events-calendar-lite'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
85
  <?php endif; ?>
86
  </div>
87
  <?php endif; ?>
app/features/ix/import_g_calendar.php CHANGED
@@ -5,49 +5,49 @@ defined('MECEXEC') or die();
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
- <h1><?php _e('MEC Import / Export', 'mec'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab nav-tab-active"><?php echo __('Google Cal. Import', 'mec'); ?></a>
11
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'mec'); ?></a>
12
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
13
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'mec'); ?></a>
14
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'mec'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
  <div class="mec-google-import">
21
  <form id="mec_google_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
22
- <h3><?php _e('Import from Google Calendar', 'mec'); ?></h3>
23
- <p class="description"><?php _e('This will import all of your Google calendar events into MEC.', 'mec'); ?></p>
24
  <div class="mec-form-row">
25
- <label class="mec-col-3" for="mec_ix_google_import_api_key"><?php _e('Google API Key', 'mec'); ?></label>
26
  <div class="mec-col-4">
27
  <input type="text" id="mec_ix_google_import_api_key" name="ix[google_import_api_key]" value="<?php echo (isset($ix_options['google_import_api_key']) ? $ix_options['google_import_api_key'] : ''); ?>" />
28
  </div>
29
  </div>
30
  <div class="mec-form-row">
31
- <label class="mec-col-3" for="mec_ix_google_import_calendar_id"><?php _e('Calendar ID', 'mec'); ?></label>
32
  <div class="mec-col-4">
33
  <input type="text" id="mec_ix_google_import_calendar_id" name="ix[google_import_calendar_id]" value="<?php echo (isset($ix_options['google_import_calendar_id']) ? $ix_options['google_import_calendar_id'] : ''); ?>" />
34
  </div>
35
  </div>
36
  <div class="mec-form-row">
37
- <label class="mec-col-3" for="mec_ix_google_import_start_date"><?php _e('Start Date', 'mec'); ?></label>
38
  <div class="mec-col-4">
39
  <input type="text" id="mec_ix_google_import_start_date" name="ix[google_import_start_date]" value="<?php echo (isset($this->ix['google_import_start_date']) ? $this->ix['google_import_start_date'] : date('Y-m-d', strtotime('-1 Month'))); ?>" class="mec_date_picker" />
40
  </div>
41
  </div>
42
  <div class="mec-form-row">
43
- <label class="mec-col-3" for="mec_ix_google_import_end_date"><?php _e('End Date', 'mec'); ?></label>
44
  <div class="mec-col-4">
45
  <input type="text" id="mec_ix_google_import_end_date" name="ix[google_import_end_date]" value="<?php echo (isset($this->ix['google_import_end_date']) ? $this->ix['google_import_end_date'] : date('Y-m-d', strtotime('+3 Months'))); ?>" class="mec_date_picker" />
46
  </div>
47
  </div>
48
  <div class="mec-options-fields">
49
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-start" />
50
- <button id="mec_ix_google_import_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Start', 'mec'); ?></button>
51
  </div>
52
  </form>
53
  <?php if($this->action == 'google-calendar-import-start'): ?>
@@ -57,12 +57,12 @@ $ix_options = $this->main->get_ix_options();
57
  <?php else: ?>
58
  <form id="mec_google_import_do_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
59
  <div class="mec-xi-google-import-events mec-options-fields">
60
- <h4><?php _e('Google Calendar Events', 'mec'); ?></h4>
61
- <div class="mec-success"><?php echo sprintf(__('We found %s events for %s calendar. Please select your desired events to import.', 'mec'), '<strong>'.$this->response['data']['count'].'</strong>', '<strong>'.$this->response['data']['title'].'</strong>'); ?></div>
62
  <ul class="mec-select-deselect-actions" data-for="#mec_import_g_calendar_events">
63
- <li data-action="select-all"><?php _e('Select All', 'mec'); ?></li>
64
- <li data-action="deselect-all"><?php _e('Deselect All', 'mec'); ?></li>
65
- <li data-action="toggle"><?php _e('Toggle', 'mec'); ?></li>
66
  </ul>
67
  <ul id="mec_import_g_calendar_events">
68
  <?php $timezone = $this->main->get_timezone(); foreach($this->response['data']['events'] as $event): if(trim($event['title']) == '') continue; ?>
@@ -76,30 +76,30 @@ $ix_options = $this->main->get_ix_options();
76
  <li>
77
  <label>
78
  <input type="checkbox" name="g-events[]" value="<?php echo $event['id']; ?>" checked="checked" />
79
- <span><?php echo sprintf(__('Event Title: %s Event Date: %s - %s', 'mec'), '<strong>'.$event['title'].'</strong>', '<strong title="'.esc_attr('First Date of Event', 'mec').'">'.($date_start->format('Y-m-d H:i:s')).'</strong>', '<strong title="'.esc_attr('First Date of Event', 'mec').'">'.($date_end->format('Y-m-d H:i:s')).'</strong>'); ?></span>
80
  </label>
81
  </li>
82
  <?php endforeach; ?>
83
  </ul>
84
  </div>
85
  <div class="mec-options-fields">
86
- <h4><?php _e('Import Options', 'mec'); ?></h4>
87
  <div class="mec-form-row">
88
  <label>
89
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
90
- <?php _e('Import Organizers', 'mec'); ?>
91
  </label>
92
  </div>
93
  <div class="mec-form-row">
94
  <label>
95
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
96
- <?php _e('Import Locations', 'mec'); ?>
97
  </label>
98
  </div>
99
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-do" />
100
  <input type="hidden" name="ix[google_import_api_key]" value="<?php echo (isset($this->ix['google_import_api_key']) ? $this->ix['google_import_api_key'] : ''); ?>" />
101
  <input type="hidden" name="ix[google_import_calendar_id]" value="<?php echo (isset($this->ix['google_import_calendar_id']) ? $this->ix['google_import_calendar_id'] : ''); ?>" />
102
- <button id="mec_ix_google_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'mec'); ?></button>
103
  </div>
104
  </form>
105
  <?php endif; ?>
@@ -109,7 +109,7 @@ $ix_options = $this->main->get_ix_options();
109
  <?php if($this->response['success'] == 0): ?>
110
  <div class="mec-error"><?php echo $this->response['error']; ?></div>
111
  <?php else: ?>
112
- <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website from Google Calendar.', 'mec'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
113
  <?php endif; ?>
114
  </div>
115
  <?php endif; ?>
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab nav-tab-active"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
  <div class="mec-google-import">
21
  <form id="mec_google_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
22
+ <h3><?php _e('Import from Google Calendar', 'modern-events-calendar-lite'); ?></h3>
23
+ <p class="description"><?php _e('This will import all of your Google calendar events into MEC.', 'modern-events-calendar-lite'); ?></p>
24
  <div class="mec-form-row">
25
+ <label class="mec-col-3" for="mec_ix_google_import_api_key"><?php _e('Google API Key', 'modern-events-calendar-lite'); ?></label>
26
  <div class="mec-col-4">
27
  <input type="text" id="mec_ix_google_import_api_key" name="ix[google_import_api_key]" value="<?php echo (isset($ix_options['google_import_api_key']) ? $ix_options['google_import_api_key'] : ''); ?>" />
28
  </div>
29
  </div>
30
  <div class="mec-form-row">
31
+ <label class="mec-col-3" for="mec_ix_google_import_calendar_id"><?php _e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
32
  <div class="mec-col-4">
33
  <input type="text" id="mec_ix_google_import_calendar_id" name="ix[google_import_calendar_id]" value="<?php echo (isset($ix_options['google_import_calendar_id']) ? $ix_options['google_import_calendar_id'] : ''); ?>" />
34
  </div>
35
  </div>
36
  <div class="mec-form-row">
37
+ <label class="mec-col-3" for="mec_ix_google_import_start_date"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
38
  <div class="mec-col-4">
39
  <input type="text" id="mec_ix_google_import_start_date" name="ix[google_import_start_date]" value="<?php echo (isset($this->ix['google_import_start_date']) ? $this->ix['google_import_start_date'] : date('Y-m-d', strtotime('-1 Month'))); ?>" class="mec_date_picker" />
40
  </div>
41
  </div>
42
  <div class="mec-form-row">
43
+ <label class="mec-col-3" for="mec_ix_google_import_end_date"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
44
  <div class="mec-col-4">
45
  <input type="text" id="mec_ix_google_import_end_date" name="ix[google_import_end_date]" value="<?php echo (isset($this->ix['google_import_end_date']) ? $this->ix['google_import_end_date'] : date('Y-m-d', strtotime('+3 Months'))); ?>" class="mec_date_picker" />
46
  </div>
47
  </div>
48
  <div class="mec-options-fields">
49
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-start" />
50
+ <button id="mec_ix_google_import_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Start', 'modern-events-calendar-lite'); ?></button>
51
  </div>
52
  </form>
53
  <?php if($this->action == 'google-calendar-import-start'): ?>
57
  <?php else: ?>
58
  <form id="mec_google_import_do_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
59
  <div class="mec-xi-google-import-events mec-options-fields">
60
+ <h4><?php _e('Google Calendar Events', 'modern-events-calendar-lite'); ?></h4>
61
+ <div class="mec-success"><?php echo sprintf(__('We found %s events for %s calendar. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data']['count'].'</strong>', '<strong>'.$this->response['data']['title'].'</strong>'); ?></div>
62
  <ul class="mec-select-deselect-actions" data-for="#mec_import_g_calendar_events">
63
+ <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
64
+ <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
65
+ <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
66
  </ul>
67
  <ul id="mec_import_g_calendar_events">
68
  <?php $timezone = $this->main->get_timezone(); foreach($this->response['data']['events'] as $event): if(trim($event['title']) == '') continue; ?>
76
  <li>
77
  <label>
78
  <input type="checkbox" name="g-events[]" value="<?php echo $event['id']; ?>" checked="checked" />
79
+ <span><?php echo sprintf(__('Event Title: %s Event Date: %s - %s', 'modern-events-calendar-lite'), '<strong>'.$event['title'].'</strong>', '<strong title="'.esc_attr('First Date of Event', 'modern-events-calendar-lite').'">'.($date_start->format('Y-m-d H:i:s')).'</strong>', '<strong title="'.esc_attr('First Date of Event', 'modern-events-calendar-lite').'">'.($date_end->format('Y-m-d H:i:s')).'</strong>'); ?></span>
80
  </label>
81
  </li>
82
  <?php endforeach; ?>
83
  </ul>
84
  </div>
85
  <div class="mec-options-fields">
86
+ <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
87
  <div class="mec-form-row">
88
  <label>
89
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
90
+ <?php _e('Import Organizers', 'modern-events-calendar-lite'); ?>
91
  </label>
92
  </div>
93
  <div class="mec-form-row">
94
  <label>
95
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
96
+ <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
97
  </label>
98
  </div>
99
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-do" />
100
  <input type="hidden" name="ix[google_import_api_key]" value="<?php echo (isset($this->ix['google_import_api_key']) ? $this->ix['google_import_api_key'] : ''); ?>" />
101
  <input type="hidden" name="ix[google_import_calendar_id]" value="<?php echo (isset($this->ix['google_import_calendar_id']) ? $this->ix['google_import_calendar_id'] : ''); ?>" />
102
+ <button id="mec_ix_google_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'modern-events-calendar-lite'); ?></button>
103
  </div>
104
  </form>
105
  <?php endif; ?>
109
  <?php if($this->response['success'] == 0): ?>
110
  <div class="mec-error"><?php echo $this->response['error']; ?></div>
111
  <?php else: ?>
112
+ <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website from Google Calendar.', 'modern-events-calendar-lite'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
113
  <?php endif; ?>
114
  </div>
115
  <?php endif; ?>
app/features/ix/sync.php CHANGED
@@ -5,39 +5,39 @@ defined('MECEXEC') or die();
5
  $ix = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
- <h1><?php _e('Auto Synchronization', 'mec'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'mec'); ?></a>
11
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'mec'); ?></a>
12
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
13
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'mec'); ?></a>
14
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab nav-tab-active"><?php echo __('Synchronization', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'mec'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="sync-content w-clearfix extra">
20
  <?php if(!$this->main->getPRO()): ?>
21
- <div class="info-msg"><?php echo sprintf(__("%s is required to use synchronization feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
22
  <?php else: ?>
23
  <form id="mec_ix_sync_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
24
  <div class="mec-form-row">
25
  <input type="hidden" name="ix[sync_g_import]" value="0" />
26
  <label class="mec-col-3" for="mec_ix_sync_g_import">
27
  <input type="checkbox" id="mec_ix_sync_g_import" name="ix[sync_g_import]" value="1" <?php echo (isset($ix['sync_g_import']) and $ix['sync_g_import'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_g_import_cron').toggleClass('mec-util-hidden');" />
28
- <?php _e('Auto Google Import', 'mec'); ?>
29
  </label>
30
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'g-import.php'; ?>
31
- <p id="mec_sync_g_import_cron" class="mec-col-12 <?php echo (isset($ix['sync_g_import']) and $ix['sync_g_import'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php _e('Important Note', 'mec'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file atleast once per day otherwise it won't import Google Calendar events.", 'mec'), '<code>'.$cron.'</code>'); ?></p>
32
  </div>
33
  <div class="mec-form-row">
34
  <input type="hidden" name="ix[sync_g_export]" value="0" />
35
  <label class="mec-col-3" for="mec_ix_sync_g_export">
36
  <input type="checkbox" id="mec_ix_sync_g_export" name="ix[sync_g_export]" value="1" <?php echo (isset($ix['sync_g_export']) and $ix['sync_g_export'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_g_export_cron').toggleClass('mec-util-hidden');" />
37
- <?php _e('Auto Google Export', 'mec'); ?>
38
  </label>
39
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'g-export.php'; ?>
40
- <p id="mec_sync_g_export_cron" class="mec-col-12 <?php echo (isset($ix['sync_g_export']) and $ix['sync_g_export'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php _e('Important Note', 'mec'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file atleast once per day otherwise it won't export your website events into Google Calendar.", 'mec'), '<code>'.$cron.'</code>'); ?></p>
41
  </div>
42
 
43
  <?php if(false): // Disabled for Now ?>
@@ -45,16 +45,16 @@ $ix = $this->main->get_ix_options();
45
  <input type="hidden" name="ix[sync_f_import]" value="0" />
46
  <label class="mec-col-3" for="mec_ix_sync_f_import">
47
  <input type="checkbox" id="mec_ix_sync_f_import" name="ix[sync_f_import]" value="1" <?php echo (isset($ix['sync_f_import']) and $ix['sync_f_import'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_f_import_cron').toggleClass('mec-util-hidden');" />
48
- <?php _e('Auto Facebook Import', 'mec'); ?>
49
  </label>
50
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'f-import.php'; ?>
51
- <p id="mec_sync_f_import_cron" class="mec-col-12 <?php echo (isset($ix['sync_f_import']) and $ix['sync_f_import'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php _e('Important Note', 'mec'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file atleast once per day otherwise it won't import any event from Facebook.", 'mec'), '<code>'.$cron.'</code>'); ?></p>
52
  </div>
53
  <?php endif; ?>
54
 
55
  <div class="mec-options-fields">
56
  <input type="hidden" name="mec-ix-action" value="save-sync-options" />
57
- <button class="button button-primary mec-button-primary" type="submit"><?php _e('Save', 'mec'); ?></button>
58
  </div>
59
  </form>
60
  <?php endif; ?>
5
  $ix = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php _e('Auto Synchronization', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab nav-tab-active"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-thirdparty'); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="sync-content w-clearfix extra">
20
  <?php if(!$this->main->getPRO()): ?>
21
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use synchronization feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
22
  <?php else: ?>
23
  <form id="mec_ix_sync_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
24
  <div class="mec-form-row">
25
  <input type="hidden" name="ix[sync_g_import]" value="0" />
26
  <label class="mec-col-3" for="mec_ix_sync_g_import">
27
  <input type="checkbox" id="mec_ix_sync_g_import" name="ix[sync_g_import]" value="1" <?php echo (isset($ix['sync_g_import']) and $ix['sync_g_import'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_g_import_cron').toggleClass('mec-util-hidden');" />
28
+ <?php _e('Auto Google Import', 'modern-events-calendar-lite'); ?>
29
  </label>
30
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'g-import.php'; ?>
31
+ <p id="mec_sync_g_import_cron" class="mec-col-12 <?php echo (isset($ix['sync_g_import']) and $ix['sync_g_import'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php _e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file atleast once per day otherwise it won't import Google Calendar events.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
32
  </div>
33
  <div class="mec-form-row">
34
  <input type="hidden" name="ix[sync_g_export]" value="0" />
35
  <label class="mec-col-3" for="mec_ix_sync_g_export">
36
  <input type="checkbox" id="mec_ix_sync_g_export" name="ix[sync_g_export]" value="1" <?php echo (isset($ix['sync_g_export']) and $ix['sync_g_export'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_g_export_cron').toggleClass('mec-util-hidden');" />
37
+ <?php _e('Auto Google Export', 'modern-events-calendar-lite'); ?>
38
  </label>
39
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'g-export.php'; ?>
40
+ <p id="mec_sync_g_export_cron" class="mec-col-12 <?php echo (isset($ix['sync_g_export']) and $ix['sync_g_export'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php _e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file atleast once per day otherwise it won't export your website events into Google Calendar.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
41
  </div>
42
 
43
  <?php if(false): // Disabled for Now ?>
45
  <input type="hidden" name="ix[sync_f_import]" value="0" />
46
  <label class="mec-col-3" for="mec_ix_sync_f_import">
47
  <input type="checkbox" id="mec_ix_sync_f_import" name="ix[sync_f_import]" value="1" <?php echo (isset($ix['sync_f_import']) and $ix['sync_f_import'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_f_import_cron').toggleClass('mec-util-hidden');" />
48
+ <?php _e('Auto Facebook Import', 'modern-events-calendar-lite'); ?>
49
  </label>
50
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'f-import.php'; ?>
51
+ <p id="mec_sync_f_import_cron" class="mec-col-12 <?php echo (isset($ix['sync_f_import']) and $ix['sync_f_import'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php _e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file atleast once per day otherwise it won't import any event from Facebook.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
52
  </div>
53
  <?php endif; ?>
54
 
55
  <div class="mec-options-fields">
56
  <input type="hidden" name="mec-ix-action" value="save-sync-options" />
57
+ <button class="button button-primary mec-button-primary" type="submit"><?php _e('Save', 'modern-events-calendar-lite'); ?></button>
58
  </div>
59
  </form>
60
  <?php endif; ?>
app/features/ix/thirdparty.php CHANGED
@@ -5,31 +5,31 @@ defined('MECEXEC') or die();
5
  $third_parties = $this->main->get_integrated_plugins_for_import();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
- <h1><?php _e('MEC Import / Export', 'mec'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'mec'); ?></a>
11
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'mec'); ?></a>
12
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'mec'); ?></a>
13
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'mec'); ?></a>
14
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'mec'); ?></a>
15
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'mec'); ?></a>
16
- <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab nav-tab-active"><?php echo __('Third Party Plugins', 'mec'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
- <h3><?php _e('Third Party Plugins', 'mec'); ?></h3>
21
  <form id="mec_thirdparty_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
22
  <div class="mec-form-row">
23
- <p><?php echo sprintf(__("You can import events from following integrated plugins to %s.", 'mec'), '<strong>'.__('Modern Events Calendar', 'mec').'</strong>'); ?></p>
24
  </div>
25
  <div class="mec-form-row">
26
- <select name="ix[third-party]" id="third_party" title="<?php esc_attr_e('Third Party', 'mec') ?>">
27
  <?php foreach($third_parties as $third_party=>$label): ?>
28
  <option <?php echo ((isset($this->ix['third-party']) and $this->ix['third-party'] == $third_party) ? 'selected="selected"' : ''); ?> value="<?php echo $third_party; ?>"><?php echo $label; ?></option>
29
  <?php endforeach; ?>
30
  </select>
31
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-start" />
32
- <button class="button button-primary"><?php _e('Start', 'mec'); ?></button>
33
  </div>
34
  </form>
35
 
@@ -38,63 +38,63 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
38
  <?php if($this->response['success'] == 0): ?>
39
  <div class="mec-error"><?php echo $this->response['message']; ?></div>
40
  <?php elseif(isset($this->response['data']['count']) && !$this->response['data']['count']): ?>
41
- <div class="mec-error"><?php echo __('No events found!', 'mec'); ?></div>
42
  <?php else: ?>
43
  <form id="mec_thirdparty_import_do_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
44
  <div class="mec-ix-thirdparty-import-events mec-options-fields">
45
- <h4><?php _e('Found Events', 'mec'); ?></h4>
46
- <div class="mec-success"><?php echo sprintf(__('We found %s events. Please select your desired events to import.', 'mec'), '<strong>'.$this->response['data']['count'].'</strong>'); ?></div>
47
  <ul class="mec-select-deselect-actions" data-for="#mec_import_thirdparty_events">
48
- <li data-action="select-all"><?php _e('Select All', 'mec'); ?></li>
49
- <li data-action="deselect-all"><?php _e('Deselect All', 'mec'); ?></li>
50
- <li data-action="toggle"><?php _e('Toggle', 'mec'); ?></li>
51
  </ul>
52
  <ul id="mec_import_thirdparty_events">
53
  <?php foreach($this->response['data']['events'] as $event): if(trim($event->post_title) == '') continue; ?>
54
  <li>
55
  <label>
56
  <input type="checkbox" name="tp-events[]" value="<?php echo $event->ID; ?>" checked="checked" />
57
- <span><?php echo sprintf(__('Event Title: %s', 'mec'), '<strong>'.$event->post_title.'</strong>'); ?></span>
58
  </label>
59
  </li>
60
  <?php endforeach; ?>
61
  </ul>
62
  </div>
63
  <div class="mec-options-fields">
64
- <h4><?php _e('Import Options', 'mec'); ?></h4>
65
  <div class="mec-form-row">
66
  <label>
67
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
68
  <?php
69
- if($this->ix['third-party'] == 'weekly-class') _e('Import Instructors', 'mec');
70
- else _e('Import Organizers', 'mec');
71
  ?>
72
  </label>
73
  </div>
74
  <div class="mec-form-row">
75
  <label>
76
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
77
- <?php _e('Import Locations', 'mec'); ?>
78
  </label>
79
  </div>
80
  <div class="mec-form-row">
81
  <label>
82
  <input type="checkbox" name="ix[import_categories]" value="1" checked="checked" />
83
  <?php
84
- if($this->ix['third-party'] == 'weekly-class') _e('Import Class Types', 'mec');
85
- else _e('Import Categories', 'mec');
86
  ?>
87
  </label>
88
  </div>
89
  <div class="mec-form-row">
90
  <label>
91
  <input type="checkbox" name="ix[import_featured_image]" value="1" checked="checked" />
92
- <?php _e('Import Featured Images', 'mec'); ?>
93
  </label>
94
  </div>
95
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-do" />
96
  <input type="hidden" name="ix[third-party]" value="<?php echo $this->ix['third-party']; ?>" />
97
- <button id="mec_ix_thirdparty_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'mec'); ?></button>
98
  </div>
99
  </form>
100
  <?php endif; ?>
@@ -104,8 +104,8 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
104
  <?php if($this->response['success'] == 0): ?>
105
  <div class="mec-error"><?php echo $this->response['message']; ?></div>
106
  <?php else: ?>
107
- <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website.', 'mec'), '<strong>'.$this->response['data'].'</strong>'); ?></div>
108
- <div class="info-msg"><strong><?php _e('Attention', 'mec'); ?>:</strong> <?php _e("Although we tried our best to make the events completely compatible with MEC but some modification might be needed. We suggest you to edit the imported listings one by one on MEC edit event page and make sure thay're correct.", 'mec'); ?></div>
109
  <?php endif; ?>
110
  </div>
111
  <?php endif; ?>
5
  $third_parties = $this->main->get_integrated_plugins_for_import();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo $this->main->remove_qs_var('tab'); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-g-calendar-export'); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-f-calendar-import'); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-export'); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-sync'); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-import'); ?>" class="nav-tab nav-tab-active"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
17
  </h2>
18
  <div class="mec-container">
19
  <div class="import-content w-clearfix extra">
20
+ <h3><?php _e('Third Party Plugins', 'modern-events-calendar-lite'); ?></h3>
21
  <form id="mec_thirdparty_import_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
22
  <div class="mec-form-row">
23
+ <p><?php echo sprintf(__("You can import events from following integrated plugins to %s.", 'modern-events-calendar-lite'), '<strong>'.__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
24
  </div>
25
  <div class="mec-form-row">
26
+ <select name="ix[third-party]" id="third_party" title="<?php esc_attr_e('Third Party', 'modern-events-calendar-lite') ?>">
27
  <?php foreach($third_parties as $third_party=>$label): ?>
28
  <option <?php echo ((isset($this->ix['third-party']) and $this->ix['third-party'] == $third_party) ? 'selected="selected"' : ''); ?> value="<?php echo $third_party; ?>"><?php echo $label; ?></option>
29
  <?php endforeach; ?>
30
  </select>
31
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-start" />
32
+ <button class="button button-primary"><?php _e('Start', 'modern-events-calendar-lite'); ?></button>
33
  </div>
34
  </form>
35
 
38
  <?php if($this->response['success'] == 0): ?>
39
  <div class="mec-error"><?php echo $this->response['message']; ?></div>
40
  <?php elseif(isset($this->response['data']['count']) && !$this->response['data']['count']): ?>
41
+ <div class="mec-error"><?php echo __('No events found!', 'modern-events-calendar-lite'); ?></div>
42
  <?php else: ?>
43
  <form id="mec_thirdparty_import_do_form" action="<?php echo $this->main->get_full_url(); ?>" method="POST">
44
  <div class="mec-ix-thirdparty-import-events mec-options-fields">
45
+ <h4><?php _e('Found Events', 'modern-events-calendar-lite'); ?></h4>
46
+ <div class="mec-success"><?php echo sprintf(__('We found %s events. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data']['count'].'</strong>'); ?></div>
47
  <ul class="mec-select-deselect-actions" data-for="#mec_import_thirdparty_events">
48
+ <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
49
+ <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
50
+ <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
51
  </ul>
52
  <ul id="mec_import_thirdparty_events">
53
  <?php foreach($this->response['data']['events'] as $event): if(trim($event->post_title) == '') continue; ?>
54
  <li>
55
  <label>
56
  <input type="checkbox" name="tp-events[]" value="<?php echo $event->ID; ?>" checked="checked" />
57
+ <span><?php echo sprintf(__('Event Title: %s', 'modern-events-calendar-lite'), '<strong>'.$event->post_title.'</strong>'); ?></span>
58
  </label>
59
  </li>
60
  <?php endforeach; ?>
61
  </ul>
62
  </div>
63
  <div class="mec-options-fields">
64
+ <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
65
  <div class="mec-form-row">
66
  <label>
67
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
68
  <?php
69
+ if($this->ix['third-party'] == 'weekly-class') _e('Import Instructors', 'modern-events-calendar-lite');
70
+ else _e('Import Organizers', 'modern-events-calendar-lite');
71
  ?>
72
  </label>
73
  </div>
74
  <div class="mec-form-row">
75
  <label>
76
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
77
+ <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
78
  </label>
79
  </div>
80
  <div class="mec-form-row">
81
  <label>
82
  <input type="checkbox" name="ix[import_categories]" value="1" checked="checked" />
83
  <?php
84
+ if($this->ix['third-party'] == 'weekly-class') _e('Import Class Types', 'modern-events-calendar-lite');
85
+ else _e('Import Categories', 'modern-events-calendar-lite');
86
  ?>
87
  </label>
88
  </div>
89
  <div class="mec-form-row">
90
  <label>
91
  <input type="checkbox" name="ix[import_featured_image]" value="1" checked="checked" />
92
+ <?php _e('Import Featured Images', 'modern-events-calendar-lite'); ?>
93
  </label>
94
  </div>
95
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-do" />
96
  <input type="hidden" name="ix[third-party]" value="<?php echo $this->ix['third-party']; ?>" />
97
+ <button id="mec_ix_thirdparty_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'modern-events-calendar-lite'); ?></button>
98
  </div>
99
  </form>
100
  <?php endif; ?>
104
  <?php if($this->response['success'] == 0): ?>
105
  <div class="mec-error"><?php echo $this->response['message']; ?></div>
106
  <?php else: ?>
107
+ <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data'].'</strong>'); ?></div>
108
+ <div class="info-msg"><strong><?php _e('Attention', 'modern-events-calendar-lite'); ?>:</strong> <?php _e("Although we tried our best to make the events completely compatible with MEC but some modification might be needed. We suggest you to edit the imported listings one by one on MEC edit event page and make sure thay're correct.", 'modern-events-calendar-lite'); ?></div>
109
  <?php endif; ?>
110
  </div>
111
  <?php endif; ?>
app/features/labels.php CHANGED
@@ -57,8 +57,8 @@ class MEC_feature_labels extends MEC_base
57
  */
58
  public function register_taxonomy()
59
  {
60
- $singular_label = $this->main->m('taxonomy_label', __('Label', 'mec'));
61
- $plural_label = $this->main->m('taxonomy_labels', __('Labels', 'mec'));
62
 
63
  register_taxonomy(
64
  'mec_label',
@@ -68,14 +68,14 @@ class MEC_feature_labels extends MEC_base
68
  'labels'=>array(
69
  'name'=>$plural_label,
70
  'singular_name'=>$singular_label,
71
- 'all_items'=>sprintf(__('All %s', 'mec'), $plural_label),
72
- 'edit_item'=>sprintf(__('Edit %s', 'mec'), $singular_label),
73
- 'view_item'=>sprintf(__('View %s', 'mec'), $singular_label),
74
- 'update_item'=>sprintf(__('Update %s', 'mec'), $singular_label),
75
- 'add_new_item'=>sprintf(__('Add New %s', 'mec'), $singular_label),
76
- 'new_item_name'=>sprintf(__('New %s Name', 'mec'), $singular_label),
77
- 'popular_items'=>sprintf(__('Popular %s', 'mec'), $plural_label),
78
- 'search_items'=>sprintf(__('Search %s', 'mec'), $plural_label),
79
  ),
80
  'rewrite'=>array('slug'=>'events-label'),
81
  'public'=>false,
@@ -98,11 +98,11 @@ class MEC_feature_labels extends MEC_base
98
  ?>
99
  <tr class="form-field">
100
  <th scope="row" valign="top">
101
- <label for="mec_color"><?php _e('Color', 'mec'); ?></label>
102
  </th>
103
  <td>
104
  <input type="text" name="color" id="mec_color" value="<?php echo $color; ?>" data-default-color="<?php echo $color; ?>" class="mec-color-picker" />
105
- <p class="description"><?php _e('Select label color', 'mec'); ?></p>
106
  </td>
107
  </tr>
108
  <?php
@@ -116,9 +116,9 @@ class MEC_feature_labels extends MEC_base
116
  {
117
  ?>
118
  <div class="form-field">
119
- <label for="mec_color"><?php _e('Color', 'mec'); ?></label>
120
  <input type="text" name="color" id="mec_color" value="" data-default-color="<?php echo $this->main->get_default_label_color(); ?>" class="mec-color-picker" />
121
- <p class="description"><?php _e('Select label color', 'mec'); ?></p>
122
  </div>
123
  <?php
124
  }
@@ -147,11 +147,11 @@ class MEC_feature_labels extends MEC_base
147
  unset($columns['description']);
148
  unset($columns['posts']);
149
 
150
- $columns['id'] = __('ID', 'mec');
151
- $columns['name'] = __('Name', 'mec');
152
- $columns['color'] = __('Color', 'mec');
153
- $columns['posts'] = __('Count', 'mec');
154
- $columns['slug'] = __('Slug', 'mec');
155
 
156
  return $columns;
157
  }
@@ -191,7 +191,7 @@ class MEC_feature_labels extends MEC_base
191
  */
192
  public function register_meta_boxes()
193
  {
194
- add_meta_box('mec_metabox_label', sprintf(__('Event %s', 'mec'), $this->main->m('taxonomy_labels', __('Labels', 'mec'))), array($this, 'meta_box_labels'), $this->main->get_main_post_type(), 'side');
195
  }
196
 
197
  /**
57
  */
58
  public function register_taxonomy()
59
  {
60
+ $singular_label = $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite'));
61
+ $plural_label = $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite'));
62
 
63
  register_taxonomy(
64
  'mec_label',
68
  'labels'=>array(
69
  'name'=>$plural_label,
70
  'singular_name'=>$singular_label,
71
+ 'all_items'=>sprintf(__('All %s', 'modern-events-calendar-lite'), $plural_label),
72
+ 'edit_item'=>sprintf(__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
73
+ 'view_item'=>sprintf(__('View %s', 'modern-events-calendar-lite'), $singular_label),
74
+ 'update_item'=>sprintf(__('Update %s', 'modern-events-calendar-lite'), $singular_label),
75
+ 'add_new_item'=>sprintf(__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
76
+ 'new_item_name'=>sprintf(__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
77
+ 'popular_items'=>sprintf(__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
78
+ 'search_items'=>sprintf(__('Search %s', 'modern-events-calendar-lite'), $plural_label),
79
  ),
80
  'rewrite'=>array('slug'=>'events-label'),
81
  'public'=>false,
98
  ?>
99
  <tr class="form-field">
100
  <th scope="row" valign="top">
101
+ <label for="mec_color"><?php _e('Color', 'modern-events-calendar-lite'); ?></label>
102
  </th>
103
  <td>
104
  <input type="text" name="color" id="mec_color" value="<?php echo $color; ?>" data-default-color="<?php echo $color; ?>" class="mec-color-picker" />
105
+ <p class="description"><?php _e('Select label color', 'modern-events-calendar-lite'); ?></p>
106
  </td>
107
  </tr>
108
  <?php
116
  {
117
  ?>
118
  <div class="form-field">
119
+ <label for="mec_color"><?php _e('Color', 'modern-events-calendar-lite'); ?></label>
120
  <input type="text" name="color" id="mec_color" value="" data-default-color="<?php echo $this->main->get_default_label_color(); ?>" class="mec-color-picker" />
121
+ <p class="description"><?php _e('Select label color', 'modern-events-calendar-lite'); ?></p>
122
  </div>
123
  <?php
124
  }
147
  unset($columns['description']);
148
  unset($columns['posts']);
149
 
150
+ $columns['id'] = __('ID', 'modern-events-calendar-lite');
151
+ $columns['name'] = __('Name', 'modern-events-calendar-lite');
152
+ $columns['color'] = __('Color', 'modern-events-calendar-lite');
153
+ $columns['posts'] = __('Count', 'modern-events-calendar-lite');
154
+ $columns['slug'] = __('Slug', 'modern-events-calendar-lite');
155
 
156
  return $columns;
157
  }
191
  */
192
  public function register_meta_boxes()
193
  {
194
+ add_meta_box('mec_metabox_label', sprintf(__('Event %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite'))), array($this, 'meta_box_labels'), $this->main->get_main_post_type(), 'side');
195
  }
196
 
197
  /**
app/features/locations.php CHANGED
@@ -55,8 +55,8 @@ class MEC_feature_locations extends MEC_base
55
  */
56
  public function register_taxonomy()
57
  {
58
- $singular_label = $this->main->m('taxonomy_location', __('Location', 'mec'));
59
- $plural_label = $this->main->m('taxonomy_locations', __('Locations', 'mec'));
60
 
61
  register_taxonomy(
62
  'mec_location',
@@ -66,14 +66,14 @@ class MEC_feature_locations extends MEC_base
66
  'labels'=>array(
67
  'name'=>$plural_label,
68
  'singular_name'=>$singular_label,
69
- 'all_items'=>sprintf(__('All %s', 'mec'), $plural_label),
70
- 'edit_item'=>sprintf(__('Edit %s', 'mec'), $singular_label),
71
- 'view_item'=>sprintf(__('View %s', 'mec'), $singular_label),
72
- 'update_item'=>sprintf(__('Update %s', 'mec'), $singular_label),
73
- 'add_new_item'=>sprintf(__('Add New %s', 'mec'), $singular_label),
74
- 'new_item_name'=>sprintf(__('New %s Name', 'mec'), $singular_label),
75
- 'popular_items'=>sprintf(__('Popular %s', 'mec'), $plural_label),
76
- 'search_items'=>sprintf(__('Search %s', 'mec'), $plural_label),
77
  ),
78
  'rewrite'=>array('slug'=>'events-location'),
79
  'public'=>false,
@@ -101,10 +101,10 @@ class MEC_feature_locations extends MEC_base
101
  ?>
102
  <tr class="form-field">
103
  <th scope="row" valign="top">
104
- <label for="mec_address"><?php _e('Address', 'mec'); ?></label>
105
  </th>
106
  <td>
107
- <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Enter the location address', 'mec'); ?>" name="address" id="mec_address" value="<?php echo $address; ?>" />
108
  <script type="text/javascript">
109
  jQuery(document).ready(function()
110
  {
@@ -118,29 +118,29 @@ class MEC_feature_locations extends MEC_base
118
  </tr>
119
  <tr class="form-field">
120
  <th scope="row" valign="top">
121
- <label for="mec_latitude"><?php _e('Latitude', 'mec'); ?></label>
122
  </th>
123
  <td>
124
- <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo latitude (Optional)', 'mec'); ?>" name="latitude" id="mec_latitude" value="<?php echo $latitude; ?>" />
125
  </td>
126
  </tr>
127
  <tr class="form-field">
128
  <th scope="row" valign="top">
129
- <label for="mec_longitude"><?php _e('Longitude', 'mec'); ?></label>
130
  </th>
131
  <td>
132
- <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo longitude (Optional)', 'mec'); ?>" name="longitude" id="mec_longitude" value="<?php echo $longitude; ?>" />
133
  </td>
134
  </tr>
135
  <tr class="form-field">
136
  <th scope="row" valign="top">
137
- <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'mec'); ?></label>
138
  </th>
139
  <td>
140
  <div id="mec_thumbnail_img"><?php if(trim($thumbnail) != '') echo '<img src="'.$thumbnail.'" />'; ?></div>
141
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="<?php echo $thumbnail; ?>" />
142
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'mec'); ?></button>
143
- <button type="button" class="mec_remove_image_button button <?php echo (!trim($thumbnail) ? 'mec-util-hidden' : ''); ?>"><?php echo __('Remove image', 'mec'); ?></button>
144
  </td>
145
  </tr>
146
  <?php
@@ -155,8 +155,8 @@ class MEC_feature_locations extends MEC_base
155
  $this->main->load_map_assets();
156
  ?>
157
  <div class="form-field">
158
- <label for="mec_address"><?php _e('Address', 'mec'); ?></label>
159
- <input type="text" name="address" placeholder="<?php esc_attr_e('Enter the location address', 'mec'); ?>" id="mec_address" value="" />
160
  <script type="text/javascript">
161
  jQuery(document).ready(function()
162
  {
@@ -168,19 +168,19 @@ class MEC_feature_locations extends MEC_base
168
  </script>
169
  </div>
170
  <div class="form-field">
171
- <label for="mec_latitude"><?php _e('Latitude', 'mec'); ?></label>
172
- <input type="text" name="latitude" placeholder="<?php esc_attr_e('Geo latitude (Optional)', 'mec'); ?>" id="mec_latitude" value="" />
173
  </div>
174
  <div class="form-field">
175
- <label for="mec_longitude"><?php _e('Longitude', 'mec'); ?></label>
176
- <input type="text" name="longitude" placeholder="<?php esc_attr_e('Geo longitude (Optional)', 'mec'); ?>" id="mec_longitude" value="" />
177
  </div>
178
  <div class="form-field">
179
- <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'mec'); ?></label>
180
  <div id="mec_thumbnail_img"></div>
181
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="" />
182
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'mec'); ?></button>
183
- <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'mec'); ?></button>
184
  </div>
185
  <?php
186
  }
@@ -225,11 +225,11 @@ class MEC_feature_locations extends MEC_base
225
  unset($columns['description']);
226
  unset($columns['posts']);
227
 
228
- $columns['id'] = __('ID', 'mec');
229
- $columns['name'] = __('Location', 'mec');
230
- $columns['address'] = __('Address', 'mec');
231
- $columns['posts'] = __('Count', 'mec');
232
- $columns['slug'] = __('Slug', 'mec');
233
 
234
  return $columns;
235
  }
@@ -278,25 +278,25 @@ class MEC_feature_locations extends MEC_base
278
  $dont_show_map = get_post_meta($post->ID, 'mec_dont_show_map', true);
279
  ?>
280
  <div class="mec-meta-box-fields" id="mec-location">
281
- <h4><?php echo sprintf(__('Event %s', 'mec'), $this->main->m('taxonomy_location', __('Location', 'mec'))); ?></h4>
282
  <div class="mec-form-row">
283
- <select name="mec[location_id]" id="mec_location_id" title="<?php echo esc_attr__($this->main->m('taxonomy_location', __('Location', 'mec')), 'mec'); ?>">
284
- <option value="1"><?php _e('Hide location', 'mec'); ?></option>
285
- <option value="0"><?php _e('Insert a new location', 'mec'); ?></option>
286
  <?php foreach($locations as $location): ?>
287
  <option <?php if($location_id == $location->term_id) echo 'selected="selected"'; ?> value="<?php echo $location->term_id; ?>"><?php echo $location->name; ?></option>
288
  <?php endforeach; ?>
289
  </select>
290
- <a class="mec-tooltip" title="<?php esc_attr_e('Choose one of saved locations or insert new one below.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
291
  </div>
292
  <div id="mec_location_new_container">
293
  <div class="mec-form-row">
294
- <input type="text" name="mec[location][name]" id="mec_location_name" value="" placeholder="<?php _e('Location Name', 'mec'); ?>" />
295
- <p class="description"><?php _e('eg. City Hall', 'mec'); ?></p>
296
  </div>
297
  <div class="mec-form-row">
298
- <input type="text" name="mec[location][address]" id="mec_location_address" value="" placeholder="<?php _e('Event Location', 'mec'); ?>" />
299
- <p class="description"><?php _e('eg. City hall, Manhattan, New York', 'mec'); ?></p>
300
  <?php if(isset($settings['google_maps_api_key']) and trim($settings['google_maps_api_key'])): ?>
301
  <script type="text/javascript">
302
  jQuery(document).ready(function()
@@ -310,29 +310,29 @@ class MEC_feature_locations extends MEC_base
310
  <?php endif; ?>
311
  </div>
312
  <div class="mec-form-row mec-lat-lng-row">
313
- <input class="mec-has-tip" type="text" name="mec[location][latitude]" id="mec_location_latitude" value="" placeholder="<?php _e('Latitude', 'mec'); ?>" />
314
- <input class="mec-has-tip" type="text" name="mec[location][longitude]" id="mec_location_longitude" value="" placeholder="<?php _e('Longitude', 'mec'); ?>" />
315
- <a class="mec-tooltip" title="<?php esc_attr_e('If you leave the latitude and longitude empty, Modern Events Calendar tries to convert the location address to geopoint.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
316
  </div>
317
  <?php /* Don't show this section in FES */ if(is_admin()): ?>
318
  <div class="mec-form-row mec-thumbnail-row">
319
  <div id="mec_location_thumbnail_img"></div>
320
  <input type="hidden" name="mec[location][thumbnail]" id="mec_location_thumbnail" value="" />
321
- <button type="button" class="mec_location_upload_image_button button" id="mec_location_thumbnail_button"><?php echo __('Choose image', 'mec'); ?></button>
322
- <button type="button" class="mec_location_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'mec'); ?></button>
323
  </div>
324
  <?php else: ?>
325
  <div class="mec-form-row mec-thumbnail-row">
326
  <span id="mec_fes_location_thumbnail_img"></span>
327
  <input type="hidden" name="mec[location][thumbnail]" id="mec_fes_location_thumbnail" value="" />
328
  <input type="file" id="mec_fes_location_thumbnail_file" onchange="mec_fes_upload_location_thumbnail();" />
329
- <span class="mec_fes_location_remove_image_button button mec-util-hidden" id="mec_fes_location_remove_image_button"><?php echo __('Remove image', 'mec'); ?></span>
330
  </div>
331
  <?php endif; ?>
332
  </div>
333
  <div class="mec-form-row">
334
  <input type="hidden" name="mec[dont_show_map]" value="0" />
335
- <input type="checkbox" id="mec_location_dont_show_map" name="mec[dont_show_map]" value="1" <?php echo ($dont_show_map ? 'checked="checked"' : ''); ?> /><label for="mec_location_dont_show_map"><?php echo __("Don't show map in single event page", 'mec'); ?></label>
336
  </div>
337
  </div>
338
  <?php
55
  */
56
  public function register_taxonomy()
57
  {
58
+ $singular_label = $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite'));
59
+ $plural_label = $this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite'));
60
 
61
  register_taxonomy(
62
  'mec_location',
66
  'labels'=>array(
67
  'name'=>$plural_label,
68
  'singular_name'=>$singular_label,
69
+ 'all_items'=>sprintf(__('All %s', 'modern-events-calendar-lite'), $plural_label),
70
+ 'edit_item'=>sprintf(__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
71
+ 'view_item'=>sprintf(__('View %s', 'modern-events-calendar-lite'), $singular_label),
72
+ 'update_item'=>sprintf(__('Update %s', 'modern-events-calendar-lite'), $singular_label),
73
+ 'add_new_item'=>sprintf(__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
74
+ 'new_item_name'=>sprintf(__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
75
+ 'popular_items'=>sprintf(__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
76
+ 'search_items'=>sprintf(__('Search %s', 'modern-events-calendar-lite'), $plural_label),
77
  ),
78
  'rewrite'=>array('slug'=>'events-location'),
79
  'public'=>false,
101
  ?>
102
  <tr class="form-field">
103
  <th scope="row" valign="top">
104
+ <label for="mec_address"><?php _e('Address', 'modern-events-calendar-lite'); ?></label>
105
  </th>
106
  <td>
107
+ <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Enter the location address', 'modern-events-calendar-lite'); ?>" name="address" id="mec_address" value="<?php echo $address; ?>" />
108
  <script type="text/javascript">
109
  jQuery(document).ready(function()
110
  {
118
  </tr>
119
  <tr class="form-field">
120
  <th scope="row" valign="top">
121
+ <label for="mec_latitude"><?php _e('Latitude', 'modern-events-calendar-lite'); ?></label>
122
  </th>
123
  <td>
124
+ <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo latitude (Optional)', 'modern-events-calendar-lite'); ?>" name="latitude" id="mec_latitude" value="<?php echo $latitude; ?>" />
125
  </td>
126
  </tr>
127
  <tr class="form-field">
128
  <th scope="row" valign="top">
129
+ <label for="mec_longitude"><?php _e('Longitude', 'modern-events-calendar-lite'); ?></label>
130
  </th>
131
  <td>
132
+ <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo longitude (Optional)', 'modern-events-calendar-lite'); ?>" name="longitude" id="mec_longitude" value="<?php echo $longitude; ?>" />
133
  </td>
134
  </tr>
135
  <tr class="form-field">
136
  <th scope="row" valign="top">
137
+ <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
138
  </th>
139
  <td>
140
  <div id="mec_thumbnail_img"><?php if(trim($thumbnail) != '') echo '<img src="'.$thumbnail.'" />'; ?></div>
141
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="<?php echo $thumbnail; ?>" />
142
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
143
+ <button type="button" class="mec_remove_image_button button <?php echo (!trim($thumbnail) ? 'mec-util-hidden' : ''); ?>"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
144
  </td>
145
  </tr>
146
  <?php
155
  $this->main->load_map_assets();
156
  ?>
157
  <div class="form-field">
158
+ <label for="mec_address"><?php _e('Address', 'modern-events-calendar-lite'); ?></label>
159
+ <input type="text" name="address" placeholder="<?php esc_attr_e('Enter the location address', 'modern-events-calendar-lite'); ?>" id="mec_address" value="" />
160
  <script type="text/javascript">
161
  jQuery(document).ready(function()
162
  {
168
  </script>
169
  </div>
170
  <div class="form-field">
171
+ <label for="mec_latitude"><?php _e('Latitude', 'modern-events-calendar-lite'); ?></label>
172
+ <input type="text" name="latitude" placeholder="<?php esc_attr_e('Geo latitude (Optional)', 'modern-events-calendar-lite'); ?>" id="mec_latitude" value="" />
173
  </div>
174
  <div class="form-field">
175
+ <label for="mec_longitude"><?php _e('Longitude', 'modern-events-calendar-lite'); ?></label>
176
+ <input type="text" name="longitude" placeholder="<?php esc_attr_e('Geo longitude (Optional)', 'modern-events-calendar-lite'); ?>" id="mec_longitude" value="" />
177
  </div>
178
  <div class="form-field">
179
+ <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
180
  <div id="mec_thumbnail_img"></div>
181
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="" />
182
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
183
+ <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
184
  </div>
185
  <?php
186
  }
225
  unset($columns['description']);
226
  unset($columns['posts']);
227
 
228
+ $columns['id'] = __('ID', 'modern-events-calendar-lite');
229
+ $columns['name'] = __('Location', 'modern-events-calendar-lite');
230
+ $columns['address'] = __('Address', 'modern-events-calendar-lite');
231
+ $columns['posts'] = __('Count', 'modern-events-calendar-lite');
232
+ $columns['slug'] = __('Slug', 'modern-events-calendar-lite');
233
 
234
  return $columns;
235
  }
278
  $dont_show_map = get_post_meta($post->ID, 'mec_dont_show_map', true);
279
  ?>
280
  <div class="mec-meta-box-fields" id="mec-location">
281
+ <h4><?php echo sprintf(__('Event %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite'))); ?></h4>
282
  <div class="mec-form-row">
283
+ <select name="mec[location_id]" id="mec_location_id" title="<?php echo esc_attr__($this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
284
+ <option value="1"><?php _e('Hide location', 'modern-events-calendar-lite'); ?></option>
285
+ <option value="0"><?php _e('Insert a new location', 'modern-events-calendar-lite'); ?></option>
286
  <?php foreach($locations as $location): ?>
287
  <option <?php if($location_id == $location->term_id) echo 'selected="selected"'; ?> value="<?php echo $location->term_id; ?>"><?php echo $location->name; ?></option>
288
  <?php endforeach; ?>
289
  </select>
290
+ <a class="mec-tooltip" title="<?php esc_attr_e('Choose one of saved locations or insert new one below.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
291
  </div>
292
  <div id="mec_location_new_container">
293
  <div class="mec-form-row">
294
+ <input type="text" name="mec[location][name]" id="mec_location_name" value="" placeholder="<?php _e('Location Name', 'modern-events-calendar-lite'); ?>" />
295
+ <p class="description"><?php _e('eg. City Hall', 'modern-events-calendar-lite'); ?></p>
296
  </div>
297
  <div class="mec-form-row">
298
+ <input type="text" name="mec[location][address]" id="mec_location_address" value="" placeholder="<?php _e('Event Location', 'modern-events-calendar-lite'); ?>" />
299
+ <p class="description"><?php _e('eg. City hall, Manhattan, New York', 'modern-events-calendar-lite'); ?></p>
300
  <?php if(isset($settings['google_maps_api_key']) and trim($settings['google_maps_api_key'])): ?>
301
  <script type="text/javascript">
302
  jQuery(document).ready(function()
310
  <?php endif; ?>
311
  </div>
312
  <div class="mec-form-row mec-lat-lng-row">
313
+ <input class="mec-has-tip" type="text" name="mec[location][latitude]" id="mec_location_latitude" value="" placeholder="<?php _e('Latitude', 'modern-events-calendar-lite'); ?>" />
314
+ <input class="mec-has-tip" type="text" name="mec[location][longitude]" id="mec_location_longitude" value="" placeholder="<?php _e('Longitude', 'modern-events-calendar-lite'); ?>" />
315
+ <a class="mec-tooltip" title="<?php esc_attr_e('If you leave the latitude and longitude empty, Modern Events Calendar tries to convert the location address to geopoint.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
316
  </div>
317
  <?php /* Don't show this section in FES */ if(is_admin()): ?>
318
  <div class="mec-form-row mec-thumbnail-row">
319
  <div id="mec_location_thumbnail_img"></div>
320
  <input type="hidden" name="mec[location][thumbnail]" id="mec_location_thumbnail" value="" />
321
+ <button type="button" class="mec_location_upload_image_button button" id="mec_location_thumbnail_button"><?php echo __('Choose image', 'modern-events-calendar-lite'); ?></button>
322
+ <button type="button" class="mec_location_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
323
  </div>
324
  <?php else: ?>
325
  <div class="mec-form-row mec-thumbnail-row">
326
  <span id="mec_fes_location_thumbnail_img"></span>
327
  <input type="hidden" name="mec[location][thumbnail]" id="mec_fes_location_thumbnail" value="" />
328
  <input type="file" id="mec_fes_location_thumbnail_file" onchange="mec_fes_upload_location_thumbnail();" />
329
+ <span class="mec_fes_location_remove_image_button button mec-util-hidden" id="mec_fes_location_remove_image_button"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></span>
330
  </div>
331
  <?php endif; ?>
332
  </div>
333
  <div class="mec-form-row">
334
  <input type="hidden" name="mec[dont_show_map]" value="0" />
335
+ <input type="checkbox" id="mec_location_dont_show_map" name="mec[dont_show_map]" value="1" <?php echo ($dont_show_map ? 'checked="checked"' : ''); ?> /><label for="mec_location_dont_show_map"><?php echo __("Don't show map in single event page", 'modern-events-calendar-lite'); ?></label>
336
  </div>
337
  </div>
338
  <?php
app/features/mec.php CHANGED
@@ -185,14 +185,14 @@ class MEC_feature_mec extends MEC_base
185
  remove_menu_page('edit.php?post_type=mec-events');
186
  remove_menu_page('edit.php?post_type=mec_calendars');
187
 
188
- add_submenu_page('mec-intro', __('Add Event', 'mec'), __('Add Event', 'mec'), 'edit_posts', 'post-new.php?post_type='.$this->PT);
189
- add_submenu_page('mec-intro', __('Tags', 'mec'), __('Tags', 'mec'), 'edit_others_posts', 'edit-tags.php?taxonomy=post_tag&post_type='.$this->PT);
190
- add_submenu_page('mec-intro', $this->main->m('taxonomy_categories', __('Categories', 'mec')), $this->main->m('taxonomy_categories', __('Categories', 'mec')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_category&post_type='.$this->PT);
191
- add_submenu_page('mec-intro', $this->main->m('taxonomy_labels', __('Labels', 'mec')), $this->main->m('taxonomy_labels', __('Labels', 'mec')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_label&post_type='.$this->PT);
192
- add_submenu_page('mec-intro', $this->main->m('taxonomy_locations', __('Locations', 'mec')), $this->main->m('taxonomy_locations', __('Locations', 'mec')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_location&post_type='.$this->PT);
193
- add_submenu_page('mec-intro', $this->main->m('taxonomy_organizers', __('Organizers', 'mec')), $this->main->m('taxonomy_organizers', __('Organizers', 'mec')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_organizer&post_type='.$this->PT);
194
- add_submenu_page('mec-intro', __('Shortcodes', 'mec'), __('Shortcodes', 'mec'), 'edit_others_posts', 'edit.php?post_type=mec_calendars');
195
- add_submenu_page('mec-intro', __('MEC - Settings', 'mec'), __('Settings', 'mec'), 'manage_options', 'MEC-settings', array($this, 'page'));
196
  }
197
 
198
  /**
@@ -205,14 +205,14 @@ class MEC_feature_mec extends MEC_base
205
  array(
206
  'labels'=>array
207
  (
208
- 'name'=>__('Shortcodes', 'mec'),
209
- 'singular_name'=>__('Shortcode', 'mec'),
210
- 'add_new'=>__('Add Shortcode', 'mec'),
211
- 'add_new_item'=>__('Add New Shortcode', 'mec'),
212
- 'not_found'=>__('No shortcodes found!', 'mec'),
213
- 'all_items'=>__('All Shortcodes', 'mec'),
214
- 'edit_item'=>__('Edit shortcodes', 'mec'),
215
- 'not_found_in_trash'=>__('No shortcodes found in Trash!', 'mec')
216
  ),
217
  'public'=>false,
218
  'show_in_nav_menus'=>false,
@@ -235,7 +235,7 @@ class MEC_feature_mec extends MEC_base
235
  */
236
  public function filter_columns($columns)
237
  {
238
- $columns['shortcode'] = __('Shortcode', 'mec');
239
  return $columns;
240
  }
241
 
@@ -259,10 +259,10 @@ class MEC_feature_mec extends MEC_base
259
  */
260
  public function register_meta_boxes()
261
  {
262
- add_meta_box('mec_calendar_display_options', __('Display Options', 'mec'), array($this, 'meta_box_display_options'), 'mec_calendars', 'normal', 'high');
263
- add_meta_box('mec_calendar_filter', __('Filter Options', 'mec'), array($this, 'meta_box_filter'), 'mec_calendars', 'normal', 'high');
264
- add_meta_box('mec_calendar_shortcode', __('Shortcode', 'mec'), array($this, 'meta_box_shortcode'), 'mec_calendars', 'side');
265
- add_meta_box('mec_calendar_search_form', __('Search Form', 'mec'), array($this, 'meta_box_search_form'), 'mec_calendars', 'side');
266
  }
267
 
268
  /**
@@ -407,9 +407,6 @@ class MEC_feature_mec extends MEC_base
407
  */
408
  public function settings()
409
  {
410
- // Get Envato Class
411
- $envato = $this->getEnvato();
412
-
413
  $path = MEC::import('app.features.mec.settings', true, true);
414
 
415
  ob_start();
@@ -553,13 +550,13 @@ class MEC_feature_mec extends MEC_base
553
  {
554
  return '<div class="mec-form-row">
555
  <div class="mec-col-4">
556
- <label for="mec_skin_'.$skin.'_sed_method">'.__('Single Event Display Method', 'mec').'</label>
557
  </div>
558
  <div class="mec-col-4">
559
  <input type="hidden" name="mec[sk-options]['.$skin.'][sed_method]" value="0" id="mec_skin_'.$skin.'_sed_method_field" />
560
  <ul class="mec-sed-methods" data-for="#mec_skin_'.$skin.'_sed_method_field">
561
- <li data-method="0" class="'.(!$value ? 'active' : '').'">'.__('Separate Window', 'mec').'</li>
562
- <li data-method="m1" class="'.($value === 'm1' ? 'active' : '').'">'.__('Modal 1', 'mec').'</li>
563
  </ul>
564
  </div>
565
  </div>';
185
  remove_menu_page('edit.php?post_type=mec-events');
186
  remove_menu_page('edit.php?post_type=mec_calendars');
187
 
188
+ add_submenu_page('mec-intro', __('Add Event', 'modern-events-calendar-lite'), __('Add Event', 'modern-events-calendar-lite'), 'edit_posts', 'post-new.php?post_type='.$this->PT);
189
+ add_submenu_page('mec-intro', __('Tags', 'modern-events-calendar-lite'), __('Tags', 'modern-events-calendar-lite'), 'edit_others_posts', 'edit-tags.php?taxonomy=post_tag&post_type='.$this->PT);
190
+ add_submenu_page('mec-intro', $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite')), $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_category&post_type='.$this->PT);
191
+ add_submenu_page('mec-intro', $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')), $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_label&post_type='.$this->PT);
192
+ add_submenu_page('mec-intro', $this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite')), $this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_location&post_type='.$this->PT);
193
+ add_submenu_page('mec-intro', $this->main->m('taxonomy_organizers', __('Organizers', 'modern-events-calendar-lite')), $this->main->m('taxonomy_organizers', __('Organizers', 'modern-events-calendar-lite')), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_organizer&post_type='.$this->PT);
194
+ add_submenu_page('mec-intro', __('Shortcodes', 'modern-events-calendar-lite'), __('Shortcodes', 'modern-events-calendar-lite'), 'edit_others_posts', 'edit.php?post_type=mec_calendars');
195
+ add_submenu_page('mec-intro', __('MEC - Settings', 'modern-events-calendar-lite'), __('Settings', 'modern-events-calendar-lite'), 'manage_options', 'MEC-settings', array($this, 'page'));
196
  }
197
 
198
  /**
205
  array(
206
  'labels'=>array
207
  (
208
+ 'name'=>__('Shortcodes', 'modern-events-calendar-lite'),
209
+ 'singular_name'=>__('Shortcode', 'modern-events-calendar-lite'),
210
+ 'add_new'=>__('Add Shortcode', 'modern-events-calendar-lite'),
211
+ 'add_new_item'=>__('Add New Shortcode', 'modern-events-calendar-lite'),
212
+ 'not_found'=>__('No shortcodes found!', 'modern-events-calendar-lite'),
213
+ 'all_items'=>__('All Shortcodes', 'modern-events-calendar-lite'),
214
+ 'edit_item'=>__('Edit shortcodes', 'modern-events-calendar-lite'),
215
+ 'not_found_in_trash'=>__('No shortcodes found in Trash!', 'modern-events-calendar-lite')
216
  ),
217
  'public'=>false,
218
  'show_in_nav_menus'=>false,
235
  */
236
  public function filter_columns($columns)
237
  {
238
+ $columns['shortcode'] = __('Shortcode', 'modern-events-calendar-lite');
239
  return $columns;
240
  }
241
 
259
  */
260
  public function register_meta_boxes()
261
  {
262
+ add_meta_box('mec_calendar_display_options', __('Display Options', 'modern-events-calendar-lite'), array($this, 'meta_box_display_options'), 'mec_calendars', 'normal', 'high');
263
+ add_meta_box('mec_calendar_filter', __('Filter Options', 'modern-events-calendar-lite'), array($this, 'meta_box_filter'), 'mec_calendars', 'normal', 'high');
264
+ add_meta_box('mec_calendar_shortcode', __('Shortcode', 'modern-events-calendar-lite'), array($this, 'meta_box_shortcode'), 'mec_calendars', 'side');
265
+ add_meta_box('mec_calendar_search_form', __('Search Form', 'modern-events-calendar-lite'), array($this, 'meta_box_search_form'), 'mec_calendars', 'side');
266
  }
267
 
268
  /**
407
  */
408
  public function settings()
409
  {
 
 
 
410
  $path = MEC::import('app.features.mec.settings', true, true);
411
 
412
  ob_start();
550
  {
551
  return '<div class="mec-form-row">
552
  <div class="mec-col-4">
553
+ <label for="mec_skin_'.$skin.'_sed_method">'.__('Single Event Display Method', 'modern-events-calendar-lite').'</label>
554
  </div>
555
  <div class="mec-col-4">
556
  <input type="hidden" name="mec[sk-options]['.$skin.'][sed_method]" value="0" id="mec_skin_'.$skin.'_sed_method_field" />
557
  <ul class="mec-sed-methods" data-for="#mec_skin_'.$skin.'_sed_method_field">
558
+ <li data-method="0" class="'.(!$value ? 'active' : '').'">'.__('Separate Window', 'modern-events-calendar-lite').'</li>
559
+ <li data-method="m1" class="'.($value === 'm1' ? 'active' : '').'">'.__('Modal 1', 'modern-events-calendar-lite').'</li>
560
  </ul>
561
  </div>
562
  </div>';
app/features/mec/dashboard.php CHANGED
@@ -25,11 +25,15 @@ $user_organizer_count_l = wp_count_terms('mec_organizer', array(
25
  'parent'=>0
26
  ));
27
 
28
- // get mec activation
29
- $envato = $this->getEnvato();
 
 
 
30
 
31
- $v = $envato->get_MEC_info('version');
32
- $version = isset($v->version) ? $v->version : NULL;
 
33
 
34
  // MEC Database
35
  $db = $this->getDB();
@@ -51,19 +55,19 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
51
  <div class="welcome-head w-clearfix">
52
  <div class="w-row">
53
  <div class="w-col-sm-9">
54
- <h1> <?php echo sprintf(__('Welcome %s', 'mec'), $current_user->user_firstname); ?> </h1>
55
  <div class="w-welcome">
56
  <p>
57
- <?php echo sprintf(__('%s - Most Powerful & Easy to Use Events Management System', 'mec'), '<strong>'.($this->getPRO() ? __('Modern Event Calendar', 'mec') : __('Modern Event Calendar (Lite)', 'mec')).'</strong>'); ?>
58
- <?php if(version_compare( MEC_VERSION , $version, '<')): ?>
59
- <a class="mec-tooltip" title="<?php esc_attr_e("Update $version is ready for download.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
60
  <?php endif; ?>
61
  </p>
62
  </div>
63
  </div>
64
  <div class="w-col-sm-3">
65
  <img src="<?php echo plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; ?>" />
66
- <span class="w-theme-version"><?php echo __('Version', 'mec'); ?> <?php echo MEC_VERSION; ?></span>
67
  </div>
68
  </div>
69
  </div>
@@ -72,7 +76,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
72
  <?php if(!$this->getPRO()): ?>
73
  <div class="w-row">
74
  <div class="w-col-sm-12">
75
- <div class="info-msg"><?php echo sprintf(__("You're using %s version of Modern Events Calendar. To use advanced booking system, modern skins like Agenda, Timetable, Masonry, Yearly View, Available Spots, etc you should %s to the Pro version.", 'mec'), '<strong>'.__('lite', 'mec').'</strong>', '<a class="info-msg-link" href="'.$this->get_pro_link().'" target="_blank">'.__('upgrade', 'wpl').'</a>'); ?></div>
76
  </div>
77
  </div>
78
  <?php endif; ?>
@@ -82,28 +86,28 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
82
  <div class="w-col-sm-3">
83
  <div class="w-box doc">
84
  <div class="w-box-child mec-count-child">
85
- <p><?php echo '<p class="mec_dash_count">'.$user_post_count.'</p> '.__('Events', 'mec'); ?></p>
86
  </div>
87
  </div>
88
  </div>
89
  <div class="w-col-sm-3">
90
  <div class="w-box doc">
91
  <div class="w-box-child mec-count-child">
92
- <p><?php echo '<p class="mec_dash_count">'.$user_post_count_c.'</p> '.__('Shortcodes', 'mec'); ?></p>
93
  </div>
94
  </div>
95
  </div>
96
  <div class="w-col-sm-3">
97
  <div class="w-box doc">
98
  <div class="w-box-child mec-count-child">
99
- <p><?php echo '<p class="mec_dash_count">'.$user_location_count_l.'</p> '.__('Location', 'mec'); ?></p>
100
  </div>
101
  </div>
102
  </div>
103
  <div class="w-col-sm-3">
104
  <div class="w-box doc">
105
  <div class="w-box-child mec-count-child">
106
- <p><?php echo '<p class="mec_dash_count">'.$user_organizer_count_l.'</p> '. __('Organizer', 'mec'); ?></p>
107
  </div>
108
  </div>
109
  </div>
@@ -111,12 +115,12 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
111
  <div class="w-col-sm-<?php echo ($box_support ? '6' : '12'); ?>">
112
  <div class="w-box doc">
113
  <div class="w-box-head">
114
- <?php _e('Documentation', 'mec'); ?>
115
  </div>
116
  <div class="w-box-content">
117
- <p><?php echo esc_html__('Our documentation is simple and functional with full details and cover all essential aspects from beginning to the most advanced parts.', 'mec'); ?></p>
118
  <div class="w-button">
119
- <a href="http://webnus.net/dox/modern-events-calendar/" target="_blank"><?php echo esc_html__('DOCUMENTATION', 'mec'); ?></a>
120
  </div>
121
  </div>
122
  </div>
@@ -125,19 +129,19 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
125
  <div class="w-col-sm-6">
126
  <div class="w-box support">
127
  <div class="w-box-head">
128
- <?php echo esc_html__('Support Forum', 'mec'); ?>
129
  </div>
130
  <div class="w-box-content">
131
  <?php if(!$this->getPRO()): ?>
132
- <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you want to use this service you need to upgrade your plugin to Pro version. Click on the following button.", 'mec'); ?></p>
133
  <?php else: ?>
134
- <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you have any issues please don't hesitate to contact us, we will reply as soon as possible.", 'mec'); ?></p>
135
  <?php endif; ?>
136
  <div class="w-button">
137
  <?php if(!$this->getPRO()): ?>
138
- <a href="https://webnus.net/pricing/#plugins" target="_blank"><?php echo esc_html__('GO PREMIUM', 'mec'); ?></a>
139
  <?php else: ?>
140
- <a href="https://webnus.ticksy.com/" target="_blank"><?php echo esc_html__('OPEN A TICKET', 'mec'); ?></a>
141
  <?php endif; ?>
142
  </div>
143
  </div>
@@ -150,7 +154,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
150
  <div class="w-col-sm-<?php echo $booking_status ? 6 : 12; ?>">
151
  <div class="w-box upcoming-events">
152
  <div class="w-box-head">
153
- <?php _e('Upcoming Events', 'mec'); ?>
154
  </div>
155
  <div class="w-box-content">
156
  <?php
@@ -174,7 +178,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
174
  <div class="w-col-sm-6">
175
  <div class="w-box gateways">
176
  <div class="w-box-head">
177
- <?php echo esc_html__('Popular Gateways', 'mec'); ?>
178
  </div>
179
  <div class="w-box-content">
180
  <?php
@@ -225,7 +229,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
225
  <div class="w-col-sm-12">
226
  <div class="w-box total-bookings">
227
  <div class="w-box-head">
228
- <?php echo esc_html__('Total Bookings', 'mec'); ?>
229
  </div>
230
  <div class="w-box-content">
231
  <?php
@@ -252,25 +256,25 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
252
  $currency = $this->get_currency_sign();
253
  ?>
254
  <ul>
255
- <li><a href="?page=mec-intro&start=<?php echo date('Y-m-01'); ?>&end=<?php echo date('Y-m-t'); ?>&type=daily&chart=<?php echo $chart; ?>"><?php _e('This Month', 'mec'); ?></a></li>
256
- <li><a href="?page=mec-intro&start=<?php echo date('Y-m-01', strtotime('-1 Month')); ?>&end=<?php echo date('Y-m-t', strtotime('-1 Month')); ?>&type=daily&chart=<?php echo $chart; ?>"><?php _e('Last Month', 'mec'); ?></a></li>
257
- <li><a href="?page=mec-intro&start=<?php echo date('Y-01-01'); ?>&end=<?php echo date('Y-12-31'); ?>&type=monthly&chart=<?php echo $chart; ?>"><?php _e('This Year', 'mec'); ?></a></li>
258
- <li><a href="?page=mec-intro&start=<?php echo date('Y-01-01', strtotime('-1 Year')); ?>&end=<?php echo date('Y-12-31', strtotime('-1 Year')); ?>&type=daily&chart=<?php echo $chart; ?>"><?php _e('Last Year', 'mec'); ?></a></li>
259
  </ul>
260
  <form class="mec-sells-filter" method="GET" action="">
261
  <input type="hidden" name="page" value="mec-intro" />
262
- <input type="text" class="mec_date_picker" name="start" placeholder="<?php esc_attr_e('Start Date', 'mec'); ?>" value="<?php echo $start; ?>" />
263
- <input type="text" class="mec_date_picker" name="end" placeholder="<?php esc_attr_e('End Date', 'mec'); ?>" value="<?php echo $end; ?>" />
264
  <select name="type">
265
- <option value="daily" <?php echo $type == 'daily' ? 'selected="selected"' : ''; ?>><?php _e('Daily', 'mec'); ?></option>
266
- <option value="monthly" <?php echo $type == 'monthly' ? 'selected="selected"' : ''; ?>><?php _e('Monthly', 'mec'); ?></option>
267
- <option value="yearly" <?php echo $type == 'yearly' ? 'selected="selected"' : ''; ?>><?php _e('Yearly', 'mec'); ?></option>
268
  </select>
269
  <select name="chart">
270
- <option value="bar" <?php echo $chart == 'bar' ? 'selected="selected"' : ''; ?>><?php _e('Bar', 'mec'); ?></option>
271
- <option value="line" <?php echo $chart == 'line' ? 'selected="selected"' : ''; ?>><?php _e('Line', 'mec'); ?></option>
272
  </select>
273
- <button type="submit"><?php _e('Filter', 'mec'); ?></button>
274
  </form>
275
  <?php
276
  echo '<canvas id="mec_total_bookings_chart" width="600" height="300"></canvas>';
@@ -286,7 +290,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
286
  labels: ['.trim($labels, ', ').'],
287
  datasets: [
288
  {
289
- label: "'.esc_js(sprintf(__('Total Sells (%s)', 'mec'), $currency)).'",
290
  data: ['.trim($stats, ', ').'],
291
  backgroundColor: "rgba(159, 216, 255, 0.3)",
292
  borderColor: "#36A2EB",
@@ -307,7 +311,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
307
  <div class="w-col-sm-12">
308
  <div class="w-box change-log">
309
  <div class="w-box-head">
310
- <?php echo esc_html__('Change Log', 'mec'); ?>
311
  </div>
312
  <div class="w-box-content">
313
  <pre><?php echo file_get_contents(plugin_dir_path(__FILE__ ).'../../../changelog.txt'); ?></pre>
25
  'parent'=>0
26
  ));
27
 
28
+ $version = NULL;
29
+ if($this->getPRO())
30
+ {
31
+ // Get MEC New Update
32
+ $envato = $this->getEnvato();
33
 
34
+ $v = $envato->get_MEC_info('version');
35
+ $version = isset($v->version) ? $v->version : NULL;
36
+ }
37
 
38
  // MEC Database
39
  $db = $this->getDB();
55
  <div class="welcome-head w-clearfix">
56
  <div class="w-row">
57
  <div class="w-col-sm-9">
58
+ <h1> <?php echo sprintf(__('Welcome %s', 'modern-events-calendar-lite'), $current_user->user_firstname); ?> </h1>
59
  <div class="w-welcome">
60
  <p>
61
+ <?php echo sprintf(__('%s - Most Powerful & Easy to Use Events Management System', 'modern-events-calendar-lite'), '<strong>'.($this->getPRO() ? __('Modern Event Calendar', 'modern-events-calendar-lite') : __('Modern Event Calendar (Lite)', 'modern-events-calendar-lite')).'</strong>'); ?>
62
+ <?php if(version_compare(MEC_VERSION , $version, '<')): ?>
63
+ <a class="mec-tooltip" title="<?php esc_attr_e("Update $version is ready for download.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
64
  <?php endif; ?>
65
  </p>
66
  </div>
67
  </div>
68
  <div class="w-col-sm-3">
69
  <img src="<?php echo plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; ?>" />
70
+ <span class="w-theme-version"><?php echo __('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
71
  </div>
72
  </div>
73
  </div>
76
  <?php if(!$this->getPRO()): ?>
77
  <div class="w-row">
78
  <div class="w-col-sm-12">
79
+ <div class="info-msg"><?php echo sprintf(__("You're using %s version of Modern Events Calendar. To use advanced booking system, modern skins like Agenda, Timetable, Masonry, Yearly View, Available Spots, etc you should %s to the Pro version.", 'modern-events-calendar-lite'), '<strong>'.__('lite', 'modern-events-calendar-lite').'</strong>', '<a class="info-msg-link" href="'.$this->get_pro_link().'" target="_blank">'.__('upgrade', 'wpl').'</a>'); ?></div>
80
  </div>
81
  </div>
82
  <?php endif; ?>
86
  <div class="w-col-sm-3">
87
  <div class="w-box doc">
88
  <div class="w-box-child mec-count-child">
89
+ <p><?php echo '<p class="mec_dash_count">'.$user_post_count.'</p> '.__('Events', 'modern-events-calendar-lite'); ?></p>
90
  </div>
91
  </div>
92
  </div>
93
  <div class="w-col-sm-3">
94
  <div class="w-box doc">
95
  <div class="w-box-child mec-count-child">
96
+ <p><?php echo '<p class="mec_dash_count">'.$user_post_count_c.'</p> '.__('Shortcodes', 'modern-events-calendar-lite'); ?></p>
97
  </div>
98
  </div>
99
  </div>
100
  <div class="w-col-sm-3">
101
  <div class="w-box doc">
102
  <div class="w-box-child mec-count-child">
103
+ <p><?php echo '<p class="mec_dash_count">'.$user_location_count_l.'</p> '.__('Location', 'modern-events-calendar-lite'); ?></p>
104
  </div>
105
  </div>
106
  </div>
107
  <div class="w-col-sm-3">
108
  <div class="w-box doc">
109
  <div class="w-box-child mec-count-child">
110
+ <p><?php echo '<p class="mec_dash_count">'.$user_organizer_count_l.'</p> '. __('Organizer', 'modern-events-calendar-lite'); ?></p>
111
  </div>
112
  </div>
113
  </div>
115
  <div class="w-col-sm-<?php echo ($box_support ? '6' : '12'); ?>">
116
  <div class="w-box doc">
117
  <div class="w-box-head">
118
+ <?php _e('Documentation', 'modern-events-calendar-lite'); ?>
119
  </div>
120
  <div class="w-box-content">
121
+ <p><?php echo esc_html__('Our documentation is simple and functional with full details and cover all essential aspects from beginning to the most advanced parts.', 'modern-events-calendar-lite'); ?></p>
122
  <div class="w-button">
123
+ <a href="http://webnus.net/dox/modern-events-calendar/" target="_blank"><?php echo esc_html__('DOCUMENTATION', 'modern-events-calendar-lite'); ?></a>
124
  </div>
125
  </div>
126
  </div>
129
  <div class="w-col-sm-6">
130
  <div class="w-box support">
131
  <div class="w-box-head">
132
+ <?php echo esc_html__('Support Forum', 'modern-events-calendar-lite'); ?>
133
  </div>
134
  <div class="w-box-content">
135
  <?php if(!$this->getPRO()): ?>
136
+ <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you want to use this service you need to upgrade your plugin to Pro version. Click on the following button.", 'modern-events-calendar-lite'); ?></p>
137
  <?php else: ?>
138
+ <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you have any issues please don't hesitate to contact us, we will reply as soon as possible.", 'modern-events-calendar-lite'); ?></p>
139
  <?php endif; ?>
140
  <div class="w-button">
141
  <?php if(!$this->getPRO()): ?>
142
+ <a href="https://webnus.net/pricing/#plugins" target="_blank"><?php echo esc_html__('GO PREMIUM', 'modern-events-calendar-lite'); ?></a>
143
  <?php else: ?>
144
+ <a href="https://webnus.ticksy.com/" target="_blank"><?php echo esc_html__('OPEN A TICKET', 'modern-events-calendar-lite'); ?></a>
145
  <?php endif; ?>
146
  </div>
147
  </div>
154
  <div class="w-col-sm-<?php echo $booking_status ? 6 : 12; ?>">
155
  <div class="w-box upcoming-events">
156
  <div class="w-box-head">
157
+ <?php _e('Upcoming Events', 'modern-events-calendar-lite'); ?>
158
  </div>
159
  <div class="w-box-content">
160
  <?php
178
  <div class="w-col-sm-6">
179
  <div class="w-box gateways">
180
  <div class="w-box-head">
181
+ <?php echo esc_html__('Popular Gateways', 'modern-events-calendar-lite'); ?>
182
  </div>
183
  <div class="w-box-content">
184
  <?php
229
  <div class="w-col-sm-12">
230
  <div class="w-box total-bookings">
231
  <div class="w-box-head">
232
+ <?php echo esc_html__('Total Bookings', 'modern-events-calendar-lite'); ?>
233
  </div>
234
  <div class="w-box-content">
235
  <?php
256
  $currency = $this->get_currency_sign();
257
  ?>
258
  <ul>
259
+ <li><a href="?page=mec-intro&start=<?php echo date('Y-m-01'); ?>&end=<?php echo date('Y-m-t'); ?>&type=daily&chart=<?php echo $chart; ?>"><?php _e('This Month', 'modern-events-calendar-lite'); ?></a></li>
260
+ <li><a href="?page=mec-intro&start=<?php echo date('Y-m-01', strtotime('-1 Month')); ?>&end=<?php echo date('Y-m-t', strtotime('-1 Month')); ?>&type=daily&chart=<?php echo $chart; ?>"><?php _e('Last Month', 'modern-events-calendar-lite'); ?></a></li>
261
+ <li><a href="?page=mec-intro&start=<?php echo date('Y-01-01'); ?>&end=<?php echo date('Y-12-31'); ?>&type=monthly&chart=<?php echo $chart; ?>"><?php _e('This Year', 'modern-events-calendar-lite'); ?></a></li>
262
+ <li><a href="?page=mec-intro&start=<?php echo date('Y-01-01', strtotime('-1 Year')); ?>&end=<?php echo date('Y-12-31', strtotime('-1 Year')); ?>&type=daily&chart=<?php echo $chart; ?>"><?php _e('Last Year', 'modern-events-calendar-lite'); ?></a></li>
263
  </ul>
264
  <form class="mec-sells-filter" method="GET" action="">
265
  <input type="hidden" name="page" value="mec-intro" />
266
+ <input type="text" class="mec_date_picker" name="start" placeholder="<?php esc_attr_e('Start Date', 'modern-events-calendar-lite'); ?>" value="<?php echo $start; ?>" />
267
+ <input type="text" class="mec_date_picker" name="end" placeholder="<?php esc_attr_e('End Date', 'modern-events-calendar-lite'); ?>" value="<?php echo $end; ?>" />
268
  <select name="type">
269
+ <option value="daily" <?php echo $type == 'daily' ? 'selected="selected"' : ''; ?>><?php _e('Daily', 'modern-events-calendar-lite'); ?></option>
270
+ <option value="monthly" <?php echo $type == 'monthly' ? 'selected="selected"' : ''; ?>><?php _e('Monthly', 'modern-events-calendar-lite'); ?></option>
271
+ <option value="yearly" <?php echo $type == 'yearly' ? 'selected="selected"' : ''; ?>><?php _e('Yearly', 'modern-events-calendar-lite'); ?></option>
272
  </select>
273
  <select name="chart">
274
+ <option value="bar" <?php echo $chart == 'bar' ? 'selected="selected"' : ''; ?>><?php _e('Bar', 'modern-events-calendar-lite'); ?></option>
275
+ <option value="line" <?php echo $chart == 'line' ? 'selected="selected"' : ''; ?>><?php _e('Line', 'modern-events-calendar-lite'); ?></option>
276
  </select>
277
+ <button type="submit"><?php _e('Filter', 'modern-events-calendar-lite'); ?></button>
278
  </form>
279
  <?php
280
  echo '<canvas id="mec_total_bookings_chart" width="600" height="300"></canvas>';
290
  labels: ['.trim($labels, ', ').'],
291
  datasets: [
292
  {
293
+ label: "'.esc_js(sprintf(__('Total Sells (%s)', 'modern-events-calendar-lite'), $currency)).'",
294
  data: ['.trim($stats, ', ').'],
295
  backgroundColor: "rgba(159, 216, 255, 0.3)",
296
  borderColor: "#36A2EB",
311
  <div class="w-col-sm-12">
312
  <div class="w-box change-log">
313
  <div class="w-box-head">
314
+ <?php echo esc_html__('Change Log', 'modern-events-calendar-lite'); ?>
315
  </div>
316
  <div class="w-box-content">
317
  <pre><?php echo file_get_contents(plugin_dir_path(__FILE__ ).'../../../changelog.txt'); ?></pre>
app/features/mec/gateways.php CHANGED
@@ -17,7 +17,7 @@ $gateways = $this->main->get_gateways();
17
  <i class="sl-arrow-down"></i>
18
  </span>
19
  <i class="mec-sl-settings"></i>
20
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
21
  </a>
22
  </li>
23
 
@@ -26,14 +26,14 @@ $gateways = $this->main->get_gateways();
26
  <li class="wns-be-group-menu-li">
27
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
28
  <i class="mec-sl-layers"></i>
29
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
30
  </a>
31
  </li>
32
 
33
  <li class="wns-be-group-menu-li active">
34
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
35
  <i class="mec-sl-wallet"></i>
36
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
37
  </a>
38
  </li>
39
 
@@ -42,35 +42,35 @@ $gateways = $this->main->get_gateways();
42
  <li class="wns-be-group-menu-li">
43
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
44
  <i class="mec-sl-envelope"></i>
45
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
46
  </a>
47
  </li>
48
 
49
  <li class="wns-be-group-menu-li">
50
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
51
  <i class="mec-sl-equalizer"></i>
52
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
53
  </a>
54
  </li>
55
 
56
  <li class="wns-be-group-menu-li">
57
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
58
  <i class="mec-sl-wrench"></i>
59
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li class="wns-be-group-menu-li">
64
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
65
  <i class="mec-sl-bubble"></i>
66
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li class="wns-be-group-menu-li">
71
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
72
  <i class="mec-sl-support"></i>
73
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
74
  </a>
75
  </li>
76
 
@@ -87,7 +87,7 @@ $gateways = $this->main->get_gateways();
87
 
88
  <div id="wns-be-content">
89
  <div class="wns-be-group-tab">
90
- <h2><?php _e('Payment Gateways', 'mec'); ?></h2>
91
  <div class="mec-container">
92
  <form id="mec_gateways_form">
93
  <div class="mec-form-row" id="mec_gateways_form_container">
@@ -101,7 +101,7 @@ $gateways = $this->main->get_gateways();
101
  </div>
102
  <div class="mec-form-row">
103
  <?php wp_nonce_field('mec_options_form'); ?>
104
- <button style="display: none;" id="mec_gateways_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
105
  </div>
106
  </form>
107
  </div>
@@ -127,8 +127,8 @@ jQuery("#mec_gateways_form").on('submit', function(event)
127
  event.preventDefault();
128
 
129
  // Add loading Class to the button
130
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
131
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
132
 
133
  var gateways = jQuery("#mec_gateways_form").serialize();
134
  jQuery.ajax(
@@ -140,7 +140,7 @@ jQuery("#mec_gateways_form").on('submit', function(event)
140
  {
141
  // Remove the loading Class to the button
142
  setTimeout(function(){
143
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
144
  jQuery('.wns-saved-settings').remove();
145
  }, 1000);
146
 
@@ -149,7 +149,7 @@ jQuery("#mec_gateways_form").on('submit', function(event)
149
  {
150
  // Remove the loading Class to the button
151
  setTimeout(function(){
152
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
153
  jQuery('.wns-saved-settings').remove();
154
  }, 1000);
155
  }
17
  <i class="sl-arrow-down"></i>
18
  </span>
19
  <i class="mec-sl-settings"></i>
20
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
21
  </a>
22
  </li>
23
 
26
  <li class="wns-be-group-menu-li">
27
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
28
  <i class="mec-sl-layers"></i>
29
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
30
  </a>
31
  </li>
32
 
33
  <li class="wns-be-group-menu-li active">
34
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
35
  <i class="mec-sl-wallet"></i>
36
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
37
  </a>
38
  </li>
39
 
42
  <li class="wns-be-group-menu-li">
43
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
44
  <i class="mec-sl-envelope"></i>
45
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
46
  </a>
47
  </li>
48
 
49
  <li class="wns-be-group-menu-li">
50
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
51
  <i class="mec-sl-equalizer"></i>
52
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
53
  </a>
54
  </li>
55
 
56
  <li class="wns-be-group-menu-li">
57
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
58
  <i class="mec-sl-wrench"></i>
59
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li class="wns-be-group-menu-li">
64
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
65
  <i class="mec-sl-bubble"></i>
66
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li class="wns-be-group-menu-li">
71
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
72
  <i class="mec-sl-support"></i>
73
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
74
  </a>
75
  </li>
76
 
87
 
88
  <div id="wns-be-content">
89
  <div class="wns-be-group-tab">
90
+ <h2><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></h2>
91
  <div class="mec-container">
92
  <form id="mec_gateways_form">
93
  <div class="mec-form-row" id="mec_gateways_form_container">
101
  </div>
102
  <div class="mec-form-row">
103
  <?php wp_nonce_field('mec_options_form'); ?>
104
+ <button style="display: none;" id="mec_gateways_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
105
  </div>
106
  </form>
107
  </div>
127
  event.preventDefault();
128
 
129
  // Add loading Class to the button
130
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
131
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
132
 
133
  var gateways = jQuery("#mec_gateways_form").serialize();
134
  jQuery.ajax(
140
  {
141
  // Remove the loading Class to the button
142
  setTimeout(function(){
143
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
144
  jQuery('.wns-saved-settings').remove();
145
  }, 1000);
146
 
149
  {
150
  // Remove the loading Class to the button
151
  setTimeout(function(){
152
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
153
  jQuery('.wns-saved-settings').remove();
154
  }, 1000);
155
  }
app/features/mec/messages.php CHANGED
@@ -17,7 +17,7 @@ $values = $this->main->get_messages_options();
17
  <i class="sl-arrow-down"></i>
18
  </span>
19
  <i class="mec-sl-settings"></i>
20
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
21
  </a>
22
  </li>
23
 
@@ -26,14 +26,14 @@ $values = $this->main->get_messages_options();
26
  <li class="wns-be-group-menu-li">
27
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
28
  <i class="mec-sl-layers"></i>
29
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
30
  </a>
31
  </li>
32
 
33
  <li class="wns-be-group-menu-li">
34
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
35
  <i class="mec-sl-wallet"></i>
36
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
37
  </a>
38
  </li>
39
 
@@ -42,35 +42,35 @@ $values = $this->main->get_messages_options();
42
  <li class="wns-be-group-menu-li">
43
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
44
  <i class="mec-sl-envelope"></i>
45
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
46
  </a>
47
  </li>
48
 
49
  <li class="wns-be-group-menu-li">
50
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
51
  <i class="mec-sl-equalizer"></i>
52
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
53
  </a>
54
  </li>
55
 
56
  <li class="wns-be-group-menu-li">
57
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
58
  <i class="mec-sl-wrench"></i>
59
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li class="wns-be-group-menu-li active">
64
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
65
  <i class="mec-sl-bubble"></i>
66
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li class="wns-be-group-menu-li">
71
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
72
  <i class="mec-sl-support"></i>
73
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
74
  </a>
75
  </li>
76
 
@@ -80,17 +80,17 @@ $values = $this->main->get_messages_options();
80
  <div class="wns-be-main">
81
 
82
  <div id="wns-be-infobar">
83
- <a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'mec'); ?></a>
84
  </div>
85
 
86
  <div id="wns-be-notification"></div>
87
 
88
  <div id="wns-be-content">
89
  <div class="wns-be-group-tab">
90
- <h2><?php _e('Messages', 'mec'); ?></h2>
91
  <div class="mec-container">
92
  <form id="mec_messages_form">
93
- <p><?php _e("You can change some MEC messages here simply. For example if you like to change \"REGISTER\" button label, you can do it here. By the Way, if your website is a multilingual website, we recommend you to change the messages/phrases from language files.", 'mec'); ?></p>
94
  <div class="mec-form-row" id="mec_messages_form_container">
95
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
96
  <?php foreach($messages as $cat_key=>$category): ?>
@@ -108,7 +108,7 @@ $values = $this->main->get_messages_options();
108
  </div>
109
  <div class="mec-form-row">
110
  <?php wp_nonce_field('mec_options_form'); ?>
111
- <button style="display: none;" id="mec_messages_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
112
  </div>
113
  </form>
114
  </div>
@@ -134,8 +134,8 @@ jQuery("#mec_messages_form").on('submit', function(event)
134
  event.preventDefault();
135
 
136
  // Add loading Class to the button
137
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
138
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
139
 
140
  var messages = jQuery("#mec_messages_form").serialize();
141
  jQuery.ajax(
@@ -147,7 +147,7 @@ jQuery("#mec_messages_form").on('submit', function(event)
147
  {
148
  // Remove the loading Class to the button
149
  setTimeout(function(){
150
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
151
  jQuery('.wns-saved-settings').remove();
152
  }, 1000);
153
  },
@@ -155,7 +155,7 @@ jQuery("#mec_messages_form").on('submit', function(event)
155
  {
156
  // Remove the loading Class to the button
157
  setTimeout(function(){
158
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
159
  jQuery('.wns-saved-settings').remove();
160
  }, 1000);
161
  }
17
  <i class="sl-arrow-down"></i>
18
  </span>
19
  <i class="mec-sl-settings"></i>
20
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
21
  </a>
22
  </li>
23
 
26
  <li class="wns-be-group-menu-li">
27
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
28
  <i class="mec-sl-layers"></i>
29
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
30
  </a>
31
  </li>
32
 
33
  <li class="wns-be-group-menu-li">
34
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
35
  <i class="mec-sl-wallet"></i>
36
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
37
  </a>
38
  </li>
39
 
42
  <li class="wns-be-group-menu-li">
43
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
44
  <i class="mec-sl-envelope"></i>
45
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
46
  </a>
47
  </li>
48
 
49
  <li class="wns-be-group-menu-li">
50
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
51
  <i class="mec-sl-equalizer"></i>
52
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
53
  </a>
54
  </li>
55
 
56
  <li class="wns-be-group-menu-li">
57
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
58
  <i class="mec-sl-wrench"></i>
59
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li class="wns-be-group-menu-li active">
64
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
65
  <i class="mec-sl-bubble"></i>
66
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li class="wns-be-group-menu-li">
71
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
72
  <i class="mec-sl-support"></i>
73
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
74
  </a>
75
  </li>
76
 
80
  <div class="wns-be-main">
81
 
82
  <div id="wns-be-infobar">
83
+ <a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
84
  </div>
85
 
86
  <div id="wns-be-notification"></div>
87
 
88
  <div id="wns-be-content">
89
  <div class="wns-be-group-tab">
90
+ <h2><?php _e('Messages', 'modern-events-calendar-lite'); ?></h2>
91
  <div class="mec-container">
92
  <form id="mec_messages_form">
93
+ <p><?php _e("You can change some MEC messages here simply. For example if you like to change \"REGISTER\" button label, you can do it here. By the Way, if your website is a multilingual website, we recommend you to change the messages/phrases from language files.", 'modern-events-calendar-lite'); ?></p>
94
  <div class="mec-form-row" id="mec_messages_form_container">
95
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
96
  <?php foreach($messages as $cat_key=>$category): ?>
108
  </div>
109
  <div class="mec-form-row">
110
  <?php wp_nonce_field('mec_options_form'); ?>
111
+ <button style="display: none;" id="mec_messages_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
112
  </div>
113
  </form>
114
  </div>
134
  event.preventDefault();
135
 
136
  // Add loading Class to the button
137
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
138
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
139
 
140
  var messages = jQuery("#mec_messages_form").serialize();
141
  jQuery.ajax(
147
  {
148
  // Remove the loading Class to the button
149
  setTimeout(function(){
150
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
151
  jQuery('.wns-saved-settings').remove();
152
  }, 1000);
153
  },
155
  {
156
  // Remove the loading Class to the button
157
  setTimeout(function(){
158
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
159
  jQuery('.wns-saved-settings').remove();
160
  }, 1000);
161
  }
app/features/mec/meta_boxes/display_options.php CHANGED
@@ -15,7 +15,7 @@ $events = $this->main->get_events();
15
  <!-- SKIN OPTIONS -->
16
  <div class="mec-meta-box-fields" id="mec_meta_box_calendar_skin_options">
17
  <div class="mec-form-row">
18
- <label class="mec-col-4" for="mec_skin"><?php _e('Skin', 'mec'); ?></label>
19
  <select class="mec-col-4" name="mec[skin]" id="mec_skin">
20
  <?php foreach($skins as $skin=>$name): ?>
21
  <option value="<?php echo $skin; ?>" <?php if($selected_skin == $skin) echo 'selected="selected"'; ?>><?php echo $name; ?></option>
@@ -29,65 +29,65 @@ $events = $this->main->get_events();
29
  <div class="mec-skin-options-container mec-util-hidden" id="mec_list_skin_options_container">
30
  <?php $sk_options_list = isset($sk_options['list']) ? $sk_options['list'] : array(); ?>
31
  <div class="mec-form-row">
32
- <label class="mec-col-4" for="mec_skin_list_style"><?php _e('Style', 'mec'); ?></label>
33
  <select class="mec-col-4" name="mec[sk-options][list][style]" id="mec_skin_list_style" onchange="mec_skin_style_changed('list', this.value); if(this.value == 'accordion') jQuery('.mec-sed-methode-container').hide(); else jQuery('.mec-sed-methode-container').show();">
34
- <option value="classic" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'mec'); ?></option>
35
- <option value="minimal" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'minimal') echo 'selected="selected"'; ?>><?php _e('Minimal', 'mec'); ?></option>
36
- <option value="modern" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'mec'); ?></option>
37
- <option value="standard" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'standard') echo 'selected="selected"'; ?>><?php _e('Standard', 'mec'); ?></option>
38
- <option value="accordion" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'accordion') echo 'selected="selected"'; ?>><?php _e('Accordion', 'mec'); ?></option>
39
  </select>
40
  </div>
41
  <div class="mec-form-row">
42
- <label class="mec-col-4" for="mec_skin_list_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
43
  <select class="mec-col-4" name="mec[sk-options][list][start_date_type]" id="mec_skin_list_start_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_list_start_date_container').show(); else jQuery('#mec_skin_list_start_date_container').hide();">
44
- <option value="today" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
45
- <option value="tomorrow" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
46
- <option value="start_current_month" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
47
- <option value="start_next_month" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
48
- <option value="date" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
49
  </select>
50
  <div class="mec-col-4 <?php if(!isset($sk_options_list['start_date_type']) or (isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_list_start_date_container">
51
- <input class="mec_date_picker" type="text" name="mec[sk-options][list][start_date]" id="mec_skin_list_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_list['start_date'])) echo $sk_options_list['start_date']; ?>" />
52
  </div>
53
  </div>
54
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'classic') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_classic_container">
55
- <label class="mec-col-4" for="mec_skin_list_classic_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
56
  <input type="text" class="mec-col-4" name="mec[sk-options][list][classic_date_format1]" id="mec_skin_list_classic_date_format1" value="<?php echo ((isset($sk_options_list['classic_date_format1']) and trim($sk_options_list['classic_date_format1']) != '') ? $sk_options_list['classic_date_format1'] : 'M d Y'); ?>" />
57
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
58
  </div>
59
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'M d Y') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_minimal_container">
60
- <label class="mec-col-4" for="mec_skin_list_minimal_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
61
  <input type="text" class="mec-col-2" name="mec[sk-options][list][minimal_date_format1]" id="mec_skin_list_minimal_date_format1" value="<?php echo ((isset($sk_options_list['minimal_date_format1']) and trim($sk_options_list['minimal_date_format1']) != '') ? $sk_options_list['minimal_date_format1'] : 'd'); ?>" />
62
  <input type="text" class="mec-col-1" name="mec[sk-options][list][minimal_date_format2]" id="mec_skin_list_minimal_date_format2" value="<?php echo ((isset($sk_options_list['minimal_date_format2']) and trim($sk_options_list['minimal_date_format2']) != '') ? $sk_options_list['minimal_date_format2'] : 'M'); ?>" />
63
  <input type="text" class="mec-col-1" name="mec[sk-options][list][minimal_date_format3]" id="mec_skin_list_minimal_date_format3" value="<?php echo ((isset($sk_options_list['minimal_date_format3']) and trim($sk_options_list['minimal_date_format3']) != '') ? $sk_options_list['minimal_date_format3'] : 'l'); ?>" />
64
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, M and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
65
  </div>
66
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_modern_container">
67
- <label class="mec-col-4" for="mec_skin_list_modern_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
68
  <input type="text" class="mec-col-2" name="mec[sk-options][list][modern_date_format1]" id="mec_skin_list_modern_date_format1" value="<?php echo ((isset($sk_options_list['modern_date_format1']) and trim($sk_options_list['modern_date_format1']) != '') ? $sk_options_list['modern_date_format1'] : 'd'); ?>" />
69
  <input type="text" class="mec-col-1" name="mec[sk-options][list][modern_date_format2]" id="mec_skin_list_modern_date_format2" value="<?php echo ((isset($sk_options_list['modern_date_format2']) and trim($sk_options_list['modern_date_format2']) != '') ? $sk_options_list['modern_date_format2'] : 'F'); ?>" />
70
  <input type="text" class="mec-col-1" name="mec[sk-options][list][modern_date_format3]" id="mec_skin_list_modern_date_format3" value="<?php echo ((isset($sk_options_list['modern_date_format3']) and trim($sk_options_list['modern_date_format3']) != '') ? $sk_options_list['modern_date_format3'] : 'l'); ?>" />
71
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
72
  </div>
73
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'standard') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_standard_container">
74
- <label class="mec-col-4" for="mec_skin_list_standard_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
75
  <input type="text" class="mec-col-4" name="mec[sk-options][list][standard_date_format1]" id="mec_skin_list_standard_date_format1" value="<?php echo ((isset($sk_options_list['standard_date_format1']) and trim($sk_options_list['standard_date_format1']) != '') ? $sk_options_list['standard_date_format1'] : 'd M'); ?>" />
76
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
77
  </div>
78
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'accordion') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_accordion_container">
79
- <label class="mec-col-4" for="mec_skin_list_accordion_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
80
  <input type="text" class="mec-col-2" name="mec[sk-options][list][accordion_date_format1]" id="mec_skin_list_accordion_date_format1" value="<?php echo ((isset($sk_options_list['accordion_date_format1']) and trim($sk_options_list['accordion_date_format1']) != '') ? $sk_options_list['accordion_date_format1'] : 'd'); ?>" />
81
  <input type="text" class="mec-col-2" name="mec[sk-options][list][accordion_date_format2]" id="mec_skin_list_accordion_date_format2" value="<?php echo ((isset($sk_options_list['accordion_date_format2']) and trim($sk_options_list['accordion_date_format2']) != '') ? $sk_options_list['accordion_date_format2'] : 'F'); ?>" />
82
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d and F', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
83
  </div>
84
  <div class="mec-form-row">
85
- <label class="mec-col-4" for="mec_skin_list_limit"><?php _e('Limit', 'mec'); ?></label>
86
- <input class="mec-col-4" type="number" name="mec[sk-options][list][limit]" id="mec_skin_list_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_list['limit'])) echo $sk_options_list['limit']; ?>" />
87
  </div>
88
  <div class="mec-form-row mec-switcher">
89
  <div class="mec-col-4">
90
- <label for="mec_skin_list_load_more_button"><?php _e('Load More Button', 'mec'); ?></label>
91
  </div>
92
  <div class="mec-col-4">
93
  <input type="hidden" name="mec[sk-options][list][load_more_button]" value="0" />
@@ -97,7 +97,7 @@ $events = $this->main->get_events();
97
  </div>
98
  <div class="mec-form-row mec-switcher">
99
  <div class="mec-col-4">
100
- <label for="mec_skin_list_month_divider"><?php _e('Show Month Divider', 'mec'); ?></label>
101
  </div>
102
  <div class="mec-col-4">
103
  <input type="hidden" name="mec[sk-options][list][month_divider]" value="0" />
@@ -114,73 +114,73 @@ $events = $this->main->get_events();
114
  <div class="mec-skin-options-container mec-util-hidden" id="mec_grid_skin_options_container">
115
  <?php $sk_options_grid = isset($sk_options['grid']) ? $sk_options['grid'] : array(); ?>
116
  <div class="mec-form-row">
117
- <label class="mec-col-4" for="mec_skin_grid_style"><?php _e('Style', 'mec'); ?></label>
118
  <select class="mec-col-4" name="mec[sk-options][grid][style]" id="mec_skin_grid_style" onchange="mec_skin_style_changed('grid', this.value);">
119
- <option value="classic" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'mec'); ?></option>
120
- <option value="clean" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'mec'); ?></option>
121
- <option value="minimal" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'minimal') echo 'selected="selected"'; ?>><?php _e('Minimal', 'mec'); ?></option>
122
- <option value="modern" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'mec'); ?></option>
123
- <option value="simple" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'simple') echo 'selected="selected"'; ?>><?php _e('Simple', 'mec'); ?></option>
124
- <option value="colorful" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'colorful') echo 'selected="selected"'; ?>><?php _e('Colorful', 'mec'); ?></option>
125
- <option value="novel" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'novel') echo 'selected="selected"'; ?>><?php _e('Novel', 'mec'); ?></option>
126
  </select>
127
  </div>
128
  <div class="mec-form-row">
129
- <label class="mec-col-4" for="mec_skin_grid_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
130
  <select class="mec-col-4" name="mec[sk-options][grid][start_date_type]" id="mec_skin_grid_start_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_grid_start_date_container').show(); else jQuery('#mec_skin_grid_start_date_container').hide();">
131
- <option value="today" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
132
- <option value="tomorrow" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
133
- <option value="start_current_month" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
134
- <option value="start_next_month" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
135
- <option value="date" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
136
  </select>
137
  <div class="mec-col-4 <?php if(!isset($sk_options_grid['start_date_type']) or (isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_grid_start_date_container">
138
- <input class="mec_date_picker" type="text" name="mec[sk-options][grid][start_date]" id="mec_skin_grid_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_grid['start_date'])) echo $sk_options_grid['start_date']; ?>" />
139
  </div>
140
  </div>
141
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'classic') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_classic_container">
142
- <label class="mec-col-4" for="mec_skin_grid_classic_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
143
  <input type="text" class="mec-col-4" name="mec[sk-options][grid][classic_date_format1]" id="mec_skin_grid_classic_date_format1" value="<?php echo ((isset($sk_options_grid['classic_date_format1']) and trim($sk_options_grid['classic_date_format1']) != '') ? $sk_options_grid['classic_date_format1'] : 'd F Y'); ?>" />
144
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "d F Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
145
  </div>
146
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_clean_container">
147
- <label class="mec-col-4" for="mec_skin_grid_clean_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
148
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][clean_date_format1]" id="mec_skin_grid_clean_date_format1" value="<?php echo ((isset($sk_options_grid['clean_date_format1']) and trim($sk_options_grid['clean_date_format1']) != '') ? $sk_options_grid['clean_date_format1'] : 'd'); ?>" />
149
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][clean_date_format2]" id="mec_skin_grid_clean_date_format2" value="<?php echo ((isset($sk_options_grid['clean_date_format2']) and trim($sk_options_grid['clean_date_format2']) != '') ? $sk_options_grid['clean_date_format2'] : 'F'); ?>" />
150
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d and F', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
151
  </div>
152
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'minimal') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_minimal_container">
153
- <label class="mec-col-4" for="mec_skin_grid_minimal_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
154
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][minimal_date_format1]" id="mec_skin_grid_minimal_date_format1" value="<?php echo ((isset($sk_options_grid['minimal_date_format1']) and trim($sk_options_grid['minimal_date_format1']) != '') ? $sk_options_grid['minimal_date_format1'] : 'd'); ?>" />
155
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][minimal_date_format2]" id="mec_skin_grid_minimal_date_format2" value="<?php echo ((isset($sk_options_grid['minimal_date_format2']) and trim($sk_options_grid['minimal_date_format2']) != '') ? $sk_options_grid['minimal_date_format2'] : 'M'); ?>" />
156
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d and M', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
157
  </div>
158
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_modern_container">
159
- <label class="mec-col-4" for="mec_skin_grid_modern_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
160
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][modern_date_format1]" id="mec_skin_grid_modern_date_format1" value="<?php echo ((isset($sk_options_grid['modern_date_format1']) and trim($sk_options_grid['modern_date_format1']) != '') ? $sk_options_grid['modern_date_format1'] : 'd'); ?>" />
161
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][modern_date_format2]" id="mec_skin_grid_modern_date_format2" value="<?php echo ((isset($sk_options_grid['modern_date_format2']) and trim($sk_options_grid['modern_date_format2']) != '') ? $sk_options_grid['modern_date_format2'] : 'F'); ?>" />
162
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][modern_date_format3]" id="mec_skin_grid_modern_date_format3" value="<?php echo ((isset($sk_options_grid['modern_date_format3']) and trim($sk_options_grid['modern_date_format3']) != '') ? $sk_options_grid['modern_date_format3'] : 'l'); ?>" />
163
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
164
  </div>
165
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'simple') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_simple_container">
166
- <label class="mec-col-4" for="mec_skin_grid_simple_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
167
  <input type="text" class="mec-col-4" name="mec[sk-options][grid][simple_date_format1]" id="mec_skin_grid_simple_date_format1" value="<?php echo ((isset($sk_options_grid['simple_date_format1']) and trim($sk_options_grid['simple_date_format1']) != '') ? $sk_options_grid['simple_date_format1'] : 'M d Y'); ?>" />
168
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
169
  </div>
170
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'colorful') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_colorful_container">
171
- <label class="mec-col-4" for="mec_skin_grid_colorful_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
172
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][colorful_date_format1]" id="mec_skin_grid_colorful_date_format1" value="<?php echo ((isset($sk_options_grid['colorful_date_format1']) and trim($sk_options_grid['colorful_date_format1']) != '') ? $sk_options_grid['colorful_date_format1'] : 'd'); ?>" />
173
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][colorful_date_format2]" id="mec_skin_grid_colorful_date_format2" value="<?php echo ((isset($sk_options_grid['colorful_date_format2']) and trim($sk_options_grid['colorful_date_format2']) != '') ? $sk_options_grid['colorful_date_format2'] : 'F'); ?>" />
174
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][colorful_date_format3]" id="mec_skin_grid_colorful_date_format3" value="<?php echo ((isset($sk_options_grid['colorful_date_format3']) and trim($sk_options_grid['colorful_date_format3']) != '') ? $sk_options_grid['colorful_date_format3'] : 'l'); ?>" />
175
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
176
  </div>
177
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'novel') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_novel_container">
178
- <label class="mec-col-4" for="mec_skin_grid_novel_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
179
  <input type="text" class="mec-col-4" name="mec[sk-options][grid][novel_date_format1]" id="mec_skin_grid_novel_date_format1" value="<?php echo ((isset($sk_options_grid['novel_date_format1']) and trim($sk_options_grid['novel_date_format1']) != '') ? $sk_options_grid['novel_date_format1'] : 'd F Y'); ?>" />
180
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "d F Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
181
  </div>
182
  <div class="mec-form-row">
183
- <label class="mec-col-4" for="mec_skin_grid_count"><?php _e('Count in row', 'mec'); ?></label>
184
  <select class="mec-col-4" name="mec[sk-options][grid][count]" id="mec_skin_grid_count">
185
  <option value="1" <?php echo (isset($sk_options_grid['count']) and $sk_options_grid['count'] == 1) ? 'selected="selected"' : ''; ?>>1</option>
186
  <option value="2" <?php echo (isset($sk_options_grid['count']) and $sk_options_grid['count'] == 2) ? 'selected="selected"' : ''; ?>>2</option>
@@ -191,12 +191,12 @@ $events = $this->main->get_events();
191
  </select>
192
  </div>
193
  <div class="mec-form-row">
194
- <label class="mec-col-4" for="mec_skin_grid_limit"><?php _e('Limit', 'mec'); ?></label>
195
- <input class="mec-col-4" type="number" name="mec[sk-options][grid][limit]" id="mec_skin_grid_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_grid['limit'])) echo $sk_options_grid['limit']; ?>" />
196
  </div>
197
  <div class="mec-form-row mec-switcher">
198
  <div class="mec-col-4">
199
- <label for="mec_skin_grid_load_more_button"><?php _e('Load More Button', 'mec'); ?></label>
200
  </div>
201
  <div class="mec-col-4">
202
  <input type="hidden" name="mec[sk-options][grid][load_more_button]" value="0" />
@@ -211,42 +211,42 @@ $events = $this->main->get_events();
211
  <div class="mec-skin-options-container mec-util-hidden" id="mec_agenda_skin_options_container">
212
 
213
  <?php if(!$this->main->getPRO()): ?>
214
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
215
  <?php endif; ?>
216
 
217
  <?php $sk_options_agenda = isset($sk_options['agenda']) ? $sk_options['agenda'] : array(); ?>
218
  <div class="mec-form-row">
219
- <label class="mec-col-4" for="mec_skin_agenda_style"><?php _e('Style', 'mec'); ?></label>
220
  <select class="mec-col-4" name="mec[sk-options][agenda][style]" id="mec_skin_agenda_style" onchange="mec_skin_style_changed('agenda', this.value);">
221
- <option value="clean" <?php if(isset($sk_options_agenda['style']) and $sk_options_agenda['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'mec'); ?></option>
222
  </select>
223
  </div>
224
  <div class="mec-form-row">
225
- <label class="mec-col-4" for="mec_skin_agenda_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
226
  <select class="mec-col-4" name="mec[sk-options][agenda][start_date_type]" id="mec_skin_agenda_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_agenda_start_date_container').show(); else jQuery('#mec_skin_agenda_start_date_container').hide();">
227
- <option value="today" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
228
- <option value="tomorrow" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
229
- <option value="start_current_month" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
230
- <option value="start_next_month" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
231
- <option value="date" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
232
  </select>
233
  <div class="mec-col-4 <?php if(!isset($sk_options_agenda['start_date_type']) or (isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_agenda_start_date_container">
234
- <input class="mec_date_picker" type="text" name="mec[sk-options][agenda][start_date]" id="mec_skin_agenda_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_agenda['start_date'])) echo $sk_options_agenda['start_date']; ?>" />
235
  </div>
236
  </div>
237
  <div class="mec-form-row mec-skin-agenda-date-format-container <?php if(isset($sk_options_agenda['style']) and $sk_options_agenda['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_agenda_date_format_clean_container">
238
- <label class="mec-col-4" for="mec_skin_agenda_clean_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
239
  <input type="text" class="mec-col-2" name="mec[sk-options][agenda][clean_date_format1]" id="mec_skin_agenda_clean_date_format1" value="<?php echo ((isset($sk_options_agenda['clean_date_format1']) and trim($sk_options_agenda['clean_date_format1']) != '') ? $sk_options_agenda['clean_date_format1'] : 'l'); ?>" />
240
  <input type="text" class="mec-col-2" name="mec[sk-options][agenda][clean_date_format2]" id="mec_skin_agenda_clean_date_format2" value="<?php echo ((isset($sk_options_agenda['clean_date_format2']) and trim($sk_options_agenda['clean_date_format2']) != '') ? $sk_options_agenda['clean_date_format2'] : 'F j'); ?>" />
241
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are l and F j', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
242
  </div>
243
  <div class="mec-form-row">
244
- <label class="mec-col-4" for="mec_skin_agenda_limit"><?php _e('Limit', 'mec'); ?></label>
245
- <input class="mec-col-4" type="number" name="mec[sk-options][agenda][limit]" id="mec_skin_agenda_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_agenda['limit'])) echo $sk_options_agenda['limit']; ?>" />
246
  </div>
247
  <div class="mec-form-row mec-switcher">
248
  <div class="mec-col-4">
249
- <label for="mec_skin_agenda_load_more_button"><?php _e('Load More Button', 'mec'); ?></label>
250
  </div>
251
  <div class="mec-col-4">
252
  <input type="hidden" name="mec[sk-options][agenda][load_more_button]" value="0" />
@@ -256,7 +256,7 @@ $events = $this->main->get_events();
256
  </div>
257
  <div class="mec-form-row mec-switcher">
258
  <div class="mec-col-4">
259
- <label for="mec_skin_agenda_month_divider"><?php _e('Show Month Divider', 'mec'); ?></label>
260
  </div>
261
  <div class="mec-col-4">
262
  <input type="hidden" name="mec[sk-options][agenda][month_divider]" value="0" />
@@ -271,29 +271,29 @@ $events = $this->main->get_events();
271
  <div class="mec-skin-options-container mec-util-hidden" id="mec_full_calendar_skin_options_container">
272
  <?php $sk_options_full_calendar = isset($sk_options['full_calendar']) ? $sk_options['full_calendar'] : array(); ?>
273
  <div class="mec-form-row">
274
- <label class="mec-col-4" for="mec_skin_full_calendar_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
275
  <select class="mec-col-4" name="mec[sk-options][full_calendar][start_date_type]" id="mec_skin_full_calendar_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_full_calendar_start_date_container').show(); else jQuery('#mec_skin_full_calendar_start_date_container').hide();">
276
- <option value="start_current_month" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
277
- <option value="start_next_month" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
278
- <option value="date" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
279
  </select>
280
  <div class="mec-col-4 <?php if(!isset($sk_options_full_calendar['start_date_type']) or (isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_full_calendar_start_date_container">
281
- <input class="mec_date_picker" type="text" name="mec[sk-options][full_calendar][start_date]" id="mec_skin_full_calendar_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_full_calendar['start_date'])) echo $sk_options_full_calendar['start_date']; ?>" />
282
  </div>
283
  </div>
284
  <div class="mec-form-row">
285
- <label class="mec-col-4" for="mec_skin_full_calendar_default_view"><?php _e('Default View', 'mec'); ?></label>
286
  <select class="mec-col-4" name="mec[sk-options][full_calendar][default_view]" id="mec_skin_full_calendar_default_view">
287
- <option value="list" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'list') ? 'selected="selected"' : ''; ?>><?php _e('List View', 'mec'); ?></option>
288
- <option value="yearly" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'yearly') ? 'selected="selected"' : ''; ?>><?php _e('Yearly View', 'mec'); ?></option>
289
- <option value="monthly" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'monthly') ? 'selected="selected"' : ''; ?>><?php _e('Monthly/Calendar View', 'mec'); ?></option>
290
- <option value="weekly" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'weekly') ? 'selected="selected"' : ''; ?>><?php _e('Weekly View', 'mec'); ?></option>
291
- <option value="daily" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'daily') ? 'selected="selected"' : ''; ?>><?php _e('Daily View', 'mec'); ?></option>
292
  </select>
293
  </div>
294
  <div class="mec-form-row mec-switcher">
295
  <div class="mec-col-4">
296
- <label for="mec_skin_full_calendar_list"><?php _e('List View', 'mec'); ?></label>
297
  </div>
298
  <div class="mec-col-4">
299
  <input type="hidden" name="mec[sk-options][full_calendar][list]" value="0" />
@@ -303,7 +303,7 @@ $events = $this->main->get_events();
303
  </div>
304
  <div class="mec-form-row mec-switcher">
305
  <div class="mec-col-4">
306
- <label for="mec_skin_full_calendar_yearly"><?php _e('Yearly View', 'mec'); ?></label>
307
  </div>
308
  <div class="mec-col-4">
309
  <input type="hidden" name="mec[sk-options][full_calendar][yearly]" value="0" />
@@ -313,7 +313,7 @@ $events = $this->main->get_events();
313
  </div>
314
  <div class="mec-form-row mec-switcher">
315
  <div class="mec-col-4">
316
- <label for="mec_skin_full_calendar_monthly"><?php _e('Monthly/Calendar View', 'mec'); ?></label>
317
  </div>
318
  <div class="mec-col-4">
319
  <input type="hidden" name="mec[sk-options][full_calendar][monthly]" value="0" />
@@ -323,7 +323,7 @@ $events = $this->main->get_events();
323
  </div>
324
  <div class="mec-form-row mec-switcher">
325
  <div class="mec-col-4">
326
- <label for="mec_skin_full_calendar_weekly"><?php _e('Weekly View', 'mec'); ?></label>
327
  </div>
328
  <div class="mec-col-4">
329
  <input type="hidden" name="mec[sk-options][full_calendar][weekly]" value="0" />
@@ -333,7 +333,7 @@ $events = $this->main->get_events();
333
  </div>
334
  <div class="mec-form-row mec-switcher">
335
  <div class="mec-col-4">
336
- <label for="mec_skin_full_calendar_daily"><?php _e('Daily View', 'mec'); ?></label>
337
  </div>
338
  <div class="mec-col-4">
339
  <input type="hidden" name="mec[sk-options][full_calendar][daily]" value="0" />
@@ -341,10 +341,10 @@ $events = $this->main->get_events();
341
  <label for="mec_skin_full_calendar_daily"></label>
342
  </div>
343
  </div>
344
- <p class="description"><?php _e("The price shows only in List View.", 'mec'); ?></p>
345
  <div class="mec-form-row mec-switcher">
346
  <div class="mec-col-4">
347
- <label for="mec_skin_full_calendar_display_price"><?php _e('Display Event Price', 'mec'); ?></label>
348
  </div>
349
  <div class="mec-col-4">
350
  <input type="hidden" name="mec[sk-options][full_calendar][display_price]" value="0" />
@@ -359,40 +359,40 @@ $events = $this->main->get_events();
359
  <div class="mec-skin-options-container mec-util-hidden" id="mec_yearly_view_skin_options_container">
360
 
361
  <?php if(!$this->main->getPRO()): ?>
362
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
363
  <?php endif; ?>
364
 
365
  <?php $sk_options_yearly_view = isset($sk_options['yearly_view']) ? $sk_options['yearly_view'] : array(); ?>
366
  <div class="mec-form-row">
367
- <label class="mec-col-4" for="mec_skin_yearly_view_style"><?php _e('Style', 'mec'); ?></label>
368
  <select class="mec-col-4" name="mec[sk-options][yearly_view][style]" id="mec_skin_yearly_view_style" onchange="mec_skin_style_changed('yearly_view', this.value);">
369
- <option value="modern" <?php if(isset($sk_options_yearly_view['style']) and $sk_options_yearly_view['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'mec'); ?></option>
370
  </select>
371
  </div>
372
  <div class="mec-form-row">
373
- <label class="mec-col-4" for="mec_skin_yearly_view_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
374
  <select class="mec-col-4" name="mec[sk-options][yearly_view][start_date_type]" id="mec_skin_yearly_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_yearly_view_start_date_container').show(); else jQuery('#mec_skin_yearly_view_start_date_container').hide();">
375
- <option value="start_current_year" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'start_current_year') echo 'selected="selected"'; ?>><?php _e('Start of Current Year', 'mec'); ?></option>
376
- <option value="start_next_year" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'start_next_year') echo 'selected="selected"'; ?>><?php _e('Start of Next Year', 'mec'); ?></option>
377
- <option value="date" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
378
  </select>
379
  <div class="mec-col-4 <?php if(!isset($sk_options_yearly_view['start_date_type']) or (isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_start_date_container">
380
- <input class="mec_date_picker" type="text" name="mec[sk-options][yearly_view][start_date]" id="mec_skin_yearly_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_yearly_view['start_date'])) echo $sk_options_yearly_view['start_date']; ?>" />
381
  </div>
382
  </div>
383
  <div class="mec-form-row mec-skin-yearly-view-date-format-container <?php if(isset($sk_options_yearly_view['style']) and $sk_options_yearly_view['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_date_format_modern_container">
384
- <label class="mec-col-4" for="mec_skin_agenda_modern_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
385
  <input type="text" class="mec-col-2" name="mec[sk-options][yearly_view][modern_date_format1]" id="mec_skin_yearly_view_modern_date_format1" value="<?php echo ((isset($sk_options_yearly_view['modern_date_format1']) and trim($sk_options_yearly_view['modern_date_format1']) != '') ? $sk_options_yearly_view['modern_date_format1'] : 'l'); ?>" />
386
  <input type="text" class="mec-col-2" name="mec[sk-options][yearly_view][modern_date_format2]" id="mec_skin_yearly_view_modern_date_format2" value="<?php echo ((isset($sk_options_yearly_view['modern_date_format2']) and trim($sk_options_yearly_view['modern_date_format2']) != '') ? $sk_options_yearly_view['modern_date_format2'] : 'F j'); ?>" />
387
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are l and F j', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
388
  </div>
389
  <div class="mec-form-row">
390
- <label class="mec-col-4" for="mec_skin_yearly_view_limit"><?php _e('Events per day', 'mec'); ?></label>
391
- <input class="mec-col-4" type="number" name="mec[sk-options][yearly_view][limit]" id="mec_skin_yearly_view_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_yearly_view['limit'])) echo $sk_options_yearly_view['limit']; ?>" />
392
  </div>
393
  <div class="mec-form-row mec-switcher">
394
  <div class="mec-col-4">
395
- <label><?php _e('Next/Previous Buttons', 'mec'); ?></label>
396
  </div>
397
  <div class="mec-col-4">
398
  <input type="hidden" name="mec[sk-options][yearly_view][next_previous_button]" value="0" />
@@ -400,7 +400,7 @@ $events = $this->main->get_events();
400
  <label for="mec_skin_yearly_view_next_previous_button"></label>
401
  </div>
402
  </div>
403
- <p class="description"><?php _e('For showing next/previous year navigation.', 'mec'); ?></p>
404
  <?php echo $this->sed_method_field('yearly_view', (isset($sk_options_yearly_view['sed_method']) ? $sk_options_yearly_view['sed_method'] : 0)); ?>
405
  </div>
406
 
@@ -408,31 +408,31 @@ $events = $this->main->get_events();
408
  <div class="mec-skin-options-container mec-util-hidden" id="mec_monthly_view_skin_options_container">
409
  <?php $sk_options_monthly_view = isset($sk_options['monthly_view']) ? $sk_options['monthly_view'] : array(); ?>
410
  <div class="mec-form-row">
411
- <label class="mec-col-4" for="mec_skin_monthly_view_style"><?php _e('Style', 'mec'); ?></label>
412
  <select class="mec-col-4" name="mec[sk-options][monthly_view][style]" id="mec_skin_monthly_view_style" onchange="mec_skin_style_changed('monthly_view', this.value);">
413
- <option value="classic" <?php if(isset($sk_options_monthly_view['style']) and $sk_options_monthly_view['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'mec'); ?></option>
414
- <option value="clean" <?php if(isset($sk_options_monthly_view['style']) and $sk_options_monthly_view['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'mec'); ?></option>
415
- <option value="modern" <?php if(isset($sk_options_monthly_view['style']) and $sk_options_monthly_view['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'mec'); ?></option>
416
  </select>
417
  </div>
418
  <div class="mec-form-row">
419
- <label class="mec-col-4" for="mec_skin_monthly_view_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
420
  <select class="mec-col-4" name="mec[sk-options][monthly_view][start_date_type]" id="mec_skin_monthly_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_monthly_view_start_date_container').show(); else jQuery('#mec_skin_monthly_view_start_date_container').hide();">
421
- <option value="start_current_month" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
422
- <option value="start_next_month" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
423
- <option value="date" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
424
  </select>
425
  <div class="mec-col-4 <?php if(!isset($sk_options_monthly_view['start_date_type']) or (isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_monthly_view_start_date_container">
426
- <input class="mec_date_picker" type="text" name="mec[sk-options][monthly_view][start_date]" id="mec_skin_monthly_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_monthly_view['start_date'])) echo $sk_options_monthly_view['start_date']; ?>" />
427
  </div>
428
  </div>
429
  <div class="mec-form-row">
430
- <label class="mec-col-4" for="mec_skin_monthly_view_limit"><?php _e('Events per day', 'mec'); ?></label>
431
- <input class="mec-col-4" type="number" name="mec[sk-options][monthly_view][limit]" id="mec_skin_monthly_view_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_monthly_view['limit'])) echo $sk_options_monthly_view['limit']; ?>" />
432
  </div>
433
  <div class="mec-form-row mec-switcher">
434
  <div class="mec-col-4">
435
- <label><?php _e('Next/Previous Buttons', 'mec'); ?></label>
436
  </div>
437
  <div class="mec-col-4">
438
  <input type="hidden" name="mec[sk-options][monthly_view][next_previous_button]" value="0" />
@@ -440,7 +440,7 @@ $events = $this->main->get_events();
440
  <label for="mec_skin_monthly_view_next_previous_button"></label>
441
  </div>
442
  </div>
443
- <p class="description"><?php _e('For showing next/previous month navigation.', 'mec'); ?></p>
444
  <?php echo $this->sed_method_field('monthly_view', (isset($sk_options_monthly_view['sed_method']) ? $sk_options_monthly_view['sed_method'] : 0)); ?>
445
  </div>
446
 
@@ -448,30 +448,30 @@ $events = $this->main->get_events();
448
  <div class="mec-skin-options-container mec-util-hidden" id="mec_map_skin_options_container">
449
 
450
  <?php if(!$this->main->getPRO()): ?>
451
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
452
  <?php endif; ?>
453
 
454
  <?php $sk_options_map = isset($sk_options['map']) ? $sk_options['map'] : array(); ?>
455
  <div class="mec-form-row">
456
- <label class="mec-col-4" for="mec_skin_map_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
457
  <select class="mec-col-4" name="mec[sk-options][map][start_date_type]" id="mec_skin_map_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_map_start_date_container').show(); else jQuery('#mec_skin_map_start_date_container').hide();">
458
- <option value="today" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
459
- <option value="tomorrow" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
460
- <option value="start_current_month" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
461
- <option value="start_next_month" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
462
- <option value="date" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
463
  </select>
464
  <div class="mec-col-4 <?php if(!isset($sk_options_map['start_date_type']) or (isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_map_start_date_container">
465
- <input class="mec_date_picker" type="text" name="mec[sk-options][map][start_date]" id="mec_skin_map_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_map['start_date'])) echo $sk_options_map['start_date']; ?>" />
466
  </div>
467
  </div>
468
  <div class="mec-form-row">
469
- <label class="mec-col-4" for="mec_skin_map_limit"><?php _e('Maximum events', 'mec'); ?></label>
470
- <input class="mec-col-4" type="number" name="mec[sk-options][map][limit]" id="mec_skin_map_limit" placeholder="<?php _e('eg. 200', 'mec'); ?>" value="<?php echo (isset($sk_options_map['limit']) ? $sk_options_map['limit'] : 200); ?>" />
471
  </div>
472
  <div class="mec-form-row mec-switcher">
473
  <div class="mec-col-4">
474
- <label><?php _e('Geolocation', 'mec'); ?></label>
475
  </div>
476
  <div class="mec-col-4">
477
  <input type="hidden" name="mec[sk-options][map][geolocation]" value="0" />
@@ -479,33 +479,33 @@ $events = $this->main->get_events();
479
  <label for="mec_skin_map_geolocation"></label>
480
  </div>
481
  </div>
482
- <p class="description"><?php _e('The geolocation feature works only in secure (https) websites.', 'mec'); ?></p>
483
  </div>
484
 
485
  <!-- Daily View -->
486
  <div class="mec-skin-options-container mec-util-hidden" id="mec_daily_view_skin_options_container">
487
  <?php $sk_options_daily_view = isset($sk_options['daily_view']) ? $sk_options['daily_view'] : array(); ?>
488
  <div class="mec-form-row">
489
- <label class="mec-col-4" for="mec_skin_daily_view_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
490
  <select class="mec-col-4" name="mec[sk-options][daily_view][start_date_type]" id="mec_skin_daily_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_daily_view_start_date_container').show(); else jQuery('#mec_skin_daily_view_start_date_container').hide();">
491
- <option value="today" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
492
- <option value="tomorrow" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
493
- <option value="start_current_month" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
494
- <option value="start_next_month" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
495
- <option value="date" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
496
  </select>
497
 
498
  <div class="mec-col-4 <?php if(!isset($sk_options_daily_view['start_date_type']) or (isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_daily_view_start_date_container">
499
- <input class="mec_date_picker" type="text" name="mec[sk-options][daily_view][start_date]" id="mec_skin_daily_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_daily_view['start_date'])) echo $sk_options_daily_view['start_date']; ?>" />
500
  </div>
501
  </div>
502
  <div class="mec-form-row">
503
- <label class="mec-col-4" for="mec_skin_daily_view_limit"><?php _e('Events per day', 'mec'); ?></label>
504
- <input class="mec-col-4" type="number" name="mec[sk-options][daily_view][limit]" id="mec_skin_daily_view_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_daily_view['limit'])) echo $sk_options_daily_view['limit']; ?>" />
505
  </div>
506
  <div class="mec-form-row mec-switcher">
507
  <div class="mec-col-4">
508
- <label><?php _e('Next/Previous Buttons', 'mec'); ?></label>
509
  </div>
510
  <div class="mec-col-4">
511
  <input type="hidden" name="mec[sk-options][daily_view][next_previous_button]" value="0" />
@@ -513,7 +513,7 @@ $events = $this->main->get_events();
513
  <label for="mec_skin_daily_view_next_previous_button"></label>
514
  </div>
515
  </div>
516
- <p class="description"><?php _e('For showing next/previous month navigation.', 'mec'); ?></p>
517
  <?php echo $this->sed_method_field('daily_view', (isset($sk_options_daily_view['sed_method']) ? $sk_options_daily_view['sed_method'] : 0)); ?>
518
  </div>
519
 
@@ -521,25 +521,25 @@ $events = $this->main->get_events();
521
  <div class="mec-skin-options-container mec-util-hidden" id="mec_weekly_view_skin_options_container">
522
  <?php $sk_options_weekly_view = isset($sk_options['weekly_view']) ? $sk_options['weekly_view'] : array(); ?>
523
  <div class="mec-form-row">
524
- <label class="mec-col-4" for="mec_skin_weekly_view_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
525
  <select class="mec-col-4" name="mec[sk-options][weekly_view][start_date_type]" id="mec_skin_weekly_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_weekly_view_start_date_container').show(); else jQuery('#mec_skin_weekly_view_start_date_container').hide();">
526
- <option value="start_current_week" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_current_week') echo 'selected="selected"'; ?>><?php _e('Current Week', 'mec'); ?></option>
527
- <option value="start_next_week" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_next_week') echo 'selected="selected"'; ?>><?php _e('Next Week', 'mec'); ?></option>
528
- <option value="start_current_month" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
529
- <option value="start_next_month" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
530
- <option value="date" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
531
  </select>
532
  <div class="mec-col-4 <?php if(!isset($sk_options_weekly_view['start_date_type']) or (isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_weekly_view_start_date_container">
533
- <input class="mec_date_picker" type="text" name="mec[sk-options][weekly_view][start_date]" id="mec_skin_weekly_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_weekly_view['start_date'])) echo $sk_options_weekly_view['start_date']; ?>" />
534
  </div>
535
  </div>
536
  <div class="mec-form-row">
537
- <label class="mec-col-4" for="mec_skin_weekly_view_limit"><?php _e('Events per day', 'mec'); ?></label>
538
- <input class="mec-col-4" type="number" name="mec[sk-options][weekly_view][limit]" id="mec_skin_weekly_view_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_weekly_view['limit'])) echo $sk_options_weekly_view['limit']; ?>" />
539
  </div>
540
  <div class="mec-form-row mec-switcher">
541
  <div class="mec-col-4">
542
- <label><?php _e('Next/Previous Buttons', 'mec'); ?></label>
543
  </div>
544
  <div class="mec-col-4">
545
  <input type="hidden" name="mec[sk-options][weekly_view][next_previous_button]" value="0" />
@@ -547,7 +547,7 @@ $events = $this->main->get_events();
547
  <label for="mec_skin_weekly_view_next_previous_button"></label>
548
  </div>
549
  </div>
550
- <p class="description"><?php _e('For showing next/previous month navigation.', 'mec'); ?></p>
551
  <?php echo $this->sed_method_field('weekly_view', (isset($sk_options_weekly_view['sed_method']) ? $sk_options_weekly_view['sed_method'] : 0)); ?>
552
  </div>
553
 
@@ -555,38 +555,38 @@ $events = $this->main->get_events();
555
  <div class="mec-skin-options-container mec-util-hidden" id="mec_timetable_skin_options_container">
556
 
557
  <?php if(!$this->main->getPRO()): ?>
558
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
559
  <?php endif; ?>
560
 
561
  <?php $sk_options_timetable = isset($sk_options['timetable']) ? $sk_options['timetable'] : array(); ?>
562
  <div class="mec-form-row">
563
- <label class="mec-col-4" for="mec_skin_timetable_style"><?php _e('Style', 'mec'); ?></label>
564
  <select class="mec-col-4" name="mec[sk-options][timetable][style]" id="mec_skin_timetable_style" onchange="mec_skin_style_changed('timetable', this.value); if(this.value == 'clean') jQuery('.mec-timetable-next-previous-button').hide(); else jQuery('.mec-timetable-next-previous-button').show();">
565
- <option value="modern" <?php if(isset($sk_options_timetable['style']) and $sk_options_timetable['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'mec'); ?></option>
566
- <option value="clean" <?php if(isset($sk_options_timetable['style']) and $sk_options_timetable['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'mec'); ?></option>
567
  </select>
568
  </div>
569
  <div class="mec-form-row">
570
- <label class="mec-col-4" for="mec_skin_timetable_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
571
  <select class="mec-col-4" name="mec[sk-options][timetable][start_date_type]" id="mec_skin_timetable_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_timetable_start_date_container').show(); else jQuery('#mec_skin_timetable_start_date_container').hide();">
572
- <option value="start_current_week" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_current_week') echo 'selected="selected"'; ?>><?php _e('Current Week', 'mec'); ?></option>
573
- <option value="start_next_week" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_next_week') echo 'selected="selected"'; ?>><?php _e('Next Week', 'mec'); ?></option>
574
- <option value="start_current_month" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
575
- <option value="start_next_month" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
576
- <option value="date" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
577
  </select>
578
  <div class="mec-col-4 <?php if(!isset($sk_options_timetable['start_date_type']) or (isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_timetable_start_date_container">
579
- <input class="mec_date_picker" type="text" name="mec[sk-options][timetable][start_date]" id="mec_skin_timetable_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_timetable['start_date'])) echo $sk_options_timetable['start_date']; ?>" />
580
  </div>
581
  </div>
582
  <div class="mec-form-row">
583
- <label class="mec-col-4" for="mec_skin_timetable_limit"><?php _e('Events per day', 'mec'); ?></label>
584
- <input class="mec-col-4" type="number" name="mec[sk-options][timetable][limit]" id="mec_skin_timetable_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_timetable['limit'])) echo $sk_options_timetable['limit']; ?>" />
585
  </div>
586
  <div class="mec-timetable-next-previous-button">
587
  <div class="mec-form-row mec-switcher">
588
  <div class="mec-col-4">
589
- <label><?php _e('Next/Previous Buttons', 'mec'); ?></label>
590
  </div>
591
  <div class="mec-col-4">
592
  <input type="hidden" name="mec[sk-options][timetable][next_previous_button]" value="0" />
@@ -594,7 +594,7 @@ $events = $this->main->get_events();
594
  <label for="mec_skin_timetable_next_previous_button"></label>
595
  </div>
596
  </div>
597
- <p class="description"><?php _e('For showing next/previous month navigation.', 'mec'); ?></p>
598
  </div>
599
  <div class="mec-timetable-sed-methode-container">
600
  <?php echo $this->sed_method_field('timetable', (isset($sk_options_timetable['sed_method']) ? $sk_options_timetable['sed_method'] : 0)); ?>
@@ -605,41 +605,41 @@ $events = $this->main->get_events();
605
  <div class="mec-skin-options-container mec-util-hidden" id="mec_masonry_skin_options_container">
606
 
607
  <?php if(!$this->main->getPRO()): ?>
608
- <div class="info-msg"><?php echo sprintf(__("%s is required to use synchronization feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
609
  <?php endif; ?>
610
 
611
  <?php $sk_options_masonry = isset($sk_options['masonry']) ? $sk_options['masonry'] : array(); ?>
612
  <div class="mec-form-row">
613
- <label class="mec-col-4" for="mec_skin_masonry_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
614
  <select class="mec-col-4" name="mec[sk-options][masonry][start_date_type]" id="mec_skin_masonry_start_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_masonry_start_date_container').show(); else jQuery('#mec_skin_masonry_start_date_container').hide();">
615
- <option value="today" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
616
- <option value="tomorrow" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
617
- <option value="start_current_month" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
618
- <option value="start_next_month" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
619
- <option value="date" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
620
  </select>
621
  <div class="mec-col-4 <?php if(!isset($sk_options_masonry['start_date_type']) or (isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_masonry_start_date_container">
622
- <input class="mec_date_picker" type="text" name="mec[sk-options][masonry][start_date]" id="mec_skin_masonry_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_masonry['start_date'])) echo $sk_options_masonry['start_date']; ?>" />
623
  </div>
624
  </div>
625
  <div class="mec-form-row mec-skin-masonry-date-format-container">
626
- <label class="mec-col-4" for="mec_skin_masonry_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
627
  <input type="text" class="mec-col-2" name="mec[sk-options][masonry][date_format1]" id="mec_skin_masonry_date_format1" value="<?php echo ((isset($sk_options_masonry['date_format1']) and trim($sk_options_masonry['date_format1']) != '') ? $sk_options_masonry['date_format1'] : 'j'); ?>" />
628
  <input type="text" class="mec-col-2" name="mec[sk-options][masonry][date_format2]" id="mec_skin_masonry_date_format2" value="<?php echo ((isset($sk_options_masonry['date_format2']) and trim($sk_options_masonry['date_format2']) != '') ? $sk_options_masonry['date_format2'] : 'F'); ?>" />
629
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are j and F', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
630
  </div>
631
  <div class="mec-form-row">
632
- <label class="mec-col-4" for="mec_skin_masonry_limit"><?php _e('Limit', 'mec'); ?></label>
633
- <input class="mec-col-4" type="number" name="mec[sk-options][masonry][limit]" id="mec_skin_masonry_limit" placeholder="<?php _e('eg. 24', 'mec'); ?>" value="<?php if(isset($sk_options_masonry['limit'])) echo $sk_options_masonry['limit']; ?>" />
634
  </div>
635
  <div class="mec-form-row">
636
- <label class="mec-col-4" for="mec_skin_masonry_filter_by"><?php _e('Filter By', 'mec'); ?></label>
637
  <select class="mec-col-4" name="mec[sk-options][masonry][filter_by]" id="mec_skin_masonry_filter_by">
638
  <option value="" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == '') echo 'selected="selected"'; ?>>-----</option>
639
- <option value="category" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'category') echo 'selected="selected"'; ?>><?php _e('Category', 'mec'); ?></option>
640
- <option value="label" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'label') echo 'selected="selected"'; ?>><?php _e('Label', 'mec'); ?></option>
641
- <option value="location" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'location') echo 'selected="selected"'; ?>><?php _e('Location', 'mec'); ?></option>
642
- <option value="organizer" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'organizer') echo 'selected="selected"'; ?>><?php _e('Organizer', 'mec'); ?></option>
643
  </select>
644
  </div>
645
  <?php echo $this->sed_method_field('masonry', (isset($sk_options_masonry['sed_method']) ? $sk_options_masonry['sed_method'] : 0)); ?>
@@ -649,33 +649,33 @@ $events = $this->main->get_events();
649
  <div class="mec-skin-options-container mec-util-hidden" id="mec_cover_skin_options_container">
650
  <?php $sk_options_cover = isset($sk_options['cover']) ? $sk_options['cover'] : array(); ?>
651
  <div class="mec-form-row">
652
- <label class="mec-col-4" for="mec_skin_cover_style"><?php _e('Style', 'mec'); ?></label>
653
  <select class="mec-col-4" name="mec[sk-options][cover][style]" id="mec_skin_cover_style" onchange="mec_skin_style_changed('cover', this.value);">
654
- <option value="classic" <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'mec'); ?></option>
655
- <option value="clean" <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'mec'); ?></option>
656
- <option value="modern" <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'mec'); ?></option>
657
  </select>
658
  </div>
659
  <div class="mec-form-row mec-skin-cover-date-format-container <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_cover_date_format_clean_container">
660
- <label class="mec-col-4" for="mec_skin_cover_date_format_clean1"><?php _e('Date Formats', 'mec'); ?></label>
661
  <input type="text" class="mec-col-2" name="mec[sk-options][cover][date_format_clean1]" id="mec_skin_cover_date_format_clean1" value="<?php echo ((isset($sk_options_cover['date_format_clean1']) and trim($sk_options_cover['date_format_clean1']) != '') ? $sk_options_cover['date_format_clean1'] : 'd'); ?>" />
662
  <input type="text" class="mec-col-1" name="mec[sk-options][cover][date_format_clean2]" id="mec_skin_cover_date_format_clean2" value="<?php echo ((isset($sk_options_cover['date_format_clean2']) and trim($sk_options_cover['date_format_clean2']) != '') ? $sk_options_cover['date_format_clean2'] : 'M'); ?>" />
663
  <input type="text" class="mec-col-1" name="mec[sk-options][cover][date_format_clean3]" id="mec_skin_cover_date_format_clean3" value="<?php echo ((isset($sk_options_cover['date_format_clean3']) and trim($sk_options_cover['date_format_clean3']) != '') ? $sk_options_cover['date_format_clean3'] : 'Y'); ?>" />
664
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, M and Y', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
665
  </div>
666
  <div class="mec-form-row mec-skin-cover-date-format-container <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] != 'classic') echo 'mec-util-hidden'; ?>" id="mec_skin_cover_date_format_classic_container">
667
- <label class="mec-col-4" for="mec_skin_cover_date_format_classic1"><?php _e('Date Formats', 'mec'); ?></label>
668
  <input type="text" class="mec-col-2" name="mec[sk-options][cover][date_format_classic1]" id="mec_skin_cover_date_format_classic1" value="<?php echo ((isset($sk_options_cover['date_format_classic1']) and trim($sk_options_cover['date_format_classic1']) != '') ? $sk_options_cover['date_format_classic1'] : 'F d'); ?>" />
669
  <input type="text" class="mec-col-2" name="mec[sk-options][cover][date_format_classic2]" id="mec_skin_cover_date_format_classic2" value="<?php echo ((isset($sk_options_cover['date_format_classic2']) and trim($sk_options_cover['date_format_classic2']) != '') ? $sk_options_cover['date_format_classic2'] : 'l'); ?>" />
670
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are "F d" and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
671
  </div>
672
  <div class="mec-form-row mec-skin-cover-date-format-container <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_cover_date_format_modern_container">
673
- <label class="mec-col-4" for="mec_skin_cover_date_format_modern1"><?php _e('Date Formats', 'mec'); ?></label>
674
  <input type="text" class="mec-col-4" name="mec[sk-options][cover][date_format_modern1]" id="mec_skin_cover_date_format_modern1" value="<?php echo ((isset($sk_options_cover['date_format_modern1']) and trim($sk_options_cover['date_format_modern1']) != '') ? $sk_options_cover['date_format_modern1'] : 'l, F d Y'); ?>" />
675
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "l, F d Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
676
  </div>
677
  <div class="mec-form-row">
678
- <label class="mec-col-4" for="mec_skin_cover_event_id"><?php _e('Event', 'mec'); ?></label>
679
  <select class="mec-col-4" name="mec[sk-options][cover][event_id]" id="mec_skin_cover_event_id">
680
  <?php foreach($events as $event): ?>
681
  <option value="<?php echo $event->ID; ?>" <?php if(isset($sk_options_cover['event_id']) and $sk_options_cover['event_id'] == $event->ID) echo 'selected="selected"'; ?>><?php echo $event->post_title; ?></option>
@@ -688,41 +688,41 @@ $events = $this->main->get_events();
688
  <div class="mec-skin-options-container mec-util-hidden" id="mec_countdown_skin_options_container">
689
  <?php $sk_options_countdown = isset($sk_options['countdown']) ? $sk_options['countdown'] : array(); ?>
690
  <div class="mec-form-row">
691
- <label class="mec-col-4" for="mec_skin_countdown_style"><?php _e('Style', 'mec'); ?></label>
692
  <select class="mec-col-4" name="mec[sk-options][countdown][style]" id="mec_skin_countdown_style" onchange="mec_skin_style_changed('countdown', this.value);">
693
- <option value="style1" <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] == 'style1') echo 'selected="selected"'; ?>><?php _e('Style 1', 'mec'); ?></option>
694
- <option value="style2" <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] == 'style2') echo 'selected="selected"'; ?>><?php _e('Style 2', 'mec'); ?></option>
695
- <option value="style3" <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] == 'style3') echo 'selected="selected"'; ?>><?php _e('Style 3', 'mec'); ?></option>
696
  </select>
697
  </div>
698
  <div class="mec-form-row mec-skin-countdown-date-format-container <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_countdown_date_format_style1_container">
699
- <label class="mec-col-4" for="mec_skin_countdown_date_format_style11"><?php _e('Date Formats', 'mec'); ?></label>
700
  <input type="text" class="mec-col-4" name="mec[sk-options][countdown][date_format_style11]" id="mec_skin_countdown_date_format_style11" value="<?php echo ((isset($sk_options_countdown['date_format_style11']) and trim($sk_options_countdown['date_format_style11']) != '') ? $sk_options_countdown['date_format_style11'] : 'j F Y'); ?>" />
701
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "j F Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
702
  </div>
703
  <div class="mec-form-row mec-skin-countdown-date-format-container <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] != 'style2') echo 'mec-util-hidden'; ?>" id="mec_skin_countdown_date_format_style2_container">
704
- <label class="mec-col-4" for="mec_skin_countdown_date_format_style21"><?php _e('Date Formats', 'mec'); ?></label>
705
  <input type="text" class="mec-col-4" name="mec[sk-options][countdown][date_format_style21]" id="mec_skin_countdown_date_format_style21" value="<?php echo ((isset($sk_options_countdown['date_format_style21']) and trim($sk_options_countdown['date_format_style21']) != '') ? $sk_options_countdown['date_format_style21'] : 'j F Y'); ?>" />
706
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "j F Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
707
  </div>
708
  <div class="mec-form-row mec-skin-countdown-date-format-container <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] != 'style3') echo 'mec-util-hidden'; ?>" id="mec_skin_countdown_date_format_style3_container">
709
- <label class="mec-col-4" for="mec_skin_countdown_date_format_style31"><?php _e('Date Formats', 'mec'); ?></label>
710
  <input type="text" class="mec-col-1" name="mec[sk-options][countdown][date_format_style31]" id="mec_skin_countdown_date_format_style31" value="<?php echo ((isset($sk_options_countdown['date_format_style31']) and trim($sk_options_countdown['date_format_style31']) != '') ? $sk_options_countdown['date_format_style31'] : 'j'); ?>" />
711
  <input type="text" class="mec-col-1" name="mec[sk-options][countdown][date_format_style32]" id="mec_skin_countdown_date_format_style32" value="<?php echo ((isset($sk_options_countdown['date_format_style32']) and trim($sk_options_countdown['date_format_style32']) != '') ? $sk_options_countdown['date_format_style32'] : 'F'); ?>" />
712
  <input type="text" class="mec-col-2" name="mec[sk-options][countdown][date_format_style33]" id="mec_skin_countdown_date_format_style33" value="<?php echo ((isset($sk_options_countdown['date_format_style33']) and trim($sk_options_countdown['date_format_style33']) != '') ? $sk_options_countdown['date_format_style33'] : 'Y'); ?>" />
713
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are j, F and Y', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
714
  </div>
715
  <div class="mec-form-row">
716
- <label class="mec-col-4" for="mec_skin_countdown_event_id"><?php _e('Event', 'mec'); ?></label>
717
  <select class="mec-col-4" name="mec[sk-options][countdown][event_id]" id="mec_skin_countdown_event_id">
718
- <option value="-1" <?php if(isset($sk_options_countdown['event_id']) and $sk_options_countdown['event_id'] == '-1') echo 'selected="selected"'; ?>><?php echo __(' -- Next Upcoming Event -- ', 'mec') ?></option>
719
  <?php foreach($events as $event): ?>
720
  <option value="<?php echo $event->ID; ?>" <?php if(isset($sk_options_countdown['event_id']) and $sk_options_countdown['event_id'] == $event->ID) echo 'selected="selected"'; ?>><?php echo $event->post_title; ?></option>
721
  <?php endforeach; ?>
722
  </select>
723
  </div>
724
  <div class="mec-form-row">
725
- <label class="mec-col-4" for="mec_skin_countdown_bg_color"><?php _e('Background Color', 'mec'); ?></label>
726
  <input type="text" class="mec-col-4 mec-color-picker wp-color-picker-field" id="mec_skin_countdown_bg_color" name="mec[sk-options][countdown][bg_color]" value="<?php echo ((isset($sk_options_countdown['bg_color']) and trim($sk_options_countdown['bg_color']) != '') ? $sk_options_countdown['bg_color'] : '#437df9'); ?>" data-default-color="#437df9" />
727
  </div>
728
  </div>
@@ -731,20 +731,20 @@ $events = $this->main->get_events();
731
  <div class="mec-skin-options-container mec-util-hidden" id="mec_available_spot_skin_options_container">
732
 
733
  <?php if(!$this->main->getPRO()): ?>
734
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
735
  <?php endif; ?>
736
 
737
  <?php $sk_options_available_spot = isset($sk_options['available_spot']) ? $sk_options['available_spot'] : array(); ?>
738
  <div class="mec-form-row mec-skin-available-spot-date-format-container">
739
- <label class="mec-col-4" for="mec_skin_available_spot_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
740
  <input type="text" class="mec-col-2" name="mec[sk-options][available_spot][date_format1]" id="mec_skin_available_spot_date_format1" value="<?php echo ((isset($sk_options_available_spot['date_format1']) and trim($sk_options_available_spot['date_format1']) != '') ? $sk_options_available_spot['date_format1'] : 'j'); ?>" />
741
  <input type="text" class="mec-col-2" name="mec[sk-options][available_spot][date_format2]" id="mec_skin_available_spot_date_format2" value="<?php echo ((isset($sk_options_available_spot['date_format2']) and trim($sk_options_available_spot['date_format2']) != '') ? $sk_options_available_spot['date_format2'] : 'F'); ?>" />
742
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are j and F', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
743
  </div>
744
  <div class="mec-form-row">
745
- <label class="mec-col-4" for="mec_skin_available_spot_event_id"><?php _e('Event', 'mec'); ?></label>
746
  <select class="mec-col-4" name="mec[sk-options][available_spot][event_id]" id="mec_skin_available_spot_event_id">
747
- <option value="-1" <?php if(isset($sk_options_available_spot['event_id']) and $sk_options_available_spot['event_id'] == '-1') echo 'selected="selected"'; ?>><?php echo __(' -- Next Upcoming Event -- ', 'mec') ?></option>
748
  <?php foreach($events as $event): ?>
749
  <option value="<?php echo $event->ID; ?>" <?php if(isset($sk_options_available_spot['event_id']) and $sk_options_available_spot['event_id'] == $event->ID) echo 'selected="selected"'; ?>><?php echo $event->post_title; ?></option>
750
  <?php endforeach; ?>
@@ -756,45 +756,45 @@ $events = $this->main->get_events();
756
  <div class="mec-skin-options-container mec-util-hidden" id="mec_carousel_skin_options_container">
757
  <?php $sk_options_carousel = isset($sk_options['carousel']) ? $sk_options['carousel'] : array(); ?>
758
  <div class="mec-form-row">
759
- <label class="mec-col-4" for="mec_skin_carousel_style"><?php _e('Style', 'mec'); ?></label>
760
  <select class="mec-col-4" name="mec[sk-options][carousel][style]" id="mec_skin_carousel_style" onchange="mec_skin_style_changed('carousel', this.value);">
761
- <option value="type1" <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] == 'type1') echo 'selected="selected"'; ?>><?php _e('Type 1', 'mec'); ?></option>
762
- <option value="type2" <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] == 'type2') echo 'selected="selected"'; ?>><?php _e('Type 2', 'mec'); ?></option>
763
- <option value="type3" <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] == 'type3') echo 'selected="selected"'; ?>><?php _e('Type 3', 'mec'); ?></option>
764
  </select>
765
  </div>
766
  <div class="mec-form-row">
767
- <label class="mec-col-4" for="mec_skin_carousel_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
768
  <select class="mec-col-4" name="mec[sk-options][carousel][start_date_type]" id="mec_skin_carousel_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_carousel_start_date_container').show(); else jQuery('#mec_skin_carousel_start_date_container').hide();">
769
- <option value="today" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
770
- <option value="tomorrow" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
771
- <option value="start_current_month" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
772
- <option value="start_next_month" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
773
- <option value="date" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
774
  </select>
775
  <div class="mec-col-4 <?php if(!isset($sk_options_carousel['start_date_type']) or (isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_start_date_container">
776
- <input class="mec_date_picker" type="text" name="mec[sk-options][carousel][start_date]" id="mec_skin_carousel_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_carousel['start_date'])) echo $sk_options_carousel['start_date']; ?>" />
777
  </div>
778
  </div>
779
  <div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type1') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type1_container">
780
- <label class="mec-col-4" for="mec_skin_carousel_type1_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
781
  <input type="text" class="mec-col-2" name="mec[sk-options][carousel][type1_date_format1]" id="mec_skin_carousel_type1_date_format1" value="<?php echo ((isset($sk_options_carousel['type1_date_format1']) and trim($sk_options_carousel['type1_date_format1']) != '') ? $sk_options_carousel['type1_date_format1'] : 'd'); ?>" />
782
  <input type="text" class="mec-col-1" name="mec[sk-options][carousel][type1_date_format2]" id="mec_skin_carousel_type1_date_format2" value="<?php echo ((isset($sk_options_carousel['type1_date_format2']) and trim($sk_options_carousel['type1_date_format2']) != '') ? $sk_options_carousel['type1_date_format2'] : 'F'); ?>" />
783
  <input type="text" class="mec-col-1" name="mec[sk-options][carousel][type1_date_format3]" id="mec_skin_carousel_type1_date_format3" value="<?php echo ((isset($sk_options_carousel['type1_date_format3']) and trim($sk_options_carousel['type1_date_format3']) != '') ? $sk_options_carousel['type1_date_format3'] : 'Y'); ?>" />
784
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and Y', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
785
  </div>
786
  <div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type2') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type2_container">
787
- <label class="mec-col-4" for="mec_skin_carousel_type2_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
788
  <input type="text" class="mec-col-4" name="mec[sk-options][carousel][type2_date_format1]" id="mec_skin_carousel_type2_date_format1" value="<?php echo ((isset($sk_options_carousel['type2_date_format1']) and trim($sk_options_carousel['type2_date_format1']) != '') ? $sk_options_carousel['type2_date_format1'] : 'M d, Y'); ?>" />
789
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d, Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
790
  </div>
791
  <div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type3') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type3_container">
792
- <label class="mec-col-4" for="mec_skin_carousel_type3_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
793
  <input type="text" class="mec-col-4" name="mec[sk-options][carousel][type3_date_format1]" id="mec_skin_carousel_type3_date_format1" value="<?php echo ((isset($sk_options_carousel['type3_date_format1']) and trim($sk_options_carousel['type3_date_format1']) != '') ? $sk_options_carousel['type3_date_format1'] : 'M d, Y'); ?>" />
794
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d, Y"', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
795
  </div>
796
  <div class="mec-form-row">
797
- <label class="mec-col-4" for="mec_skin_carousel_count"><?php _e('Count in row', 'mec'); ?></label>
798
  <select class="mec-col-4" name="mec[sk-options][carousel][count]" id="mec_skin_carousel_count">
799
  <option value="2" <?php echo (isset($sk_options_carousel['count']) and $sk_options_carousel['count'] == 2) ? 'selected="selected"' : ''; ?>>2</option>
800
  <option value="3" <?php echo (isset($sk_options_carousel['count']) and $sk_options_carousel['count'] == 3) ? 'selected="selected"' : ''; ?>>3</option>
@@ -803,12 +803,12 @@ $events = $this->main->get_events();
803
  </select>
804
  </div>
805
  <div class="mec-form-row">
806
- <label class="mec-col-4" for="mec_skin_carousel_limit"><?php _e('Limit', 'mec'); ?></label>
807
- <input class="mec-col-4" type="number" name="mec[sk-options][carousel][limit]" id="mec_skin_carousel_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_carousel['limit'])) echo $sk_options_carousel['limit']; ?>" />
808
  </div>
809
  <div class="mec-form-row">
810
- <label class="mec-col-4" for="mec_skin_carousel_autoplay"><?php _e('Auto Play Time', 'mec'); ?></label>
811
- <input class="mec-col-4" type="number" name="mec[sk-options][carousel][autoplay]" id="mec_skin_carousel_autoplay" placeholder="<?php _e('eg. 3000 default is 3 second', 'mec'); ?>" value="<?php if(isset($sk_options_carousel['autoplay']) && $sk_options_carousel['autoplay'] != '' ) echo $sk_options_carousel['autoplay']; ?>" />
812
  </div>
813
  </div>
814
 
@@ -816,70 +816,70 @@ $events = $this->main->get_events();
816
  <div class="mec-skin-options-container mec-util-hidden" id="mec_slider_skin_options_container">
817
  <?php $sk_options_slider = isset($sk_options['slider']) ? $sk_options['slider'] : array(); ?>
818
  <div class="mec-form-row">
819
- <label class="mec-col-4" for="mec_skin_slider_style"><?php _e('Style', 'mec'); ?></label>
820
  <select class="mec-col-4" name="mec[sk-options][slider][style]" id="mec_skin_slider_style" onchange="mec_skin_style_changed('slider', this.value);">
821
- <option value="t1" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't1') echo 'selected="selected"'; ?>><?php _e('Type 1', 'mec'); ?></option>
822
- <option value="t2" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't2') echo 'selected="selected"'; ?>><?php _e('Type 2', 'mec'); ?></option>
823
- <option value="t3" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't3') echo 'selected="selected"'; ?>><?php _e('Type 3', 'mec'); ?></option>
824
- <option value="t4" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't4') echo 'selected="selected"'; ?>><?php _e('Type 4', 'mec'); ?></option>
825
- <option value="t5" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't5') echo 'selected="selected"'; ?>><?php _e('Type 5', 'mec'); ?></option>
826
  </select>
827
  </div>
828
  <div class="mec-form-row">
829
- <label class="mec-col-4" for="mec_skin_slider_start_date_type"><?php _e('Start Date', 'mec'); ?></label>
830
  <select class="mec-col-4" name="mec[sk-options][slider][start_date_type]" id="mec_skin_slider_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_slider_start_date_container').show(); else jQuery('#mec_skin_slider_start_date_container').hide();">
831
- <option value="today" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'mec'); ?></option>
832
- <option value="tomorrow" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'mec'); ?></option>
833
- <option value="start_current_month" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'mec'); ?></option>
834
- <option value="start_next_month" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'mec'); ?></option>
835
- <option value="date" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'mec'); ?></option>
836
  </select>
837
  <div class="mec-col-4 <?php if(!isset($sk_options_slider['start_date_type']) or (isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_slider_start_date_container">
838
- <input class="mec_date_picker" type="text" name="mec[sk-options][slider][start_date]" id="mec_skin_slider_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'mec'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_slider['start_date'])) echo $sk_options_slider['start_date']; ?>" />
839
  </div>
840
  </div>
841
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't1') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t1_container">
842
- <label class="mec-col-4" for="mec_skin_slider_type1_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
843
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type1_date_format1]" id="mec_skin_slider_type1_date_format1" value="<?php echo ((isset($sk_options_slider['type1_date_format1']) and trim($sk_options_slider['type1_date_format1']) != '') ? $sk_options_slider['type1_date_format1'] : 'd'); ?>" />
844
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type1_date_format2]" id="mec_skin_slider_type1_date_format2" value="<?php echo ((isset($sk_options_slider['type1_date_format2']) and trim($sk_options_slider['type1_date_format2']) != '') ? $sk_options_slider['type1_date_format2'] : 'F'); ?>" />
845
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type1_date_format3]" id="mec_skin_slider_type1_date_format3" value="<?php echo ((isset($sk_options_slider['type1_date_format3']) and trim($sk_options_slider['type1_date_format3']) != '') ? $sk_options_slider['type1_date_format3'] : 'l'); ?>" />
846
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
847
  </div>
848
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't2') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t2_container">
849
- <label class="mec-col-4" for="mec_skin_slider_type2_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
850
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type2_date_format1]" id="mec_skin_slider_type2_date_format1" value="<?php echo ((isset($sk_options_slider['type2_date_format1']) and trim($sk_options_slider['type2_date_format1']) != '') ? $sk_options_slider['type2_date_format1'] : 'd'); ?>" />
851
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type2_date_format2]" id="mec_skin_slider_type2_date_format2" value="<?php echo ((isset($sk_options_slider['type2_date_format2']) and trim($sk_options_slider['type2_date_format2']) != '') ? $sk_options_slider['type2_date_format2'] : 'F'); ?>" />
852
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type2_date_format3]" id="mec_skin_slider_type2_date_format3" value="<?php echo ((isset($sk_options_slider['type2_date_format3']) and trim($sk_options_slider['type2_date_format3']) != '') ? $sk_options_slider['type2_date_format3'] : 'l'); ?>" />
853
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
854
  </div>
855
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't3') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t3_container">
856
- <label class="mec-col-4" for="mec_skin_slider_type3_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
857
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type3_date_format1]" id="mec_skin_slider_type3_date_format1" value="<?php echo ((isset($sk_options_slider['type3_date_format1']) and trim($sk_options_slider['type3_date_format1']) != '') ? $sk_options_slider['type3_date_format1'] : 'd'); ?>" />
858
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type3_date_format2]" id="mec_skin_slider_type3_date_format2" value="<?php echo ((isset($sk_options_slider['type3_date_format2']) and trim($sk_options_slider['type3_date_format2']) != '') ? $sk_options_slider['type3_date_format2'] : 'F'); ?>" />
859
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type3_date_format3]" id="mec_skin_slider_type3_date_format3" value="<?php echo ((isset($sk_options_slider['type3_date_format3']) and trim($sk_options_slider['type3_date_format3']) != '') ? $sk_options_slider['type3_date_format3'] : 'l'); ?>" />
860
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
861
  </div>
862
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't4') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t4_container">
863
- <label class="mec-col-4" for="mec_skin_slider_type4_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
864
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type4_date_format1]" id="mec_skin_slider_type4_date_format1" value="<?php echo ((isset($sk_options_slider['type4_date_format1']) and trim($sk_options_slider['type4_date_format1']) != '') ? $sk_options_slider['type4_date_format1'] : 'd'); ?>" />
865
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type4_date_format2]" id="mec_skin_slider_type4_date_format2" value="<?php echo ((isset($sk_options_slider['type4_date_format2']) and trim($sk_options_slider['type4_date_format2']) != '') ? $sk_options_slider['type4_date_format2'] : 'F'); ?>" />
866
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type4_date_format3]" id="mec_skin_slider_type4_date_format3" value="<?php echo ((isset($sk_options_slider['type4_date_format3']) and trim($sk_options_slider['type4_date_format3']) != '') ? $sk_options_slider['type4_date_format3'] : 'l'); ?>" />
867
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
868
  </div>
869
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't5') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t5_container">
870
- <label class="mec-col-4" for="mec_skin_slider_type5_date_format1"><?php _e('Date Formats', 'mec'); ?></label>
871
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type5_date_format1]" id="mec_skin_slider_type5_date_format1" value="<?php echo ((isset($sk_options_slider['type5_date_format1']) and trim($sk_options_slider['type5_date_format1']) != '') ? $sk_options_slider['type5_date_format1'] : 'd'); ?>" />
872
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type5_date_format2]" id="mec_skin_slider_type5_date_format2" value="<?php echo ((isset($sk_options_slider['type5_date_format2']) and trim($sk_options_slider['type5_date_format2']) != '') ? $sk_options_slider['type5_date_format2'] : 'F'); ?>" />
873
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type5_date_format3]" id="mec_skin_slider_type5_date_format3" value="<?php echo ((isset($sk_options_slider['type5_date_format3']) and trim($sk_options_slider['type5_date_format3']) != '') ? $sk_options_slider['type5_date_format3'] : 'l'); ?>" />
874
- <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
875
  </div>
876
  <div class="mec-form-row">
877
- <label class="mec-col-4" for="mec_skin_slider_limit"><?php _e('Limit', 'mec'); ?></label>
878
- <input class="mec-col-4" type="number" name="mec[sk-options][slider][limit]" id="mec_skin_slider_limit" placeholder="<?php _e('eg. 6', 'mec'); ?>" value="<?php if(isset($sk_options_slider['limit'])) echo $sk_options_slider['limit']; ?>" />
879
  </div>
880
  <div class="mec-form-row">
881
- <label class="mec-col-4" for="mec_skin_slider_autoplay"><?php _e('Auto Play Time', 'mec'); ?></label>
882
- <input class="mec-col-4" type="number" name="mec[sk-options][slider][autoplay]" id="mec_skin_slider_autoplay" placeholder="<?php _e('eg. 3000 default is 3 second', 'mec'); ?>" value="<?php if(isset($sk_options_slider['autoplay']) && $sk_options_slider['autoplay'] != '' ) echo $sk_options_slider['autoplay']; ?>" />
883
  </div>
884
  </div>
885
 
15
  <!-- SKIN OPTIONS -->
16
  <div class="mec-meta-box-fields" id="mec_meta_box_calendar_skin_options">
17
  <div class="mec-form-row">
18
+ <label class="mec-col-4" for="mec_skin"><?php _e('Skin', 'modern-events-calendar-lite'); ?></label>
19
  <select class="mec-col-4" name="mec[skin]" id="mec_skin">
20
  <?php foreach($skins as $skin=>$name): ?>
21
  <option value="<?php echo $skin; ?>" <?php if($selected_skin == $skin) echo 'selected="selected"'; ?>><?php echo $name; ?></option>
29
  <div class="mec-skin-options-container mec-util-hidden" id="mec_list_skin_options_container">
30
  <?php $sk_options_list = isset($sk_options['list']) ? $sk_options['list'] : array(); ?>
31
  <div class="mec-form-row">
32
+ <label class="mec-col-4" for="mec_skin_list_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
33
  <select class="mec-col-4" name="mec[sk-options][list][style]" id="mec_skin_list_style" onchange="mec_skin_style_changed('list', this.value); if(this.value == 'accordion') jQuery('.mec-sed-methode-container').hide(); else jQuery('.mec-sed-methode-container').show();">
34
+ <option value="classic" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'modern-events-calendar-lite'); ?></option>
35
+ <option value="minimal" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'minimal') echo 'selected="selected"'; ?>><?php _e('Minimal', 'modern-events-calendar-lite'); ?></option>
36
+ <option value="modern" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'modern-events-calendar-lite'); ?></option>
37
+ <option value="standard" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'standard') echo 'selected="selected"'; ?>><?php _e('Standard', 'modern-events-calendar-lite'); ?></option>
38
+ <option value="accordion" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'accordion') echo 'selected="selected"'; ?>><?php _e('Accordion', 'modern-events-calendar-lite'); ?></option>
39
  </select>
40
  </div>
41
  <div class="mec-form-row">
42
+ <label class="mec-col-4" for="mec_skin_list_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
43
  <select class="mec-col-4" name="mec[sk-options][list][start_date_type]" id="mec_skin_list_start_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_list_start_date_container').show(); else jQuery('#mec_skin_list_start_date_container').hide();">
44
+ <option value="today" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
45
+ <option value="tomorrow" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
46
+ <option value="start_current_month" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
47
+ <option value="start_next_month" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
48
+ <option value="date" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
49
  </select>
50
  <div class="mec-col-4 <?php if(!isset($sk_options_list['start_date_type']) or (isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_list_start_date_container">
51
+ <input class="mec_date_picker" type="text" name="mec[sk-options][list][start_date]" id="mec_skin_list_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_list['start_date'])) echo $sk_options_list['start_date']; ?>" />
52
  </div>
53
  </div>
54
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'classic') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_classic_container">
55
+ <label class="mec-col-4" for="mec_skin_list_classic_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
56
  <input type="text" class="mec-col-4" name="mec[sk-options][list][classic_date_format1]" id="mec_skin_list_classic_date_format1" value="<?php echo ((isset($sk_options_list['classic_date_format1']) and trim($sk_options_list['classic_date_format1']) != '') ? $sk_options_list['classic_date_format1'] : 'M d Y'); ?>" />
57
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
58
  </div>
59
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'M d Y') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_minimal_container">
60
+ <label class="mec-col-4" for="mec_skin_list_minimal_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
61
  <input type="text" class="mec-col-2" name="mec[sk-options][list][minimal_date_format1]" id="mec_skin_list_minimal_date_format1" value="<?php echo ((isset($sk_options_list['minimal_date_format1']) and trim($sk_options_list['minimal_date_format1']) != '') ? $sk_options_list['minimal_date_format1'] : 'd'); ?>" />
62
  <input type="text" class="mec-col-1" name="mec[sk-options][list][minimal_date_format2]" id="mec_skin_list_minimal_date_format2" value="<?php echo ((isset($sk_options_list['minimal_date_format2']) and trim($sk_options_list['minimal_date_format2']) != '') ? $sk_options_list['minimal_date_format2'] : 'M'); ?>" />
63
  <input type="text" class="mec-col-1" name="mec[sk-options][list][minimal_date_format3]" id="mec_skin_list_minimal_date_format3" value="<?php echo ((isset($sk_options_list['minimal_date_format3']) and trim($sk_options_list['minimal_date_format3']) != '') ? $sk_options_list['minimal_date_format3'] : 'l'); ?>" />
64
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, M and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
65
  </div>
66
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_modern_container">
67
+ <label class="mec-col-4" for="mec_skin_list_modern_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
68
  <input type="text" class="mec-col-2" name="mec[sk-options][list][modern_date_format1]" id="mec_skin_list_modern_date_format1" value="<?php echo ((isset($sk_options_list['modern_date_format1']) and trim($sk_options_list['modern_date_format1']) != '') ? $sk_options_list['modern_date_format1'] : 'd'); ?>" />
69
  <input type="text" class="mec-col-1" name="mec[sk-options][list][modern_date_format2]" id="mec_skin_list_modern_date_format2" value="<?php echo ((isset($sk_options_list['modern_date_format2']) and trim($sk_options_list['modern_date_format2']) != '') ? $sk_options_list['modern_date_format2'] : 'F'); ?>" />
70
  <input type="text" class="mec-col-1" name="mec[sk-options][list][modern_date_format3]" id="mec_skin_list_modern_date_format3" value="<?php echo ((isset($sk_options_list['modern_date_format3']) and trim($sk_options_list['modern_date_format3']) != '') ? $sk_options_list['modern_date_format3'] : 'l'); ?>" />
71
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
72
  </div>
73
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'standard') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_standard_container">
74
+ <label class="mec-col-4" for="mec_skin_list_standard_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
75
  <input type="text" class="mec-col-4" name="mec[sk-options][list][standard_date_format1]" id="mec_skin_list_standard_date_format1" value="<?php echo ((isset($sk_options_list['standard_date_format1']) and trim($sk_options_list['standard_date_format1']) != '') ? $sk_options_list['standard_date_format1'] : 'd M'); ?>" />
76
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
77
  </div>
78
  <div class="mec-form-row mec-skin-list-date-format-container <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] != 'accordion') echo 'mec-util-hidden'; ?>" id="mec_skin_list_date_format_accordion_container">
79
+ <label class="mec-col-4" for="mec_skin_list_accordion_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
80
  <input type="text" class="mec-col-2" name="mec[sk-options][list][accordion_date_format1]" id="mec_skin_list_accordion_date_format1" value="<?php echo ((isset($sk_options_list['accordion_date_format1']) and trim($sk_options_list['accordion_date_format1']) != '') ? $sk_options_list['accordion_date_format1'] : 'd'); ?>" />
81
  <input type="text" class="mec-col-2" name="mec[sk-options][list][accordion_date_format2]" id="mec_skin_list_accordion_date_format2" value="<?php echo ((isset($sk_options_list['accordion_date_format2']) and trim($sk_options_list['accordion_date_format2']) != '') ? $sk_options_list['accordion_date_format2'] : 'F'); ?>" />
82
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d and F', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
83
  </div>
84
  <div class="mec-form-row">
85
+ <label class="mec-col-4" for="mec_skin_list_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
86
+ <input class="mec-col-4" type="number" name="mec[sk-options][list][limit]" id="mec_skin_list_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_list['limit'])) echo $sk_options_list['limit']; ?>" />
87
  </div>
88
  <div class="mec-form-row mec-switcher">
89
  <div class="mec-col-4">
90
+ <label for="mec_skin_list_load_more_button"><?php _e('Load More Button', 'modern-events-calendar-lite'); ?></label>
91
  </div>
92
  <div class="mec-col-4">
93
  <input type="hidden" name="mec[sk-options][list][load_more_button]" value="0" />
97
  </div>
98
  <div class="mec-form-row mec-switcher">
99
  <div class="mec-col-4">
100
+ <label for="mec_skin_list_month_divider"><?php _e('Show Month Divider', 'modern-events-calendar-lite'); ?></label>
101
  </div>
102
  <div class="mec-col-4">
103
  <input type="hidden" name="mec[sk-options][list][month_divider]" value="0" />
114
  <div class="mec-skin-options-container mec-util-hidden" id="mec_grid_skin_options_container">
115
  <?php $sk_options_grid = isset($sk_options['grid']) ? $sk_options['grid'] : array(); ?>
116
  <div class="mec-form-row">
117
+ <label class="mec-col-4" for="mec_skin_grid_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
118
  <select class="mec-col-4" name="mec[sk-options][grid][style]" id="mec_skin_grid_style" onchange="mec_skin_style_changed('grid', this.value);">
119
+ <option value="classic" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'modern-events-calendar-lite'); ?></option>
120
+ <option value="clean" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'modern-events-calendar-lite'); ?></option>
121
+ <option value="minimal" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'minimal') echo 'selected="selected"'; ?>><?php _e('Minimal', 'modern-events-calendar-lite'); ?></option>
122
+ <option value="modern" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'modern-events-calendar-lite'); ?></option>
123
+ <option value="simple" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'simple') echo 'selected="selected"'; ?>><?php _e('Simple', 'modern-events-calendar-lite'); ?></option>
124
+ <option value="colorful" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'colorful') echo 'selected="selected"'; ?>><?php _e('Colorful', 'modern-events-calendar-lite'); ?></option>
125
+ <option value="novel" <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] == 'novel') echo 'selected="selected"'; ?>><?php _e('Novel', 'modern-events-calendar-lite'); ?></option>
126
  </select>
127
  </div>
128
  <div class="mec-form-row">
129
+ <label class="mec-col-4" for="mec_skin_grid_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
130
  <select class="mec-col-4" name="mec[sk-options][grid][start_date_type]" id="mec_skin_grid_start_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_grid_start_date_container').show(); else jQuery('#mec_skin_grid_start_date_container').hide();">
131
+ <option value="today" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
132
+ <option value="tomorrow" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
133
+ <option value="start_current_month" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
134
+ <option value="start_next_month" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
135
+ <option value="date" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
136
  </select>
137
  <div class="mec-col-4 <?php if(!isset($sk_options_grid['start_date_type']) or (isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_grid_start_date_container">
138
+ <input class="mec_date_picker" type="text" name="mec[sk-options][grid][start_date]" id="mec_skin_grid_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_grid['start_date'])) echo $sk_options_grid['start_date']; ?>" />
139
  </div>
140
  </div>
141
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'classic') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_classic_container">
142
+ <label class="mec-col-4" for="mec_skin_grid_classic_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
143
  <input type="text" class="mec-col-4" name="mec[sk-options][grid][classic_date_format1]" id="mec_skin_grid_classic_date_format1" value="<?php echo ((isset($sk_options_grid['classic_date_format1']) and trim($sk_options_grid['classic_date_format1']) != '') ? $sk_options_grid['classic_date_format1'] : 'd F Y'); ?>" />
144
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "d F Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
145
  </div>
146
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_clean_container">
147
+ <label class="mec-col-4" for="mec_skin_grid_clean_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
148
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][clean_date_format1]" id="mec_skin_grid_clean_date_format1" value="<?php echo ((isset($sk_options_grid['clean_date_format1']) and trim($sk_options_grid['clean_date_format1']) != '') ? $sk_options_grid['clean_date_format1'] : 'd'); ?>" />
149
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][clean_date_format2]" id="mec_skin_grid_clean_date_format2" value="<?php echo ((isset($sk_options_grid['clean_date_format2']) and trim($sk_options_grid['clean_date_format2']) != '') ? $sk_options_grid['clean_date_format2'] : 'F'); ?>" />
150
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d and F', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
151
  </div>
152
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'minimal') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_minimal_container">
153
+ <label class="mec-col-4" for="mec_skin_grid_minimal_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
154
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][minimal_date_format1]" id="mec_skin_grid_minimal_date_format1" value="<?php echo ((isset($sk_options_grid['minimal_date_format1']) and trim($sk_options_grid['minimal_date_format1']) != '') ? $sk_options_grid['minimal_date_format1'] : 'd'); ?>" />
155
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][minimal_date_format2]" id="mec_skin_grid_minimal_date_format2" value="<?php echo ((isset($sk_options_grid['minimal_date_format2']) and trim($sk_options_grid['minimal_date_format2']) != '') ? $sk_options_grid['minimal_date_format2'] : 'M'); ?>" />
156
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d and M', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
157
  </div>
158
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_modern_container">
159
+ <label class="mec-col-4" for="mec_skin_grid_modern_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
160
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][modern_date_format1]" id="mec_skin_grid_modern_date_format1" value="<?php echo ((isset($sk_options_grid['modern_date_format1']) and trim($sk_options_grid['modern_date_format1']) != '') ? $sk_options_grid['modern_date_format1'] : 'd'); ?>" />
161
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][modern_date_format2]" id="mec_skin_grid_modern_date_format2" value="<?php echo ((isset($sk_options_grid['modern_date_format2']) and trim($sk_options_grid['modern_date_format2']) != '') ? $sk_options_grid['modern_date_format2'] : 'F'); ?>" />
162
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][modern_date_format3]" id="mec_skin_grid_modern_date_format3" value="<?php echo ((isset($sk_options_grid['modern_date_format3']) and trim($sk_options_grid['modern_date_format3']) != '') ? $sk_options_grid['modern_date_format3'] : 'l'); ?>" />
163
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
164
  </div>
165
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'simple') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_simple_container">
166
+ <label class="mec-col-4" for="mec_skin_grid_simple_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
167
  <input type="text" class="mec-col-4" name="mec[sk-options][grid][simple_date_format1]" id="mec_skin_grid_simple_date_format1" value="<?php echo ((isset($sk_options_grid['simple_date_format1']) and trim($sk_options_grid['simple_date_format1']) != '') ? $sk_options_grid['simple_date_format1'] : 'M d Y'); ?>" />
168
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
169
  </div>
170
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'colorful') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_colorful_container">
171
+ <label class="mec-col-4" for="mec_skin_grid_colorful_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
172
  <input type="text" class="mec-col-2" name="mec[sk-options][grid][colorful_date_format1]" id="mec_skin_grid_colorful_date_format1" value="<?php echo ((isset($sk_options_grid['colorful_date_format1']) and trim($sk_options_grid['colorful_date_format1']) != '') ? $sk_options_grid['colorful_date_format1'] : 'd'); ?>" />
173
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][colorful_date_format2]" id="mec_skin_grid_colorful_date_format2" value="<?php echo ((isset($sk_options_grid['colorful_date_format2']) and trim($sk_options_grid['colorful_date_format2']) != '') ? $sk_options_grid['colorful_date_format2'] : 'F'); ?>" />
174
  <input type="text" class="mec-col-1" name="mec[sk-options][grid][colorful_date_format3]" id="mec_skin_grid_colorful_date_format3" value="<?php echo ((isset($sk_options_grid['colorful_date_format3']) and trim($sk_options_grid['colorful_date_format3']) != '') ? $sk_options_grid['colorful_date_format3'] : 'l'); ?>" />
175
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
176
  </div>
177
  <div class="mec-form-row mec-skin-grid-date-format-container <?php if(isset($sk_options_grid['style']) and $sk_options_grid['style'] != 'novel') echo 'mec-util-hidden'; ?>" id="mec_skin_grid_date_format_novel_container">
178
+ <label class="mec-col-4" for="mec_skin_grid_novel_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
179
  <input type="text" class="mec-col-4" name="mec[sk-options][grid][novel_date_format1]" id="mec_skin_grid_novel_date_format1" value="<?php echo ((isset($sk_options_grid['novel_date_format1']) and trim($sk_options_grid['novel_date_format1']) != '') ? $sk_options_grid['novel_date_format1'] : 'd F Y'); ?>" />
180
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "d F Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
181
  </div>
182
  <div class="mec-form-row">
183
+ <label class="mec-col-4" for="mec_skin_grid_count"><?php _e('Count in row', 'modern-events-calendar-lite'); ?></label>
184
  <select class="mec-col-4" name="mec[sk-options][grid][count]" id="mec_skin_grid_count">
185
  <option value="1" <?php echo (isset($sk_options_grid['count']) and $sk_options_grid['count'] == 1) ? 'selected="selected"' : ''; ?>>1</option>
186
  <option value="2" <?php echo (isset($sk_options_grid['count']) and $sk_options_grid['count'] == 2) ? 'selected="selected"' : ''; ?>>2</option>
191
  </select>
192
  </div>
193
  <div class="mec-form-row">
194
+ <label class="mec-col-4" for="mec_skin_grid_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
195
+ <input class="mec-col-4" type="number" name="mec[sk-options][grid][limit]" id="mec_skin_grid_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_grid['limit'])) echo $sk_options_grid['limit']; ?>" />
196
  </div>
197
  <div class="mec-form-row mec-switcher">
198
  <div class="mec-col-4">
199
+ <label for="mec_skin_grid_load_more_button"><?php _e('Load More Button', 'modern-events-calendar-lite'); ?></label>
200
  </div>
201
  <div class="mec-col-4">
202
  <input type="hidden" name="mec[sk-options][grid][load_more_button]" value="0" />
211
  <div class="mec-skin-options-container mec-util-hidden" id="mec_agenda_skin_options_container">
212
 
213
  <?php if(!$this->main->getPRO()): ?>
214
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
215
  <?php endif; ?>
216
 
217
  <?php $sk_options_agenda = isset($sk_options['agenda']) ? $sk_options['agenda'] : array(); ?>
218
  <div class="mec-form-row">
219
+ <label class="mec-col-4" for="mec_skin_agenda_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
220
  <select class="mec-col-4" name="mec[sk-options][agenda][style]" id="mec_skin_agenda_style" onchange="mec_skin_style_changed('agenda', this.value);">
221
+ <option value="clean" <?php if(isset($sk_options_agenda['style']) and $sk_options_agenda['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'modern-events-calendar-lite'); ?></option>
222
  </select>
223
  </div>
224
  <div class="mec-form-row">
225
+ <label class="mec-col-4" for="mec_skin_agenda_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
226
  <select class="mec-col-4" name="mec[sk-options][agenda][start_date_type]" id="mec_skin_agenda_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_agenda_start_date_container').show(); else jQuery('#mec_skin_agenda_start_date_container').hide();">
227
+ <option value="today" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
228
+ <option value="tomorrow" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
229
+ <option value="start_current_month" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
230
+ <option value="start_next_month" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
231
+ <option value="date" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
232
  </select>
233
  <div class="mec-col-4 <?php if(!isset($sk_options_agenda['start_date_type']) or (isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_agenda_start_date_container">
234
+ <input class="mec_date_picker" type="text" name="mec[sk-options][agenda][start_date]" id="mec_skin_agenda_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_agenda['start_date'])) echo $sk_options_agenda['start_date']; ?>" />
235
  </div>
236
  </div>
237
  <div class="mec-form-row mec-skin-agenda-date-format-container <?php if(isset($sk_options_agenda['style']) and $sk_options_agenda['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_agenda_date_format_clean_container">
238
+ <label class="mec-col-4" for="mec_skin_agenda_clean_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
239
  <input type="text" class="mec-col-2" name="mec[sk-options][agenda][clean_date_format1]" id="mec_skin_agenda_clean_date_format1" value="<?php echo ((isset($sk_options_agenda['clean_date_format1']) and trim($sk_options_agenda['clean_date_format1']) != '') ? $sk_options_agenda['clean_date_format1'] : 'l'); ?>" />
240
  <input type="text" class="mec-col-2" name="mec[sk-options][agenda][clean_date_format2]" id="mec_skin_agenda_clean_date_format2" value="<?php echo ((isset($sk_options_agenda['clean_date_format2']) and trim($sk_options_agenda['clean_date_format2']) != '') ? $sk_options_agenda['clean_date_format2'] : 'F j'); ?>" />
241
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are l and F j', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
242
  </div>
243
  <div class="mec-form-row">
244
+ <label class="mec-col-4" for="mec_skin_agenda_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
245
+ <input class="mec-col-4" type="number" name="mec[sk-options][agenda][limit]" id="mec_skin_agenda_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_agenda['limit'])) echo $sk_options_agenda['limit']; ?>" />
246
  </div>
247
  <div class="mec-form-row mec-switcher">
248
  <div class="mec-col-4">
249
+ <label for="mec_skin_agenda_load_more_button"><?php _e('Load More Button', 'modern-events-calendar-lite'); ?></label>
250
  </div>
251
  <div class="mec-col-4">
252
  <input type="hidden" name="mec[sk-options][agenda][load_more_button]" value="0" />
256
  </div>
257
  <div class="mec-form-row mec-switcher">
258
  <div class="mec-col-4">
259
+ <label for="mec_skin_agenda_month_divider"><?php _e('Show Month Divider', 'modern-events-calendar-lite'); ?></label>
260
  </div>
261
  <div class="mec-col-4">
262
  <input type="hidden" name="mec[sk-options][agenda][month_divider]" value="0" />
271
  <div class="mec-skin-options-container mec-util-hidden" id="mec_full_calendar_skin_options_container">
272
  <?php $sk_options_full_calendar = isset($sk_options['full_calendar']) ? $sk_options['full_calendar'] : array(); ?>
273
  <div class="mec-form-row">
274
+ <label class="mec-col-4" for="mec_skin_full_calendar_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
275
  <select class="mec-col-4" name="mec[sk-options][full_calendar][start_date_type]" id="mec_skin_full_calendar_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_full_calendar_start_date_container').show(); else jQuery('#mec_skin_full_calendar_start_date_container').hide();">
276
+ <option value="start_current_month" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
277
+ <option value="start_next_month" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
278
+ <option value="date" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
279
  </select>
280
  <div class="mec-col-4 <?php if(!isset($sk_options_full_calendar['start_date_type']) or (isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_full_calendar_start_date_container">
281
+ <input class="mec_date_picker" type="text" name="mec[sk-options][full_calendar][start_date]" id="mec_skin_full_calendar_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_full_calendar['start_date'])) echo $sk_options_full_calendar['start_date']; ?>" />
282
  </div>
283
  </div>
284
  <div class="mec-form-row">
285
+ <label class="mec-col-4" for="mec_skin_full_calendar_default_view"><?php _e('Default View', 'modern-events-calendar-lite'); ?></label>
286
  <select class="mec-col-4" name="mec[sk-options][full_calendar][default_view]" id="mec_skin_full_calendar_default_view">
287
+ <option value="list" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'list') ? 'selected="selected"' : ''; ?>><?php _e('List View', 'modern-events-calendar-lite'); ?></option>
288
+ <option value="yearly" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'yearly') ? 'selected="selected"' : ''; ?>><?php _e('Yearly View', 'modern-events-calendar-lite'); ?></option>
289
+ <option value="monthly" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'monthly') ? 'selected="selected"' : ''; ?>><?php _e('Monthly/Calendar View', 'modern-events-calendar-lite'); ?></option>
290
+ <option value="weekly" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'weekly') ? 'selected="selected"' : ''; ?>><?php _e('Weekly View', 'modern-events-calendar-lite'); ?></option>
291
+ <option value="daily" <?php echo (isset($sk_options_full_calendar['default_view']) and $sk_options_full_calendar['default_view'] == 'daily') ? 'selected="selected"' : ''; ?>><?php _e('Daily View', 'modern-events-calendar-lite'); ?></option>
292
  </select>
293
  </div>
294
  <div class="mec-form-row mec-switcher">
295
  <div class="mec-col-4">
296
+ <label for="mec_skin_full_calendar_list"><?php _e('List View', 'modern-events-calendar-lite'); ?></label>
297
  </div>
298
  <div class="mec-col-4">
299
  <input type="hidden" name="mec[sk-options][full_calendar][list]" value="0" />
303
  </div>
304
  <div class="mec-form-row mec-switcher">
305
  <div class="mec-col-4">
306
+ <label for="mec_skin_full_calendar_yearly"><?php _e('Yearly View', 'modern-events-calendar-lite'); ?></label>
307
  </div>
308
  <div class="mec-col-4">
309
  <input type="hidden" name="mec[sk-options][full_calendar][yearly]" value="0" />
313
  </div>
314
  <div class="mec-form-row mec-switcher">
315
  <div class="mec-col-4">
316
+ <label for="mec_skin_full_calendar_monthly"><?php _e('Monthly/Calendar View', 'modern-events-calendar-lite'); ?></label>
317
  </div>
318
  <div class="mec-col-4">
319
  <input type="hidden" name="mec[sk-options][full_calendar][monthly]" value="0" />
323
  </div>
324
  <div class="mec-form-row mec-switcher">
325
  <div class="mec-col-4">
326
+ <label for="mec_skin_full_calendar_weekly"><?php _e('Weekly View', 'modern-events-calendar-lite'); ?></label>
327
  </div>
328
  <div class="mec-col-4">
329
  <input type="hidden" name="mec[sk-options][full_calendar][weekly]" value="0" />
333
  </div>
334
  <div class="mec-form-row mec-switcher">
335
  <div class="mec-col-4">
336
+ <label for="mec_skin_full_calendar_daily"><?php _e('Daily View', 'modern-events-calendar-lite'); ?></label>
337
  </div>
338
  <div class="mec-col-4">
339
  <input type="hidden" name="mec[sk-options][full_calendar][daily]" value="0" />
341
  <label for="mec_skin_full_calendar_daily"></label>
342
  </div>
343
  </div>
344
+ <p class="description"><?php _e("The price shows only in List View.", 'modern-events-calendar-lite'); ?></p>
345
  <div class="mec-form-row mec-switcher">
346
  <div class="mec-col-4">
347
+ <label for="mec_skin_full_calendar_display_price"><?php _e('Display Event Price', 'modern-events-calendar-lite'); ?></label>
348
  </div>
349
  <div class="mec-col-4">
350
  <input type="hidden" name="mec[sk-options][full_calendar][display_price]" value="0" />
359
  <div class="mec-skin-options-container mec-util-hidden" id="mec_yearly_view_skin_options_container">
360
 
361
  <?php if(!$this->main->getPRO()): ?>
362
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
363
  <?php endif; ?>
364
 
365
  <?php $sk_options_yearly_view = isset($sk_options['yearly_view']) ? $sk_options['yearly_view'] : array(); ?>
366
  <div class="mec-form-row">
367
+ <label class="mec-col-4" for="mec_skin_yearly_view_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
368
  <select class="mec-col-4" name="mec[sk-options][yearly_view][style]" id="mec_skin_yearly_view_style" onchange="mec_skin_style_changed('yearly_view', this.value);">
369
+ <option value="modern" <?php if(isset($sk_options_yearly_view['style']) and $sk_options_yearly_view['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'modern-events-calendar-lite'); ?></option>
370
  </select>
371
  </div>
372
  <div class="mec-form-row">
373
+ <label class="mec-col-4" for="mec_skin_yearly_view_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
374
  <select class="mec-col-4" name="mec[sk-options][yearly_view][start_date_type]" id="mec_skin_yearly_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_yearly_view_start_date_container').show(); else jQuery('#mec_skin_yearly_view_start_date_container').hide();">
375
+ <option value="start_current_year" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'start_current_year') echo 'selected="selected"'; ?>><?php _e('Start of Current Year', 'modern-events-calendar-lite'); ?></option>
376
+ <option value="start_next_year" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'start_next_year') echo 'selected="selected"'; ?>><?php _e('Start of Next Year', 'modern-events-calendar-lite'); ?></option>
377
+ <option value="date" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
378
  </select>
379
  <div class="mec-col-4 <?php if(!isset($sk_options_yearly_view['start_date_type']) or (isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_start_date_container">
380
+ <input class="mec_date_picker" type="text" name="mec[sk-options][yearly_view][start_date]" id="mec_skin_yearly_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_yearly_view['start_date'])) echo $sk_options_yearly_view['start_date']; ?>" />
381
  </div>
382
  </div>
383
  <div class="mec-form-row mec-skin-yearly-view-date-format-container <?php if(isset($sk_options_yearly_view['style']) and $sk_options_yearly_view['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_date_format_modern_container">
384
+ <label class="mec-col-4" for="mec_skin_agenda_modern_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
385
  <input type="text" class="mec-col-2" name="mec[sk-options][yearly_view][modern_date_format1]" id="mec_skin_yearly_view_modern_date_format1" value="<?php echo ((isset($sk_options_yearly_view['modern_date_format1']) and trim($sk_options_yearly_view['modern_date_format1']) != '') ? $sk_options_yearly_view['modern_date_format1'] : 'l'); ?>" />
386
  <input type="text" class="mec-col-2" name="mec[sk-options][yearly_view][modern_date_format2]" id="mec_skin_yearly_view_modern_date_format2" value="<?php echo ((isset($sk_options_yearly_view['modern_date_format2']) and trim($sk_options_yearly_view['modern_date_format2']) != '') ? $sk_options_yearly_view['modern_date_format2'] : 'F j'); ?>" />
387
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are l and F j', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
388
  </div>
389
  <div class="mec-form-row">
390
+ <label class="mec-col-4" for="mec_skin_yearly_view_limit"><?php _e('Events per day', 'modern-events-calendar-lite'); ?></label>
391
+ <input class="mec-col-4" type="number" name="mec[sk-options][yearly_view][limit]" id="mec_skin_yearly_view_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_yearly_view['limit'])) echo $sk_options_yearly_view['limit']; ?>" />
392
  </div>
393
  <div class="mec-form-row mec-switcher">
394
  <div class="mec-col-4">
395
+ <label><?php _e('Next/Previous Buttons', 'modern-events-calendar-lite'); ?></label>
396
  </div>
397
  <div class="mec-col-4">
398
  <input type="hidden" name="mec[sk-options][yearly_view][next_previous_button]" value="0" />
400
  <label for="mec_skin_yearly_view_next_previous_button"></label>
401
  </div>
402
  </div>
403
+ <p class="description"><?php _e('For showing next/previous year navigation.', 'modern-events-calendar-lite'); ?></p>
404
  <?php echo $this->sed_method_field('yearly_view', (isset($sk_options_yearly_view['sed_method']) ? $sk_options_yearly_view['sed_method'] : 0)); ?>
405
  </div>
406
 
408
  <div class="mec-skin-options-container mec-util-hidden" id="mec_monthly_view_skin_options_container">
409
  <?php $sk_options_monthly_view = isset($sk_options['monthly_view']) ? $sk_options['monthly_view'] : array(); ?>
410
  <div class="mec-form-row">
411
+ <label class="mec-col-4" for="mec_skin_monthly_view_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
412
  <select class="mec-col-4" name="mec[sk-options][monthly_view][style]" id="mec_skin_monthly_view_style" onchange="mec_skin_style_changed('monthly_view', this.value);">
413
+ <option value="classic" <?php if(isset($sk_options_monthly_view['style']) and $sk_options_monthly_view['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'modern-events-calendar-lite'); ?></option>
414
+ <option value="clean" <?php if(isset($sk_options_monthly_view['style']) and $sk_options_monthly_view['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'modern-events-calendar-lite'); ?></option>
415
+ <option value="modern" <?php if(isset($sk_options_monthly_view['style']) and $sk_options_monthly_view['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'modern-events-calendar-lite'); ?></option>
416
  </select>
417
  </div>
418
  <div class="mec-form-row">
419
+ <label class="mec-col-4" for="mec_skin_monthly_view_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
420
  <select class="mec-col-4" name="mec[sk-options][monthly_view][start_date_type]" id="mec_skin_monthly_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_monthly_view_start_date_container').show(); else jQuery('#mec_skin_monthly_view_start_date_container').hide();">
421
+ <option value="start_current_month" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
422
+ <option value="start_next_month" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
423
+ <option value="date" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
424
  </select>
425
  <div class="mec-col-4 <?php if(!isset($sk_options_monthly_view['start_date_type']) or (isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_monthly_view_start_date_container">
426
+ <input class="mec_date_picker" type="text" name="mec[sk-options][monthly_view][start_date]" id="mec_skin_monthly_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_monthly_view['start_date'])) echo $sk_options_monthly_view['start_date']; ?>" />
427
  </div>
428
  </div>
429
  <div class="mec-form-row">
430
+ <label class="mec-col-4" for="mec_skin_monthly_view_limit"><?php _e('Events per day', 'modern-events-calendar-lite'); ?></label>
431
+ <input class="mec-col-4" type="number" name="mec[sk-options][monthly_view][limit]" id="mec_skin_monthly_view_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_monthly_view['limit'])) echo $sk_options_monthly_view['limit']; ?>" />
432
  </div>
433
  <div class="mec-form-row mec-switcher">
434
  <div class="mec-col-4">
435
+ <label><?php _e('Next/Previous Buttons', 'modern-events-calendar-lite'); ?></label>
436
  </div>
437
  <div class="mec-col-4">
438
  <input type="hidden" name="mec[sk-options][monthly_view][next_previous_button]" value="0" />
440
  <label for="mec_skin_monthly_view_next_previous_button"></label>
441
  </div>
442
  </div>
443
+ <p class="description"><?php _e('For showing next/previous month navigation.', 'modern-events-calendar-lite'); ?></p>
444
  <?php echo $this->sed_method_field('monthly_view', (isset($sk_options_monthly_view['sed_method']) ? $sk_options_monthly_view['sed_method'] : 0)); ?>
445
  </div>
446
 
448
  <div class="mec-skin-options-container mec-util-hidden" id="mec_map_skin_options_container">
449
 
450
  <?php if(!$this->main->getPRO()): ?>
451
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
452
  <?php endif; ?>
453
 
454
  <?php $sk_options_map = isset($sk_options['map']) ? $sk_options['map'] : array(); ?>
455
  <div class="mec-form-row">
456
+ <label class="mec-col-4" for="mec_skin_map_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
457
  <select class="mec-col-4" name="mec[sk-options][map][start_date_type]" id="mec_skin_map_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_map_start_date_container').show(); else jQuery('#mec_skin_map_start_date_container').hide();">
458
+ <option value="today" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
459
+ <option value="tomorrow" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
460
+ <option value="start_current_month" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
461
+ <option value="start_next_month" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
462
+ <option value="date" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
463
  </select>
464
  <div class="mec-col-4 <?php if(!isset($sk_options_map['start_date_type']) or (isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_map_start_date_container">
465
+ <input class="mec_date_picker" type="text" name="mec[sk-options][map][start_date]" id="mec_skin_map_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_map['start_date'])) echo $sk_options_map['start_date']; ?>" />
466
  </div>
467
  </div>
468
  <div class="mec-form-row">
469
+ <label class="mec-col-4" for="mec_skin_map_limit"><?php _e('Maximum events', 'modern-events-calendar-lite'); ?></label>
470
+ <input class="mec-col-4" type="number" name="mec[sk-options][map][limit]" id="mec_skin_map_limit" placeholder="<?php _e('eg. 200', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($sk_options_map['limit']) ? $sk_options_map['limit'] : 200); ?>" />
471
  </div>
472
  <div class="mec-form-row mec-switcher">
473
  <div class="mec-col-4">
474
+ <label><?php _e('Geolocation', 'modern-events-calendar-lite'); ?></label>
475
  </div>
476
  <div class="mec-col-4">
477
  <input type="hidden" name="mec[sk-options][map][geolocation]" value="0" />
479
  <label for="mec_skin_map_geolocation"></label>
480
  </div>
481
  </div>
482
+ <p class="description"><?php _e('The geolocation feature works only in secure (https) websites.', 'modern-events-calendar-lite'); ?></p>
483
  </div>
484
 
485
  <!-- Daily View -->
486
  <div class="mec-skin-options-container mec-util-hidden" id="mec_daily_view_skin_options_container">
487
  <?php $sk_options_daily_view = isset($sk_options['daily_view']) ? $sk_options['daily_view'] : array(); ?>
488
  <div class="mec-form-row">
489
+ <label class="mec-col-4" for="mec_skin_daily_view_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
490
  <select class="mec-col-4" name="mec[sk-options][daily_view][start_date_type]" id="mec_skin_daily_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_daily_view_start_date_container').show(); else jQuery('#mec_skin_daily_view_start_date_container').hide();">
491
+ <option value="today" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
492
+ <option value="tomorrow" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
493
+ <option value="start_current_month" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
494
+ <option value="start_next_month" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
495
+ <option value="date" <?php if(isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
496
  </select>
497
 
498
  <div class="mec-col-4 <?php if(!isset($sk_options_daily_view['start_date_type']) or (isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_daily_view_start_date_container">
499
+ <input class="mec_date_picker" type="text" name="mec[sk-options][daily_view][start_date]" id="mec_skin_daily_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_daily_view['start_date'])) echo $sk_options_daily_view['start_date']; ?>" />
500
  </div>
501
  </div>
502
  <div class="mec-form-row">
503
+ <label class="mec-col-4" for="mec_skin_daily_view_limit"><?php _e('Events per day', 'modern-events-calendar-lite'); ?></label>
504
+ <input class="mec-col-4" type="number" name="mec[sk-options][daily_view][limit]" id="mec_skin_daily_view_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_daily_view['limit'])) echo $sk_options_daily_view['limit']; ?>" />
505
  </div>
506
  <div class="mec-form-row mec-switcher">
507
  <div class="mec-col-4">
508
+ <label><?php _e('Next/Previous Buttons', 'modern-events-calendar-lite'); ?></label>
509
  </div>
510
  <div class="mec-col-4">
511
  <input type="hidden" name="mec[sk-options][daily_view][next_previous_button]" value="0" />
513
  <label for="mec_skin_daily_view_next_previous_button"></label>
514
  </div>
515
  </div>
516
+ <p class="description"><?php _e('For showing next/previous month navigation.', 'modern-events-calendar-lite'); ?></p>
517
  <?php echo $this->sed_method_field('daily_view', (isset($sk_options_daily_view['sed_method']) ? $sk_options_daily_view['sed_method'] : 0)); ?>
518
  </div>
519
 
521
  <div class="mec-skin-options-container mec-util-hidden" id="mec_weekly_view_skin_options_container">
522
  <?php $sk_options_weekly_view = isset($sk_options['weekly_view']) ? $sk_options['weekly_view'] : array(); ?>
523
  <div class="mec-form-row">
524
+ <label class="mec-col-4" for="mec_skin_weekly_view_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
525
  <select class="mec-col-4" name="mec[sk-options][weekly_view][start_date_type]" id="mec_skin_weekly_view_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_weekly_view_start_date_container').show(); else jQuery('#mec_skin_weekly_view_start_date_container').hide();">
526
+ <option value="start_current_week" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_current_week') echo 'selected="selected"'; ?>><?php _e('Current Week', 'modern-events-calendar-lite'); ?></option>
527
+ <option value="start_next_week" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_next_week') echo 'selected="selected"'; ?>><?php _e('Next Week', 'modern-events-calendar-lite'); ?></option>
528
+ <option value="start_current_month" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
529
+ <option value="start_next_month" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
530
+ <option value="date" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
531
  </select>
532
  <div class="mec-col-4 <?php if(!isset($sk_options_weekly_view['start_date_type']) or (isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_weekly_view_start_date_container">
533
+ <input class="mec_date_picker" type="text" name="mec[sk-options][weekly_view][start_date]" id="mec_skin_weekly_view_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_weekly_view['start_date'])) echo $sk_options_weekly_view['start_date']; ?>" />
534
  </div>
535
  </div>
536
  <div class="mec-form-row">
537
+ <label class="mec-col-4" for="mec_skin_weekly_view_limit"><?php _e('Events per day', 'modern-events-calendar-lite'); ?></label>
538
+ <input class="mec-col-4" type="number" name="mec[sk-options][weekly_view][limit]" id="mec_skin_weekly_view_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_weekly_view['limit'])) echo $sk_options_weekly_view['limit']; ?>" />
539
  </div>
540
  <div class="mec-form-row mec-switcher">
541
  <div class="mec-col-4">
542
+ <label><?php _e('Next/Previous Buttons', 'modern-events-calendar-lite'); ?></label>
543
  </div>
544
  <div class="mec-col-4">
545
  <input type="hidden" name="mec[sk-options][weekly_view][next_previous_button]" value="0" />
547
  <label for="mec_skin_weekly_view_next_previous_button"></label>
548
  </div>
549
  </div>
550
+ <p class="description"><?php _e('For showing next/previous month navigation.', 'modern-events-calendar-lite'); ?></p>
551
  <?php echo $this->sed_method_field('weekly_view', (isset($sk_options_weekly_view['sed_method']) ? $sk_options_weekly_view['sed_method'] : 0)); ?>
552
  </div>
553
 
555
  <div class="mec-skin-options-container mec-util-hidden" id="mec_timetable_skin_options_container">
556
 
557
  <?php if(!$this->main->getPRO()): ?>
558
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
559
  <?php endif; ?>
560
 
561
  <?php $sk_options_timetable = isset($sk_options['timetable']) ? $sk_options['timetable'] : array(); ?>
562
  <div class="mec-form-row">
563
+ <label class="mec-col-4" for="mec_skin_timetable_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
564
  <select class="mec-col-4" name="mec[sk-options][timetable][style]" id="mec_skin_timetable_style" onchange="mec_skin_style_changed('timetable', this.value); if(this.value == 'clean') jQuery('.mec-timetable-next-previous-button').hide(); else jQuery('.mec-timetable-next-previous-button').show();">
565
+ <option value="modern" <?php if(isset($sk_options_timetable['style']) and $sk_options_timetable['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'modern-events-calendar-lite'); ?></option>
566
+ <option value="clean" <?php if(isset($sk_options_timetable['style']) and $sk_options_timetable['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'modern-events-calendar-lite'); ?></option>
567
  </select>
568
  </div>
569
  <div class="mec-form-row">
570
+ <label class="mec-col-4" for="mec_skin_timetable_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
571
  <select class="mec-col-4" name="mec[sk-options][timetable][start_date_type]" id="mec_skin_timetable_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_timetable_start_date_container').show(); else jQuery('#mec_skin_timetable_start_date_container').hide();">
572
+ <option value="start_current_week" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_current_week') echo 'selected="selected"'; ?>><?php _e('Current Week', 'modern-events-calendar-lite'); ?></option>
573
+ <option value="start_next_week" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_next_week') echo 'selected="selected"'; ?>><?php _e('Next Week', 'modern-events-calendar-lite'); ?></option>
574
+ <option value="start_current_month" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
575
+ <option value="start_next_month" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
576
+ <option value="date" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
577
  </select>
578
  <div class="mec-col-4 <?php if(!isset($sk_options_timetable['start_date_type']) or (isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_timetable_start_date_container">
579
+ <input class="mec_date_picker" type="text" name="mec[sk-options][timetable][start_date]" id="mec_skin_timetable_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_timetable['start_date'])) echo $sk_options_timetable['start_date']; ?>" />
580
  </div>
581
  </div>
582
  <div class="mec-form-row">
583
+ <label class="mec-col-4" for="mec_skin_timetable_limit"><?php _e('Events per day', 'modern-events-calendar-lite'); ?></label>
584
+ <input class="mec-col-4" type="number" name="mec[sk-options][timetable][limit]" id="mec_skin_timetable_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_timetable['limit'])) echo $sk_options_timetable['limit']; ?>" />
585
  </div>
586
  <div class="mec-timetable-next-previous-button">
587
  <div class="mec-form-row mec-switcher">
588
  <div class="mec-col-4">
589
+ <label><?php _e('Next/Previous Buttons', 'modern-events-calendar-lite'); ?></label>
590
  </div>
591
  <div class="mec-col-4">
592
  <input type="hidden" name="mec[sk-options][timetable][next_previous_button]" value="0" />
594
  <label for="mec_skin_timetable_next_previous_button"></label>
595
  </div>
596
  </div>
597
+ <p class="description"><?php _e('For showing next/previous month navigation.', 'modern-events-calendar-lite'); ?></p>
598
  </div>
599
  <div class="mec-timetable-sed-methode-container">
600
  <?php echo $this->sed_method_field('timetable', (isset($sk_options_timetable['sed_method']) ? $sk_options_timetable['sed_method'] : 0)); ?>
605
  <div class="mec-skin-options-container mec-util-hidden" id="mec_masonry_skin_options_container">
606
 
607
  <?php if(!$this->main->getPRO()): ?>
608
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use synchronization feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
609
  <?php endif; ?>
610
 
611
  <?php $sk_options_masonry = isset($sk_options['masonry']) ? $sk_options['masonry'] : array(); ?>
612
  <div class="mec-form-row">
613
+ <label class="mec-col-4" for="mec_skin_masonry_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
614
  <select class="mec-col-4" name="mec[sk-options][masonry][start_date_type]" id="mec_skin_masonry_start_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_masonry_start_date_container').show(); else jQuery('#mec_skin_masonry_start_date_container').hide();">
615
+ <option value="today" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
616
+ <option value="tomorrow" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
617
+ <option value="start_current_month" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
618
+ <option value="start_next_month" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
619
+ <option value="date" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
620
  </select>
621
  <div class="mec-col-4 <?php if(!isset($sk_options_masonry['start_date_type']) or (isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_masonry_start_date_container">
622
+ <input class="mec_date_picker" type="text" name="mec[sk-options][masonry][start_date]" id="mec_skin_masonry_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_masonry['start_date'])) echo $sk_options_masonry['start_date']; ?>" />
623
  </div>
624
  </div>
625
  <div class="mec-form-row mec-skin-masonry-date-format-container">
626
+ <label class="mec-col-4" for="mec_skin_masonry_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
627
  <input type="text" class="mec-col-2" name="mec[sk-options][masonry][date_format1]" id="mec_skin_masonry_date_format1" value="<?php echo ((isset($sk_options_masonry['date_format1']) and trim($sk_options_masonry['date_format1']) != '') ? $sk_options_masonry['date_format1'] : 'j'); ?>" />
628
  <input type="text" class="mec-col-2" name="mec[sk-options][masonry][date_format2]" id="mec_skin_masonry_date_format2" value="<?php echo ((isset($sk_options_masonry['date_format2']) and trim($sk_options_masonry['date_format2']) != '') ? $sk_options_masonry['date_format2'] : 'F'); ?>" />
629
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are j and F', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
630
  </div>
631
  <div class="mec-form-row">
632
+ <label class="mec-col-4" for="mec_skin_masonry_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
633
+ <input class="mec-col-4" type="number" name="mec[sk-options][masonry][limit]" id="mec_skin_masonry_limit" placeholder="<?php _e('eg. 24', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_masonry['limit'])) echo $sk_options_masonry['limit']; ?>" />
634
  </div>
635
  <div class="mec-form-row">
636
+ <label class="mec-col-4" for="mec_skin_masonry_filter_by"><?php _e('Filter By', 'modern-events-calendar-lite'); ?></label>
637
  <select class="mec-col-4" name="mec[sk-options][masonry][filter_by]" id="mec_skin_masonry_filter_by">
638
  <option value="" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == '') echo 'selected="selected"'; ?>>-----</option>
639
+ <option value="category" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'category') echo 'selected="selected"'; ?>><?php _e('Category', 'modern-events-calendar-lite'); ?></option>
640
+ <option value="label" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'label') echo 'selected="selected"'; ?>><?php _e('Label', 'modern-events-calendar-lite'); ?></option>
641
+ <option value="location" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'location') echo 'selected="selected"'; ?>><?php _e('Location', 'modern-events-calendar-lite'); ?></option>
642
+ <option value="organizer" <?php if(isset($sk_options_masonry['filter_by']) and $sk_options_masonry['filter_by'] == 'organizer') echo 'selected="selected"'; ?>><?php _e('Organizer', 'modern-events-calendar-lite'); ?></option>
643
  </select>
644
  </div>
645
  <?php echo $this->sed_method_field('masonry', (isset($sk_options_masonry['sed_method']) ? $sk_options_masonry['sed_method'] : 0)); ?>
649
  <div class="mec-skin-options-container mec-util-hidden" id="mec_cover_skin_options_container">
650
  <?php $sk_options_cover = isset($sk_options['cover']) ? $sk_options['cover'] : array(); ?>
651
  <div class="mec-form-row">
652
+ <label class="mec-col-4" for="mec_skin_cover_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
653
  <select class="mec-col-4" name="mec[sk-options][cover][style]" id="mec_skin_cover_style" onchange="mec_skin_style_changed('cover', this.value);">
654
+ <option value="classic" <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] == 'classic') echo 'selected="selected"'; ?>><?php _e('Classic', 'modern-events-calendar-lite'); ?></option>
655
+ <option value="clean" <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] == 'clean') echo 'selected="selected"'; ?>><?php _e('Clean', 'modern-events-calendar-lite'); ?></option>
656
+ <option value="modern" <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] == 'modern') echo 'selected="selected"'; ?>><?php _e('Modern', 'modern-events-calendar-lite'); ?></option>
657
  </select>
658
  </div>
659
  <div class="mec-form-row mec-skin-cover-date-format-container <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_cover_date_format_clean_container">
660
+ <label class="mec-col-4" for="mec_skin_cover_date_format_clean1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
661
  <input type="text" class="mec-col-2" name="mec[sk-options][cover][date_format_clean1]" id="mec_skin_cover_date_format_clean1" value="<?php echo ((isset($sk_options_cover['date_format_clean1']) and trim($sk_options_cover['date_format_clean1']) != '') ? $sk_options_cover['date_format_clean1'] : 'd'); ?>" />
662
  <input type="text" class="mec-col-1" name="mec[sk-options][cover][date_format_clean2]" id="mec_skin_cover_date_format_clean2" value="<?php echo ((isset($sk_options_cover['date_format_clean2']) and trim($sk_options_cover['date_format_clean2']) != '') ? $sk_options_cover['date_format_clean2'] : 'M'); ?>" />
663
  <input type="text" class="mec-col-1" name="mec[sk-options][cover][date_format_clean3]" id="mec_skin_cover_date_format_clean3" value="<?php echo ((isset($sk_options_cover['date_format_clean3']) and trim($sk_options_cover['date_format_clean3']) != '') ? $sk_options_cover['date_format_clean3'] : 'Y'); ?>" />
664
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, M and Y', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
665
  </div>
666
  <div class="mec-form-row mec-skin-cover-date-format-container <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] != 'classic') echo 'mec-util-hidden'; ?>" id="mec_skin_cover_date_format_classic_container">
667
+ <label class="mec-col-4" for="mec_skin_cover_date_format_classic1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
668
  <input type="text" class="mec-col-2" name="mec[sk-options][cover][date_format_classic1]" id="mec_skin_cover_date_format_classic1" value="<?php echo ((isset($sk_options_cover['date_format_classic1']) and trim($sk_options_cover['date_format_classic1']) != '') ? $sk_options_cover['date_format_classic1'] : 'F d'); ?>" />
669
  <input type="text" class="mec-col-2" name="mec[sk-options][cover][date_format_classic2]" id="mec_skin_cover_date_format_classic2" value="<?php echo ((isset($sk_options_cover['date_format_classic2']) and trim($sk_options_cover['date_format_classic2']) != '') ? $sk_options_cover['date_format_classic2'] : 'l'); ?>" />
670
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are "F d" and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
671
  </div>
672
  <div class="mec-form-row mec-skin-cover-date-format-container <?php if(isset($sk_options_cover['style']) and $sk_options_cover['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_cover_date_format_modern_container">
673
+ <label class="mec-col-4" for="mec_skin_cover_date_format_modern1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
674
  <input type="text" class="mec-col-4" name="mec[sk-options][cover][date_format_modern1]" id="mec_skin_cover_date_format_modern1" value="<?php echo ((isset($sk_options_cover['date_format_modern1']) and trim($sk_options_cover['date_format_modern1']) != '') ? $sk_options_cover['date_format_modern1'] : 'l, F d Y'); ?>" />
675
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "l, F d Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
676
  </div>
677
  <div class="mec-form-row">
678
+ <label class="mec-col-4" for="mec_skin_cover_event_id"><?php _e('Event', 'modern-events-calendar-lite'); ?></label>
679
  <select class="mec-col-4" name="mec[sk-options][cover][event_id]" id="mec_skin_cover_event_id">
680
  <?php foreach($events as $event): ?>
681
  <option value="<?php echo $event->ID; ?>" <?php if(isset($sk_options_cover['event_id']) and $sk_options_cover['event_id'] == $event->ID) echo 'selected="selected"'; ?>><?php echo $event->post_title; ?></option>
688
  <div class="mec-skin-options-container mec-util-hidden" id="mec_countdown_skin_options_container">
689
  <?php $sk_options_countdown = isset($sk_options['countdown']) ? $sk_options['countdown'] : array(); ?>
690
  <div class="mec-form-row">
691
+ <label class="mec-col-4" for="mec_skin_countdown_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
692
  <select class="mec-col-4" name="mec[sk-options][countdown][style]" id="mec_skin_countdown_style" onchange="mec_skin_style_changed('countdown', this.value);">
693
+ <option value="style1" <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] == 'style1') echo 'selected="selected"'; ?>><?php _e('Style 1', 'modern-events-calendar-lite'); ?></option>
694
+ <option value="style2" <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] == 'style2') echo 'selected="selected"'; ?>><?php _e('Style 2', 'modern-events-calendar-lite'); ?></option>
695
+ <option value="style3" <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] == 'style3') echo 'selected="selected"'; ?>><?php _e('Style 3', 'modern-events-calendar-lite'); ?></option>
696
  </select>
697
  </div>
698
  <div class="mec-form-row mec-skin-countdown-date-format-container <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_countdown_date_format_style1_container">
699
+ <label class="mec-col-4" for="mec_skin_countdown_date_format_style11"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
700
  <input type="text" class="mec-col-4" name="mec[sk-options][countdown][date_format_style11]" id="mec_skin_countdown_date_format_style11" value="<?php echo ((isset($sk_options_countdown['date_format_style11']) and trim($sk_options_countdown['date_format_style11']) != '') ? $sk_options_countdown['date_format_style11'] : 'j F Y'); ?>" />
701
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "j F Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
702
  </div>
703
  <div class="mec-form-row mec-skin-countdown-date-format-container <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] != 'style2') echo 'mec-util-hidden'; ?>" id="mec_skin_countdown_date_format_style2_container">
704
+ <label class="mec-col-4" for="mec_skin_countdown_date_format_style21"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
705
  <input type="text" class="mec-col-4" name="mec[sk-options][countdown][date_format_style21]" id="mec_skin_countdown_date_format_style21" value="<?php echo ((isset($sk_options_countdown['date_format_style21']) and trim($sk_options_countdown['date_format_style21']) != '') ? $sk_options_countdown['date_format_style21'] : 'j F Y'); ?>" />
706
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "j F Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
707
  </div>
708
  <div class="mec-form-row mec-skin-countdown-date-format-container <?php if(isset($sk_options_countdown['style']) and $sk_options_countdown['style'] != 'style3') echo 'mec-util-hidden'; ?>" id="mec_skin_countdown_date_format_style3_container">
709
+ <label class="mec-col-4" for="mec_skin_countdown_date_format_style31"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
710
  <input type="text" class="mec-col-1" name="mec[sk-options][countdown][date_format_style31]" id="mec_skin_countdown_date_format_style31" value="<?php echo ((isset($sk_options_countdown['date_format_style31']) and trim($sk_options_countdown['date_format_style31']) != '') ? $sk_options_countdown['date_format_style31'] : 'j'); ?>" />
711
  <input type="text" class="mec-col-1" name="mec[sk-options][countdown][date_format_style32]" id="mec_skin_countdown_date_format_style32" value="<?php echo ((isset($sk_options_countdown['date_format_style32']) and trim($sk_options_countdown['date_format_style32']) != '') ? $sk_options_countdown['date_format_style32'] : 'F'); ?>" />
712
  <input type="text" class="mec-col-2" name="mec[sk-options][countdown][date_format_style33]" id="mec_skin_countdown_date_format_style33" value="<?php echo ((isset($sk_options_countdown['date_format_style33']) and trim($sk_options_countdown['date_format_style33']) != '') ? $sk_options_countdown['date_format_style33'] : 'Y'); ?>" />
713
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are j, F and Y', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
714
  </div>
715
  <div class="mec-form-row">
716
+ <label class="mec-col-4" for="mec_skin_countdown_event_id"><?php _e('Event', 'modern-events-calendar-lite'); ?></label>
717
  <select class="mec-col-4" name="mec[sk-options][countdown][event_id]" id="mec_skin_countdown_event_id">
718
+ <option value="-1" <?php if(isset($sk_options_countdown['event_id']) and $sk_options_countdown['event_id'] == '-1') echo 'selected="selected"'; ?>><?php echo __(' -- Next Upcoming Event -- ', 'modern-events-calendar-lite') ?></option>
719
  <?php foreach($events as $event): ?>
720
  <option value="<?php echo $event->ID; ?>" <?php if(isset($sk_options_countdown['event_id']) and $sk_options_countdown['event_id'] == $event->ID) echo 'selected="selected"'; ?>><?php echo $event->post_title; ?></option>
721
  <?php endforeach; ?>
722
  </select>
723
  </div>
724
  <div class="mec-form-row">
725
+ <label class="mec-col-4" for="mec_skin_countdown_bg_color"><?php _e('Background Color', 'modern-events-calendar-lite'); ?></label>
726
  <input type="text" class="mec-col-4 mec-color-picker wp-color-picker-field" id="mec_skin_countdown_bg_color" name="mec[sk-options][countdown][bg_color]" value="<?php echo ((isset($sk_options_countdown['bg_color']) and trim($sk_options_countdown['bg_color']) != '') ? $sk_options_countdown['bg_color'] : '#437df9'); ?>" data-default-color="#437df9" />
727
  </div>
728
  </div>
731
  <div class="mec-skin-options-container mec-util-hidden" id="mec_available_spot_skin_options_container">
732
 
733
  <?php if(!$this->main->getPRO()): ?>
734
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
735
  <?php endif; ?>
736
 
737
  <?php $sk_options_available_spot = isset($sk_options['available_spot']) ? $sk_options['available_spot'] : array(); ?>
738
  <div class="mec-form-row mec-skin-available-spot-date-format-container">
739
+ <label class="mec-col-4" for="mec_skin_available_spot_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
740
  <input type="text" class="mec-col-2" name="mec[sk-options][available_spot][date_format1]" id="mec_skin_available_spot_date_format1" value="<?php echo ((isset($sk_options_available_spot['date_format1']) and trim($sk_options_available_spot['date_format1']) != '') ? $sk_options_available_spot['date_format1'] : 'j'); ?>" />
741
  <input type="text" class="mec-col-2" name="mec[sk-options][available_spot][date_format2]" id="mec_skin_available_spot_date_format2" value="<?php echo ((isset($sk_options_available_spot['date_format2']) and trim($sk_options_available_spot['date_format2']) != '') ? $sk_options_available_spot['date_format2'] : 'F'); ?>" />
742
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are j and F', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
743
  </div>
744
  <div class="mec-form-row">
745
+ <label class="mec-col-4" for="mec_skin_available_spot_event_id"><?php _e('Event', 'modern-events-calendar-lite'); ?></label>
746
  <select class="mec-col-4" name="mec[sk-options][available_spot][event_id]" id="mec_skin_available_spot_event_id">
747
+ <option value="-1" <?php if(isset($sk_options_available_spot['event_id']) and $sk_options_available_spot['event_id'] == '-1') echo 'selected="selected"'; ?>><?php echo __(' -- Next Upcoming Event -- ', 'modern-events-calendar-lite') ?></option>
748
  <?php foreach($events as $event): ?>
749
  <option value="<?php echo $event->ID; ?>" <?php if(isset($sk_options_available_spot['event_id']) and $sk_options_available_spot['event_id'] == $event->ID) echo 'selected="selected"'; ?>><?php echo $event->post_title; ?></option>
750
  <?php endforeach; ?>
756
  <div class="mec-skin-options-container mec-util-hidden" id="mec_carousel_skin_options_container">
757
  <?php $sk_options_carousel = isset($sk_options['carousel']) ? $sk_options['carousel'] : array(); ?>
758
  <div class="mec-form-row">
759
+ <label class="mec-col-4" for="mec_skin_carousel_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
760
  <select class="mec-col-4" name="mec[sk-options][carousel][style]" id="mec_skin_carousel_style" onchange="mec_skin_style_changed('carousel', this.value);">
761
+ <option value="type1" <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] == 'type1') echo 'selected="selected"'; ?>><?php _e('Type 1', 'modern-events-calendar-lite'); ?></option>
762
+ <option value="type2" <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] == 'type2') echo 'selected="selected"'; ?>><?php _e('Type 2', 'modern-events-calendar-lite'); ?></option>
763
+ <option value="type3" <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] == 'type3') echo 'selected="selected"'; ?>><?php _e('Type 3', 'modern-events-calendar-lite'); ?></option>
764
  </select>
765
  </div>
766
  <div class="mec-form-row">
767
+ <label class="mec-col-4" for="mec_skin_carousel_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
768
  <select class="mec-col-4" name="mec[sk-options][carousel][start_date_type]" id="mec_skin_carousel_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_carousel_start_date_container').show(); else jQuery('#mec_skin_carousel_start_date_container').hide();">
769
+ <option value="today" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
770
+ <option value="tomorrow" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
771
+ <option value="start_current_month" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
772
+ <option value="start_next_month" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
773
+ <option value="date" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
774
  </select>
775
  <div class="mec-col-4 <?php if(!isset($sk_options_carousel['start_date_type']) or (isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_start_date_container">
776
+ <input class="mec_date_picker" type="text" name="mec[sk-options][carousel][start_date]" id="mec_skin_carousel_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_carousel['start_date'])) echo $sk_options_carousel['start_date']; ?>" />
777
  </div>
778
  </div>
779
  <div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type1') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type1_container">
780
+ <label class="mec-col-4" for="mec_skin_carousel_type1_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
781
  <input type="text" class="mec-col-2" name="mec[sk-options][carousel][type1_date_format1]" id="mec_skin_carousel_type1_date_format1" value="<?php echo ((isset($sk_options_carousel['type1_date_format1']) and trim($sk_options_carousel['type1_date_format1']) != '') ? $sk_options_carousel['type1_date_format1'] : 'd'); ?>" />
782
  <input type="text" class="mec-col-1" name="mec[sk-options][carousel][type1_date_format2]" id="mec_skin_carousel_type1_date_format2" value="<?php echo ((isset($sk_options_carousel['type1_date_format2']) and trim($sk_options_carousel['type1_date_format2']) != '') ? $sk_options_carousel['type1_date_format2'] : 'F'); ?>" />
783
  <input type="text" class="mec-col-1" name="mec[sk-options][carousel][type1_date_format3]" id="mec_skin_carousel_type1_date_format3" value="<?php echo ((isset($sk_options_carousel['type1_date_format3']) and trim($sk_options_carousel['type1_date_format3']) != '') ? $sk_options_carousel['type1_date_format3'] : 'Y'); ?>" />
784
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and Y', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
785
  </div>
786
  <div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type2') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type2_container">
787
+ <label class="mec-col-4" for="mec_skin_carousel_type2_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
788
  <input type="text" class="mec-col-4" name="mec[sk-options][carousel][type2_date_format1]" id="mec_skin_carousel_type2_date_format1" value="<?php echo ((isset($sk_options_carousel['type2_date_format1']) and trim($sk_options_carousel['type2_date_format1']) != '') ? $sk_options_carousel['type2_date_format1'] : 'M d, Y'); ?>" />
789
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d, Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
790
  </div>
791
  <div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type3') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type3_container">
792
+ <label class="mec-col-4" for="mec_skin_carousel_type3_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
793
  <input type="text" class="mec-col-4" name="mec[sk-options][carousel][type3_date_format1]" id="mec_skin_carousel_type3_date_format1" value="<?php echo ((isset($sk_options_carousel['type3_date_format1']) and trim($sk_options_carousel['type3_date_format1']) != '') ? $sk_options_carousel['type3_date_format1'] : 'M d, Y'); ?>" />
794
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is "M d, Y"', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
795
  </div>
796
  <div class="mec-form-row">
797
+ <label class="mec-col-4" for="mec_skin_carousel_count"><?php _e('Count in row', 'modern-events-calendar-lite'); ?></label>
798
  <select class="mec-col-4" name="mec[sk-options][carousel][count]" id="mec_skin_carousel_count">
799
  <option value="2" <?php echo (isset($sk_options_carousel['count']) and $sk_options_carousel['count'] == 2) ? 'selected="selected"' : ''; ?>>2</option>
800
  <option value="3" <?php echo (isset($sk_options_carousel['count']) and $sk_options_carousel['count'] == 3) ? 'selected="selected"' : ''; ?>>3</option>
803
  </select>
804
  </div>
805
  <div class="mec-form-row">
806
+ <label class="mec-col-4" for="mec_skin_carousel_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
807
+ <input class="mec-col-4" type="number" name="mec[sk-options][carousel][limit]" id="mec_skin_carousel_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_carousel['limit'])) echo $sk_options_carousel['limit']; ?>" />
808
  </div>
809
  <div class="mec-form-row">
810
+ <label class="mec-col-4" for="mec_skin_carousel_autoplay"><?php _e('Auto Play Time', 'modern-events-calendar-lite'); ?></label>
811
+ <input class="mec-col-4" type="number" name="mec[sk-options][carousel][autoplay]" id="mec_skin_carousel_autoplay" placeholder="<?php _e('eg. 3000 default is 3 second', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_carousel['autoplay']) && $sk_options_carousel['autoplay'] != '' ) echo $sk_options_carousel['autoplay']; ?>" />
812
  </div>
813
  </div>
814
 
816
  <div class="mec-skin-options-container mec-util-hidden" id="mec_slider_skin_options_container">
817
  <?php $sk_options_slider = isset($sk_options['slider']) ? $sk_options['slider'] : array(); ?>
818
  <div class="mec-form-row">
819
+ <label class="mec-col-4" for="mec_skin_slider_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
820
  <select class="mec-col-4" name="mec[sk-options][slider][style]" id="mec_skin_slider_style" onchange="mec_skin_style_changed('slider', this.value);">
821
+ <option value="t1" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't1') echo 'selected="selected"'; ?>><?php _e('Type 1', 'modern-events-calendar-lite'); ?></option>
822
+ <option value="t2" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't2') echo 'selected="selected"'; ?>><?php _e('Type 2', 'modern-events-calendar-lite'); ?></option>
823
+ <option value="t3" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't3') echo 'selected="selected"'; ?>><?php _e('Type 3', 'modern-events-calendar-lite'); ?></option>
824
+ <option value="t4" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't4') echo 'selected="selected"'; ?>><?php _e('Type 4', 'modern-events-calendar-lite'); ?></option>
825
+ <option value="t5" <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] == 't5') echo 'selected="selected"'; ?>><?php _e('Type 5', 'modern-events-calendar-lite'); ?></option>
826
  </select>
827
  </div>
828
  <div class="mec-form-row">
829
+ <label class="mec-col-4" for="mec_skin_slider_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
830
  <select class="mec-col-4" name="mec[sk-options][slider][start_date_type]" id="mec_skin_slider_start_date_type" onchange="if(this.value == 'date') jQuery('#mec_skin_slider_start_date_container').show(); else jQuery('#mec_skin_slider_start_date_container').hide();">
831
+ <option value="today" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
832
+ <option value="tomorrow" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
833
+ <option value="start_current_month" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'start_current_month') echo 'selected="selected"'; ?>><?php _e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
834
+ <option value="start_next_month" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'start_next_month') echo 'selected="selected"'; ?>><?php _e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
835
+ <option value="date" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
836
  </select>
837
  <div class="mec-col-4 <?php if(!isset($sk_options_slider['start_date_type']) or (isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_slider_start_date_container">
838
+ <input class="mec_date_picker" type="text" name="mec[sk-options][slider][start_date]" id="mec_skin_slider_start_date" placeholder="<?php echo sprintf(__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_slider['start_date'])) echo $sk_options_slider['start_date']; ?>" />
839
  </div>
840
  </div>
841
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't1') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t1_container">
842
+ <label class="mec-col-4" for="mec_skin_slider_type1_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
843
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type1_date_format1]" id="mec_skin_slider_type1_date_format1" value="<?php echo ((isset($sk_options_slider['type1_date_format1']) and trim($sk_options_slider['type1_date_format1']) != '') ? $sk_options_slider['type1_date_format1'] : 'd'); ?>" />
844
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type1_date_format2]" id="mec_skin_slider_type1_date_format2" value="<?php echo ((isset($sk_options_slider['type1_date_format2']) and trim($sk_options_slider['type1_date_format2']) != '') ? $sk_options_slider['type1_date_format2'] : 'F'); ?>" />
845
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type1_date_format3]" id="mec_skin_slider_type1_date_format3" value="<?php echo ((isset($sk_options_slider['type1_date_format3']) and trim($sk_options_slider['type1_date_format3']) != '') ? $sk_options_slider['type1_date_format3'] : 'l'); ?>" />
846
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
847
  </div>
848
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't2') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t2_container">
849
+ <label class="mec-col-4" for="mec_skin_slider_type2_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
850
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type2_date_format1]" id="mec_skin_slider_type2_date_format1" value="<?php echo ((isset($sk_options_slider['type2_date_format1']) and trim($sk_options_slider['type2_date_format1']) != '') ? $sk_options_slider['type2_date_format1'] : 'd'); ?>" />
851
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type2_date_format2]" id="mec_skin_slider_type2_date_format2" value="<?php echo ((isset($sk_options_slider['type2_date_format2']) and trim($sk_options_slider['type2_date_format2']) != '') ? $sk_options_slider['type2_date_format2'] : 'F'); ?>" />
852
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type2_date_format3]" id="mec_skin_slider_type2_date_format3" value="<?php echo ((isset($sk_options_slider['type2_date_format3']) and trim($sk_options_slider['type2_date_format3']) != '') ? $sk_options_slider['type2_date_format3'] : 'l'); ?>" />
853
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
854
  </div>
855
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't3') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t3_container">
856
+ <label class="mec-col-4" for="mec_skin_slider_type3_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
857
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type3_date_format1]" id="mec_skin_slider_type3_date_format1" value="<?php echo ((isset($sk_options_slider['type3_date_format1']) and trim($sk_options_slider['type3_date_format1']) != '') ? $sk_options_slider['type3_date_format1'] : 'd'); ?>" />
858
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type3_date_format2]" id="mec_skin_slider_type3_date_format2" value="<?php echo ((isset($sk_options_slider['type3_date_format2']) and trim($sk_options_slider['type3_date_format2']) != '') ? $sk_options_slider['type3_date_format2'] : 'F'); ?>" />
859
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type3_date_format3]" id="mec_skin_slider_type3_date_format3" value="<?php echo ((isset($sk_options_slider['type3_date_format3']) and trim($sk_options_slider['type3_date_format3']) != '') ? $sk_options_slider['type3_date_format3'] : 'l'); ?>" />
860
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
861
  </div>
862
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't4') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t4_container">
863
+ <label class="mec-col-4" for="mec_skin_slider_type4_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
864
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type4_date_format1]" id="mec_skin_slider_type4_date_format1" value="<?php echo ((isset($sk_options_slider['type4_date_format1']) and trim($sk_options_slider['type4_date_format1']) != '') ? $sk_options_slider['type4_date_format1'] : 'd'); ?>" />
865
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type4_date_format2]" id="mec_skin_slider_type4_date_format2" value="<?php echo ((isset($sk_options_slider['type4_date_format2']) and trim($sk_options_slider['type4_date_format2']) != '') ? $sk_options_slider['type4_date_format2'] : 'F'); ?>" />
866
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type4_date_format3]" id="mec_skin_slider_type4_date_format3" value="<?php echo ((isset($sk_options_slider['type4_date_format3']) and trim($sk_options_slider['type4_date_format3']) != '') ? $sk_options_slider['type4_date_format3'] : 'l'); ?>" />
867
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
868
  </div>
869
  <div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't5') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t5_container">
870
+ <label class="mec-col-4" for="mec_skin_slider_type5_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
871
  <input type="text" class="mec-col-2" name="mec[sk-options][slider][type5_date_format1]" id="mec_skin_slider_type5_date_format1" value="<?php echo ((isset($sk_options_slider['type5_date_format1']) and trim($sk_options_slider['type5_date_format1']) != '') ? $sk_options_slider['type5_date_format1'] : 'd'); ?>" />
872
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type5_date_format2]" id="mec_skin_slider_type5_date_format2" value="<?php echo ((isset($sk_options_slider['type5_date_format2']) and trim($sk_options_slider['type5_date_format2']) != '') ? $sk_options_slider['type5_date_format2'] : 'F'); ?>" />
873
  <input type="text" class="mec-col-1" name="mec[sk-options][slider][type5_date_format3]" id="mec_skin_slider_type5_date_format3" value="<?php echo ((isset($sk_options_slider['type5_date_format3']) and trim($sk_options_slider['type5_date_format3']) != '') ? $sk_options_slider['type5_date_format3'] : 'l'); ?>" />
874
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
875
  </div>
876
  <div class="mec-form-row">
877
+ <label class="mec-col-4" for="mec_skin_slider_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
878
+ <input class="mec-col-4" type="number" name="mec[sk-options][slider][limit]" id="mec_skin_slider_limit" placeholder="<?php _e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_slider['limit'])) echo $sk_options_slider['limit']; ?>" />
879
  </div>
880
  <div class="mec-form-row">
881
+ <label class="mec-col-4" for="mec_skin_slider_autoplay"><?php _e('Auto Play Time', 'modern-events-calendar-lite'); ?></label>
882
+ <input class="mec-col-4" type="number" name="mec[sk-options][slider][autoplay]" id="mec_skin_slider_autoplay" placeholder="<?php _e('eg. 3000 default is 3 second', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_slider['autoplay']) && $sk_options_slider['autoplay'] != '' ) echo $sk_options_slider['autoplay']; ?>" />
883
  </div>
884
  </div>
885
 
app/features/mec/meta_boxes/filter.php CHANGED
@@ -63,11 +63,11 @@ $MEC_tax_walker = new MEC_tax_walker();
63
  wp_nonce_field('mec_calendar_data', 'mec_calendar_nonce');
64
  ?>
65
  <div id="mec_meta_box_calendar_no_filter" class="mec-util-hidden">
66
- <p><?php _e('No filter options applicable for this skin.', 'mec'); ?></p>
67
  </div>
68
  <div class="mec-meta-box-fields" id="mec_meta_box_calendar_filter">
69
  <div class="mec-form-row">
70
- <h4><?php echo $this->main->m('taxonomy_categories', __('Categories', 'mec')); ?></h4>
71
  <ul>
72
  <?php
73
  $selected_categories = explode(',', get_post_meta($post->ID, 'category', true));
@@ -81,10 +81,10 @@ $MEC_tax_walker = new MEC_tax_walker();
81
  ));
82
  ?>
83
  </ul>
84
- <p class="description"><?php _e('Choose your desired categories for filtering the events.', 'mec'); ?></p>
85
  </div>
86
  <div class="mec-form-row">
87
- <h4><?php echo $this->main->m('taxonomy_locations', __('Locations', 'mec')); ?></h4>
88
  <ul>
89
  <?php
90
  $selected_locations = explode(',', get_post_meta($post->ID, 'location', true));
@@ -98,10 +98,10 @@ $MEC_tax_walker = new MEC_tax_walker();
98
  ));
99
  ?>
100
  </ul>
101
- <p class="description"><?php _e('Choose your desired locations for filtering the events.', 'mec'); ?></p>
102
  </div>
103
  <div class="mec-form-row">
104
- <h4><?php echo $this->main->m('taxonomy_organizers', __('Organizers', 'mec')); ?></h4>
105
  <ul>
106
  <?php
107
  $selected_organizers = explode(',', get_post_meta($post->ID, 'organizer', true));
@@ -115,10 +115,10 @@ $MEC_tax_walker = new MEC_tax_walker();
115
  ));
116
  ?>
117
  </ul>
118
- <p class="description"><?php _e('Choose your desired organizers for filtering the events.', 'mec'); ?></p>
119
  </div>
120
  <div class="mec-form-row">
121
- <h4><?php echo $this->main->m('taxonomy_labels', __('Labels', 'mec')); ?></h4>
122
  <ul>
123
  <?php
124
  $selected_labels = explode(',', get_post_meta($post->ID, 'label', true));
@@ -132,16 +132,16 @@ $MEC_tax_walker = new MEC_tax_walker();
132
  ));
133
  ?>
134
  </ul>
135
- <p class="description"><?php _e('Choose your desired labels for filtering the events.', 'mec'); ?></p>
136
  </div>
137
  <div class="mec-form-row">
138
- <h4><?php _e('Tags', 'mec'); ?></h4>
139
  <?php $selected_tags = get_post_meta($post->ID, 'tag', true); ?>
140
  <input type="text" name="mec_tax_input[mec_tag]" value="<?php echo $selected_tags; ?>" class="widefat" />
141
- <p class="description"><?php _e('Insert your desired tags comma separated.', 'mec'); ?></p>
142
  </div>
143
  <div class="mec-form-row">
144
- <h4><?php _e('Authors', 'mec'); ?></h4>
145
  <ul>
146
  <?php
147
  $selected_authors = explode(',', get_post_meta($post->ID, 'author', true));
@@ -159,14 +159,14 @@ $MEC_tax_walker = new MEC_tax_walker();
159
  }
160
  ?>
161
  </ul>
162
- <p class="description"><?php _e('Choose your desired authors for filtering the events.', 'mec'); ?></p>
163
  </div>
164
  <div class="mec-form-row">
165
- <h4><?php _e('Dates', 'mec'); ?></h4>
166
  <div class="mec-form-row mec-switcher">
167
  <?php $show_past_events = get_post_meta($post->ID, 'show_past_events', true); ?>
168
  <div class="mec-col-4">
169
- <label for="mec_show_past_events"><?php _e('Include Expired Events', 'mec'); ?></label>
170
  </div>
171
  <div class="mec-col-4">
172
  <input type="hidden" name="mec[show_past_events]" value="0" />
@@ -174,12 +174,12 @@ $MEC_tax_walker = new MEC_tax_walker();
174
  <label for="mec_show_past_events"></label>
175
  </div>
176
  </div>
177
- <p class="description"><?php _e('You have ability to include past/expired events if you like so it will show upcoming and expired events based on start date that you selected.', 'mec'); ?></p>
178
  <div id="mec_date_only_past_filter">
179
  <div class="mec-form-row mec-switcher">
180
  <?php $show_only_past_events = get_post_meta($post->ID, 'show_only_past_events', true); ?>
181
  <div class="mec-col-4">
182
- <label for="mec_show_only_past_events"><?php _e('Show Only Expired Events', 'mec'); ?></label>
183
  </div>
184
  <div class="mec-col-4">
185
  <input type="hidden" name="mec[show_only_past_events]" value="0" />
@@ -187,13 +187,13 @@ $MEC_tax_walker = new MEC_tax_walker();
187
  <label for="mec_show_only_past_events"></label>
188
  </div>
189
  </div>
190
- <p class="description"><?php _e('It shows only expired/past events.', 'mec'); ?></p>
191
  </div>
192
  <div id="mec_date_ongoing_filter">
193
  <div class="mec-form-row mec-switcher">
194
  <?php $show_only_ongoing_events = get_post_meta($post->ID, 'show_only_ongoing_events', true); ?>
195
  <div class="mec-col-4">
196
- <label for="mec_show_only_ongoing_events"><?php _e('Show Only Ongoing Events', 'mec'); ?></label>
197
  </div>
198
  <div class="mec-col-4">
199
  <input type="hidden" name="mec[show_only_ongoing_events]" value="0" />
@@ -201,7 +201,7 @@ $MEC_tax_walker = new MEC_tax_walker();
201
  <label for="mec_show_only_ongoing_events"></label>
202
  </div>
203
  </div>
204
- <p class="description"><?php _e('It shows only ongoing events on List and Grid skins.', 'mec'); ?></p>
205
  </div>
206
  </div>
207
  </div>
63
  wp_nonce_field('mec_calendar_data', 'mec_calendar_nonce');
64
  ?>
65
  <div id="mec_meta_box_calendar_no_filter" class="mec-util-hidden">
66
+ <p><?php _e('No filter options applicable for this skin.', 'modern-events-calendar-lite'); ?></p>
67
  </div>
68
  <div class="mec-meta-box-fields" id="mec_meta_box_calendar_filter">
69
  <div class="mec-form-row">
70
+ <h4><?php echo $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite')); ?></h4>
71
  <ul>
72
  <?php
73
  $selected_categories = explode(',', get_post_meta($post->ID, 'category', true));
81
  ));
82
  ?>
83
  </ul>
84
+ <p class="description"><?php _e('Choose your desired categories for filtering the events.', 'modern-events-calendar-lite'); ?></p>
85
  </div>
86
  <div class="mec-form-row">
87
+ <h4><?php echo $this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite')); ?></h4>
88
  <ul>
89
  <?php
90
  $selected_locations = explode(',', get_post_meta($post->ID, 'location', true));
98
  ));
99
  ?>
100
  </ul>
101
+ <p class="description"><?php _e('Choose your desired locations for filtering the events.', 'modern-events-calendar-lite'); ?></p>
102
  </div>
103
  <div class="mec-form-row">
104
+ <h4><?php echo $this->main->m('taxonomy_organizers', __('Organizers', 'modern-events-calendar-lite')); ?></h4>
105
  <ul>
106
  <?php
107
  $selected_organizers = explode(',', get_post_meta($post->ID, 'organizer', true));
115
  ));
116
  ?>
117
  </ul>
118
+ <p class="description"><?php _e('Choose your desired organizers for filtering the events.', 'modern-events-calendar-lite'); ?></p>
119
  </div>
120
  <div class="mec-form-row">
121
+ <h4><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h4>
122
  <ul>
123
  <?php
124
  $selected_labels = explode(',', get_post_meta($post->ID, 'label', true));
132
  ));
133
  ?>
134
  </ul>
135
+ <p class="description"><?php _e('Choose your desired labels for filtering the events.', 'modern-events-calendar-lite'); ?></p>
136
  </div>
137
  <div class="mec-form-row">
138
+ <h4><?php _e('Tags', 'modern-events-calendar-lite'); ?></h4>
139
  <?php $selected_tags = get_post_meta($post->ID, 'tag', true); ?>
140
  <input type="text" name="mec_tax_input[mec_tag]" value="<?php echo $selected_tags; ?>" class="widefat" />
141
+ <p class="description"><?php _e('Insert your desired tags comma separated.', 'modern-events-calendar-lite'); ?></p>
142
  </div>
143
  <div class="mec-form-row">
144
+ <h4><?php _e('Authors', 'modern-events-calendar-lite'); ?></h4>
145
  <ul>
146
  <?php
147
  $selected_authors = explode(',', get_post_meta($post->ID, 'author', true));
159
  }
160
  ?>
161
  </ul>
162
+ <p class="description"><?php _e('Choose your desired authors for filtering the events.', 'modern-events-calendar-lite'); ?></p>
163
  </div>
164
  <div class="mec-form-row">
165
+ <h4><?php _e('Dates', 'modern-events-calendar-lite'); ?></h4>
166
  <div class="mec-form-row mec-switcher">
167
  <?php $show_past_events = get_post_meta($post->ID, 'show_past_events', true); ?>
168
  <div class="mec-col-4">
169
+ <label for="mec_show_past_events"><?php _e('Include Expired Events', 'modern-events-calendar-lite'); ?></label>
170
  </div>
171
  <div class="mec-col-4">
172
  <input type="hidden" name="mec[show_past_events]" value="0" />
174
  <label for="mec_show_past_events"></label>
175
  </div>
176
  </div>
177
+ <p class="description"><?php _e('You have ability to include past/expired events if you like so it will show upcoming and expired events based on start date that you selected.', 'modern-events-calendar-lite'); ?></p>
178
  <div id="mec_date_only_past_filter">
179
  <div class="mec-form-row mec-switcher">
180
  <?php $show_only_past_events = get_post_meta($post->ID, 'show_only_past_events', true); ?>
181
  <div class="mec-col-4">
182
+ <label for="mec_show_only_past_events"><?php _e('Show Only Expired Events', 'modern-events-calendar-lite'); ?></label>
183
  </div>
184
  <div class="mec-col-4">
185
  <input type="hidden" name="mec[show_only_past_events]" value="0" />
187
  <label for="mec_show_only_past_events"></label>
188
  </div>
189
  </div>
190
+ <p class="description"><?php _e('It shows only expired/past events.', 'modern-events-calendar-lite'); ?></p>
191
  </div>
192
  <div id="mec_date_ongoing_filter">
193
  <div class="mec-form-row mec-switcher">
194
  <?php $show_only_ongoing_events = get_post_meta($post->ID, 'show_only_ongoing_events', true); ?>
195
  <div class="mec-col-4">
196
+ <label for="mec_show_only_ongoing_events"><?php _e('Show Only Ongoing Events', 'modern-events-calendar-lite'); ?></label>
197
  </div>
198
  <div class="mec-col-4">
199
  <input type="hidden" name="mec[show_only_ongoing_events]" value="0" />
201
  <label for="mec_show_only_ongoing_events"></label>
202
  </div>
203
  </div>
204
+ <p class="description"><?php _e('It shows only ongoing events on List and Grid skins.', 'modern-events-calendar-lite'); ?></p>
205
  </div>
206
  </div>
207
  </div>
app/features/mec/meta_boxes/search_form.php CHANGED
@@ -10,7 +10,7 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
10
  <div class="mec-form-row mec-switcher">
11
  <?php $sf_status = get_post_meta($post->ID, 'sf_status', true); ?>
12
  <div class="mec-col-8">
13
- <label><?php _e('Show Search Form', 'mec'); ?></label>
14
  </div>
15
  <div class="mec-col-4">
16
  <input type="hidden" name="mec[sf_status]" value="0" />
@@ -28,45 +28,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
28
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_list_search_form_options_container">
29
  <?php $sf_options_list = isset($sf_options['list']) ? $sf_options['list'] : array(); ?>
30
  <div class="mec-form-row">
31
- <label class="mec-col-12" for="mec_sf_list_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
32
  <select class="mec-col-12" name="mec[sf-options][list][category][type]" id="mec_sf_list_category">
33
- <option value="0" <?php if(isset($sf_options_list['category']) and isset($sf_options_list['category']['type']) and $sf_options_list['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
34
- <option value="dropdown" <?php if(isset($sf_options_list['category']) and isset($sf_options_list['category']['type']) and $sf_options_list['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
35
  </select>
36
  </div>
37
  <div class="mec-form-row">
38
- <label class="mec-col-12" for="mec_sf_list_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
39
  <select class="mec-col-12" name="mec[sf-options][list][location][type]" id="mec_sf_list_location">
40
- <option value="0" <?php if(isset($sf_options_list['location']) and isset($sf_options_list['location']['type']) and $sf_options_list['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
41
- <option value="dropdown" <?php if(isset($sf_options_list['location']) and isset($sf_options_list['location']['type']) and $sf_options_list['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
42
  </select>
43
  </div>
44
  <div class="mec-form-row">
45
- <label class="mec-col-12" for="mec_sf_list_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
46
  <select class="mec-col-12" name="mec[sf-options][list][organizer][type]" id="mec_sf_list_organizer">
47
- <option value="0" <?php if(isset($sf_options_list['organizer']) and isset($sf_options_list['organizer']['type']) and $sf_options_list['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
48
- <option value="dropdown" <?php if(isset($sf_options_list['organizer']) and isset($sf_options_list['organizer']['type']) and $sf_options_list['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
49
  </select>
50
  </div>
51
  <div class="mec-form-row">
52
- <label class="mec-col-12" for="mec_sf_list_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
53
  <select class="mec-col-12" name="mec[sf-options][list][label][type]" id="mec_sf_list_label">
54
- <option value="0" <?php if(isset($sf_options_list['label']) and isset($sf_options_list['label']['type']) and $sf_options_list['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
55
- <option value="dropdown" <?php if(isset($sf_options_list['label']) and isset($sf_options_list['label']['type']) and $sf_options_list['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
56
  </select>
57
  </div>
58
  <div class="mec-form-row">
59
- <label class="mec-col-12" for="mec_sf_list_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
60
  <select class="mec-col-12" name="mec[sf-options][list][month_filter][type]" id="mec_sf_list_month_filter">
61
- <option value="0" <?php if(isset($sf_options_list['month_filter']) and isset($sf_options_list['month_filter']['type']) and $sf_options_list['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
62
- <option value="dropdown" <?php if(isset($sf_options_list['month_filter']) and isset($sf_options_list['month_filter']['type']) and $sf_options_list['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
63
  </select>
64
  </div>
65
  <div class="mec-form-row">
66
- <label class="mec-col-12" for="mec_sf_list_text_search"><?php _e('Text Search', 'mec'); ?></label>
67
  <select class="mec-col-12" name="mec[sf-options][list][text_search][type]" id="mec_sf_list_text_search">
68
- <option value="0" <?php if(isset($sf_options_list['text_search']) and isset($sf_options_list['text_search']['type']) and $sf_options_list['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
69
- <option value="text_input" <?php if(isset($sf_options_list['text_search']) and isset($sf_options_list['text_search']['type']) and $sf_options_list['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
70
  </select>
71
  </div>
72
  </div>
@@ -75,45 +75,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
75
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_grid_search_form_options_container">
76
  <?php $sf_options_grid = isset($sf_options['grid']) ? $sf_options['grid'] : array(); ?>
77
  <div class="mec-form-row">
78
- <label class="mec-col-12" for="mec_sf_grid_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
79
  <select class="mec-col-12" name="mec[sf-options][grid][category][type]" id="mec_sf_grid_category">
80
- <option value="0" <?php if(isset($sf_options_grid['category']) and isset($sf_options_grid['category']['type']) and $sf_options_grid['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
81
- <option value="dropdown" <?php if(isset($sf_options_grid['category']) and isset($sf_options_grid['category']['type']) and $sf_options_grid['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
82
  </select>
83
  </div>
84
  <div class="mec-form-row">
85
- <label class="mec-col-12" for="mec_sf_grid_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
86
  <select class="mec-col-12" name="mec[sf-options][grid][location][type]" id="mec_sf_grid_location">
87
- <option value="0" <?php if(isset($sf_options_grid['location']) and isset($sf_options_grid['location']['type']) and $sf_options_grid['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
88
- <option value="dropdown" <?php if(isset($sf_options_grid['location']) and isset($sf_options_grid['location']['type']) and $sf_options_grid['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
89
  </select>
90
  </div>
91
  <div class="mec-form-row">
92
- <label class="mec-col-12" for="mec_sf_grid_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
93
  <select class="mec-col-12" name="mec[sf-options][grid][organizer][type]" id="mec_sf_grid_organizer">
94
- <option value="0" <?php if(isset($sf_options_grid['organizer']) and isset($sf_options_grid['organizer']['type']) and $sf_options_grid['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
95
- <option value="dropdown" <?php if(isset($sf_options_grid['organizer']) and isset($sf_options_grid['organizer']['type']) and $sf_options_grid['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
96
  </select>
97
  </div>
98
  <div class="mec-form-row">
99
- <label class="mec-col-12" for="mec_sf_grid_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
100
  <select class="mec-col-12" name="mec[sf-options][grid][label][type]" id="mec_sf_grid_label">
101
- <option value="0" <?php if(isset($sf_options_grid['label']) and isset($sf_options_grid['label']['type']) and $sf_options_grid['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
102
- <option value="dropdown" <?php if(isset($sf_options_grid['label']) and isset($sf_options_grid['label']['type']) and $sf_options_grid['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
103
  </select>
104
  </div>
105
  <div class="mec-form-row">
106
- <label class="mec-col-12" for="mec_sf_grid_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
107
  <select class="mec-col-12" name="mec[sf-options][grid][month_filter][type]" id="mec_sf_grid_month_filter">
108
- <option value="0" <?php if(isset($sf_options_grid['month_filter']) and isset($sf_options_grid['month_filter']['type']) and $sf_options_grid['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
109
- <option value="dropdown" <?php if(isset($sf_options_grid['month_filter']) and isset($sf_options_grid['month_filter']['type']) and $sf_options_grid['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
110
  </select>
111
  </div>
112
  <div class="mec-form-row">
113
- <label class="mec-col-12" for="mec_sf_grid_text_search"><?php _e('Text Search', 'mec'); ?></label>
114
  <select class="mec-col-12" name="mec[sf-options][grid][text_search][type]" id="mec_sf_grid_text_search">
115
- <option value="0" <?php if(isset($sf_options_grid['text_search']) and isset($sf_options_grid['text_search']['type']) and $sf_options_grid['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
116
- <option value="text_input" <?php if(isset($sf_options_grid['text_search']) and isset($sf_options_grid['text_search']['type']) and $sf_options_grid['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
117
  </select>
118
  </div>
119
  </div>
@@ -122,45 +122,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
122
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_agenda_search_form_options_container">
123
  <?php $sf_options_agenda = isset($sf_options['agenda']) ? $sf_options['agenda'] : array(); ?>
124
  <div class="mec-form-row">
125
- <label class="mec-col-12" for="mec_sf_agenda_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
126
  <select class="mec-col-12" name="mec[sf-options][agenda][category][type]" id="mec_sf_agenda_category">
127
- <option value="0" <?php if(isset($sf_options_agenda['category']) and isset($sf_options_agenda['category']['type']) and $sf_options_agenda['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
128
- <option value="dropdown" <?php if(isset($sf_options_agenda['category']) and isset($sf_options_agenda['category']['type']) and $sf_options_agenda['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
129
  </select>
130
  </div>
131
  <div class="mec-form-row">
132
- <label class="mec-col-12" for="mec_sf_agenda_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
133
  <select class="mec-col-12" name="mec[sf-options][agenda][location][type]" id="mec_sf_agenda_location">
134
- <option value="0" <?php if(isset($sf_options_agenda['location']) and isset($sf_options_agenda['location']['type']) and $sf_options_agenda['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
135
- <option value="dropdown" <?php if(isset($sf_options_agenda['location']) and isset($sf_options_agenda['location']['type']) and $sf_options_agenda['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
136
  </select>
137
  </div>
138
  <div class="mec-form-row">
139
- <label class="mec-col-12" for="mec_sf_agenda_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
140
  <select class="mec-col-12" name="mec[sf-options][agenda][organizer][type]" id="mec_sf_agenda_organizer">
141
- <option value="0" <?php if(isset($sf_options_agenda['organizer']) and isset($sf_options_agenda['organizer']['type']) and $sf_options_agenda['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
142
- <option value="dropdown" <?php if(isset($sf_options_agenda['organizer']) and isset($sf_options_agenda['organizer']['type']) and $sf_options_agenda['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
143
  </select>
144
  </div>
145
  <div class="mec-form-row">
146
- <label class="mec-col-12" for="mec_sf_agenda_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
147
  <select class="mec-col-12" name="mec[sf-options][agenda][label][type]" id="mec_sf_agenda_label">
148
- <option value="0" <?php if(isset($sf_options_agenda['label']) and isset($sf_options_agenda['label']['type']) and $sf_options_agenda['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
149
- <option value="dropdown" <?php if(isset($sf_options_agenda['label']) and isset($sf_options_agenda['label']['type']) and $sf_options_agenda['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
150
  </select>
151
  </div>
152
  <div class="mec-form-row">
153
- <label class="mec-col-12" for="mec_sf_agenda_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
154
  <select class="mec-col-12" name="mec[sf-options][agenda][month_filter][type]" id="mec_sf_agenda_month_filter">
155
- <option value="0" <?php if(isset($sf_options_agenda['month_filter']) and isset($sf_options_agenda['month_filter']['type']) and $sf_options_agenda['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
156
- <option value="dropdown" <?php if(isset($sf_options_agenda['month_filter']) and isset($sf_options_agenda['month_filter']['type']) and $sf_options_agenda['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
157
  </select>
158
  </div>
159
  <div class="mec-form-row">
160
- <label class="mec-col-12" for="mec_sf_agenda_text_search"><?php _e('Text Search', 'mec'); ?></label>
161
  <select class="mec-col-12" name="mec[sf-options][agenda][text_search][type]" id="mec_sf_agenda_text_search">
162
- <option value="0" <?php if(isset($sf_options_agenda['text_search']) and isset($sf_options_agenda['text_search']['type']) and $sf_options_agenda['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
163
- <option value="text_input" <?php if(isset($sf_options_agenda['text_search']) and isset($sf_options_agenda['text_search']['type']) and $sf_options_agenda['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
164
  </select>
165
  </div>
166
  </div>
@@ -169,17 +169,17 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
169
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_full_calendar_search_form_options_container">
170
  <?php $sf_options_full_calendar = isset($sf_options['full_calendar']) ? $sf_options['full_calendar'] : array(); ?>
171
  <div class="mec-form-row">
172
- <label class="mec-col-12" for="mec_sf_full_calendar_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
173
  <select class="mec-col-12" name="mec[sf-options][full_calendar][month_filter][type]" id="mec_sf_full_calendar_month_filter">
174
- <option value="0" <?php if(isset($sf_options_full_calendar['month_filter']) and isset($sf_options_full_calendar['month_filter']['type']) and $sf_options_full_calendar['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
175
- <option value="dropdown" <?php if(isset($sf_options_full_calendar['month_filter']) and isset($sf_options_full_calendar['month_filter']['type']) and $sf_options_full_calendar['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
176
  </select>
177
  </div>
178
  <div class="mec-form-row">
179
- <label class="mec-col-12" for="mec_sf_full_calendar_text_search"><?php _e('Text Search', 'mec'); ?></label>
180
  <select class="mec-col-12" name="mec[sf-options][full_calendar][text_search][type]" id="mec_sf_full_calendar_text_search">
181
- <option value="0" <?php if(isset($sf_options_full_calendar['text_search']) and isset($sf_options_full_calendar['text_search']['type']) and $sf_options_full_calendar['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
182
- <option value="text_input" <?php if(isset($sf_options_full_calendar['text_search']) and isset($sf_options_full_calendar['text_search']['type']) and $sf_options_full_calendar['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
183
  </select>
184
  </div>
185
  </div>
@@ -188,45 +188,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
188
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_monthly_view_search_form_options_container">
189
  <?php $sf_options_monthly_view = isset($sf_options['monthly_view']) ? $sf_options['monthly_view'] : array(); ?>
190
  <div class="mec-form-row">
191
- <label class="mec-col-12" for="mec_sf_monthly_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
192
  <select class="mec-col-12" name="mec[sf-options][monthly_view][category][type]" id="mec_sf_monthly_view_category">
193
- <option value="0" <?php if(isset($sf_options_monthly_view['category']) and isset($sf_options_monthly_view['category']['type']) and $sf_options_monthly_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
194
- <option value="dropdown" <?php if(isset($sf_options_monthly_view['category']) and isset($sf_options_monthly_view['category']['type']) and $sf_options_monthly_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
195
  </select>
196
  </div>
197
  <div class="mec-form-row">
198
- <label class="mec-col-12" for="mec_sf_monthly_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
199
  <select class="mec-col-12" name="mec[sf-options][monthly_view][location][type]" id="mec_sf_monthly_view_location">
200
- <option value="0" <?php if(isset($sf_options_monthly_view['location']) and isset($sf_options_monthly_view['location']['type']) and $sf_options_monthly_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
201
- <option value="dropdown" <?php if(isset($sf_options_monthly_view['location']) and isset($sf_options_monthly_view['location']['type']) and $sf_options_monthly_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
202
  </select>
203
  </div>
204
  <div class="mec-form-row">
205
- <label class="mec-col-12" for="mec_sf_monthly_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
206
  <select class="mec-col-12" name="mec[sf-options][monthly_view][organizer][type]" id="mec_sf_monthly_view_organizer">
207
- <option value="0" <?php if(isset($sf_options_monthly_view['organizer']) and isset($sf_options_monthly_view['organizer']['type']) and $sf_options_monthly_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
208
- <option value="dropdown" <?php if(isset($sf_options_monthly_view['organizer']) and isset($sf_options_monthly_view['organizer']['type']) and $sf_options_monthly_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
209
  </select>
210
  </div>
211
  <div class="mec-form-row">
212
- <label class="mec-col-12" for="mec_sf_monthly_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
213
  <select class="mec-col-12" name="mec[sf-options][monthly_view][label][type]" id="mec_sf_monthly_view_label">
214
- <option value="0" <?php if(isset($sf_options_monthly_view['label']) and isset($sf_options_monthly_view['label']['type']) and $sf_options_monthly_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
215
- <option value="dropdown" <?php if(isset($sf_options_monthly_view['label']) and isset($sf_options_monthly_view['label']['type']) and $sf_options_monthly_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
216
  </select>
217
  </div>
218
  <div class="mec-form-row">
219
- <label class="mec-col-12" for="mec_sf_monthly_view_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
220
  <select class="mec-col-12" name="mec[sf-options][monthly_view][month_filter][type]" id="mec_sf_monthly_view_month_filter">
221
- <option value="0" <?php if(isset($sf_options_monthly_view['month_filter']) and isset($sf_options_monthly_view['month_filter']['type']) and $sf_options_monthly_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
222
- <option value="dropdown" <?php if(isset($sf_options_monthly_view['month_filter']) and isset($sf_options_monthly_view['month_filter']['type']) and $sf_options_monthly_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
223
  </select>
224
  </div>
225
  <div class="mec-form-row">
226
- <label class="mec-col-12" for="mec_sf_monthly_view_text_search"><?php _e('Text Search', 'mec'); ?></label>
227
  <select class="mec-col-12" name="mec[sf-options][monthly_view][text_search][type]" id="mec_sf_monthly_view_text_search">
228
- <option value="0" <?php if(isset($sf_options_monthly_view['text_search']) and isset($sf_options_monthly_view['text_search']['type']) and $sf_options_monthly_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
229
- <option value="text_input" <?php if(isset($sf_options_monthly_view['text_search']) and isset($sf_options_monthly_view['text_search']['type']) and $sf_options_monthly_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
230
  </select>
231
  </div>
232
  </div>
@@ -235,45 +235,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
235
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_yearly_view_search_form_options_container">
236
  <?php $sf_options_yearly_view = isset($sf_options['yearly_view']) ? $sf_options['yearly_view'] : array(); ?>
237
  <div class="mec-form-row">
238
- <label class="mec-col-12" for="mec_sf_yearly_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
239
  <select class="mec-col-12" name="mec[sf-options][yearly_view][category][type]" id="mec_sf_yearly_view_category">
240
- <option value="0" <?php if(isset($sf_options_yearly_view['category']) and isset($sf_options_yearly_view['category']['type']) and $sf_options_yearly_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
241
- <option value="dropdown" <?php if(isset($sf_options_yearly_view['category']) and isset($sf_options_yearly_view['category']['type']) and $sf_options_yearly_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
242
  </select>
243
  </div>
244
  <div class="mec-form-row">
245
- <label class="mec-col-12" for="mec_sf_yearly_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
246
  <select class="mec-col-12" name="mec[sf-options][yearly_view][location][type]" id="mec_sf_yearly_view_location">
247
- <option value="0" <?php if(isset($sf_options_yearly_view['location']) and isset($sf_options_yearly_view['location']['type']) and $sf_options_yearly_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
248
- <option value="dropdown" <?php if(isset($sf_options_yearly_view['location']) and isset($sf_options_yearly_view['location']['type']) and $sf_options_yearly_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
249
  </select>
250
  </div>
251
  <div class="mec-form-row">
252
- <label class="mec-col-12" for="mec_sf_yearly_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
253
  <select class="mec-col-12" name="mec[sf-options][yearly_view][organizer][type]" id="mec_sf_yearly_view_organizer">
254
- <option value="0" <?php if(isset($sf_options_yearly_view['organizer']) and isset($sf_options_yearly_view['organizer']['type']) and $sf_options_yearly_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
255
- <option value="dropdown" <?php if(isset($sf_options_yearly_view['organizer']) and isset($sf_options_yearly_view['organizer']['type']) and $sf_options_yearly_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
256
  </select>
257
  </div>
258
  <div class="mec-form-row">
259
- <label class="mec-col-12" for="mec_sf_yearly_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
260
  <select class="mec-col-12" name="mec[sf-options][yearly_view][label][type]" id="mec_sf_yearly_view_label">
261
- <option value="0" <?php if(isset($sf_options_yearly_view['label']) and isset($sf_options_yearly_view['label']['type']) and $sf_options_yearly_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
262
- <option value="dropdown" <?php if(isset($sf_options_yearly_view['label']) and isset($sf_options_yearly_view['label']['type']) and $sf_options_yearly_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
263
  </select>
264
  </div>
265
  <div class="mec-form-row">
266
- <label class="mec-col-12" for="mec_sf_yearly_view_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
267
  <select class="mec-col-12" name="mec[sf-options][yearly_view][month_filter][type]" id="mec_sf_yearly_view_month_filter">
268
- <option value="0" <?php if(isset($sf_options_yearly_view['month_filter']) and isset($sf_options_yearly_view['month_filter']['type']) and $sf_options_yearly_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
269
- <option value="dropdown" <?php if(isset($sf_options_yearly_view['month_filter']) and isset($sf_options_yearly_view['month_filter']['type']) and $sf_options_yearly_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
270
  </select>
271
  </div>
272
  <div class="mec-form-row">
273
- <label class="mec-col-12" for="mec_sf_yearly_view_text_search"><?php _e('Text Search', 'mec'); ?></label>
274
  <select class="mec-col-12" name="mec[sf-options][yearly_view][text_search][type]" id="mec_sf_yearly_view_text_search">
275
- <option value="0" <?php if(isset($sf_options_yearly_view['text_search']) and isset($sf_options_yearly_view['text_search']['type']) and $sf_options_yearly_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
276
- <option value="text_input" <?php if(isset($sf_options_yearly_view['text_search']) and isset($sf_options_yearly_view['text_search']['type']) and $sf_options_yearly_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
277
  </select>
278
  </div>
279
  </div>
@@ -282,38 +282,38 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
282
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_map_search_form_options_container">
283
  <?php $sf_options_map = isset($sf_options['map']) ? $sf_options['map'] : array(); ?>
284
  <div class="mec-form-row">
285
- <label class="mec-col-12" for="mec_sf_map_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
286
  <select class="mec-col-12" name="mec[sf-options][map][category][type]" id="mec_sf_map_category">
287
- <option value="0" <?php if(isset($sf_options_map['category']) and isset($sf_options_map['category']['type']) and $sf_options_map['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
288
- <option value="dropdown" <?php if(isset($sf_options_map['category']) and isset($sf_options_map['category']['type']) and $sf_options_map['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
289
  </select>
290
  </div>
291
  <div class="mec-form-row">
292
- <label class="mec-col-12" for="mec_sf_map_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
293
  <select class="mec-col-12" name="mec[sf-options][map][location][type]" id="mec_sf_map_location">
294
- <option value="0" <?php if(isset($sf_options_map['location']) and isset($sf_options_map['location']['type']) and $sf_options_map['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
295
- <option value="dropdown" <?php if(isset($sf_options_map['location']) and isset($sf_options_map['location']['type']) and $sf_options_map['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
296
  </select>
297
  </div>
298
  <div class="mec-form-row">
299
- <label class="mec-col-12" for="mec_sf_map_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
300
  <select class="mec-col-12" name="mec[sf-options][map][organizer][type]" id="mec_sf_map_organizer">
301
- <option value="0" <?php if(isset($sf_options_map['organizer']) and isset($sf_options_map['organizer']['type']) and $sf_options_map['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
302
- <option value="dropdown" <?php if(isset($sf_options_map['organizer']) and isset($sf_options_map['organizer']['type']) and $sf_options_map['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
303
  </select>
304
  </div>
305
  <div class="mec-form-row">
306
- <label class="mec-col-12" for="mec_sf_map_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
307
  <select class="mec-col-12" name="mec[sf-options][map][label][type]" id="mec_sf_map_label">
308
- <option value="0" <?php if(isset($sf_options_map['label']) and isset($sf_options_map['label']['type']) and $sf_options_map['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
309
- <option value="dropdown" <?php if(isset($sf_options_map['label']) and isset($sf_options_map['label']['type']) and $sf_options_map['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
310
  </select>
311
  </div>
312
  <div class="mec-form-row">
313
- <label class="mec-col-12" for="mec_sf_map_text_search"><?php _e('Text Search', 'mec'); ?></label>
314
  <select class="mec-col-12" name="mec[sf-options][map][text_search][type]" id="mec_sf_map_text_search">
315
- <option value="0" <?php if(isset($sf_options_map['text_search']) and isset($sf_options_map['text_search']['type']) and $sf_options_map['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
316
- <option value="text_input" <?php if(isset($sf_options_map['text_search']) and isset($sf_options_map['text_search']['type']) and $sf_options_map['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
317
  </select>
318
  </div>
319
  </div>
@@ -322,45 +322,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
322
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_daily_view_search_form_options_container">
323
  <?php $sf_options_daily_view = isset($sf_options['daily_view']) ? $sf_options['daily_view'] : array(); ?>
324
  <div class="mec-form-row">
325
- <label class="mec-col-12" for="mec_sf_daily_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
326
  <select class="mec-col-12" name="mec[sf-options][daily_view][category][type]" id="mec_sf_daily_view_category">
327
- <option value="0" <?php if(isset($sf_options_daily_view['category']) and isset($sf_options_daily_view['category']['type']) and $sf_options_daily_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
328
- <option value="dropdown" <?php if(isset($sf_options_daily_view['category']) and isset($sf_options_daily_view['category']['type']) and $sf_options_daily_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
329
  </select>
330
  </div>
331
  <div class="mec-form-row">
332
- <label class="mec-col-12" for="mec_sf_daily_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
333
  <select class="mec-col-12" name="mec[sf-options][daily_view][location][type]" id="mec_sf_daily_view_location">
334
- <option value="0" <?php if(isset($sf_options_daily_view['location']) and isset($sf_options_daily_view['location']['type']) and $sf_options_daily_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
335
- <option value="dropdown" <?php if(isset($sf_options_daily_view['location']) and isset($sf_options_daily_view['location']['type']) and $sf_options_daily_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
336
  </select>
337
  </div>
338
  <div class="mec-form-row">
339
- <label class="mec-col-12" for="mec_sf_daily_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
340
  <select class="mec-col-12" name="mec[sf-options][daily_view][organizer][type]" id="mec_sf_daily_view_organizer">
341
- <option value="0" <?php if(isset($sf_options_daily_view['organizer']) and isset($sf_options_daily_view['organizer']['type']) and $sf_options_daily_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
342
- <option value="dropdown" <?php if(isset($sf_options_daily_view['organizer']) and isset($sf_options_daily_view['organizer']['type']) and $sf_options_daily_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
343
  </select>
344
  </div>
345
  <div class="mec-form-row">
346
- <label class="mec-col-12" for="mec_sf_daily_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
347
  <select class="mec-col-12" name="mec[sf-options][daily_view][label][type]" id="mec_sf_daily_view_label">
348
- <option value="0" <?php if(isset($sf_options_daily_view['label']) and isset($sf_options_daily_view['label']['type']) and $sf_options_daily_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
349
- <option value="dropdown" <?php if(isset($sf_options_daily_view['label']) and isset($sf_options_daily_view['label']['type']) and $sf_options_daily_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
350
  </select>
351
  </div>
352
  <div class="mec-form-row">
353
- <label class="mec-col-12" for="mec_sf_daily_view_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
354
  <select class="mec-col-12" name="mec[sf-options][daily_view][month_filter][type]" id="mec_sf_daily_view_month_filter">
355
- <option value="0" <?php if(isset($sf_options_daily_view['month_filter']) and isset($sf_options_daily_view['month_filter']['type']) and $sf_options_daily_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
356
- <option value="dropdown" <?php if(isset($sf_options_daily_view['month_filter']) and isset($sf_options_daily_view['month_filter']['type']) and $sf_options_daily_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
357
  </select>
358
  </div>
359
  <div class="mec-form-row">
360
- <label class="mec-col-12" for="mec_sf_daily_view_text_search"><?php _e('Text Search', 'mec'); ?></label>
361
  <select class="mec-col-12" name="mec[sf-options][daily_view][text_search][type]" id="mec_sf_daily_view_text_search">
362
- <option value="0" <?php if(isset($sf_options_daily_view['text_search']) and isset($sf_options_daily_view['text_search']['type']) and $sf_options_daily_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
363
- <option value="text_input" <?php if(isset($sf_options_daily_view['text_search']) and isset($sf_options_daily_view['text_search']['type']) and $sf_options_daily_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
364
  </select>
365
  </div>
366
  </div>
@@ -369,45 +369,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
369
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_weekly_view_search_form_options_container">
370
  <?php $sf_options_weekly_view = isset($sf_options['weekly_view']) ? $sf_options['weekly_view'] : array(); ?>
371
  <div class="mec-form-row">
372
- <label class="mec-col-12" for="mec_sf_weekly_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
373
  <select class="mec-col-12" name="mec[sf-options][weekly_view][category][type]" id="mec_sf_weekly_view_category">
374
- <option value="0" <?php if(isset($sf_options_weekly_view['category']) and isset($sf_options_weekly_view['category']['type']) and $sf_options_weekly_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
375
- <option value="dropdown" <?php if(isset($sf_options_weekly_view['category']) and isset($sf_options_weekly_view['category']['type']) and $sf_options_weekly_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
376
  </select>
377
  </div>
378
  <div class="mec-form-row">
379
- <label class="mec-col-12" for="mec_sf_weekly_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
380
  <select class="mec-col-12" name="mec[sf-options][weekly_view][location][type]" id="mec_sf_weekly_view_location">
381
- <option value="0" <?php if(isset($sf_options_weekly_view['location']) and isset($sf_options_weekly_view['location']['type']) and $sf_options_weekly_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
382
- <option value="dropdown" <?php if(isset($sf_options_weekly_view['location']) and isset($sf_options_weekly_view['location']['type']) and $sf_options_weekly_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
383
  </select>
384
  </div>
385
  <div class="mec-form-row">
386
- <label class="mec-col-12" for="mec_sf_weekly_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
387
  <select class="mec-col-12" name="mec[sf-options][weekly_view][organizer][type]" id="mec_sf_weekly_view_organizer">
388
- <option value="0" <?php if(isset($sf_options_weekly_view['organizer']) and isset($sf_options_weekly_view['organizer']['type']) and $sf_options_weekly_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
389
- <option value="dropdown" <?php if(isset($sf_options_weekly_view['organizer']) and isset($sf_options_weekly_view['organizer']['type']) and $sf_options_weekly_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
390
  </select>
391
  </div>
392
  <div class="mec-form-row">
393
- <label class="mec-col-12" for="mec_sf_weekly_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
394
  <select class="mec-col-12" name="mec[sf-options][weekly_view][label][type]" id="mec_sf_weekly_view_label">
395
- <option value="0" <?php if(isset($sf_options_weekly_view['label']) and isset($sf_options_weekly_view['label']['type']) and $sf_options_weekly_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
396
- <option value="dropdown" <?php if(isset($sf_options_weekly_view['label']) and isset($sf_options_weekly_view['label']['type']) and $sf_options_weekly_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
397
  </select>
398
  </div>
399
  <div class="mec-form-row">
400
- <label class="mec-col-12" for="mec_sf_weekly_view_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
401
  <select class="mec-col-12" name="mec[sf-options][weekly_view][month_filter][type]" id="mec_sf_weekly_view_month_filter">
402
- <option value="0" <?php if(isset($sf_options_weekly_view['month_filter']) and isset($sf_options_weekly_view['month_filter']['type']) and $sf_options_weekly_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
403
- <option value="dropdown" <?php if(isset($sf_options_weekly_view['month_filter']) and isset($sf_options_weekly_view['month_filter']['type']) and $sf_options_weekly_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
404
  </select>
405
  </div>
406
  <div class="mec-form-row">
407
- <label class="mec-col-12" for="mec_sf_weekly_view_text_search"><?php _e('Text Search', 'mec'); ?></label>
408
  <select class="mec-col-12" name="mec[sf-options][weekly_view][text_search][type]" id="mec_sf_weekly_view_text_search">
409
- <option value="0" <?php if(isset($sf_options_weekly_view['text_search']) and isset($sf_options_weekly_view['text_search']['type']) and $sf_options_weekly_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
410
- <option value="text_input" <?php if(isset($sf_options_weekly_view['text_search']) and isset($sf_options_weekly_view['text_search']['type']) and $sf_options_weekly_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
411
  </select>
412
  </div>
413
  </div>
@@ -416,45 +416,45 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
416
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_timetable_search_form_options_container">
417
  <?php $sf_options_timetable = isset($sf_options['timetable']) ? $sf_options['timetable'] : array(); ?>
418
  <div class="mec-form-row">
419
- <label class="mec-col-12" for="mec_sf_timetable_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'mec')); ?></label>
420
  <select class="mec-col-12" name="mec[sf-options][timetable][category][type]" id="mec_sf_timetable_category">
421
- <option value="0" <?php if(isset($sf_options_timetable['category']) and isset($sf_options_timetable['category']['type']) and $sf_options_timetable['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
422
- <option value="dropdown" <?php if(isset($sf_options_timetable['category']) and isset($sf_options_timetable['category']['type']) and $sf_options_timetable['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
423
  </select>
424
  </div>
425
  <div class="mec-form-row">
426
- <label class="mec-col-12" for="mec_sf_timetable_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></label>
427
  <select class="mec-col-12" name="mec[sf-options][timetable][location][type]" id="mec_sf_timetable_location">
428
- <option value="0" <?php if(isset($sf_options_timetable['location']) and isset($sf_options_timetable['location']['type']) and $sf_options_timetable['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
429
- <option value="dropdown" <?php if(isset($sf_options_timetable['location']) and isset($sf_options_timetable['location']['type']) and $sf_options_timetable['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
430
  </select>
431
  </div>
432
  <div class="mec-form-row">
433
- <label class="mec-col-12" for="mec_sf_timetable_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></label>
434
  <select class="mec-col-12" name="mec[sf-options][timetable][organizer][type]" id="mec_sf_timetable_organizer">
435
- <option value="0" <?php if(isset($sf_options_timetable['organizer']) and isset($sf_options_timetable['organizer']['type']) and $sf_options_timetable['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
436
- <option value="dropdown" <?php if(isset($sf_options_timetable['organizer']) and isset($sf_options_timetable['organizer']['type']) and $sf_options_timetable['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
437
  </select>
438
  </div>
439
  <div class="mec-form-row">
440
- <label class="mec-col-12" for="mec_sf_timetable_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'mec')); ?></label>
441
  <select class="mec-col-12" name="mec[sf-options][timetable][label][type]" id="mec_sf_timetable_label">
442
- <option value="0" <?php if(isset($sf_options_timetable['label']) and isset($sf_options_timetable['label']['type']) and $sf_options_timetable['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
443
- <option value="dropdown" <?php if(isset($sf_options_timetable['label']) and isset($sf_options_timetable['label']['type']) and $sf_options_timetable['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
444
  </select>
445
  </div>
446
  <div class="mec-form-row">
447
- <label class="mec-col-12" for="mec_sf_timetable_month_filter"><?php _e('Month Filter', 'mec'); ?></label>
448
  <select class="mec-col-12" name="mec[sf-options][timetable][month_filter][type]" id="mec_sf_timetable_month_filter">
449
- <option value="0" <?php if(isset($sf_options_timetable['month_filter']) and isset($sf_options_timetable['month_filter']['type']) and $sf_options_timetable['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
450
- <option value="dropdown" <?php if(isset($sf_options_timetable['month_filter']) and isset($sf_options_timetable['month_filter']['type']) and $sf_options_timetable['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'mec'); ?></option>
451
  </select>
452
  </div>
453
  <div class="mec-form-row">
454
- <label class="mec-col-12" for="mec_sf_timetable_text_search"><?php _e('Text Search', 'mec'); ?></label>
455
  <select class="mec-col-12" name="mec[sf-options][timetable][text_search][type]" id="mec_sf_timetable_text_search">
456
- <option value="0" <?php if(isset($sf_options_timetable['text_search']) and isset($sf_options_timetable['text_search']['type']) and $sf_options_timetable['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
457
- <option value="text_input" <?php if(isset($sf_options_timetable['text_search']) and isset($sf_options_timetable['text_search']['type']) and $sf_options_timetable['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'mec'); ?></option>
458
  </select>
459
  </div>
460
  </div>
@@ -462,37 +462,37 @@ $sf_options = get_post_meta($post->ID, 'sf-options', true);
462
  <!-- Masonry View -->
463
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_masonry_search_form_options_container">
464
  <?php $sf_options_masonry = isset($sf_options['masonry']) ? $sf_options['masonry'] : array(); ?>
465
- <p><?php _e('No Search Options', 'mec'); ?></p>
466
  </div>
467
 
468
  <!-- Cover -->
469
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_cover_search_form_options_container">
470
  <?php $sf_options_cover = isset($sf_options['cover']) ? $sf_options['cover'] : array(); ?>
471
- <p><?php _e('No Search Options', 'mec'); ?></p>
472
  </div>
473
 
474
  <!-- Countdown -->
475
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_countdown_search_form_options_container">
476
  <?php $sf_options_countdown = isset($sf_options['countdown']) ? $sf_options['countdown'] : array(); ?>
477
- <p><?php _e('No Search Options', 'mec'); ?></p>
478
  </div>
479
 
480
  <!-- Available Spot -->
481
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_available_spot_search_form_options_container">
482
  <?php $sf_options_available_spot = isset($sf_options['available_spot']) ? $sf_options['available_spot'] : array(); ?>
483
- <p><?php _e('No Search Options', 'mec'); ?></p>
484
  </div>
485
 
486
  <!-- Carousel View -->
487
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_carousel_search_form_options_container">
488
  <?php $sf_options_carousel = isset($sf_options['carousel']) ? $sf_options['carousel'] : array(); ?>
489
- <p><?php _e('No Search Options', 'mec'); ?></p>
490
  </div>
491
 
492
  <!-- Slider -->
493
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_slider_search_form_options_container">
494
  <?php $sf_options_countdown = isset($sf_options['slider']) ? $sf_options['slider'] : array(); ?>
495
- <p><?php _e('No Search Options', 'mec'); ?></p>
496
  </div>
497
 
498
  <!-- Custom Skins -->
10
  <div class="mec-form-row mec-switcher">
11
  <?php $sf_status = get_post_meta($post->ID, 'sf_status', true); ?>
12
  <div class="mec-col-8">
13
+ <label><?php _e('Show Search Form', 'modern-events-calendar-lite'); ?></label>
14
  </div>
15
  <div class="mec-col-4">
16
  <input type="hidden" name="mec[sf_status]" value="0" />
28
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_list_search_form_options_container">
29
  <?php $sf_options_list = isset($sf_options['list']) ? $sf_options['list'] : array(); ?>
30
  <div class="mec-form-row">
31
+ <label class="mec-col-12" for="mec_sf_list_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
32
  <select class="mec-col-12" name="mec[sf-options][list][category][type]" id="mec_sf_list_category">
33
+ <option value="0" <?php if(isset($sf_options_list['category']) and isset($sf_options_list['category']['type']) and $sf_options_list['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
34
+ <option value="dropdown" <?php if(isset($sf_options_list['category']) and isset($sf_options_list['category']['type']) and $sf_options_list['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
35
  </select>
36
  </div>
37
  <div class="mec-form-row">
38
+ <label class="mec-col-12" for="mec_sf_list_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
39
  <select class="mec-col-12" name="mec[sf-options][list][location][type]" id="mec_sf_list_location">
40
+ <option value="0" <?php if(isset($sf_options_list['location']) and isset($sf_options_list['location']['type']) and $sf_options_list['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
41
+ <option value="dropdown" <?php if(isset($sf_options_list['location']) and isset($sf_options_list['location']['type']) and $sf_options_list['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
42
  </select>
43
  </div>
44
  <div class="mec-form-row">
45
+ <label class="mec-col-12" for="mec_sf_list_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
46
  <select class="mec-col-12" name="mec[sf-options][list][organizer][type]" id="mec_sf_list_organizer">
47
+ <option value="0" <?php if(isset($sf_options_list['organizer']) and isset($sf_options_list['organizer']['type']) and $sf_options_list['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
48
+ <option value="dropdown" <?php if(isset($sf_options_list['organizer']) and isset($sf_options_list['organizer']['type']) and $sf_options_list['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
49
  </select>
50
  </div>
51
  <div class="mec-form-row">
52
+ <label class="mec-col-12" for="mec_sf_list_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
53
  <select class="mec-col-12" name="mec[sf-options][list][label][type]" id="mec_sf_list_label">
54
+ <option value="0" <?php if(isset($sf_options_list['label']) and isset($sf_options_list['label']['type']) and $sf_options_list['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
55
+ <option value="dropdown" <?php if(isset($sf_options_list['label']) and isset($sf_options_list['label']['type']) and $sf_options_list['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
56
  </select>
57
  </div>
58
  <div class="mec-form-row">
59
+ <label class="mec-col-12" for="mec_sf_list_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
60
  <select class="mec-col-12" name="mec[sf-options][list][month_filter][type]" id="mec_sf_list_month_filter">
61
+ <option value="0" <?php if(isset($sf_options_list['month_filter']) and isset($sf_options_list['month_filter']['type']) and $sf_options_list['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
62
+ <option value="dropdown" <?php if(isset($sf_options_list['month_filter']) and isset($sf_options_list['month_filter']['type']) and $sf_options_list['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
63
  </select>
64
  </div>
65
  <div class="mec-form-row">
66
+ <label class="mec-col-12" for="mec_sf_list_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
67
  <select class="mec-col-12" name="mec[sf-options][list][text_search][type]" id="mec_sf_list_text_search">
68
+ <option value="0" <?php if(isset($sf_options_list['text_search']) and isset($sf_options_list['text_search']['type']) and $sf_options_list['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
69
+ <option value="text_input" <?php if(isset($sf_options_list['text_search']) and isset($sf_options_list['text_search']['type']) and $sf_options_list['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
70
  </select>
71
  </div>
72
  </div>
75
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_grid_search_form_options_container">
76
  <?php $sf_options_grid = isset($sf_options['grid']) ? $sf_options['grid'] : array(); ?>
77
  <div class="mec-form-row">
78
+ <label class="mec-col-12" for="mec_sf_grid_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
79
  <select class="mec-col-12" name="mec[sf-options][grid][category][type]" id="mec_sf_grid_category">
80
+ <option value="0" <?php if(isset($sf_options_grid['category']) and isset($sf_options_grid['category']['type']) and $sf_options_grid['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
81
+ <option value="dropdown" <?php if(isset($sf_options_grid['category']) and isset($sf_options_grid['category']['type']) and $sf_options_grid['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
82
  </select>
83
  </div>
84
  <div class="mec-form-row">
85
+ <label class="mec-col-12" for="mec_sf_grid_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
86
  <select class="mec-col-12" name="mec[sf-options][grid][location][type]" id="mec_sf_grid_location">
87
+ <option value="0" <?php if(isset($sf_options_grid['location']) and isset($sf_options_grid['location']['type']) and $sf_options_grid['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
88
+ <option value="dropdown" <?php if(isset($sf_options_grid['location']) and isset($sf_options_grid['location']['type']) and $sf_options_grid['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
89
  </select>
90
  </div>
91
  <div class="mec-form-row">
92
+ <label class="mec-col-12" for="mec_sf_grid_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
93
  <select class="mec-col-12" name="mec[sf-options][grid][organizer][type]" id="mec_sf_grid_organizer">
94
+ <option value="0" <?php if(isset($sf_options_grid['organizer']) and isset($sf_options_grid['organizer']['type']) and $sf_options_grid['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
95
+ <option value="dropdown" <?php if(isset($sf_options_grid['organizer']) and isset($sf_options_grid['organizer']['type']) and $sf_options_grid['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
96
  </select>
97
  </div>
98
  <div class="mec-form-row">
99
+ <label class="mec-col-12" for="mec_sf_grid_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
100
  <select class="mec-col-12" name="mec[sf-options][grid][label][type]" id="mec_sf_grid_label">
101
+ <option value="0" <?php if(isset($sf_options_grid['label']) and isset($sf_options_grid['label']['type']) and $sf_options_grid['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
102
+ <option value="dropdown" <?php if(isset($sf_options_grid['label']) and isset($sf_options_grid['label']['type']) and $sf_options_grid['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
103
  </select>
104
  </div>
105
  <div class="mec-form-row">
106
+ <label class="mec-col-12" for="mec_sf_grid_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
107
  <select class="mec-col-12" name="mec[sf-options][grid][month_filter][type]" id="mec_sf_grid_month_filter">
108
+ <option value="0" <?php if(isset($sf_options_grid['month_filter']) and isset($sf_options_grid['month_filter']['type']) and $sf_options_grid['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
109
+ <option value="dropdown" <?php if(isset($sf_options_grid['month_filter']) and isset($sf_options_grid['month_filter']['type']) and $sf_options_grid['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
110
  </select>
111
  </div>
112
  <div class="mec-form-row">
113
+ <label class="mec-col-12" for="mec_sf_grid_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
114
  <select class="mec-col-12" name="mec[sf-options][grid][text_search][type]" id="mec_sf_grid_text_search">
115
+ <option value="0" <?php if(isset($sf_options_grid['text_search']) and isset($sf_options_grid['text_search']['type']) and $sf_options_grid['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
116
+ <option value="text_input" <?php if(isset($sf_options_grid['text_search']) and isset($sf_options_grid['text_search']['type']) and $sf_options_grid['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
117
  </select>
118
  </div>
119
  </div>
122
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_agenda_search_form_options_container">
123
  <?php $sf_options_agenda = isset($sf_options['agenda']) ? $sf_options['agenda'] : array(); ?>
124
  <div class="mec-form-row">
125
+ <label class="mec-col-12" for="mec_sf_agenda_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
126
  <select class="mec-col-12" name="mec[sf-options][agenda][category][type]" id="mec_sf_agenda_category">
127
+ <option value="0" <?php if(isset($sf_options_agenda['category']) and isset($sf_options_agenda['category']['type']) and $sf_options_agenda['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
128
+ <option value="dropdown" <?php if(isset($sf_options_agenda['category']) and isset($sf_options_agenda['category']['type']) and $sf_options_agenda['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
129
  </select>
130
  </div>
131
  <div class="mec-form-row">
132
+ <label class="mec-col-12" for="mec_sf_agenda_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
133
  <select class="mec-col-12" name="mec[sf-options][agenda][location][type]" id="mec_sf_agenda_location">
134
+ <option value="0" <?php if(isset($sf_options_agenda['location']) and isset($sf_options_agenda['location']['type']) and $sf_options_agenda['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
135
+ <option value="dropdown" <?php if(isset($sf_options_agenda['location']) and isset($sf_options_agenda['location']['type']) and $sf_options_agenda['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
136
  </select>
137
  </div>
138
  <div class="mec-form-row">
139
+ <label class="mec-col-12" for="mec_sf_agenda_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
140
  <select class="mec-col-12" name="mec[sf-options][agenda][organizer][type]" id="mec_sf_agenda_organizer">
141
+ <option value="0" <?php if(isset($sf_options_agenda['organizer']) and isset($sf_options_agenda['organizer']['type']) and $sf_options_agenda['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
142
+ <option value="dropdown" <?php if(isset($sf_options_agenda['organizer']) and isset($sf_options_agenda['organizer']['type']) and $sf_options_agenda['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
143
  </select>
144
  </div>
145
  <div class="mec-form-row">
146
+ <label class="mec-col-12" for="mec_sf_agenda_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
147
  <select class="mec-col-12" name="mec[sf-options][agenda][label][type]" id="mec_sf_agenda_label">
148
+ <option value="0" <?php if(isset($sf_options_agenda['label']) and isset($sf_options_agenda['label']['type']) and $sf_options_agenda['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
149
+ <option value="dropdown" <?php if(isset($sf_options_agenda['label']) and isset($sf_options_agenda['label']['type']) and $sf_options_agenda['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
150
  </select>
151
  </div>
152
  <div class="mec-form-row">
153
+ <label class="mec-col-12" for="mec_sf_agenda_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
154
  <select class="mec-col-12" name="mec[sf-options][agenda][month_filter][type]" id="mec_sf_agenda_month_filter">
155
+ <option value="0" <?php if(isset($sf_options_agenda['month_filter']) and isset($sf_options_agenda['month_filter']['type']) and $sf_options_agenda['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
156
+ <option value="dropdown" <?php if(isset($sf_options_agenda['month_filter']) and isset($sf_options_agenda['month_filter']['type']) and $sf_options_agenda['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
157
  </select>
158
  </div>
159
  <div class="mec-form-row">
160
+ <label class="mec-col-12" for="mec_sf_agenda_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
161
  <select class="mec-col-12" name="mec[sf-options][agenda][text_search][type]" id="mec_sf_agenda_text_search">
162
+ <option value="0" <?php if(isset($sf_options_agenda['text_search']) and isset($sf_options_agenda['text_search']['type']) and $sf_options_agenda['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
163
+ <option value="text_input" <?php if(isset($sf_options_agenda['text_search']) and isset($sf_options_agenda['text_search']['type']) and $sf_options_agenda['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
164
  </select>
165
  </div>
166
  </div>
169
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_full_calendar_search_form_options_container">
170
  <?php $sf_options_full_calendar = isset($sf_options['full_calendar']) ? $sf_options['full_calendar'] : array(); ?>
171
  <div class="mec-form-row">
172
+ <label class="mec-col-12" for="mec_sf_full_calendar_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
173
  <select class="mec-col-12" name="mec[sf-options][full_calendar][month_filter][type]" id="mec_sf_full_calendar_month_filter">
174
+ <option value="0" <?php if(isset($sf_options_full_calendar['month_filter']) and isset($sf_options_full_calendar['month_filter']['type']) and $sf_options_full_calendar['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
175
+ <option value="dropdown" <?php if(isset($sf_options_full_calendar['month_filter']) and isset($sf_options_full_calendar['month_filter']['type']) and $sf_options_full_calendar['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
176
  </select>
177
  </div>
178
  <div class="mec-form-row">
179
+ <label class="mec-col-12" for="mec_sf_full_calendar_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
180
  <select class="mec-col-12" name="mec[sf-options][full_calendar][text_search][type]" id="mec_sf_full_calendar_text_search">
181
+ <option value="0" <?php if(isset($sf_options_full_calendar['text_search']) and isset($sf_options_full_calendar['text_search']['type']) and $sf_options_full_calendar['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
182
+ <option value="text_input" <?php if(isset($sf_options_full_calendar['text_search']) and isset($sf_options_full_calendar['text_search']['type']) and $sf_options_full_calendar['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
183
  </select>
184
  </div>
185
  </div>
188
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_monthly_view_search_form_options_container">
189
  <?php $sf_options_monthly_view = isset($sf_options['monthly_view']) ? $sf_options['monthly_view'] : array(); ?>
190
  <div class="mec-form-row">
191
+ <label class="mec-col-12" for="mec_sf_monthly_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
192
  <select class="mec-col-12" name="mec[sf-options][monthly_view][category][type]" id="mec_sf_monthly_view_category">
193
+ <option value="0" <?php if(isset($sf_options_monthly_view['category']) and isset($sf_options_monthly_view['category']['type']) and $sf_options_monthly_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
194
+ <option value="dropdown" <?php if(isset($sf_options_monthly_view['category']) and isset($sf_options_monthly_view['category']['type']) and $sf_options_monthly_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
195
  </select>
196
  </div>
197
  <div class="mec-form-row">
198
+ <label class="mec-col-12" for="mec_sf_monthly_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
199
  <select class="mec-col-12" name="mec[sf-options][monthly_view][location][type]" id="mec_sf_monthly_view_location">
200
+ <option value="0" <?php if(isset($sf_options_monthly_view['location']) and isset($sf_options_monthly_view['location']['type']) and $sf_options_monthly_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
201
+ <option value="dropdown" <?php if(isset($sf_options_monthly_view['location']) and isset($sf_options_monthly_view['location']['type']) and $sf_options_monthly_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
202
  </select>
203
  </div>
204
  <div class="mec-form-row">
205
+ <label class="mec-col-12" for="mec_sf_monthly_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
206
  <select class="mec-col-12" name="mec[sf-options][monthly_view][organizer][type]" id="mec_sf_monthly_view_organizer">
207
+ <option value="0" <?php if(isset($sf_options_monthly_view['organizer']) and isset($sf_options_monthly_view['organizer']['type']) and $sf_options_monthly_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
208
+ <option value="dropdown" <?php if(isset($sf_options_monthly_view['organizer']) and isset($sf_options_monthly_view['organizer']['type']) and $sf_options_monthly_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
209
  </select>
210
  </div>
211
  <div class="mec-form-row">
212
+ <label class="mec-col-12" for="mec_sf_monthly_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
213
  <select class="mec-col-12" name="mec[sf-options][monthly_view][label][type]" id="mec_sf_monthly_view_label">
214
+ <option value="0" <?php if(isset($sf_options_monthly_view['label']) and isset($sf_options_monthly_view['label']['type']) and $sf_options_monthly_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
215
+ <option value="dropdown" <?php if(isset($sf_options_monthly_view['label']) and isset($sf_options_monthly_view['label']['type']) and $sf_options_monthly_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
216
  </select>
217
  </div>
218
  <div class="mec-form-row">
219
+ <label class="mec-col-12" for="mec_sf_monthly_view_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
220
  <select class="mec-col-12" name="mec[sf-options][monthly_view][month_filter][type]" id="mec_sf_monthly_view_month_filter">
221
+ <option value="0" <?php if(isset($sf_options_monthly_view['month_filter']) and isset($sf_options_monthly_view['month_filter']['type']) and $sf_options_monthly_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
222
+ <option value="dropdown" <?php if(isset($sf_options_monthly_view['month_filter']) and isset($sf_options_monthly_view['month_filter']['type']) and $sf_options_monthly_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
223
  </select>
224
  </div>
225
  <div class="mec-form-row">
226
+ <label class="mec-col-12" for="mec_sf_monthly_view_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
227
  <select class="mec-col-12" name="mec[sf-options][monthly_view][text_search][type]" id="mec_sf_monthly_view_text_search">
228
+ <option value="0" <?php if(isset($sf_options_monthly_view['text_search']) and isset($sf_options_monthly_view['text_search']['type']) and $sf_options_monthly_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
229
+ <option value="text_input" <?php if(isset($sf_options_monthly_view['text_search']) and isset($sf_options_monthly_view['text_search']['type']) and $sf_options_monthly_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
230
  </select>
231
  </div>
232
  </div>
235
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_yearly_view_search_form_options_container">
236
  <?php $sf_options_yearly_view = isset($sf_options['yearly_view']) ? $sf_options['yearly_view'] : array(); ?>
237
  <div class="mec-form-row">
238
+ <label class="mec-col-12" for="mec_sf_yearly_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
239
  <select class="mec-col-12" name="mec[sf-options][yearly_view][category][type]" id="mec_sf_yearly_view_category">
240
+ <option value="0" <?php if(isset($sf_options_yearly_view['category']) and isset($sf_options_yearly_view['category']['type']) and $sf_options_yearly_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
241
+ <option value="dropdown" <?php if(isset($sf_options_yearly_view['category']) and isset($sf_options_yearly_view['category']['type']) and $sf_options_yearly_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
242
  </select>
243
  </div>
244
  <div class="mec-form-row">
245
+ <label class="mec-col-12" for="mec_sf_yearly_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
246
  <select class="mec-col-12" name="mec[sf-options][yearly_view][location][type]" id="mec_sf_yearly_view_location">
247
+ <option value="0" <?php if(isset($sf_options_yearly_view['location']) and isset($sf_options_yearly_view['location']['type']) and $sf_options_yearly_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
248
+ <option value="dropdown" <?php if(isset($sf_options_yearly_view['location']) and isset($sf_options_yearly_view['location']['type']) and $sf_options_yearly_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
249
  </select>
250
  </div>
251
  <div class="mec-form-row">
252
+ <label class="mec-col-12" for="mec_sf_yearly_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
253
  <select class="mec-col-12" name="mec[sf-options][yearly_view][organizer][type]" id="mec_sf_yearly_view_organizer">
254
+ <option value="0" <?php if(isset($sf_options_yearly_view['organizer']) and isset($sf_options_yearly_view['organizer']['type']) and $sf_options_yearly_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
255
+ <option value="dropdown" <?php if(isset($sf_options_yearly_view['organizer']) and isset($sf_options_yearly_view['organizer']['type']) and $sf_options_yearly_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
256
  </select>
257
  </div>
258
  <div class="mec-form-row">
259
+ <label class="mec-col-12" for="mec_sf_yearly_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
260
  <select class="mec-col-12" name="mec[sf-options][yearly_view][label][type]" id="mec_sf_yearly_view_label">
261
+ <option value="0" <?php if(isset($sf_options_yearly_view['label']) and isset($sf_options_yearly_view['label']['type']) and $sf_options_yearly_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
262
+ <option value="dropdown" <?php if(isset($sf_options_yearly_view['label']) and isset($sf_options_yearly_view['label']['type']) and $sf_options_yearly_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
263
  </select>
264
  </div>
265
  <div class="mec-form-row">
266
+ <label class="mec-col-12" for="mec_sf_yearly_view_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
267
  <select class="mec-col-12" name="mec[sf-options][yearly_view][month_filter][type]" id="mec_sf_yearly_view_month_filter">
268
+ <option value="0" <?php if(isset($sf_options_yearly_view['month_filter']) and isset($sf_options_yearly_view['month_filter']['type']) and $sf_options_yearly_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
269
+ <option value="dropdown" <?php if(isset($sf_options_yearly_view['month_filter']) and isset($sf_options_yearly_view['month_filter']['type']) and $sf_options_yearly_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
270
  </select>
271
  </div>
272
  <div class="mec-form-row">
273
+ <label class="mec-col-12" for="mec_sf_yearly_view_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
274
  <select class="mec-col-12" name="mec[sf-options][yearly_view][text_search][type]" id="mec_sf_yearly_view_text_search">
275
+ <option value="0" <?php if(isset($sf_options_yearly_view['text_search']) and isset($sf_options_yearly_view['text_search']['type']) and $sf_options_yearly_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
276
+ <option value="text_input" <?php if(isset($sf_options_yearly_view['text_search']) and isset($sf_options_yearly_view['text_search']['type']) and $sf_options_yearly_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
277
  </select>
278
  </div>
279
  </div>
282
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_map_search_form_options_container">
283
  <?php $sf_options_map = isset($sf_options['map']) ? $sf_options['map'] : array(); ?>
284
  <div class="mec-form-row">
285
+ <label class="mec-col-12" for="mec_sf_map_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
286
  <select class="mec-col-12" name="mec[sf-options][map][category][type]" id="mec_sf_map_category">
287
+ <option value="0" <?php if(isset($sf_options_map['category']) and isset($sf_options_map['category']['type']) and $sf_options_map['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
288
+ <option value="dropdown" <?php if(isset($sf_options_map['category']) and isset($sf_options_map['category']['type']) and $sf_options_map['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
289
  </select>
290
  </div>
291
  <div class="mec-form-row">
292
+ <label class="mec-col-12" for="mec_sf_map_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
293
  <select class="mec-col-12" name="mec[sf-options][map][location][type]" id="mec_sf_map_location">
294
+ <option value="0" <?php if(isset($sf_options_map['location']) and isset($sf_options_map['location']['type']) and $sf_options_map['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
295
+ <option value="dropdown" <?php if(isset($sf_options_map['location']) and isset($sf_options_map['location']['type']) and $sf_options_map['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
296
  </select>
297
  </div>
298
  <div class="mec-form-row">
299
+ <label class="mec-col-12" for="mec_sf_map_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
300
  <select class="mec-col-12" name="mec[sf-options][map][organizer][type]" id="mec_sf_map_organizer">
301
+ <option value="0" <?php if(isset($sf_options_map['organizer']) and isset($sf_options_map['organizer']['type']) and $sf_options_map['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
302
+ <option value="dropdown" <?php if(isset($sf_options_map['organizer']) and isset($sf_options_map['organizer']['type']) and $sf_options_map['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
303
  </select>
304
  </div>
305
  <div class="mec-form-row">
306
+ <label class="mec-col-12" for="mec_sf_map_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
307
  <select class="mec-col-12" name="mec[sf-options][map][label][type]" id="mec_sf_map_label">
308
+ <option value="0" <?php if(isset($sf_options_map['label']) and isset($sf_options_map['label']['type']) and $sf_options_map['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
309
+ <option value="dropdown" <?php if(isset($sf_options_map['label']) and isset($sf_options_map['label']['type']) and $sf_options_map['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
310
  </select>
311
  </div>
312
  <div class="mec-form-row">
313
+ <label class="mec-col-12" for="mec_sf_map_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
314
  <select class="mec-col-12" name="mec[sf-options][map][text_search][type]" id="mec_sf_map_text_search">
315
+ <option value="0" <?php if(isset($sf_options_map['text_search']) and isset($sf_options_map['text_search']['type']) and $sf_options_map['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
316
+ <option value="text_input" <?php if(isset($sf_options_map['text_search']) and isset($sf_options_map['text_search']['type']) and $sf_options_map['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
317
  </select>
318
  </div>
319
  </div>
322
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_daily_view_search_form_options_container">
323
  <?php $sf_options_daily_view = isset($sf_options['daily_view']) ? $sf_options['daily_view'] : array(); ?>
324
  <div class="mec-form-row">
325
+ <label class="mec-col-12" for="mec_sf_daily_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
326
  <select class="mec-col-12" name="mec[sf-options][daily_view][category][type]" id="mec_sf_daily_view_category">
327
+ <option value="0" <?php if(isset($sf_options_daily_view['category']) and isset($sf_options_daily_view['category']['type']) and $sf_options_daily_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
328
+ <option value="dropdown" <?php if(isset($sf_options_daily_view['category']) and isset($sf_options_daily_view['category']['type']) and $sf_options_daily_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
329
  </select>
330
  </div>
331
  <div class="mec-form-row">
332
+ <label class="mec-col-12" for="mec_sf_daily_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
333
  <select class="mec-col-12" name="mec[sf-options][daily_view][location][type]" id="mec_sf_daily_view_location">
334
+ <option value="0" <?php if(isset($sf_options_daily_view['location']) and isset($sf_options_daily_view['location']['type']) and $sf_options_daily_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
335
+ <option value="dropdown" <?php if(isset($sf_options_daily_view['location']) and isset($sf_options_daily_view['location']['type']) and $sf_options_daily_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
336
  </select>
337
  </div>
338
  <div class="mec-form-row">
339
+ <label class="mec-col-12" for="mec_sf_daily_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
340
  <select class="mec-col-12" name="mec[sf-options][daily_view][organizer][type]" id="mec_sf_daily_view_organizer">
341
+ <option value="0" <?php if(isset($sf_options_daily_view['organizer']) and isset($sf_options_daily_view['organizer']['type']) and $sf_options_daily_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
342
+ <option value="dropdown" <?php if(isset($sf_options_daily_view['organizer']) and isset($sf_options_daily_view['organizer']['type']) and $sf_options_daily_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
343
  </select>
344
  </div>
345
  <div class="mec-form-row">
346
+ <label class="mec-col-12" for="mec_sf_daily_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
347
  <select class="mec-col-12" name="mec[sf-options][daily_view][label][type]" id="mec_sf_daily_view_label">
348
+ <option value="0" <?php if(isset($sf_options_daily_view['label']) and isset($sf_options_daily_view['label']['type']) and $sf_options_daily_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
349
+ <option value="dropdown" <?php if(isset($sf_options_daily_view['label']) and isset($sf_options_daily_view['label']['type']) and $sf_options_daily_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
350
  </select>
351
  </div>
352
  <div class="mec-form-row">
353
+ <label class="mec-col-12" for="mec_sf_daily_view_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
354
  <select class="mec-col-12" name="mec[sf-options][daily_view][month_filter][type]" id="mec_sf_daily_view_month_filter">
355
+ <option value="0" <?php if(isset($sf_options_daily_view['month_filter']) and isset($sf_options_daily_view['month_filter']['type']) and $sf_options_daily_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
356
+ <option value="dropdown" <?php if(isset($sf_options_daily_view['month_filter']) and isset($sf_options_daily_view['month_filter']['type']) and $sf_options_daily_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
357
  </select>
358
  </div>
359
  <div class="mec-form-row">
360
+ <label class="mec-col-12" for="mec_sf_daily_view_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
361
  <select class="mec-col-12" name="mec[sf-options][daily_view][text_search][type]" id="mec_sf_daily_view_text_search">
362
+ <option value="0" <?php if(isset($sf_options_daily_view['text_search']) and isset($sf_options_daily_view['text_search']['type']) and $sf_options_daily_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
363
+ <option value="text_input" <?php if(isset($sf_options_daily_view['text_search']) and isset($sf_options_daily_view['text_search']['type']) and $sf_options_daily_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
364
  </select>
365
  </div>
366
  </div>
369
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_weekly_view_search_form_options_container">
370
  <?php $sf_options_weekly_view = isset($sf_options['weekly_view']) ? $sf_options['weekly_view'] : array(); ?>
371
  <div class="mec-form-row">
372
+ <label class="mec-col-12" for="mec_sf_weekly_view_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
373
  <select class="mec-col-12" name="mec[sf-options][weekly_view][category][type]" id="mec_sf_weekly_view_category">
374
+ <option value="0" <?php if(isset($sf_options_weekly_view['category']) and isset($sf_options_weekly_view['category']['type']) and $sf_options_weekly_view['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
375
+ <option value="dropdown" <?php if(isset($sf_options_weekly_view['category']) and isset($sf_options_weekly_view['category']['type']) and $sf_options_weekly_view['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
376
  </select>
377
  </div>
378
  <div class="mec-form-row">
379
+ <label class="mec-col-12" for="mec_sf_weekly_view_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
380
  <select class="mec-col-12" name="mec[sf-options][weekly_view][location][type]" id="mec_sf_weekly_view_location">
381
+ <option value="0" <?php if(isset($sf_options_weekly_view['location']) and isset($sf_options_weekly_view['location']['type']) and $sf_options_weekly_view['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
382
+ <option value="dropdown" <?php if(isset($sf_options_weekly_view['location']) and isset($sf_options_weekly_view['location']['type']) and $sf_options_weekly_view['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
383
  </select>
384
  </div>
385
  <div class="mec-form-row">
386
+ <label class="mec-col-12" for="mec_sf_weekly_view_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
387
  <select class="mec-col-12" name="mec[sf-options][weekly_view][organizer][type]" id="mec_sf_weekly_view_organizer">
388
+ <option value="0" <?php if(isset($sf_options_weekly_view['organizer']) and isset($sf_options_weekly_view['organizer']['type']) and $sf_options_weekly_view['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
389
+ <option value="dropdown" <?php if(isset($sf_options_weekly_view['organizer']) and isset($sf_options_weekly_view['organizer']['type']) and $sf_options_weekly_view['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
390
  </select>
391
  </div>
392
  <div class="mec-form-row">
393
+ <label class="mec-col-12" for="mec_sf_weekly_view_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
394
  <select class="mec-col-12" name="mec[sf-options][weekly_view][label][type]" id="mec_sf_weekly_view_label">
395
+ <option value="0" <?php if(isset($sf_options_weekly_view['label']) and isset($sf_options_weekly_view['label']['type']) and $sf_options_weekly_view['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
396
+ <option value="dropdown" <?php if(isset($sf_options_weekly_view['label']) and isset($sf_options_weekly_view['label']['type']) and $sf_options_weekly_view['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
397
  </select>
398
  </div>
399
  <div class="mec-form-row">
400
+ <label class="mec-col-12" for="mec_sf_weekly_view_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
401
  <select class="mec-col-12" name="mec[sf-options][weekly_view][month_filter][type]" id="mec_sf_weekly_view_month_filter">
402
+ <option value="0" <?php if(isset($sf_options_weekly_view['month_filter']) and isset($sf_options_weekly_view['month_filter']['type']) and $sf_options_weekly_view['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
403
+ <option value="dropdown" <?php if(isset($sf_options_weekly_view['month_filter']) and isset($sf_options_weekly_view['month_filter']['type']) and $sf_options_weekly_view['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
404
  </select>
405
  </div>
406
  <div class="mec-form-row">
407
+ <label class="mec-col-12" for="mec_sf_weekly_view_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
408
  <select class="mec-col-12" name="mec[sf-options][weekly_view][text_search][type]" id="mec_sf_weekly_view_text_search">
409
+ <option value="0" <?php if(isset($sf_options_weekly_view['text_search']) and isset($sf_options_weekly_view['text_search']['type']) and $sf_options_weekly_view['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
410
+ <option value="text_input" <?php if(isset($sf_options_weekly_view['text_search']) and isset($sf_options_weekly_view['text_search']['type']) and $sf_options_weekly_view['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
411
  </select>
412
  </div>
413
  </div>
416
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_timetable_search_form_options_container">
417
  <?php $sf_options_timetable = isset($sf_options['timetable']) ? $sf_options['timetable'] : array(); ?>
418
  <div class="mec-form-row">
419
+ <label class="mec-col-12" for="mec_sf_timetable_category"><?php echo $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')); ?></label>
420
  <select class="mec-col-12" name="mec[sf-options][timetable][category][type]" id="mec_sf_timetable_category">
421
+ <option value="0" <?php if(isset($sf_options_timetable['category']) and isset($sf_options_timetable['category']['type']) and $sf_options_timetable['category']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
422
+ <option value="dropdown" <?php if(isset($sf_options_timetable['category']) and isset($sf_options_timetable['category']['type']) and $sf_options_timetable['category']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
423
  </select>
424
  </div>
425
  <div class="mec-form-row">
426
+ <label class="mec-col-12" for="mec_sf_timetable_location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></label>
427
  <select class="mec-col-12" name="mec[sf-options][timetable][location][type]" id="mec_sf_timetable_location">
428
+ <option value="0" <?php if(isset($sf_options_timetable['location']) and isset($sf_options_timetable['location']['type']) and $sf_options_timetable['location']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
429
+ <option value="dropdown" <?php if(isset($sf_options_timetable['location']) and isset($sf_options_timetable['location']['type']) and $sf_options_timetable['location']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
430
  </select>
431
  </div>
432
  <div class="mec-form-row">
433
+ <label class="mec-col-12" for="mec_sf_timetable_organizer"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></label>
434
  <select class="mec-col-12" name="mec[sf-options][timetable][organizer][type]" id="mec_sf_timetable_organizer">
435
+ <option value="0" <?php if(isset($sf_options_timetable['organizer']) and isset($sf_options_timetable['organizer']['type']) and $sf_options_timetable['organizer']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
436
+ <option value="dropdown" <?php if(isset($sf_options_timetable['organizer']) and isset($sf_options_timetable['organizer']['type']) and $sf_options_timetable['organizer']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
437
  </select>
438
  </div>
439
  <div class="mec-form-row">
440
+ <label class="mec-col-12" for="mec_sf_timetable_label"><?php echo $this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')); ?></label>
441
  <select class="mec-col-12" name="mec[sf-options][timetable][label][type]" id="mec_sf_timetable_label">
442
+ <option value="0" <?php if(isset($sf_options_timetable['label']) and isset($sf_options_timetable['label']['type']) and $sf_options_timetable['label']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
443
+ <option value="dropdown" <?php if(isset($sf_options_timetable['label']) and isset($sf_options_timetable['label']['type']) and $sf_options_timetable['label']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
444
  </select>
445
  </div>
446
  <div class="mec-form-row">
447
+ <label class="mec-col-12" for="mec_sf_timetable_month_filter"><?php _e('Month Filter', 'modern-events-calendar-lite'); ?></label>
448
  <select class="mec-col-12" name="mec[sf-options][timetable][month_filter][type]" id="mec_sf_timetable_month_filter">
449
+ <option value="0" <?php if(isset($sf_options_timetable['month_filter']) and isset($sf_options_timetable['month_filter']['type']) and $sf_options_timetable['month_filter']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
450
+ <option value="dropdown" <?php if(isset($sf_options_timetable['month_filter']) and isset($sf_options_timetable['month_filter']['type']) and $sf_options_timetable['month_filter']['type'] == 'dropdown') echo 'selected="selected"'; ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
451
  </select>
452
  </div>
453
  <div class="mec-form-row">
454
+ <label class="mec-col-12" for="mec_sf_timetable_text_search"><?php _e('Text Search', 'modern-events-calendar-lite'); ?></label>
455
  <select class="mec-col-12" name="mec[sf-options][timetable][text_search][type]" id="mec_sf_timetable_text_search">
456
+ <option value="0" <?php if(isset($sf_options_timetable['text_search']) and isset($sf_options_timetable['text_search']['type']) and $sf_options_timetable['text_search']['type'] == '0') echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
457
+ <option value="text_input" <?php if(isset($sf_options_timetable['text_search']) and isset($sf_options_timetable['text_search']['type']) and $sf_options_timetable['text_search']['type'] == 'text_input') echo 'selected="selected"'; ?>><?php _e('Text Input', 'modern-events-calendar-lite'); ?></option>
458
  </select>
459
  </div>
460
  </div>
462
  <!-- Masonry View -->
463
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_masonry_search_form_options_container">
464
  <?php $sf_options_masonry = isset($sf_options['masonry']) ? $sf_options['masonry'] : array(); ?>
465
+ <p><?php _e('No Search Options', 'modern-events-calendar-lite'); ?></p>
466
  </div>
467
 
468
  <!-- Cover -->
469
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_cover_search_form_options_container">
470
  <?php $sf_options_cover = isset($sf_options['cover']) ? $sf_options['cover'] : array(); ?>
471
+ <p><?php _e('No Search Options', 'modern-events-calendar-lite'); ?></p>
472
  </div>
473
 
474
  <!-- Countdown -->
475
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_countdown_search_form_options_container">
476
  <?php $sf_options_countdown = isset($sf_options['countdown']) ? $sf_options['countdown'] : array(); ?>
477
+ <p><?php _e('No Search Options', 'modern-events-calendar-lite'); ?></p>
478
  </div>
479
 
480
  <!-- Available Spot -->
481
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_available_spot_search_form_options_container">
482
  <?php $sf_options_available_spot = isset($sf_options['available_spot']) ? $sf_options['available_spot'] : array(); ?>
483
+ <p><?php _e('No Search Options', 'modern-events-calendar-lite'); ?></p>
484
  </div>
485
 
486
  <!-- Carousel View -->
487
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_carousel_search_form_options_container">
488
  <?php $sf_options_carousel = isset($sf_options['carousel']) ? $sf_options['carousel'] : array(); ?>
489
+ <p><?php _e('No Search Options', 'modern-events-calendar-lite'); ?></p>
490
  </div>
491
 
492
  <!-- Slider -->
493
  <div class="mec-search-form-options-container mec-util-hidden" id="mec_slider_search_form_options_container">
494
  <?php $sf_options_countdown = isset($sf_options['slider']) ? $sf_options['slider'] : array(); ?>
495
+ <p><?php _e('No Search Options', 'modern-events-calendar-lite'); ?></p>
496
  </div>
497
 
498
  <!-- Custom Skins -->
app/features/mec/notifications.php CHANGED
@@ -16,7 +16,7 @@ $notifications = $this->main->get_notifications();
16
  <i class="sl-arrow-down"></i>
17
  </span>
18
  <i class="mec-sl-settings"></i>
19
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
20
  </a>
21
  </li>
22
 
@@ -25,14 +25,14 @@ $notifications = $this->main->get_notifications();
25
  <li class="wns-be-group-menu-li">
26
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
27
  <i class="mec-sl-layers"></i>
28
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
29
  </a>
30
  </li>
31
 
32
  <li class="wns-be-group-menu-li">
33
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
34
  <i class="mec-sl-wallet"></i>
35
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
36
  </a>
37
  </li>
38
 
@@ -41,35 +41,35 @@ $notifications = $this->main->get_notifications();
41
  <li class="wns-be-group-menu-li active">
42
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
43
  <i class="mec-sl-envelope"></i>
44
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
45
  </a>
46
  </li>
47
 
48
  <li class="wns-be-group-menu-li">
49
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
50
  <i class="mec-sl-equalizer"></i>
51
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
52
  </a>
53
  </li>
54
 
55
  <li class="wns-be-group-menu-li">
56
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
57
  <i class="mec-sl-wrench"></i>
58
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
59
  </a>
60
  </li>
61
 
62
  <li class="wns-be-group-menu-li">
63
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
64
  <i class="mec-sl-bubble"></i>
65
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
66
  </a>
67
  </li>
68
 
69
  <li class="wns-be-group-menu-li">
70
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
71
  <i class="mec-sl-support"></i>
72
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
73
  </a>
74
  </li>
75
 
@@ -86,261 +86,261 @@ $notifications = $this->main->get_notifications();
86
 
87
  <div id="wns-be-content">
88
  <div class="wns-be-group-tab">
89
- <h2><?php _e('Notifications', 'mec'); ?></h2>
90
  <div class="mec-container">
91
  <form id="mec_notifications_form">
92
  <div class="mec-form-row" id="mec_notifications_form_container">
93
  <ul>
94
  <?php if($this->main->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']): ?>
95
  <li>
96
- <h4 class="mec-form-subtitle"><?php _e('Booking Notification', 'mec'); ?></h4>
97
  <div class="mec-form-row">
98
  <label>
99
  <input type="hidden" name="mec[notifications][booking_notification][status]" value="0" />
100
- <input onchange="jQuery('#mec_notification_booking_notification_container_toggle').toggle();" value="1" type="checkbox" name="mec[notifications][booking_notification][status]" <?php if(!isset($notifications['booking_notification']['status']) or (isset($notifications['booking_notification']['status']) and $notifications['booking_notification']['status'])) echo 'checked="checked"'; ?> /> <?php _e('Enable booking notification', 'mec'); ?>
101
  </label>
102
  </div>
103
  <div id="mec_notification_booking_notification_container_toggle" class="<?php if(isset($notifications['booking_notification']) and isset($notifications['booking_notification']['status']) and !$notifications['booking_notification']['status']) echo 'mec-util-hidden'; ?>">
104
- <p class="description"><?php _e('It sends to attendee after booking for notifying him/her.', 'mec'); ?></p>
105
  <div class="mec-form-row">
106
- <label for="mec_notifications_booking_notification_subject"><?php _e('Email Subject', 'mec'); ?></label>
107
  <input type="text" name="mec[notifications][booking_notification][subject]" id="mec_notifications_booking_notification_subject" value="<?php echo (isset($notifications['booking_notification']['subject']) ? stripslashes($notifications['booking_notification']['subject']) : ''); ?>" />
108
  </div>
109
  <div class="mec-form-row">
110
- <label for="mec_notifications_booking_notification_recipients"><?php _e('Custom Recipients', 'mec'); ?></label>
111
  <input type="text" name="mec[notifications][booking_notification][recipients]" id="mec_notifications_booking_notification_recipients" value="<?php echo (isset($notifications['booking_notification']['recipients']) ? $notifications['booking_notification']['recipients'] : ''); ?>" />
112
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
113
  </div>
114
  <div class="mec-form-row">
115
  <input type="checkbox" name="mec[notifications][booking_notification][send_to_organizer]" value="1" id="mec_notifications_booking_notification_send_to_organizer" <?php echo ((isset($notifications['booking_notification']['send_to_organizer']) and $notifications['booking_notification']['send_to_organizer'] == 1) ? 'checked="checked"' : ''); ?> />
116
- <label for="mec_notifications_booking_notification_send_to_organizer"><?php _e('Send the email to event organizer', 'mec'); ?></label>
117
  </div>
118
  <div class="mec-form-row">
119
- <label for="mec_notifications_booking_notification_content"><?php _e('Email Content', 'mec'); ?></label>
120
  <?php wp_editor((isset($notifications['booking_notification']) ? stripslashes($notifications['booking_notification']['content']) : ''), 'mec_notifications_booking_notification_content', array('textarea_name'=>'mec[notifications][booking_notification][content]')); ?>
121
  </div>
122
- <p class="description"><?php _e('You can use following placeholders', 'mec'); ?></p>
123
  <ul>
124
- <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'mec'); ?></li>
125
- <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'mec'); ?></li>
126
- <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'mec'); ?></li>
127
- <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'mec'); ?></li>
128
- <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'mec'); ?></li>
129
- <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'mec'); ?></li>
130
- <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'mec'); ?></li>
131
- <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'mec'); ?></li>
132
- <li><span>%%event_title%%</span>: <?php _e('Event title', 'mec'); ?></li>
133
- <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'mec'); ?></li>
134
- <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'mec'); ?></li>
135
- <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'mec'); ?></li>
136
- <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'mec'); ?></li>
137
- <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'mec'); ?></li>
138
- <li><span>%%attendees_full_info%%</span>: <?php _e('Full Attendee info such as booking form data, name, email etc.', 'mec'); ?></li>
139
- <li><span>%%invoice_link%%</span>: <?php _e('Invoice Link', 'mec'); ?></li>
140
- <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'mec'); ?></li>
141
  </ul>
142
  </div>
143
  </li>
144
  <li>
145
- <h4 class="mec-form-subtitle"><?php _e('Booking Verification', 'mec'); ?></h4>
146
- <p class="description"><?php _e('It sends to attendee email for verifying their booking/email.', 'mec'); ?></p>
147
  <div class="mec-form-row">
148
- <label for="mec_notifications_email_verification_subject"><?php _e('Email Subject', 'mec'); ?></label>
149
  <input type="text" name="mec[notifications][email_verification][subject]" id="mec_notifications_email_verification_subject" value="<?php echo (isset($notifications['email_verification']['subject']) ? stripslashes($notifications['email_verification']['subject']) : ''); ?>" />
150
  </div>
151
  <div class="mec-form-row">
152
- <label for="mec_notifications_email_verification_recipients"><?php _e('Custom Recipients', 'mec'); ?></label>
153
  <input type="text" name="mec[notifications][email_verification][recipients]" id="mec_notifications_email_verification_recipients" value="<?php echo (isset($notifications['email_verification']['recipients']) ? $notifications['email_verification']['recipients'] : ''); ?>" />
154
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert multiple recipients, comma separated.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
155
  </div>
156
  <div class="mec-form-row">
157
- <label for="mec_notifications_email_verification_content"><?php _e('Email Content', 'mec'); ?></label>
158
  <?php wp_editor((isset($notifications['email_verification']) ? stripslashes($notifications['email_verification']['content']) : ''), 'mec_notifications_email_verification_content', array('textarea_name'=>'mec[notifications][email_verification][content]')); ?>
159
  </div>
160
- <p class="description"><?php _e('You can use following placeholders', 'mec'); ?></p>
161
  <ul>
162
- <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'mec'); ?></li>
163
- <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'mec'); ?></li>
164
- <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'mec'); ?></li>
165
- <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'mec'); ?></li>
166
- <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'mec'); ?></li>
167
- <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'mec'); ?></li>
168
- <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'mec'); ?></li>
169
- <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'mec'); ?></li>
170
- <li><span>%%event_title%%</span>: <?php _e('Event title', 'mec'); ?></li>
171
- <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'mec'); ?></li>
172
- <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'mec'); ?></li>
173
- <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'mec'); ?></li>
174
- <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'mec'); ?></li>
175
- <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'mec'); ?></li>
176
- <li><span>%%verification_link%%</span>: <?php _e('Email/Booking verification link.', 'mec'); ?></li>
177
- <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'mec'); ?></li>
178
  </ul>
179
  </li>
180
  <li>
181
- <h4 class="mec-form-subtitle"><?php _e('Booking Confirmation', 'mec'); ?></h4>
182
- <p class="description"><?php _e('It sends to attendee after confirming the booking by admin.', 'mec'); ?></p>
183
  <div class="mec-form-row">
184
- <label for="mec_notifications_booking_confirmation_subject"><?php _e('Email Subject', 'mec'); ?></label>
185
  <input type="text" name="mec[notifications][booking_confirmation][subject]" id="mec_notifications_booking_confirmation_subject" value="<?php echo (isset($notifications['booking_confirmation']['subject']) ? stripslashes($notifications['booking_confirmation']['subject']) : ''); ?>" />
186
  </div>
187
  <div class="mec-form-row">
188
- <label for="mec_notifications_booking_confirmation_recipients"><?php _e('Custom Recipients', 'mec'); ?></label>
189
  <input type="text" name="mec[notifications][booking_confirmation][recipients]" id="mec_notifications_booking_confirmation_recipients" value="<?php echo (isset($notifications['booking_confirmation']['recipients']) ? $notifications['booking_confirmation']['recipients'] : ''); ?>" />
190
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
191
  </div>
192
  <div class="mec-form-row">
193
- <label for="mec_notifications_booking_confirmation_content"><?php _e('Email Content', 'mec'); ?></label>
194
  <?php wp_editor((isset($notifications['booking_confirmation']) ? stripslashes($notifications['booking_confirmation']['content']) : ''), 'mec_notifications_booking_confirmation_content', array('textarea_name'=>'mec[notifications][booking_confirmation][content]')); ?>
195
  </div>
196
- <p class="description"><?php _e('You can use following placeholders', 'mec'); ?></p>
197
  <ul>
198
- <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'mec'); ?></li>
199
- <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'mec'); ?></li>
200
- <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'mec'); ?></li>
201
- <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'mec'); ?></li>
202
- <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'mec'); ?></li>
203
- <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'mec'); ?></li>
204
- <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'mec'); ?></li>
205
- <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'mec'); ?></li>
206
- <li><span>%%event_title%%</span>: <?php _e('Event title', 'mec'); ?></li>
207
- <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'mec'); ?></li>
208
- <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'mec'); ?></li>
209
- <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'mec'); ?></li>
210
- <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'mec'); ?></li>
211
- <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'mec'); ?></li>
212
- <li><span>%%cancellation_link%%</span>: <?php _e('Booking cancellation link.', 'mec'); ?></li>
213
- <li><span>%%invoice_link%%</span>: <?php _e('Invoice Link', 'mec'); ?></li>
214
- <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'mec'); ?></li>
215
  </ul>
216
  </li>
217
  <li>
218
- <h4 class="mec-form-subtitle"><?php _e('Admin Notification', 'mec'); ?></h4>
219
- <p class="description"><?php _e('It sends to admin to notify him/her that a new booking received.', 'mec'); ?></p>
220
  <div class="mec-form-row">
221
- <label for="mec_notifications_admin_notification_subject"><?php _e('Email Subject', 'mec'); ?></label>
222
  <input type="text" name="mec[notifications][admin_notification][subject]" id="mec_notifications_admin_notification_subject" value="<?php echo (isset($notifications['admin_notification']['subject']) ? stripslashes($notifications['admin_notification']['subject']) : ''); ?>" />
223
  </div>
224
  <div class="mec-form-row">
225
- <label for="mec_notifications_admin_notification_recipients"><?php _e('Custom Recipients', 'mec'); ?></label>
226
  <input type="text" name="mec[notifications][admin_notification][recipients]" id="mec_notifications_admin_notification_recipients" value="<?php echo (isset($notifications['admin_notification']['recipients']) ? $notifications['admin_notification']['recipients'] : ''); ?>" />
227
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
228
  </div>
229
  <div class="mec-form-row">
230
  <input type="checkbox" name="mec[notifications][admin_notification][send_to_organizer]" value="1" id="mec_notifications_admin_notification_send_to_organizer" <?php echo ((isset($notifications['admin_notification']['send_to_organizer']) and $notifications['admin_notification']['send_to_organizer'] == 1) ? 'checked="checked"' : ''); ?> />
231
- <label for="mec_notifications_admin_notification_send_to_organizer"><?php _e('Send the email to event organizer', 'mec'); ?></label>
232
  </div>
233
  <div class="mec-form-row">
234
- <label for="mec_notifications_admin_notification_content"><?php _e('Email Content', 'mec'); ?></label>
235
  <?php wp_editor((isset($notifications['admin_notification']) ? stripslashes($notifications['admin_notification']['content']) : ''), 'mec_notifications_admin_notification_content', array('textarea_name'=>'mec[notifications][admin_notification][content]')); ?>
236
  </div>
237
- <p class="description"><?php _e('You can use following placeholders', 'mec'); ?></p>
238
  <ul>
239
- <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'mec'); ?></li>
240
- <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'mec'); ?></li>
241
- <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'mec'); ?></li>
242
- <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'mec'); ?></li>
243
- <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'mec'); ?></li>
244
- <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'mec'); ?></li>
245
- <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'mec'); ?></li>
246
- <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'mec'); ?></li>
247
- <li><span>%%event_title%%</span>: <?php _e('Event title', 'mec'); ?></li>
248
- <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'mec'); ?></li>
249
- <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'mec'); ?></li>
250
- <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'mec'); ?></li>
251
- <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'mec'); ?></li>
252
- <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'mec'); ?></li>
253
- <li><span>%%admin_link%%</span>: <?php _e('Admin booking management link.', 'mec'); ?></li>
254
- <li><span>%%attendees_full_info%%</span>: <?php _e('Full Attendee info such as booking form data, name, email etc.', 'mec'); ?></li>
255
- <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'mec'); ?></li>
256
  </ul>
257
  </li>
258
  <li>
259
- <h4 class="mec-form-subtitle"><?php _e('Booking Reminder', 'mec'); ?></h4>
260
  <div class="mec-form-row">
261
  <label>
262
  <input type="hidden" name="mec[notifications][booking_reminder][status]" value="0" />
263
- <input onchange="jQuery('#mec_notification_booking_reminder_container_toggle').toggle();" value="1" type="checkbox" name="mec[notifications][booking_reminder][status]" <?php if(isset($notifications['booking_reminder']) and $notifications['booking_reminder']['status']) echo 'checked="checked"'; ?> /> <?php _e('Enable booking reminder notification', 'mec'); ?>
264
  </label>
265
  </div>
266
  <div id="mec_notification_booking_reminder_container_toggle" class="<?php if((isset($notifications['booking_reminder']) and !$notifications['booking_reminder']['status']) or !isset($notifications['booking_reminder'])) echo 'mec-util-hidden'; ?>">
267
  <div class="mec-form-row">
268
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'booking-reminder.php'; ?>
269
- <p class="mec-col-12"><strong><?php _e('Important Note', 'mec'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file once per day otherwise it won't send the reminders. Please note that you should call this file %s otherwise it may send the reminders multiple times.", 'mec'), '<code>'.$cron.'</code>', '<strong>'.__('only once per day', 'mec').'</strong>'); ?></p>
270
  </div>
271
  <div class="mec-form-row">
272
- <label for="mec_notifications_booking_reminder_subject"><?php _e('Email Subject', 'mec'); ?></label>
273
  <input type="text" name="mec[notifications][booking_reminder][subject]" id="mec_notifications_booking_reminder_subject" value="<?php echo ((isset($notifications['booking_reminder']) and isset($notifications['booking_reminder']['subject'])) ? stripslashes($notifications['booking_reminder']['subject']) : ''); ?>" />
274
  </div>
275
  <div class="mec-form-row">
276
- <label for="mec_notifications_booking_reminder_recipients"><?php _e('Custom Recipients', 'mec'); ?></label>
277
  <input type="text" name="mec[notifications][booking_reminder][recipients]" id="mec_notifications_booking_reminder_recipients" value="<?php echo ((isset($notifications['booking_reminder']) and isset($notifications['booking_reminder']['recipients'])) ? $notifications['booking_reminder']['recipients'] : ''); ?>" />
278
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
279
  </div>
280
  <div class="mec-form-row">
281
- <label for="mec_notifications_booking_reminder_days"><?php _e('Days', 'mec'); ?></label>
282
  <input type="text" name="mec[notifications][booking_reminder][days]" id="mec_notifications_booking_reminder_days" value="<?php echo ((isset($notifications['booking_reminder']) and isset($notifications['booking_reminder']['days'])) ? $notifications['booking_reminder']['days'] : '1,3,7'); ?>" />
283
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated days for sending the reminder. For example if you enter 3,5 then the reminder will send 3 and 5 days before the event date.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
284
  </div>
285
  <div class="mec-form-row">
286
- <label for="mec_notifications_booking_reminder_content"><?php _e('Email Content', 'mec'); ?></label>
287
  <?php wp_editor((isset($notifications['booking_reminder']) ? stripslashes($notifications['booking_reminder']['content']) : ''), 'mec_notifications_booking_reminder_content', array('textarea_name'=>'mec[notifications][booking_reminder][content]')); ?>
288
  </div>
289
- <p class="description"><?php _e('You can use following placeholders', 'mec'); ?></p>
290
  <ul>
291
- <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'mec'); ?></li>
292
- <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'mec'); ?></li>
293
- <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'mec'); ?></li>
294
- <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'mec'); ?></li>
295
- <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'mec'); ?></li>
296
- <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'mec'); ?></li>
297
- <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'mec'); ?></li>
298
- <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'mec'); ?></li>
299
- <li><span>%%event_title%%</span>: <?php _e('Event title', 'mec'); ?></li>
300
- <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'mec'); ?></li>
301
- <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'mec'); ?></li>
302
- <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'mec'); ?></li>
303
- <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'mec'); ?></li>
304
- <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'mec'); ?></li>
305
- <li><span>%%cancellation_link%%</span>: <?php _e('Booking cancellation link.', 'mec'); ?></li>
306
- <li><span>%%invoice_link%%</span>: <?php _e('Invoice Link', 'mec'); ?></li>
307
- <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'mec'); ?></li>
308
  </ul>
309
  </div>
310
  </li>
311
  <?php endif; ?>
312
  <li>
313
- <h4 class="mec-form-subtitle"><?php _e('New Event', 'mec'); ?></h4>
314
  <div class="mec-form-row">
315
  <label>
316
  <input type="hidden" name="mec[notifications][new_event][status]" value="0" />
317
- <input onchange="jQuery('#mec_notification_new_event_container_toggle').toggle();" value="1" type="checkbox" name="mec[notifications][new_event][status]" <?php if(isset($notifications['new_event']['status']) and $notifications['new_event']['status']) echo 'checked="checked"'; ?> /> <?php _e('Enable new event notification', 'mec'); ?>
318
  </label>
319
  </div>
320
  <div id="mec_notification_new_event_container_toggle" class="<?php if((isset($notifications['new_event']) and !$notifications['new_event']['status']) or !isset($notifications['new_event'])) echo 'mec-util-hidden'; ?>">
321
- <p class="description"><?php _e('It sends after adding a new event from frontend event submission or from website backend.', 'mec'); ?></p>
322
  <div class="mec-form-row">
323
- <label for="mec_notifications_new_event_subject"><?php _e('Email Subject', 'mec'); ?></label>
324
  <input type="text" name="mec[notifications][new_event][subject]" id="mec_notifications_new_event_subject" value="<?php echo (isset($notifications['new_event']['subject']) ? stripslashes($notifications['new_event']['subject']) : ''); ?>" />
325
  </div>
326
  <div class="mec-form-row">
327
- <label for="mec_notifications_new_event_recipients"><?php _e('Custom Recipients', 'mec'); ?></label>
328
  <input type="text" name="mec[notifications][new_event][recipients]" id="mec_notifications_new_event_recipients" value="<?php echo (isset($notifications['new_event']['recipients']) ? $notifications['new_event']['recipients'] : ''); ?>" />
329
- <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
330
  </div>
331
  <div class="mec-form-row">
332
- <label for="mec_notifications_new_event_content"><?php _e('Email Content', 'mec'); ?></label>
333
  <?php wp_editor((isset($notifications['new_event']) ? stripslashes($notifications['new_event']['content']) : ''), 'mec_notifications_new_event_content', array('textarea_name'=>'mec[notifications][new_event][content]')); ?>
334
  </div>
335
- <p class="description"><?php _e('You can use following placeholders', 'mec'); ?></p>
336
  <ul>
337
- <li><span>%%event_title%%</span>: <?php _e('Title of event', 'mec'); ?></li>
338
- <li><span>%%event_status%%</span>: <?php _e('Status of event', 'mec'); ?></li>
339
- <li><span>%%event_note%%</span>: <?php _e('Event Note', 'mec'); ?></li>
340
- <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'mec'); ?></li>
341
- <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'mec'); ?></li>
342
- <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'mec'); ?></li>
343
- <li><span>%%admin_link%%</span>: <?php _e('Admin events management link.', 'mec'); ?></li>
344
  </ul>
345
  </div>
346
  </li>
@@ -348,7 +348,7 @@ $notifications = $this->main->get_notifications();
348
  </div>
349
  <div class="mec-form-row">
350
  <?php wp_nonce_field('mec_options_form'); ?>
351
- <button style="display: none;" id="mec_notifications_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
352
  </div>
353
  </form>
354
  </div>
@@ -394,8 +394,8 @@ jQuery("#mec_notifications_form").on('submit', function(event)
394
  jQuery("#mec_notifications_new_event_content-tmce").click();
395
 
396
  // Add loading Class to the button
397
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
398
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
399
  var notifications = jQuery("#mec_notifications_form").serialize();
400
  jQuery.ajax(
401
  {
@@ -406,7 +406,7 @@ jQuery("#mec_notifications_form").on('submit', function(event)
406
  {
407
  // Remove the loading Class to the button
408
  setTimeout(function(){
409
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
410
  jQuery('.wns-saved-settings').remove();
411
  }, 1000);
412
  },
@@ -414,7 +414,7 @@ jQuery("#mec_notifications_form").on('submit', function(event)
414
  {
415
  // Remove the loading Class to the button
416
  setTimeout(function(){
417
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
418
  jQuery('.wns-saved-settings').remove();
419
  }, 1000);
420
  }
16
  <i class="sl-arrow-down"></i>
17
  </span>
18
  <i class="mec-sl-settings"></i>
19
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
20
  </a>
21
  </li>
22
 
25
  <li class="wns-be-group-menu-li">
26
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
27
  <i class="mec-sl-layers"></i>
28
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
29
  </a>
30
  </li>
31
 
32
  <li class="wns-be-group-menu-li">
33
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
34
  <i class="mec-sl-wallet"></i>
35
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
36
  </a>
37
  </li>
38
 
41
  <li class="wns-be-group-menu-li active">
42
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
43
  <i class="mec-sl-envelope"></i>
44
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
45
  </a>
46
  </li>
47
 
48
  <li class="wns-be-group-menu-li">
49
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
50
  <i class="mec-sl-equalizer"></i>
51
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
52
  </a>
53
  </li>
54
 
55
  <li class="wns-be-group-menu-li">
56
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
57
  <i class="mec-sl-wrench"></i>
58
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
59
  </a>
60
  </li>
61
 
62
  <li class="wns-be-group-menu-li">
63
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
64
  <i class="mec-sl-bubble"></i>
65
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
66
  </a>
67
  </li>
68
 
69
  <li class="wns-be-group-menu-li">
70
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
71
  <i class="mec-sl-support"></i>
72
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
73
  </a>
74
  </li>
75
 
86
 
87
  <div id="wns-be-content">
88
  <div class="wns-be-group-tab">
89
+ <h2><?php _e('Notifications', 'modern-events-calendar-lite'); ?></h2>
90
  <div class="mec-container">
91
  <form id="mec_notifications_form">
92
  <div class="mec-form-row" id="mec_notifications_form_container">
93
  <ul>
94
  <?php if($this->main->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']): ?>
95
  <li>
96
+ <h4 class="mec-form-subtitle"><?php _e('Booking Notification', 'modern-events-calendar-lite'); ?></h4>
97
  <div class="mec-form-row">
98
  <label>
99
  <input type="hidden" name="mec[notifications][booking_notification][status]" value="0" />
100
+ <input onchange="jQuery('#mec_notification_booking_notification_container_toggle').toggle();" value="1" type="checkbox" name="mec[notifications][booking_notification][status]" <?php if(!isset($notifications['booking_notification']['status']) or (isset($notifications['booking_notification']['status']) and $notifications['booking_notification']['status'])) echo 'checked="checked"'; ?> /> <?php _e('Enable booking notification', 'modern-events-calendar-lite'); ?>
101
  </label>
102
  </div>
103
  <div id="mec_notification_booking_notification_container_toggle" class="<?php if(isset($notifications['booking_notification']) and isset($notifications['booking_notification']['status']) and !$notifications['booking_notification']['status']) echo 'mec-util-hidden'; ?>">
104
+ <p class="description"><?php _e('It sends to attendee after booking for notifying him/her.', 'modern-events-calendar-lite'); ?></p>
105
  <div class="mec-form-row">
106
+ <label for="mec_notifications_booking_notification_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
107
  <input type="text" name="mec[notifications][booking_notification][subject]" id="mec_notifications_booking_notification_subject" value="<?php echo (isset($notifications['booking_notification']['subject']) ? stripslashes($notifications['booking_notification']['subject']) : ''); ?>" />
108
  </div>
109
  <div class="mec-form-row">
110
+ <label for="mec_notifications_booking_notification_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
111
  <input type="text" name="mec[notifications][booking_notification][recipients]" id="mec_notifications_booking_notification_recipients" value="<?php echo (isset($notifications['booking_notification']['recipients']) ? $notifications['booking_notification']['recipients'] : ''); ?>" />
112
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
113
  </div>
114
  <div class="mec-form-row">
115
  <input type="checkbox" name="mec[notifications][booking_notification][send_to_organizer]" value="1" id="mec_notifications_booking_notification_send_to_organizer" <?php echo ((isset($notifications['booking_notification']['send_to_organizer']) and $notifications['booking_notification']['send_to_organizer'] == 1) ? 'checked="checked"' : ''); ?> />
116
+ <label for="mec_notifications_booking_notification_send_to_organizer"><?php _e('Send the email to event organizer', 'modern-events-calendar-lite'); ?></label>
117
  </div>
118
  <div class="mec-form-row">
119
+ <label for="mec_notifications_booking_notification_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
120
  <?php wp_editor((isset($notifications['booking_notification']) ? stripslashes($notifications['booking_notification']['content']) : ''), 'mec_notifications_booking_notification_content', array('textarea_name'=>'mec[notifications][booking_notification][content]')); ?>
121
  </div>
122
+ <p class="description"><?php _e('You can use following placeholders', 'modern-events-calendar-lite'); ?></p>
123
  <ul>
124
+ <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'modern-events-calendar-lite'); ?></li>
125
+ <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'modern-events-calendar-lite'); ?></li>
126
+ <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'modern-events-calendar-lite'); ?></li>
127
+ <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'modern-events-calendar-lite'); ?></li>
128
+ <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'modern-events-calendar-lite'); ?></li>
129
+ <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'modern-events-calendar-lite'); ?></li>
130
+ <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'modern-events-calendar-lite'); ?></li>
131
+ <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'modern-events-calendar-lite'); ?></li>
132
+ <li><span>%%event_title%%</span>: <?php _e('Event title', 'modern-events-calendar-lite'); ?></li>
133
+ <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'modern-events-calendar-lite'); ?></li>
134
+ <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'modern-events-calendar-lite'); ?></li>
135
+ <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'modern-events-calendar-lite'); ?></li>
136
+ <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'modern-events-calendar-lite'); ?></li>
137
+ <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'modern-events-calendar-lite'); ?></li>
138
+ <li><span>%%attendees_full_info%%</span>: <?php _e('Full Attendee info such as booking form data, name, email etc.', 'modern-events-calendar-lite'); ?></li>
139
+ <li><span>%%invoice_link%%</span>: <?php _e('Invoice Link', 'modern-events-calendar-lite'); ?></li>
140
+ <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'modern-events-calendar-lite'); ?></li>
141
  </ul>
142
  </div>
143
  </li>
144
  <li>
145
+ <h4 class="mec-form-subtitle"><?php _e('Booking Verification', 'modern-events-calendar-lite'); ?></h4>
146
+ <p class="description"><?php _e('It sends to attendee email for verifying their booking/email.', 'modern-events-calendar-lite'); ?></p>
147
  <div class="mec-form-row">
148
+ <label for="mec_notifications_email_verification_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
149
  <input type="text" name="mec[notifications][email_verification][subject]" id="mec_notifications_email_verification_subject" value="<?php echo (isset($notifications['email_verification']['subject']) ? stripslashes($notifications['email_verification']['subject']) : ''); ?>" />
150
  </div>
151
  <div class="mec-form-row">
152
+ <label for="mec_notifications_email_verification_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
153
  <input type="text" name="mec[notifications][email_verification][recipients]" id="mec_notifications_email_verification_recipients" value="<?php echo (isset($notifications['email_verification']['recipients']) ? $notifications['email_verification']['recipients'] : ''); ?>" />
154
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert multiple recipients, comma separated.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
155
  </div>
156
  <div class="mec-form-row">
157
+ <label for="mec_notifications_email_verification_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
158
  <?php wp_editor((isset($notifications['email_verification']) ? stripslashes($notifications['email_verification']['content']) : ''), 'mec_notifications_email_verification_content', array('textarea_name'=>'mec[notifications][email_verification][content]')); ?>
159
  </div>
160
+ <p class="description"><?php _e('You can use following placeholders', 'modern-events-calendar-lite'); ?></p>
161
  <ul>
162
+ <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'modern-events-calendar-lite'); ?></li>
163
+ <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'modern-events-calendar-lite'); ?></li>
164
+ <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'modern-events-calendar-lite'); ?></li>
165
+ <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'modern-events-calendar-lite'); ?></li>
166
+ <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'modern-events-calendar-lite'); ?></li>
167
+ <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'modern-events-calendar-lite'); ?></li>
168
+ <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'modern-events-calendar-lite'); ?></li>
169
+ <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'modern-events-calendar-lite'); ?></li>
170
+ <li><span>%%event_title%%</span>: <?php _e('Event title', 'modern-events-calendar-lite'); ?></li>
171
+ <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'modern-events-calendar-lite'); ?></li>
172
+ <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'modern-events-calendar-lite'); ?></li>
173
+ <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'modern-events-calendar-lite'); ?></li>
174
+ <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'modern-events-calendar-lite'); ?></li>
175
+ <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'modern-events-calendar-lite'); ?></li>
176
+ <li><span>%%verification_link%%</span>: <?php _e('Email/Booking verification link.', 'modern-events-calendar-lite'); ?></li>
177
+ <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'modern-events-calendar-lite'); ?></li>
178
  </ul>
179
  </li>
180
  <li>
181
+ <h4 class="mec-form-subtitle"><?php _e('Booking Confirmation', 'modern-events-calendar-lite'); ?></h4>
182
+ <p class="description"><?php _e('It sends to attendee after confirming the booking by admin.', 'modern-events-calendar-lite'); ?></p>
183
  <div class="mec-form-row">
184
+ <label for="mec_notifications_booking_confirmation_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
185
  <input type="text" name="mec[notifications][booking_confirmation][subject]" id="mec_notifications_booking_confirmation_subject" value="<?php echo (isset($notifications['booking_confirmation']['subject']) ? stripslashes($notifications['booking_confirmation']['subject']) : ''); ?>" />
186
  </div>
187
  <div class="mec-form-row">
188
+ <label for="mec_notifications_booking_confirmation_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
189
  <input type="text" name="mec[notifications][booking_confirmation][recipients]" id="mec_notifications_booking_confirmation_recipients" value="<?php echo (isset($notifications['booking_confirmation']['recipients']) ? $notifications['booking_confirmation']['recipients'] : ''); ?>" />
190
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
191
  </div>
192
  <div class="mec-form-row">
193
+ <label for="mec_notifications_booking_confirmation_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
194
  <?php wp_editor((isset($notifications['booking_confirmation']) ? stripslashes($notifications['booking_confirmation']['content']) : ''), 'mec_notifications_booking_confirmation_content', array('textarea_name'=>'mec[notifications][booking_confirmation][content]')); ?>
195
  </div>
196
+ <p class="description"><?php _e('You can use following placeholders', 'modern-events-calendar-lite'); ?></p>
197
  <ul>
198
+ <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'modern-events-calendar-lite'); ?></li>
199
+ <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'modern-events-calendar-lite'); ?></li>
200
+ <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'modern-events-calendar-lite'); ?></li>
201
+ <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'modern-events-calendar-lite'); ?></li>
202
+ <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'modern-events-calendar-lite'); ?></li>
203
+ <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'modern-events-calendar-lite'); ?></li>
204
+ <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'modern-events-calendar-lite'); ?></li>
205
+ <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'modern-events-calendar-lite'); ?></li>
206
+ <li><span>%%event_title%%</span>: <?php _e('Event title', 'modern-events-calendar-lite'); ?></li>
207
+ <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'modern-events-calendar-lite'); ?></li>
208
+ <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'modern-events-calendar-lite'); ?></li>
209
+ <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'modern-events-calendar-lite'); ?></li>
210
+ <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'modern-events-calendar-lite'); ?></li>
211
+ <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'modern-events-calendar-lite'); ?></li>
212
+ <li><span>%%cancellation_link%%</span>: <?php _e('Booking cancellation link.', 'modern-events-calendar-lite'); ?></li>
213
+ <li><span>%%invoice_link%%</span>: <?php _e('Invoice Link', 'modern-events-calendar-lite'); ?></li>
214
+ <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'modern-events-calendar-lite'); ?></li>
215
  </ul>
216
  </li>
217
  <li>
218
+ <h4 class="mec-form-subtitle"><?php _e('Admin Notification', 'modern-events-calendar-lite'); ?></h4>
219
+ <p class="description"><?php _e('It sends to admin to notify him/her that a new booking received.', 'modern-events-calendar-lite'); ?></p>
220
  <div class="mec-form-row">
221
+ <label for="mec_notifications_admin_notification_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
222
  <input type="text" name="mec[notifications][admin_notification][subject]" id="mec_notifications_admin_notification_subject" value="<?php echo (isset($notifications['admin_notification']['subject']) ? stripslashes($notifications['admin_notification']['subject']) : ''); ?>" />
223
  </div>
224
  <div class="mec-form-row">
225
+ <label for="mec_notifications_admin_notification_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
226
  <input type="text" name="mec[notifications][admin_notification][recipients]" id="mec_notifications_admin_notification_recipients" value="<?php echo (isset($notifications['admin_notification']['recipients']) ? $notifications['admin_notification']['recipients'] : ''); ?>" />
227
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
228
  </div>
229
  <div class="mec-form-row">
230
  <input type="checkbox" name="mec[notifications][admin_notification][send_to_organizer]" value="1" id="mec_notifications_admin_notification_send_to_organizer" <?php echo ((isset($notifications['admin_notification']['send_to_organizer']) and $notifications['admin_notification']['send_to_organizer'] == 1) ? 'checked="checked"' : ''); ?> />
231
+ <label for="mec_notifications_admin_notification_send_to_organizer"><?php _e('Send the email to event organizer', 'modern-events-calendar-lite'); ?></label>
232
  </div>
233
  <div class="mec-form-row">
234
+ <label for="mec_notifications_admin_notification_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
235
  <?php wp_editor((isset($notifications['admin_notification']) ? stripslashes($notifications['admin_notification']['content']) : ''), 'mec_notifications_admin_notification_content', array('textarea_name'=>'mec[notifications][admin_notification][content]')); ?>
236
  </div>
237
+ <p class="description"><?php _e('You can use following placeholders', 'modern-events-calendar-lite'); ?></p>
238
  <ul>
239
+ <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'modern-events-calendar-lite'); ?></li>
240
+ <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'modern-events-calendar-lite'); ?></li>
241
+ <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'modern-events-calendar-lite'); ?></li>
242
+ <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'modern-events-calendar-lite'); ?></li>
243
+ <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'modern-events-calendar-lite'); ?></li>
244
+ <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'modern-events-calendar-lite'); ?></li>
245
+ <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'modern-events-calendar-lite'); ?></li>
246
+ <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'modern-events-calendar-lite'); ?></li>
247
+ <li><span>%%event_title%%</span>: <?php _e('Event title', 'modern-events-calendar-lite'); ?></li>
248
+ <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'modern-events-calendar-lite'); ?></li>
249
+ <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'modern-events-calendar-lite'); ?></li>
250
+ <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'modern-events-calendar-lite'); ?></li>
251
+ <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'modern-events-calendar-lite'); ?></li>
252
+ <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'modern-events-calendar-lite'); ?></li>
253
+ <li><span>%%admin_link%%</span>: <?php _e('Admin booking management link.', 'modern-events-calendar-lite'); ?></li>
254
+ <li><span>%%attendees_full_info%%</span>: <?php _e('Full Attendee info such as booking form data, name, email etc.', 'modern-events-calendar-lite'); ?></li>
255
+ <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'modern-events-calendar-lite'); ?></li>
256
  </ul>
257
  </li>
258
  <li>
259
+ <h4 class="mec-form-subtitle"><?php _e('Booking Reminder', 'modern-events-calendar-lite'); ?></h4>
260
  <div class="mec-form-row">
261
  <label>
262
  <input type="hidden" name="mec[notifications][booking_reminder][status]" value="0" />
263
+ <input onchange="jQuery('#mec_notification_booking_reminder_container_toggle').toggle();" value="1" type="checkbox" name="mec[notifications][booking_reminder][status]" <?php if(isset($notifications['booking_reminder']) and $notifications['booking_reminder']['status']) echo 'checked="checked"'; ?> /> <?php _e('Enable booking reminder notification', 'modern-events-calendar-lite'); ?>
264
  </label>
265
  </div>
266
  <div id="mec_notification_booking_reminder_container_toggle" class="<?php if((isset($notifications['booking_reminder']) and !$notifications['booking_reminder']['status']) or !isset($notifications['booking_reminder'])) echo 'mec-util-hidden'; ?>">
267
  <div class="mec-form-row">
268
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'booking-reminder.php'; ?>
269
+ <p class="mec-col-12"><strong><?php _e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file once per day otherwise it won't send the reminders. Please note that you should call this file %s otherwise it may send the reminders multiple times.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>', '<strong>'.__('only once per day', 'modern-events-calendar-lite').'</strong>'); ?></p>
270
  </div>
271
  <div class="mec-form-row">
272
+ <label for="mec_notifications_booking_reminder_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
273
  <input type="text" name="mec[notifications][booking_reminder][subject]" id="mec_notifications_booking_reminder_subject" value="<?php echo ((isset($notifications['booking_reminder']) and isset($notifications['booking_reminder']['subject'])) ? stripslashes($notifications['booking_reminder']['subject']) : ''); ?>" />
274
  </div>
275
  <div class="mec-form-row">
276
+ <label for="mec_notifications_booking_reminder_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
277
  <input type="text" name="mec[notifications][booking_reminder][recipients]" id="mec_notifications_booking_reminder_recipients" value="<?php echo ((isset($notifications['booking_reminder']) and isset($notifications['booking_reminder']['recipients'])) ? $notifications['booking_reminder']['recipients'] : ''); ?>" />
278
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
279
  </div>
280
  <div class="mec-form-row">
281
+ <label for="mec_notifications_booking_reminder_days"><?php _e('Days', 'modern-events-calendar-lite'); ?></label>
282
  <input type="text" name="mec[notifications][booking_reminder][days]" id="mec_notifications_booking_reminder_days" value="<?php echo ((isset($notifications['booking_reminder']) and isset($notifications['booking_reminder']['days'])) ? $notifications['booking_reminder']['days'] : '1,3,7'); ?>" />
283
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated days for sending the reminder. For example if you enter 3,5 then the reminder will send 3 and 5 days before the event date.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
284
  </div>
285
  <div class="mec-form-row">
286
+ <label for="mec_notifications_booking_reminder_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
287
  <?php wp_editor((isset($notifications['booking_reminder']) ? stripslashes($notifications['booking_reminder']['content']) : ''), 'mec_notifications_booking_reminder_content', array('textarea_name'=>'mec[notifications][booking_reminder][content]')); ?>
288
  </div>
289
+ <p class="description"><?php _e('You can use following placeholders', 'modern-events-calendar-lite'); ?></p>
290
  <ul>
291
+ <li><span>%%first_name%%</span>: <?php _e('First name of attendee', 'modern-events-calendar-lite'); ?></li>
292
+ <li><span>%%last_name%%</span>: <?php _e('Last name of attendee', 'modern-events-calendar-lite'); ?></li>
293
+ <li><span>%%user_email%%</span>: <?php _e('Email of attendee', 'modern-events-calendar-lite'); ?></li>
294
+ <li><span>%%book_date%%</span>: <?php _e('Booked date of event', 'modern-events-calendar-lite'); ?></li>
295
+ <li><span>%%book_price%%</span>: <?php _e('Booking Price', 'modern-events-calendar-lite'); ?></li>
296
+ <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'modern-events-calendar-lite'); ?></li>
297
+ <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'modern-events-calendar-lite'); ?></li>
298
+ <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'modern-events-calendar-lite'); ?></li>
299
+ <li><span>%%event_title%%</span>: <?php _e('Event title', 'modern-events-calendar-lite'); ?></li>
300
+ <li><span>%%event_organizer_name%%</span>: <?php _e('Organizer name of booked event', 'modern-events-calendar-lite'); ?></li>
301
+ <li><span>%%event_organizer_tel%%</span>: <?php _e('Organizer tel of booked event', 'modern-events-calendar-lite'); ?></li>
302
+ <li><span>%%event_organizer_email%%</span>: <?php _e('Organizer email of booked event', 'modern-events-calendar-lite'); ?></li>
303
+ <li><span>%%event_location_name%%</span>: <?php _e('Location name of booked event', 'modern-events-calendar-lite'); ?></li>
304
+ <li><span>%%event_location_address%%</span>: <?php _e('Location address of booked event', 'modern-events-calendar-lite'); ?></li>
305
+ <li><span>%%cancellation_link%%</span>: <?php _e('Booking cancellation link.', 'modern-events-calendar-lite'); ?></li>
306
+ <li><span>%%invoice_link%%</span>: <?php _e('Invoice Link', 'modern-events-calendar-lite'); ?></li>
307
+ <li><span>%%total_attendees%%</span>: <?php _e('Total Attendees', 'modern-events-calendar-lite'); ?></li>
308
  </ul>
309
  </div>
310
  </li>
311
  <?php endif; ?>
312
  <li>
313
+ <h4 class="mec-form-subtitle"><?php _e('New Event', 'modern-events-calendar-lite'); ?></h4>
314
  <div class="mec-form-row">
315
  <label>
316
  <input type="hidden" name="mec[notifications][new_event][status]" value="0" />
317
+ <input onchange="jQuery('#mec_notification_new_event_container_toggle').toggle();" value="1" type="checkbox" name="mec[notifications][new_event][status]" <?php if(isset($notifications['new_event']['status']) and $notifications['new_event']['status']) echo 'checked="checked"'; ?> /> <?php _e('Enable new event notification', 'modern-events-calendar-lite'); ?>
318
  </label>
319
  </div>
320
  <div id="mec_notification_new_event_container_toggle" class="<?php if((isset($notifications['new_event']) and !$notifications['new_event']['status']) or !isset($notifications['new_event'])) echo 'mec-util-hidden'; ?>">
321
+ <p class="description"><?php _e('It sends after adding a new event from frontend event submission or from website backend.', 'modern-events-calendar-lite'); ?></p>
322
  <div class="mec-form-row">
323
+ <label for="mec_notifications_new_event_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
324
  <input type="text" name="mec[notifications][new_event][subject]" id="mec_notifications_new_event_subject" value="<?php echo (isset($notifications['new_event']['subject']) ? stripslashes($notifications['new_event']['subject']) : ''); ?>" />
325
  </div>
326
  <div class="mec-form-row">
327
+ <label for="mec_notifications_new_event_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
328
  <input type="text" name="mec[notifications][new_event][recipients]" id="mec_notifications_new_event_recipients" value="<?php echo (isset($notifications['new_event']['recipients']) ? $notifications['new_event']['recipients'] : ''); ?>" />
329
+ <a class="mec-tooltip" title="<?php esc_attr_e("Insert comma separated emails for multiple recipients.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
330
  </div>
331
  <div class="mec-form-row">
332
+ <label for="mec_notifications_new_event_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
333
  <?php wp_editor((isset($notifications['new_event']) ? stripslashes($notifications['new_event']['content']) : ''), 'mec_notifications_new_event_content', array('textarea_name'=>'mec[notifications][new_event][content]')); ?>
334
  </div>
335
+ <p class="description"><?php _e('You can use following placeholders', 'modern-events-calendar-lite'); ?></p>
336
  <ul>
337
+ <li><span>%%event_title%%</span>: <?php _e('Title of event', 'modern-events-calendar-lite'); ?></li>
338
+ <li><span>%%event_status%%</span>: <?php _e('Status of event', 'modern-events-calendar-lite'); ?></li>
339
+ <li><span>%%event_note%%</span>: <?php _e('Event Note', 'modern-events-calendar-lite'); ?></li>
340
+ <li><span>%%blog_name%%</span>: <?php _e('Your website title', 'modern-events-calendar-lite'); ?></li>
341
+ <li><span>%%blog_url%%</span>: <?php _e('Your website URL', 'modern-events-calendar-lite'); ?></li>
342
+ <li><span>%%blog_description%%</span>: <?php _e('Your website description', 'modern-events-calendar-lite'); ?></li>
343
+ <li><span>%%admin_link%%</span>: <?php _e('Admin events management link.', 'modern-events-calendar-lite'); ?></li>
344
  </ul>
345
  </div>
346
  </li>
348
  </div>
349
  <div class="mec-form-row">
350
  <?php wp_nonce_field('mec_options_form'); ?>
351
+ <button style="display: none;" id="mec_notifications_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
352
  </div>
353
  </form>
354
  </div>
394
  jQuery("#mec_notifications_new_event_content-tmce").click();
395
 
396
  // Add loading Class to the button
397
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
398
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
399
  var notifications = jQuery("#mec_notifications_form").serialize();
400
  jQuery.ajax(
401
  {
406
  {
407
  // Remove the loading Class to the button
408
  setTimeout(function(){
409
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
410
  jQuery('.wns-saved-settings').remove();
411
  }, 1000);
412
  },
414
  {
415
  // Remove the loading Class to the button
416
  setTimeout(function(){
417
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
418
  jQuery('.wns-saved-settings').remove();
419
  }, 1000);
420
  }
app/features/mec/regform.php CHANGED
@@ -16,7 +16,7 @@ $reg_fields = $this->main->get_reg_fields();
16
  <i class="sl-arrow-down"></i>
17
  </span>
18
  <i class="mec-sl-settings"></i>
19
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
20
  </a>
21
  </li>
22
 
@@ -25,14 +25,14 @@ $reg_fields = $this->main->get_reg_fields();
25
  <li class="wns-be-group-menu-li active">
26
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
27
  <i class="mec-sl-layers"></i>
28
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
29
  </a>
30
  </li>
31
 
32
  <li class="wns-be-group-menu-li">
33
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
34
  <i class="mec-sl-wallet"></i>
35
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
36
  </a>
37
  </li>
38
  <?php endif;?>
@@ -40,35 +40,35 @@ $reg_fields = $this->main->get_reg_fields();
40
  <li class="wns-be-group-menu-li">
41
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
42
  <i class="mec-sl-envelope"></i>
43
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
44
  </a>
45
  </li>
46
 
47
  <li class="wns-be-group-menu-li">
48
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
49
  <i class="mec-sl-equalizer"></i>
50
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
51
  </a>
52
  </li>
53
 
54
  <li class="wns-be-group-menu-li">
55
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
56
  <i class="mec-sl-wrench"></i>
57
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
58
  </a>
59
  </li>
60
 
61
  <li class="wns-be-group-menu-li">
62
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
63
  <i class="mec-sl-bubble"></i>
64
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
65
  </a>
66
  </li>
67
 
68
  <li class="wns-be-group-menu-li">
69
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
70
  <i class="mec-sl-support"></i>
71
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
72
  </a>
73
  </li>
74
 
@@ -85,7 +85,7 @@ $reg_fields = $this->main->get_reg_fields();
85
 
86
  <div id="wns-be-content">
87
  <div class="wns-be-group-tab">
88
- <h2><?php _e('Booking Form', 'mec'); ?></h2>
89
  <div class="mec-container">
90
  <form id="mec_reg_fields_form">
91
  <div class="mec-form-row" id="mec_reg_form_container">
@@ -114,20 +114,20 @@ $reg_fields = $this->main->get_reg_fields();
114
  ?>
115
  </ul>
116
  <div id="mec_reg_form_field_types">
117
- <button type="button" class="button" data-type="text"><?php _e('Text', 'mec'); ?></button>
118
- <button type="button" class="button" data-type="email"><?php _e('Email', 'mec'); ?></button>
119
- <button type="button" class="button" data-type="tel"><?php _e('Tel', 'mec'); ?></button>
120
- <button type="button" class="button" data-type="textarea"><?php _e('Textarea', 'mec'); ?></button>
121
- <button type="button" class="button" data-type="checkbox"><?php _e('Checkboxes', 'mec'); ?></button>
122
- <button type="button" class="button" data-type="radio"><?php _e('Radio Buttons', 'mec'); ?></button>
123
- <button type="button" class="button" data-type="select"><?php _e('Dropdown', 'mec'); ?></button>
124
- <button type="button" class="button" data-type="agreement"><?php _e('Agreement', 'mec'); ?></button>
125
- <button type="button" class="button" data-type="p"><?php _e('Paragraph', 'mec'); ?></button>
126
  </div>
127
  </div>
128
  <div class="mec-form-row">
129
  <?php wp_nonce_field('mec_options_form'); ?>
130
- <button style="display: none;" id="mec_reg_fields_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
131
  </div>
132
  </form>
133
  </div>
@@ -187,8 +187,8 @@ jQuery("#mec_reg_fields_form").on('submit', function(event)
187
  event.preventDefault();
188
 
189
  // Add loading Class to the button
190
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
191
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
192
 
193
  var fields = jQuery("#mec_reg_fields_form").serialize();
194
  jQuery.ajax(
@@ -200,7 +200,7 @@ jQuery("#mec_reg_fields_form").on('submit', function(event)
200
  {
201
  // Remove the loading Class to the button
202
  setTimeout(function(){
203
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
204
  jQuery('.wns-saved-settings').remove();
205
  }, 1000);
206
  },
@@ -208,7 +208,7 @@ jQuery("#mec_reg_fields_form").on('submit', function(event)
208
  {
209
  // Remove the loading Class to the button
210
  setTimeout(function(){
211
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
212
  jQuery('.wns-saved-settings').remove();
213
  }, 1000);
214
  }
16
  <i class="sl-arrow-down"></i>
17
  </span>
18
  <i class="mec-sl-settings"></i>
19
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
20
  </a>
21
  </li>
22
 
25
  <li class="wns-be-group-menu-li active">
26
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
27
  <i class="mec-sl-layers"></i>
28
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
29
  </a>
30
  </li>
31
 
32
  <li class="wns-be-group-menu-li">
33
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
34
  <i class="mec-sl-wallet"></i>
35
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
36
  </a>
37
  </li>
38
  <?php endif;?>
40
  <li class="wns-be-group-menu-li">
41
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
42
  <i class="mec-sl-envelope"></i>
43
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
44
  </a>
45
  </li>
46
 
47
  <li class="wns-be-group-menu-li">
48
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
49
  <i class="mec-sl-equalizer"></i>
50
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
51
  </a>
52
  </li>
53
 
54
  <li class="wns-be-group-menu-li">
55
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
56
  <i class="mec-sl-wrench"></i>
57
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
58
  </a>
59
  </li>
60
 
61
  <li class="wns-be-group-menu-li">
62
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
63
  <i class="mec-sl-bubble"></i>
64
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
65
  </a>
66
  </li>
67
 
68
  <li class="wns-be-group-menu-li">
69
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
70
  <i class="mec-sl-support"></i>
71
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
72
  </a>
73
  </li>
74
 
85
 
86
  <div id="wns-be-content">
87
  <div class="wns-be-group-tab">
88
+ <h2><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></h2>
89
  <div class="mec-container">
90
  <form id="mec_reg_fields_form">
91
  <div class="mec-form-row" id="mec_reg_form_container">
114
  ?>
115
  </ul>
116
  <div id="mec_reg_form_field_types">
117
+ <button type="button" class="button" data-type="text"><?php _e('Text', 'modern-events-calendar-lite'); ?></button>
118
+ <button type="button" class="button" data-type="email"><?php _e('Email', 'modern-events-calendar-lite'); ?></button>
119
+ <button type="button" class="button" data-type="tel"><?php _e('Tel', 'modern-events-calendar-lite'); ?></button>
120
+ <button type="button" class="button" data-type="textarea"><?php _e('Textarea', 'modern-events-calendar-lite'); ?></button>
121
+ <button type="button" class="button" data-type="checkbox"><?php _e('Checkboxes', 'modern-events-calendar-lite'); ?></button>
122
+ <button type="button" class="button" data-type="radio"><?php _e('Radio Buttons', 'modern-events-calendar-lite'); ?></button>
123
+ <button type="button" class="button" data-type="select"><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></button>
124
+ <button type="button" class="button" data-type="agreement"><?php _e('Agreement', 'modern-events-calendar-lite'); ?></button>
125
+ <button type="button" class="button" data-type="p"><?php _e('Paragraph', 'modern-events-calendar-lite'); ?></button>
126
  </div>
127
  </div>
128
  <div class="mec-form-row">
129
  <?php wp_nonce_field('mec_options_form'); ?>
130
+ <button style="display: none;" id="mec_reg_fields_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
131
  </div>
132
  </form>
133
  </div>
187
  event.preventDefault();
188
 
189
  // Add loading Class to the button
190
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
191
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
192
 
193
  var fields = jQuery("#mec_reg_fields_form").serialize();
194
  jQuery.ajax(
200
  {
201
  // Remove the loading Class to the button
202
  setTimeout(function(){
203
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
204
  jQuery('.wns-saved-settings').remove();
205
  }, 1000);
206
  },
208
  {
209
  // Remove the loading Class to the button
210
  setTimeout(function(){
211
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
212
  jQuery('.wns-saved-settings').remove();
213
  }, 1000);
214
  }
app/features/mec/settings.php CHANGED
@@ -13,7 +13,12 @@ $currencies = $this->main->get_currencies();
13
  $pages = get_pages();
14
 
15
  // Verify the Purchase Code
16
- $verify = $envato->get_MEC_info('dl');
 
 
 
 
 
17
  ?>
18
  <div class="wns-be-container">
19
  <div class="wns-be-sidebar">
@@ -26,146 +31,146 @@ $verify = $envato->get_MEC_info('dl');
26
  <i class="sl-arrow-down"></i>
27
  </span>
28
  <i class="mec-sl-settings"></i>
29
- <span class="wns-be-group-menu-title"><?php echo __('Settings', 'mec'); ?></span>
30
  </a>
31
 
32
  <ul id="" class="subsection" style="display: block;">
33
 
34
  <li id="" class="pr-be-group-menu-li">
35
  <a href="#general_option" id="" class="wns-be-group-tab-link-a">
36
- <span class="pr-be-group-menu-title"><?php _e('General Options', 'mec'); ?></span>
37
  </a>
38
  </li>
39
 
40
  <li id="" class="pr-be-group-menu-li">
41
  <a href="#archive_options" id="" class="wns-be-group-tab-link-a">
42
- <span class="pr-be-group-menu-title"><?php _e('Archive Page Options', 'mec'); ?></span>
43
  </a>
44
  </li>
45
 
46
  <li id="" class="pr-be-group-menu-li">
47
  <a href="#slug_option" id="" class="wns-be-group-tab-link-a">
48
- <span class="pr-be-group-menu-title"><?php _e('Slugs/Permalinks', 'mec'); ?></span>
49
  </a>
50
  </li>
51
 
52
  <li id="" class="pr-be-group-menu-li">
53
  <a href="#event_options" id="" class="wns-be-group-tab-link-a">
54
- <span class="pr-be-group-menu-title"><?php _e('Event Details/Single Event Page', 'mec'); ?></span>
55
  </a>
56
  </li>
57
 
58
  <li id="" class="pr-be-group-menu-li">
59
  <a href="#currency_option" id="" class="wns-be-group-tab-link-a">
60
- <span class="pr-be-group-menu-title"><?php _e('Currency Options', 'mec'); ?></span>
61
  </a>
62
  </li>
63
 
64
  <li id="" class="pr-be-group-menu-li">
65
  <a href="#googlemap_option" id="" class="wns-be-group-tab-link-a">
66
- <span class="pr-be-group-menu-title"><?php _e('Google Maps Options', 'mec'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li id="" class="pr-be-group-menu-li">
71
  <a href="#recaptcha_option" id="" class="wns-be-group-tab-link-a">
72
- <span class="pr-be-group-menu-title"><?php _e('Google Recaptcha Options', 'mec'); ?></span>
73
  </a>
74
  </li>
75
 
76
  <li id="" class="pr-be-group-menu-li">
77
  <a href="#export_module_option" id="" class="wns-be-group-tab-link-a">
78
- <span class="pr-be-group-menu-title"><?php _e('Export Module Options', 'mec'); ?></span>
79
  </a>
80
  </li>
81
 
82
  <li id="" class="pr-be-group-menu-li">
83
  <a href="#time_module_option" id="" class="wns-be-group-tab-link-a">
84
- <span class="pr-be-group-menu-title"><?php _e('Local Time Module', 'mec'); ?></span>
85
  </a>
86
  </li>
87
 
88
  <li id="" class="pr-be-group-menu-li">
89
  <a href="#qrcode_module_option" id="" class="wns-be-group-tab-link-a">
90
- <span class="pr-be-group-menu-title"><?php _e('QR Code Module', 'mec'); ?></span>
91
  </a>
92
  </li>
93
 
94
  <li id="" class="pr-be-group-menu-li">
95
  <a href="#weather_module_option" id="" class="wns-be-group-tab-link-a">
96
- <span class="pr-be-group-menu-title"><?php _e('Weather Module', 'mec'); ?></span>
97
  </a>
98
  </li>
99
 
100
  <li id="" class="pr-be-group-menu-li">
101
  <a href="#countdown_option" id="" class="wns-be-group-tab-link-a">
102
- <span class="pr-be-group-menu-title"><?php _e('Countdown Options', 'mec'); ?></span>
103
  </a>
104
  </li>
105
 
106
  <li id="" class="pr-be-group-menu-li">
107
  <a href="#social_options" id="" class="wns-be-group-tab-link-a">
108
- <span class="pr-be-group-menu-title"><?php _e('Social Networks', 'mec'); ?></span>
109
  </a>
110
  </li>
111
 
112
  <li id="" class="pr-be-group-menu-li">
113
  <a href="#next_event_option" id="" class="wns-be-group-tab-link-a">
114
- <span class="pr-be-group-menu-title"><?php _e('Next Event Module', 'mec'); ?></span>
115
  </a>
116
  </li>
117
 
118
  <li id="" class="pr-be-group-menu-li">
119
  <a href="#fes_option" id="" class="wns-be-group-tab-link-a">
120
- <span class="pr-be-group-menu-title"><?php _e('Frontend Event Submission', 'mec'); ?></span>
121
  </a>
122
  </li>
123
 
124
  <li id="" class="pr-be-group-menu-li">
125
  <a href="#exceptional_option" id="" class="wns-be-group-tab-link-a">
126
- <span class="pr-be-group-menu-title"><?php _e('Exceptional Days', 'mec'); ?></span>
127
  </a>
128
  </li>
129
 
130
  <li id="" class="pr-be-group-menu-li">
131
  <a href="#additional_organizers" id="" class="wns-be-group-tab-link-a">
132
- <span class="pr-be-group-menu-title"><?php _e('Additional Organizers', 'mec'); ?></span>
133
  </a>
134
  </li>
135
 
136
  <li id="" class="pr-be-group-menu-li">
137
  <a href="#booking_option" id="" class="wns-be-group-tab-link-a">
138
- <span class="pr-be-group-menu-title"><?php _e('Booking', 'mec'); ?></span>
139
  </a>
140
  </li>
141
 
142
  <li id="" class="pr-be-group-menu-li">
143
  <a href="#coupon_option" id="" class="wns-be-group-tab-link-a">
144
- <span class="pr-be-group-menu-title"><?php _e('Coupons', 'mec'); ?></span>
145
  </a>
146
  </li>
147
 
148
  <li id="" class="pr-be-group-menu-li">
149
  <a href="#taxes_option" id="" class="wns-be-group-tab-link-a">
150
- <span class="pr-be-group-menu-title"><?php _e('Taxes / Fees', 'mec'); ?></span>
151
  </a>
152
  </li>
153
 
154
  <li id="" class="pr-be-group-menu-li">
155
  <a href="#buddy_option" id="" class="wns-be-group-tab-link-a">
156
- <span class="pr-be-group-menu-title"><?php _e('BuddyPress Integration', 'mec'); ?></span>
157
  </a>
158
  </li>
159
 
160
  <li id="" class="pr-be-group-menu-li">
161
  <a href="#mailchimp_option" id="" class="wns-be-group-tab-link-a">
162
- <span class="pr-be-group-menu-title"><?php _e('Mailchimp Integration', 'mec'); ?></span>
163
  </a>
164
  </li>
165
 
166
  <li id="" class="pr-be-group-menu-li">
167
  <a href="#avtivation_option" id="" class="wns-be-group-tab-link-a">
168
- <span class="pr-be-group-menu-title"><?php _e('MEC Activation', 'mec'); ?></span>
169
  </a>
170
  </li>
171
 
@@ -177,14 +182,14 @@ $verify = $envato->get_MEC_info('dl');
177
  <li class="wns-be-group-menu-li">
178
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
179
  <i class="mec-sl-layers"></i>
180
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
181
  </a>
182
  </li>
183
 
184
  <li class="wns-be-group-menu-li">
185
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
186
  <i class="mec-sl-wallet"></i>
187
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
188
  </a>
189
  </li>
190
 
@@ -194,35 +199,35 @@ $verify = $envato->get_MEC_info('dl');
194
  <li class="wns-be-group-menu-li">
195
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
196
  <i class="mec-sl-envelope"></i>
197
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
198
  </a>
199
  </li>
200
 
201
  <li class="wns-be-group-menu-li">
202
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
203
  <i class="mec-sl-equalizer"></i>
204
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
205
  </a>
206
  </li>
207
 
208
  <li class="wns-be-group-menu-li">
209
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
210
  <i class="mec-sl-wrench"></i>
211
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
212
  </a>
213
  </li>
214
 
215
  <li class="wns-be-group-menu-li">
216
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
217
  <i class="mec-sl-bubble"></i>
218
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
219
  </a>
220
  </li>
221
 
222
  <li class="wns-be-group-menu-li">
223
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
224
  <i class="mec-sl-support"></i>
225
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
226
  </a>
227
  </li>
228
 
@@ -230,7 +235,7 @@ $verify = $envato->get_MEC_info('dl');
230
  </div>
231
 
232
  <div class="wns-be-main">
233
- <div id="wns-be-infobar"><a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'mec'); ?></a></div>
234
 
235
  <div id="wns-be-notification"></div>
236
 
@@ -242,70 +247,70 @@ $verify = $envato->get_MEC_info('dl');
242
 
243
  <div id="general_option" class="mec-options-fields">
244
 
245
- <h2><?php _e('Settings', 'mec'); ?></h2>
246
 
247
- <h4 class="mec-form-subtitle"><?php _e('General Options', 'mec'); ?></h4>
248
 
249
  <div class="mec-form-row">
250
- <label class="mec-col-3" for="mec_settings_time_format"><?php _e('Time Format', 'mec'); ?></label>
251
  <div class="mec-col-4">
252
  <select id="mec_settings_time_format" name="mec[settings][time_format]">
253
- <option value="12" <?php if(isset($settings['time_format']) and '12' == $settings['time_format']) echo 'selected="selected"'; ?>><?php _e('12 hours format with AM/PM', 'mec'); ?></option>
254
- <option value="24" <?php if(isset($settings['time_format']) and '24' == $settings['time_format']) echo 'selected="selected"'; ?>><?php _e('24 hours format', 'mec'); ?></option>
255
  </select>
256
- <a class="mec-tooltip" title="<?php esc_attr_e("This option is for showing start/end time of events on frontend of website.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
257
  </div>
258
  </div>
259
 
260
  <div class="mec-form-row">
261
- <label class="mec-col-3" for="mec_settings_hide_time_method"><?php _e('Hide Events', 'mec'); ?></label>
262
  <div class="mec-col-4">
263
  <select id="mec_settings_time_format" name="mec[settings][hide_time_method]">
264
- <option value="start" <?php if(isset($settings['hide_time_method']) and 'start' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('On Event Start', 'mec'); ?></option>
265
- <option value="plus1" <?php if(isset($settings['hide_time_method']) and 'plus1' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('+1 Hour after start', 'mec'); ?></option>
266
- <option value="plus2" <?php if(isset($settings['hide_time_method']) and 'plus2' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('+2 Hours after start', 'mec'); ?></option>
267
- <option value="end" <?php if(isset($settings['hide_time_method']) and 'end' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('On Event End', 'mec'); ?></option>
268
  </select>
269
- <a class="mec-tooltip" title="<?php esc_attr_e("This option is for showing start/end time of events on frontend of website.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
270
  </div>
271
  </div>
272
 
273
  <div class="mec-form-row">
274
 
275
- <label class="mec-col-3" for="mec_settings_multiple_day_show_method"><?php _e('Multiple Day Events', 'mec'); ?></label>
276
  <div class="mec-col-4">
277
  <select id="mec_settings_multiple_day_show_method" name="mec[settings][multiple_day_show_method]">
278
- <option value="first_day_listgrid" <?php if(isset($settings['multiple_day_show_method']) and $settings['multiple_day_show_method'] == 'first_day_listgrid') echo 'selected="selected"'; ?>><?php _e('Show only first day on List/Grid/Slider skins', 'mec'); ?></option>
279
- <option value="first_day" <?php if(isset($settings['multiple_day_show_method']) and $settings['multiple_day_show_method'] == 'first_day') echo 'selected="selected"'; ?>><?php _e('Show only first day on all skins', 'mec'); ?></option>
280
- <option value="all_days" <?php if(isset($settings['multiple_day_show_method']) and $settings['multiple_day_show_method'] == 'all_days') echo 'selected="selected"'; ?>><?php _e('Show all days', 'mec'); ?></option>
281
  </select>
282
- <a class="mec-tooltip" title="<?php esc_attr_e("For showing all days of multiple day events on frontend or only show the first day.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
283
  </div>
284
 
285
  </div>
286
 
287
  <div class="mec-form-row">
288
- <label class="mec-col-3" for="mec_settings_remove_data_on_uninstall"><?php _e('Remove MEC Data on Plugin Uninstall', 'mec'); ?></label>
289
  <div class="mec-col-4">
290
  <select id="mec_settings_remove_data_on_uninstall" name="mec[settings][remove_data_on_uninstall]">
291
- <option value="0" <?php if(isset($settings['remove_data_on_uninstall']) and !$settings['remove_data_on_uninstall']) echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
292
- <option value="1" <?php if(isset($settings['remove_data_on_uninstall']) and $settings['remove_data_on_uninstall'] == '1') echo 'selected="selected"'; ?>><?php _e('Enabled', 'mec'); ?></option>
293
  </select>
294
  </div>
295
  </div>
296
 
297
  <div class="mec-form-row">
298
- <label class="mec-col-3"><?php _e('Exclude Date Suffix', 'mec'); ?></label>
299
  <label>
300
  <input type="hidden" name="mec[settings][date_suffix]" value="0" />
301
- <input value="1" type="checkbox" name="mec[settings][date_suffix]" <?php if(isset($settings['date_suffix']) and $settings['date_suffix']) echo 'checked="checked"'; ?> /> <?php _e('Remove suffix from calendars', 'mec'); ?>
302
  </label>
303
  </div>
304
 
305
  <?php $weekdays = $this->main->get_weekday_i18n_labels(); ?>
306
  <div class="mec-form-row">
307
 
308
- <label class="mec-col-3" for="mec_settings_weekdays"><?php _e('Weekdays', 'mec'); ?></label>
309
  <div class="mec-col-8">
310
  <?php $mec_weekdays = $this->main->get_weekdays(); foreach($weekdays as $weekday): ?>
311
  <label for="mec_settings_weekdays_<?php echo $weekday[0]; ?>">
@@ -313,14 +318,14 @@ $verify = $envato->get_MEC_info('dl');
313
  <?php echo $weekday[1]; ?>
314
  </label>
315
  <?php endforeach; ?>
316
- <a class="mec-tooltip" title="<?php esc_attr_e('Proceed with caution. Default is set to Monday, Tuesday, Wednesday, Thursday and Friday.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
317
  </div>
318
 
319
  </div>
320
 
321
  <div class="mec-form-row">
322
 
323
- <label class="mec-col-3" for="mec_settings_weekends"><?php _e('Weekends', 'mec'); ?></label>
324
  <div class="mec-col-8">
325
  <?php $mec_weekends = $this->main->get_weekends(); foreach($weekdays as $weekday): ?>
326
  <label for="mec_settings_weekends_<?php echo $weekday[0]; ?>">
@@ -328,7 +333,7 @@ $verify = $envato->get_MEC_info('dl');
328
  <?php echo $weekday[1]; ?>
329
  </label>
330
  <?php endforeach; ?>
331
- <a class="mec-tooltip" title="<?php esc_attr_e('Proceed with caution. Default is set to Saturday and Sunday.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
332
  </div>
333
 
334
  </div>
@@ -336,59 +341,59 @@ $verify = $envato->get_MEC_info('dl');
336
  </div>
337
 
338
  <div id="archive_options" class="mec-options-fields">
339
- <h4 class="mec-form-subtitle"><?php _e('Archive Pages', 'mec'); ?></h4>
340
 
341
  <div class="mec-form-row">
342
- <label class="mec-col-3" for="mec_settings_archive_title"><?php _e('Archive Page Title', 'mec'); ?></label>
343
  <div class="mec-col-4">
344
  <input type="text" id="mec_settings_archive_title" name="mec[settings][archive_title]" value="<?php echo ((isset($settings['archive_title']) and trim($settings['archive_title']) != '') ? $settings['archive_title'] : 'Events'); ?>" />
345
- <a class="mec-tooltip" title="<?php esc_attr_e("Default value is Events", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
346
  </div>
347
  </div>
348
 
349
  <div class="mec-form-row">
350
- <label class="mec-col-3" for="mec_settings_default_skin_archive"><?php _e('Archive Page Skin', 'mec'); ?></label>
351
  <div class="mec-col-4">
352
  <select id="mec_settings_default_skin_archive" name="mec[settings][default_skin_archive]">
353
  <?php foreach($archive_skins as $archive_skin): ?>
354
  <option value="<?php echo $archive_skin['skin']; ?>" <?php if(isset($settings['default_skin_archive']) and $archive_skin['skin'] == $settings['default_skin_archive']) echo 'selected="selected"'; ?>><?php echo $archive_skin['name']; ?></option>
355
  <?php endforeach; ?>
356
  </select>
357
- <a class="mec-tooltip" title="<?php esc_attr_e("Default value is Calendar/Monthly View", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
358
  </div>
359
  </div>
360
 
361
  <div class="mec-form-row">
362
- <label class="mec-col-3" for="mec_settings_default_skin_category"><?php _e('Category Page Skin', 'mec'); ?></label>
363
  <div class="mec-col-4">
364
  <select id="mec_settings_default_skin_category" name="mec[settings][default_skin_category]">
365
  <?php foreach($archive_skins as $archive_skin): ?>
366
  <option value="<?php echo $archive_skin['skin']; ?>" <?php if(isset($settings['default_skin_category']) and $archive_skin['skin'] == $settings['default_skin_category']) echo 'selected="selected"'; if(!isset($settings['default_skin_category']) and $archive_skin['skin'] == 'list') echo 'selected="selected"'; ?>><?php echo $archive_skin['name']; ?></option>
367
  <?php endforeach; ?>
368
  </select>
369
- <a class="mec-tooltip" title="<?php esc_attr_e("Default value is List View", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
370
  </div>
371
  </div>
372
 
373
  <div class="mec-form-row">
374
- <label class="mec-col-3" for="mec_settings_category_events_method"><?php _e('Category Events Method', 'mec'); ?></label>
375
  <div class="mec-col-4">
376
  <select id="mec_settings_category_events_method" name="mec[settings][category_events_method]">
377
- <option value="1" <?php if(!isset($settings['category_events_method']) or (isset($settings['category_events_method']) and $settings['category_events_method'] == 1)) echo 'selected="selected"'; ?>><?php _e('Upcoming Events', 'mec'); ?></option>
378
- <option value="2" <?php if(isset($settings['category_events_method']) and $settings['category_events_method'] == 2) echo 'selected="selected"'; ?>><?php _e('Expired Events', 'mec'); ?></option>
379
  </select>
380
- <a class="mec-tooltip" title="<?php esc_attr_e("Default value is Upcoming Events", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
381
  </div>
382
  </div>
383
 
384
  <div class="mec-form-row">
385
- <label class="mec-col-3" for="mec_settings_archive_status"><?php _e('Events Archive Status', 'mec'); ?></label>
386
  <div class="mec-col-4">
387
  <select id="mec_settings_archive_status" name="mec[settings][archive_status]">
388
- <option value="1" <?php if(isset($settings['archive_status']) and $settings['archive_status'] == '1') echo 'selected="selected"'; ?>><?php _e('Enabled (Recommended)', 'mec'); ?></option>
389
- <option value="0" <?php if(isset($settings['archive_status']) and !$settings['archive_status']) echo 'selected="selected"'; ?>><?php _e('Disabled', 'mec'); ?></option>
390
  </select>
391
- <a class="mec-tooltip" title="<?php esc_attr_e("If you disable it, then you should create a page as archive page of MEC. Page's slug must equals to \"Main Slug\" of MEC. Also it will disable all of MEC rewrite rules.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
392
  </div>
393
  </div>
394
 
@@ -396,19 +401,19 @@ $verify = $envato->get_MEC_info('dl');
396
 
397
  <div id="slug_option" class="mec-options-fields">
398
 
399
- <h4 class="mec-form-subtitle"><?php _e('Slugs/Permalinks', 'mec'); ?></h4>
400
  <div class="mec-form-row">
401
- <label class="mec-col-3" for="mec_settings_slug"><?php _e('Main Slug', 'mec'); ?></label>
402
  <div class="mec-col-4">
403
  <input type="text" id="mec_settings_slug" name="mec[settings][slug]" value="<?php echo ((isset($settings['slug']) and trim($settings['slug']) != '') ? $settings['slug'] : 'events'); ?>" />
404
- <a class="mec-tooltip" title="<?php esc_attr_e("Default value is events. Valid characters are lowercase a-z, - character and numbers.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
405
  </div>
406
  </div>
407
  <div class="mec-form-row">
408
- <label class="mec-col-3" for="mec_settings_category_slug"><?php _e('Category Slug', 'mec'); ?></label>
409
  <div class="mec-col-4">
410
  <input type="text" id="mec_settings_category_slug" name="mec[settings][category_slug]" value="<?php echo ((isset($settings['category_slug']) and trim($settings['category_slug']) != '') ? $settings['category_slug'] : 'mec-category'); ?>" />
411
- <a class="mec-tooltip" title="<?php esc_attr_e("It's slug of MEC categories, you can change it to events-cat or something else. Default value is mec-category. Valid characters are lowercase a-z, - character and numbers.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
412
  </div>
413
  </div>
414
 
@@ -416,41 +421,41 @@ $verify = $envato->get_MEC_info('dl');
416
 
417
  <div id="event_options" class="mec-options-fields">
418
 
419
- <h4 class="mec-form-subtitle"><?php _e('Event Details/Single Event Page', 'mec'); ?></h4>
420
  <div class="mec-form-row">
421
- <label class="mec-col-3" for="mec_settings_single_event_date_format1"><?php _e('Single Event Date Format', 'mec'); ?></label>
422
  <div class="mec-col-4">
423
  <input type="text" id="mec_settings_single_event_date_format1" name="mec[settings][single_date_format1]" value="<?php echo ((isset($settings['single_date_format1']) and trim($settings['single_date_format1']) != '') ? $settings['single_date_format1'] : 'M d Y'); ?>" />
424
- <a class="mec-tooltip" title="<?php esc_attr_e('Default is M d Y', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
425
  </div>
426
  </div>
427
  <div class="mec-form-row">
428
- <label class="mec-col-3" for="mec_settings_single_event_date_method"><?php _e('Date Method', 'mec'); ?></label>
429
  <div class="mec-col-4">
430
  <select id="mec_settings_single_event_date_method" name="mec[settings][single_date_method]">
431
- <option value="next" <?php echo (isset($settings['single_date_method']) and $settings['single_date_method'] == 'next') ? 'selected="selected"' : ''; ?>><?php _e('Next occurrence date', 'mec'); ?></option>
432
- <option value="referred" <?php echo (isset($settings['single_date_method']) and $settings['single_date_method'] == 'referred') ? 'selected="selected"' : ''; ?>><?php _e('Referred date', 'mec'); ?></option>
433
  </select>
434
- <a class="mec-tooltip" title="<?php esc_attr_e('"Referred date" shows the event date based on referred date in event list.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
435
  </div>
436
  </div>
437
  <div class="mec-form-row">
438
- <label class="mec-col-3" for="mec_settings_single_event_single_style"><?php _e('Single Event Style', 'mec'); ?></label>
439
  <div class="mec-col-4">
440
  <select id="mec_settings_single_event_single_style" name="mec[settings][single_single_style]">
441
- <option value="default" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default') ? 'selected="selected"' : ''; ?>><?php _e('Default Style', 'mec'); ?></option>
442
- <option value="modern" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'modern') ? 'selected="selected"' : ''; ?>><?php _e('Modern Style', 'mec'); ?></option>
443
  </select>
444
- <a class="mec-tooltip" title="<?php esc_attr_e('Choose your single event style.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
445
  </div>
446
  </div>
447
 
448
  </div>
449
  <div id="currency_option" class="mec-options-fields">
450
 
451
- <h4 class="mec-form-subtitle"><?php _e('Currency Options', 'mec'); ?></h4>
452
  <div class="mec-form-row">
453
- <label class="mec-col-3" for="mec_settings_currency"><?php _e('Currency', 'mec'); ?></label>
454
  <div class="mec-col-4">
455
  <select name="mec[settings][currency]" id="mec_settings_currency" onchange="jQuery('#mec_settings_currency_symptom_container .mec-settings-currency-symptom-prev').html(this.value);">
456
  <?php foreach($currencies as $currency=>$currency_name): ?>
@@ -460,29 +465,29 @@ $verify = $envato->get_MEC_info('dl');
460
  </div>
461
  </div>
462
  <div class="mec-form-row">
463
- <label class="mec-col-3" for="mec_settings_currency_symptom"><?php _e('Currency Sign', 'mec'); ?></label>
464
  <div class="mec-col-4">
465
  <input type="text" name="mec[settings][currency_symptom]" id="mec_settings_currency_symptom" value="<?php echo (isset($settings['currency_symptom']) ? $settings['currency_symptom'] : ''); ?>" />
466
- <a class="mec-tooltip" title="<?php esc_attr_e("Default value will be \"currency\" if you leave it empty.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
467
  </div>
468
  </div>
469
  <div class="mec-form-row">
470
- <label class="mec-col-3" for="mec_settings_currency_sign"><?php _e('Currency Position', 'mec'); ?></label>
471
  <div class="mec-col-4">
472
  <select name="mec[settings][currency_sign]" id="mec_settings_currency_sign">
473
- <option value="before" <?php echo ((isset($settings['currency_sign']) and $settings['currency_sign'] == 'before') ? 'selected="selected"' : ''); ?>><?php _e('Before $10', 'mec'); ?></option>
474
- <option value="after" <?php echo ((isset($settings['currency_sign']) and $settings['currency_sign'] == 'after') ? 'selected="selected"' : ''); ?>><?php _e('After 10$', 'mec'); ?></option>
475
  </select>
476
  </div>
477
  </div>
478
  <div class="mec-form-row">
479
- <label class="mec-col-3" for="mec_settings_thousand_separator"><?php _e('Thousand Separator', 'mec'); ?></label>
480
  <div class="mec-col-4">
481
  <input type="text" name="mec[settings][thousand_separator]" id="mec_settings_thousand_separator" value="<?php echo (isset($settings['thousand_separator']) ? $settings['thousand_separator'] : ','); ?>" />
482
  </div>
483
  </div>
484
  <div class="mec-form-row">
485
- <label class="mec-col-3" for="mec_settings_decimal_separator"><?php _e('Decimal Separator', 'mec'); ?></label>
486
  <div class="mec-col-4">
487
  <input type="text" name="mec[settings][decimal_separator]" id="mec_settings_decimal_separator" value="<?php echo (isset($settings['decimal_separator']) ? $settings['decimal_separator'] : '.'); ?>" />
488
  </div>
@@ -492,7 +497,7 @@ $verify = $envato->get_MEC_info('dl');
492
  <label for="mec_settings_decimal_separator_status">
493
  <input type="hidden" name="mec[settings][decimal_separator_status]" value="1" />
494
  <input type="checkbox" name="mec[settings][decimal_separator_status]" id="mec_settings_decimal_separator_status" <?php echo ((isset($settings['decimal_separator_status']) and $settings['decimal_separator_status'] == '0') ? 'checked="checked"' : ''); ?> value="0" />
495
- <?php _e('No decimal', 'mec'); ?>
496
  </label>
497
  </div>
498
  </div>
@@ -500,42 +505,42 @@ $verify = $envato->get_MEC_info('dl');
500
  </div>
501
 
502
  <div id="googlemap_option" class="mec-options-fields">
503
- <h4 class="mec-form-subtitle"><?php _e('Google Maps Options', 'mec'); ?></h4>
504
 
505
  <?php if(!$this->main->getPRO()): ?>
506
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
507
  <?php else: ?>
508
  <div class="mec-form-row">
509
  <label>
510
  <input type="hidden" name="mec[settings][google_maps_status]" value="0" />
511
- <input onchange="jQuery('#mec_google_maps_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][google_maps_status]" <?php if(isset($settings['google_maps_status']) and $settings['google_maps_status']) echo 'checked="checked"'; ?> /> <?php _e('Show Google Maps on event page', 'mec'); ?>
512
  </label>
513
  </div>
514
  <div id="mec_google_maps_container_toggle" class="<?php if((isset($settings['google_maps_status']) and !$settings['google_maps_status']) or !isset($settings['google_maps_status'])) echo 'mec-util-hidden'; ?>">
515
  <div class="mec-form-row">
516
- <label class="mec-col-3" for="mec_settings_google_maps_api_key"><?php _e('API Key', 'mec'); ?></label>
517
  <div class="mec-col-4">
518
  <input type="text" id="mec_settings_google_maps_api_key" name="mec[settings][google_maps_api_key]" value="<?php echo ((isset($settings['google_maps_api_key']) and trim($settings['google_maps_api_key']) != '') ? $settings['google_maps_api_key'] : ''); ?>" />
519
- <a class="mec-tooltip" title="<?php esc_attr_e("Required!", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
520
  </div>
521
  </div>
522
  <div class="mec-form-row">
523
- <label class="mec-col-3"><?php _e('Zoom level', 'mec'); ?></label>
524
  <div class="mec-col-4">
525
  <select name="mec[settings][google_maps_zoomlevel]">
526
  <?php for($i = 5; $i <= 21; $i++): ?>
527
  <option value="<?php echo $i; ?>" <?php if(isset($settings['google_maps_zoomlevel']) and $settings['google_maps_zoomlevel'] == $i) echo 'selected="selected"'; ?>><?php echo $i; ?></option>
528
  <?php endfor; ?>
529
  </select>
530
- <a class="mec-tooltip" title="<?php esc_attr_e('For Google Maps module in single event page. In Google Maps skin, it will caculate the zoom level automatically based on event boundaries.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
531
  </div>
532
  </div>
533
  <div class="mec-form-row">
534
- <label class="mec-col-3"><?php _e('Google Maps Style', 'mec'); ?></label>
535
  <?php $styles = $this->main->get_googlemap_styles(); ?>
536
  <div class="mec-col-4">
537
  <select name="mec[settings][google_maps_style]">
538
- <option value=""><?php _e('Default', 'mec'); ?></option>
539
  <?php foreach($styles as $style): ?>
540
  <option value="<?php echo $style['key']; ?>" <?php if(isset($settings['google_maps_style']) and $settings['google_maps_style'] == $style['key']) echo 'selected="selected"'; ?>><?php echo $style['name']; ?></option>
541
  <?php endforeach; ?>
@@ -543,30 +548,30 @@ $verify = $envato->get_MEC_info('dl');
543
  </div>
544
  </div>
545
  <div class="mec-form-row">
546
- <label class="mec-col-3"><?php _e('Direction on single event', 'mec'); ?></label>
547
  <div class="mec-col-4">
548
  <select name="mec[settings][google_maps_get_direction_status]">
549
- <option value="0"><?php _e('Disabled', 'mec'); ?></option>
550
- <option value="1" <?php if(isset($settings['google_maps_get_direction_status']) and $settings['google_maps_get_direction_status'] == 1) echo 'selected="selected"'; ?>><?php _e('Simple Method', 'mec'); ?></option>
551
- <option value="2" <?php if(isset($settings['google_maps_get_direction_status']) and $settings['google_maps_get_direction_status'] == 2) echo 'selected="selected"'; ?>><?php _e('Advanced Method', 'mec'); ?></option>
552
  </select>
553
  </div>
554
  </div>
555
  <div class="mec-form-row">
556
- <label class="mec-col-3" for="mec_settings_google_maps_date_format1"><?php _e('Lightbox Date Format', 'mec'); ?></label>
557
  <div class="mec-col-4">
558
  <input type="text" id="mec_settings_google_maps_date_format1" name="mec[settings][google_maps_date_format1]" value="<?php echo ((isset($settings['google_maps_date_format1']) and trim($settings['google_maps_date_format1']) != '') ? $settings['google_maps_date_format1'] : 'M d Y'); ?>" />
559
- <a class="mec-tooltip" title="<?php esc_attr_e('Default value is M d Y', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
560
  </div>
561
  </div>
562
  <div class="mec-form-row">
563
- <label class="mec-col-3"><?php _e('Google Maps API', 'mec'); ?></label>
564
  <div class="mec-col-4">
565
  <label>
566
  <input type="hidden" name="mec[settings][google_maps_dont_load_api]" value="0" />
567
- <input value="1" type="checkbox" name="mec[settings][google_maps_dont_load_api]" <?php if(isset($settings['google_maps_dont_load_api']) and $settings['google_maps_dont_load_api']) echo 'checked="checked"'; ?> /> <?php _e("Don't load Google Maps API library", 'mec'); ?>
568
  </label>
569
- <a class="mec-tooltip" title="<?php esc_attr_e("Check it only if another plugin/theme is loading the Google Maps API", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
570
  </div>
571
  </div>
572
  </div>
@@ -574,34 +579,34 @@ $verify = $envato->get_MEC_info('dl');
574
  </div>
575
 
576
  <div id="recaptcha_option" class="mec-options-fields">
577
- <h4 class="mec-form-subtitle"><?php _e('Google Recaptcha Options', 'mec'); ?></h4>
578
  <div class="mec-form-row">
579
  <label>
580
  <input type="hidden" name="mec[settings][google_recaptcha_status]" value="0" />
581
- <input onchange="jQuery('#mec_google_recaptcha_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][google_recaptcha_status]" <?php if(isset($settings['google_recaptcha_status']) and $settings['google_recaptcha_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Google Recaptcha', 'mec'); ?>
582
  </label>
583
  </div>
584
  <div id="mec_google_recaptcha_container_toggle" class="<?php if((isset($settings['google_recaptcha_status']) and !$settings['google_recaptcha_status']) or !isset($settings['google_recaptcha_status'])) echo 'mec-util-hidden'; ?>">
585
  <div class="mec-form-row">
586
  <label>
587
  <input type="hidden" name="mec[settings][google_recaptcha_booking]" value="0" />
588
- <input value="1" type="checkbox" name="mec[settings][google_recaptcha_booking]" <?php if(isset($settings['google_recaptcha_booking']) and $settings['google_recaptcha_booking']) echo 'checked="checked"'; ?> /> <?php _e('Enable on booking form', 'mec'); ?>
589
  </label>
590
  </div>
591
  <div class="mec-form-row">
592
  <label>
593
  <input type="hidden" name="mec[settings][google_recaptcha_fes]" value="0" />
594
- <input value="1" type="checkbox" name="mec[settings][google_recaptcha_fes]" <?php if(isset($settings['google_recaptcha_fes']) and $settings['google_recaptcha_fes']) echo 'checked="checked"'; ?> /> <?php _e('Enable on "Frontend Event Submittion" form', 'mec'); ?>
595
  </label>
596
  </div>
597
  <div class="mec-form-row">
598
- <label class="mec-col-3" for="mec_settings_google_recaptcha_sitekey"><?php _e('Site Key', 'mec'); ?></label>
599
  <div class="mec-col-4">
600
  <input type="text" id="mec_settings_google_recaptcha_sitekey" name="mec[settings][google_recaptcha_sitekey]" value="<?php echo ((isset($settings['google_recaptcha_sitekey']) and trim($settings['google_recaptcha_sitekey']) != '') ? $settings['google_recaptcha_sitekey'] : ''); ?>" />
601
  </div>
602
  </div>
603
  <div class="mec-form-row">
604
- <label class="mec-col-3" for="mec_settings_google_recaptcha_secretkey"><?php _e('Secret Key', 'mec'); ?></label>
605
  <div class="mec-col-4">
606
  <input type="text" id="mec_settings_google_recaptcha_secretkey" name="mec[settings][google_recaptcha_secretkey]" value="<?php echo ((isset($settings['google_recaptcha_secretkey']) and trim($settings['google_recaptcha_secretkey']) != '') ? $settings['google_recaptcha_secretkey'] : ''); ?>" />
607
  </div>
@@ -611,18 +616,18 @@ $verify = $envato->get_MEC_info('dl');
611
  </div>
612
 
613
  <div id="export_module_option" class="mec-options-fields">
614
- <h4 class="mec-form-subtitle"><?php _e('Export Module Options', 'mec'); ?></h4>
615
  <div class="mec-form-row">
616
  <label>
617
  <input type="hidden" name="mec[settings][export_module_status]" value="0" />
618
- <input onchange="jQuery('#mec_export_module_options_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][export_module_status]" <?php if(isset($settings['export_module_status']) and $settings['export_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show export module (iCal export and add to Google calendars) on event page', 'mec'); ?>
619
  </label>
620
  </div>
621
  <div id="mec_export_module_options_container_toggle" class="<?php if((isset($settings['export_module_status']) and !$settings['export_module_status']) or !isset($settings['export_module_status'])) echo 'mec-util-hidden'; ?>">
622
  <div class="mec-form-row">
623
  <ul id="mec_export_module_options" class="mec-form-row">
624
  <?php
625
- $event_options = array('googlecal'=>__('Google Calendar', 'mec'), 'ical'=>__('iCal', 'mec'));
626
  foreach($event_options as $event_key=>$event_option): ?>
627
  <li id="mec_sn_<?php echo esc_attr($event_key); ?>" data-id="<?php echo esc_attr($event_key); ?>" class="mec-form-row mec-switcher <?php echo ((isset($settings['sn'][$event_key]) and $settings['sn'][$event_key]) ? 'mec-enabled' : 'mec-disabled'); ?>">
628
  <label class="mec-col-3"><?php echo esc_html($event_option); ?></label>
@@ -638,11 +643,11 @@ $verify = $envato->get_MEC_info('dl');
638
  </div>
639
 
640
  <div id="time_module_option" class="mec-options-fields">
641
- <h4 class="mec-form-subtitle"><?php _e('Local Time Module', 'mec'); ?></h4>
642
  <div class="mec-form-row">
643
  <label>
644
  <input type="hidden" name="mec[settings][local_time_module_status]" value="0" />
645
- <input onchange="jQuery('#mec_local_time_module_options_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][local_time_module_status]" <?php if(isset($settings['local_time_module_status']) and $settings['local_time_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show event time based on local time of visitor on event page', 'mec'); ?>
646
  </label>
647
  </div>
648
  <div id="mec_local_time_module_options_container_toggle" class="<?php if((isset($settings['local_time_module_status']) and !$settings['local_time_module_status']) or !isset($settings['local_time_module_status'])) echo 'mec-util-hidden'; ?>">
@@ -650,15 +655,15 @@ $verify = $envato->get_MEC_info('dl');
650
  </div>
651
 
652
  <div id="qrcode_module_option" class="mec-options-fields">
653
- <h4 class="mec-form-subtitle"><?php _e('QR Code Module', 'mec'); ?></h4>
654
 
655
  <?php if(!$this->main->getPRO()): ?>
656
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
657
  <?php else: ?>
658
  <div class="mec-form-row">
659
  <label>
660
  <input type="hidden" name="mec[settings][qrcode_module_status]" value="0" />
661
- <input onchange="jQuery('#mec_qrcode_module_options_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][qrcode_module_status]" <?php if(!isset($settings['qrcode_module_status']) or (isset($settings['qrcode_module_status']) and $settings['qrcode_module_status'])) echo 'checked="checked"'; ?> /> <?php _e('Show QR code of event in details page and booking invoice', 'mec'); ?>
662
  </label>
663
  </div>
664
  <div id="mec_qrcode_module_options_container_toggle" class="<?php if((isset($settings['qrcode_module_status']) and !$settings['qrcode_module_status']) or !isset($settings['qrcode_module_status'])) echo 'mec-util-hidden'; ?>">
@@ -668,23 +673,23 @@ $verify = $envato->get_MEC_info('dl');
668
  </div>
669
 
670
  <div id="weather_module_option" class="mec-options-fields">
671
- <h4 class="mec-form-subtitle"><?php _e('Weather Module', 'mec'); ?></h4>
672
 
673
  <?php if(!$this->main->getPRO()): ?>
674
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
675
  <?php else: ?>
676
  <div class="mec-form-row">
677
  <label>
678
  <input type="hidden" name="mec[settings][weather_module_status]" value="0" />
679
- <input onchange="jQuery('#mec_weather_module_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][weather_module_status]" <?php if(isset($settings['weather_module_status']) and $settings['weather_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show weather module on event page', 'mec'); ?>
680
  </label>
681
  </div>
682
  <div id="mec_weather_module_container_toggle" class="<?php if((isset($settings['weather_module_status']) and !$settings['weather_module_status']) or !isset($settings['weather_module_status'])) echo 'mec-util-hidden'; ?>">
683
  <div class="mec-form-row">
684
- <label class="mec-col-3" for="mec_settings_weather_module_api_key"><?php _e('API Key', 'mec'); ?></label>
685
  <div class="mec-col-8">
686
  <input type="text" name="mec[settings][weather_module_api_key]" id="mec_settings_weather_module_api_key" value="<?php echo ((isset($settings['weather_module_api_key']) and trim($settings['weather_module_api_key']) != '') ? $settings['weather_module_api_key'] : ''); ?>">
687
- <p><?php echo sprintf(__('You can get a free API Key from %s', 'mec'), '<a target="_blank" href="https://darksky.net/dev/register">https://darksky.net/dev/register</a>'); ?></p>
688
  </div>
689
  </div>
690
  </div>
@@ -692,20 +697,20 @@ $verify = $envato->get_MEC_info('dl');
692
  </div>
693
 
694
  <div id="countdown_option" class="mec-options-fields">
695
- <h4 class="mec-form-subtitle"><?php _e('Countdown Options', 'mec'); ?></h4>
696
  <div class="mec-form-row">
697
  <label>
698
  <input type="hidden" name="mec[settings][countdown_status]" value="0" />
699
- <input onchange="jQuery('#mec_count_down_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][countdown_status]" <?php if(isset($settings['countdown_status']) and $settings['countdown_status']) echo 'checked="checked"'; ?> /> <?php _e('Show countdown module on event page', 'mec'); ?>
700
  </label>
701
  </div>
702
  <div id="mec_count_down_container_toggle" class="<?php if((isset($settings['countdown_status']) and !$settings['countdown_status']) or !isset($settings['countdown_status'])) echo 'mec-util-hidden'; ?>">
703
  <div class="mec-form-row">
704
- <label class="mec-col-3" for="mec_settings_countdown_list"><?php _e('Countdown Style', 'mec'); ?></label>
705
  <div class="mec-col-4">
706
  <select id="mec_settings_countdown_list" name="mec[settings][countdown_list]">
707
- <option value="default" <?php echo ((isset($settings['countdown_list']) and $settings['countdown_list'] == "default") ? 'selected="selected"' : ''); ?> ><?php _e('Plain Style', 'mec'); ?></option>
708
- <option value="flip" <?php echo ((isset($settings['countdown_list']) and $settings['countdown_list'] == "flip") ? 'selected="selected"' : ''); ?> ><?php _e('Flip Style', 'mec'); ?></option>
709
  </select>
710
  </div>
711
  </div>
@@ -713,11 +718,11 @@ $verify = $envato->get_MEC_info('dl');
713
  </div>
714
 
715
  <div id="social_options" class="mec-options-fields">
716
- <h4 class="mec-form-subtitle"><?php _e('Social Networks', 'mec'); ?></h4>
717
  <div class="mec-form-row">
718
  <label>
719
  <input type="hidden" name="mec[settings][social_network_status]" value="0" />
720
- <input onchange="jQuery('#mec_social_network_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][social_network_status]" <?php if(isset($settings['social_network_status']) and $settings['social_network_status']) echo 'checked="checked"'; ?> /> <?php _e('Show social network module', 'mec'); ?>
721
  </label>
722
  </div>
723
  <div id="mec_social_network_container_toggle" class="<?php if((isset($settings['social_network_status']) and !$settings['social_network_status']) or !isset($settings['social_network_status'])) echo 'mec-util-hidden'; ?>">
@@ -738,37 +743,37 @@ $verify = $envato->get_MEC_info('dl');
738
  </div>
739
 
740
  <div id="next_event_option" class="mec-options-fields">
741
- <h4 class="mec-form-subtitle"><?php _e('Next Event Module', 'mec'); ?></h4>
742
  <div class="mec-form-row">
743
  <label>
744
  <input type="hidden" name="mec[settings][next_event_module_status]" value="0" />
745
- <input onchange="jQuery('#mec_next_previous_event_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][next_event_module_status]" <?php if(isset($settings['next_event_module_status']) and $settings['next_event_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show next event module on event page', 'mec'); ?>
746
  </label>
747
  </div>
748
  <div id="mec_next_previous_event_container_toggle" class="<?php if((isset($settings['next_event_module_status']) and !$settings['next_event_module_status']) or !isset($settings['next_event_module_status'])) echo 'mec-util-hidden'; ?>">
749
  <div class="mec-form-row">
750
- <label class="mec-col-3" for="mec_settings_next_event_module_method"><?php _e('Method', 'mec'); ?></label>
751
  <div class="mec-col-4">
752
  <select id="mec_settings_next_event_module_method" name="mec[settings][next_event_module_method]">
753
- <option value="occurrence" <?php echo ((isset($settings['next_event_module_method']) and $settings['next_event_module_method'] == 'occurrence') ? 'selected="selected"' : ''); ?>><?php _e('Next Occurrence of Current Event', 'mec'); ?></option>
754
- <option value="event" <?php echo ((isset($settings['next_event_module_method']) and $settings['next_event_module_method'] == 'event') ? 'selected="selected"' : ''); ?>><?php _e('Next Occurrence of Other Events', 'mec'); ?></option>
755
  </select>
756
  </div>
757
  </div>
758
  <div class="mec-form-row">
759
- <label class="mec-col-3" for="mec_settings_next_event_module_date_format1"><?php _e('Date Format', 'mec'); ?></label>
760
  <div class="mec-col-4">
761
  <input type="text" id="mec_settings_next_event_module_date_format1" name="mec[settings][next_event_module_date_format1]" value="<?php echo ((isset($settings['next_event_module_date_format1']) and trim($settings['next_event_module_date_format1']) != '') ? $settings['next_event_module_date_format1'] : 'M d Y'); ?>" />
762
- <a class="mec-tooltip" title="<?php esc_attr_e('Default is M d Y', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
763
  </div>
764
  </div>
765
  </div>
766
  </div>
767
 
768
  <div id="fes_option" class="mec-options-fields">
769
- <h4 class="mec-form-subtitle"><?php _e('Frontend Event Submission', 'mec'); ?></h4>
770
  <div class="mec-form-row">
771
- <label class="mec-col-3" for="mec_settings_fes_list_page"><?php _e('Events List Page', 'mec'); ?></label>
772
  <div class="mec-col-4">
773
  <select id="mec_settings_fes_list_page" name="mec[settings][fes_list_page]">
774
  <option value="">----</option>
@@ -777,10 +782,10 @@ $verify = $envato->get_MEC_info('dl');
777
  <?php endforeach; ?>
778
  </select>
779
  </div>
780
- <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'mec'), '<code>[MEC_fes_list]</code>'); ?></p>
781
  </div>
782
  <div class="mec-form-row">
783
- <label class="mec-col-3" for="mec_settings_fes_form_page"><?php _e('Add/Edit Events Page', 'mec'); ?></label>
784
  <div class="mec-col-4">
785
  <select id="mec_settings_fes_form_page" name="mec[settings][fes_form_page]">
786
  <option value="">----</option>
@@ -789,165 +794,165 @@ $verify = $envato->get_MEC_info('dl');
789
  <?php endforeach; ?>
790
  </select>
791
  </div>
792
- <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'mec'), '<code>[MEC_fes_form]</code>'); ?></p>
793
  </div>
794
  <div class="mec-form-row">
795
  <label>
796
  <input type="hidden" name="mec[settings][fes_guest_status]" value="0" />
797
- <input onchange="jQuery('#mec_fes_guest_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][fes_guest_status]" <?php if(isset($settings['fes_guest_status']) and $settings['fes_guest_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable event submission by guest (Not logged-in) users', 'mec'); ?>
798
  </label>
799
  </div>
800
  <div id="mec_fes_guest_status_container_toggle" class="<?php if((isset($settings['fes_guest_status']) and !$settings['fes_guest_status']) or !isset($settings['fes_guest_status'])) echo 'mec-util-hidden'; ?>">
801
  <div class="mec-form-row">
802
  <label>
803
  <input type="hidden" name="mec[settings][fes_guest_name_email]" value="0" />
804
- <input value="1" type="checkbox" name="mec[settings][fes_guest_name_email]" <?php if(!isset($settings['fes_guest_name_email']) or (isset($settings['fes_guest_name_email']) and $settings['fes_guest_name_email'])) echo 'checked="checked"'; ?> /> <?php _e('Enable mandatory email and name for guest user', 'mec'); ?>
805
  </label>
806
  </div>
807
  </div>
808
- <h4 class="mec-form-subtitle"><?php _e('Frontend Event Submission Sections', 'mec'); ?></h4>
809
  <div class="mec-form-row">
810
  <label>
811
  <input type="hidden" name="mec[settings][fes_section_event_links]" value="0" />
812
- <input value="1" type="checkbox" name="mec[settings][fes_section_event_links]" <?php if(!isset($settings['fes_section_event_links']) or (isset($settings['fes_section_event_links']) and $settings['fes_section_event_links'])) echo 'checked="checked"'; ?> /> <?php _e('Event Links', 'mec'); ?>
813
  </label>
814
  </div>
815
  <div class="mec-form-row">
816
  <label>
817
  <input type="hidden" name="mec[settings][fes_section_cost]" value="0" />
818
- <input value="1" type="checkbox" name="mec[settings][fes_section_cost]" <?php if(!isset($settings['fes_section_cost']) or (isset($settings['fes_section_cost']) and $settings['fes_section_cost'])) echo 'checked="checked"'; ?> /> <?php echo $this->main->m('event_cost', __('Event Cost', 'mec')); ?>
819
  </label>
820
  </div>
821
  <div class="mec-form-row">
822
  <label>
823
  <input type="hidden" name="mec[settings][fes_section_featured_image]" value="0" />
824
- <input value="1" type="checkbox" name="mec[settings][fes_section_featured_image]" <?php if(!isset($settings['fes_section_featured_image']) or (isset($settings['fes_section_featured_image']) and $settings['fes_section_featured_image'])) echo 'checked="checked"'; ?> /> <?php _e('Featured Image', 'mec'); ?>
825
  </label>
826
  </div>
827
  <div class="mec-form-row">
828
  <label>
829
  <input type="hidden" name="mec[settings][fes_section_categories]" value="0" />
830
- <input value="1" type="checkbox" name="mec[settings][fes_section_categories]" <?php if(!isset($settings['fes_section_categories']) or (isset($settings['fes_section_categories']) and $settings['fes_section_categories'])) echo 'checked="checked"'; ?> /> <?php _e('Event Categories', 'mec'); ?>
831
  </label>
832
  </div>
833
  <div class="mec-form-row">
834
  <label>
835
  <input type="hidden" name="mec[settings][fes_section_labels]" value="0" />
836
- <input value="1" type="checkbox" name="mec[settings][fes_section_labels]" <?php if(!isset($settings['fes_section_labels']) or (isset($settings['fes_section_labels']) and $settings['fes_section_labels'])) echo 'checked="checked"'; ?> /> <?php _e('Event Labels', 'mec'); ?>
837
  </label>
838
  </div>
839
  <div class="mec-form-row">
840
  <label>
841
  <input type="hidden" name="mec[settings][fes_section_event_color]" value="0" />
842
- <input value="1" type="checkbox" name="mec[settings][fes_section_event_color]" <?php if(!isset($settings['fes_section_event_color']) or (isset($settings['fes_section_event_color']) and $settings['fes_section_event_color'])) echo 'checked="checked"'; ?> /> <?php _e('Event Color', 'mec'); ?>
843
  </label>
844
  </div>
845
  <div class="mec-form-row">
846
  <label>
847
  <input type="hidden" name="mec[settings][fes_section_tags]" value="0" />
848
- <input value="1" type="checkbox" name="mec[settings][fes_section_tags]" <?php if(!isset($settings['fes_section_tags']) or (isset($settings['fes_section_tags']) and $settings['fes_section_tags'])) echo 'checked="checked"'; ?> /> <?php _e('Event Tags', 'mec'); ?>
849
  </label>
850
  </div>
851
  <div class="mec-form-row">
852
  <label>
853
  <input type="hidden" name="mec[settings][fes_section_location]" value="0" />
854
- <input value="1" type="checkbox" name="mec[settings][fes_section_location]" <?php if(!isset($settings['fes_section_location']) or (isset($settings['fes_section_location']) and $settings['fes_section_location'])) echo 'checked="checked"'; ?> /> <?php _e('Event Location', 'mec'); ?>
855
  </label>
856
  </div>
857
  <div class="mec-form-row">
858
  <label>
859
  <input type="hidden" name="mec[settings][fes_section_organizer]" value="0" />
860
- <input value="1" type="checkbox" name="mec[settings][fes_section_organizer]" <?php if(!isset($settings['fes_section_organizer']) or (isset($settings['fes_section_organizer']) and $settings['fes_section_organizer'])) echo 'checked="checked"'; ?> /> <?php _e('Event Organizer', 'mec'); ?>
861
  </label>
862
  </div>
863
  <div class="mec-form-row">
864
  <label>
865
  <input type="hidden" name="mec[settings][fes_section_hourly_schedule]" value="0" />
866
- <input value="1" type="checkbox" name="mec[settings][fes_section_hourly_schedule]" <?php if(!isset($settings['fes_section_hourly_schedule']) or (isset($settings['fes_section_hourly_schedule']) and $settings['fes_section_hourly_schedule'])) echo 'checked="checked"'; ?> /> <?php _e('Hourly Schedule', 'mec'); ?>
867
  </label>
868
  </div>
869
  <div class="mec-form-row">
870
  <label>
871
  <input type="hidden" name="mec[settings][fes_section_booking]" value="0" />
872
- <input value="1" type="checkbox" name="mec[settings][fes_section_booking]" <?php if(!isset($settings['fes_section_booking']) or (isset($settings['fes_section_booking']) and $settings['fes_section_booking'])) echo 'checked="checked"'; ?> /> <?php _e('Booking Options', 'mec'); ?>
873
  </label>
874
  </div>
875
  <div class="mec-form-row">
876
  <label>
877
  <input type="hidden" name="mec[settings][fes_section_fees]" value="0" />
878
- <input value="1" type="checkbox" name="mec[settings][fes_section_fees]" <?php if(!isset($settings['fes_section_fees']) or (isset($settings['fes_section_fees']) and $settings['fes_section_fees'])) echo 'checked="checked"'; ?> /> <?php _e('Fees/Taxes Options', 'mec'); ?>
879
  </label>
880
  </div>
881
  <div class="mec-form-row">
882
  <label>
883
  <input type="hidden" name="mec[settings][fes_note]" value="0" />
884
- <input onchange="jQuery('#mec_fes_note_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][fes_note]" <?php if(isset($settings['fes_note']) and $settings['fes_note']) echo 'checked="checked"'; ?> /> <?php _e('Event Note', 'mec'); ?>
885
  </label>
886
- <a class="mec-tooltip" title="<?php esc_attr_e("Users can put a note for editors while they're submitting the event. Also you can put %%event_note%% into the new event notification in order to get users' note in email.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
887
  </div>
888
  <div id="mec_fes_note_container_toggle" class="<?php if((isset($settings['fes_note']) and !$settings['fes_note']) or !isset($settings['fes_note'])) echo 'mec-util-hidden'; ?>">
889
  <div class="mec-form-row">
890
- <label class="mec-col-3" for="mec_settings_fes_note_visibility"><?php _e('Visibility of Note', 'mec'); ?></label>
891
  <div class="mec-col-4">
892
  <select id="mec_settings_fes_note_visibility" name="mec[settings][fes_note_visibility]">
893
- <option <?php echo ((isset($settings['fes_note_visibility']) and $settings['fes_note_visibility'] == 'always') ? 'selected="selected"' : ''); ?> value="always"><?php _e('Always', 'mec'); ?></option>
894
- <option <?php echo ((isset($settings['fes_note_visibility']) and $settings['fes_note_visibility'] == 'pending') ? 'selected="selected"' : ''); ?> value="pending"><?php _e('While event is not published', 'mec'); ?></option>
895
  </select>
896
  </div>
897
- <a class="mec-tooltip" title="<?php esc_attr_e("Event Note shows on Frontend Submission Form and Edit Event in backend.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
898
  </div>
899
  </div>
900
  </div>
901
 
902
  <div id="exceptional_option" class="mec-options-fields">
903
- <h4 class="mec-form-subtitle"><?php _e('Exceptional days', 'mec'); ?></h4>
904
  <div class="mec-form-row">
905
  <label>
906
  <input type="hidden" name="mec[settings][exceptional_days]" value="0" />
907
- <input value="1" type="checkbox" name="mec[settings][exceptional_days]" <?php if(isset($settings['exceptional_days']) and $settings['exceptional_days']) echo 'checked="checked"'; ?> /> <?php _e('Show exceptional days option on Add/Edit events page', 'mec'); ?>
908
- <a class="mec-tooltip" title="<?php esc_attr_e('Using this option you can include/exclude certain days to/from event occurrence dates.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
909
  </label>
910
  </div>
911
  </div>
912
 
913
  <div id="additional_organizers" class="mec-options-fields">
914
- <h4 class="mec-form-subtitle"><?php _e('Additional Organizers', 'mec'); ?></h4>
915
  <div class="mec-form-row">
916
  <label>
917
  <input type="hidden" name="mec[settings][additional_organizers]" value="0" />
918
- <input value="1" type="checkbox" name="mec[settings][additional_organizers]" <?php if(!isset($settings['additional_organizers']) or (isset($settings['additional_organizers']) and $settings['additional_organizers'])) echo 'checked="checked"'; ?> /> <?php _e('Show additional organizers option on Add/Edit events page and single event page.', 'mec'); ?>
919
  </label>
920
  </div>
921
  </div>
922
 
923
  <div id="booking_option" class="mec-options-fields">
924
- <h4 class="mec-form-subtitle"><?php _e('Booking', 'mec'); ?></h4>
925
 
926
  <?php if(!$this->main->getPRO()): ?>
927
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
928
  <?php else: ?>
929
  <div class="mec-form-row">
930
  <label>
931
  <input type="hidden" name="mec[settings][booking_status]" value="0" />
932
- <input onchange="jQuery('#mec_booking_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][booking_status]" <?php if(isset($settings['booking_status']) and $settings['booking_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable booking module', 'mec'); ?>
933
  </label>
934
  </div>
935
  <div id="mec_booking_container_toggle" class="<?php if((isset($settings['booking_status']) and !$settings['booking_status']) or !isset($settings['booking_status'])) echo 'mec-util-hidden'; ?>">
936
  <div class="mec-form-row">
937
- <label class="mec-col-3" for="mec_settings_booking_date_format1"><?php _e('Date Format', 'mec'); ?></label>
938
  <div class="mec-col-4">
939
  <input type="text" id="mec_settings_booking_date_format1" name="mec[settings][booking_date_format1]" value="<?php echo ((isset($settings['booking_date_format1']) and trim($settings['booking_date_format1']) != '') ? $settings['booking_date_format1'] : 'Y-m-d'); ?>" />
940
- <a class="mec-tooltip" title="<?php esc_attr_e('Default is Y-m-d', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
941
  </div>
942
  </div>
943
  <div class="mec-form-row">
944
- <label class="mec-col-3" for="mec_settings_booking_maximum_dates"><?php _e('Maximum Dates', 'mec'); ?></label>
945
  <div class="mec-col-4">
946
- <input type="number" id="mec_settings_booking_maximum_dates" name="mec[settings][booking_maximum_dates]" value="<?php echo ((isset($settings['booking_maximum_dates']) and trim($settings['booking_maximum_dates']) != '') ? $settings['booking_maximum_dates'] : '6'); ?>" placeholder="<?php esc_attr_e('Default is 6', 'mec'); ?>" min="1" />
947
  </div>
948
  </div>
949
  <div class="mec-form-row">
950
- <label class="mec-col-3" for="mec_settings_booking_thankyou_page"><?php _e('Thank You Page', 'mec'); ?></label>
951
  <div class="mec-col-4">
952
  <select id="mec_settings_booking_thankyou_page" name="mec[settings][booking_thankyou_page]">
953
  <option value="">----</option>
@@ -955,7 +960,7 @@ $verify = $envato->get_MEC_info('dl');
955
  <option <?php echo ((isset($settings['booking_thankyou_page']) and $settings['booking_thankyou_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo $page->ID; ?>"><?php echo $page->post_title; ?></option>
956
  <?php endforeach; ?>
957
  </select>
958
- <a class="mec-tooltip" title="<?php esc_attr_e('User redirects to this page after booking. Leave it empty if you want to disable it.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
959
  </div>
960
  </div>
961
  <div class="mec-form-row">
@@ -963,18 +968,18 @@ $verify = $envato->get_MEC_info('dl');
963
  <label for="mec_settings_booking_first_for_all">
964
  <input type="hidden" name="mec[settings][booking_first_for_all]" value="0" />
965
  <input type="checkbox" name="mec[settings][booking_first_for_all]" id="mec_settings_booking_first_for_all" <?php echo ((!isset($settings['booking_first_for_all']) or (isset($settings['booking_first_for_all']) and $settings['booking_first_for_all'] == '1')) ? 'checked="checked"' : ''); ?> value="1" />
966
- <?php _e('Enable Express Attendees Form', 'mec'); ?>
967
  </label>
968
- <a class="mec-tooltip" title="<?php esc_attr_e('Users are able to apply first attendee information for other attendees in the booking form.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
969
  </div>
970
  </div>
971
- <h5 class="mec-form-subtitle"><?php _e('Email verification', 'mec'); ?></h5>
972
  <div class="mec-form-row">
973
  <div class="mec-col-12">
974
  <label for="mec_settings_booking_auto_verify_free">
975
  <input type="hidden" name="mec[settings][booking_auto_verify_free]" value="0" />
976
  <input type="checkbox" name="mec[settings][booking_auto_verify_free]" id="mec_settings_booking_auto_verify_free" <?php echo ((isset($settings['booking_auto_verify_free']) and $settings['booking_auto_verify_free'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
977
- <?php _e('Auto verification for free bookings', 'mec'); ?>
978
  </label>
979
  </div>
980
  </div>
@@ -983,17 +988,17 @@ $verify = $envato->get_MEC_info('dl');
983
  <label for="mec_settings_booking_auto_verify_paid">
984
  <input type="hidden" name="mec[settings][booking_auto_verify_paid]" value="0" />
985
  <input type="checkbox" name="mec[settings][booking_auto_verify_paid]" id="mec_settings_booking_auto_verify_paid" <?php echo ((isset($settings['booking_auto_verify_paid']) and $settings['booking_auto_verify_paid'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
986
- <?php _e('Auto verification for paid bookings', 'mec'); ?>
987
  </label>
988
  </div>
989
  </div>
990
- <h5 class="mec-form-subtitle"><?php _e('Booking Confirmation', 'mec'); ?></h5>
991
  <div class="mec-form-row">
992
  <div class="mec-col-12">
993
  <label for="mec_settings_booking_auto_confirm_free">
994
  <input type="hidden" name="mec[settings][booking_auto_confirm_free]" value="0" />
995
  <input type="checkbox" name="mec[settings][booking_auto_confirm_free]" id="mec_settings_booking_auto_confirm_free" <?php echo ((isset($settings['booking_auto_confirm_free']) and $settings['booking_auto_confirm_free'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
996
- <?php _e('Auto confirmation for free bookings', 'mec'); ?>
997
  </label>
998
  </div>
999
  </div>
@@ -1002,7 +1007,7 @@ $verify = $envato->get_MEC_info('dl');
1002
  <label for="mec_settings_booking_auto_confirm_paid">
1003
  <input type="hidden" name="mec[settings][booking_auto_confirm_paid]" value="0" />
1004
  <input type="checkbox" name="mec[settings][booking_auto_confirm_paid]" id="mec_settings_booking_auto_confirm_paid" <?php echo ((isset($settings['booking_auto_confirm_paid']) and $settings['booking_auto_confirm_paid'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
1005
- <?php _e('Auto confirmation for paid bookings', 'mec'); ?>
1006
  </label>
1007
  </div>
1008
  </div>
@@ -1011,15 +1016,15 @@ $verify = $envato->get_MEC_info('dl');
1011
  </div>
1012
 
1013
  <div id="coupon_option" class="mec-options-fields">
1014
- <h4 class="mec-form-subtitle"><?php _e('Coupons', 'mec'); ?></h4>
1015
 
1016
  <?php if(!$this->main->getPRO()): ?>
1017
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
1018
  <?php else: ?>
1019
  <div class="mec-form-row">
1020
  <label>
1021
  <input type="hidden" name="mec[settings][coupons_status]" value="0" />
1022
- <input onchange="jQuery('#mec_coupons_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][coupons_status]" <?php if(isset($settings['coupons_status']) and $settings['coupons_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable coupons module', 'mec'); ?>
1023
  </label>
1024
  </div>
1025
  <div id="mec_coupons_container_toggle" class="<?php if((isset($settings['coupons_status']) and !$settings['coupons_status']) or !isset($settings['coupons_status'])) echo 'mec-util-hidden'; ?>">
@@ -1028,40 +1033,40 @@ $verify = $envato->get_MEC_info('dl');
1028
  </div>
1029
 
1030
  <div id="taxes_option" class="mec-options-fields">
1031
- <h4 class="mec-form-subtitle"><?php _e('Taxes / Fees', 'mec'); ?></h4>
1032
 
1033
  <?php if(!$this->main->getPRO()): ?>
1034
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
1035
  <?php else: ?>
1036
  <div class="mec-form-row">
1037
  <label>
1038
  <input type="hidden" name="mec[settings][taxes_fees_status]" value="0" />
1039
- <input onchange="jQuery('#mec_taxes_fees_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][taxes_fees_status]" <?php if(isset($settings['taxes_fees_status']) and $settings['taxes_fees_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable taxes / fees module', 'mec'); ?>
1040
  </label>
1041
  </div>
1042
  <div id="mec_taxes_fees_container_toggle" class="<?php if((isset($settings['taxes_fees_status']) and !$settings['taxes_fees_status']) or !isset($settings['taxes_fees_status'])) echo 'mec-util-hidden'; ?>">
1043
  <div class="mec-form-row">
1044
- <button class="button" type="button" id="mec_add_fee_button"><?php _e('Add Fee', 'mec'); ?></button>
1045
  </div>
1046
  <div class="mec-form-row" id="mec_fees_list">
1047
  <?php $i = 0; foreach($fees as $key=>$fee): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
1048
  <div class="mec-box" id="mec_fee_row<?php echo $i; ?>">
1049
  <div class="mec-form-row">
1050
- <input class="mec-col-12" type="text" name="mec[settings][fees][<?php echo $i; ?>][title]" placeholder="<?php esc_attr_e('Fee Title', 'mec'); ?>" value="<?php echo (isset($fee['title']) ? $fee['title'] : ''); ?>" />
1051
  </div>
1052
  <div class="mec-form-row">
1053
  <span class="mec-col-4">
1054
- <input type="text" name="mec[settings][fees][<?php echo $i; ?>][amount]" placeholder="<?php esc_attr_e('Amount', 'mec'); ?>" value="<?php echo (isset($fee['amount']) ? $fee['amount'] : ''); ?>" />
1055
- <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1056
  </span>
1057
  <span class="mec-col-4">
1058
  <select name="mec[settings][fees][<?php echo $i; ?>][type]">
1059
- <option value="percent" <?php echo ((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php _e('Percent', 'mec'); ?></option>
1060
- <option value="amount" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Ticket)', 'mec'); ?></option>
1061
- <option value="amount_per_booking" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_booking') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Booking)', 'mec'); ?></option>
1062
  </select>
1063
  </span>
1064
- <button class="button" type="button" id="mec_remove_fee_button<?php echo $i; ?>" onclick="mec_remove_fee(<?php echo $i; ?>);"><?php _e('Remove', 'mec'); ?></button>
1065
  </div>
1066
  </div>
1067
  <?php endforeach; ?>
@@ -1070,21 +1075,21 @@ $verify = $envato->get_MEC_info('dl');
1070
  <div class="mec-util-hidden" id="mec_new_fee_raw">
1071
  <div class="mec-box" id="mec_fee_row:i:">
1072
  <div class="mec-form-row">
1073
- <input class="mec-col-12" type="text" name="mec[settings][fees][:i:][title]" placeholder="<?php esc_attr_e('Fee Title', 'mec'); ?>" />
1074
  </div>
1075
  <div class="mec-form-row">
1076
  <span class="mec-col-4">
1077
- <input type="text" name="mec[settings][fees][:i:][amount]" placeholder="<?php esc_attr_e('Amount', 'mec'); ?>" />
1078
- <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1079
  </span>
1080
  <span class="mec-col-4">
1081
  <select name="mec[settings][fees][:i:][type]">
1082
- <option value="percent"><?php _e('Percent', 'mec'); ?></option>
1083
- <option value="amount"><?php _e('Amount (Per Ticket)', 'mec'); ?></option>
1084
- <option value="amount_per_booking"><?php _e('Amount (Per Booking)', 'mec'); ?></option>
1085
  </select>
1086
  </span>
1087
- <button class="button" type="button" id="mec_remove_fee_button:i:" onclick="mec_remove_fee(:i:);"><?php _e('Remove', 'mec'); ?></button>
1088
  </div>
1089
  </div>
1090
  </div>
@@ -1093,22 +1098,22 @@ $verify = $envato->get_MEC_info('dl');
1093
  </div>
1094
 
1095
  <div id="buddy_option" class="mec-options-fields">
1096
- <h4 class="mec-form-subtitle"><?php _e('BuddyPress Integration', 'mec'); ?></h4>
1097
  <div class="mec-form-row">
1098
  <label>
1099
  <input type="hidden" name="mec[settings][bp_status]" value="0" />
1100
- <input onchange="jQuery('#mec_bp_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][bp_status]" <?php if(isset($settings['bp_status']) and $settings['bp_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable BuddyPress Integration', 'mec'); ?>
1101
  </label>
1102
  </div>
1103
  <div id="mec_bp_container_toggle" class="<?php if((isset($settings['bp_status']) and !$settings['bp_status']) or !isset($settings['bp_status'])) echo 'mec-util-hidden'; ?>">
1104
  <div class="mec-form-row">
1105
  <label>
1106
  <input type="hidden" name="mec[settings][bp_attendees_module]" value="0" />
1107
- <input value="1" type="checkbox" name="mec[settings][bp_attendees_module]" <?php if(isset($settings['bp_attendees_module']) and $settings['bp_attendees_module']) echo 'checked="checked"'; ?> /> <?php _e('Show "Attendees Module" in event details page', 'mec'); ?>
1108
  </label>
1109
  </div>
1110
  <div class="mec-form-row">
1111
- <label class="mec-col-3" for="mec_settings_bp_attendees_module_limit"><?php _e('Attendees Limit', 'mec'); ?></label>
1112
  <div class="mec-col-4">
1113
  <input type="text" id="mec_settings_bp_attendees_module_limit" name="mec[settings][bp_attendees_module_limit]" value="<?php echo ((isset($settings['bp_attendees_module_limit']) and trim($settings['bp_attendees_module_limit']) != '') ? $settings['bp_attendees_module_limit'] : '20'); ?>" />
1114
  </div>
@@ -1116,91 +1121,91 @@ $verify = $envato->get_MEC_info('dl');
1116
  <div class="mec-form-row">
1117
  <label>
1118
  <input type="hidden" name="mec[settings][bp_add_activity]" value="0" />
1119
- <input value="1" type="checkbox" name="mec[settings][bp_add_activity]" <?php if(isset($settings['bp_add_activity']) and $settings['bp_add_activity']) echo 'checked="checked"'; ?> /> <?php _e('Add booking activity to user profile', 'mec'); ?>
1120
  </label>
1121
  </div>
1122
  </div>
1123
  </div>
1124
 
1125
  <div id="mailchimp_option" class="mec-options-fields">
1126
- <h4 class="mec-form-subtitle"><?php _e('Mailchimp Integration', 'mec'); ?></h4>
1127
  <div class="mec-form-row">
1128
  <label>
1129
  <input type="hidden" name="mec[settings][mchimp_status]" value="0" />
1130
- <input onchange="jQuery('#mec_mchimp_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][mchimp_status]" <?php if(isset($settings['mchimp_status']) and $settings['mchimp_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Mailchimp Integration', 'mec'); ?>
1131
  </label>
1132
  </div>
1133
  <div id="mec_mchimp_status_container_toggle" class="<?php if((isset($settings['mchimp_status']) and !$settings['mchimp_status']) or !isset($settings['mchimp_status'])) echo 'mec-util-hidden'; ?>">
1134
  <div class="mec-form-row">
1135
- <label class="mec-col-3" for="mec_settings_mchimp_api_key"><?php _e('API Key', 'mec'); ?></label>
1136
  <div class="mec-col-4">
1137
  <input type="text" id="mec_settings_mchimp_api_key" name="mec[settings][mchimp_api_key]" value="<?php echo ((isset($settings['mchimp_api_key']) and trim($settings['mchimp_api_key']) != '') ? $settings['mchimp_api_key'] : ''); ?>" />
1138
- <a class="mec-tooltip" title="<?php esc_attr_e("Required!", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1139
  </div>
1140
  </div>
1141
  <div class="mec-form-row">
1142
- <label class="mec-col-3" for="mec_settings_mchimp_list_id"><?php _e('List ID', 'mec'); ?></label>
1143
  <div class="mec-col-4">
1144
  <input type="text" id="mec_settings_mchimp_list_id" name="mec[settings][mchimp_list_id]" value="<?php echo ((isset($settings['mchimp_list_id']) and trim($settings['mchimp_list_id']) != '') ? $settings['mchimp_list_id'] : ''); ?>" />
1145
- <a class="mec-tooltip" title="<?php esc_attr_e("Required!", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1146
  </div>
1147
  </div>
1148
  <div class="mec-form-row">
1149
- <label class="mec-col-3" for="mec_settings_mchimp_subscription_status"><?php _e('Subscription Status', 'mec'); ?></label>
1150
  <div class="mec-col-4">
1151
  <select name="mec[settings][mchimp_subscription_status]" id="mec_settings_mchimp_subscription_status">
1152
- <option value="subscribed" <?php if(isset($settings['mchimp_subscription_status']) and $settings['mchimp_subscription_status'] == 'subscribed') echo 'selected="selected"'; ?>><?php _e('Subscribe automatically', 'mec'); ?></option>
1153
- <option value="pending" <?php if(isset($settings['mchimp_subscription_status']) and $settings['mchimp_subscription_status'] == 'pending') echo 'selected="selected"'; ?>><?php _e('Subscribe by verification', 'mec'); ?></option>
1154
  </select>
1155
- <a class="mec-tooltip" title="<?php esc_attr_e('If you choose "Subscribe by verification" then an email will send to user by mailchimp for subscription verification.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1156
  </div>
1157
  </div>
1158
  </div>
1159
  </div>
1160
 
1161
  <div id="avtivation_option" class="mec-options-fields">
1162
- <h4 class="mec-form-subtitle"><?php _e('MEC Activation', 'mec'); ?></h4>
1163
 
1164
  <?php if(!$this->main->getPRO()): ?>
1165
- <div class="info-msg"><?php echo sprintf(__("%s is required to use this section.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>'); ?></div>
1166
  <?php else: ?>
1167
  <div class="mec-form-row">
1168
- <label class="mec-col-3" for="mec_settings_purchase_code"><?php _e('Purchase Code', 'mec'); ?></label>
1169
  <div class="mec-col-4">
1170
  <input type="text" name="mec[settings][purchase_code]" id="mec_settings_purchase_code" value="<?php echo (isset($settings['purchase_code']) ? $settings['purchase_code'] : ''); ?>" />
1171
  </div>
1172
  <?php if(!is_null($verify)): ?>
1173
- <span class="mec-purchase-verify mec-success"><?php _e('Verified', 'mec'); ?></span>
1174
  <?php else: ?>
1175
- <span class="mec-purchase-verify mec-error"><?php _e('UnVerified', 'mec'); ?></span>
1176
  <?php endif; ?>
1177
- <a class="mec-tooltip" title="<?php esc_attr_e("Please insert your purchase code validation. read documentation for more information.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1178
  </div>
1179
  <div class="mec-form-row">
1180
- <label class="mec-col-3" for="mec_settings_product_name"><?php _e('Product Name', 'mec'); ?></label>
1181
  <div class="mec-col-4">
1182
  <select id="mec_settings_product_name" name="mec[settings][product_name]">
1183
- <option value="1 License for MEC Plugin" <?php echo ((isset($settings['product_name']) and $settings['product_name'] == "1 License for MEC Plugin") ? 'selected="selected"' : ''); ?> ><?php _e('1 License for MEC Plugin', 'mec'); ?></option>
1184
- <option value="5 License for MEC Plugin" <?php echo ((isset($settings['product_name']) and $settings['product_name'] == "5 License for MEC Plugin") ? 'selected="selected"' : ''); ?> ><?php _e('5 License for MEC Plugin', 'mec'); ?></option>
1185
- <option value="10 License for MEC Plugin" <?php echo ((isset($settings['product_name']) and $settings['product_name'] == "10 License for MEC Plugin") ? 'selected="selected"' : ''); ?> ><?php _e('10 License for MEC Plugin', 'mec'); ?></option>
1186
  </select>
1187
  </div>
1188
  </div>
1189
  <!-- We will add this feature for remove purchase code from our database for next version -->
1190
  <?php if(!is_null($verify)): ?>
1191
  <!-- <div class="mec-form-row">
1192
- <label class="mec-col-3" for="mec_settings_purchase_code"><?php _e('MEC Deactivation', 'mec'); ?></label>
1193
  <div class="mec-col-4">
1194
- <a target="_blank" class="remove-activation" href="http://webnus.co/api/remove?id=<?php echo $settings['purchase_code']; ?>"><?php _e('Deactivate', 'mec'); ?></a>
1195
  </div>
1196
- <a class="mec-tooltip" title="<?php esc_attr_e("For deactivation first delete your purchase from above field then press save after that click on deactivate for deactivate this purchase code from this domain then you can activate another domain.", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1197
  </div>-->
1198
  <?php endif; ?>
1199
  <?php endif; ?>
1200
  </div>
1201
  <div class="mec-options-fields">
1202
  <?php wp_nonce_field('mec_options_form'); ?>
1203
- <button style="display: none;" id="mec_settings_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
1204
  </div>
1205
  </form>
1206
 
@@ -1208,23 +1213,24 @@ $verify = $envato->get_MEC_info('dl');
1208
  </div>
1209
 
1210
  </div>
1211
- <div id="wns-be-footer"><a href="" id="" class="dpr-btn dpr-save-btn">Save Changes</a></div>
1212
  </div>
1213
  </div>
1214
 
1215
  <script type="text/javascript">
1216
  jQuery(document).ready(function()
1217
  {
1218
- jQuery(".dpr-save-btn").on('click', function(event) {
 
1219
  event.preventDefault();
1220
  jQuery("#mec_settings_form_button").trigger('click');
1221
  });
1222
 
1223
- jQuery(".wns-be-sidebar .pr-be-group-menu-li").on('click', function(event) {
 
1224
  jQuery(".wns-be-sidebar .pr-be-group-menu-li").removeClass('active');
1225
  jQuery(this).addClass('active');
1226
  });
1227
-
1228
  });
1229
 
1230
  jQuery("#mec_settings_form").on('submit', function(event)
@@ -1232,12 +1238,12 @@ jQuery("#mec_settings_form").on('submit', function(event)
1232
  event.preventDefault();
1233
 
1234
  // Add loading Class to the button
1235
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
1236
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
1237
 
1238
- if(jQuery(".mec-purchase-verify").text() != '<?php echo esc_js(esc_attr__('Verified', 'mec')); ?>')
1239
  {
1240
- jQuery(".mec-purchase-verify").text("<?php echo esc_js(esc_attr__('Checking ...', 'mec')); ?>");
1241
  }
1242
 
1243
  var settings = jQuery("#mec_settings_form").serialize();
@@ -1249,20 +1255,22 @@ jQuery("#mec_settings_form").on('submit', function(event)
1249
  success: function(data)
1250
  {
1251
  // Remove the loading Class to the button
1252
- setTimeout(function(){
1253
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
 
1254
  jQuery('.wns-saved-settings').remove();
1255
- if(jQuery(".mec-purchase-verify").text() != '<?php echo esc_js(esc_attr__('Verified', 'mec')); ?>')
1256
  {
1257
- jQuery(".mec-purchase-verify").text("<?php echo esc_js(esc_attr__('Please Refresh Page', 'mec')); ?>");
1258
  }
1259
  }, 1000);
1260
  },
1261
  error: function(jqXHR, textStatus, errorThrown)
1262
  {
1263
  // Remove the loading Class to the button
1264
- setTimeout(function(){
1265
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
 
1266
  jQuery('.wns-saved-settings').remove();
1267
  }, 1000);
1268
  }
13
  $pages = get_pages();
14
 
15
  // Verify the Purchase Code
16
+ $verify = NULL;
17
+ if($this->getPRO())
18
+ {
19
+ $envato = $this->getEnvato();
20
+ $verify = $envato->get_MEC_info('dl');
21
+ }
22
  ?>
23
  <div class="wns-be-container">
24
  <div class="wns-be-sidebar">
31
  <i class="sl-arrow-down"></i>
32
  </span>
33
  <i class="mec-sl-settings"></i>
34
+ <span class="wns-be-group-menu-title"><?php echo __('Settings', 'modern-events-calendar-lite'); ?></span>
35
  </a>
36
 
37
  <ul id="" class="subsection" style="display: block;">
38
 
39
  <li id="" class="pr-be-group-menu-li">
40
  <a href="#general_option" id="" class="wns-be-group-tab-link-a">
41
+ <span class="pr-be-group-menu-title"><?php _e('General Options', 'modern-events-calendar-lite'); ?></span>
42
  </a>
43
  </li>
44
 
45
  <li id="" class="pr-be-group-menu-li">
46
  <a href="#archive_options" id="" class="wns-be-group-tab-link-a">
47
+ <span class="pr-be-group-menu-title"><?php _e('Archive Page Options', 'modern-events-calendar-lite'); ?></span>
48
  </a>
49
  </li>
50
 
51
  <li id="" class="pr-be-group-menu-li">
52
  <a href="#slug_option" id="" class="wns-be-group-tab-link-a">
53
+ <span class="pr-be-group-menu-title"><?php _e('Slugs/Permalinks', 'modern-events-calendar-lite'); ?></span>
54
  </a>
55
  </li>
56
 
57
  <li id="" class="pr-be-group-menu-li">
58
  <a href="#event_options" id="" class="wns-be-group-tab-link-a">
59
+ <span class="pr-be-group-menu-title"><?php _e('Event Details/Single Event Page', 'modern-events-calendar-lite'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li id="" class="pr-be-group-menu-li">
64
  <a href="#currency_option" id="" class="wns-be-group-tab-link-a">
65
+ <span class="pr-be-group-menu-title"><?php _e('Currency Options', 'modern-events-calendar-lite'); ?></span>
66
  </a>
67
  </li>
68
 
69
  <li id="" class="pr-be-group-menu-li">
70
  <a href="#googlemap_option" id="" class="wns-be-group-tab-link-a">
71
+ <span class="pr-be-group-menu-title"><?php _e('Google Maps Options', 'modern-events-calendar-lite'); ?></span>
72
  </a>
73
  </li>
74
 
75
  <li id="" class="pr-be-group-menu-li">
76
  <a href="#recaptcha_option" id="" class="wns-be-group-tab-link-a">
77
+ <span class="pr-be-group-menu-title"><?php _e('Google Recaptcha Options', 'modern-events-calendar-lite'); ?></span>
78
  </a>
79
  </li>
80
 
81
  <li id="" class="pr-be-group-menu-li">
82
  <a href="#export_module_option" id="" class="wns-be-group-tab-link-a">
83
+ <span class="pr-be-group-menu-title"><?php _e('Export Module Options', 'modern-events-calendar-lite'); ?></span>
84
  </a>
85
  </li>
86
 
87
  <li id="" class="pr-be-group-menu-li">
88
  <a href="#time_module_option" id="" class="wns-be-group-tab-link-a">
89
+ <span class="pr-be-group-menu-title"><?php _e('Local Time Module', 'modern-events-calendar-lite'); ?></span>
90
  </a>
91
  </li>
92
 
93
  <li id="" class="pr-be-group-menu-li">
94
  <a href="#qrcode_module_option" id="" class="wns-be-group-tab-link-a">
95
+ <span class="pr-be-group-menu-title"><?php _e('QR Code Module', 'modern-events-calendar-lite'); ?></span>
96
  </a>
97
  </li>
98
 
99
  <li id="" class="pr-be-group-menu-li">
100
  <a href="#weather_module_option" id="" class="wns-be-group-tab-link-a">
101
+ <span class="pr-be-group-menu-title"><?php _e('Weather Module', 'modern-events-calendar-lite'); ?></span>
102
  </a>
103
  </li>
104
 
105
  <li id="" class="pr-be-group-menu-li">
106
  <a href="#countdown_option" id="" class="wns-be-group-tab-link-a">
107
+ <span class="pr-be-group-menu-title"><?php _e('Countdown Options', 'modern-events-calendar-lite'); ?></span>
108
  </a>
109
  </li>
110
 
111
  <li id="" class="pr-be-group-menu-li">
112
  <a href="#social_options" id="" class="wns-be-group-tab-link-a">
113
+ <span class="pr-be-group-menu-title"><?php _e('Social Networks', 'modern-events-calendar-lite'); ?></span>
114
  </a>
115
  </li>
116
 
117
  <li id="" class="pr-be-group-menu-li">
118
  <a href="#next_event_option" id="" class="wns-be-group-tab-link-a">
119
+ <span class="pr-be-group-menu-title"><?php _e('Next Event Module', 'modern-events-calendar-lite'); ?></span>
120
  </a>
121
  </li>
122
 
123
  <li id="" class="pr-be-group-menu-li">
124
  <a href="#fes_option" id="" class="wns-be-group-tab-link-a">
125
+ <span class="pr-be-group-menu-title"><?php _e('Frontend Event Submission', 'modern-events-calendar-lite'); ?></span>
126
  </a>
127
  </li>
128
 
129
  <li id="" class="pr-be-group-menu-li">
130
  <a href="#exceptional_option" id="" class="wns-be-group-tab-link-a">
131
+ <span class="pr-be-group-menu-title"><?php _e('Exceptional Days', 'modern-events-calendar-lite'); ?></span>
132
  </a>
133
  </li>
134
 
135
  <li id="" class="pr-be-group-menu-li">
136
  <a href="#additional_organizers" id="" class="wns-be-group-tab-link-a">
137
+ <span class="pr-be-group-menu-title"><?php _e('Additional Organizers', 'modern-events-calendar-lite'); ?></span>
138
  </a>
139
  </li>
140
 
141
  <li id="" class="pr-be-group-menu-li">
142
  <a href="#booking_option" id="" class="wns-be-group-tab-link-a">
143
+ <span class="pr-be-group-menu-title"><?php _e('Booking', 'modern-events-calendar-lite'); ?></span>
144
  </a>
145
  </li>
146
 
147
  <li id="" class="pr-be-group-menu-li">
148
  <a href="#coupon_option" id="" class="wns-be-group-tab-link-a">
149
+ <span class="pr-be-group-menu-title"><?php _e('Coupons', 'modern-events-calendar-lite'); ?></span>
150
  </a>
151
  </li>
152
 
153
  <li id="" class="pr-be-group-menu-li">
154
  <a href="#taxes_option" id="" class="wns-be-group-tab-link-a">
155
+ <span class="pr-be-group-menu-title"><?php _e('Taxes / Fees', 'modern-events-calendar-lite'); ?></span>
156
  </a>
157
  </li>
158
 
159
  <li id="" class="pr-be-group-menu-li">
160
  <a href="#buddy_option" id="" class="wns-be-group-tab-link-a">
161
+ <span class="pr-be-group-menu-title"><?php _e('BuddyPress Integration', 'modern-events-calendar-lite'); ?></span>
162
  </a>
163
  </li>
164
 
165
  <li id="" class="pr-be-group-menu-li">
166
  <a href="#mailchimp_option" id="" class="wns-be-group-tab-link-a">
167
+ <span class="pr-be-group-menu-title"><?php _e('Mailchimp Integration', 'modern-events-calendar-lite'); ?></span>
168
  </a>
169
  </li>
170
 
171
  <li id="" class="pr-be-group-menu-li">
172
  <a href="#avtivation_option" id="" class="wns-be-group-tab-link-a">
173
+ <span class="pr-be-group-menu-title"><?php _e('MEC Activation', 'modern-events-calendar-lite'); ?></span>
174
  </a>
175
  </li>
176
 
182
  <li class="wns-be-group-menu-li">
183
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
184
  <i class="mec-sl-layers"></i>
185
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
186
  </a>
187
  </li>
188
 
189
  <li class="wns-be-group-menu-li">
190
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
191
  <i class="mec-sl-wallet"></i>
192
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
193
  </a>
194
  </li>
195
 
199
  <li class="wns-be-group-menu-li">
200
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
201
  <i class="mec-sl-envelope"></i>
202
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
203
  </a>
204
  </li>
205
 
206
  <li class="wns-be-group-menu-li">
207
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
208
  <i class="mec-sl-equalizer"></i>
209
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
210
  </a>
211
  </li>
212
 
213
  <li class="wns-be-group-menu-li">
214
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
215
  <i class="mec-sl-wrench"></i>
216
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
217
  </a>
218
  </li>
219
 
220
  <li class="wns-be-group-menu-li">
221
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
222
  <i class="mec-sl-bubble"></i>
223
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
224
  </a>
225
  </li>
226
 
227
  <li class="wns-be-group-menu-li">
228
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
229
  <i class="mec-sl-support"></i>
230
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
231
  </a>
232
  </li>
233
 
235
  </div>
236
 
237
  <div class="wns-be-main">
238
+ <div id="wns-be-infobar"><a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a></div>
239
 
240
  <div id="wns-be-notification"></div>
241
 
247
 
248
  <div id="general_option" class="mec-options-fields">
249
 
250
+ <h2><?php _e('Settings', 'modern-events-calendar-lite'); ?></h2>
251
 
252
+ <h4 class="mec-form-subtitle"><?php _e('General Options', 'modern-events-calendar-lite'); ?></h4>
253
 
254
  <div class="mec-form-row">
255
+ <label class="mec-col-3" for="mec_settings_time_format"><?php _e('Time Format', 'modern-events-calendar-lite'); ?></label>
256
  <div class="mec-col-4">
257
  <select id="mec_settings_time_format" name="mec[settings][time_format]">
258
+ <option value="12" <?php if(isset($settings['time_format']) and '12' == $settings['time_format']) echo 'selected="selected"'; ?>><?php _e('12 hours format with AM/PM', 'modern-events-calendar-lite'); ?></option>
259
+ <option value="24" <?php if(isset($settings['time_format']) and '24' == $settings['time_format']) echo 'selected="selected"'; ?>><?php _e('24 hours format', 'modern-events-calendar-lite'); ?></option>
260
  </select>
261
+ <a class="mec-tooltip" title="<?php esc_attr_e("This option is for showing start/end time of events on frontend of website.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
262
  </div>
263
  </div>
264
 
265
  <div class="mec-form-row">
266
+ <label class="mec-col-3" for="mec_settings_hide_time_method"><?php _e('Hide Events', 'modern-events-calendar-lite'); ?></label>
267
  <div class="mec-col-4">
268
  <select id="mec_settings_time_format" name="mec[settings][hide_time_method]">
269
+ <option value="start" <?php if(isset($settings['hide_time_method']) and 'start' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('On Event Start', 'modern-events-calendar-lite'); ?></option>
270
+ <option value="plus1" <?php if(isset($settings['hide_time_method']) and 'plus1' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('+1 Hour after start', 'modern-events-calendar-lite'); ?></option>
271
+ <option value="plus2" <?php if(isset($settings['hide_time_method']) and 'plus2' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('+2 Hours after start', 'modern-events-calendar-lite'); ?></option>
272
+ <option value="end" <?php if(isset($settings['hide_time_method']) and 'end' == $settings['hide_time_method']) echo 'selected="selected"'; ?>><?php _e('On Event End', 'modern-events-calendar-lite'); ?></option>
273
  </select>
274
+ <a class="mec-tooltip" title="<?php esc_attr_e("This option is for showing start/end time of events on frontend of website.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
275
  </div>
276
  </div>
277
 
278
  <div class="mec-form-row">
279
 
280
+ <label class="mec-col-3" for="mec_settings_multiple_day_show_method"><?php _e('Multiple Day Events', 'modern-events-calendar-lite'); ?></label>
281
  <div class="mec-col-4">
282
  <select id="mec_settings_multiple_day_show_method" name="mec[settings][multiple_day_show_method]">
283
+ <option value="first_day_listgrid" <?php if(isset($settings['multiple_day_show_method']) and $settings['multiple_day_show_method'] == 'first_day_listgrid') echo 'selected="selected"'; ?>><?php _e('Show only first day on List/Grid/Slider skins', 'modern-events-calendar-lite'); ?></option>
284
+ <option value="first_day" <?php if(isset($settings['multiple_day_show_method']) and $settings['multiple_day_show_method'] == 'first_day') echo 'selected="selected"'; ?>><?php _e('Show only first day on all skins', 'modern-events-calendar-lite'); ?></option>
285
+ <option value="all_days" <?php if(isset($settings['multiple_day_show_method']) and $settings['multiple_day_show_method'] == 'all_days') echo 'selected="selected"'; ?>><?php _e('Show all days', 'modern-events-calendar-lite'); ?></option>
286
  </select>
287
+ <a class="mec-tooltip" title="<?php esc_attr_e("For showing all days of multiple day events on frontend or only show the first day.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
288
  </div>
289
 
290
  </div>
291
 
292
  <div class="mec-form-row">
293
+ <label class="mec-col-3" for="mec_settings_remove_data_on_uninstall"><?php _e('Remove MEC Data on Plugin Uninstall', 'modern-events-calendar-lite'); ?></label>
294
  <div class="mec-col-4">
295
  <select id="mec_settings_remove_data_on_uninstall" name="mec[settings][remove_data_on_uninstall]">
296
+ <option value="0" <?php if(isset($settings['remove_data_on_uninstall']) and !$settings['remove_data_on_uninstall']) echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
297
+ <option value="1" <?php if(isset($settings['remove_data_on_uninstall']) and $settings['remove_data_on_uninstall'] == '1') echo 'selected="selected"'; ?>><?php _e('Enabled', 'modern-events-calendar-lite'); ?></option>
298
  </select>
299
  </div>
300
  </div>
301
 
302
  <div class="mec-form-row">
303
+ <label class="mec-col-3"><?php _e('Exclude Date Suffix', 'modern-events-calendar-lite'); ?></label>
304
  <label>
305
  <input type="hidden" name="mec[settings][date_suffix]" value="0" />
306
+ <input value="1" type="checkbox" name="mec[settings][date_suffix]" <?php if(isset($settings['date_suffix']) and $settings['date_suffix']) echo 'checked="checked"'; ?> /> <?php _e('Remove suffix from calendars', 'modern-events-calendar-lite'); ?>
307
  </label>
308
  </div>
309
 
310
  <?php $weekdays = $this->main->get_weekday_i18n_labels(); ?>
311
  <div class="mec-form-row">
312
 
313
+ <label class="mec-col-3" for="mec_settings_weekdays"><?php _e('Weekdays', 'modern-events-calendar-lite'); ?></label>
314
  <div class="mec-col-8">
315
  <?php $mec_weekdays = $this->main->get_weekdays(); foreach($weekdays as $weekday): ?>
316
  <label for="mec_settings_weekdays_<?php echo $weekday[0]; ?>">
318
  <?php echo $weekday[1]; ?>
319
  </label>
320
  <?php endforeach; ?>
321
+ <a class="mec-tooltip" title="<?php esc_attr_e('Proceed with caution. Default is set to Monday, Tuesday, Wednesday, Thursday and Friday.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
322
  </div>
323
 
324
  </div>
325
 
326
  <div class="mec-form-row">
327
 
328
+ <label class="mec-col-3" for="mec_settings_weekends"><?php _e('Weekends', 'modern-events-calendar-lite'); ?></label>
329
  <div class="mec-col-8">
330
  <?php $mec_weekends = $this->main->get_weekends(); foreach($weekdays as $weekday): ?>
331
  <label for="mec_settings_weekends_<?php echo $weekday[0]; ?>">
333
  <?php echo $weekday[1]; ?>
334
  </label>
335
  <?php endforeach; ?>
336
+ <a class="mec-tooltip" title="<?php esc_attr_e('Proceed with caution. Default is set to Saturday and Sunday.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
337
  </div>
338
 
339
  </div>
341
  </div>
342
 
343
  <div id="archive_options" class="mec-options-fields">
344
+ <h4 class="mec-form-subtitle"><?php _e('Archive Pages', 'modern-events-calendar-lite'); ?></h4>
345
 
346
  <div class="mec-form-row">
347
+ <label class="mec-col-3" for="mec_settings_archive_title"><?php _e('Archive Page Title', 'modern-events-calendar-lite'); ?></label>
348
  <div class="mec-col-4">
349
  <input type="text" id="mec_settings_archive_title" name="mec[settings][archive_title]" value="<?php echo ((isset($settings['archive_title']) and trim($settings['archive_title']) != '') ? $settings['archive_title'] : 'Events'); ?>" />
350
+ <a class="mec-tooltip" title="<?php esc_attr_e("Default value is Events", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
351
  </div>
352
  </div>
353
 
354
  <div class="mec-form-row">
355
+ <label class="mec-col-3" for="mec_settings_default_skin_archive"><?php _e('Archive Page Skin', 'modern-events-calendar-lite'); ?></label>
356
  <div class="mec-col-4">
357
  <select id="mec_settings_default_skin_archive" name="mec[settings][default_skin_archive]">
358
  <?php foreach($archive_skins as $archive_skin): ?>
359
  <option value="<?php echo $archive_skin['skin']; ?>" <?php if(isset($settings['default_skin_archive']) and $archive_skin['skin'] == $settings['default_skin_archive']) echo 'selected="selected"'; ?>><?php echo $archive_skin['name']; ?></option>
360
  <?php endforeach; ?>
361
  </select>
362
+ <a class="mec-tooltip" title="<?php esc_attr_e("Default value is Calendar/Monthly View", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
363
  </div>
364
  </div>
365
 
366
  <div class="mec-form-row">
367
+ <label class="mec-col-3" for="mec_settings_default_skin_category"><?php _e('Category Page Skin', 'modern-events-calendar-lite'); ?></label>
368
  <div class="mec-col-4">
369
  <select id="mec_settings_default_skin_category" name="mec[settings][default_skin_category]">
370
  <?php foreach($archive_skins as $archive_skin): ?>
371
  <option value="<?php echo $archive_skin['skin']; ?>" <?php if(isset($settings['default_skin_category']) and $archive_skin['skin'] == $settings['default_skin_category']) echo 'selected="selected"'; if(!isset($settings['default_skin_category']) and $archive_skin['skin'] == 'list') echo 'selected="selected"'; ?>><?php echo $archive_skin['name']; ?></option>
372
  <?php endforeach; ?>
373
  </select>
374
+ <a class="mec-tooltip" title="<?php esc_attr_e("Default value is List View", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
375
  </div>
376
  </div>
377
 
378
  <div class="mec-form-row">
379
+ <label class="mec-col-3" for="mec_settings_category_events_method"><?php _e('Category Events Method', 'modern-events-calendar-lite'); ?></label>
380
  <div class="mec-col-4">
381
  <select id="mec_settings_category_events_method" name="mec[settings][category_events_method]">
382
+ <option value="1" <?php if(!isset($settings['category_events_method']) or (isset($settings['category_events_method']) and $settings['category_events_method'] == 1)) echo 'selected="selected"'; ?>><?php _e('Upcoming Events', 'modern-events-calendar-lite'); ?></option>
383
+ <option value="2" <?php if(isset($settings['category_events_method']) and $settings['category_events_method'] == 2) echo 'selected="selected"'; ?>><?php _e('Expired Events', 'modern-events-calendar-lite'); ?></option>
384
  </select>
385
+ <a class="mec-tooltip" title="<?php esc_attr_e("Default value is Upcoming Events", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
386
  </div>
387
  </div>
388
 
389
  <div class="mec-form-row">
390
+ <label class="mec-col-3" for="mec_settings_archive_status"><?php _e('Events Archive Status', 'modern-events-calendar-lite'); ?></label>
391
  <div class="mec-col-4">
392
  <select id="mec_settings_archive_status" name="mec[settings][archive_status]">
393
+ <option value="1" <?php if(isset($settings['archive_status']) and $settings['archive_status'] == '1') echo 'selected="selected"'; ?>><?php _e('Enabled (Recommended)', 'modern-events-calendar-lite'); ?></option>
394
+ <option value="0" <?php if(isset($settings['archive_status']) and !$settings['archive_status']) echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
395
  </select>
396
+ <a class="mec-tooltip" title="<?php esc_attr_e("If you disable it, then you should create a page as archive page of MEC. Page's slug must equals to \"Main Slug\" of MEC. Also it will disable all of MEC rewrite rules.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
397
  </div>
398
  </div>
399
 
401
 
402
  <div id="slug_option" class="mec-options-fields">
403
 
404
+ <h4 class="mec-form-subtitle"><?php _e('Slugs/Permalinks', 'modern-events-calendar-lite'); ?></h4>
405
  <div class="mec-form-row">
406
+ <label class="mec-col-3" for="mec_settings_slug"><?php _e('Main Slug', 'modern-events-calendar-lite'); ?></label>
407
  <div class="mec-col-4">
408
  <input type="text" id="mec_settings_slug" name="mec[settings][slug]" value="<?php echo ((isset($settings['slug']) and trim($settings['slug']) != '') ? $settings['slug'] : 'events'); ?>" />
409
+ <a class="mec-tooltip" title="<?php esc_attr_e("Default value is events. Valid characters are lowercase a-z, - character and numbers.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
410
  </div>
411
  </div>
412
  <div class="mec-form-row">
413
+ <label class="mec-col-3" for="mec_settings_category_slug"><?php _e('Category Slug', 'modern-events-calendar-lite'); ?></label>
414
  <div class="mec-col-4">
415
  <input type="text" id="mec_settings_category_slug" name="mec[settings][category_slug]" value="<?php echo ((isset($settings['category_slug']) and trim($settings['category_slug']) != '') ? $settings['category_slug'] : 'mec-category'); ?>" />
416
+ <a class="mec-tooltip" title="<?php esc_attr_e("It's slug of MEC categories, you can change it to events-cat or something else. Default value is mec-category. Valid characters are lowercase a-z, - character and numbers.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
417
  </div>
418
  </div>
419
 
421
 
422
  <div id="event_options" class="mec-options-fields">
423
 
424
+ <h4 class="mec-form-subtitle"><?php _e('Event Details/Single Event Page', 'modern-events-calendar-lite'); ?></h4>
425
  <div class="mec-form-row">
426
+ <label class="mec-col-3" for="mec_settings_single_event_date_format1"><?php _e('Single Event Date Format', 'modern-events-calendar-lite'); ?></label>
427
  <div class="mec-col-4">
428
  <input type="text" id="mec_settings_single_event_date_format1" name="mec[settings][single_date_format1]" value="<?php echo ((isset($settings['single_date_format1']) and trim($settings['single_date_format1']) != '') ? $settings['single_date_format1'] : 'M d Y'); ?>" />
429
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default is M d Y', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
430
  </div>
431
  </div>
432
  <div class="mec-form-row">
433
+ <label class="mec-col-3" for="mec_settings_single_event_date_method"><?php _e('Date Method', 'modern-events-calendar-lite'); ?></label>
434
  <div class="mec-col-4">
435
  <select id="mec_settings_single_event_date_method" name="mec[settings][single_date_method]">
436
+ <option value="next" <?php echo (isset($settings['single_date_method']) and $settings['single_date_method'] == 'next') ? 'selected="selected"' : ''; ?>><?php _e('Next occurrence date', 'modern-events-calendar-lite'); ?></option>
437
+ <option value="referred" <?php echo (isset($settings['single_date_method']) and $settings['single_date_method'] == 'referred') ? 'selected="selected"' : ''; ?>><?php _e('Referred date', 'modern-events-calendar-lite'); ?></option>
438
  </select>
439
+ <a class="mec-tooltip" title="<?php esc_attr_e('"Referred date" shows the event date based on referred date in event list.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
440
  </div>
441
  </div>
442
  <div class="mec-form-row">
443
+ <label class="mec-col-3" for="mec_settings_single_event_single_style"><?php _e('Single Event Style', 'modern-events-calendar-lite'); ?></label>
444
  <div class="mec-col-4">
445
  <select id="mec_settings_single_event_single_style" name="mec[settings][single_single_style]">
446
+ <option value="default" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default') ? 'selected="selected"' : ''; ?>><?php _e('Default Style', 'modern-events-calendar-lite'); ?></option>
447
+ <option value="modern" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'modern') ? 'selected="selected"' : ''; ?>><?php _e('Modern Style', 'modern-events-calendar-lite'); ?></option>
448
  </select>
449
+ <a class="mec-tooltip" title="<?php esc_attr_e('Choose your single event style.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
450
  </div>
451
  </div>
452
 
453
  </div>
454
  <div id="currency_option" class="mec-options-fields">
455
 
456
+ <h4 class="mec-form-subtitle"><?php _e('Currency Options', 'modern-events-calendar-lite'); ?></h4>
457
  <div class="mec-form-row">
458
+ <label class="mec-col-3" for="mec_settings_currency"><?php _e('Currency', 'modern-events-calendar-lite'); ?></label>
459
  <div class="mec-col-4">
460
  <select name="mec[settings][currency]" id="mec_settings_currency" onchange="jQuery('#mec_settings_currency_symptom_container .mec-settings-currency-symptom-prev').html(this.value);">
461
  <?php foreach($currencies as $currency=>$currency_name): ?>
465
  </div>
466
  </div>
467
  <div class="mec-form-row">
468
+ <label class="mec-col-3" for="mec_settings_currency_symptom"><?php _e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
469
  <div class="mec-col-4">
470
  <input type="text" name="mec[settings][currency_symptom]" id="mec_settings_currency_symptom" value="<?php echo (isset($settings['currency_symptom']) ? $settings['currency_symptom'] : ''); ?>" />
471
+ <a class="mec-tooltip" title="<?php esc_attr_e("Default value will be \"currency\" if you leave it empty.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
472
  </div>
473
  </div>
474
  <div class="mec-form-row">
475
+ <label class="mec-col-3" for="mec_settings_currency_sign"><?php _e('Currency Position', 'modern-events-calendar-lite'); ?></label>
476
  <div class="mec-col-4">
477
  <select name="mec[settings][currency_sign]" id="mec_settings_currency_sign">
478
+ <option value="before" <?php echo ((isset($settings['currency_sign']) and $settings['currency_sign'] == 'before') ? 'selected="selected"' : ''); ?>><?php _e('Before $10', 'modern-events-calendar-lite'); ?></option>
479
+ <option value="after" <?php echo ((isset($settings['currency_sign']) and $settings['currency_sign'] == 'after') ? 'selected="selected"' : ''); ?>><?php _e('After 10$', 'modern-events-calendar-lite'); ?></option>
480
  </select>
481
  </div>
482
  </div>
483
  <div class="mec-form-row">
484
+ <label class="mec-col-3" for="mec_settings_thousand_separator"><?php _e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
485
  <div class="mec-col-4">
486
  <input type="text" name="mec[settings][thousand_separator]" id="mec_settings_thousand_separator" value="<?php echo (isset($settings['thousand_separator']) ? $settings['thousand_separator'] : ','); ?>" />
487
  </div>
488
  </div>
489
  <div class="mec-form-row">
490
+ <label class="mec-col-3" for="mec_settings_decimal_separator"><?php _e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
491
  <div class="mec-col-4">
492
  <input type="text" name="mec[settings][decimal_separator]" id="mec_settings_decimal_separator" value="<?php echo (isset($settings['decimal_separator']) ? $settings['decimal_separator'] : '.'); ?>" />
493
  </div>
497
  <label for="mec_settings_decimal_separator_status">
498
  <input type="hidden" name="mec[settings][decimal_separator_status]" value="1" />
499
  <input type="checkbox" name="mec[settings][decimal_separator_status]" id="mec_settings_decimal_separator_status" <?php echo ((isset($settings['decimal_separator_status']) and $settings['decimal_separator_status'] == '0') ? 'checked="checked"' : ''); ?> value="0" />
500
+ <?php _e('No decimal', 'modern-events-calendar-lite'); ?>
501
  </label>
502
  </div>
503
  </div>
505
  </div>
506
 
507
  <div id="googlemap_option" class="mec-options-fields">
508
+ <h4 class="mec-form-subtitle"><?php _e('Google Maps Options', 'modern-events-calendar-lite'); ?></h4>
509
 
510
  <?php if(!$this->main->getPRO()): ?>
511
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
512
  <?php else: ?>
513
  <div class="mec-form-row">
514
  <label>
515
  <input type="hidden" name="mec[settings][google_maps_status]" value="0" />
516
+ <input onchange="jQuery('#mec_google_maps_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][google_maps_status]" <?php if(isset($settings['google_maps_status']) and $settings['google_maps_status']) echo 'checked="checked"'; ?> /> <?php _e('Show Google Maps on event page', 'modern-events-calendar-lite'); ?>
517
  </label>
518
  </div>
519
  <div id="mec_google_maps_container_toggle" class="<?php if((isset($settings['google_maps_status']) and !$settings['google_maps_status']) or !isset($settings['google_maps_status'])) echo 'mec-util-hidden'; ?>">
520
  <div class="mec-form-row">
521
+ <label class="mec-col-3" for="mec_settings_google_maps_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
522
  <div class="mec-col-4">
523
  <input type="text" id="mec_settings_google_maps_api_key" name="mec[settings][google_maps_api_key]" value="<?php echo ((isset($settings['google_maps_api_key']) and trim($settings['google_maps_api_key']) != '') ? $settings['google_maps_api_key'] : ''); ?>" />
524
+ <a class="mec-tooltip" title="<?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
525
  </div>
526
  </div>
527
  <div class="mec-form-row">
528
+ <label class="mec-col-3"><?php _e('Zoom level', 'modern-events-calendar-lite'); ?></label>
529
  <div class="mec-col-4">
530
  <select name="mec[settings][google_maps_zoomlevel]">
531
  <?php for($i = 5; $i <= 21; $i++): ?>
532
  <option value="<?php echo $i; ?>" <?php if(isset($settings['google_maps_zoomlevel']) and $settings['google_maps_zoomlevel'] == $i) echo 'selected="selected"'; ?>><?php echo $i; ?></option>
533
  <?php endfor; ?>
534
  </select>
535
+ <a class="mec-tooltip" title="<?php esc_attr_e('For Google Maps module in single event page. In Google Maps skin, it will caculate the zoom level automatically based on event boundaries.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
536
  </div>
537
  </div>
538
  <div class="mec-form-row">
539
+ <label class="mec-col-3"><?php _e('Google Maps Style', 'modern-events-calendar-lite'); ?></label>
540
  <?php $styles = $this->main->get_googlemap_styles(); ?>
541
  <div class="mec-col-4">
542
  <select name="mec[settings][google_maps_style]">
543
+ <option value=""><?php _e('Default', 'modern-events-calendar-lite'); ?></option>
544
  <?php foreach($styles as $style): ?>
545
  <option value="<?php echo $style['key']; ?>" <?php if(isset($settings['google_maps_style']) and $settings['google_maps_style'] == $style['key']) echo 'selected="selected"'; ?>><?php echo $style['name']; ?></option>
546
  <?php endforeach; ?>
548
  </div>
549
  </div>
550
  <div class="mec-form-row">
551
+ <label class="mec-col-3"><?php _e('Direction on single event', 'modern-events-calendar-lite'); ?></label>
552
  <div class="mec-col-4">
553
  <select name="mec[settings][google_maps_get_direction_status]">
554
+ <option value="0"><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
555
+ <option value="1" <?php if(isset($settings['google_maps_get_direction_status']) and $settings['google_maps_get_direction_status'] == 1) echo 'selected="selected"'; ?>><?php _e('Simple Method', 'modern-events-calendar-lite'); ?></option>
556
+ <option value="2" <?php if(isset($settings['google_maps_get_direction_status']) and $settings['google_maps_get_direction_status'] == 2) echo 'selected="selected"'; ?>><?php _e('Advanced Method', 'modern-events-calendar-lite'); ?></option>
557
  </select>
558
  </div>
559
  </div>
560
  <div class="mec-form-row">
561
+ <label class="mec-col-3" for="mec_settings_google_maps_date_format1"><?php _e('Lightbox Date Format', 'modern-events-calendar-lite'); ?></label>
562
  <div class="mec-col-4">
563
  <input type="text" id="mec_settings_google_maps_date_format1" name="mec[settings][google_maps_date_format1]" value="<?php echo ((isset($settings['google_maps_date_format1']) and trim($settings['google_maps_date_format1']) != '') ? $settings['google_maps_date_format1'] : 'M d Y'); ?>" />
564
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default value is M d Y', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
565
  </div>
566
  </div>
567
  <div class="mec-form-row">
568
+ <label class="mec-col-3"><?php _e('Google Maps API', 'modern-events-calendar-lite'); ?></label>
569
  <div class="mec-col-4">
570
  <label>
571
  <input type="hidden" name="mec[settings][google_maps_dont_load_api]" value="0" />
572
+ <input value="1" type="checkbox" name="mec[settings][google_maps_dont_load_api]" <?php if(isset($settings['google_maps_dont_load_api']) and $settings['google_maps_dont_load_api']) echo 'checked="checked"'; ?> /> <?php _e("Don't load Google Maps API library", 'modern-events-calendar-lite'); ?>
573
  </label>
574
+ <a class="mec-tooltip" title="<?php esc_attr_e("Check it only if another plugin/theme is loading the Google Maps API", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
575
  </div>
576
  </div>
577
  </div>
579
  </div>
580
 
581
  <div id="recaptcha_option" class="mec-options-fields">
582
+ <h4 class="mec-form-subtitle"><?php _e('Google Recaptcha Options', 'modern-events-calendar-lite'); ?></h4>
583
  <div class="mec-form-row">
584
  <label>
585
  <input type="hidden" name="mec[settings][google_recaptcha_status]" value="0" />
586
+ <input onchange="jQuery('#mec_google_recaptcha_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][google_recaptcha_status]" <?php if(isset($settings['google_recaptcha_status']) and $settings['google_recaptcha_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Google Recaptcha', 'modern-events-calendar-lite'); ?>
587
  </label>
588
  </div>
589
  <div id="mec_google_recaptcha_container_toggle" class="<?php if((isset($settings['google_recaptcha_status']) and !$settings['google_recaptcha_status']) or !isset($settings['google_recaptcha_status'])) echo 'mec-util-hidden'; ?>">
590
  <div class="mec-form-row">
591
  <label>
592
  <input type="hidden" name="mec[settings][google_recaptcha_booking]" value="0" />
593
+ <input value="1" type="checkbox" name="mec[settings][google_recaptcha_booking]" <?php if(isset($settings['google_recaptcha_booking']) and $settings['google_recaptcha_booking']) echo 'checked="checked"'; ?> /> <?php _e('Enable on booking form', 'modern-events-calendar-lite'); ?>
594
  </label>
595
  </div>
596
  <div class="mec-form-row">
597
  <label>
598
  <input type="hidden" name="mec[settings][google_recaptcha_fes]" value="0" />
599
+ <input value="1" type="checkbox" name="mec[settings][google_recaptcha_fes]" <?php if(isset($settings['google_recaptcha_fes']) and $settings['google_recaptcha_fes']) echo 'checked="checked"'; ?> /> <?php _e('Enable on "Frontend Event Submittion" form', 'modern-events-calendar-lite'); ?>
600
  </label>
601
  </div>
602
  <div class="mec-form-row">
603
+ <label class="mec-col-3" for="mec_settings_google_recaptcha_sitekey"><?php _e('Site Key', 'modern-events-calendar-lite'); ?></label>
604
  <div class="mec-col-4">
605
  <input type="text" id="mec_settings_google_recaptcha_sitekey" name="mec[settings][google_recaptcha_sitekey]" value="<?php echo ((isset($settings['google_recaptcha_sitekey']) and trim($settings['google_recaptcha_sitekey']) != '') ? $settings['google_recaptcha_sitekey'] : ''); ?>" />
606
  </div>
607
  </div>
608
  <div class="mec-form-row">
609
+ <label class="mec-col-3" for="mec_settings_google_recaptcha_secretkey"><?php _e('Secret Key', 'modern-events-calendar-lite'); ?></label>
610
  <div class="mec-col-4">
611
  <input type="text" id="mec_settings_google_recaptcha_secretkey" name="mec[settings][google_recaptcha_secretkey]" value="<?php echo ((isset($settings['google_recaptcha_secretkey']) and trim($settings['google_recaptcha_secretkey']) != '') ? $settings['google_recaptcha_secretkey'] : ''); ?>" />
612
  </div>
616
  </div>
617
 
618
  <div id="export_module_option" class="mec-options-fields">
619
+ <h4 class="mec-form-subtitle"><?php _e('Export Module Options', 'modern-events-calendar-lite'); ?></h4>
620
  <div class="mec-form-row">
621
  <label>
622
  <input type="hidden" name="mec[settings][export_module_status]" value="0" />
623
+ <input onchange="jQuery('#mec_export_module_options_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][export_module_status]" <?php if(isset($settings['export_module_status']) and $settings['export_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show export module (iCal export and add to Google calendars) on event page', 'modern-events-calendar-lite'); ?>
624
  </label>
625
  </div>
626
  <div id="mec_export_module_options_container_toggle" class="<?php if((isset($settings['export_module_status']) and !$settings['export_module_status']) or !isset($settings['export_module_status'])) echo 'mec-util-hidden'; ?>">
627
  <div class="mec-form-row">
628
  <ul id="mec_export_module_options" class="mec-form-row">
629
  <?php
630
+ $event_options = array('googlecal'=>__('Google Calendar', 'modern-events-calendar-lite'), 'ical'=>__('iCal', 'modern-events-calendar-lite'));
631
  foreach($event_options as $event_key=>$event_option): ?>
632
  <li id="mec_sn_<?php echo esc_attr($event_key); ?>" data-id="<?php echo esc_attr($event_key); ?>" class="mec-form-row mec-switcher <?php echo ((isset($settings['sn'][$event_key]) and $settings['sn'][$event_key]) ? 'mec-enabled' : 'mec-disabled'); ?>">
633
  <label class="mec-col-3"><?php echo esc_html($event_option); ?></label>
643
  </div>
644
 
645
  <div id="time_module_option" class="mec-options-fields">
646
+ <h4 class="mec-form-subtitle"><?php _e('Local Time Module', 'modern-events-calendar-lite'); ?></h4>
647
  <div class="mec-form-row">
648
  <label>
649
  <input type="hidden" name="mec[settings][local_time_module_status]" value="0" />
650
+ <input onchange="jQuery('#mec_local_time_module_options_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][local_time_module_status]" <?php if(isset($settings['local_time_module_status']) and $settings['local_time_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show event time based on local time of visitor on event page', 'modern-events-calendar-lite'); ?>
651
  </label>
652
  </div>
653
  <div id="mec_local_time_module_options_container_toggle" class="<?php if((isset($settings['local_time_module_status']) and !$settings['local_time_module_status']) or !isset($settings['local_time_module_status'])) echo 'mec-util-hidden'; ?>">
655
  </div>
656
 
657
  <div id="qrcode_module_option" class="mec-options-fields">
658
+ <h4 class="mec-form-subtitle"><?php _e('QR Code Module', 'modern-events-calendar-lite'); ?></h4>
659
 
660
  <?php if(!$this->main->getPRO()): ?>
661
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
662
  <?php else: ?>
663
  <div class="mec-form-row">
664
  <label>
665
  <input type="hidden" name="mec[settings][qrcode_module_status]" value="0" />
666
+ <input onchange="jQuery('#mec_qrcode_module_options_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][qrcode_module_status]" <?php if(!isset($settings['qrcode_module_status']) or (isset($settings['qrcode_module_status']) and $settings['qrcode_module_status'])) echo 'checked="checked"'; ?> /> <?php _e('Show QR code of event in details page and booking invoice', 'modern-events-calendar-lite'); ?>
667
  </label>
668
  </div>
669
  <div id="mec_qrcode_module_options_container_toggle" class="<?php if((isset($settings['qrcode_module_status']) and !$settings['qrcode_module_status']) or !isset($settings['qrcode_module_status'])) echo 'mec-util-hidden'; ?>">
673
  </div>
674
 
675
  <div id="weather_module_option" class="mec-options-fields">
676
+ <h4 class="mec-form-subtitle"><?php _e('Weather Module', 'modern-events-calendar-lite'); ?></h4>
677
 
678
  <?php if(!$this->main->getPRO()): ?>
679
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
680
  <?php else: ?>
681
  <div class="mec-form-row">
682
  <label>
683
  <input type="hidden" name="mec[settings][weather_module_status]" value="0" />
684
+ <input onchange="jQuery('#mec_weather_module_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][weather_module_status]" <?php if(isset($settings['weather_module_status']) and $settings['weather_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show weather module on event page', 'modern-events-calendar-lite'); ?>
685
  </label>
686
  </div>
687
  <div id="mec_weather_module_container_toggle" class="<?php if((isset($settings['weather_module_status']) and !$settings['weather_module_status']) or !isset($settings['weather_module_status'])) echo 'mec-util-hidden'; ?>">
688
  <div class="mec-form-row">
689
+ <label class="mec-col-3" for="mec_settings_weather_module_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
690
  <div class="mec-col-8">
691
  <input type="text" name="mec[settings][weather_module_api_key]" id="mec_settings_weather_module_api_key" value="<?php echo ((isset($settings['weather_module_api_key']) and trim($settings['weather_module_api_key']) != '') ? $settings['weather_module_api_key'] : ''); ?>">
692
+ <p><?php echo sprintf(__('You can get a free API Key from %s', 'modern-events-calendar-lite'), '<a target="_blank" href="https://darksky.net/dev/register">https://darksky.net/dev/register</a>'); ?></p>
693
  </div>
694
  </div>
695
  </div>
697
  </div>
698
 
699
  <div id="countdown_option" class="mec-options-fields">
700
+ <h4 class="mec-form-subtitle"><?php _e('Countdown Options', 'modern-events-calendar-lite'); ?></h4>
701
  <div class="mec-form-row">
702
  <label>
703
  <input type="hidden" name="mec[settings][countdown_status]" value="0" />
704
+ <input onchange="jQuery('#mec_count_down_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][countdown_status]" <?php if(isset($settings['countdown_status']) and $settings['countdown_status']) echo 'checked="checked"'; ?> /> <?php _e('Show countdown module on event page', 'modern-events-calendar-lite'); ?>
705
  </label>
706
  </div>
707
  <div id="mec_count_down_container_toggle" class="<?php if((isset($settings['countdown_status']) and !$settings['countdown_status']) or !isset($settings['countdown_status'])) echo 'mec-util-hidden'; ?>">
708
  <div class="mec-form-row">
709
+ <label class="mec-col-3" for="mec_settings_countdown_list"><?php _e('Countdown Style', 'modern-events-calendar-lite'); ?></label>
710
  <div class="mec-col-4">
711
  <select id="mec_settings_countdown_list" name="mec[settings][countdown_list]">
712
+ <option value="default" <?php echo ((isset($settings['countdown_list']) and $settings['countdown_list'] == "default") ? 'selected="selected"' : ''); ?> ><?php _e('Plain Style', 'modern-events-calendar-lite'); ?></option>
713
+ <option value="flip" <?php echo ((isset($settings['countdown_list']) and $settings['countdown_list'] == "flip") ? 'selected="selected"' : ''); ?> ><?php _e('Flip Style', 'modern-events-calendar-lite'); ?></option>
714
  </select>
715
  </div>
716
  </div>
718
  </div>
719
 
720
  <div id="social_options" class="mec-options-fields">
721
+ <h4 class="mec-form-subtitle"><?php _e('Social Networks', 'modern-events-calendar-lite'); ?></h4>
722
  <div class="mec-form-row">
723
  <label>
724
  <input type="hidden" name="mec[settings][social_network_status]" value="0" />
725
+ <input onchange="jQuery('#mec_social_network_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][social_network_status]" <?php if(isset($settings['social_network_status']) and $settings['social_network_status']) echo 'checked="checked"'; ?> /> <?php _e('Show social network module', 'modern-events-calendar-lite'); ?>
726
  </label>
727
  </div>
728
  <div id="mec_social_network_container_toggle" class="<?php if((isset($settings['social_network_status']) and !$settings['social_network_status']) or !isset($settings['social_network_status'])) echo 'mec-util-hidden'; ?>">
743
  </div>
744
 
745
  <div id="next_event_option" class="mec-options-fields">
746
+ <h4 class="mec-form-subtitle"><?php _e('Next Event Module', 'modern-events-calendar-lite'); ?></h4>
747
  <div class="mec-form-row">
748
  <label>
749
  <input type="hidden" name="mec[settings][next_event_module_status]" value="0" />
750
+ <input onchange="jQuery('#mec_next_previous_event_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][next_event_module_status]" <?php if(isset($settings['next_event_module_status']) and $settings['next_event_module_status']) echo 'checked="checked"'; ?> /> <?php _e('Show next event module on event page', 'modern-events-calendar-lite'); ?>
751
  </label>
752
  </div>
753
  <div id="mec_next_previous_event_container_toggle" class="<?php if((isset($settings['next_event_module_status']) and !$settings['next_event_module_status']) or !isset($settings['next_event_module_status'])) echo 'mec-util-hidden'; ?>">
754
  <div class="mec-form-row">
755
+ <label class="mec-col-3" for="mec_settings_next_event_module_method"><?php _e('Method', 'modern-events-calendar-lite'); ?></label>
756
  <div class="mec-col-4">
757
  <select id="mec_settings_next_event_module_method" name="mec[settings][next_event_module_method]">
758
+ <option value="occurrence" <?php echo ((isset($settings['next_event_module_method']) and $settings['next_event_module_method'] == 'occurrence') ? 'selected="selected"' : ''); ?>><?php _e('Next Occurrence of Current Event', 'modern-events-calendar-lite'); ?></option>
759
+ <option value="event" <?php echo ((isset($settings['next_event_module_method']) and $settings['next_event_module_method'] == 'event') ? 'selected="selected"' : ''); ?>><?php _e('Next Occurrence of Other Events', 'modern-events-calendar-lite'); ?></option>
760
  </select>
761
  </div>
762
  </div>
763
  <div class="mec-form-row">
764
+ <label class="mec-col-3" for="mec_settings_next_event_module_date_format1"><?php _e('Date Format', 'modern-events-calendar-lite'); ?></label>
765
  <div class="mec-col-4">
766
  <input type="text" id="mec_settings_next_event_module_date_format1" name="mec[settings][next_event_module_date_format1]" value="<?php echo ((isset($settings['next_event_module_date_format1']) and trim($settings['next_event_module_date_format1']) != '') ? $settings['next_event_module_date_format1'] : 'M d Y'); ?>" />
767
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default is M d Y', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
768
  </div>
769
  </div>
770
  </div>
771
  </div>
772
 
773
  <div id="fes_option" class="mec-options-fields">
774
+ <h4 class="mec-form-subtitle"><?php _e('Frontend Event Submission', 'modern-events-calendar-lite'); ?></h4>
775
  <div class="mec-form-row">
776
+ <label class="mec-col-3" for="mec_settings_fes_list_page"><?php _e('Events List Page', 'modern-events-calendar-lite'); ?></label>
777
  <div class="mec-col-4">
778
  <select id="mec_settings_fes_list_page" name="mec[settings][fes_list_page]">
779
  <option value="">----</option>
782
  <?php endforeach; ?>
783
  </select>
784
  </div>
785
+ <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[MEC_fes_list]</code>'); ?></p>
786
  </div>
787
  <div class="mec-form-row">
788
+ <label class="mec-col-3" for="mec_settings_fes_form_page"><?php _e('Add/Edit Events Page', 'modern-events-calendar-lite'); ?></label>
789
  <div class="mec-col-4">
790
  <select id="mec_settings_fes_form_page" name="mec[settings][fes_form_page]">
791
  <option value="">----</option>
794
  <?php endforeach; ?>
795
  </select>
796
  </div>
797
+ <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[MEC_fes_form]</code>'); ?></p>
798
  </div>
799
  <div class="mec-form-row">
800
  <label>
801
  <input type="hidden" name="mec[settings][fes_guest_status]" value="0" />
802
+ <input onchange="jQuery('#mec_fes_guest_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][fes_guest_status]" <?php if(isset($settings['fes_guest_status']) and $settings['fes_guest_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable event submission by guest (Not logged-in) users', 'modern-events-calendar-lite'); ?>
803
  </label>
804
  </div>
805
  <div id="mec_fes_guest_status_container_toggle" class="<?php if((isset($settings['fes_guest_status']) and !$settings['fes_guest_status']) or !isset($settings['fes_guest_status'])) echo 'mec-util-hidden'; ?>">
806
  <div class="mec-form-row">
807
  <label>
808
  <input type="hidden" name="mec[settings][fes_guest_name_email]" value="0" />
809
+ <input value="1" type="checkbox" name="mec[settings][fes_guest_name_email]" <?php if(!isset($settings['fes_guest_name_email']) or (isset($settings['fes_guest_name_email']) and $settings['fes_guest_name_email'])) echo 'checked="checked"'; ?> /> <?php _e('Enable mandatory email and name for guest user', 'modern-events-calendar-lite'); ?>
810
  </label>
811
  </div>
812
  </div>
813
+ <h4 class="mec-form-subtitle"><?php _e('Frontend Event Submission Sections', 'modern-events-calendar-lite'); ?></h4>
814
  <div class="mec-form-row">
815
  <label>
816
  <input type="hidden" name="mec[settings][fes_section_event_links]" value="0" />
817
+ <input value="1" type="checkbox" name="mec[settings][fes_section_event_links]" <?php if(!isset($settings['fes_section_event_links']) or (isset($settings['fes_section_event_links']) and $settings['fes_section_event_links'])) echo 'checked="checked"'; ?> /> <?php _e('Event Links', 'modern-events-calendar-lite'); ?>
818
  </label>
819
  </div>
820
  <div class="mec-form-row">
821
  <label>
822
  <input type="hidden" name="mec[settings][fes_section_cost]" value="0" />
823
+ <input value="1" type="checkbox" name="mec[settings][fes_section_cost]" <?php if(!isset($settings['fes_section_cost']) or (isset($settings['fes_section_cost']) and $settings['fes_section_cost'])) echo 'checked="checked"'; ?> /> <?php echo $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')); ?>
824
  </label>
825
  </div>
826
  <div class="mec-form-row">
827
  <label>
828
  <input type="hidden" name="mec[settings][fes_section_featured_image]" value="0" />
829
+ <input value="1" type="checkbox" name="mec[settings][fes_section_featured_image]" <?php if(!isset($settings['fes_section_featured_image']) or (isset($settings['fes_section_featured_image']) and $settings['fes_section_featured_image'])) echo 'checked="checked"'; ?> /> <?php _e('Featured Image', 'modern-events-calendar-lite'); ?>
830
  </label>
831
  </div>
832
  <div class="mec-form-row">
833
  <label>
834
  <input type="hidden" name="mec[settings][fes_section_categories]" value="0" />
835
+ <input value="1" type="checkbox" name="mec[settings][fes_section_categories]" <?php if(!isset($settings['fes_section_categories']) or (isset($settings['fes_section_categories']) and $settings['fes_section_categories'])) echo 'checked="checked"'; ?> /> <?php _e('Event Categories', 'modern-events-calendar-lite'); ?>
836
  </label>
837
  </div>
838
  <div class="mec-form-row">
839
  <label>
840
  <input type="hidden" name="mec[settings][fes_section_labels]" value="0" />
841
+ <input value="1" type="checkbox" name="mec[settings][fes_section_labels]" <?php if(!isset($settings['fes_section_labels']) or (isset($settings['fes_section_labels']) and $settings['fes_section_labels'])) echo 'checked="checked"'; ?> /> <?php _e('Event Labels', 'modern-events-calendar-lite'); ?>
842
  </label>
843
  </div>
844
  <div class="mec-form-row">
845
  <label>
846
  <input type="hidden" name="mec[settings][fes_section_event_color]" value="0" />
847
+ <input value="1" type="checkbox" name="mec[settings][fes_section_event_color]" <?php if(!isset($settings['fes_section_event_color']) or (isset($settings['fes_section_event_color']) and $settings['fes_section_event_color'])) echo 'checked="checked"'; ?> /> <?php _e('Event Color', 'modern-events-calendar-lite'); ?>
848
  </label>
849
  </div>
850
  <div class="mec-form-row">
851
  <label>
852
  <input type="hidden" name="mec[settings][fes_section_tags]" value="0" />
853
+ <input value="1" type="checkbox" name="mec[settings][fes_section_tags]" <?php if(!isset($settings['fes_section_tags']) or (isset($settings['fes_section_tags']) and $settings['fes_section_tags'])) echo 'checked="checked"'; ?> /> <?php _e('Event Tags', 'modern-events-calendar-lite'); ?>
854
  </label>
855
  </div>
856
  <div class="mec-form-row">
857
  <label>
858
  <input type="hidden" name="mec[settings][fes_section_location]" value="0" />
859
+ <input value="1" type="checkbox" name="mec[settings][fes_section_location]" <?php if(!isset($settings['fes_section_location']) or (isset($settings['fes_section_location']) and $settings['fes_section_location'])) echo 'checked="checked"'; ?> /> <?php _e('Event Location', 'modern-events-calendar-lite'); ?>
860
  </label>
861
  </div>
862
  <div class="mec-form-row">
863
  <label>
864
  <input type="hidden" name="mec[settings][fes_section_organizer]" value="0" />
865
+ <input value="1" type="checkbox" name="mec[settings][fes_section_organizer]" <?php if(!isset($settings['fes_section_organizer']) or (isset($settings['fes_section_organizer']) and $settings['fes_section_organizer'])) echo 'checked="checked"'; ?> /> <?php _e('Event Organizer', 'modern-events-calendar-lite'); ?>
866
  </label>
867
  </div>
868
  <div class="mec-form-row">
869
  <label>
870
  <input type="hidden" name="mec[settings][fes_section_hourly_schedule]" value="0" />
871
+ <input value="1" type="checkbox" name="mec[settings][fes_section_hourly_schedule]" <?php if(!isset($settings['fes_section_hourly_schedule']) or (isset($settings['fes_section_hourly_schedule']) and $settings['fes_section_hourly_schedule'])) echo 'checked="checked"'; ?> /> <?php _e('Hourly Schedule', 'modern-events-calendar-lite'); ?>
872
  </label>
873
  </div>
874
  <div class="mec-form-row">
875
  <label>
876
  <input type="hidden" name="mec[settings][fes_section_booking]" value="0" />
877
+ <input value="1" type="checkbox" name="mec[settings][fes_section_booking]" <?php if(!isset($settings['fes_section_booking']) or (isset($settings['fes_section_booking']) and $settings['fes_section_booking'])) echo 'checked="checked"'; ?> /> <?php _e('Booking Options', 'modern-events-calendar-lite'); ?>
878
  </label>
879
  </div>
880
  <div class="mec-form-row">
881
  <label>
882
  <input type="hidden" name="mec[settings][fes_section_fees]" value="0" />
883
+ <input value="1" type="checkbox" name="mec[settings][fes_section_fees]" <?php if(!isset($settings['fes_section_fees']) or (isset($settings['fes_section_fees']) and $settings['fes_section_fees'])) echo 'checked="checked"'; ?> /> <?php _e('Fees/Taxes Options', 'modern-events-calendar-lite'); ?>
884
  </label>
885
  </div>
886
  <div class="mec-form-row">
887
  <label>
888
  <input type="hidden" name="mec[settings][fes_note]" value="0" />
889
+ <input onchange="jQuery('#mec_fes_note_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][fes_note]" <?php if(isset($settings['fes_note']) and $settings['fes_note']) echo 'checked="checked"'; ?> /> <?php _e('Event Note', 'modern-events-calendar-lite'); ?>
890
  </label>
891
+ <a class="mec-tooltip" title="<?php esc_attr_e("Users can put a note for editors while they're submitting the event. Also you can put %%event_note%% into the new event notification in order to get users' note in email.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
892
  </div>
893
  <div id="mec_fes_note_container_toggle" class="<?php if((isset($settings['fes_note']) and !$settings['fes_note']) or !isset($settings['fes_note'])) echo 'mec-util-hidden'; ?>">
894
  <div class="mec-form-row">
895
+ <label class="mec-col-3" for="mec_settings_fes_note_visibility"><?php _e('Visibility of Note', 'modern-events-calendar-lite'); ?></label>
896
  <div class="mec-col-4">
897
  <select id="mec_settings_fes_note_visibility" name="mec[settings][fes_note_visibility]">
898
+ <option <?php echo ((isset($settings['fes_note_visibility']) and $settings['fes_note_visibility'] == 'always') ? 'selected="selected"' : ''); ?> value="always"><?php _e('Always', 'modern-events-calendar-lite'); ?></option>
899
+ <option <?php echo ((isset($settings['fes_note_visibility']) and $settings['fes_note_visibility'] == 'pending') ? 'selected="selected"' : ''); ?> value="pending"><?php _e('While event is not published', 'modern-events-calendar-lite'); ?></option>
900
  </select>
901
  </div>
902
+ <a class="mec-tooltip" title="<?php esc_attr_e("Event Note shows on Frontend Submission Form and Edit Event in backend.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
903
  </div>
904
  </div>
905
  </div>
906
 
907
  <div id="exceptional_option" class="mec-options-fields">
908
+ <h4 class="mec-form-subtitle"><?php _e('Exceptional days', 'modern-events-calendar-lite'); ?></h4>
909
  <div class="mec-form-row">
910
  <label>
911
  <input type="hidden" name="mec[settings][exceptional_days]" value="0" />
912
+ <input value="1" type="checkbox" name="mec[settings][exceptional_days]" <?php if(isset($settings['exceptional_days']) and $settings['exceptional_days']) echo 'checked="checked"'; ?> /> <?php _e('Show exceptional days option on Add/Edit events page', 'modern-events-calendar-lite'); ?>
913
+ <a class="mec-tooltip" title="<?php esc_attr_e('Using this option you can include/exclude certain days to/from event occurrence dates.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
914
  </label>
915
  </div>
916
  </div>
917
 
918
  <div id="additional_organizers" class="mec-options-fields">
919
+ <h4 class="mec-form-subtitle"><?php _e('Additional Organizers', 'modern-events-calendar-lite'); ?></h4>
920
  <div class="mec-form-row">
921
  <label>
922
  <input type="hidden" name="mec[settings][additional_organizers]" value="0" />
923
+ <input value="1" type="checkbox" name="mec[settings][additional_organizers]" <?php if(!isset($settings['additional_organizers']) or (isset($settings['additional_organizers']) and $settings['additional_organizers'])) echo 'checked="checked"'; ?> /> <?php _e('Show additional organizers option on Add/Edit events page and single event page.', 'modern-events-calendar-lite'); ?>
924
  </label>
925
  </div>
926
  </div>
927
 
928
  <div id="booking_option" class="mec-options-fields">
929
+ <h4 class="mec-form-subtitle"><?php _e('Booking', 'modern-events-calendar-lite'); ?></h4>
930
 
931
  <?php if(!$this->main->getPRO()): ?>
932
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
933
  <?php else: ?>
934
  <div class="mec-form-row">
935
  <label>
936
  <input type="hidden" name="mec[settings][booking_status]" value="0" />
937
+ <input onchange="jQuery('#mec_booking_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][booking_status]" <?php if(isset($settings['booking_status']) and $settings['booking_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable booking module', 'modern-events-calendar-lite'); ?>
938
  </label>
939
  </div>
940
  <div id="mec_booking_container_toggle" class="<?php if((isset($settings['booking_status']) and !$settings['booking_status']) or !isset($settings['booking_status'])) echo 'mec-util-hidden'; ?>">
941
  <div class="mec-form-row">
942
+ <label class="mec-col-3" for="mec_settings_booking_date_format1"><?php _e('Date Format', 'modern-events-calendar-lite'); ?></label>
943
  <div class="mec-col-4">
944
  <input type="text" id="mec_settings_booking_date_format1" name="mec[settings][booking_date_format1]" value="<?php echo ((isset($settings['booking_date_format1']) and trim($settings['booking_date_format1']) != '') ? $settings['booking_date_format1'] : 'Y-m-d'); ?>" />
945
+ <a class="mec-tooltip" title="<?php esc_attr_e('Default is Y-m-d', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
946
  </div>
947
  </div>
948
  <div class="mec-form-row">
949
+ <label class="mec-col-3" for="mec_settings_booking_maximum_dates"><?php _e('Maximum Dates', 'modern-events-calendar-lite'); ?></label>
950
  <div class="mec-col-4">
951
+ <input type="number" id="mec_settings_booking_maximum_dates" name="mec[settings][booking_maximum_dates]" value="<?php echo ((isset($settings['booking_maximum_dates']) and trim($settings['booking_maximum_dates']) != '') ? $settings['booking_maximum_dates'] : '6'); ?>" placeholder="<?php esc_attr_e('Default is 6', 'modern-events-calendar-lite'); ?>" min="1" />
952
  </div>
953
  </div>
954
  <div class="mec-form-row">
955
+ <label class="mec-col-3" for="mec_settings_booking_thankyou_page"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></label>
956
  <div class="mec-col-4">
957
  <select id="mec_settings_booking_thankyou_page" name="mec[settings][booking_thankyou_page]">
958
  <option value="">----</option>
960
  <option <?php echo ((isset($settings['booking_thankyou_page']) and $settings['booking_thankyou_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo $page->ID; ?>"><?php echo $page->post_title; ?></option>
961
  <?php endforeach; ?>
962
  </select>
963
+ <a class="mec-tooltip" title="<?php esc_attr_e('User redirects to this page after booking. Leave it empty if you want to disable it.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
964
  </div>
965
  </div>
966
  <div class="mec-form-row">
968
  <label for="mec_settings_booking_first_for_all">
969
  <input type="hidden" name="mec[settings][booking_first_for_all]" value="0" />
970
  <input type="checkbox" name="mec[settings][booking_first_for_all]" id="mec_settings_booking_first_for_all" <?php echo ((!isset($settings['booking_first_for_all']) or (isset($settings['booking_first_for_all']) and $settings['booking_first_for_all'] == '1')) ? 'checked="checked"' : ''); ?> value="1" />
971
+ <?php _e('Enable Express Attendees Form', 'modern-events-calendar-lite'); ?>
972
  </label>
973
+ <a class="mec-tooltip" title="<?php esc_attr_e('Users are able to apply first attendee information for other attendees in the booking form.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
974
  </div>
975
  </div>
976
+ <h5 class="mec-form-subtitle"><?php _e('Email verification', 'modern-events-calendar-lite'); ?></h5>
977
  <div class="mec-form-row">
978
  <div class="mec-col-12">
979
  <label for="mec_settings_booking_auto_verify_free">
980
  <input type="hidden" name="mec[settings][booking_auto_verify_free]" value="0" />
981
  <input type="checkbox" name="mec[settings][booking_auto_verify_free]" id="mec_settings_booking_auto_verify_free" <?php echo ((isset($settings['booking_auto_verify_free']) and $settings['booking_auto_verify_free'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
982
+ <?php _e('Auto verification for free bookings', 'modern-events-calendar-lite'); ?>
983
  </label>
984
  </div>
985
  </div>
988
  <label for="mec_settings_booking_auto_verify_paid">
989
  <input type="hidden" name="mec[settings][booking_auto_verify_paid]" value="0" />
990
  <input type="checkbox" name="mec[settings][booking_auto_verify_paid]" id="mec_settings_booking_auto_verify_paid" <?php echo ((isset($settings['booking_auto_verify_paid']) and $settings['booking_auto_verify_paid'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
991
+ <?php _e('Auto verification for paid bookings', 'modern-events-calendar-lite'); ?>
992
  </label>
993
  </div>
994
  </div>
995
+ <h5 class="mec-form-subtitle"><?php _e('Booking Confirmation', 'modern-events-calendar-lite'); ?></h5>
996
  <div class="mec-form-row">
997
  <div class="mec-col-12">
998
  <label for="mec_settings_booking_auto_confirm_free">
999
  <input type="hidden" name="mec[settings][booking_auto_confirm_free]" value="0" />
1000
  <input type="checkbox" name="mec[settings][booking_auto_confirm_free]" id="mec_settings_booking_auto_confirm_free" <?php echo ((isset($settings['booking_auto_confirm_free']) and $settings['booking_auto_confirm_free'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
1001
+ <?php _e('Auto confirmation for free bookings', 'modern-events-calendar-lite'); ?>
1002
  </label>
1003
  </div>
1004
  </div>
1007
  <label for="mec_settings_booking_auto_confirm_paid">
1008
  <input type="hidden" name="mec[settings][booking_auto_confirm_paid]" value="0" />
1009
  <input type="checkbox" name="mec[settings][booking_auto_confirm_paid]" id="mec_settings_booking_auto_confirm_paid" <?php echo ((isset($settings['booking_auto_confirm_paid']) and $settings['booking_auto_confirm_paid'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
1010
+ <?php _e('Auto confirmation for paid bookings', 'modern-events-calendar-lite'); ?>
1011
  </label>
1012
  </div>
1013
  </div>
1016
  </div>
1017
 
1018
  <div id="coupon_option" class="mec-options-fields">
1019
+ <h4 class="mec-form-subtitle"><?php _e('Coupons', 'modern-events-calendar-lite'); ?></h4>
1020
 
1021
  <?php if(!$this->main->getPRO()): ?>
1022
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
1023
  <?php else: ?>
1024
  <div class="mec-form-row">
1025
  <label>
1026
  <input type="hidden" name="mec[settings][coupons_status]" value="0" />
1027
+ <input onchange="jQuery('#mec_coupons_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][coupons_status]" <?php if(isset($settings['coupons_status']) and $settings['coupons_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable coupons module', 'modern-events-calendar-lite'); ?>
1028
  </label>
1029
  </div>
1030
  <div id="mec_coupons_container_toggle" class="<?php if((isset($settings['coupons_status']) and !$settings['coupons_status']) or !isset($settings['coupons_status'])) echo 'mec-util-hidden'; ?>">
1033
  </div>
1034
 
1035
  <div id="taxes_option" class="mec-options-fields">
1036
+ <h4 class="mec-form-subtitle"><?php _e('Taxes / Fees', 'modern-events-calendar-lite'); ?></h4>
1037
 
1038
  <?php if(!$this->main->getPRO()): ?>
1039
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
1040
  <?php else: ?>
1041
  <div class="mec-form-row">
1042
  <label>
1043
  <input type="hidden" name="mec[settings][taxes_fees_status]" value="0" />
1044
+ <input onchange="jQuery('#mec_taxes_fees_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][taxes_fees_status]" <?php if(isset($settings['taxes_fees_status']) and $settings['taxes_fees_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable taxes / fees module', 'modern-events-calendar-lite'); ?>
1045
  </label>
1046
  </div>
1047
  <div id="mec_taxes_fees_container_toggle" class="<?php if((isset($settings['taxes_fees_status']) and !$settings['taxes_fees_status']) or !isset($settings['taxes_fees_status'])) echo 'mec-util-hidden'; ?>">
1048
  <div class="mec-form-row">
1049
+ <button class="button" type="button" id="mec_add_fee_button"><?php _e('Add Fee', 'modern-events-calendar-lite'); ?></button>
1050
  </div>
1051
  <div class="mec-form-row" id="mec_fees_list">
1052
  <?php $i = 0; foreach($fees as $key=>$fee): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
1053
  <div class="mec-box" id="mec_fee_row<?php echo $i; ?>">
1054
  <div class="mec-form-row">
1055
+ <input class="mec-col-12" type="text" name="mec[settings][fees][<?php echo $i; ?>][title]" placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($fee['title']) ? $fee['title'] : ''); ?>" />
1056
  </div>
1057
  <div class="mec-form-row">
1058
  <span class="mec-col-4">
1059
+ <input type="text" name="mec[settings][fees][<?php echo $i; ?>][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($fee['amount']) ? $fee['amount'] : ''); ?>" />
1060
+ <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1061
  </span>
1062
  <span class="mec-col-4">
1063
  <select name="mec[settings][fees][<?php echo $i; ?>][type]">
1064
+ <option value="percent" <?php echo ((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
1065
+ <option value="amount" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
1066
+ <option value="amount_per_booking" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_booking') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
1067
  </select>
1068
  </span>
1069
+ <button class="button" type="button" id="mec_remove_fee_button<?php echo $i; ?>" onclick="mec_remove_fee(<?php echo $i; ?>);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
1070
  </div>
1071
  </div>
1072
  <?php endforeach; ?>
1075
  <div class="mec-util-hidden" id="mec_new_fee_raw">
1076
  <div class="mec-box" id="mec_fee_row:i:">
1077
  <div class="mec-form-row">
1078
+ <input class="mec-col-12" type="text" name="mec[settings][fees][:i:][title]" placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>" />
1079
  </div>
1080
  <div class="mec-form-row">
1081
  <span class="mec-col-4">
1082
+ <input type="text" name="mec[settings][fees][:i:][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" />
1083
+ <a class="mec-tooltip" title="<?php esc_attr_e('Fee amount, considered as fixed amount if you set the type to amount otherwise considered as percentage', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1084
  </span>
1085
  <span class="mec-col-4">
1086
  <select name="mec[settings][fees][:i:][type]">
1087
+ <option value="percent"><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
1088
+ <option value="amount"><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
1089
+ <option value="amount_per_booking"><?php _e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
1090
  </select>
1091
  </span>
1092
+ <button class="button" type="button" id="mec_remove_fee_button:i:" onclick="mec_remove_fee(:i:);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
1093
  </div>
1094
  </div>
1095
  </div>
1098
  </div>
1099
 
1100
  <div id="buddy_option" class="mec-options-fields">
1101
+ <h4 class="mec-form-subtitle"><?php _e('BuddyPress Integration', 'modern-events-calendar-lite'); ?></h4>
1102
  <div class="mec-form-row">
1103
  <label>
1104
  <input type="hidden" name="mec[settings][bp_status]" value="0" />
1105
+ <input onchange="jQuery('#mec_bp_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][bp_status]" <?php if(isset($settings['bp_status']) and $settings['bp_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable BuddyPress Integration', 'modern-events-calendar-lite'); ?>
1106
  </label>
1107
  </div>
1108
  <div id="mec_bp_container_toggle" class="<?php if((isset($settings['bp_status']) and !$settings['bp_status']) or !isset($settings['bp_status'])) echo 'mec-util-hidden'; ?>">
1109
  <div class="mec-form-row">
1110
  <label>
1111
  <input type="hidden" name="mec[settings][bp_attendees_module]" value="0" />
1112
+ <input value="1" type="checkbox" name="mec[settings][bp_attendees_module]" <?php if(isset($settings['bp_attendees_module']) and $settings['bp_attendees_module']) echo 'checked="checked"'; ?> /> <?php _e('Show "Attendees Module" in event details page', 'modern-events-calendar-lite'); ?>
1113
  </label>
1114
  </div>
1115
  <div class="mec-form-row">
1116
+ <label class="mec-col-3" for="mec_settings_bp_attendees_module_limit"><?php _e('Attendees Limit', 'modern-events-calendar-lite'); ?></label>
1117
  <div class="mec-col-4">
1118
  <input type="text" id="mec_settings_bp_attendees_module_limit" name="mec[settings][bp_attendees_module_limit]" value="<?php echo ((isset($settings['bp_attendees_module_limit']) and trim($settings['bp_attendees_module_limit']) != '') ? $settings['bp_attendees_module_limit'] : '20'); ?>" />
1119
  </div>
1121
  <div class="mec-form-row">
1122
  <label>
1123
  <input type="hidden" name="mec[settings][bp_add_activity]" value="0" />
1124
+ <input value="1" type="checkbox" name="mec[settings][bp_add_activity]" <?php if(isset($settings['bp_add_activity']) and $settings['bp_add_activity']) echo 'checked="checked"'; ?> /> <?php _e('Add booking activity to user profile', 'modern-events-calendar-lite'); ?>
1125
  </label>
1126
  </div>
1127
  </div>
1128
  </div>
1129
 
1130
  <div id="mailchimp_option" class="mec-options-fields">
1131
+ <h4 class="mec-form-subtitle"><?php _e('Mailchimp Integration', 'modern-events-calendar-lite'); ?></h4>
1132
  <div class="mec-form-row">
1133
  <label>
1134
  <input type="hidden" name="mec[settings][mchimp_status]" value="0" />
1135
+ <input onchange="jQuery('#mec_mchimp_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][mchimp_status]" <?php if(isset($settings['mchimp_status']) and $settings['mchimp_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Mailchimp Integration', 'modern-events-calendar-lite'); ?>
1136
  </label>
1137
  </div>
1138
  <div id="mec_mchimp_status_container_toggle" class="<?php if((isset($settings['mchimp_status']) and !$settings['mchimp_status']) or !isset($settings['mchimp_status'])) echo 'mec-util-hidden'; ?>">
1139
  <div class="mec-form-row">
1140
+ <label class="mec-col-3" for="mec_settings_mchimp_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
1141
  <div class="mec-col-4">
1142
  <input type="text" id="mec_settings_mchimp_api_key" name="mec[settings][mchimp_api_key]" value="<?php echo ((isset($settings['mchimp_api_key']) and trim($settings['mchimp_api_key']) != '') ? $settings['mchimp_api_key'] : ''); ?>" />
1143
+ <a class="mec-tooltip" title="<?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1144
  </div>
1145
  </div>
1146
  <div class="mec-form-row">
1147
+ <label class="mec-col-3" for="mec_settings_mchimp_list_id"><?php _e('List ID', 'modern-events-calendar-lite'); ?></label>
1148
  <div class="mec-col-4">
1149
  <input type="text" id="mec_settings_mchimp_list_id" name="mec[settings][mchimp_list_id]" value="<?php echo ((isset($settings['mchimp_list_id']) and trim($settings['mchimp_list_id']) != '') ? $settings['mchimp_list_id'] : ''); ?>" />
1150
+ <a class="mec-tooltip" title="<?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1151
  </div>
1152
  </div>
1153
  <div class="mec-form-row">
1154
+ <label class="mec-col-3" for="mec_settings_mchimp_subscription_status"><?php _e('Subscription Status', 'modern-events-calendar-lite'); ?></label>
1155
  <div class="mec-col-4">
1156
  <select name="mec[settings][mchimp_subscription_status]" id="mec_settings_mchimp_subscription_status">
1157
+ <option value="subscribed" <?php if(isset($settings['mchimp_subscription_status']) and $settings['mchimp_subscription_status'] == 'subscribed') echo 'selected="selected"'; ?>><?php _e('Subscribe automatically', 'modern-events-calendar-lite'); ?></option>
1158
+ <option value="pending" <?php if(isset($settings['mchimp_subscription_status']) and $settings['mchimp_subscription_status'] == 'pending') echo 'selected="selected"'; ?>><?php _e('Subscribe by verification', 'modern-events-calendar-lite'); ?></option>
1159
  </select>
1160
+ <a class="mec-tooltip" title="<?php esc_attr_e('If you choose "Subscribe by verification" then an email will send to user by mailchimp for subscription verification.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1161
  </div>
1162
  </div>
1163
  </div>
1164
  </div>
1165
 
1166
  <div id="avtivation_option" class="mec-options-fields">
1167
+ <h4 class="mec-form-subtitle"><?php _e('MEC Activation', 'modern-events-calendar-lite'); ?></h4>
1168
 
1169
  <?php if(!$this->main->getPRO()): ?>
1170
+ <div class="info-msg"><?php echo sprintf(__("%s is required to use this section.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
1171
  <?php else: ?>
1172
  <div class="mec-form-row">
1173
+ <label class="mec-col-3" for="mec_settings_purchase_code"><?php _e('Purchase Code', 'modern-events-calendar-lite'); ?></label>
1174
  <div class="mec-col-4">
1175
  <input type="text" name="mec[settings][purchase_code]" id="mec_settings_purchase_code" value="<?php echo (isset($settings['purchase_code']) ? $settings['purchase_code'] : ''); ?>" />
1176
  </div>
1177
  <?php if(!is_null($verify)): ?>
1178
+ <span class="mec-purchase-verify mec-success"><?php _e('Verified', 'modern-events-calendar-lite'); ?></span>
1179
  <?php else: ?>
1180
+ <span class="mec-purchase-verify mec-error"><?php _e('UnVerified', 'modern-events-calendar-lite'); ?></span>
1181
  <?php endif; ?>
1182
+ <a class="mec-tooltip" title="<?php esc_attr_e("Please insert your purchase code validation. read documentation for more information.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1183
  </div>
1184
  <div class="mec-form-row">
1185
+ <label class="mec-col-3" for="mec_settings_product_name"><?php _e('Product Name', 'modern-events-calendar-lite'); ?></label>
1186
  <div class="mec-col-4">
1187
  <select id="mec_settings_product_name" name="mec[settings][product_name]">
1188
+ <option value="1 License for MEC Plugin" <?php echo ((isset($settings['product_name']) and $settings['product_name'] == "1 License for MEC Plugin") ? 'selected="selected"' : ''); ?> ><?php _e('1 License for MEC Plugin', 'modern-events-calendar-lite'); ?></option>
1189
+ <option value="5 License for MEC Plugin" <?php echo ((isset($settings['product_name']) and $settings['product_name'] == "5 License for MEC Plugin") ? 'selected="selected"' : ''); ?> ><?php _e('5 License for MEC Plugin', 'modern-events-calendar-lite'); ?></option>
1190
+ <option value="10 License for MEC Plugin" <?php echo ((isset($settings['product_name']) and $settings['product_name'] == "10 License for MEC Plugin") ? 'selected="selected"' : ''); ?> ><?php _e('10 License for MEC Plugin', 'modern-events-calendar-lite'); ?></option>
1191
  </select>
1192
  </div>
1193
  </div>
1194
  <!-- We will add this feature for remove purchase code from our database for next version -->
1195
  <?php if(!is_null($verify)): ?>
1196
  <!-- <div class="mec-form-row">
1197
+ <label class="mec-col-3" for="mec_settings_purchase_code"><?php _e('MEC Deactivation', 'modern-events-calendar-lite'); ?></label>
1198
  <div class="mec-col-4">
1199
+ <a target="_blank" class="remove-activation" href="http://webnus.co/api/remove?id=<?php echo $settings['purchase_code']; ?>"><?php _e('Deactivate', 'modern-events-calendar-lite'); ?></a>
1200
  </div>
1201
+ <a class="mec-tooltip" title="<?php esc_attr_e("For deactivation first delete your purchase from above field then press save after that click on deactivate for deactivate this purchase code from this domain then you can activate another domain.", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
1202
  </div>-->
1203
  <?php endif; ?>
1204
  <?php endif; ?>
1205
  </div>
1206
  <div class="mec-options-fields">
1207
  <?php wp_nonce_field('mec_options_form'); ?>
1208
+ <button style="display: none;" id="mec_settings_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
1209
  </div>
1210
  </form>
1211
 
1213
  </div>
1214
 
1215
  </div>
1216
+ <div id="wns-be-footer"><a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a></div>
1217
  </div>
1218
  </div>
1219
 
1220
  <script type="text/javascript">
1221
  jQuery(document).ready(function()
1222
  {
1223
+ jQuery(".dpr-save-btn").on('click', function(event)
1224
+ {
1225
  event.preventDefault();
1226
  jQuery("#mec_settings_form_button").trigger('click');
1227
  });
1228
 
1229
+ jQuery(".wns-be-sidebar .pr-be-group-menu-li").on('click', function(event)
1230
+ {
1231
  jQuery(".wns-be-sidebar .pr-be-group-menu-li").removeClass('active');
1232
  jQuery(this).addClass('active');
1233
  });
 
1234
  });
1235
 
1236
  jQuery("#mec_settings_form").on('submit', function(event)
1238
  event.preventDefault();
1239
 
1240
  // Add loading Class to the button
1241
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
1242
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
1243
 
1244
+ if(jQuery(".mec-purchase-verify").text() != '<?php echo esc_js(esc_attr__('Verified', 'modern-events-calendar-lite')); ?>')
1245
  {
1246
+ jQuery(".mec-purchase-verify").text("<?php echo esc_js(esc_attr__('Checking ...', 'modern-events-calendar-lite')); ?>");
1247
  }
1248
 
1249
  var settings = jQuery("#mec_settings_form").serialize();
1255
  success: function(data)
1256
  {
1257
  // Remove the loading Class to the button
1258
+ setTimeout(function()
1259
+ {
1260
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
1261
  jQuery('.wns-saved-settings').remove();
1262
+ if(jQuery(".mec-purchase-verify").text() != '<?php echo esc_js(esc_attr__('Verified', 'modern-events-calendar-lite')); ?>')
1263
  {
1264
+ jQuery(".mec-purchase-verify").text("<?php echo esc_js(esc_attr__('Please Refresh Page', 'modern-events-calendar-lite')); ?>");
1265
  }
1266
  }, 1000);
1267
  },
1268
  error: function(jqXHR, textStatus, errorThrown)
1269
  {
1270
  // Remove the loading Class to the button
1271
+ setTimeout(function()
1272
+ {
1273
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
1274
  jQuery('.wns-saved-settings').remove();
1275
  }, 1000);
1276
  }
app/features/mec/styles.php CHANGED
@@ -17,7 +17,7 @@ $styles = $this->main->get_styles();
17
  <i class="sl-arrow-down"></i>
18
  </span>
19
  <i class="mec-sl-settings"></i>
20
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
21
  </a>
22
  </li>
23
 
@@ -26,14 +26,14 @@ $styles = $this->main->get_styles();
26
  <li class="wns-be-group-menu-li">
27
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
28
  <i class="mec-sl-layers"></i>
29
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
30
  </a>
31
  </li>
32
 
33
  <li class="wns-be-group-menu-li">
34
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
35
  <i class="mec-sl-wallet"></i>
36
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
37
  </a>
38
  </li>
39
 
@@ -42,35 +42,35 @@ $styles = $this->main->get_styles();
42
  <li class="wns-be-group-menu-li">
43
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
44
  <i class="mec-sl-envelope"></i>
45
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
46
  </a>
47
  </li>
48
 
49
  <li class="wns-be-group-menu-li">
50
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
51
  <i class="mec-sl-equalizer"></i>
52
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
53
  </a>
54
  </li>
55
 
56
  <li class="wns-be-group-menu-li active">
57
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
58
  <i class="mec-sl-wrench"></i>
59
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li class="wns-be-group-menu-li">
64
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
65
  <i class="mec-sl-bubble"></i>
66
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li class="wns-be-group-menu-li">
71
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
72
  <i class="mec-sl-support"></i>
73
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
74
  </a>
75
  </li>
76
  </ul>
@@ -86,14 +86,14 @@ $styles = $this->main->get_styles();
86
 
87
  <div id="wns-be-content">
88
  <div class="wns-be-group-tab">
89
- <h2><?php _e('Custom Styles', 'mec'); ?></h2>
90
  <div class="mec-container">
91
  <form id="mec_styles_form">
92
  <div class="mec-form-row">
93
  <textarea id="mec_styles_CSS" name="mec[styles][CSS]"><?php echo (isset($styles['CSS']) ? stripslashes($styles['CSS']) : ''); ?></textarea>
94
- <p class="description"><?php _e("If you're a developer or you have some knowledge about CSS codes, you can place your desired styles codes here. These codes will be included in your theme frontend after all styles so they will override MEC default (or theme) styles.", 'mec'); ?></p>
95
  <?php wp_nonce_field('mec_options_form'); ?>
96
- <button style="display: none;" id="mec_styles_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
97
  </div>
98
  </form>
99
  </div>
@@ -120,8 +120,8 @@ jQuery("#mec_styles_form").on('submit', function(event)
120
  event.preventDefault();
121
 
122
  // Add loading Class to the button
123
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
124
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
125
 
126
  var styles = jQuery("#mec_styles_form").serialize();
127
  jQuery.ajax(
@@ -133,7 +133,7 @@ jQuery("#mec_styles_form").on('submit', function(event)
133
  {
134
  // Remove the loading Class to the button
135
  setTimeout(function(){
136
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
137
  jQuery('.wns-saved-settings').remove();
138
  }, 1000);
139
  },
@@ -141,7 +141,7 @@ jQuery("#mec_styles_form").on('submit', function(event)
141
  {
142
  // Remove the loading Class to the button
143
  setTimeout(function(){
144
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
145
  jQuery('.wns-saved-settings').remove();
146
  }, 1000);
147
  }
17
  <i class="sl-arrow-down"></i>
18
  </span>
19
  <i class="mec-sl-settings"></i>
20
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
21
  </a>
22
  </li>
23
 
26
  <li class="wns-be-group-menu-li">
27
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
28
  <i class="mec-sl-layers"></i>
29
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
30
  </a>
31
  </li>
32
 
33
  <li class="wns-be-group-menu-li">
34
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
35
  <i class="mec-sl-wallet"></i>
36
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
37
  </a>
38
  </li>
39
 
42
  <li class="wns-be-group-menu-li">
43
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
44
  <i class="mec-sl-envelope"></i>
45
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
46
  </a>
47
  </li>
48
 
49
  <li class="wns-be-group-menu-li">
50
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
51
  <i class="mec-sl-equalizer"></i>
52
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
53
  </a>
54
  </li>
55
 
56
  <li class="wns-be-group-menu-li active">
57
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
58
  <i class="mec-sl-wrench"></i>
59
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
60
  </a>
61
  </li>
62
 
63
  <li class="wns-be-group-menu-li">
64
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
65
  <i class="mec-sl-bubble"></i>
66
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
67
  </a>
68
  </li>
69
 
70
  <li class="wns-be-group-menu-li">
71
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
72
  <i class="mec-sl-support"></i>
73
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
74
  </a>
75
  </li>
76
  </ul>
86
 
87
  <div id="wns-be-content">
88
  <div class="wns-be-group-tab">
89
+ <h2><?php _e('Custom Styles', 'modern-events-calendar-lite'); ?></h2>
90
  <div class="mec-container">
91
  <form id="mec_styles_form">
92
  <div class="mec-form-row">
93
  <textarea id="mec_styles_CSS" name="mec[styles][CSS]"><?php echo (isset($styles['CSS']) ? stripslashes($styles['CSS']) : ''); ?></textarea>
94
+ <p class="description"><?php _e("If you're a developer or you have some knowledge about CSS codes, you can place your desired styles codes here. These codes will be included in your theme frontend after all styles so they will override MEC default (or theme) styles.", 'modern-events-calendar-lite'); ?></p>
95
  <?php wp_nonce_field('mec_options_form'); ?>
96
+ <button style="display: none;" id="mec_styles_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
97
  </div>
98
  </form>
99
  </div>
120
  event.preventDefault();
121
 
122
  // Add loading Class to the button
123
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
124
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
125
 
126
  var styles = jQuery("#mec_styles_form").serialize();
127
  jQuery.ajax(
133
  {
134
  // Remove the loading Class to the button
135
  setTimeout(function(){
136
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
137
  jQuery('.wns-saved-settings').remove();
138
  }, 1000);
139
  },
141
  {
142
  // Remove the loading Class to the button
143
  setTimeout(function(){
144
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
145
  jQuery('.wns-saved-settings').remove();
146
  }, 1000);
147
  }
app/features/mec/styling.php CHANGED
@@ -7,7 +7,7 @@ $fonts = include MEC::import('app.features.mec.webfonts.webfonts', true, true);
7
 
8
  $google_fonts = array();
9
  $google_fonts['none'] = array(
10
- 'label'=>esc_html__('Default Font', 'mec'),
11
  'variants'=>array('regular'),
12
  'subsets'=>array(),
13
  'category'=>'',
@@ -43,7 +43,7 @@ if(is_array($fonts))
43
  <i class="sl-arrow-down"></i>
44
  </span>
45
  <i class="mec-sl-settings"></i>
46
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
47
  </a>
48
  </li>
49
 
@@ -52,14 +52,14 @@ if(is_array($fonts))
52
  <li class="wns-be-group-menu-li">
53
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
54
  <i class="mec-sl-layers"></i>
55
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
56
  </a>
57
  </li>
58
 
59
  <li class="wns-be-group-menu-li">
60
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
61
  <i class="mec-sl-wallet"></i>
62
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
63
  </a>
64
  </li>
65
 
@@ -68,35 +68,35 @@ if(is_array($fonts))
68
  <li class="wns-be-group-menu-li">
69
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
70
  <i class="mec-sl-envelope"></i>
71
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
72
  </a>
73
  </li>
74
 
75
  <li class="wns-be-group-menu-li active">
76
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
77
  <i class="mec-sl-equalizer"></i>
78
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
79
  </a>
80
  </li>
81
 
82
  <li class="wns-be-group-menu-li">
83
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
84
  <i class="mec-sl-wrench"></i>
85
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
86
  </a>
87
  </li>
88
 
89
  <li class="wns-be-group-menu-li">
90
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
91
  <i class="mec-sl-bubble"></i>
92
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
93
  </a>
94
  </li>
95
 
96
  <li class="wns-be-group-menu-li">
97
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
98
  <i class="mec-sl-support"></i>
99
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
100
  </a>
101
  </li>
102
 
@@ -113,7 +113,7 @@ if(is_array($fonts))
113
 
114
  <div id="wns-be-content">
115
  <div class="wns-be-group-tab">
116
- <h2><?php _e('Styling Option', 'mec'); ?></h2>
117
  <div class="mec-container">
118
  <form id="mec_styling_form">
119
  <?php /*<!-- <p>
@@ -131,10 +131,10 @@ if(is_array($fonts))
131
  <!-- <input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" /> -->*/ ?>
132
 
133
  <!-- Colorskin -->
134
- <h4 class="mec-form-subtitle"><?php esc_html_e('Color Skin', 'mec' ); ?></h4>
135
  <div class="mec-form-row">
136
  <div class="mec-col-3">
137
- <p><?php esc_html_e('Predefined Color Skin', 'mec' ); ?></p>
138
  </div>
139
  <div class="mec-col-6">
140
  <ul class="mec-image-select-wrap">
@@ -177,7 +177,7 @@ if(is_array($fonts))
177
  </div>
178
  <div class="mec-form-row">
179
  <div class="mec-col-3">
180
- <p><?php esc_html_e('Custom Color Skin', 'mec' ); ?></p>
181
  </div>
182
  <div class="mec-col-6">
183
  <input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" />
@@ -185,9 +185,9 @@ if(is_array($fonts))
185
  </div>
186
 
187
  <!-- Typography -->
188
- <h4 class="mec-form-subtitle"><?php esc_html_e('Typography', 'mec' ); ?></h4>
189
  <div class="mec-form-row">
190
- <label class="mec-col-3" for="mec_h_fontfamily"><?php _e('Heading (Events Title) Font Family', 'mec'); ?></label>
191
  <div class="mec-col-4">
192
 
193
  <select class="mec-p-fontfamily" name="mec[styling][mec_h_fontfamily]" id="mec_h_fontfamily">
@@ -202,7 +202,7 @@ if(is_array($fonts))
202
  }
203
 
204
  $value = (isset($google_font['value']) ? $google_font['value'] : '['. $google_font['label'] .','. $variants .']');
205
- if($value == '['.__('Default Font', 'mec').',regular]') $value = '';
206
  ?>
207
  <option value="<?php echo $value; ?>" <?php if(isset($styling['mec_h_fontfamily']) and ($styling['mec_h_fontfamily'] == $value)) echo 'selected="selected"'; ?>><?php echo $google_font['label']; ?></option>
208
  <?php
@@ -213,7 +213,7 @@ if(is_array($fonts))
213
  </div>
214
  </div>
215
  <div class="mec-form-row">
216
- <label class="mec-col-3" for="mec_p_fontfamily"><?php _e('Paragraph Font Family', 'mec'); ?></label>
217
  <div class="mec-col-4">
218
 
219
  <select class="mec-p-fontfamily" name="mec[styling][mec_p_fontfamily]" id="mec_p_fontfamily">
@@ -228,7 +228,7 @@ if(is_array($fonts))
228
  }
229
 
230
  $value = (isset($google_font['value']) ? $google_font['value'] : '['. $google_font['label'] .','. $variants .']');
231
- if($value == '['.__('Default Font', 'mec').',regular]') $value = '';
232
  ?>
233
  <option value="<?php echo $value; ?>" <?php if(isset($styling['mec_p_fontfamily'] ) && ($styling['mec_p_fontfamily'] == $value ) ) echo 'selected'; ?>><?php echo $google_font['label']; ?></option>
234
  <?php
@@ -240,26 +240,26 @@ if(is_array($fonts))
240
  </div>
241
 
242
  <!-- Container Width -->
243
- <h4 class="mec-form-subtitle"><?php esc_html_e('Container Width', 'mec' ); ?></h4>
244
  <div class="mec-form-row">
245
- <label class="mec-col-3" for="mec_styling_container_normal_width"><?php _e('Desktop Normal Screens', 'mec'); ?></label>
246
  <div class="mec-col-4">
247
  <input type="text" id="mec_styling_container_normal_width" name="mec[styling][container_normal_width]" value="<?php echo ((isset($styling['container_normal_width']) and trim($styling['container_normal_width']) != '') ? $styling['container_normal_width'] : ''); ?>" />
248
- <a class="mec-tooltip" title="<?php esc_attr_e("You can enter your theme container size in this field", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
249
  </div>
250
  </div>
251
  <div class="mec-form-row">
252
- <label class="mec-col-3" for="mec_styling_container_large_width"><?php _e('Desktop Large Screens', 'mec'); ?></label>
253
  <div class="mec-col-4">
254
  <input type="text" id="mec_styling_container_large_width" name="mec[styling][container_large_width]" value="<?php echo ((isset($styling['container_large_width']) and trim($styling['container_large_width']) != '') ? $styling['container_large_width'] : ''); ?>" />
255
- <a class="mec-tooltip" title="<?php esc_attr_e("You can enter your theme container size in this field", 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
256
  </div>
257
  </div>
258
 
259
 
260
  <div class="mec-form-row">
261
  <?php wp_nonce_field('mec_options_form'); ?>
262
- <button style="display: none;" id="mec_styling_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'mec'); ?></button>
263
  </div>
264
  </form>
265
  </div>
@@ -310,8 +310,8 @@ jQuery("#mec_styling_form").on('submit', function(event)
310
  event.preventDefault();
311
 
312
  // Add loading Class to the button
313
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'mec')); ?>");
314
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'mec')); ?></div>').insertBefore('#wns-be-content');
315
 
316
  var styling = jQuery("#mec_styling_form").serialize();
317
 
@@ -324,7 +324,7 @@ jQuery("#mec_styling_form").on('submit', function(event)
324
  {
325
  // Remove the loading Class to the button
326
  setTimeout(function(){
327
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
328
  jQuery('.wns-saved-settings').remove();
329
  }, 1000);
330
  },
@@ -332,7 +332,7 @@ jQuery("#mec_styling_form").on('submit', function(event)
332
  {
333
  // Remove the loading Class to the button
334
  setTimeout(function(){
335
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'mec')); ?>");
336
  jQuery('.wns-saved-settings').remove();
337
  }, 1000);
338
  }
7
 
8
  $google_fonts = array();
9
  $google_fonts['none'] = array(
10
+ 'label'=>esc_html__('Default Font', 'modern-events-calendar-lite'),
11
  'variants'=>array('regular'),
12
  'subsets'=>array(),
13
  'category'=>'',
43
  <i class="sl-arrow-down"></i>
44
  </span>
45
  <i class="mec-sl-settings"></i>
46
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
47
  </a>
48
  </li>
49
 
52
  <li class="wns-be-group-menu-li">
53
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
54
  <i class="mec-sl-layers"></i>
55
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
56
  </a>
57
  </li>
58
 
59
  <li class="wns-be-group-menu-li">
60
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
61
  <i class="mec-sl-wallet"></i>
62
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
63
  </a>
64
  </li>
65
 
68
  <li class="wns-be-group-menu-li">
69
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
70
  <i class="mec-sl-envelope"></i>
71
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
72
  </a>
73
  </li>
74
 
75
  <li class="wns-be-group-menu-li active">
76
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
77
  <i class="mec-sl-equalizer"></i>
78
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
79
  </a>
80
  </li>
81
 
82
  <li class="wns-be-group-menu-li">
83
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
84
  <i class="mec-sl-wrench"></i>
85
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
86
  </a>
87
  </li>
88
 
89
  <li class="wns-be-group-menu-li">
90
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
91
  <i class="mec-sl-bubble"></i>
92
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
93
  </a>
94
  </li>
95
 
96
  <li class="wns-be-group-menu-li">
97
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
98
  <i class="mec-sl-support"></i>
99
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
100
  </a>
101
  </li>
102
 
113
 
114
  <div id="wns-be-content">
115
  <div class="wns-be-group-tab">
116
+ <h2><?php _e('Styling Option', 'modern-events-calendar-lite'); ?></h2>
117
  <div class="mec-container">
118
  <form id="mec_styling_form">
119
  <?php /*<!-- <p>
131
  <!-- <input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" /> -->*/ ?>
132
 
133
  <!-- Colorskin -->
134
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Color Skin', 'modern-events-calendar-lite' ); ?></h4>
135
  <div class="mec-form-row">
136
  <div class="mec-col-3">
137
+ <p><?php esc_html_e('Predefined Color Skin', 'modern-events-calendar-lite' ); ?></p>
138
  </div>
139
  <div class="mec-col-6">
140
  <ul class="mec-image-select-wrap">
177
  </div>
178
  <div class="mec-form-row">
179
  <div class="mec-col-3">
180
+ <p><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></p>
181
  </div>
182
  <div class="mec-col-6">
183
  <input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" />
185
  </div>
186
 
187
  <!-- Typography -->
188
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Typography', 'modern-events-calendar-lite' ); ?></h4>
189
  <div class="mec-form-row">
190
+ <label class="mec-col-3" for="mec_h_fontfamily"><?php _e('Heading (Events Title) Font Family', 'modern-events-calendar-lite'); ?></label>
191
  <div class="mec-col-4">
192
 
193
  <select class="mec-p-fontfamily" name="mec[styling][mec_h_fontfamily]" id="mec_h_fontfamily">
202
  }
203
 
204
  $value = (isset($google_font['value']) ? $google_font['value'] : '['. $google_font['label'] .','. $variants .']');
205
+ if($value == '['.__('Default Font', 'modern-events-calendar-lite').',regular]') $value = '';
206
  ?>
207
  <option value="<?php echo $value; ?>" <?php if(isset($styling['mec_h_fontfamily']) and ($styling['mec_h_fontfamily'] == $value)) echo 'selected="selected"'; ?>><?php echo $google_font['label']; ?></option>
208
  <?php
213
  </div>
214
  </div>
215
  <div class="mec-form-row">
216
+ <label class="mec-col-3" for="mec_p_fontfamily"><?php _e('Paragraph Font Family', 'modern-events-calendar-lite'); ?></label>
217
  <div class="mec-col-4">
218
 
219
  <select class="mec-p-fontfamily" name="mec[styling][mec_p_fontfamily]" id="mec_p_fontfamily">
228
  }
229
 
230
  $value = (isset($google_font['value']) ? $google_font['value'] : '['. $google_font['label'] .','. $variants .']');
231
+ if($value == '['.__('Default Font', 'modern-events-calendar-lite').',regular]') $value = '';
232
  ?>
233
  <option value="<?php echo $value; ?>" <?php if(isset($styling['mec_p_fontfamily'] ) && ($styling['mec_p_fontfamily'] == $value ) ) echo 'selected'; ?>><?php echo $google_font['label']; ?></option>
234
  <?php
240
  </div>
241
 
242
  <!-- Container Width -->
243
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Container Width', 'modern-events-calendar-lite' ); ?></h4>
244
  <div class="mec-form-row">
245
+ <label class="mec-col-3" for="mec_styling_container_normal_width"><?php _e('Desktop Normal Screens', 'modern-events-calendar-lite'); ?></label>
246
  <div class="mec-col-4">
247
  <input type="text" id="mec_styling_container_normal_width" name="mec[styling][container_normal_width]" value="<?php echo ((isset($styling['container_normal_width']) and trim($styling['container_normal_width']) != '') ? $styling['container_normal_width'] : ''); ?>" />
248
+ <a class="mec-tooltip" title="<?php esc_attr_e("You can enter your theme container size in this field", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
249
  </div>
250
  </div>
251
  <div class="mec-form-row">
252
+ <label class="mec-col-3" for="mec_styling_container_large_width"><?php _e('Desktop Large Screens', 'modern-events-calendar-lite'); ?></label>
253
  <div class="mec-col-4">
254
  <input type="text" id="mec_styling_container_large_width" name="mec[styling][container_large_width]" value="<?php echo ((isset($styling['container_large_width']) and trim($styling['container_large_width']) != '') ? $styling['container_large_width'] : ''); ?>" />
255
+ <a class="mec-tooltip" title="<?php esc_attr_e("You can enter your theme container size in this field", 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
256
  </div>
257
  </div>
258
 
259
 
260
  <div class="mec-form-row">
261
  <?php wp_nonce_field('mec_options_form'); ?>
262
+ <button style="display: none;" id="mec_styling_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
263
  </div>
264
  </form>
265
  </div>
310
  event.preventDefault();
311
 
312
  // Add loading Class to the button
313
+ jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
314
+ jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
315
 
316
  var styling = jQuery("#mec_styling_form").serialize();
317
 
324
  {
325
  // Remove the loading Class to the button
326
  setTimeout(function(){
327
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
328
  jQuery('.wns-saved-settings').remove();
329
  }, 1000);
330
  },
332
  {
333
  // Remove the loading Class to the button
334
  setTimeout(function(){
335
+ jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
336
  jQuery('.wns-saved-settings').remove();
337
  }, 1000);
338
  }
app/features/mec/support.php CHANGED
@@ -15,7 +15,7 @@ defined('MECEXEC') or die();
15
  <i class="sl-arrow-down"></i>
16
  </span>
17
  <i class="mec-sl-settings"></i>
18
- <span class="wns-be-group-menu-title"><?php _e('Settings', 'mec'); ?></span>
19
  </a>
20
  </li>
21
 
@@ -24,14 +24,14 @@ defined('MECEXEC') or die();
24
  <li class="wns-be-group-menu-li">
25
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
26
  <i class="mec-sl-layers"></i>
27
- <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'mec'); ?></span>
28
  </a>
29
  </li>
30
 
31
  <li class="wns-be-group-menu-li">
32
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
33
  <i class="mec-sl-wallet"></i>
34
- <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'mec'); ?></span>
35
  </a>
36
  </li>
37
 
@@ -40,35 +40,35 @@ defined('MECEXEC') or die();
40
  <li class="wns-be-group-menu-li">
41
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
42
  <i class="mec-sl-envelope"></i>
43
- <span class="wns-be-group-menu-title"><?php _e('Notifications', 'mec'); ?></span>
44
  </a>
45
  </li>
46
 
47
  <li class="wns-be-group-menu-li">
48
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
49
  <i class="mec-sl-equalizer"></i>
50
- <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'mec'); ?></span>
51
  </a>
52
  </li>
53
 
54
  <li class="wns-be-group-menu-li">
55
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
56
  <i class="mec-sl-wrench"></i>
57
- <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'mec'); ?></span>
58
  </a>
59
  </li>
60
 
61
  <li class="wns-be-group-menu-li">
62
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
63
  <i class="mec-sl-bubble"></i>
64
- <span class="wns-be-group-menu-title"><?php _e('Messages', 'mec'); ?></span>
65
  </a>
66
  </li>
67
 
68
  <li class="wns-be-group-menu-li active">
69
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
70
  <i class="mec-sl-support"></i>
71
- <span class="wns-be-group-menu-title"><?php _e('Support', 'mec'); ?></span>
72
  </a>
73
  </li>
74
 
@@ -81,21 +81,21 @@ defined('MECEXEC') or die();
81
 
82
  <div id="wns-be-content">
83
  <div class="wns-be-group-tab">
84
- <h2><?php _e('Support', 'mec'); ?></h2>
85
  <div class="mec-container">
86
  <div id="webnus-dashboard" class="mec-container">
87
  <div class="welcome-content w-clearfix extra">
88
  <div class="w-col-sm-6">
89
  <div class="w-box doc">
90
  <div class="w-box-head">
91
- <?php _e('Documentation', 'mec'); ?>
92
  </div>
93
  <div class="w-box-content">
94
  <p>
95
- <?php echo esc_html__('Our documentation is simple and functional with full details and cover all essential aspects from beginning to the most advanced parts.', 'mec'); ?>
96
  </p>
97
  <div class="w-button">
98
- <a href="http://webnus.net/dox/modern-events-calendar/" target="_blank"><?php echo esc_html__('DOCUMENTATION', 'mec'); ?></a>
99
  </div>
100
  </div>
101
  </div>
@@ -104,19 +104,19 @@ defined('MECEXEC') or die();
104
  <div class="w-col-sm-6">
105
  <div class="w-box support">
106
  <div class="w-box-head">
107
- <?php echo esc_html__('Support Forum', 'mec'); ?>
108
  </div>
109
  <div class="w-box-content">
110
  <?php if(!$this->getPRO()): ?>
111
- <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you want to use this service you need to upgrade your plugin to Pro version. Click on the following button.", 'mec'); ?></p>
112
  <?php else: ?>
113
- <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you have any issues please don't hesitate to contact us, we will reply as soon as possible.", 'mec'); ?></p>
114
  <?php endif; ?>
115
  <div class="w-button">
116
  <?php if(!$this->getPRO()): ?>
117
- <a href="https://webnus.net/pricing/#plugins" target="_blank"><?php echo esc_html__('GO PREMIUM', 'mec'); ?></a>
118
  <?php else: ?>
119
- <a href="https://webnus.ticksy.com/" target="_blank"><?php echo esc_html__('OPEN A TICKET', 'mec'); ?></a>
120
  <?php endif; ?>
121
  </div>
122
  </div>
@@ -126,16 +126,16 @@ defined('MECEXEC') or die();
126
  <div class="w-col-sm-12">
127
  <div class="w-box knowledgebase">
128
  <div class="w-box-head w-Knowledgebase">
129
- <?php _e('Knowledgebase', 'mec'); ?>
130
  </div>
131
  <div class="w-box-content">
132
  <ul>
133
- <li><a href="https://webnus.ticksy.com/article/8597/"><?php _e('How to create a new event?', 'mec'); ?></a></li>
134
- <li><a href="https://webnus.ticksy.com/article/8600/"><?php _e("Booking module doesn't work", 'mec'); ?></a></li>
135
- <li><a href="https://webnus.ticksy.com/article/8601/"><?php _e("How to export events in iCal format?", 'mec'); ?></a></li>
136
- <li><a href="https://webnus.ticksy.com/article/8603/"><?php _e("How to override MEC template files?", 'mec'); ?></a></li>
137
- <li><a href="https://webnus.ticksy.com/article/8599/"><?php _e("How to add/manage shortcodes?", 'mec'); ?></a></li>
138
- <li class="mec-view-all-articles"><a href="https://webnus.ticksy.com/articles/100004962/"><?php _e("View all Articles", 'mec'); ?></a></li>
139
  </ul>
140
  </div>
141
  </div>
15
  <i class="sl-arrow-down"></i>
16
  </span>
17
  <i class="mec-sl-settings"></i>
18
+ <span class="wns-be-group-menu-title"><?php _e('Settings', 'modern-events-calendar-lite'); ?></span>
19
  </a>
20
  </li>
21
 
24
  <li class="wns-be-group-menu-li">
25
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-reg-form'); ?>" id="" class="wns-be-group-tab-link-a">
26
  <i class="mec-sl-layers"></i>
27
+ <span class="wns-be-group-menu-title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></span>
28
  </a>
29
  </li>
30
 
31
  <li class="wns-be-group-menu-li">
32
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-gateways'); ?>" id="" class="wns-be-group-tab-link-a">
33
  <i class="mec-sl-wallet"></i>
34
+ <span class="wns-be-group-menu-title"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></span>
35
  </a>
36
  </li>
37
 
40
  <li class="wns-be-group-menu-li">
41
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-notifications'); ?>" id="" class="wns-be-group-tab-link-a">
42
  <i class="mec-sl-envelope"></i>
43
+ <span class="wns-be-group-menu-title"><?php _e('Notifications', 'modern-events-calendar-lite'); ?></span>
44
  </a>
45
  </li>
46
 
47
  <li class="wns-be-group-menu-li">
48
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-styling'); ?>" id="" class="wns-be-group-tab-link-a">
49
  <i class="mec-sl-equalizer"></i>
50
+ <span class="wns-be-group-menu-title"><?php _e('Styling Options', 'modern-events-calendar-lite'); ?></span>
51
  </a>
52
  </li>
53
 
54
  <li class="wns-be-group-menu-li">
55
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-customcss'); ?>" id="" class="wns-be-group-tab-link-a">
56
  <i class="mec-sl-wrench"></i>
57
+ <span class="wns-be-group-menu-title"><?php _e('Custom CSS', 'modern-events-calendar-lite'); ?></span>
58
  </a>
59
  </li>
60
 
61
  <li class="wns-be-group-menu-li">
62
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-messages'); ?>" id="" class="wns-be-group-tab-link-a">
63
  <i class="mec-sl-bubble"></i>
64
+ <span class="wns-be-group-menu-title"><?php _e('Messages', 'modern-events-calendar-lite'); ?></span>
65
  </a>
66
  </li>
67
 
68
  <li class="wns-be-group-menu-li active">
69
  <a href="<?php echo $this->main->add_qs_var('tab', 'MEC-support'); ?>" id="" class="wns-be-group-tab-link-a">
70
  <i class="mec-sl-support"></i>
71
+ <span class="wns-be-group-menu-title"><?php _e('Support', 'modern-events-calendar-lite'); ?></span>
72
  </a>
73
  </li>
74
 
81
 
82
  <div id="wns-be-content">
83
  <div class="wns-be-group-tab">
84
+ <h2><?php _e('Support', 'modern-events-calendar-lite'); ?></h2>
85
  <div class="mec-container">
86
  <div id="webnus-dashboard" class="mec-container">
87
  <div class="welcome-content w-clearfix extra">
88
  <div class="w-col-sm-6">
89
  <div class="w-box doc">
90
  <div class="w-box-head">
91
+ <?php _e('Documentation', 'modern-events-calendar-lite'); ?>
92
  </div>
93
  <div class="w-box-content">
94
  <p>
95
+ <?php echo esc_html__('Our documentation is simple and functional with full details and cover all essential aspects from beginning to the most advanced parts.', 'modern-events-calendar-lite'); ?>
96
  </p>
97
  <div class="w-button">
98
+ <a href="http://webnus.net/dox/modern-events-calendar/" target="_blank"><?php echo esc_html__('DOCUMENTATION', 'modern-events-calendar-lite'); ?></a>
99
  </div>
100
  </div>
101
  </div>
104
  <div class="w-col-sm-6">
105
  <div class="w-box support">
106
  <div class="w-box-head">
107
+ <?php echo esc_html__('Support Forum', 'modern-events-calendar-lite'); ?>
108
  </div>
109
  <div class="w-box-content">
110
  <?php if(!$this->getPRO()): ?>
111
+ <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you want to use this service you need to upgrade your plugin to Pro version. Click on the following button.", 'modern-events-calendar-lite'); ?></p>
112
  <?php else: ?>
113
+ <p><?php echo esc_html__("Webnus is elite and trusted author with high percentage of satisfied user. If you have any issues please don't hesitate to contact us, we will reply as soon as possible.", 'modern-events-calendar-lite'); ?></p>
114
  <?php endif; ?>
115
  <div class="w-button">
116
  <?php if(!$this->getPRO()): ?>
117
+ <a href="https://webnus.net/pricing/#plugins" target="_blank"><?php echo esc_html__('GO PREMIUM', 'modern-events-calendar-lite'); ?></a>
118
  <?php else: ?>
119
+ <a href="https://webnus.ticksy.com/" target="_blank"><?php echo esc_html__('OPEN A TICKET', 'modern-events-calendar-lite'); ?></a>
120
  <?php endif; ?>
121
  </div>
122
  </div>
126
  <div class="w-col-sm-12">
127
  <div class="w-box knowledgebase">
128
  <div class="w-box-head w-Knowledgebase">
129
+ <?php _e('Knowledgebase', 'modern-events-calendar-lite'); ?>
130
  </div>
131
  <div class="w-box-content">
132
  <ul>
133
+ <li><a href="https://webnus.ticksy.com/article/8597/"><?php _e('How to create a new event?', 'modern-events-calendar-lite'); ?></a></li>
134
+ <li><a href="https://webnus.ticksy.com/article/8600/"><?php _e("Booking module doesn't work", 'modern-events-calendar-lite'); ?></a></li>
135
+ <li><a href="https://webnus.ticksy.com/article/8601/"><?php _e("How to export events in iCal format?", 'modern-events-calendar-lite'); ?></a></li>
136
+ <li><a href="https://webnus.ticksy.com/article/8603/"><?php _e("How to override MEC template files?", 'modern-events-calendar-lite'); ?></a></li>
137
+ <li><a href="https://webnus.ticksy.com/article/8599/"><?php _e("How to add/manage shortcodes?", 'modern-events-calendar-lite'); ?></a></li>
138
+ <li class="mec-view-all-articles"><a href="https://webnus.ticksy.com/articles/100004962/"><?php _e("View all Articles", 'modern-events-calendar-lite'); ?></a></li>
139
  </ul>
140
  </div>
141
  </div>
app/features/organizers.php CHANGED
@@ -55,8 +55,8 @@ class MEC_feature_organizers extends MEC_base
55
  */
56
  public function register_taxonomy()
57
  {
58
- $singular_label = $this->main->m('taxonomy_organizer', __('Organizer', 'mec'));
59
- $plural_label = $this->main->m('taxonomy_organizers', __('Organizers', 'mec'));
60
 
61
  register_taxonomy(
62
  'mec_organizer',
@@ -66,14 +66,14 @@ class MEC_feature_organizers extends MEC_base
66
  'labels'=>array(
67
  'name'=>$plural_label,
68
  'singular_name'=>$singular_label,
69
- 'all_items'=>sprintf(__('All %s', 'mec'), $plural_label),
70
- 'edit_item'=>sprintf(__('Edit %s', 'mec'), $singular_label),
71
- 'view_item'=>sprintf(__('View %s', 'mec'), $singular_label),
72
- 'update_item'=>sprintf(__('Update %s', 'mec'), $singular_label),
73
- 'add_new_item'=>sprintf(__('Add New %s', 'mec'), $singular_label),
74
- 'new_item_name'=>sprintf(__('New %s Name', 'mec'), $singular_label),
75
- 'popular_items'=>sprintf(__('Popular %s', 'mec'), $plural_label),
76
- 'search_items'=>sprintf(__('Search %s', 'mec'), $plural_label),
77
  ),
78
  'rewrite'=>array('slug'=>'events-organizer'),
79
  'public'=>false,
@@ -99,37 +99,37 @@ class MEC_feature_organizers extends MEC_base
99
  ?>
100
  <tr class="form-field">
101
  <th scope="row" valign="top">
102
- <label for="mec_tel"><?php _e('Tel', 'mec'); ?></label>
103
  </th>
104
  <td>
105
- <input type="text" placeholder="<?php esc_attr_e('Insert organizer phone number.', 'mec'); ?>" name="tel" id="mec_tel" value="<?php echo $tel; ?>" />
106
  </td>
107
  </tr>
108
  <tr class="form-field">
109
  <th scope="row" valign="top">
110
- <label for="mec_email"><?php _e('Email', 'mec'); ?></label>
111
  </th>
112
  <td>
113
- <input type="text" placeholder="<?php esc_attr_e('Insert organizer email address.', 'mec'); ?>" name="email" id="mec_email" value="<?php echo $email; ?>" />
114
  </td>
115
  </tr>
116
  <tr class="form-field">
117
  <th scope="row" valign="top">
118
- <label for="mec_url"><?php _e('Link to organizer page', 'mec'); ?></label>
119
  </th>
120
  <td>
121
- <input type="text" placeholder="<?php esc_attr_e('Use this field to link organizer to other user profile pages', 'mec'); ?>" name="url" id="mec_url" value="<?php echo $url; ?>" />
122
  </td>
123
  </tr>
124
  <tr class="form-field">
125
  <th scope="row" valign="top">
126
- <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'mec'); ?></label>
127
  </th>
128
  <td>
129
  <div id="mec_thumbnail_img"><?php if(trim($thumbnail) != '') echo '<img src="'.$thumbnail.'" />'; ?></div>
130
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="<?php echo $thumbnail; ?>" />
131
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'mec'); ?></button>
132
- <button type="button" class="mec_remove_image_button button <?php echo (!trim($thumbnail) ? 'mec-util-hidden' : ''); ?>"><?php echo __('Remove image', 'mec'); ?></button>
133
  </td>
134
  </tr>
135
  <?php
@@ -143,23 +143,23 @@ class MEC_feature_organizers extends MEC_base
143
  {
144
  ?>
145
  <div class="form-field">
146
- <label for="mec_tel"><?php _e('Tel', 'mec'); ?></label>
147
- <input type="text" name="tel" placeholder="<?php esc_attr_e('Insert organizer phone number.', 'mec'); ?>" id="mec_tel" value="" />
148
  </div>
149
  <div class="form-field">
150
- <label for="mec_email"><?php _e('Email', 'mec'); ?></label>
151
- <input type="text" name="email" placeholder="<?php esc_attr_e('Insert organizer email address.', 'mec'); ?>" id="mec_email" value="" />
152
  </div>
153
  <div class="form-field">
154
- <label for="mec_url"><?php _e('Link to organizer page', 'mec'); ?></label>
155
- <input type="text" name="url" placeholder="<?php esc_attr_e('Use this field to link organizer to other user profile pages', 'mec'); ?>" id="mec_url" value="" />
156
  </div>
157
  <div class="form-field">
158
- <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'mec'); ?></label>
159
  <div id="mec_thumbnail_img"></div>
160
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="" />
161
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'mec'); ?></button>
162
- <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'mec'); ?></button>
163
  </div>
164
  <?php
165
  }
@@ -195,11 +195,11 @@ class MEC_feature_organizers extends MEC_base
195
  unset($columns['description']);
196
  unset($columns['posts']);
197
 
198
- $columns['id'] = __('ID', 'mec');
199
- $columns['name'] = $this->main->m('taxonomy_organizer', __('Organizer', 'mec'));
200
- $columns['contact'] = __('Contact info', 'mec');
201
- $columns['posts'] = __('Count', 'mec');
202
- $columns['slug'] = __('Slug', 'mec');
203
 
204
  return $columns;
205
  }
@@ -252,54 +252,54 @@ class MEC_feature_organizers extends MEC_base
252
  $additional_organizers_status = (!isset($this->settings['additional_organizers']) or (isset($this->settings['additional_organizers']) and $this->settings['additional_organizers'])) ? true : false;
253
  ?>
254
  <div class="mec-meta-box-fields" id="mec-organizer">
255
- <h4><?php echo sprintf(__('Event Main %s', 'mec'), $this->main->m('taxonomy_organizer', __('Organizer', 'mec'))); ?></h4>
256
  <div class="mec-form-row">
257
- <select name="mec[organizer_id]" id="mec_organizer_id" title="<?php echo esc_attr__($this->main->m('taxonomy_organizer', __('Organizer', 'mec')), 'mec'); ?>">
258
- <option value="1"><?php _e('Hide organizer', 'mec'); ?></option>
259
- <option value="0"><?php _e('Insert a new organizer', 'mec'); ?></option>
260
  <?php foreach($organizers as $organizer): ?>
261
  <option <?php if($organizer_id == $organizer->term_id) echo 'selected="selected"'; ?> value="<?php echo $organizer->term_id; ?>"><?php echo $organizer->name; ?></option>
262
  <?php endforeach; ?>
263
  </select>
264
- <a class="mec-tooltip" title="<?php esc_attr_e('Choose one of saved organizers or insert new one below.', 'mec'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
265
  </div>
266
  <div id="mec_organizer_new_container">
267
  <div class="mec-form-row">
268
- <input type="text" name="mec[organizer][name]" id="mec_organizer_name" value="" placeholder="<?php _e('Name', 'mec'); ?>" />
269
- <p class="description"><?php _e('eg. John Smith', 'mec'); ?></p>
270
  </div>
271
  <div class="mec-form-row">
272
- <input type="text" name="mec[organizer][tel]" id="mec_organizer_contact" value="" placeholder="<?php esc_attr_e('Phone number.', 'mec'); ?>" />
273
- <p class="description"><?php _e('eg. +1 (234) 5678', 'mec'); ?></p>
274
  </div>
275
  <div class="mec-form-row">
276
- <input type="text" name="mec[organizer][email]" id="mec_organizer_contact" value="" placeholder="<?php esc_attr_e('Email address.', 'mec'); ?>" />
277
- <p class="description"><?php _e('eg. john@smith.com', 'mec'); ?></p>
278
  </div>
279
  <div class="mec-form-row">
280
- <input type="text" name="mec[organizer][url]" id="mec_organizer_url" value="" placeholder="<?php _e('Link to organizer page', 'mec'); ?>" />
281
- <p class="description"><?php _e('eg. http://yoursite.com/john-smith/', 'mec'); ?></p>
282
  </div>
283
  <?php /* Don't show this section in FES */ if(is_admin()): ?>
284
  <div class="mec-form-row mec-thumbnail-row">
285
  <div id="mec_organizer_thumbnail_img"></div>
286
  <input type="hidden" name="mec[organizer][thumbnail]" id="mec_organizer_thumbnail" value="" />
287
- <button type="button" class="mec_organizer_upload_image_button button" id="mec_organizer_thumbnail_button"><?php echo __('Choose image', 'mec'); ?></button>
288
- <button type="button" class="mec_organizer_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'mec'); ?></button>
289
  </div>
290
  <?php else: ?>
291
  <div class="mec-form-row mec-thumbnail-row">
292
  <span id="mec_fes_organizer_thumbnail_img"></span>
293
  <input type="hidden" name="mec[organizer][thumbnail]" id="mec_fes_organizer_thumbnail" value="" />
294
  <input type="file" id="mec_fes_organizer_thumbnail_file" onchange="mec_fes_upload_organizer_thumbnail();" />
295
- <span class="mec_fes_organizer_remove_image_button button mec-util-hidden" id="mec_fes_organizer_remove_image_button"><?php echo __('Remove image', 'mec'); ?></span>
296
  </div>
297
  <?php endif; ?>
298
  </div>
299
  <?php if($additional_organizers_status and count($organizers)): ?>
300
- <h4><?php echo $this->main->m('other_organizers', __('Other Organizers', 'mec')); ?></h4>
301
  <div class="mec-form-row">
302
- <p><?php _e('You can select extra organizers in addition to main organizer if you like.', 'mec'); ?></p>
303
  <div class="mec-additional-organizers">
304
  <?php foreach($organizers as $organizer): ?>
305
  <div>
55
  */
56
  public function register_taxonomy()
57
  {
58
+ $singular_label = $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'));
59
+ $plural_label = $this->main->m('taxonomy_organizers', __('Organizers', 'modern-events-calendar-lite'));
60
 
61
  register_taxonomy(
62
  'mec_organizer',
66
  'labels'=>array(
67
  'name'=>$plural_label,
68
  'singular_name'=>$singular_label,
69
+ 'all_items'=>sprintf(__('All %s', 'modern-events-calendar-lite'), $plural_label),
70
+ 'edit_item'=>sprintf(__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
71
+ 'view_item'=>sprintf(__('View %s', 'modern-events-calendar-lite'), $singular_label),
72
+ 'update_item'=>sprintf(__('Update %s', 'modern-events-calendar-lite'), $singular_label),
73
+ 'add_new_item'=>sprintf(__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
74
+ 'new_item_name'=>sprintf(__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
75
+ 'popular_items'=>sprintf(__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
76
+ 'search_items'=>sprintf(__('Search %s', 'modern-events-calendar-lite'), $plural_label),
77
  ),
78
  'rewrite'=>array('slug'=>'events-organizer'),
79
  'public'=>false,
99
  ?>
100
  <tr class="form-field">
101
  <th scope="row" valign="top">
102
+ <label for="mec_tel"><?php _e('Tel', 'modern-events-calendar-lite'); ?></label>
103
  </th>
104
  <td>
105
+ <input type="text" placeholder="<?php esc_attr_e('Insert organizer phone number.', 'modern-events-calendar-lite'); ?>" name="tel" id="mec_tel" value="<?php echo $tel; ?>" />
106
  </td>
107
  </tr>
108
  <tr class="form-field">
109
  <th scope="row" valign="top">
110
+ <label for="mec_email"><?php _e('Email', 'modern-events-calendar-lite'); ?></label>
111
  </th>
112
  <td>
113
+ <input type="text" placeholder="<?php esc_attr_e('Insert organizer email address.', 'modern-events-calendar-lite'); ?>" name="email" id="mec_email" value="<?php echo $email; ?>" />
114
  </td>
115
  </tr>
116
  <tr class="form-field">
117
  <th scope="row" valign="top">
118
+ <label for="mec_url"><?php _e('Link to organizer page', 'modern-events-calendar-lite'); ?></label>
119
  </th>
120
  <td>
121
+ <input type="text" placeholder="<?php esc_attr_e('Use this field to link organizer to other user profile pages', 'modern-events-calendar-lite'); ?>" name="url" id="mec_url" value="<?php echo $url; ?>" />
122
  </td>
123
  </tr>
124
  <tr class="form-field">
125
  <th scope="row" valign="top">
126
+ <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
127
  </th>
128
  <td>
129
  <div id="mec_thumbnail_img"><?php if(trim($thumbnail) != '') echo '<img src="'.$thumbnail.'" />'; ?></div>
130
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="<?php echo $thumbnail; ?>" />
131
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
132
+ <button type="button" class="mec_remove_image_button button <?php echo (!trim($thumbnail) ? 'mec-util-hidden' : ''); ?>"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
133
  </td>
134
  </tr>
135
  <?php
143
  {
144
  ?>
145
  <div class="form-field">
146
+ <label for="mec_tel"><?php _e('Tel', 'modern-events-calendar-lite'); ?></label>
147
+ <input type="text" name="tel" placeholder="<?php esc_attr_e('Insert organizer phone number.', 'modern-events-calendar-lite'); ?>" id="mec_tel" value="" />
148
  </div>
149
  <div class="form-field">
150
+ <label for="mec_email"><?php _e('Email', 'modern-events-calendar-lite'); ?></label>
151
+ <input type="text" name="email" placeholder="<?php esc_attr_e('Insert organizer email address.', 'modern-events-calendar-lite'); ?>" id="mec_email" value="" />
152
  </div>
153
  <div class="form-field">
154
+ <label for="mec_url"><?php _e('Link to organizer page', 'modern-events-calendar-lite'); ?></label>
155
+ <input type="text" name="url" placeholder="<?php esc_attr_e('Use this field to link organizer to other user profile pages', 'modern-events-calendar-lite'); ?>" id="mec_url" value="" />
156
  </div>
157
  <div class="form-field">
158
+ <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
159
  <div id="mec_thumbnail_img"></div>
160
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="" />
161
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
162
+ <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
163
  </div>
164
  <?php
165
  }
195
  unset($columns['description']);
196
  unset($columns['posts']);
197
 
198
+ $columns['id'] = __('ID', 'modern-events-calendar-lite');
199
+ $columns['name'] = $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'));
200
+ $columns['contact'] = __('Contact info', 'modern-events-calendar-lite');
201
+ $columns['posts'] = __('Count', 'modern-events-calendar-lite');
202
+ $columns['slug'] = __('Slug', 'modern-events-calendar-lite');
203
 
204
  return $columns;
205
  }
252
  $additional_organizers_status = (!isset($this->settings['additional_organizers']) or (isset($this->settings['additional_organizers']) and $this->settings['additional_organizers'])) ? true : false;
253
  ?>
254
  <div class="mec-meta-box-fields" id="mec-organizer">
255
+ <h4><?php echo sprintf(__('Event Main %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))); ?></h4>
256
  <div class="mec-form-row">
257
+ <select name="mec[organizer_id]" id="mec_organizer_id" title="<?php echo esc_attr__($this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
258
+ <option value="1"><?php _e('Hide organizer', 'modern-events-calendar-lite'); ?></option>
259
+ <option value="0"><?php _e('Insert a new organizer', 'modern-events-calendar-lite'); ?></option>
260
  <?php foreach($organizers as $organizer): ?>
261
  <option <?php if($organizer_id == $organizer->term_id) echo 'selected="selected"'; ?> value="<?php echo $organizer->term_id; ?>"><?php echo $organizer->name; ?></option>
262
  <?php endforeach; ?>
263
  </select>
264
+ <a class="mec-tooltip" title="<?php esc_attr_e('Choose one of saved organizers or insert new one below.', 'modern-events-calendar-lite'); ?>"><i title="" class="dashicons-before dashicons-editor-help"></i></a>
265
  </div>
266
  <div id="mec_organizer_new_container">
267
  <div class="mec-form-row">
268
+ <input type="text" name="mec[organizer][name]" id="mec_organizer_name" value="" placeholder="<?php _e('Name', 'modern-events-calendar-lite'); ?>" />
269
+ <p class="description"><?php _e('eg. John Smith', 'modern-events-calendar-lite'); ?></p>
270
  </div>
271
  <div class="mec-form-row">
272
+ <input type="text" name="mec[organizer][tel]" id="mec_organizer_contact" value="" placeholder="<?php esc_attr_e('Phone number.', 'modern-events-calendar-lite'); ?>" />
273
+ <p class="description"><?php _e('eg. +1 (234) 5678', 'modern-events-calendar-lite'); ?></p>
274
  </div>
275
  <div class="mec-form-row">
276
+ <input type="text" name="mec[organizer][email]" id="mec_organizer_contact" value="" placeholder="<?php esc_attr_e('Email address.', 'modern-events-calendar-lite'); ?>" />
277
+ <p class="description"><?php _e('eg. john@smith.com', 'modern-events-calendar-lite'); ?></p>
278
  </div>
279
  <div class="mec-form-row">
280
+ <input type="text" name="mec[organizer][url]" id="mec_organizer_url" value="" placeholder="<?php _e('Link to organizer page', 'modern-events-calendar-lite'); ?>" />
281
+ <p class="description"><?php _e('eg. https://webnus.net', 'modern-events-calendar-lite'); ?></p>
282
  </div>
283
  <?php /* Don't show this section in FES */ if(is_admin()): ?>
284
  <div class="mec-form-row mec-thumbnail-row">
285
  <div id="mec_organizer_thumbnail_img"></div>
286
  <input type="hidden" name="mec[organizer][thumbnail]" id="mec_organizer_thumbnail" value="" />
287
+ <button type="button" class="mec_organizer_upload_image_button button" id="mec_organizer_thumbnail_button"><?php echo __('Choose image', 'modern-events-calendar-lite'); ?></button>
288
+ <button type="button" class="mec_organizer_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
289
  </div>
290
  <?php else: ?>
291
  <div class="mec-form-row mec-thumbnail-row">
292
  <span id="mec_fes_organizer_thumbnail_img"></span>
293
  <input type="hidden" name="mec[organizer][thumbnail]" id="mec_fes_organizer_thumbnail" value="" />
294
  <input type="file" id="mec_fes_organizer_thumbnail_file" onchange="mec_fes_upload_organizer_thumbnail();" />
295
+ <span class="mec_fes_organizer_remove_image_button button mec-util-hidden" id="mec_fes_organizer_remove_image_button"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></span>
296
  </div>
297
  <?php endif; ?>
298
  </div>
299
  <?php if($additional_organizers_status and count($organizers)): ?>
300
+ <h4><?php echo $this->main->m('other_organizers', __('Other Organizers', 'modern-events-calendar-lite')); ?></h4>
301
  <div class="mec-form-row">
302
+ <p><?php _e('You can select extra organizers in addition to main organizer if you like.', 'modern-events-calendar-lite'); ?></p>
303
  <div class="mec-additional-organizers">
304
  <?php foreach($organizers as $organizer): ?>
305
  <div>
app/libraries/book.php CHANGED
@@ -371,8 +371,16 @@ class MEC_book extends MEC_base
371
  $booked = 0;
372
  foreach($tickets as $ticket_id=>$ticket)
373
  {
374
- $limit = (isset($ticket['limit']) and trim($ticket['limit'])) ? $ticket['limit'] : -1;
375
-
 
 
 
 
 
 
 
 
376
  $query = new WP_Query(array
377
  (
378
  'post_type'=>$this->PT,
@@ -415,11 +423,14 @@ class MEC_book extends MEC_base
415
  $availability[$ticket_id] = -1;
416
  continue;
417
  }
418
-
 
 
419
  // Unlimited Total
420
  if($total_bookings_limit == '-1') $ticket_availability = $limit-$bookings;
421
  else $ticket_availability = min(($limit-$bookings), max($total_bookings_limit, 0));
422
 
 
423
  $availability[$ticket_id] = $ticket_availability >= 0 ? $ticket_availability : 0;
424
  }
425
 
371
  $booked = 0;
372
  foreach($tickets as $ticket_id=>$ticket)
373
  {
374
+ // $limit = (isset($ticket['limit']) and trim($ticket['limit'])) ? $ticket['limit'] : -1;
375
+ // $limit = ( trim($ticket['limit']) == 0 ) ? $ticket['limit'] : $ticket['limit'];
376
+ // var_dump(isset($ticket['limit']));
377
+ if ( isset($ticket['limit']) and trim($ticket['limit']) ) {
378
+ $limit = $ticket['limit'];
379
+ } elseif ( trim($ticket['limit']) == 0 ) {
380
+ $limit = $ticket['limit'];
381
+ } else {
382
+ $limit = -1;
383
+ }
384
  $query = new WP_Query(array
385
  (
386
  'post_type'=>$this->PT,
423
  $availability[$ticket_id] = -1;
424
  continue;
425
  }
426
+ if ( $limit == '' ) {
427
+ $limit = 0;
428
+ }
429
  // Unlimited Total
430
  if($total_bookings_limit == '-1') $ticket_availability = $limit-$bookings;
431
  else $ticket_availability = min(($limit-$bookings), max($total_bookings_limit, 0));
432
 
433
+
434
  $availability[$ticket_id] = $ticket_availability >= 0 ? $ticket_availability : 0;
435
  }
436
 
app/libraries/envato.php CHANGED
@@ -39,7 +39,7 @@ class MEC_envato extends MEC_base
39
  public $update_path = '';
40
 
41
  /**
42
- * Plugin Slug (modern-events-calendar/mec.php)
43
  */
44
  public $plugin_slug = MEC_BASENAME;
45
 
39
  public $update_path = '';
40
 
41
  /**
42
+ * Plugin Slug (modern-events-calendar/modern-events-calendar-lite.php)
43
  */
44
  public $plugin_slug = MEC_BASENAME;
45
 
app/libraries/factory.php CHANGED
@@ -97,9 +97,9 @@ class MEC_factory extends MEC_base
97
  */
98
  public function load_hooks()
99
  {
100
- register_activation_hook(MEC_ABSPATH.'mec.php', array($this, 'activate'));
101
- register_deactivation_hook(MEC_ABSPATH.'mec.php', array($this, 'deactivate'));
102
- register_uninstall_hook(MEC_ABSPATH.'mec.php', array('MEC_factory', 'uninstall'));
103
  }
104
 
105
  /**
@@ -110,7 +110,7 @@ class MEC_factory extends MEC_base
110
  {
111
  // Load MEC Plugin links
112
  $this->filter('plugin_row_meta', array($this, 'load_plugin_links'), 10, 2);
113
- $this->filter('plugin_action_links_'.plugin_basename(MEC_DIRNAME.DS.'mec.php'), array($this, 'load_plugin_action_links'), 10, 1);
114
 
115
  // Add MEC rewrite rules
116
  $this->filter('generate_rewrite_rules', array($this->parser, 'load_rewrites'));
@@ -145,7 +145,7 @@ class MEC_factory extends MEC_base
145
  */
146
  public function load_menus()
147
  {
148
- add_menu_page(__('M.E. Calendar', 'mec'), __('M.E. Calendar', 'mec'), 'edit_posts', 'mec-intro', array($this->main, 'dashboard'), 'dashicons-calendar', 26);
149
  }
150
 
151
  /**
@@ -184,7 +184,7 @@ class MEC_factory extends MEC_base
184
  {
185
  if(!$this->getPRO())
186
  {
187
- $upgrade = '<a href="'.$this->main->get_pro_link().'" target="_blank"><b>'._x('Upgrade to Pro Version', 'plugin link', 'mec').'</b></a>';
188
  $links[] = $upgrade;
189
  }
190
  }
@@ -200,12 +200,12 @@ class MEC_factory extends MEC_base
200
  */
201
  public function load_plugin_action_links($links)
202
  {
203
- $settings = '<a href="'.$this->main->add_qs_vars(array('page'=>'MEC-settings'), $this->main->URL('admin').'admin.php').'">'._x('Settings', 'plugin link', 'mec').'</a>';
204
  array_unshift($links, $settings);
205
 
206
  if(!$this->getPRO())
207
  {
208
- $upgrade = '<a href="'.$this->main->get_pro_link().'" target="_blank"><b>'._x('Upgrade', 'plugin link', 'mec').'</b></a>';
209
  array_unshift($links, $upgrade);
210
  }
211
 
@@ -273,14 +273,14 @@ class MEC_factory extends MEC_base
273
  // Localize Some Strings
274
  wp_localize_script('mec-frontend-script', 'mecdata', array
275
  (
276
- 'day'=>__('day', 'mec'),
277
- 'days'=>__('days', 'mec'),
278
- 'hour'=>__('hour', 'mec'),
279
- 'hours'=>__('hours', 'mec'),
280
- 'minute'=>__('minute', 'mec'),
281
- 'minutes'=>__('minutes', 'mec'),
282
- 'second'=>__('second', 'mec'),
283
- 'seconds'=>__('seconds', 'mec'),
284
  ));
285
 
286
  // Include Google Recaptcha Javascript API
@@ -321,8 +321,8 @@ class MEC_factory extends MEC_base
321
  register_sidebar(
322
  array(
323
  'id' => 'mec-single-sidebar',
324
- 'name' => __( 'MEC Single Sidebar', 'mec' ),
325
- 'description' => __( 'Custom sidebar for single and modal page of MEC.', 'mec' ),
326
  'before_widget' => '<div id="%1$s" class="widget %2$s">',
327
  'after_widget' => '</div>',
328
  'before_title' => '<h4 class="widget-title">',
97
  */
98
  public function load_hooks()
99
  {
100
+ register_activation_hook(MEC_ABSPATH.'modern-events-calendar-lite.php', array($this, 'activate'));
101
+ register_deactivation_hook(MEC_ABSPATH.'modern-events-calendar-lite.php', array($this, 'deactivate'));
102
+ register_uninstall_hook(MEC_ABSPATH.'modern-events-calendar-lite.php', array('MEC_factory', 'uninstall'));
103
  }
104
 
105
  /**
110
  {
111
  // Load MEC Plugin links
112
  $this->filter('plugin_row_meta', array($this, 'load_plugin_links'), 10, 2);
113
+ $this->filter('plugin_action_links_'.plugin_basename(MEC_DIRNAME.DS.'modern-events-calendar-lite.php'), array($this, 'load_plugin_action_links'), 10, 1);
114
 
115
  // Add MEC rewrite rules
116
  $this->filter('generate_rewrite_rules', array($this->parser, 'load_rewrites'));
145
  */
146
  public function load_menus()
147
  {
148
+ add_menu_page(__('M.E. Calendar', 'modern-events-calendar-lite'), __('M.E. Calendar', 'modern-events-calendar-lite'), 'edit_posts', 'mec-intro', array($this->main, 'dashboard'), 'dashicons-calendar', 26);
149
  }
150
 
151
  /**
184
  {
185
  if(!$this->getPRO())
186
  {
187
+ $upgrade = '<a href="'.$this->main->get_pro_link().'" target="_blank"><b>'._x('Upgrade to Pro Version', 'plugin link', 'modern-events-calendar-lite').'</b></a>';
188
  $links[] = $upgrade;
189
  }
190
  }
200
  */
201
  public function load_plugin_action_links($links)
202
  {
203
+ $settings = '<a href="'.$this->main->add_qs_vars(array('page'=>'MEC-settings'), $this->main->URL('admin').'admin.php').'">'._x('Settings', 'plugin link', 'modern-events-calendar-lite').'</a>';
204
  array_unshift($links, $settings);
205
 
206
  if(!$this->getPRO())
207
  {
208
+ $upgrade = '<a href="'.$this->main->get_pro_link().'" target="_blank"><b>'._x('Upgrade', 'plugin link', 'modern-events-calendar-lite').'</b></a>';
209
  array_unshift($links, $upgrade);
210
  }
211
 
273
  // Localize Some Strings
274
  wp_localize_script('mec-frontend-script', 'mecdata', array
275
  (
276
+ 'day'=>__('day', 'modern-events-calendar-lite'),
277
+ 'days'=>__('days', 'modern-events-calendar-lite'),
278
+ 'hour'=>__('hour', 'modern-events-calendar-lite'),
279
+ 'hours'=>__('hours', 'modern-events-calendar-lite'),
280
+ 'minute'=>__('minute', 'modern-events-calendar-lite'),
281
+ 'minutes'=>__('minutes', 'modern-events-calendar-lite'),
282
+ 'second'=>__('second', 'modern-events-calendar-lite'),
283
+ 'seconds'=>__('seconds', 'modern-events-calendar-lite'),
284
  ));
285
 
286
  // Include Google Recaptcha Javascript API
321
  register_sidebar(
322
  array(
323
  'id' => 'mec-single-sidebar',
324
+ 'name' => __( 'MEC Single Sidebar', 'modern-events-calendar-lite' ),
325
+ 'description' => __( 'Custom sidebar for single and modal page of MEC.', 'modern-events-calendar-lite' ),
326
  'before_widget' => '<div id="%1$s" class="widget %2$s">',
327
  'after_widget' => '</div>',
328
  'before_title' => '<h4 class="widget-title">',
app/libraries/main.php CHANGED
@@ -1034,6 +1034,7 @@ class MEC_main extends MEC_base
1034
  'gplus'=>array('id'=>'gplus', 'name'=>__('Google+', 'mec'), 'function'=>array($this, 'sn_gplus')),
1035
  'twitter'=>array('id'=>'twitter', 'name'=>__('Twitter', 'mec'), 'function'=>array($this, 'sn_twitter')),
1036
  'linkedin'=>array('id'=>'linkedin', 'name'=>__('Linkedin', 'mec'), 'function'=>array($this, 'sn_linkedin')),
 
1037
  'email'=>array('id'=>'email', 'name'=>__('Email', 'mec'), 'function'=>array($this, 'sn_email')),
1038
  );
1039
 
@@ -1097,7 +1098,21 @@ class MEC_main extends MEC_base
1097
  */
1098
  public function sn_email($url, $event)
1099
  {
1100
- return '<li class="mec-event-social-icon"><a class="email" href="mailto:?subject='.rawurlencode($event->data->title).'&body='.rawurlencode($url).'" title="'.__('Email', 'mec').'"><i class="mec-fa-envelope"></i></a></li>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1101
  }
1102
 
1103
  /**
1034
  'gplus'=>array('id'=>'gplus', 'name'=>__('Google+', 'mec'), 'function'=>array($this, 'sn_gplus')),
1035
  'twitter'=>array('id'=>'twitter', 'name'=>__('Twitter', 'mec'), 'function'=>array($this, 'sn_twitter')),
1036
  'linkedin'=>array('id'=>'linkedin', 'name'=>__('Linkedin', 'mec'), 'function'=>array($this, 'sn_linkedin')),
1037
+ 'vk'=>array('id'=>'vk', 'name'=>__('VK', 'mec'), 'function'=>array($this, 'sn_vk')),
1038
  'email'=>array('id'=>'email', 'name'=>__('Email', 'mec'), 'function'=>array($this, 'sn_email')),
1039
  );
1040
 
1098
  */
1099
  public function sn_email($url, $event)
1100
  {
1101
+ $event->data->title = str_replace( '&' , '%26' , $event->data->title );
1102
+ $event->data->title = str_replace( '#038;' , '' , $event->data->title );
1103
+ return '<li class="mec-event-social-icon"><a class="email" href="mailto:?subject='.$event->data->title.'&body='.rawurlencode($url).'" title="'.__('Email', 'mec').'"><i class="mec-fa-envelope"></i></a></li>';
1104
+ }
1105
+
1106
+ /**
1107
+ * Do VK link for social networks
1108
+ * @author Webnus <info@webnus.biz>
1109
+ * @param string $url
1110
+ * @param object $event
1111
+ * @return string
1112
+ */
1113
+ public function sn_vk($url, $event)
1114
+ {
1115
+ return '<li class="mec-event-social-icon"><a class="vk" href=" http://vk.com/share.php?url='.rawurlencode($url).'" title="'.__('VK', 'mec').'" target="_blank"><i class="mec-fa-vk"></i></a></li>';
1116
  }
1117
 
1118
  /**
app/libraries/notifications.php CHANGED
@@ -58,7 +58,7 @@ class MEC_notifications extends MEC_base
58
  if($price > 0 and isset($this->settings['booking_auto_verify_paid']) and $this->settings['booking_auto_verify_paid'] == 1) return false;
59
 
60
  $to = $booker->user_email;
61
- $subject = isset($this->notif_settings['email_verification']['subject']) ? $this->content(__($this->notif_settings['email_verification']['subject'], 'mec'), $book_id) : __('Please verify your email.', 'mec');
62
  $headers = array();
63
 
64
  $recipients_str = isset($this->notif_settings['email_verification']['recipients']) ? $this->notif_settings['email_verification']['recipients'] : '';
@@ -112,7 +112,7 @@ class MEC_notifications extends MEC_base
112
  if(isset($this->notif_settings['booking_notification']['status']) and !$this->notif_settings['booking_notification']['status']) return false;
113
 
114
  $to = $booker->user_email;
115
- $subject = isset($this->notif_settings['booking_notification']['subject']) ? $this->content(__($this->notif_settings['booking_notification']['subject'], 'mec'), $book_id) : __('Your booking is received.', 'mec');
116
  $headers = array();
117
 
118
  $recipients_str = isset($this->notif_settings['booking_notification']['recipients']) ? $this->notif_settings['booking_notification']['recipients'] : '';
@@ -170,7 +170,7 @@ class MEC_notifications extends MEC_base
170
  if(!isset($booker->user_email)) return false;
171
 
172
  $to = $booker->user_email;
173
- $subject = isset($this->notif_settings['booking_confirmation']['subject']) ? $this->content(__($this->notif_settings['booking_confirmation']['subject'], 'mec'), $book_id) : __('Your booking is confirmed.', 'mec');
174
  $headers = array();
175
 
176
  $recipients_str = isset($this->notif_settings['booking_confirmation']['recipients']) ? $this->notif_settings['booking_confirmation']['recipients'] : '';
@@ -206,7 +206,7 @@ class MEC_notifications extends MEC_base
206
  public function admin_notification($book_id)
207
  {
208
  $to = get_bloginfo('admin_email');
209
- $subject = isset($this->notif_settings['admin_notification']['subject']) ? $this->content(__($this->notif_settings['admin_notification']['subject'], 'mec'), $book_id) : __('A new booking is received.', 'mec');
210
  $headers = array();
211
 
212
  $recipients_str = isset($this->notif_settings['admin_notification']['recipients']) ? $this->notif_settings['admin_notification']['recipients'] : '';
@@ -264,7 +264,7 @@ class MEC_notifications extends MEC_base
264
 
265
  if(!isset($booker->user_email)) return false;
266
 
267
- $subject = isset($this->notif_settings['booking_reminder']['subject']) ? $this->content(__($this->notif_settings['booking_reminder']['subject'], 'mec'), $book_id) : __('Booking Reminder', 'mec');
268
  $headers = array();
269
 
270
  $recipients_str = isset($this->notif_settings['booking_reminder']['recipients']) ? $this->notif_settings['booking_reminder']['recipients'] : '';
@@ -333,7 +333,7 @@ class MEC_notifications extends MEC_base
333
  if($status == 'auto-draft') return false;
334
 
335
  $to = get_bloginfo('admin_email');
336
- $subject = (isset($this->notif_settings['new_event']['subject']) and trim($this->notif_settings['new_event']['subject'])) ? __($this->notif_settings['new_event']['subject'], 'mec') : __('A new event is added.', 'mec');
337
  $headers = array();
338
 
339
  $recipients_str = isset($this->notif_settings['new_event']['recipients']) ? $this->notif_settings['new_event']['recipients'] : '';
@@ -502,8 +502,8 @@ class MEC_notifications extends MEC_base
502
  {
503
  $reg_form = isset($attendee['reg']) ? $attendee['reg'] : array();
504
 
505
- $attendees_full_info .= __('Name', 'mec').': '.((isset($attendee['name']) and trim($attendee['name'])) ? $attendee['name'] : '---')."\r\n";
506
- $attendees_full_info .= __('Email', 'mec').': '.((isset($attendee['email']) and trim($attendee['email'])) ? $attendee['email'] : '---')."\r\n";
507
 
508
  foreach($reg_form as $field_id=>$value)
509
  {
@@ -512,12 +512,12 @@ class MEC_notifications extends MEC_base
512
 
513
  if($type == 'agreement')
514
  {
515
- $label = sprintf(__($label, 'mec'), '<a href="'.get_the_permalink($reg_fields[$field_id]['page']).'">'.get_the_title($reg_fields[$field_id]['page']).'</a>');
516
- $attendees_full_info .= $label.': '.($value == '1' ? __('Yes', 'mec') : __('No', 'mec'))."\r\n";
517
  }
518
  else
519
  {
520
- $attendees_full_info .= __($label, 'mec').': '.(is_string($value) ? $value : (is_array($value) ? implode(', ', $value) : '---'))."\r\n";
521
  }
522
  }
523
 
58
  if($price > 0 and isset($this->settings['booking_auto_verify_paid']) and $this->settings['booking_auto_verify_paid'] == 1) return false;
59
 
60
  $to = $booker->user_email;
61
+ $subject = isset($this->notif_settings['email_verification']['subject']) ? $this->content(__($this->notif_settings['email_verification']['subject'], 'modern-events-calendar-lite'), $book_id) : __('Please verify your email.', 'modern-events-calendar-lite');
62
  $headers = array();
63
 
64
  $recipients_str = isset($this->notif_settings['email_verification']['recipients']) ? $this->notif_settings['email_verification']['recipients'] : '';
112
  if(isset($this->notif_settings['booking_notification']['status']) and !$this->notif_settings['booking_notification']['status']) return false;
113
 
114
  $to = $booker->user_email;
115
+ $subject = isset($this->notif_settings['booking_notification']['subject']) ? $this->content(__($this->notif_settings['booking_notification']['subject'], 'modern-events-calendar-lite'), $book_id) : __('Your booking is received.', 'modern-events-calendar-lite');
116
  $headers = array();
117
 
118
  $recipients_str = isset($this->notif_settings['booking_notification']['recipients']) ? $this->notif_settings['booking_notification']['recipients'] : '';
170
  if(!isset($booker->user_email)) return false;
171
 
172
  $to = $booker->user_email;
173
+ $subject = isset($this->notif_settings['booking_confirmation']['subject']) ? $this->content(__($this->notif_settings['booking_confirmation']['subject'], 'modern-events-calendar-lite'), $book_id) : __('Your booking is confirmed.', 'modern-events-calendar-lite');
174
  $headers = array();
175
 
176
  $recipients_str = isset($this->notif_settings['booking_confirmation']['recipients']) ? $this->notif_settings['booking_confirmation']['recipients'] : '';
206
  public function admin_notification($book_id)
207
  {
208
  $to = get_bloginfo('admin_email');
209
+ $subject = isset($this->notif_settings['admin_notification']['subject']) ? $this->content(__($this->notif_settings['admin_notification']['subject'], 'modern-events-calendar-lite'), $book_id) : __('A new booking is received.', 'modern-events-calendar-lite');
210
  $headers = array();
211
 
212
  $recipients_str = isset($this->notif_settings['admin_notification']['recipients']) ? $this->notif_settings['admin_notification']['recipients'] : '';
264
 
265
  if(!isset($booker->user_email)) return false;
266
 
267
+ $subject = isset($this->notif_settings['booking_reminder']['subject']) ? $this->content(__($this->notif_settings['booking_reminder']['subject'], 'modern-events-calendar-lite'), $book_id) : __('Booking Reminder', 'modern-events-calendar-lite');
268
  $headers = array();
269
 
270
  $recipients_str = isset($this->notif_settings['booking_reminder']['recipients']) ? $this->notif_settings['booking_reminder']['recipients'] : '';
333
  if($status == 'auto-draft') return false;
334
 
335
  $to = get_bloginfo('admin_email');
336
+ $subject = (isset($this->notif_settings['new_event']['subject']) and trim($this->notif_settings['new_event']['subject'])) ? __($this->notif_settings['new_event']['subject'], 'modern-events-calendar-lite') : __('A new event is added.', 'modern-events-calendar-lite');
337
  $headers = array();
338
 
339
  $recipients_str = isset($this->notif_settings['new_event']['recipients']) ? $this->notif_settings['new_event']['recipients'] : '';
502
  {
503
  $reg_form = isset($attendee['reg']) ? $attendee['reg'] : array();
504
 
505
+ $attendees_full_info .= __('Name', 'modern-events-calendar-lite').': '.((isset($attendee['name']) and trim($attendee['name'])) ? $attendee['name'] : '---')."\r\n";
506
+ $attendees_full_info .= __('Email', 'modern-events-calendar-lite').': '.((isset($attendee['email']) and trim($attendee['email'])) ? $attendee['email'] : '---')."\r\n";
507
 
508
  foreach($reg_form as $field_id=>$value)
509
  {
512
 
513
  if($type == 'agreement')
514
  {
515
+ $label = sprintf(__($label, 'modern-events-calendar-lite'), '<a href="'.get_the_permalink($reg_fields[$field_id]['page']).'">'.get_the_title($reg_fields[$field_id]['page']).'</a>');
516
+ $attendees_full_info .= $label.': '.($value == '1' ? __('Yes', 'modern-events-calendar-lite') : __('No', 'modern-events-calendar-lite'))."\r\n";
517
  }
518
  else
519
  {
520
+ $attendees_full_info .= __($label, 'modern-events-calendar-lite').': '.(is_string($value) ? $value : (is_array($value) ? implode(', ', $value) : '---'))."\r\n";
521
  }
522
  }
523
 
app/libraries/render.php CHANGED
@@ -334,7 +334,7 @@ class MEC_render extends MEC_base
334
  if($skin_path != $skin and $this->file->exists($skin_path)) $path = $skin_path;
335
  if(!$this->file->exists($path))
336
  {
337
- return __('Skin controller does not exist.', 'mec');
338
  }
339
 
340
  include_once $path;
@@ -404,7 +404,7 @@ class MEC_render extends MEC_base
404
  }
405
  elseif($allday)
406
  {
407
- $data->time = array('start'=>__('All of the day', 'mec'), 'end'=>'');
408
  }
409
  else
410
  {
334
  if($skin_path != $skin and $this->file->exists($skin_path)) $path = $skin_path;
335
  if(!$this->file->exists($path))
336
  {
337
+ return __('Skin controller does not exist.', 'modern-events-calendar-lite');
338
  }
339
 
340
  include_once $path;
404
  }
405
  elseif($allday)
406
  {
407
+ $data->time = array('start'=>__('All of the day', 'modern-events-calendar-lite'), 'end'=>'');
408
  }
409
  else
410
  {
app/libraries/skins.php CHANGED
@@ -244,7 +244,7 @@ class MEC_skins extends MEC_base
244
  {
245
  if(!$this->main->getPRO() and in_array($this->skin, array('agenda', 'yearly_view', 'timetable', 'masonry', 'map', 'available_spot')))
246
  {
247
- return '<div class="info-msg">'.sprintf(__("%s is required to use this skin.", 'mec'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'mec').'</a>').'</div>';
248
  }
249
 
250
  // Include needed assets for loading single event details page
@@ -686,7 +686,7 @@ class MEC_skins extends MEC_base
686
  'include'=>((isset($this->atts['category']) and trim($this->atts['category'])) ? $this->atts['category'] : ''),
687
  'id'=>'mec_sf_category_'.$this->id,
688
  'hierarchical'=>true,
689
- 'show_option_none'=>$this->main->m('taxonomy_category', __('Category', 'mec')),
690
  'option_none_value'=>'',
691
  'selected'=>(isset($this->atts['category']) ? $this->atts['category'] : ''),
692
  'orderby'=>'name',
@@ -712,7 +712,7 @@ class MEC_skins extends MEC_base
712
  'include'=>((isset($this->atts['location']) and trim($this->atts['location'])) ? $this->atts['location'] : ''),
713
  'id'=>'mec_sf_location_'.$this->id,
714
  'hierarchical'=>true,
715
- 'show_option_none'=>$this->main->m('taxonomy_location', __('Location', 'mec')),
716
  'option_none_value'=>'',
717
  'selected'=>(isset($this->atts['location']) ? $this->atts['location'] : ''),
718
  'orderby'=>'name',
@@ -738,7 +738,7 @@ class MEC_skins extends MEC_base
738
  'include'=>((isset($this->atts['organizer']) and trim($this->atts['organizer'])) ? $this->atts['organizer'] : ''),
739
  'id'=>'mec_sf_organizer_'.$this->id,
740
  'hierarchical'=>true,
741
- 'show_option_none'=>$this->main->m('taxonomy_organizer', __('Organizer', 'mec')),
742
  'option_none_value'=>'',
743
  'selected'=>(isset($this->atts['organizer']) ? $this->atts['organizer'] : ''),
744
  'orderby'=>'name',
@@ -764,7 +764,7 @@ class MEC_skins extends MEC_base
764
  'include'=>((isset($this->atts['label']) and trim($this->atts['label'])) ? $this->atts['label'] : ''),
765
  'id'=>'mec_sf_label_'.$this->id,
766
  'hierarchical'=>true,
767
- 'show_option_none'=>$this->main->m('taxonomy_label', __('Label', 'mec')),
768
  'option_none_value'=>'',
769
  'selected'=>(isset($this->atts['label']) ? $this->atts['label'] : ''),
770
  'orderby'=>'name',
@@ -785,7 +785,7 @@ class MEC_skins extends MEC_base
785
  <i class="mec-sl-calendar"></i>
786
  <select id="mec_sf_month_'.$this->id.'">';
787
 
788
- $output .= in_array($this->skin, array('list', 'grid')) ? '<option id="mec_sf_skip_date_'.$this->id.'" value="ignore_date">'.__('Ignore month and years', 'mec').'</option>' : '';
789
 
790
  $m = date('m', $time);
791
  $Y = date('Y', $time);
244
  {
245
  if(!$this->main->getPRO() and in_array($this->skin, array('agenda', 'yearly_view', 'timetable', 'masonry', 'map', 'available_spot')))
246
  {
247
+ return '<div class="info-msg">'.sprintf(__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.$this->main->get_pro_link().'" target="_blank">'.__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>').'</div>';
248
  }
249
 
250
  // Include needed assets for loading single event details page
686
  'include'=>((isset($this->atts['category']) and trim($this->atts['category'])) ? $this->atts['category'] : ''),
687
  'id'=>'mec_sf_category_'.$this->id,
688
  'hierarchical'=>true,
689
+ 'show_option_none'=>$this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite')),
690
  'option_none_value'=>'',
691
  'selected'=>(isset($this->atts['category']) ? $this->atts['category'] : ''),
692
  'orderby'=>'name',
712
  'include'=>((isset($this->atts['location']) and trim($this->atts['location'])) ? $this->atts['location'] : ''),
713
  'id'=>'mec_sf_location_'.$this->id,
714
  'hierarchical'=>true,
715
+ 'show_option_none'=>$this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')),
716
  'option_none_value'=>'',
717
  'selected'=>(isset($this->atts['location']) ? $this->atts['location'] : ''),
718
  'orderby'=>'name',
738
  'include'=>((isset($this->atts['organizer']) and trim($this->atts['organizer'])) ? $this->atts['organizer'] : ''),
739
  'id'=>'mec_sf_organizer_'.$this->id,
740
  'hierarchical'=>true,
741
+ 'show_option_none'=>$this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')),
742
  'option_none_value'=>'',
743
  'selected'=>(isset($this->atts['organizer']) ? $this->atts['organizer'] : ''),
744
  'orderby'=>'name',
764
  'include'=>((isset($this->atts['label']) and trim($this->atts['label'])) ? $this->atts['label'] : ''),
765
  'id'=>'mec_sf_label_'.$this->id,
766
  'hierarchical'=>true,
767
+ 'show_option_none'=>$this->main->m('taxonomy_label', __('Label', 'modern-events-calendar-lite')),
768
  'option_none_value'=>'',
769
  'selected'=>(isset($this->atts['label']) ? $this->atts['label'] : ''),
770
  'orderby'=>'name',
785
  <i class="mec-sl-calendar"></i>
786
  <select id="mec_sf_month_'.$this->id.'">';
787
 
788
+ $output .= in_array($this->skin, array('list', 'grid')) ? '<option id="mec_sf_skip_date_'.$this->id.'" value="ignore_date">'.__('Ignore month and years', 'modern-events-calendar-lite').'</option>' : '';
789
 
790
  $m = date('m', $time);
791
  $Y = date('Y', $time);
app/modules/attendees-list/details.php CHANGED
@@ -31,9 +31,9 @@ foreach($bookings as $booking)
31
  }
32
  ?>
33
  <div class="mec-attendees-list-details mec-frontbox" id="mec_attendees_list_details">
34
- <h3 class="mec-attendees-list mec-frontbox-title"><?php _e('Event Attendees', 'mec'); ?></h3>
35
  <?php if(!count($attendees)): ?>
36
- <p><?php _e('No attendee found! Be the first one to book!', 'mec'); ?></p>
37
  <?php else: ?>
38
  <ul>
39
  <?php foreach($attendees as $attendee_id=>$tickets): ?>
@@ -44,7 +44,7 @@ foreach($bookings as $booking)
44
  </a>
45
  </div>
46
  <div class="mec-attendee-profile-link">
47
- <?php echo bp_core_get_userlink($attendee_id).($tickets > 0 ? ' <span>'.sprintf(__('%s tickets', 'mec'), $tickets).'</span>' : ''); ?>
48
  </div>
49
  </li>
50
  <?php endforeach; ?>
31
  }
32
  ?>
33
  <div class="mec-attendees-list-details mec-frontbox" id="mec_attendees_list_details">
34
+ <h3 class="mec-attendees-list mec-frontbox-title"><?php _e('Event Attendees', 'modern-events-calendar-lite'); ?></h3>
35
  <?php if(!count($attendees)): ?>
36
+ <p><?php _e('No attendee found! Be the first one to book!', 'modern-events-calendar-lite'); ?></p>
37
  <?php else: ?>
38
  <ul>
39
  <?php foreach($attendees as $attendee_id=>$tickets): ?>
44
  </a>
45
  </div>
46
  <div class="mec-attendee-profile-link">
47
+ <?php echo bp_core_get_userlink($attendee_id).($tickets > 0 ? ' <span>'.sprintf(__('%s tickets', 'modern-events-calendar-lite'), $tickets).'</span>' : ''); ?>
48
  </div>
49
  </li>
50
  <?php endforeach; ?>
app/modules/booking/default.php CHANGED
@@ -58,6 +58,7 @@ function mec_get_tickets_availability'.$uniqueid.'(event_id, date)
58
 
59
  for(ticket_id in data.availability)
60
  {
 
61
  var limit = data.availability[ticket_id];
62
 
63
  jQuery("#mec_booking'.$uniqueid.' #mec_event_ticket"+ticket_id).addClass(".mec-event-ticket"+limit);
58
 
59
  for(ticket_id in data.availability)
60
  {
61
+ console.log(limit);
62
  var limit = data.availability[ticket_id];
63
 
64
  jQuery("#mec_booking'.$uniqueid.' #mec_event_ticket"+ticket_id).addClass(".mec-event-ticket"+limit);
app/modules/booking/steps/checkout.php CHANGED
@@ -13,7 +13,7 @@ foreach($gateways as $gateway)
13
  }
14
  ?>
15
  <div id="mec_book_payment_form">
16
- <h4><?php _e('Checkout', 'mec'); ?></h4>
17
  <div class="mec-book-form-price">
18
  <?php if(isset($price_details['details']) and is_array($price_details['details']) and count($price_details['details'])): ?>
19
  <ul class="mec-book-price-details">
@@ -30,11 +30,11 @@ foreach($gateways as $gateway)
30
  <?php if(isset($this->settings['coupons_status']) and $this->settings['coupons_status']): ?>
31
  <div class="mec-book-form-coupon">
32
  <form id="mec_book_form_coupon<?php echo $uniqueid; ?>" onsubmit="mec_book_apply_coupon<?php echo $uniqueid; ?>(); return false;">
33
- <input type="text" name="coupon" placeholder="<?php esc_attr_e('Discount Coupon', 'mec'); ?>" />
34
  <input type="hidden" name="transaction_id" value="<?php echo $transaction_id; ?>" />
35
  <input type="hidden" name="action" value="mec_apply_coupon" />
36
  <?php wp_nonce_field('mec_apply_coupon_'.$transaction_id); ?>
37
- <button type="submit"><?php _e('Apply Coupon', 'mec'); ?></button>
38
  </form>
39
  <div class="mec-coupon-message mec-util-hidden"></div>
40
  </div>
@@ -65,7 +65,7 @@ foreach($gateways as $gateway)
65
  <input type="hidden" name="gateway_id" value="4" />
66
  <input type="hidden" name="uniqueid" value="<?php echo $uniqueid; ?>" />
67
  <?php wp_nonce_field('mec_transaction_form_'.$transaction_id); ?>
68
- <button type="submit"><?php _e('Free Booking', 'mec'); ?></button>
69
  </div>
70
  </form>
71
  </div>
13
  }
14
  ?>
15
  <div id="mec_book_payment_form">
16
+ <h4><?php _e('Checkout', 'modern-events-calendar-lite'); ?></h4>
17
  <div class="mec-book-form-price">
18
  <?php if(isset($price_details['details']) and is_array($price_details['details']) and count($price_details['details'])): ?>
19
  <ul class="mec-book-price-details">
30
  <?php if(isset($this->settings['coupons_status']) and $this->settings['coupons_status']): ?>
31
  <div class="mec-book-form-coupon">
32
  <form id="mec_book_form_coupon<?php echo $uniqueid; ?>" onsubmit="mec_book_apply_coupon<?php echo $uniqueid; ?>(); return false;">
33
+ <input type="text" name="coupon" placeholder="<?php esc_attr_e('Discount Coupon', 'modern-events-calendar-lite'); ?>" />
34
  <input type="hidden" name="transaction_id" value="<?php echo $transaction_id; ?>" />
35
  <input type="hidden" name="action" value="mec_apply_coupon" />
36
  <?php wp_nonce_field('mec_apply_coupon_'.$transaction_id); ?>
37
+ <button type="submit"><?php _e('Apply Coupon', 'modern-events-calendar-lite'); ?></button>
38
  </form>
39
  <div class="mec-coupon-message mec-util-hidden"></div>
40
  </div>
65
  <input type="hidden" name="gateway_id" value="4" />
66
  <input type="hidden" name="uniqueid" value="<?php echo $uniqueid; ?>" />
67
  <?php wp_nonce_field('mec_transaction_form_'.$transaction_id); ?>
68
+ <button type="submit"><?php _e('Free Booking', 'modern-events-calendar-lite'); ?></button>
69
  </div>
70
  </form>
71
  </div>
app/modules/booking/steps/form.php CHANGED
@@ -12,7 +12,7 @@ $current_user = wp_get_current_user();
12
  $first_for_all = (!isset($this->settings['booking_first_for_all']) or (isset($this->settings['booking_first_for_all']) and $this->settings['booking_first_for_all'] == 1)) ? true : false;
13
  ?>
14
  <form id="mec_book_form<?php echo $uniqueid; ?>" class="mec-booking-form-container" novalidate="novalidate">
15
- <h4><?php _e('Attendees Form', 'mec'); ?></h4>
16
  <ul class="mec-book-tickets-container">
17
 
18
  <?php $j = 0; foreach($tickets as $ticket_id=>$count): if(!$count) continue; $ticket = $event_tickets[$ticket_id]; for($i = 1; $i <= $count; $i++): $j++; ?>
@@ -21,51 +21,51 @@ $first_for_all = (!isset($this->settings['booking_first_for_all']) or (isset($th
21
  <h4><span class="mec-ticket-name"><?php echo $ticket['name']; ?></span><span class="mec-ticket-price"><?php echo $ticket['price_label']; ?></span></h4>
22
 
23
  <div class="mec-book-field-name mec-reg-mandatory" data-ticket-id="<?php echo $j; ?>">
24
- <label for="mec_book_reg_field_name<?php echo $j; ?>"><?php _e('Name', 'mec'); ?></label>
25
- <input id="mec_book_reg_field_name<?php echo $j; ?>" type="text" name="book[tickets][<?php echo $j; ?>][name]" value="<?php echo trim((isset($current_user->user_firstname) ? $current_user->user_firstname : '').' '.(isset($current_user->user_lastname) ? $current_user->user_lastname : '')); ?>" placeholder="<?php _e('Name', 'mec'); ?>" required />
26
  </div>
27
  <div class="mec-book-field-email mec-reg-mandatory" data-ticket-id="<?php echo $j; ?>">
28
- <label for="mec_book_reg_field_email<?php echo $j; ?>"><?php _e('Email', 'mec'); ?></label>
29
- <input id="mec_book_reg_field_email<?php echo $j; ?>" type="email" name="book[tickets][<?php echo $j; ?>][email]" value="<?php echo isset($current_user->user_email) ? $current_user->user_email : ''; ?>" placeholder="<?php _e('Email', 'mec'); ?>" required />
30
  </div>
31
 
32
  <!-- Custom fields -->
33
  <?php if(count($reg_fields)): foreach($reg_fields as $reg_field_id=>$reg_field): if(!is_numeric($reg_field_id) or !isset($reg_field['type'])) continue; ?>
34
  <div class="mec-book-reg-field-<?php echo $reg_field['type']; ?> <?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? 'mec-reg-mandatory' : ''); ?>" data-ticket-id="<?php echo $j; ?>" data-field-id="<?php echo $reg_field_id; ?>">
35
- <?php if(isset($reg_field['label']) and $reg_field['type'] != 'agreement'): ?><label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>"><?php _e($reg_field['label'], 'mec'); ?><?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?></label><?php endif; ?>
36
 
37
  <?php /** Text **/ if($reg_field['type'] == 'text'): ?>
38
- <input id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" type="text" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="" placeholder="<?php _e($reg_field['label'], 'mec'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
39
 
40
  <?php /** Email **/ elseif($reg_field['type'] == 'email'): ?>
41
- <input id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" type="email" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="" placeholder="<?php _e($reg_field['label'], 'mec'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
42
 
43
  <?php /** Tel **/ elseif($reg_field['type'] == 'tel'): ?>
44
- <input id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" type="tel" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="" placeholder="<?php _e($reg_field['label'], 'mec'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
45
 
46
  <?php /** Textarea **/ elseif($reg_field['type'] == 'textarea'): ?>
47
- <textarea id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" placeholder="<?php _e($reg_field['label'], 'mec'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?>></textarea>
48
 
49
  <?php /** Dropdown **/ elseif($reg_field['type'] == 'select'): ?>
50
- <select id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" placeholder="<?php _e($reg_field['label'], 'mec'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?>>
51
  <?php foreach($reg_field['options'] as $reg_field_option): ?>
52
- <option value="<?php esc_attr_e($reg_field_option['label'], 'mec'); ?>"><?php _e($reg_field_option['label'], 'mec'); ?></option>
53
  <?php endforeach; ?>
54
  </select>
55
 
56
  <?php /** Radio **/ elseif($reg_field['type'] == 'radio'): ?>
57
  <?php foreach($reg_field['options'] as $reg_field_option): ?>
58
  <label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>">
59
- <input type="radio" id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="<?php _e($reg_field_option['label'], 'mec'); ?>" />
60
- <?php _e($reg_field_option['label'], 'mec'); ?>
61
  </label>
62
  <?php endforeach; ?>
63
 
64
  <?php /** Checkbox **/ elseif($reg_field['type'] == 'checkbox'): ?>
65
  <?php foreach($reg_field['options'] as $reg_field_option): ?>
66
  <label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>">
67
- <input type="checkbox" id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>][]" value="<?php _e($reg_field_option['label'], 'mec'); ?>" />
68
- <?php _e($reg_field_option['label'], 'mec'); ?>
69
  </label>
70
  <?php endforeach; ?>
71
 
@@ -73,11 +73,11 @@ $first_for_all = (!isset($this->settings['booking_first_for_all']) or (isset($th
73
  <label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>">
74
  <input type="checkbox" id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="1" <?php echo (!isset($reg_field['status']) or (isset($reg_field['status']) and $reg_field['status'] == 'checked')) ? 'checked="checked"' : ''; ?> />
75
  <?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?>
76
- <?php echo sprintf(__($reg_field['label'], 'mec'), '<a href="'.get_the_permalink($reg_field['page']).'" target="_blank">'.get_the_title($reg_field['page']).'</a>'); ?>
77
  </label>
78
 
79
  <?php /** Paragraph **/ elseif($reg_field['type'] == 'p'): ?>
80
- <p><?php _e($reg_field['content'], 'mec'); ?></p>
81
 
82
  <?php endif; ?>
83
  </div>
@@ -93,7 +93,7 @@ $first_for_all = (!isset($this->settings['booking_first_for_all']) or (isset($th
93
  <label>
94
  <input type="hidden" name="book[first_for_all]" value="0" />
95
  <input type="checkbox" name="book[first_for_all]" value="1" checked="checked" id="mec_book_first_for_all<?php echo $uniqueid; ?>" onchange="mec_toggle_first_for_all<?php echo $uniqueid; ?>();" />
96
- <?php _e("Fill other attendees's information like the first form.", 'mec'); ?>
97
  </label>
98
  </li>
99
  <?php endif; ?>
@@ -119,5 +119,5 @@ $first_for_all = (!isset($this->settings['booking_first_for_all']) or (isset($th
119
  <input type="hidden" name="uniqueid" value="<?php echo $uniqueid; ?>" />
120
  <input type="hidden" name="step" value="2" />
121
  <?php wp_nonce_field('mec_book_form_'.$event_id); ?>
122
- <button type="submit"><?php _e('Next', 'mec'); ?></button>
123
  </form>
12
  $first_for_all = (!isset($this->settings['booking_first_for_all']) or (isset($this->settings['booking_first_for_all']) and $this->settings['booking_first_for_all'] == 1)) ? true : false;
13
  ?>
14
  <form id="mec_book_form<?php echo $uniqueid; ?>" class="mec-booking-form-container" novalidate="novalidate">
15
+ <h4><?php _e('Attendees Form', 'modern-events-calendar-lite'); ?></h4>
16
  <ul class="mec-book-tickets-container">
17
 
18
  <?php $j = 0; foreach($tickets as $ticket_id=>$count): if(!$count) continue; $ticket = $event_tickets[$ticket_id]; for($i = 1; $i <= $count; $i++): $j++; ?>
21
  <h4><span class="mec-ticket-name"><?php echo $ticket['name']; ?></span><span class="mec-ticket-price"><?php echo $ticket['price_label']; ?></span></h4>
22
 
23
  <div class="mec-book-field-name mec-reg-mandatory" data-ticket-id="<?php echo $j; ?>">
24
+ <label for="mec_book_reg_field_name<?php echo $j; ?>"><?php _e('Name', 'modern-events-calendar-lite'); ?></label>
25
+ <input id="mec_book_reg_field_name<?php echo $j; ?>" type="text" name="book[tickets][<?php echo $j; ?>][name]" value="<?php echo trim((isset($current_user->user_firstname) ? $current_user->user_firstname : '').' '.(isset($current_user->user_lastname) ? $current_user->user_lastname : '')); ?>" placeholder="<?php _e('Name', 'modern-events-calendar-lite'); ?>" required />
26
  </div>
27
  <div class="mec-book-field-email mec-reg-mandatory" data-ticket-id="<?php echo $j; ?>">
28
+ <label for="mec_book_reg_field_email<?php echo $j; ?>"><?php _e('Email', 'modern-events-calendar-lite'); ?></label>
29
+ <input id="mec_book_reg_field_email<?php echo $j; ?>" type="email" name="book[tickets][<?php echo $j; ?>][email]" value="<?php echo isset($current_user->user_email) ? $current_user->user_email : ''; ?>" placeholder="<?php _e('Email', 'modern-events-calendar-lite'); ?>" required />
30
  </div>
31
 
32
  <!-- Custom fields -->
33
  <?php if(count($reg_fields)): foreach($reg_fields as $reg_field_id=>$reg_field): if(!is_numeric($reg_field_id) or !isset($reg_field['type'])) continue; ?>
34
  <div class="mec-book-reg-field-<?php echo $reg_field['type']; ?> <?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? 'mec-reg-mandatory' : ''); ?>" data-ticket-id="<?php echo $j; ?>" data-field-id="<?php echo $reg_field_id; ?>">
35
+ <?php if(isset($reg_field['label']) and $reg_field['type'] != 'agreement'): ?><label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>"><?php _e($reg_field['label'], 'modern-events-calendar-lite'); ?><?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?></label><?php endif; ?>
36
 
37
  <?php /** Text **/ if($reg_field['type'] == 'text'): ?>
38
+ <input id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" type="text" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="" placeholder="<?php _e($reg_field['label'], 'modern-events-calendar-lite'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
39
 
40
  <?php /** Email **/ elseif($reg_field['type'] == 'email'): ?>
41
+ <input id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" type="email" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="" placeholder="<?php _e($reg_field['label'], 'modern-events-calendar-lite'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
42
 
43
  <?php /** Tel **/ elseif($reg_field['type'] == 'tel'): ?>
44
+ <input id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" type="tel" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="" placeholder="<?php _e($reg_field['label'], 'modern-events-calendar-lite'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
45
 
46
  <?php /** Textarea **/ elseif($reg_field['type'] == 'textarea'): ?>
47
+ <textarea id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" placeholder="<?php _e($reg_field['label'], 'modern-events-calendar-lite'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?>></textarea>
48
 
49
  <?php /** Dropdown **/ elseif($reg_field['type'] == 'select'): ?>
50
+ <select id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" placeholder="<?php _e($reg_field['label'], 'modern-events-calendar-lite'); ?>" <?php if(isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?>>
51
  <?php foreach($reg_field['options'] as $reg_field_option): ?>
52
+ <option value="<?php esc_attr_e($reg_field_option['label'], 'modern-events-calendar-lite'); ?>"><?php _e($reg_field_option['label'], 'modern-events-calendar-lite'); ?></option>
53
  <?php endforeach; ?>
54
  </select>
55
 
56
  <?php /** Radio **/ elseif($reg_field['type'] == 'radio'): ?>
57
  <?php foreach($reg_field['options'] as $reg_field_option): ?>
58
  <label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>">
59
+ <input type="radio" id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="<?php _e($reg_field_option['label'], 'modern-events-calendar-lite'); ?>" />
60
+ <?php _e($reg_field_option['label'], 'modern-events-calendar-lite'); ?>
61
  </label>
62
  <?php endforeach; ?>
63
 
64
  <?php /** Checkbox **/ elseif($reg_field['type'] == 'checkbox'): ?>
65
  <?php foreach($reg_field['options'] as $reg_field_option): ?>
66
  <label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>">
67
+ <input type="checkbox" id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id.'_'.strtolower(str_replace(' ', '_', $reg_field_option['label'])); ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>][]" value="<?php _e($reg_field_option['label'], 'modern-events-calendar-lite'); ?>" />
68
+ <?php _e($reg_field_option['label'], 'modern-events-calendar-lite'); ?>
69
  </label>
70
  <?php endforeach; ?>
71
 
73
  <label for="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>">
74
  <input type="checkbox" id="mec_book_reg_field_reg<?php echo $j.'_'.$reg_field_id; ?>" name="book[tickets][<?php echo $j; ?>][reg][<?php echo $reg_field_id; ?>]" value="1" <?php echo (!isset($reg_field['status']) or (isset($reg_field['status']) and $reg_field['status'] == 'checked')) ? 'checked="checked"' : ''; ?> />
75
  <?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?>
76
+ <?php echo sprintf(__($reg_field['label'], 'modern-events-calendar-lite'), '<a href="'.get_the_permalink($reg_field['page']).'" target="_blank">'.get_the_title($reg_field['page']).'</a>'); ?>
77
  </label>
78
 
79
  <?php /** Paragraph **/ elseif($reg_field['type'] == 'p'): ?>
80
+ <p><?php _e($reg_field['content'], 'modern-events-calendar-lite'); ?></p>
81
 
82
  <?php endif; ?>
83
  </div>
93
  <label>
94
  <input type="hidden" name="book[first_for_all]" value="0" />
95
  <input type="checkbox" name="book[first_for_all]" value="1" checked="checked" id="mec_book_first_for_all<?php echo $uniqueid; ?>" onchange="mec_toggle_first_for_all<?php echo $uniqueid; ?>();" />
96
+ <?php _e("Fill other attendees's information like the first form.", 'modern-events-calendar-lite'); ?>
97
  </label>
98
  </li>
99
  <?php endif; ?>
119
  <input type="hidden" name="uniqueid" value="<?php echo $uniqueid; ?>" />
120
  <input type="hidden" name="step" value="2" />
121
  <?php wp_nonce_field('mec_book_form_'.$event_id); ?>
122
+ <button type="submit"><?php _e('Next', 'modern-events-calendar-lite'); ?></button>
123
  </form>
app/modules/booking/steps/message.php CHANGED
@@ -4,7 +4,7 @@ defined('MECEXEC') or die();
4
 
5
  $event_id = $event->ID;
6
  ?>
7
- <h4><?php _e('Thanks for your booking.', 'mec'); ?></h4>
8
  <?php if(isset($message)): ?>
9
  <div class="mec-event-book-message">
10
  <div class="<?php echo (isset($message_class) ? $message_class : ''); ?>"><?php echo $message; ?></div>
4
 
5
  $event_id = $event->ID;
6
  ?>
7
+ <h4><?php _e('Thanks for your booking.', 'modern-events-calendar-lite'); ?></h4>
8
  <?php if(isset($message)): ?>
9
  <div class="mec-event-book-message">
10
  <div class="<?php echo (isset($message_class) ? $message_class : ''); ?>"><?php echo $message; ?></div>
app/modules/booking/steps/tickets.php CHANGED
@@ -15,9 +15,9 @@ $availability = $book->get_tickets_availability($event_id, $dates[0]['start']['d
15
  $date_format = (isset($settings['booking_date_format1']) and trim($settings['booking_date_format1'])) ? $settings['booking_date_format1'] : 'Y-m-d';
16
  ?>
17
  <form id="mec_book_form<?php echo $uniqueid; ?>">
18
- <h4><?php _e('Book Event', 'mec'); ?></h4>
19
  <div>
20
- <label for="mec_book_form_date"><?php _e('Date', 'mec'); ?>: </label>
21
  <select name="book[date]" id="mec_book_form_date" onchange="mec_get_tickets_availability<?php echo $uniqueid; ?>(<?php echo $event_id; ?>, this.value);">
22
  <?php foreach($dates as $date): ?>
23
  <option value="<?php echo $date['start']['date'].':'.$date['end']['date']; ?>"><?php echo date_i18n($date_format, strtotime($date['start']['date'])).((strtotime($date['end']['date']) > strtotime($date['start']['date'])) ? ' - '.date_i18n($date_format, strtotime($date['end']['date'])) : ''); ?></option>
@@ -33,12 +33,12 @@ $date_format = (isset($settings['booking_date_format1']) and trim($settings['boo
33
  <span class="mec-event-ticket-price"><?php echo (isset($ticket['price_label']) ? $ticket['price_label'] : ''); ?></span>
34
  <?php if(isset($ticket['description']) and trim($ticket['description'])): ?><p class="mec-event-ticket-description"><?php echo $ticket['description']; ?></p><?php endif; ?>
35
  <div>
36
- <input type="number" class="mec-book-ticket-limit" name="book[tickets][<?php echo $ticket_id; ?>]" placeholder="<?php esc_attr_e('Count', 'mec'); ?>" value="<?php echo $default_ticket_number; ?>" min="0" max="<?php echo ($ticket_limit != '-1' ? $ticket_limit : ''); ?>" onchange="mec_check_tickets_availability<?php echo $uniqueid; ?>(<?php echo $ticket_id; ?>, this.value);" />
37
  </div>
38
- <span class="mec-event-ticket-available"><?php echo sprintf(__('Available %s: <span>%s</span>', 'mec'), $this->m('tickets', __('Tickets', 'mec')), ($ticket['unlimited'] ? __('Unlimited', 'mec') : ($ticket_limit != '-1' ? $ticket_limit : __('Unlimited', 'mec')))); ?></span>
39
  </div>
40
  <div class="mec-ticket-unavailable-spots info-msg <?php echo ($ticket_limit == '0' ? '' : 'mec-util-hidden'); ?>">
41
- <?php echo sprintf(__('The %s ticket is sold out. You can try another ticket or another date.', 'mec'), (isset($ticket['name']) ? '<strong>'.$ticket['name'].'</strong>' : '')); ?>
42
  </div>
43
  </div>
44
  <?php endforeach; ?>
@@ -50,5 +50,5 @@ $date_format = (isset($settings['booking_date_format1']) and trim($settings['boo
50
  <input type="hidden" name="uniqueid" value="<?php echo $uniqueid; ?>" />
51
  <input type="hidden" name="step" value="1" />
52
  <?php wp_nonce_field('mec_book_form_'.$event_id); ?>
53
- <button type="submit"><?php _e('Next', 'mec'); ?></button>
54
  </form>
15
  $date_format = (isset($settings['booking_date_format1']) and trim($settings['booking_date_format1'])) ? $settings['booking_date_format1'] : 'Y-m-d';
16
  ?>
17
  <form id="mec_book_form<?php echo $uniqueid; ?>">
18
+ <h4><?php _e('Book Event', 'modern-events-calendar-lite'); ?></h4>
19
  <div>
20
+ <label for="mec_book_form_date"><?php _e('Date', 'modern-events-calendar-lite'); ?>: </label>
21
  <select name="book[date]" id="mec_book_form_date" onchange="mec_get_tickets_availability<?php echo $uniqueid; ?>(<?php echo $event_id; ?>, this.value);">
22
  <?php foreach($dates as $date): ?>
23
  <option value="<?php echo $date['start']['date'].':'.$date['end']['date']; ?>"><?php echo date_i18n($date_format, strtotime($date['start']['date'])).((strtotime($date['end']['date']) > strtotime($date['start']['date'])) ? ' - '.date_i18n($date_format, strtotime($date['end']['date'])) : ''); ?></option>
33
  <span class="mec-event-ticket-price"><?php echo (isset($ticket['price_label']) ? $ticket['price_label'] : ''); ?></span>
34
  <?php if(isset($ticket['description']) and trim($ticket['description'])): ?><p class="mec-event-ticket-description"><?php echo $ticket['description']; ?></p><?php endif; ?>
35
  <div>
36
+ <input type="number" class="mec-book-ticket-limit" name="book[tickets][<?php echo $ticket_id; ?>]" placeholder="<?php esc_attr_e('Count', 'modern-events-calendar-lite'); ?>" value="<?php echo $default_ticket_number; ?>" min="0" max="<?php echo ($ticket_limit != '-1' ? $ticket_limit : ''); ?>" onchange="mec_check_tickets_availability<?php echo $uniqueid; ?>(<?php echo $ticket_id; ?>, this.value);" />
37
  </div>
38
+ <span class="mec-event-ticket-available"><?php echo sprintf(__('Available %s: <span>%s</span>', 'modern-events-calendar-lite'), $this->m('tickets', __('Tickets', 'modern-events-calendar-lite')), ($ticket['unlimited'] ? __('Unlimited', 'modern-events-calendar-lite') : ($ticket_limit != '-1' ? $ticket_limit : __('Unlimited', 'modern-events-calendar-lite')))); ?></span>
39
  </div>
40
  <div class="mec-ticket-unavailable-spots info-msg <?php echo ($ticket_limit == '0' ? '' : 'mec-util-hidden'); ?>">
41
+ <?php echo sprintf(__('The %s ticket is sold out. You can try another ticket or another date.', 'modern-events-calendar-lite'), (isset($ticket['name']) ? '<strong>'.$ticket['name'].'</strong>' : '')); ?>
42
  </div>
43
  </div>
44
  <?php endforeach; ?>
50
  <input type="hidden" name="uniqueid" value="<?php echo $uniqueid; ?>" />
51
  <input type="hidden" name="step" value="1" />
52
  <?php wp_nonce_field('mec_book_form_'.$event_id); ?>
53
+ <button type="submit"><?php _e('Next', 'modern-events-calendar-lite'); ?></button>
54
  </form>
app/modules/countdown/details.php CHANGED
@@ -36,12 +36,12 @@ $d3 = new DateTime($end_time);
36
 
37
  if($d3 < $d2)
38
  {
39
- echo '<div class="mec-end-counts"><h3>'.__('The event is finished.', 'mec').'</h3></div>';
40
  return;
41
  }
42
  elseif($d1 < $d2)
43
  {
44
- echo '<div class="mec-end-counts"><h3>'.__('The event is ongoing.', 'mec').'</h3></div>';
45
  return;
46
  }
47
 
@@ -119,28 +119,28 @@ jQuery(document).ready(function()
119
  <li>
120
  <i class="icon-w mec-li_calendar"></i>
121
  <span class="mec-days">00</span>
122
- <p class="mec-timeRefDays label-w"><?php _e('days', 'mec'); ?></p>
123
  </li>
124
  </div>
125
  <div class="hours-w block-w">
126
  <li>
127
  <i class="icon-w mec-fa-clock-o"></i>
128
  <span class="mec-hours">00</span>
129
- <p class="mec-timeRefHours label-w"><?php _e('hours', 'mec'); ?></p>
130
  </li>
131
  </div>
132
  <div class="minutes-w block-w">
133
  <li>
134
  <i class="icon-w mec-li_clock"></i>
135
  <span class="mec-minutes">00</span>
136
- <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'mec'); ?></p>
137
  </li>
138
  </div>
139
  <div class="seconds-w block-w">
140
  <li>
141
  <i class="icon-w mec-li_heart"></i>
142
  <span class="mec-seconds">00</span>
143
- <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'mec'); ?></p>
144
  </li>
145
  </div>
146
  </ul>
36
 
37
  if($d3 < $d2)
38
  {
39
+ echo '<div class="mec-end-counts"><h3>'.__('The event is finished.', 'modern-events-calendar-lite').'</h3></div>';
40
  return;
41
  }
42
  elseif($d1 < $d2)
43
  {
44
+ echo '<div class="mec-end-counts"><h3>'.__('The event is ongoing.', 'modern-events-calendar-lite').'</h3></div>';
45
  return;
46
  }
47
 
119
  <li>
120
  <i class="icon-w mec-li_calendar"></i>
121
  <span class="mec-days">00</span>
122
+ <p class="mec-timeRefDays label-w"><?php _e('days', 'modern-events-calendar-lite'); ?></p>
123
  </li>
124
  </div>
125
  <div class="hours-w block-w">
126
  <li>
127
  <i class="icon-w mec-fa-clock-o"></i>
128
  <span class="mec-hours">00</span>
129
+ <p class="mec-timeRefHours label-w"><?php _e('hours', 'modern-events-calendar-lite'); ?></p>
130
  </li>
131
  </div>
132
  <div class="minutes-w block-w">
133
  <li>
134
  <i class="icon-w mec-li_clock"></i>
135
  <span class="mec-minutes">00</span>
136
+ <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'modern-events-calendar-lite'); ?></p>
137
  </li>
138
  </div>
139
  <div class="seconds-w block-w">
140
  <li>
141
  <i class="icon-w mec-li_heart"></i>
142
  <span class="mec-seconds">00</span>
143
+ <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'modern-events-calendar-lite'); ?></p>
144
  </li>
145
  </div>
146
  </ul>
app/modules/export/details.php CHANGED
@@ -23,8 +23,8 @@ $gmt_offset_seconds = $this->get_gmt_offset_seconds();
23
  <div class="mec-event-exporting">
24
  <div class="mec-export-details">
25
  <ul>
26
- <?php if($settings['sn']['googlecal']): ?><li><a class="mec-events-gcal mec-events-button mec-color mec-bg-color-hover mec-border-color" href="https://www.google.com/calendar/event?action=TEMPLATE&text=<?php echo $title; ?>&dates=<?php echo gmdate('Ymd\\THi00\\Z', ($start_time - $gmt_offset_seconds)); ?>/<?php echo gmdate('Ymd\\THi00\\Z', ($end_time - $gmt_offset_seconds)); ?>&details=<?php echo $title; ?>&location=<?php echo $location; ?>" target="_blank"><?php echo __('+ Add to Google Calendar', 'mec'); ?></a></li><?php endif; ?>
27
- <?php if($settings['sn']['ical']): ?><li><a class="mec-events-gcal mec-events-button mec-color mec-bg-color-hover mec-border-color" href="<?php echo $this->ical_URL($event->data->ID, $occurrence); ?>"><?php echo __('+ iCal export', 'mec'); ?></a></li><?php endif; ?>
28
  </ul>
29
  </div>
30
  </div>
23
  <div class="mec-event-exporting">
24
  <div class="mec-export-details">
25
  <ul>
26
+ <?php if($settings['sn']['googlecal']): ?><li><a class="mec-events-gcal mec-events-button mec-color mec-bg-color-hover mec-border-color" href="https://www.google.com/calendar/event?action=TEMPLATE&text=<?php echo $title; ?>&dates=<?php echo gmdate('Ymd\\THi00\\Z', ($start_time - $gmt_offset_seconds)); ?>/<?php echo gmdate('Ymd\\THi00\\Z', ($end_time - $gmt_offset_seconds)); ?>&details=<?php echo $title; ?>&location=<?php echo $location; ?>" target="_blank"><?php echo __('+ Add to Google Calendar', 'modern-events-calendar-lite'); ?></a></li><?php endif; ?>
27
+ <?php if($settings['sn']['ical']): ?><li><a class="mec-events-gcal mec-events-button mec-color mec-bg-color-hover mec-border-color" href="<?php echo $this->ical_URL($event->data->ID, $occurrence); ?>"><?php echo __('+ iCal export', 'modern-events-calendar-lite'); ?></a></li><?php endif; ?>
28
  </ul>
29
  </div>
30
  </div>
app/modules/googlemap/details.php CHANGED
@@ -92,11 +92,11 @@ else $factory->params('footer', $javascript);
92
  <div class="mec-get-direction">
93
  <form method="post" action="#" id="mec_get_direction_form<?php echo $uniqueid; ?>" class="clearfix">
94
  <div class="mec-map-get-direction-address-cnt">
95
- <input class="mec-map-get-direction-address" type="text" placeholder="<?php esc_attr_e('Address from ...', 'mec') ?>" id="mec_get_direction_addr<?php echo $uniqueid; ?>" />
96
  <span class="mec-map-get-direction-reset mec-util-hidden" id="mec_map_get_direction_reset<?php echo $uniqueid; ?>">X</span>
97
  </div>
98
  <div class="mec-map-get-direction-btn-cnt btn btn-primary">
99
- <input type="submit" value="<?php _e('Get Directions', 'mec'); ?>" />
100
  </div>
101
  </form>
102
  </div>
92
  <div class="mec-get-direction">
93
  <form method="post" action="#" id="mec_get_direction_form<?php echo $uniqueid; ?>" class="clearfix">
94
  <div class="mec-map-get-direction-address-cnt">
95
+ <input class="mec-map-get-direction-address" type="text" placeholder="<?php esc_attr_e('Address from ...', 'modern-events-calendar-lite') ?>" id="mec_get_direction_addr<?php echo $uniqueid; ?>" />
96
  <span class="mec-map-get-direction-reset mec-util-hidden" id="mec_map_get_direction_reset<?php echo $uniqueid; ?>">X</span>
97
  </div>
98
  <div class="mec-map-get-direction-btn-cnt btn btn-primary">
99
+ <input type="submit" value="<?php _e('Get Directions', 'modern-events-calendar-lite'); ?>" />
100
  </div>
101
  </form>
102
  </div>
app/modules/links/details.php CHANGED
@@ -14,7 +14,7 @@ if(trim($url) == '') return;
14
  $socials = $this->get_social_networks();
15
  ?>
16
  <div class="mec-event-social mec-frontbox">
17
- <h3 class="mec-social-single mec-frontbox-title"><?php _e('Share this event', 'mec'); ?></h3>
18
  <div class="mec-event-sharing">
19
  <div class="mec-links-details">
20
  <ul>
14
  $socials = $this->get_social_networks();
15
  ?>
16
  <div class="mec-event-social mec-frontbox">
17
+ <h3 class="mec-social-single mec-frontbox-title"><?php _e('Share this event', 'modern-events-calendar-lite'); ?></h3>
18
  <div class="mec-event-sharing">
19
  <div class="mec-links-details">
20
  <ul>
app/modules/local-time/details.php CHANGED
@@ -37,10 +37,10 @@ $allday = isset($event->data->meta['mec_allday']) ? $event->data->meta['mec_alld
37
  ?>
38
  <div class="mec-local-time-details mec-frontbox" id="mec_local_time_details">
39
  <i class="mec-sl-speedometer"></i>
40
- <h3 class="mec-local-time mec-frontbox-title"><?php _e('Local Time', 'mec'); ?></h3>
41
  <ul>
42
- <li><?php echo sprintf(__('Timezone: %s', 'mec'), '<span>'.$timezone.'</span>'); ?></li>
43
- <li><?php echo sprintf(__('Date: %s', 'mec'), $this->date_label(array('date'=>date('Y-m-d', $user_start_time)), array('date'=>date('Y-m-d', $user_end_time)), $date_format1)); ?></li>
44
- <li><?php echo sprintf(__('Time: %s', 'mec'), '<span>'.($allday ? __('All of the day', 'mec') : date('H:i', $user_start_time).' - '.date('H:i', $user_end_time)).'</span>'); ?></li>
45
  </ul>
46
  </div>
37
  ?>
38
  <div class="mec-local-time-details mec-frontbox" id="mec_local_time_details">
39
  <i class="mec-sl-speedometer"></i>
40
+ <h3 class="mec-local-time mec-frontbox-title"><?php _e('Local Time', 'modern-events-calendar-lite'); ?></h3>
41
  <ul>
42
+ <li><?php echo sprintf(__('Timezone: %s', 'modern-events-calendar-lite'), '<span>'.$timezone.'</span>'); ?></li>
43
+ <li><?php echo sprintf(__('Date: %s', 'modern-events-calendar-lite'), $this->date_label(array('date'=>date('Y-m-d', $user_start_time)), array('date'=>date('Y-m-d', $user_end_time)), $date_format1)); ?></li>
44
+ <li><?php echo sprintf(__('Time: %s', 'modern-events-calendar-lite'), '<span>'.($allday ? __('All of the day', 'modern-events-calendar-lite') : date('H:i', $user_start_time).' - '.date('H:i', $user_end_time)).'</span>'); ?></li>
45
  </ul>
46
  </div>
app/modules/next-event/details.php CHANGED
@@ -49,26 +49,26 @@ $allday = isset($next->data->meta['mec_allday']) ? $next->data->meta['mec_allday
49
  ?>
50
  <div class="mec-next-event-details mec-frontbox" id="mec_next_event_details">
51
  <div class="mec-next-<?php echo $method; ?>">
52
- <h3 class="mec-frontbox-title"><?php echo ($method == 'occurrence' ? __('Next Occurrence', 'mec') : __('Next Event', 'mec')); ?></h3>
53
 
54
  <ul>
55
  <li>
56
- <a href="<?php echo $this->get_event_date_permalink($next->data->permalink, $next->date['start']['date'], true); ?>"><?php echo ($method == 'occurrence' ? __('Go to occurrence page', 'mec') : $next->data->title); ?></a>
57
  </li>
58
  <li>
59
  <i class="mec-sl-calendar"></i>
60
- <h6><?php _e('Date', 'mec'); ?></h6>
61
  <dd><abbr class="mec-events-abbr"><?php echo $this->date_label($next->date['start'], (isset($next->date['end']) ? $next->date['end'] : NULL), $date_format1); ?></abbr></dd>
62
  </li>
63
  <li>
64
  <i class="mec-sl-clock"></i>
65
- <h6><?php _e('Time', 'mec'); ?></h6>
66
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
67
 
68
  <?php if($allday == '0' and isset($next->data->time) and trim($next->data->time['start'])): ?>
69
  <dd><abbr class="mec-events-abbr"><?php echo $next->data->time['start']; ?><?php echo (trim($next->data->time['end']) ? ' - '.$next->data->time['end'] : ''); ?></abbr></dd>
70
  <?php else: ?>
71
- <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'mec'); ?></abbr></dd>
72
  <?php endif; ?>
73
  </li>
74
  </ul>
49
  ?>
50
  <div class="mec-next-event-details mec-frontbox" id="mec_next_event_details">
51
  <div class="mec-next-<?php echo $method; ?>">
52
+ <h3 class="mec-frontbox-title"><?php echo ($method == 'occurrence' ? __('Next Occurrence', 'modern-events-calendar-lite') : __('Next Event', 'modern-events-calendar-lite')); ?></h3>
53
 
54
  <ul>
55
  <li>
56
+ <a href="<?php echo $this->get_event_date_permalink($next->data->permalink, $next->date['start']['date'], true); ?>"><?php echo ($method == 'occurrence' ? __('Go to occurrence page', 'modern-events-calendar-lite') : $next->data->title); ?></a>
57
  </li>
58
  <li>
59
  <i class="mec-sl-calendar"></i>
60
+ <h6><?php _e('Date', 'modern-events-calendar-lite'); ?></h6>
61
  <dd><abbr class="mec-events-abbr"><?php echo $this->date_label($next->date['start'], (isset($next->date['end']) ? $next->date['end'] : NULL), $date_format1); ?></abbr></dd>
62
  </li>
63
  <li>
64
  <i class="mec-sl-clock"></i>
65
+ <h6><?php _e('Time', 'modern-events-calendar-lite'); ?></h6>
66
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
67
 
68
  <?php if($allday == '0' and isset($next->data->time) and trim($next->data->time['start'])): ?>
69
  <dd><abbr class="mec-events-abbr"><?php echo $next->data->time['start']; ?><?php echo (trim($next->data->time['end']) ? ' - '.$next->data->time['end'] : ''); ?></abbr></dd>
70
  <?php else: ?>
71
+ <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'modern-events-calendar-lite'); ?></abbr></dd>
72
  <?php endif; ?>
73
  </li>
74
  </ul>
app/modules/qrcode/details.php CHANGED
@@ -17,7 +17,7 @@ if(isset($_REQUEST['occurrence'])) $url = $this->add_qs_var('occurrence', $_REQU
17
  $file_name = 'qr_'.md5($url).'.png';
18
 
19
  $upload_dir = wp_upload_dir();
20
- $file_path = $upload_dir['basedir'] .DS. 'mec' .DS. $file_name;
21
 
22
  $file = $this->getFile();
23
  if(!$file->exists($file_path))
@@ -35,5 +35,5 @@ if(!$file->exists($file_path))
35
  $image_url = $upload_dir['baseurl'].'/mec/'.$file_name;
36
  ?>
37
  <div class="mec-qrcode-details mec-frontbox">
38
- <img src="<?php echo $image_url; ?>" width="120" height="120" alt="<?php echo __('QR Code', 'mec'); ?>" />
39
  </div>
17
  $file_name = 'qr_'.md5($url).'.png';
18
 
19
  $upload_dir = wp_upload_dir();
20
+ $file_path = $upload_dir['basedir'] .DS. 'modern-events-calendar-lite' .DS. $file_name;
21
 
22
  $file = $this->getFile();
23
  if(!$file->exists($file_path))
35
  $image_url = $upload_dir['baseurl'].'/mec/'.$file_name;
36
  ?>
37
  <div class="mec-qrcode-details mec-frontbox">
38
+ <img src="<?php echo $image_url; ?>" width="120" height="120" alt="<?php echo __('QR Code', 'modern-events-calendar-lite'); ?>" />
39
  </div>
app/modules/qrcode/invoice.php CHANGED
@@ -15,7 +15,7 @@ $url = get_post_permalink($event->ID);
15
  $file_name = 'qr_'.md5($url).'.png';
16
 
17
  $upload_dir = wp_upload_dir();
18
- $file_path = $upload_dir['basedir'] .DS. 'mec' .DS. $file_name;
19
 
20
  $file = $this->getFile();
21
  if(!$file->exists($file_path))
15
  $file_name = 'qr_'.md5($url).'.png';
16
 
17
  $upload_dir = wp_upload_dir();
18
+ $file_path = $upload_dir['basedir'] .DS. 'modern-events-calendar-lite' .DS. $file_name;
19
 
20
  $file = $this->getFile();
21
  if(!$file->exists($file_path))
app/modules/weather/details.php CHANGED
@@ -33,7 +33,7 @@ $weather = $this->get_weather($lat, $lng, $date);
33
  if(!is_array($weather) or (is_array($weather) and !count($weather))) return;
34
  ?>
35
  <div class="mec-weather-details mec-frontbox" id="mec_weather_details">
36
- <h3 class="mec-weather mec-frontbox-title"><?php _e('Weather', 'mec'); ?></h3>
37
 
38
  <!-- mec weather start -->
39
  <div class="mec-weather-box">
@@ -45,21 +45,21 @@ if(!is_array($weather) or (is_array($weather) and !count($weather))) return;
45
  <div class="mec-weather-summary">
46
  <div class="mec-weather-summary-report"><?php echo $weather['summary']; ?></div>
47
  <?php if(isset($weather['temperature'])): ?>
48
- <div class="mec-weather-summary-temp"><?php echo round( $weather['temperature']);?> <var><?php _e( ' °C', 'mec' ); ?></var></div>
49
  <?php endif; ?>
50
  </div>
51
  <div class="mec-weather-extras">
52
 
53
  <?php if(isset($weather['windSpeed'])): ?>
54
- <div class="mec-weather-wind"><span><?php _e('Wind', 'mec'); ?>:</span> <?php echo round($weather['windSpeed']); ?><var><?php _e(' KPH','mec'); ?></var></div>
55
  <?php endif; ?>
56
 
57
  <?php if(isset($weather['humidity'])): ?>
58
- <div class="mec-weather-humidity"><span><?php _e('Humidity', 'mec'); ?>:</span> <?php echo round($weather['humidity']); ?><var><?php _e(' %','mec'); ?></var></div>
59
  <?php endif; ?>
60
 
61
  <?php if(isset($weather['visibility'])): ?>
62
- <div class="mec-weather-visibility"><span><?php _e('Visibility', 'mec'); ?>:</span> <?php echo round($weather['visibility']); ?><var><?php _e(' KM','mec'); ?></var></div>
63
  <?php endif; ?>
64
 
65
  </div>
33
  if(!is_array($weather) or (is_array($weather) and !count($weather))) return;
34
  ?>
35
  <div class="mec-weather-details mec-frontbox" id="mec_weather_details">
36
+ <h3 class="mec-weather mec-frontbox-title"><?php _e('Weather', 'modern-events-calendar-lite'); ?></h3>
37
 
38
  <!-- mec weather start -->
39
  <div class="mec-weather-box">
45
  <div class="mec-weather-summary">
46
  <div class="mec-weather-summary-report"><?php echo $weather['summary']; ?></div>
47
  <?php if(isset($weather['temperature'])): ?>
48
+ <div class="mec-weather-summary-temp"><?php echo round( $weather['temperature']);?> <var><?php _e( ' °C', 'modern-events-calendar-lite' ); ?></var></div>
49
  <?php endif; ?>
50
  </div>
51
  <div class="mec-weather-extras">
52
 
53
  <?php if(isset($weather['windSpeed'])): ?>
54
+ <div class="mec-weather-wind"><span><?php _e('Wind', 'modern-events-calendar-lite'); ?>:</span> <?php echo round($weather['windSpeed']); ?><var><?php _e(' KPH','modern-events-calendar-lite'); ?></var></div>
55
  <?php endif; ?>
56
 
57
  <?php if(isset($weather['humidity'])): ?>
58
+ <div class="mec-weather-humidity"><span><?php _e('Humidity', 'modern-events-calendar-lite'); ?>:</span> <?php echo round($weather['humidity']); ?><var><?php _e(' %','modern-events-calendar-lite'); ?></var></div>
59
  <?php endif; ?>
60
 
61
  <?php if(isset($weather['visibility'])): ?>
62
+ <div class="mec-weather-visibility"><span><?php _e('Visibility', 'modern-events-calendar-lite'); ?>:</span> <?php echo round($weather['visibility']); ?><var><?php _e(' KM','modern-events-calendar-lite'); ?></var></div>
63
  <?php endif; ?>
64
 
65
  </div>
app/skins/agenda/tpl.php CHANGED
@@ -59,16 +59,16 @@ $event_colorskin = (isset($styling['mec_colorskin']) || isset($styling['color'])
59
  </div>
60
  </div>
61
  <div class="mec-skin-agenda-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
62
- <?php _e('No event found!', 'mec'); ?>
63
  </div>
64
  <?php else: ?>
65
  <div class="mec-skin-agenda-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
66
- <?php _e('No event found!', 'mec'); ?>
67
  </div>
68
  <?php endif; ?>
69
 
70
  <?php if($this->load_more_button and $this->found >= $this->limit): ?>
71
- <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'mec'); ?></div></div>
72
  <?php endif; ?>
73
 
74
  </div>
59
  </div>
60
  </div>
61
  <div class="mec-skin-agenda-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
62
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
63
  </div>
64
  <?php else: ?>
65
  <div class="mec-skin-agenda-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
66
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
67
  </div>
68
  <?php endif; ?>
69
 
70
  <?php if($this->load_more_button and $this->found >= $this->limit): ?>
71
+ <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'modern-events-calendar-lite'); ?></div></div>
72
  <?php endif; ?>
73
 
74
  </div>
app/skins/available_spot/tpl.php CHANGED
@@ -81,26 +81,26 @@ foreach($availability as $ticket_id=>$count)
81
 
82
  <div class="mec-av-spot-head clearfix">
83
  <div class="mec-av-spot-col6">
84
- <div class="mec-av-spot-box"><?php _e('Available Spot(s):', 'mec'); ?> <span class="mec-av-spot-count mec-color"><?php echo ($spots != '-1' ? $spots : __('Unlimited', 'mec')); ?></span></div>
85
  </div>
86
  <div class="mec-av-spot-col6">
87
  <div class="mec-event-countdown" id="mec_skin_available_spot<?php echo $this->id; ?>">
88
  <ul class="clockdiv" id="countdown">
89
  <li class="days-w block-w">
90
  <span class="mec-days">00</span>
91
- <p class="mec-timeRefDays label-w"><?php _e('days', 'mec'); ?></p>
92
  </li>
93
  <li class="hours-w block-w">
94
  <span class="mec-hours">00</span>
95
- <p class="mec-timeRefHours label-w"><?php _e('hours', 'mec'); ?></p>
96
  </li>
97
  <li class="minutes-w block-w">
98
  <span class="mec-minutes">00</span>
99
- <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'mec'); ?></p>
100
  </li>
101
  <li class="seconds-w block-w">
102
  <span class="mec-seconds">00</span>
103
- <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'mec'); ?></p>
104
  </li>
105
  </ul>
106
  </div>
@@ -146,7 +146,7 @@ foreach($availability as $ticket_id=>$count)
146
  </div>
147
  </div>
148
  <div class="mec-event-footer">
149
- <a class="mec-booking-button" href="<?php echo $event_link; ?>" target="_self"><?php echo $this->main->m('register_button', __('REGISTER', 'mec')); ?></a>
150
  </div>
151
  </div>
152
  </article>
81
 
82
  <div class="mec-av-spot-head clearfix">
83
  <div class="mec-av-spot-col6">
84
+ <div class="mec-av-spot-box"><?php _e('Available Spot(s):', 'modern-events-calendar-lite'); ?> <span class="mec-av-spot-count mec-color"><?php echo ($spots != '-1' ? $spots : __('Unlimited', 'modern-events-calendar-lite')); ?></span></div>
85
  </div>
86
  <div class="mec-av-spot-col6">
87
  <div class="mec-event-countdown" id="mec_skin_available_spot<?php echo $this->id; ?>">
88
  <ul class="clockdiv" id="countdown">
89
  <li class="days-w block-w">
90
  <span class="mec-days">00</span>
91
+ <p class="mec-timeRefDays label-w"><?php _e('days', 'modern-events-calendar-lite'); ?></p>
92
  </li>
93
  <li class="hours-w block-w">
94
  <span class="mec-hours">00</span>
95
+ <p class="mec-timeRefHours label-w"><?php _e('hours', 'modern-events-calendar-lite'); ?></p>
96
  </li>
97
  <li class="minutes-w block-w">
98
  <span class="mec-minutes">00</span>
99
+ <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'modern-events-calendar-lite'); ?></p>
100
  </li>
101
  <li class="seconds-w block-w">
102
  <span class="mec-seconds">00</span>
103
+ <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'modern-events-calendar-lite'); ?></p>
104
  </li>
105
  </ul>
106
  </div>
146
  </div>
147
  </div>
148
  <div class="mec-event-footer">
149
+ <a class="mec-booking-button" href="<?php echo $event_link; ?>" target="_self"><?php echo $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')); ?></a>
150
  </div>
151
  </div>
152
  </article>
app/skins/carousel/render.php CHANGED
@@ -61,7 +61,7 @@ $settings = $this->main->get_settings();
61
  </li>
62
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
63
  </ul>
64
- <a class="mec-booking-button mec-bg-color-hover mec-border-color-hover" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')) ; ?></a>
65
  </div>
66
  </div>
67
  <?php elseif($this->style == 'type3'): ?>
@@ -86,7 +86,7 @@ $settings = $this->main->get_settings();
86
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?>
87
  </ul>
88
  </ul>
89
- <a class="mec-booking-button mec-bg-color-hover mec-border-color-hover" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')) ; ?></a>
90
  </div>
91
  </div>
92
  <?php endif; ?>
61
  </li>
62
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
63
  </ul>
64
+ <a class="mec-booking-button mec-bg-color-hover mec-border-color-hover" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) ; ?></a>
65
  </div>
66
  </div>
67
  <?php elseif($this->style == 'type3'): ?>
86
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?>
87
  </ul>
88
  </ul>
89
+ <a class="mec-booking-button mec-bg-color-hover mec-border-color-hover" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) ; ?></a>
90
  </div>
91
  </div>
92
  <?php endif; ?>
app/skins/carousel/tpl.php CHANGED
@@ -40,7 +40,7 @@ $this->factory->params('footer', $javascript);
40
  </div>
41
  <?php else: ?>
42
  <div class="mec-skin-carousel-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
43
- <?php _e('No event found!', 'mec'); ?>
44
  </div>
45
  <?php endif; ?>
46
  </div>
40
  </div>
41
  <?php else: ?>
42
  <div class="mec-skin-carousel-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
43
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
44
  </div>
45
  <?php endif; ?>
46
  </div>
app/skins/countdown/tpl.php CHANGED
@@ -61,7 +61,7 @@ $this->factory->params('footer', $javascript);
61
  <?php if($this->style == 'style1'): ?>
62
  <article class="mec-event-countdown-style1 col-md-12">
63
  <div class="mec-event-countdown-part1 col-md-4">
64
- <div class="mec-event-upcoming"><?php echo sprintf(__('%s Upcoming Event', 'mec'), '<span>'.__('Next', 'mec').'</span>'); ?></div>
65
  <h4 class="mec-event-title"><?php echo $event_title; ?></h4>
66
  </div>
67
  <div class="mec-event-countdown-part2 col-md-5">
@@ -74,38 +74,38 @@ $this->factory->params('footer', $javascript);
74
  <div class="days-w block-w">
75
  <li>
76
  <span class="mec-days">00</span>
77
- <p class="mec-timeRefDays label-w"><?php _e('days', 'mec'); ?></p>
78
  </li>
79
  </div>
80
  <div class="hours-w block-w">
81
  <li>
82
  <span class="mec-hours">00</span>
83
- <p class="mec-timeRefHours label-w"><?php _e('hours', 'mec'); ?></p>
84
  </li>
85
  </div>
86
  <div class="minutes-w block-w">
87
  <li>
88
  <span class="mec-minutes">00</span>
89
- <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'mec'); ?></p>
90
  </li>
91
  </div>
92
  <div class="seconds-w block-w">
93
  <li>
94
  <span class="mec-seconds">00</span>
95
- <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'mec'); ?></p>
96
  </li>
97
  </div>
98
  </ul>
99
  </div>
100
  </div>
101
  <div class="mec-event-countdown-part3 col-md-3">
102
- <a class="mec-event-button" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'mec')); ?></a>
103
  </div>
104
  </article>
105
  <?php elseif($this->style == 'style2'): ?>
106
  <article class="mec-event-countdown-style2">
107
  <div class="mec-event-countdown-part1 col-md-4">
108
- <div class="mec-event-upcoming"><?php echo sprintf(__('%s Upcoming Event', 'mec'), '<span>'.__('Next', 'mec').'</span>'); ?></div>
109
  <h4 class="mec-event-title"><?php echo $event_title; ?></h4>
110
  </div>
111
  <div class="mec-event-countdown-part2 col-md-5">
@@ -118,39 +118,39 @@ $this->factory->params('footer', $javascript);
118
  <div class="days-w block-w">
119
  <li>
120
  <span class="mec-days">00</span>
121
- <p class="mec-timeRefDays label-w"><?php _e('days', 'mec'); ?></p>
122
  </li>
123
  </div>
124
  <div class="hours-w block-w">
125
  <li>
126
  <span class="mec-hours">00</span>
127
- <p class="mec-timeRefHours label-w"><?php _e('hours', 'mec'); ?></p>
128
  </li>
129
  </div>
130
  <div class="minutes-w block-w">
131
  <li>
132
  <span class="mec-minutes">00</span>
133
- <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'mec'); ?></p>
134
  </li>
135
  </div>
136
  <div class="seconds-w block-w">
137
  <li>
138
  <span class="mec-seconds">00</span>
139
- <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'mec'); ?></p>
140
  </li>
141
  </div>
142
  </ul>
143
  </div>
144
  </div>
145
  <div class="mec-event-countdown-part3 col-md-3">
146
- <a class="mec-event-button" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'mec')); ?></a>
147
  </div>
148
  </article>
149
  <?php elseif($this->style == 'style3'): ?>
150
  <article class="mec-event-countdown-style3">
151
  <div class="mec-event-countdown-part1">
152
  <div class="mec-event-countdown-part-title">
153
- <div class="mec-event-upcoming"><?php echo sprintf(__('%s Upcoming Event', 'mec'), '<span>'.__('Next', 'mec').'</span>'); ?></div>
154
  </div>
155
  <div class="mec-event-countdown-part-details">
156
  <div class="mec-event-date">
@@ -160,32 +160,32 @@ $this->factory->params('footer', $javascript);
160
  </div>
161
  <div class="mec-event-title-link">
162
  <h4 class="mec-event-title"><?php echo $event_title; ?></h4>
163
- <a class="mec-event-link" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('Event Detail', 'mec')); ?></a>
164
  </div>
165
  <div class="mec-event-countdown" id="mec_skin_countdown<?php echo $this->id; ?>">
166
  <ul class="clockdiv" id="countdown">
167
  <div class="days-w block-w">
168
  <li>
169
  <span class="mec-days">00</span>
170
- <p class="mec-timeRefDays label-w"><?php _e('days', 'mec'); ?></p>
171
  </li>
172
  </div>
173
  <div class="hours-w block-w">
174
  <li>
175
  <span class="mec-hours">00</span>
176
- <p class="mec-timeRefHours label-w"><?php _e('hours', 'mec'); ?></p>
177
  </li>
178
  </div>
179
  <div class="minutes-w block-w">
180
  <li>
181
  <span class="mec-minutes">00</span>
182
- <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'mec'); ?></p>
183
  </li>
184
  </div>
185
  <div class="seconds-w block-w">
186
  <li>
187
  <span class="mec-seconds">00</span>
188
- <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'mec'); ?></p>
189
  </li>
190
  </div>
191
  </ul>
61
  <?php if($this->style == 'style1'): ?>
62
  <article class="mec-event-countdown-style1 col-md-12">
63
  <div class="mec-event-countdown-part1 col-md-4">
64
+ <div class="mec-event-upcoming"><?php echo sprintf(__('%s Upcoming Event', 'modern-events-calendar-lite'), '<span>'.__('Next', 'modern-events-calendar-lite').'</span>'); ?></div>
65
  <h4 class="mec-event-title"><?php echo $event_title; ?></h4>
66
  </div>
67
  <div class="mec-event-countdown-part2 col-md-5">
74
  <div class="days-w block-w">
75
  <li>
76
  <span class="mec-days">00</span>
77
+ <p class="mec-timeRefDays label-w"><?php _e('days', 'modern-events-calendar-lite'); ?></p>
78
  </li>
79
  </div>
80
  <div class="hours-w block-w">
81
  <li>
82
  <span class="mec-hours">00</span>
83
+ <p class="mec-timeRefHours label-w"><?php _e('hours', 'modern-events-calendar-lite'); ?></p>
84
  </li>
85
  </div>
86
  <div class="minutes-w block-w">
87
  <li>
88
  <span class="mec-minutes">00</span>
89
+ <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'modern-events-calendar-lite'); ?></p>
90
  </li>
91
  </div>
92
  <div class="seconds-w block-w">
93
  <li>
94
  <span class="mec-seconds">00</span>
95
+ <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'modern-events-calendar-lite'); ?></p>
96
  </li>
97
  </div>
98
  </ul>
99
  </div>
100
  </div>
101
  <div class="mec-event-countdown-part3 col-md-3">
102
+ <a class="mec-event-button" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'modern-events-calendar-lite')); ?></a>
103
  </div>
104
  </article>
105
  <?php elseif($this->style == 'style2'): ?>
106
  <article class="mec-event-countdown-style2">
107
  <div class="mec-event-countdown-part1 col-md-4">
108
+ <div class="mec-event-upcoming"><?php echo sprintf(__('%s Upcoming Event', 'modern-events-calendar-lite'), '<span>'.__('Next', 'modern-events-calendar-lite').'</span>'); ?></div>
109
  <h4 class="mec-event-title"><?php echo $event_title; ?></h4>
110
  </div>
111
  <div class="mec-event-countdown-part2 col-md-5">
118
  <div class="days-w block-w">
119
  <li>
120
  <span class="mec-days">00</span>
121
+ <p class="mec-timeRefDays label-w"><?php _e('days', 'modern-events-calendar-lite'); ?></p>
122
  </li>
123
  </div>
124
  <div class="hours-w block-w">
125
  <li>
126
  <span class="mec-hours">00</span>
127
+ <p class="mec-timeRefHours label-w"><?php _e('hours', 'modern-events-calendar-lite'); ?></p>
128
  </li>
129
  </div>
130
  <div class="minutes-w block-w">
131
  <li>
132
  <span class="mec-minutes">00</span>
133
+ <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'modern-events-calendar-lite'); ?></p>
134
  </li>
135
  </div>
136
  <div class="seconds-w block-w">
137
  <li>
138
  <span class="mec-seconds">00</span>
139
+ <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'modern-events-calendar-lite'); ?></p>
140
  </li>
141
  </div>
142
  </ul>
143
  </div>
144
  </div>
145
  <div class="mec-event-countdown-part3 col-md-3">
146
+ <a class="mec-event-button" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'modern-events-calendar-lite')); ?></a>
147
  </div>
148
  </article>
149
  <?php elseif($this->style == 'style3'): ?>
150
  <article class="mec-event-countdown-style3">
151
  <div class="mec-event-countdown-part1">
152
  <div class="mec-event-countdown-part-title">
153
+ <div class="mec-event-upcoming"><?php echo sprintf(__('%s Upcoming Event', 'modern-events-calendar-lite'), '<span>'.__('Next', 'modern-events-calendar-lite').'</span>'); ?></div>
154
  </div>
155
  <div class="mec-event-countdown-part-details">
156
  <div class="mec-event-date">
160
  </div>
161
  <div class="mec-event-title-link">
162
  <h4 class="mec-event-title"><?php echo $event_title; ?></h4>
163
+ <a class="mec-event-link" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('Event Detail', 'modern-events-calendar-lite')); ?></a>
164
  </div>
165
  <div class="mec-event-countdown" id="mec_skin_countdown<?php echo $this->id; ?>">
166
  <ul class="clockdiv" id="countdown">
167
  <div class="days-w block-w">
168
  <li>
169
  <span class="mec-days">00</span>
170
+ <p class="mec-timeRefDays label-w"><?php _e('days', 'modern-events-calendar-lite'); ?></p>
171
  </li>
172
  </div>
173
  <div class="hours-w block-w">
174
  <li>
175
  <span class="mec-hours">00</span>
176
+ <p class="mec-timeRefHours label-w"><?php _e('hours', 'modern-events-calendar-lite'); ?></p>
177
  </li>
178
  </div>
179
  <div class="minutes-w block-w">
180
  <li>
181
  <span class="mec-minutes">00</span>
182
+ <p class="mec-timeRefMinutes label-w"><?php _e('minutes', 'modern-events-calendar-lite'); ?></p>
183
  </li>
184
  </div>
185
  <div class="seconds-w block-w">
186
  <li>
187
  <span class="mec-seconds">00</span>
188
+ <p class="mec-timeRefSeconds label-w"><?php _e('seconds', 'modern-events-calendar-lite'); ?></p>
189
  </li>
190
  </div>
191
  </ul>
app/skins/cover/tpl.php CHANGED
@@ -24,7 +24,7 @@ $event_thumb_url = $event->data->featured_image['large'];
24
  <a href="<?php echo $event_link; ?>" class="mec-event-cover-a">
25
  <div class="mec-event-overlay mec-bg-color"></div>
26
  <div class="mec-event-detail">
27
- <div class="mec-event-tag mec-color"><?php _e('featured event', 'mec'); ?></div>
28
  <div class="mec-event-date"><?php echo date_i18n($this->date_format_modern1, strtotime($event_date)).((isset($event->data->time) and trim($event->data->time['start'])) ? ' - '.$event->data->time['start'] : ''); ?></div>
29
  <h4 class="mec-event-title"><?php echo $event_title . $event_color; ?></h4>
30
  <div class="mec-event-place"><?php echo (isset($event_location['name']) ? $event_location['name'] : ''); ?></div>
@@ -42,7 +42,7 @@ $event_thumb_url = $event->data->featured_image['large'];
42
  <span class="mec-color"><?php echo date_i18n($this->date_format_classic1, strtotime($event_date)); ?></span> <?php echo date_i18n($this->date_format_classic2, strtotime($event_date)); ?>
43
  </div>
44
  <h4 class="mec-event-title"><?php echo $event_title . $event_color; ?></h4>
45
- <div class="mec-btn-wrapper"><a class="mec-event-button" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'mec')); ?></a></div>
46
  </div>
47
  <?php elseif($this->style == 'clean'): ?>
48
  <div class="mec-event-content">
24
  <a href="<?php echo $event_link; ?>" class="mec-event-cover-a">
25
  <div class="mec-event-overlay mec-bg-color"></div>
26
  <div class="mec-event-detail">
27
+ <div class="mec-event-tag mec-color"><?php _e('featured event', 'modern-events-calendar-lite'); ?></div>
28
  <div class="mec-event-date"><?php echo date_i18n($this->date_format_modern1, strtotime($event_date)).((isset($event->data->time) and trim($event->data->time['start'])) ? ' - '.$event->data->time['start'] : ''); ?></div>
29
  <h4 class="mec-event-title"><?php echo $event_title . $event_color; ?></h4>
30
  <div class="mec-event-place"><?php echo (isset($event_location['name']) ? $event_location['name'] : ''); ?></div>
42
  <span class="mec-color"><?php echo date_i18n($this->date_format_classic1, strtotime($event_date)); ?></span> <?php echo date_i18n($this->date_format_classic2, strtotime($event_date)); ?>
43
  </div>
44
  <h4 class="mec-event-title"><?php echo $event_title . $event_color; ?></h4>
45
+ <div class="mec-btn-wrapper"><a class="mec-event-button" href="<?php echo $event_link; ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'modern-events-calendar-lite')); ?></a></div>
46
  </div>
47
  <?php elseif($this->style == 'clean'): ?>
48
  <div class="mec-event-content">
app/skins/daily_view/render.php CHANGED
@@ -20,7 +20,7 @@ defined('MECEXEC') or die();
20
  </article>
21
  <?php endforeach; ?>
22
  <?php else: ?>
23
- <article class="mec-event-article"><div class="mec-daily-view-no-event mec-no-event"><?php _e('No event', 'mec'); ?></div></article>
24
  <?php endif; ?>
25
  </li>
26
  <?php endforeach; ?>
20
  </article>
21
  <?php endforeach; ?>
22
  <?php else: ?>
23
+ <article class="mec-event-article"><div class="mec-daily-view-no-event mec-no-event"><?php _e('No event', 'modern-events-calendar-lite'); ?></div></article>
24
  <?php endif; ?>
25
  </li>
26
  <?php endforeach; ?>
app/skins/daily_view/tpl.php CHANGED
@@ -76,8 +76,8 @@ jQuery(document).ready(function()
76
  year: "'.date('Y', $current_month_time).'",
77
  month: "'.date('m', $current_month_time).'",
78
  day: "'.date('d', $current_month_time).'",
79
- events_label: "'.esc_attr__('Events', 'mec').'",
80
- event_label: "'.esc_attr__('Event', 'mec').'",
81
  month_navigator: '.($this->next_previous_button ? 1 : 0).',
82
  atts: "'.http_build_query(array('atts'=>$this->atts), '', '&').'",
83
  ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
76
  year: "'.date('Y', $current_month_time).'",
77
  month: "'.date('m', $current_month_time).'",
78
  day: "'.date('d', $current_month_time).'",
79
+ events_label: "'.esc_attr__('Events', 'modern-events-calendar-lite').'",
80
+ event_label: "'.esc_attr__('Event', 'modern-events-calendar-lite').'",
81
  month_navigator: '.($this->next_previous_button ? 1 : 0).',
82
  atts: "'.http_build_query(array('atts'=>$this->atts), '', '&').'",
83
  ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
app/skins/full_calendar/tpl.php CHANGED
@@ -42,11 +42,11 @@ $this->factory->params('footer', $javascript);
42
  <?php endif; ?>
43
  <div class="col-md-4">
44
  <div class="mec-totalcal-view">
45
- <?php if($this->yearly): ?><span class="mec-totalcal-yearlyview<?php if($this->default_view == 'yearly') echo ' mec-totalcalview-selected'; ?>" data-skin="yearly"><?php _e('Yearly', 'mec'); ?></span><?php endif; ?>
46
- <?php if($this->monthly): ?><span class="mec-totalcal-monthlyview<?php if($this->default_view == 'monthly') echo ' mec-totalcalview-selected'; ?>" data-skin="monthly"><?php _e('Monthly', 'mec'); ?></span><?php endif; ?>
47
- <?php if($this->weekly): ?><span class="mec-totalcal-weeklyview<?php if($this->default_view == 'weekly') echo ' mec-totalcalview-selected'; ?>" data-skin="weekly"><?php _e('Weekly', 'mec'); ?></span><?php endif; ?>
48
- <?php if($this->daily): ?><span class="mec-totalcal-dailyview<?php if($this->default_view == 'daily') echo ' mec-totalcalview-selected'; ?>" data-skin="daily"><?php _e('Daily', 'mec'); ?></span><?php endif; ?>
49
- <?php if($this->list): ?><span class="mec-totalcal-listview<?php if($this->default_view == 'list') echo ' mec-totalcalview-selected'; ?>" data-skin="list"><?php _e('List', 'mec'); ?></span><?php endif; ?>
50
  </div>
51
  </div>
52
  </div>
42
  <?php endif; ?>
43
  <div class="col-md-4">
44
  <div class="mec-totalcal-view">
45
+ <?php if($this->yearly): ?><span class="mec-totalcal-yearlyview<?php if($this->default_view == 'yearly') echo ' mec-totalcalview-selected'; ?>" data-skin="yearly"><?php _e('Yearly', 'modern-events-calendar-lite'); ?></span><?php endif; ?>
46
+ <?php if($this->monthly): ?><span class="mec-totalcal-monthlyview<?php if($this->default_view == 'monthly') echo ' mec-totalcalview-selected'; ?>" data-skin="monthly"><?php _e('Monthly', 'modern-events-calendar-lite'); ?></span><?php endif; ?>
47
+ <?php if($this->weekly): ?><span class="mec-totalcal-weeklyview<?php if($this->default_view == 'weekly') echo ' mec-totalcalview-selected'; ?>" data-skin="weekly"><?php _e('Weekly', 'modern-events-calendar-lite'); ?></span><?php endif; ?>
48
+ <?php if($this->daily): ?><span class="mec-totalcal-dailyview<?php if($this->default_view == 'daily') echo ' mec-totalcalview-selected'; ?>" data-skin="daily"><?php _e('Daily', 'modern-events-calendar-lite'); ?></span><?php endif; ?>
49
+ <?php if($this->list): ?><span class="mec-totalcal-listview<?php if($this->default_view == 'list') echo ' mec-totalcalview-selected'; ?>" data-skin="list"><?php _e('List', 'modern-events-calendar-lite'); ?></span><?php endif; ?>
50
  </div>
51
  </div>
52
  </div>
app/skins/grid/render.php CHANGED
@@ -57,7 +57,7 @@ if($this->style == 'colorful')
57
  <p><?php echo (isset($location['address']) ? $location['address'] : ''); ?></p>
58
  </div>
59
  <div class="mec-event-footer">
60
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')) ; ?></a>
61
  <ul class="mec-event-sharing-wrap">
62
  <li class="mec-event-share">
63
  <a href="#" class="mec-event-share-icon">
@@ -87,7 +87,7 @@ if($this->style == 'colorful')
87
  </li>
88
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
89
  </ul>
90
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')) ; ?></a>
91
  </div>
92
  <?php elseif($this->style == 'minimal'): ?>
93
  <div class="mec-event-date mec-bg-color-hover mec-border-color-hover mec-color"><span><?php echo date_i18n($this->date_format_minimal_1, strtotime($event->date['start']['date'])); ?></span><?php echo date_i18n($this->date_format_minimal_2, strtotime($event->date['start']['date'])); ?></div>
@@ -119,7 +119,7 @@ if($this->style == 'colorful')
119
  </li>
120
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
121
  </ul>
122
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')) ; ?></a>
123
  </div>
124
  <?php elseif($this->style == 'novel'): ?>
125
  <div class="novel-grad-bg"></div>
@@ -147,7 +147,7 @@ if($this->style == 'colorful')
147
  }
148
  ?>
149
  <div class="mec-event-footer mec-color">
150
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('view_detail', __('View Detail', 'mec')) : $this->main->m('register_button', __('REGISTER', 'mec')) ; ?></a>
151
  <ul class="mec-event-sharing-wrap">
152
  <li class="mec-event-share">
153
  <a href="#" class="mec-event-share-icon">
57
  <p><?php echo (isset($location['address']) ? $location['address'] : ''); ?></p>
58
  </div>
59
  <div class="mec-event-footer">
60
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) ; ?></a>
61
  <ul class="mec-event-sharing-wrap">
62
  <li class="mec-event-share">
63
  <a href="#" class="mec-event-share-icon">
87
  </li>
88
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
89
  </ul>
90
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) ; ?></a>
91
  </div>
92
  <?php elseif($this->style == 'minimal'): ?>
93
  <div class="mec-event-date mec-bg-color-hover mec-border-color-hover mec-color"><span><?php echo date_i18n($this->date_format_minimal_1, strtotime($event->date['start']['date'])); ?></span><?php echo date_i18n($this->date_format_minimal_2, strtotime($event->date['start']['date'])); ?></div>
119
  </li>
120
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
121
  </ul>
122
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) ; ?></a>
123
  </div>
124
  <?php elseif($this->style == 'novel'): ?>
125
  <div class="novel-grad-bg"></div>
147
  }
148
  ?>
149
  <div class="mec-event-footer mec-color">
150
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) : $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) ; ?></a>
151
  <ul class="mec-event-sharing-wrap">
152
  <li class="mec-event-share">
153
  <a href="#" class="mec-event-share-icon">
app/skins/grid/tpl.php CHANGED
@@ -49,16 +49,16 @@ $this->factory->params('footer', $javascript);
49
  <?php echo $items_html; ?>
50
  </div>
51
  <div class="mec-skin-grid-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
52
- <?php _e('No event found!', 'mec'); ?>
53
  </div>
54
  <?php else: ?>
55
  <div class="mec-skin-grid-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
56
- <?php _e('No event found!', 'mec'); ?>
57
  </div>
58
  <?php endif; ?>
59
 
60
  <?php if($this->load_more_button and $this->found >= $this->limit): ?>
61
- <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'mec'); ?></div></div>
62
  <?php endif; ?>
63
 
64
  </div>
49
  <?php echo $items_html; ?>
50
  </div>
51
  <div class="mec-skin-grid-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
52
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
53
  </div>
54
  <?php else: ?>
55
  <div class="mec-skin-grid-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
56
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
57
  </div>
58
  <?php endif; ?>
59
 
60
  <?php if($this->load_more_button and $this->found >= $this->limit): ?>
61
+ <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'modern-events-calendar-lite'); ?></div></div>
62
  <?php endif; ?>
63
 
64
  </div>
app/skins/list/render.php CHANGED
@@ -40,7 +40,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) || isset($styling['color'])
40
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
41
  </div>
42
  <div class="col-md-4 col-sm-4 mec-btn-wrapper">
43
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
44
  </div>
45
  <?php elseif($this->style == 'classic'): ?>
46
  <div class="mec-event-image"><a href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo $event->data->thumbnails['thumbnail']; ?></a></div>
@@ -57,7 +57,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) || isset($styling['color'])
57
  <h4 class="mec-event-title"><a class="mec-color-hover" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo $event->data->title; ?></a><?php echo $event_color; ?></h4>
58
  <div class="mec-event-detail"><?php echo date_i18n($this->date_format_minimal_3, strtotime($event->date['start']['date'])); ?>, <?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
59
  </div>
60
- <div class="col-md-3 col-sm-3 btn-wrapper"><a class="mec-detail-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'mec')); ?></a></div>
61
  <?php elseif($this->style == 'standard'): ?>
62
  <?php
63
  $excerpt = trim($event->data->post->post_excerpt) ? $event->data->post->post_excerpt : '';
@@ -121,7 +121,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) || isset($styling['color'])
121
  </li>
122
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
123
  </ul>
124
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
125
  </div>
126
  <?php elseif($this->style == 'accordion'): ?>
127
  <!-- toggles wrap start -->
40
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
41
  </div>
42
  <div class="col-md-4 col-sm-4 mec-btn-wrapper">
43
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
44
  </div>
45
  <?php elseif($this->style == 'classic'): ?>
46
  <div class="mec-event-image"><a href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo $event->data->thumbnails['thumbnail']; ?></a></div>
57
  <h4 class="mec-event-title"><a class="mec-color-hover" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo $event->data->title; ?></a><?php echo $event_color; ?></h4>
58
  <div class="mec-event-detail"><?php echo date_i18n($this->date_format_minimal_3, strtotime($event->date['start']['date'])); ?>, <?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
59
  </div>
60
+ <div class="col-md-3 col-sm-3 btn-wrapper"><a class="mec-detail-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo $this->main->m('event_detail', __('EVENT DETAIL', 'modern-events-calendar-lite')); ?></a></div>
61
  <?php elseif($this->style == 'standard'): ?>
62
  <?php
63
  $excerpt = trim($event->data->post->post_excerpt) ? $event->data->post->post_excerpt : '';
121
  </li>
122
  <ul class="mec-event-sharing"><?php echo $this->main->module('links.list', array('event'=>$event)); ?></ul>
123
  </ul>
124
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
125
  </div>
126
  <?php elseif($this->style == 'accordion'): ?>
127
  <!-- toggles wrap start -->
app/skins/list/tpl.php CHANGED
@@ -53,16 +53,16 @@ $this->factory->params('footer', $javascript);
53
  <?php echo $items_html; ?>
54
  </div>
55
  <div class="mec-skin-list-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
56
- <?php _e('No event found!', 'mec'); ?>
57
  </div>
58
  <?php else: ?>
59
  <div class="mec-skin-list-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
60
- <?php _e('No event found!', 'mec'); ?>
61
  </div>
62
  <?php endif; ?>
63
 
64
  <?php if($this->load_more_button and $this->found >= $this->limit): ?>
65
- <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'mec'); ?></div></div>
66
  <?php endif; ?>
67
 
68
  </div>
53
  <?php echo $items_html; ?>
54
  </div>
55
  <div class="mec-skin-list-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
56
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
57
  </div>
58
  <?php else: ?>
59
  <div class="mec-skin-list-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
60
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
61
  </div>
62
  <?php endif; ?>
63
 
64
  <?php if($this->load_more_button and $this->found >= $this->limit): ?>
65
+ <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'modern-events-calendar-lite'); ?></div></div>
66
  <?php endif; ?>
67
 
68
  </div>
app/skins/map/tpl.php CHANGED
@@ -51,7 +51,7 @@ if(count($this->events))
51
  <div class="mec-googlemap-skin" id="mec_googlemap_canvas<?php echo $this->id; ?>" style="height: 500px;">
52
  </div>
53
  <?php else: ?>
54
- <p class="mec-error"><?php _e('No events found!', 'mec'); ?></p>
55
  <?php endif; ?>
56
 
57
  </div>
51
  <div class="mec-googlemap-skin" id="mec_googlemap_canvas<?php echo $this->id; ?>" style="height: 500px;">
52
  </div>
53
  <?php else: ?>
54
+ <p class="mec-error"><?php _e('No events found!', 'modern-events-calendar-lite'); ?></p>
55
  <?php endif; ?>
56
 
57
  </div>
app/skins/masonry.php CHANGED
@@ -188,7 +188,7 @@ class MEC_skin_masonry extends MEC_skins
188
 
189
  public function filter_by()
190
  {
191
- $output = '<div class="mec-events-masonry-cats"><a href="#" class="mec-masonry-cat-selected" data-filter="*">'.__('All', 'mec').'</a>';
192
 
193
  $taxonomy = $this->filter_by_get_taxonomy();
194
  $terms = get_terms($taxonomy, array
188
 
189
  public function filter_by()
190
  {
191
+ $output = '<div class="mec-events-masonry-cats"><a href="#" class="mec-masonry-cat-selected" data-filter="*">'.__('All', 'modern-events-calendar-lite').'</a>';
192
 
193
  $taxonomy = $this->filter_by_get_taxonomy();
194
  $terms = get_terms($taxonomy, array
app/skins/masonry/render.php CHANGED
@@ -74,7 +74,7 @@ $settings = $this->main->get_settings();
74
  </div>
75
  </div>
76
  <div class="mec-event-footer">
77
- <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')) ; ?></a>
78
  </div>
79
  </div>
80
  </article>
74
  </div>
75
  </div>
76
  <div class="mec-event-footer">
77
+ <a class="mec-booking-button" data-event-id="<?php echo $event->data->ID; ?>" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>" target="_self"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')) ; ?></a>
78
  </div>
79
  </div>
80
  </article>
app/skins/masonry/tpl.php CHANGED
@@ -45,11 +45,11 @@ $this->factory->params('footer', $javascript);
45
  <?php echo $items_html; ?>
46
  </div>
47
  <div class="mec-skin-masonry-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
48
- <?php _e('No event found!', 'mec'); ?>
49
  </div>
50
  <?php else: ?>
51
  <div class="mec-skin-masonry-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
52
- <?php _e('No event found!', 'mec'); ?>
53
  </div>
54
  <?php endif; ?>
55
 
45
  <?php echo $items_html; ?>
46
  </div>
47
  <div class="mec-skin-masonry-no-events-container mec-util-hidden" id="mec_skin_no_events_<?php echo $this->id; ?>">
48
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
49
  </div>
50
  <?php else: ?>
51
  <div class="mec-skin-masonry-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
52
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
53
  </div>
54
  <?php endif; ?>
55
 
app/skins/monthly_view/calendar.php CHANGED
@@ -64,7 +64,7 @@ elseif($week_start == 5) // Friday
64
  {
65
 
66
  echo '<dt class="mec-calendar-day'.$selected_day.' mec-has-event" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'"><a href="#" class="mec-has-event-a">'.$list_day.'</a></dt>';
67
- $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'mec'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '.$date_suffix .'</h3>';
68
 
69
  foreach($events[$today] as $event)
70
  {
@@ -87,9 +87,9 @@ elseif($week_start == 5) // Friday
87
  {
88
  echo '<dt class="mec-calendar-day'.$selected_day.'" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'">'.$list_day.'</dt>';
89
 
90
- $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'mec'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '.$date_suffix.'</h3>';
91
  $events_str .= '<article class="mec-event-article">';
92
- $events_str .= '<div class="mec-event-detail">'.__('No Events', 'mec').'</div>';
93
  $events_str .= '</article>';
94
  $events_str .= '</div>';
95
  }
64
  {
65
 
66
  echo '<dt class="mec-calendar-day'.$selected_day.' mec-has-event" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'"><a href="#" class="mec-has-event-a">'.$list_day.'</a></dt>';
67
+ $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'modern-events-calendar-lite'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '.$date_suffix .'</h3>';
68
 
69
  foreach($events[$today] as $event)
70
  {
87
  {
88
  echo '<dt class="mec-calendar-day'.$selected_day.'" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'">'.$list_day.'</dt>';
89
 
90
+ $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'modern-events-calendar-lite'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '.$date_suffix.'</h3>';
91
  $events_str .= '<article class="mec-event-article">';
92
+ $events_str .= '<div class="mec-event-detail">'.__('No Events', 'modern-events-calendar-lite').'</div>';
93
  $events_str .= '</article>';
94
  $events_str .= '</div>';
95
  }
app/skins/monthly_view/calendar_clean.php CHANGED
@@ -64,7 +64,7 @@ elseif($week_start == 5) // Friday
64
  if(isset($events[$today]) and count($events[$today]))
65
  {
66
  echo '<dt class="mec-calendar-day mec-has-event'.$selected_day.'" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'"><a href="#" class="mec-has-event-a">'.$list_day.'</a></dt>';
67
- $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'mec'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '. $date_suffix .'</h3>';
68
 
69
  foreach($events[$today] as $event)
70
  {
@@ -87,9 +87,9 @@ elseif($week_start == 5) // Friday
87
  {
88
  echo '<dt class="mec-calendar-day'.$selected_day.'" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'">'.$list_day.'</dt>';
89
 
90
- $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'mec'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '. $date_suffix .'</h3>';
91
  $events_str .= '<article class="mec-event-article">';
92
- $events_str .= '<div class="mec-event-detail">'.__('No Events', 'mec').'</div>';
93
  $events_str .= '</article>';
94
  $events_str .= '</div>';
95
  }
64
  if(isset($events[$today]) and count($events[$today]))
65
  {
66
  echo '<dt class="mec-calendar-day mec-has-event'.$selected_day.'" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'"><a href="#" class="mec-has-event-a">'.$list_day.'</a></dt>';
67
+ $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'modern-events-calendar-lite'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '. $date_suffix .'</h3>';
68
 
69
  foreach($events[$today] as $event)
70
  {
87
  {
88
  echo '<dt class="mec-calendar-day'.$selected_day.'" data-mec-cell="'.$day_id.'" data-day="'.$list_day.'" data-month="'.date('Ym', $time).'">'.$list_day.'</dt>';
89
 
90
+ $events_str .= '<div class="mec-calendar-events-sec" data-mec-cell="'.$day_id.'" '.(trim($selected_day) != '' ? ' style="display: block;"' : '').'><h6 class="mec-table-side-title">'.sprintf(__('Events for %s', 'modern-events-calendar-lite'), date_i18n('F', $time)).'</h6><h3 class="mec-color mec-table-side-day"> '. $date_suffix .'</h3>';
91
  $events_str .= '<article class="mec-event-article">';
92
+ $events_str .= '<div class="mec-event-detail">'.__('No Events', 'modern-events-calendar-lite').'</div>';
93
  $events_str .= '</article>';
94
  $events_str .= '</div>';
95
  }
app/skins/monthly_view/tpl.php CHANGED
@@ -67,8 +67,8 @@ jQuery(document).ready(function()
67
  month_id: "'.date('Ym', $current_month_time).'",
68
  active_month: {year: "'.date('Y', strtotime($this->start_date)).'", month: "'.date('m', strtotime($this->start_date)).'"},
69
  next_month: {year: "'.date('Y', $_1month_after).'", month: "'.date('m', $_1month_after).'"},
70
- events_label: "'.esc_attr__('Events', 'mec').'",
71
- event_label: "'.esc_attr__('Event', 'mec').'",
72
  month_navigator: '.($this->next_previous_button ? 1 : 0).',
73
  atts: "'.http_build_query(array('atts'=>$this->atts), '', '&').'",
74
  ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
67
  month_id: "'.date('Ym', $current_month_time).'",
68
  active_month: {year: "'.date('Y', strtotime($this->start_date)).'", month: "'.date('m', strtotime($this->start_date)).'"},
69
  next_month: {year: "'.date('Y', $_1month_after).'", month: "'.date('m', $_1month_after).'"},
70
+ events_label: "'.esc_attr__('Events', 'modern-events-calendar-lite').'",
71
+ event_label: "'.esc_attr__('Event', 'modern-events-calendar-lite').'",
72
  month_navigator: '.($this->next_previous_button ? 1 : 0).',
73
  atts: "'.http_build_query(array('atts'=>$this->atts), '', '&').'",
74
  ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
app/skins/single.php CHANGED
@@ -191,7 +191,7 @@ class MEC_skin_single extends MEC_skins
191
  if(!count($organizers)) return;
192
  ?>
193
  <div class="mec-single-event-additional-organizers">
194
- <h3 class="mec-events-single-section-title"><?php echo $this->main->m('other_organizers', __('Other Organizers', 'mec')); ?></h3>
195
  <?php foreach($organizers as $organizer): if($organizer['id'] == $event->data->meta['mec_organizer_id']) continue; ?>
196
  <div class="mec-single-event-additional-organizer">
197
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
@@ -206,21 +206,21 @@ class MEC_skin_single extends MEC_skins
206
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
207
  <dd class="mec-organizer-tel">
208
  <i class="mec-sl-phone"></i>
209
- <h6><?php _e('Phone', 'mec'); ?></h6>
210
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
211
  </dd>
212
  <?php endif;
213
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
214
  <dd class="mec-organizer-email">
215
  <i class="mec-sl-envelope"></i>
216
- <h6><?php _e('Email', 'mec'); ?></h6>
217
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
218
  </dd>
219
  <?php endif;
220
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
221
  <dd class="mec-organizer-url">
222
  <i class="mec-sl-sitemap"></i>
223
- <h6><?php _e('Website', 'mec'); ?></h6>
224
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
225
  </dd>
226
  <?php endif; ?>
191
  if(!count($organizers)) return;
192
  ?>
193
  <div class="mec-single-event-additional-organizers">
194
+ <h3 class="mec-events-single-section-title"><?php echo $this->main->m('other_organizers', __('Other Organizers', 'modern-events-calendar-lite')); ?></h3>
195
  <?php foreach($organizers as $organizer): if($organizer['id'] == $event->data->meta['mec_organizer_id']) continue; ?>
196
  <div class="mec-single-event-additional-organizer">
197
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
206
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
207
  <dd class="mec-organizer-tel">
208
  <i class="mec-sl-phone"></i>
209
+ <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
210
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
211
  </dd>
212
  <?php endif;
213
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
214
  <dd class="mec-organizer-email">
215
  <i class="mec-sl-envelope"></i>
216
+ <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
217
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
218
  </dd>
219
  <?php endif;
220
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
221
  <dd class="mec-organizer-url">
222
  <i class="mec-sl-sitemap"></i>
223
+ <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
224
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
225
  </dd>
226
  <?php endif; ?>
app/skins/single/default.php CHANGED
@@ -24,7 +24,7 @@ defined('MECEXEC') or die();
24
  <!-- Hourly Schedule -->
25
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
26
  <div class="mec-event-schedule mec-frontbox">
27
- <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','mec'); ?></h3>
28
  <div class="mec-event-schedule-content">
29
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
30
  <dl>
@@ -48,7 +48,7 @@ defined('MECEXEC') or die();
48
 
49
  <!-- Tags -->
50
  <div class="mec-events-meta-group mec-events-meta-group-tags">
51
- <?php the_tags(__('Tags: ', 'mec'), ', ', '<br />'); ?>
52
  </div>
53
 
54
  </div>
@@ -63,7 +63,7 @@ defined('MECEXEC') or die();
63
  ?>
64
  <div class="mec-single-event-date">
65
  <i class="mec-sl-calendar"></i>
66
- <h3 class="mec-date"><?php _e('Date', 'mec'); ?></h3>
67
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
68
  </div>
69
 
@@ -75,13 +75,13 @@ defined('MECEXEC') or die();
75
  ?>
76
  <div class="mec-single-event-time">
77
  <i class="mec-sl-clock " style=""></i>
78
- <h3 class="mec-time"><?php _e('Time', 'mec'); ?></h3>
79
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
80
 
81
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
82
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
83
  <?php else: ?>
84
- <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'mec'); ?></abbr></dd>
85
  <?php endif; ?>
86
  </div>
87
  <?php
@@ -99,7 +99,7 @@ defined('MECEXEC') or die();
99
  ?>
100
  <div class="mec-event-cost">
101
  <i class="mec-sl-wallet"></i>
102
- <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'mec')); ?></h3>
103
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
104
  </div>
105
  <?php
@@ -113,8 +113,8 @@ defined('MECEXEC') or die();
113
  ?>
114
  <div class="mec-event-more-info">
115
  <i class="mec-sl-info"></i>
116
- <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></h3>
117
- <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'mec')); ?></a></dd>
118
  </div>
119
  <?php
120
  }
@@ -128,7 +128,7 @@ defined('MECEXEC') or die();
128
  $mec_i = 0; ?>
129
  <div class="mec-single-event-label">
130
  <i class="mec-fa-bookmark-o"></i>
131
- <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'mec')); ?></h3>
132
  <?php foreach($event->data->labels as $labels=>$label) :
133
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
134
  echo '<dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
@@ -149,7 +149,7 @@ defined('MECEXEC') or die();
149
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
150
  <?php endif; ?>
151
  <i class="mec-sl-location-pin"></i>
152
- <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></h3>
153
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
154
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
155
  </div>
@@ -164,7 +164,7 @@ defined('MECEXEC') or die();
164
  ?>
165
  <div class="mec-single-event-category">
166
  <i class="mec-sl-folder"></i>
167
- <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'mec')); ?></dt>
168
  <?php
169
  $cats = array();
170
  foreach($event->data->categories as $category)
@@ -190,7 +190,7 @@ defined('MECEXEC') or die();
190
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
191
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
192
  <?php endif; ?>
193
- <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></h3>
194
  <?php if(isset($organizer['thumbnail'])): ?>
195
  <dd class="mec-organizer">
196
  <i class="mec-sl-home"></i>
@@ -200,21 +200,21 @@ defined('MECEXEC') or die();
200
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
201
  <dd class="mec-organizer-tel">
202
  <i class="mec-sl-phone"></i>
203
- <h6><?php _e('Phone', 'mec'); ?></h6>
204
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
205
  </dd>
206
  <?php endif;
207
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
208
  <dd class="mec-organizer-email">
209
  <i class="mec-sl-envelope"></i>
210
- <h6><?php _e('Email', 'mec'); ?></h6>
211
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
212
  </dd>
213
  <?php endif;
214
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
215
  <dd class="mec-organizer-url">
216
  <i class="mec-sl-sitemap"></i>
217
- <h6><?php _e('Website', 'mec'); ?></h6>
218
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
219
  </dd>
220
  <?php endif; ?>
@@ -226,7 +226,7 @@ defined('MECEXEC') or die();
226
 
227
  <!-- Register Booking Button -->
228
  <?php if($this->main->can_show_booking_module($event)): ?>
229
- <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'mec'))); ?></a>
230
  <?php endif ?>
231
 
232
  </div>
@@ -265,7 +265,7 @@ defined('MECEXEC') or die();
265
  ?>
266
  <div class="mec-single-event-date">
267
  <i class="mec-sl-calendar"></i>
268
- <h3 class="mec-date"><?php _e('Date', 'mec'); ?></h3>
269
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
270
  </div>
271
 
@@ -277,13 +277,13 @@ defined('MECEXEC') or die();
277
  ?>
278
  <div class="mec-single-event-time">
279
  <i class="mec-sl-clock " style=""></i>
280
- <h3 class="mec-time"><?php _e('Time', 'mec'); ?></h3>
281
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
282
 
283
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
284
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
285
  <?php else: ?>
286
- <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'mec'); ?></abbr></dd>
287
  <?php endif; ?>
288
  </div>
289
  <?php
@@ -301,7 +301,7 @@ defined('MECEXEC') or die();
301
  ?>
302
  <div class="mec-event-cost">
303
  <i class="mec-sl-wallet"></i>
304
- <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'mec')); ?></h3>
305
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
306
  </div>
307
  <?php
@@ -315,8 +315,8 @@ defined('MECEXEC') or die();
315
  ?>
316
  <div class="mec-event-more-info">
317
  <i class="mec-sl-info"></i>
318
- <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></h3>
319
- <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'mec')); ?></a></dd>
320
  </div>
321
  <?php
322
  }
@@ -330,7 +330,7 @@ defined('MECEXEC') or die();
330
  $mec_i = 0; ?>
331
  <div class="mec-single-event-label">
332
  <i class="mec-fa-bookmark-o"></i>
333
- <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'mec')); ?></h3>
334
  <?php foreach($event->data->labels as $labels=>$label) :
335
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
336
  echo '<dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
@@ -351,7 +351,7 @@ defined('MECEXEC') or die();
351
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
352
  <?php endif; ?>
353
  <i class="mec-sl-location-pin"></i>
354
- <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></h3>
355
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
356
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
357
  </div>
@@ -366,7 +366,7 @@ defined('MECEXEC') or die();
366
  ?>
367
  <div class="mec-single-event-category">
368
  <i class="mec-sl-folder"></i>
369
- <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'mec')); ?></dt>
370
  <?php
371
  $cats = array();
372
  foreach($event->data->categories as $category)
@@ -392,7 +392,7 @@ defined('MECEXEC') or die();
392
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
393
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
394
  <?php endif; ?>
395
- <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></h3>
396
  <?php if(isset($organizer['thumbnail'])): ?>
397
  <dd class="mec-organizer">
398
  <i class="mec-sl-home"></i>
@@ -402,21 +402,21 @@ defined('MECEXEC') or die();
402
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
403
  <dd class="mec-organizer-tel">
404
  <i class="mec-sl-phone"></i>
405
- <h6><?php _e('Phone', 'mec'); ?></h6>
406
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
407
  </dd>
408
  <?php endif;
409
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
410
  <dd class="mec-organizer-email">
411
  <i class="mec-sl-envelope"></i>
412
- <h6><?php _e('Email', 'mec'); ?></h6>
413
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
414
  </dd>
415
  <?php endif;
416
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
417
  <dd class="mec-organizer-url">
418
  <i class="mec-sl-sitemap"></i>
419
- <h6><?php _e('Website', 'mec'); ?></h6>
420
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
421
  </dd>
422
  <?php endif; ?>
@@ -428,7 +428,7 @@ defined('MECEXEC') or die();
428
 
429
  <!-- Register Booking Button -->
430
  <?php if($this->main->can_show_booking_module($event) and $single->found_value('register_btn', $settings) == 'on'): ?>
431
- <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'mec'))); ?></a>
432
  <?php endif ?>
433
  </div>
434
 
24
  <!-- Hourly Schedule -->
25
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
26
  <div class="mec-event-schedule mec-frontbox">
27
+ <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','modern-events-calendar-lite'); ?></h3>
28
  <div class="mec-event-schedule-content">
29
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
30
  <dl>
48
 
49
  <!-- Tags -->
50
  <div class="mec-events-meta-group mec-events-meta-group-tags">
51
+ <?php the_tags(__('Tags: ', 'modern-events-calendar-lite'), ', ', '<br />'); ?>
52
  </div>
53
 
54
  </div>
63
  ?>
64
  <div class="mec-single-event-date">
65
  <i class="mec-sl-calendar"></i>
66
+ <h3 class="mec-date"><?php _e('Date', 'modern-events-calendar-lite'); ?></h3>
67
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
68
  </div>
69
 
75
  ?>
76
  <div class="mec-single-event-time">
77
  <i class="mec-sl-clock " style=""></i>
78
+ <h3 class="mec-time"><?php _e('Time', 'modern-events-calendar-lite'); ?></h3>
79
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
80
 
81
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
82
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
83
  <?php else: ?>
84
+ <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'modern-events-calendar-lite'); ?></abbr></dd>
85
  <?php endif; ?>
86
  </div>
87
  <?php
99
  ?>
100
  <div class="mec-event-cost">
101
  <i class="mec-sl-wallet"></i>
102
+ <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'modern-events-calendar-lite')); ?></h3>
103
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
104
  </div>
105
  <?php
113
  ?>
114
  <div class="mec-event-more-info">
115
  <i class="mec-sl-info"></i>
116
+ <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></h3>
117
+ <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'modern-events-calendar-lite')); ?></a></dd>
118
  </div>
119
  <?php
120
  }
128
  $mec_i = 0; ?>
129
  <div class="mec-single-event-label">
130
  <i class="mec-fa-bookmark-o"></i>
131
+ <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h3>
132
  <?php foreach($event->data->labels as $labels=>$label) :
133
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
134
  echo '<dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
149
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
150
  <?php endif; ?>
151
  <i class="mec-sl-location-pin"></i>
152
+ <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></h3>
153
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
154
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
155
  </div>
164
  ?>
165
  <div class="mec-single-event-category">
166
  <i class="mec-sl-folder"></i>
167
+ <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'modern-events-calendar-lite')); ?></dt>
168
  <?php
169
  $cats = array();
170
  foreach($event->data->categories as $category)
190
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
191
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
192
  <?php endif; ?>
193
+ <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></h3>
194
  <?php if(isset($organizer['thumbnail'])): ?>
195
  <dd class="mec-organizer">
196
  <i class="mec-sl-home"></i>
200
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
201
  <dd class="mec-organizer-tel">
202
  <i class="mec-sl-phone"></i>
203
+ <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
204
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
205
  </dd>
206
  <?php endif;
207
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
208
  <dd class="mec-organizer-email">
209
  <i class="mec-sl-envelope"></i>
210
+ <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
211
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
212
  </dd>
213
  <?php endif;
214
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
215
  <dd class="mec-organizer-url">
216
  <i class="mec-sl-sitemap"></i>
217
+ <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
218
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
219
  </dd>
220
  <?php endif; ?>
226
 
227
  <!-- Register Booking Button -->
228
  <?php if($this->main->can_show_booking_module($event)): ?>
229
+ <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite'))); ?></a>
230
  <?php endif ?>
231
 
232
  </div>
265
  ?>
266
  <div class="mec-single-event-date">
267
  <i class="mec-sl-calendar"></i>
268
+ <h3 class="mec-date"><?php _e('Date', 'modern-events-calendar-lite'); ?></h3>
269
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
270
  </div>
271
 
277
  ?>
278
  <div class="mec-single-event-time">
279
  <i class="mec-sl-clock " style=""></i>
280
+ <h3 class="mec-time"><?php _e('Time', 'modern-events-calendar-lite'); ?></h3>
281
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
282
 
283
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
284
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
285
  <?php else: ?>
286
+ <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'modern-events-calendar-lite'); ?></abbr></dd>
287
  <?php endif; ?>
288
  </div>
289
  <?php
301
  ?>
302
  <div class="mec-event-cost">
303
  <i class="mec-sl-wallet"></i>
304
+ <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'modern-events-calendar-lite')); ?></h3>
305
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
306
  </div>
307
  <?php
315
  ?>
316
  <div class="mec-event-more-info">
317
  <i class="mec-sl-info"></i>
318
+ <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></h3>
319
+ <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'modern-events-calendar-lite')); ?></a></dd>
320
  </div>
321
  <?php
322
  }
330
  $mec_i = 0; ?>
331
  <div class="mec-single-event-label">
332
  <i class="mec-fa-bookmark-o"></i>
333
+ <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h3>
334
  <?php foreach($event->data->labels as $labels=>$label) :
335
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
336
  echo '<dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
351
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
352
  <?php endif; ?>
353
  <i class="mec-sl-location-pin"></i>
354
+ <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></h3>
355
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
356
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
357
  </div>
366
  ?>
367
  <div class="mec-single-event-category">
368
  <i class="mec-sl-folder"></i>
369
+ <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'modern-events-calendar-lite')); ?></dt>
370
  <?php
371
  $cats = array();
372
  foreach($event->data->categories as $category)
392
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
393
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
394
  <?php endif; ?>
395
+ <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></h3>
396
  <?php if(isset($organizer['thumbnail'])): ?>
397
  <dd class="mec-organizer">
398
  <i class="mec-sl-home"></i>
402
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
403
  <dd class="mec-organizer-tel">
404
  <i class="mec-sl-phone"></i>
405
+ <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
406
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
407
  </dd>
408
  <?php endif;
409
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
410
  <dd class="mec-organizer-email">
411
  <i class="mec-sl-envelope"></i>
412
+ <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
413
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
414
  </dd>
415
  <?php endif;
416
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
417
  <dd class="mec-organizer-url">
418
  <i class="mec-sl-sitemap"></i>
419
+ <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
420
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
421
  </dd>
422
  <?php endif; ?>
428
 
429
  <!-- Register Booking Button -->
430
  <?php if($this->main->can_show_booking_module($event) and $single->found_value('register_btn', $settings) == 'on'): ?>
431
+ <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite'))); ?></a>
432
  <?php endif ?>
433
  </div>
434
 
app/skins/single/m1.php CHANGED
@@ -13,7 +13,7 @@ defined('MECEXEC') or die();
13
  ?>
14
  <div class="mec-single-event-date">
15
  <i class="mec-sl-calendar"></i>
16
- <h3 class="mec-date"><?php _e('Date', 'mec'); ?></h3>
17
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
18
  </div>
19
 
@@ -25,13 +25,13 @@ defined('MECEXEC') or die();
25
  ?>
26
  <div class="mec-single-event-time">
27
  <i class="mec-sl-clock " style=""></i>
28
- <h3 class="mec-time"><?php _e('Time', 'mec'); ?></h3>
29
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
30
 
31
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
32
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
33
  <?php else: ?>
34
- <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'mec'); ?></abbr></dd>
35
  <?php endif; ?>
36
  </div>
37
  <?php
@@ -46,7 +46,7 @@ defined('MECEXEC') or die();
46
  ?>
47
  <div class="mec-event-cost">
48
  <i class="mec-sl-wallet"></i>
49
- <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'mec')); ?></h3>
50
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
51
  </div>
52
  <?php
@@ -61,7 +61,7 @@ defined('MECEXEC') or die();
61
  $mec_i = 0; ?>
62
  <div class="mec-single-event-label">
63
  <i class="mec-fa-bookmark-o"></i>
64
- <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'mec')); ?></h3>
65
  <?php foreach($event->data->labels as $labels=>$label) :
66
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
67
  echo '<dd style=color:"' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
@@ -87,7 +87,7 @@ defined('MECEXEC') or die();
87
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
88
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
89
  <?php endif; ?>
90
- <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></h3>
91
  <?php if(isset($organizer['thumbnail'])): ?>
92
  <dd class="mec-organizer">
93
  <i class="mec-sl-home"></i>
@@ -97,21 +97,21 @@ defined('MECEXEC') or die();
97
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
98
  <dd class="mec-organizer-tel">
99
  <i class="mec-sl-phone"></i>
100
- <h6><?php _e('Phone', 'mec'); ?></h6>
101
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
102
  </dd>
103
  <?php endif;
104
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
105
  <dd class="mec-organizer-email">
106
  <i class="mec-sl-envelope"></i>
107
- <h6><?php _e('Email', 'mec'); ?></h6>
108
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
109
  </dd>
110
  <?php endif;
111
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
112
  <dd class="mec-organizer-url">
113
  <i class="mec-sl-sitemap"></i>
114
- <h6><?php _e('Website', 'mec'); ?></h6>
115
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
116
  </dd>
117
  <?php endif; ?>
@@ -123,7 +123,7 @@ defined('MECEXEC') or die();
123
 
124
  <!-- Register Booking Button -->
125
  <?php if($this->main->can_show_booking_module($event)): ?>
126
- <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'mec'))); ?></a>
127
  <?php endif ?>
128
  </div>
129
 
@@ -149,7 +149,7 @@ defined('MECEXEC') or die();
149
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
150
  <?php endif; ?>
151
  <i class="mec-sl-location-pin"></i>
152
- <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></h3>
153
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
154
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
155
  </div>
@@ -164,7 +164,7 @@ defined('MECEXEC') or die();
164
  ?>
165
  <div class="mec-single-event-category">
166
  <i class="mec-sl-folder"></i>
167
- <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'mec')); ?></dt>
168
  <?php
169
  $cats = array();
170
  foreach($event->data->categories as $category)
@@ -186,8 +186,8 @@ defined('MECEXEC') or die();
186
  ?>
187
  <div class="mec-event-more-info">
188
  <i class="mec-sl-info"></i>
189
- <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></h3>
190
- <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'mec')); ?></a></dd>
191
  </div>
192
  <?php
193
  }
@@ -229,7 +229,7 @@ defined('MECEXEC') or die();
229
  <!-- Hourly Schedule -->
230
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
231
  <div class="mec-event-schedule mec-frontbox">
232
- <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','mec'); ?></h3>
233
  <div class="mec-event-schedule-content">
234
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
235
  <dl>
@@ -253,7 +253,7 @@ defined('MECEXEC') or die();
253
 
254
  <!-- Tags -->
255
  <div class="mec-events-meta-group mec-events-meta-group-tags">
256
- <?php the_tags(__('Tags: ', 'mec'), ', ', '<br />'); ?>
257
  </div>
258
  </div>
259
  </article>
13
  ?>
14
  <div class="mec-single-event-date">
15
  <i class="mec-sl-calendar"></i>
16
+ <h3 class="mec-date"><?php _e('Date', 'modern-events-calendar-lite'); ?></h3>
17
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
18
  </div>
19
 
25
  ?>
26
  <div class="mec-single-event-time">
27
  <i class="mec-sl-clock " style=""></i>
28
+ <h3 class="mec-time"><?php _e('Time', 'modern-events-calendar-lite'); ?></h3>
29
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
30
 
31
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
32
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
33
  <?php else: ?>
34
+ <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'modern-events-calendar-lite'); ?></abbr></dd>
35
  <?php endif; ?>
36
  </div>
37
  <?php
46
  ?>
47
  <div class="mec-event-cost">
48
  <i class="mec-sl-wallet"></i>
49
+ <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'modern-events-calendar-lite')); ?></h3>
50
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
51
  </div>
52
  <?php
61
  $mec_i = 0; ?>
62
  <div class="mec-single-event-label">
63
  <i class="mec-fa-bookmark-o"></i>
64
+ <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h3>
65
  <?php foreach($event->data->labels as $labels=>$label) :
66
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
67
  echo '<dd style=color:"' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
87
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
88
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
89
  <?php endif; ?>
90
+ <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></h3>
91
  <?php if(isset($organizer['thumbnail'])): ?>
92
  <dd class="mec-organizer">
93
  <i class="mec-sl-home"></i>
97
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
98
  <dd class="mec-organizer-tel">
99
  <i class="mec-sl-phone"></i>
100
+ <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
101
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
102
  </dd>
103
  <?php endif;
104
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
105
  <dd class="mec-organizer-email">
106
  <i class="mec-sl-envelope"></i>
107
+ <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
108
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
109
  </dd>
110
  <?php endif;
111
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
112
  <dd class="mec-organizer-url">
113
  <i class="mec-sl-sitemap"></i>
114
+ <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
115
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
116
  </dd>
117
  <?php endif; ?>
123
 
124
  <!-- Register Booking Button -->
125
  <?php if($this->main->can_show_booking_module($event)): ?>
126
+ <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite'))); ?></a>
127
  <?php endif ?>
128
  </div>
129
 
149
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
150
  <?php endif; ?>
151
  <i class="mec-sl-location-pin"></i>
152
+ <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></h3>
153
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
154
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
155
  </div>
164
  ?>
165
  <div class="mec-single-event-category">
166
  <i class="mec-sl-folder"></i>
167
+ <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'modern-events-calendar-lite')); ?></dt>
168
  <?php
169
  $cats = array();
170
  foreach($event->data->categories as $category)
186
  ?>
187
  <div class="mec-event-more-info">
188
  <i class="mec-sl-info"></i>
189
+ <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></h3>
190
+ <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'modern-events-calendar-lite')); ?></a></dd>
191
  </div>
192
  <?php
193
  }
229
  <!-- Hourly Schedule -->
230
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
231
  <div class="mec-event-schedule mec-frontbox">
232
+ <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','modern-events-calendar-lite'); ?></h3>
233
  <div class="mec-event-schedule-content">
234
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
235
  <dl>
253
 
254
  <!-- Tags -->
255
  <div class="mec-events-meta-group mec-events-meta-group-tags">
256
+ <?php the_tags(__('Tags: ', 'modern-events-calendar-lite'), ', ', '<br />'); ?>
257
  </div>
258
  </div>
259
  </article>
app/skins/single/m2.php CHANGED
@@ -19,7 +19,7 @@ defined('MECEXEC') or die();
19
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
20
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
21
  <?php endif; ?>
22
- <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></h3>
23
  <?php if(isset($organizer['thumbnail'])): ?>
24
  <dd class="mec-organizer">
25
  <i class="mec-sl-home"></i>
@@ -29,21 +29,21 @@ defined('MECEXEC') or die();
29
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
30
  <dd class="mec-organizer-tel">
31
  <i class="mec-sl-phone"></i>
32
- <h6><?php _e('Phone', 'mec'); ?></h6>
33
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
34
  </dd>
35
  <?php endif;
36
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
37
  <dd class="mec-organizer-email">
38
  <i class="mec-sl-envelope"></i>
39
- <h6><?php _e('Email', 'mec'); ?></h6>
40
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
41
  </dd>
42
  <?php endif;
43
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
44
  <dd class="mec-organizer-url">
45
  <i class="mec-sl-sitemap"></i>
46
- <h6><?php _e('Website', 'mec'); ?></h6>
47
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
48
  </dd>
49
  <?php endif; ?>
@@ -55,7 +55,7 @@ defined('MECEXEC') or die();
55
 
56
  <!-- Register Booking Button -->
57
  <?php if($this->main->can_show_booking_module($event)): ?>
58
- <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'mec'))); ?></a>
59
  <?php endif ?>
60
  </div>
61
 
@@ -81,7 +81,7 @@ defined('MECEXEC') or die();
81
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
82
  <?php endif; ?>
83
  <i class="mec-sl-location-pin"></i>
84
- <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></h3>
85
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
86
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
87
  </div>
@@ -96,7 +96,7 @@ defined('MECEXEC') or die();
96
  ?>
97
  <div class="mec-single-event-category">
98
  <i class="mec-sl-folder"></i>
99
- <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'mec')); ?></dt>
100
  <?php
101
  $cats = array();
102
  foreach($event->data->categories as $category)
@@ -118,8 +118,8 @@ defined('MECEXEC') or die();
118
  ?>
119
  <div class="mec-event-more-info">
120
  <i class="mec-sl-info"></i>
121
- <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></h3>
122
- <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'mec')); ?></a></dd>
123
  </div>
124
  <?php
125
  }
@@ -154,7 +154,7 @@ defined('MECEXEC') or die();
154
  <!-- Hourly Schedule -->
155
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
156
  <div class="mec-event-schedule mec-frontbox">
157
- <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','mec'); ?></h3>
158
  <div class="mec-event-schedule-content">
159
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
160
  <dl>
@@ -178,7 +178,7 @@ defined('MECEXEC') or die();
178
 
179
  <!-- Tags -->
180
  <div class="mec-events-meta-group mec-events-meta-group-tags">
181
- <?php the_tags(__('Tags: ', 'mec'), ', ', '<br />'); ?>
182
  </div>
183
  </div>
184
  </article>
19
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
20
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
21
  <?php endif; ?>
22
+ <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></h3>
23
  <?php if(isset($organizer['thumbnail'])): ?>
24
  <dd class="mec-organizer">
25
  <i class="mec-sl-home"></i>
29
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
30
  <dd class="mec-organizer-tel">
31
  <i class="mec-sl-phone"></i>
32
+ <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
33
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
34
  </dd>
35
  <?php endif;
36
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
37
  <dd class="mec-organizer-email">
38
  <i class="mec-sl-envelope"></i>
39
+ <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
40
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
41
  </dd>
42
  <?php endif;
43
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
44
  <dd class="mec-organizer-url">
45
  <i class="mec-sl-sitemap"></i>
46
+ <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
47
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
48
  </dd>
49
  <?php endif; ?>
55
 
56
  <!-- Register Booking Button -->
57
  <?php if($this->main->can_show_booking_module($event)): ?>
58
+ <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite'))); ?></a>
59
  <?php endif ?>
60
  </div>
61
 
81
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
82
  <?php endif; ?>
83
  <i class="mec-sl-location-pin"></i>
84
+ <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></h3>
85
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
86
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
87
  </div>
96
  ?>
97
  <div class="mec-single-event-category">
98
  <i class="mec-sl-folder"></i>
99
+ <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'modern-events-calendar-lite')); ?></dt>
100
  <?php
101
  $cats = array();
102
  foreach($event->data->categories as $category)
118
  ?>
119
  <div class="mec-event-more-info">
120
  <i class="mec-sl-info"></i>
121
+ <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></h3>
122
+ <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'modern-events-calendar-lite')); ?></a></dd>
123
  </div>
124
  <?php
125
  }
154
  <!-- Hourly Schedule -->
155
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
156
  <div class="mec-event-schedule mec-frontbox">
157
+ <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','modern-events-calendar-lite'); ?></h3>
158
  <div class="mec-event-schedule-content">
159
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
160
  <dl>
178
 
179
  <!-- Tags -->
180
  <div class="mec-events-meta-group mec-events-meta-group-tags">
181
+ <?php the_tags(__('Tags: ', 'modern-events-calendar-lite'), ', ', '<br />'); ?>
182
  </div>
183
  </div>
184
  </article>
app/skins/single/modern.php CHANGED
@@ -18,7 +18,7 @@ defined('MECEXEC') or die();
18
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
19
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
20
  <?php endif; ?>
21
- <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'mec')); ?></h3>
22
  <?php if(isset($organizer['thumbnail'])): ?>
23
  <dd class="mec-organizer">
24
  <i class="mec-sl-home"></i>
@@ -28,21 +28,21 @@ defined('MECEXEC') or die();
28
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
29
  <dd class="mec-organizer-tel">
30
  <i class="mec-sl-phone"></i>
31
- <h6><?php _e('Phone', 'mec'); ?></h6>
32
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
33
  </dd>
34
  <?php endif;
35
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
36
  <dd class="mec-organizer-email">
37
  <i class="mec-sl-envelope"></i>
38
- <h6><?php _e('Email', 'mec'); ?></h6>
39
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
40
  </dd>
41
  <?php endif;
42
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
43
  <dd class="mec-organizer-url">
44
  <i class="mec-sl-sitemap"></i>
45
- <h6><?php _e('Website', 'mec'); ?></h6>
46
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
47
  </dd>
48
  <?php endif; ?>
@@ -54,7 +54,7 @@ defined('MECEXEC') or die();
54
 
55
  <!-- Register Booking Button -->
56
  <?php if($this->main->can_show_booking_module($event)): ?>
57
- <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'mec'))); ?></a>
58
  <?php endif ?>
59
  </div>
60
 
@@ -74,7 +74,7 @@ defined('MECEXEC') or die();
74
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
75
  <?php endif; ?>
76
  <i class="mec-sl-location-pin"></i>
77
- <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'mec')); ?></h3>
78
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
79
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
80
  </div>
@@ -89,7 +89,7 @@ defined('MECEXEC') or die();
89
  ?>
90
  <div class="mec-single-event-category">
91
  <i class="mec-sl-folder"></i>
92
- <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'mec')); ?></dt>
93
  <?php
94
  $cats = array();
95
  foreach($event->data->categories as $category)
@@ -112,8 +112,8 @@ defined('MECEXEC') or die();
112
  ?>
113
  <div class="mec-event-more-info">
114
  <i class="mec-sl-info"></i>
115
- <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'mec')); ?></h3>
116
- <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'mec')); ?></a></dd>
117
  </div>
118
  <?php
119
  }
@@ -143,7 +143,7 @@ defined('MECEXEC') or die();
143
  ?>
144
  <div class="mec-single-event-date">
145
  <i class="mec-sl-calendar"></i>
146
- <h3 class="mec-date"><?php _e('Date', 'mec'); ?></h3>
147
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
148
  </div>
149
 
@@ -155,13 +155,13 @@ defined('MECEXEC') or die();
155
  ?>
156
  <div class="mec-single-event-time">
157
  <i class="mec-sl-clock " style=""></i>
158
- <h3 class="mec-time"><?php _e('Time', 'mec'); ?></h3>
159
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
160
 
161
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
162
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
163
  <?php else: ?>
164
- <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'mec'); ?></abbr></dd>
165
  <?php endif; ?>
166
  </div>
167
  <?php
@@ -176,7 +176,7 @@ defined('MECEXEC') or die();
176
  ?>
177
  <div class="mec-event-cost">
178
  <i class="mec-sl-wallet"></i>
179
- <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'mec')); ?></h3>
180
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
181
  </div>
182
  <?php
@@ -191,7 +191,7 @@ defined('MECEXEC') or die();
191
  $mec_i = 0; ?>
192
  <div class="mec-single-event-label">
193
  <i class="mec-fa-bookmark-o"></i>
194
- <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'mec')); ?></h3>
195
  <?php foreach($event->data->labels as $labels=>$label) :
196
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
197
  echo '<dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
@@ -228,7 +228,7 @@ defined('MECEXEC') or die();
228
  <!-- Hourly Schedule -->
229
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
230
  <div class="mec-event-schedule mec-frontbox">
231
- <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','mec'); ?></h3>
232
  <div class="mec-event-schedule-content">
233
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
234
  <dl>
@@ -252,7 +252,7 @@ defined('MECEXEC') or die();
252
 
253
  <!-- Tags -->
254
  <div class="mec-events-meta-group mec-events-meta-group-tags">
255
- <?php the_tags(__('Tags: ', 'mec'), ', ', '<br />'); ?>
256
  </div>
257
 
258
  </div>
18
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
19
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
20
  <?php endif; ?>
21
+ <h3 class="mec-events-single-section-title"><?php echo $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></h3>
22
  <?php if(isset($organizer['thumbnail'])): ?>
23
  <dd class="mec-organizer">
24
  <i class="mec-sl-home"></i>
28
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
29
  <dd class="mec-organizer-tel">
30
  <i class="mec-sl-phone"></i>
31
+ <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
32
  <a href="tel:<?php echo $organizer['tel']; ?>"><?php echo $organizer['tel']; ?></a>
33
  </dd>
34
  <?php endif;
35
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
36
  <dd class="mec-organizer-email">
37
  <i class="mec-sl-envelope"></i>
38
+ <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
39
  <a href="mailto:<?php echo $organizer['email']; ?>"><?php echo $organizer['email']; ?></a>
40
  </dd>
41
  <?php endif;
42
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
43
  <dd class="mec-organizer-url">
44
  <i class="mec-sl-sitemap"></i>
45
+ <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
46
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo $organizer['url']; ?></a></span>
47
  </dd>
48
  <?php endif; ?>
54
 
55
  <!-- Register Booking Button -->
56
  <?php if($this->main->can_show_booking_module($event)): ?>
57
+ <a class="mec-booking-button mec-bg-color" href="#mec-events-meta-group-booking-<?php echo $this->uniqueid; ?>"><?php echo esc_html($this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite'))); ?></a>
58
  <?php endif ?>
59
  </div>
60
 
74
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
75
  <?php endif; ?>
76
  <i class="mec-sl-location-pin"></i>
77
+ <h3 class="mec-events-single-section-title mec-location"><?php echo $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></h3>
78
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
79
  <dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
80
  </div>
89
  ?>
90
  <div class="mec-single-event-category">
91
  <i class="mec-sl-folder"></i>
92
+ <dt><?php echo $this->main->m('taxonomy_categories', __('Category', 'modern-events-calendar-lite')); ?></dt>
93
  <?php
94
  $cats = array();
95
  foreach($event->data->categories as $category)
112
  ?>
113
  <div class="mec-event-more-info">
114
  <i class="mec-sl-info"></i>
115
+ <h3 class="mec-cost"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></h3>
116
+ <dd class="mec-events-event-more-info"><a class="mec-more-info-button mec-color-hover" target="<?php echo (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo $event->data->meta['mec_more_info']; ?>"><?php echo ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : __('Read More', 'modern-events-calendar-lite')); ?></a></dd>
117
  </div>
118
  <?php
119
  }
143
  ?>
144
  <div class="mec-single-event-date">
145
  <i class="mec-sl-calendar"></i>
146
+ <h3 class="mec-date"><?php _e('Date', 'modern-events-calendar-lite'); ?></h3>
147
  <dd><abbr class="mec-events-abbr"><?php echo $this->main->date_label((trim($occurrence) ? array('date'=>$occurrence) : $event->date['start']), (trim($occurrence_end_date) ? array('date'=>$occurrence_end_date) : (isset($event->date['end']) ? $event->date['end'] : NULL)), $this->date_format1); ?></abbr></dd>
148
  </div>
149
 
155
  ?>
156
  <div class="mec-single-event-time">
157
  <i class="mec-sl-clock " style=""></i>
158
+ <h3 class="mec-time"><?php _e('Time', 'modern-events-calendar-lite'); ?></h3>
159
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
160
 
161
  <?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
162
  <dd><abbr class="mec-events-abbr"><?php echo $event->data->time['start']; ?><?php echo (trim($event->data->time['end']) ? ' - '.$event->data->time['end'] : ''); ?></abbr></dd>
163
  <?php else: ?>
164
+ <dd><abbr class="mec-events-abbr"><?php _e('All of the day', 'modern-events-calendar-lite'); ?></abbr></dd>
165
  <?php endif; ?>
166
  </div>
167
  <?php
176
  ?>
177
  <div class="mec-event-cost">
178
  <i class="mec-sl-wallet"></i>
179
+ <h3 class="mec-cost"><?php echo $this->main->m('cost', __('Cost', 'modern-events-calendar-lite')); ?></h3>
180
  <dd class="mec-events-event-cost"><?php echo (is_numeric($event->data->meta['mec_cost']) ? $this->main->render_price($event->data->meta['mec_cost']) : $event->data->meta['mec_cost']); ?></dd>
181
  </div>
182
  <?php
191
  $mec_i = 0; ?>
192
  <div class="mec-single-event-label">
193
  <i class="mec-fa-bookmark-o"></i>
194
+ <h3 class="mec-cost"><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h3>
195
  <?php foreach($event->data->labels as $labels=>$label) :
196
  $seperator = (++$mec_i === $mec_items ) ? '' : ',';
197
  echo '<dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd>';
228
  <!-- Hourly Schedule -->
229
  <?php if(isset($event->data->meta['mec_hourly_schedules']) and is_array($event->data->meta['mec_hourly_schedules']) and count($event->data->meta['mec_hourly_schedules'])): ?>
230
  <div class="mec-event-schedule mec-frontbox">
231
+ <h3 class="mec-schedule-head mec-frontbox-title"><?php _e('Hourly Schedule','modern-events-calendar-lite'); ?></h3>
232
  <div class="mec-event-schedule-content">
233
  <?php foreach($event->data->meta['mec_hourly_schedules'] as $schedule): ?>
234
  <dl>
252
 
253
  <!-- Tags -->
254
  <div class="mec-events-meta-group mec-events-meta-group-tags">
255
+ <?php the_tags(__('Tags: ', 'modern-events-calendar-lite'), ', ', '<br />'); ?>
256
  </div>
257
 
258
  </div>
app/skins/slider/render.php CHANGED
@@ -56,7 +56,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) or isset($styling['color'])
56
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
57
  </div>
58
  <div class="mec-event-footer">
59
- <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
60
  </div>
61
  </div>
62
  </article>
@@ -77,7 +77,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) or isset($styling['color'])
77
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
78
  </div>
79
  <div class="mec-event-footer">
80
- <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
81
  </div>
82
  </div>
83
  </article>
@@ -97,7 +97,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) or isset($styling['color'])
97
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
98
  </div>
99
  <div class="mec-slider-t3-footer">
100
- <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
101
  </div>
102
  </div>
103
  </article>
@@ -117,7 +117,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) or isset($styling['color'])
117
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
118
  </div>
119
  <div class="mec-slider-t4-footer">
120
- <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
121
  </div>
122
  </div>
123
  </article>
@@ -148,7 +148,7 @@ $event_colorskin = (isset($styling['mec_colorskin']) or isset($styling['color'])
148
  </div>
149
  </div>
150
  <div class="mec-event-footer">
151
- <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'mec')) : $this->main->m('view_detail', __('View Detail', 'mec')); ?></a>
152
  </div>
153
  </div>
154
  </article>
56
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
57
  </div>
58
  <div class="mec-event-footer">
59
+ <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
60
  </div>
61
  </div>
62
  </article>
77
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
78
  </div>
79
  <div class="mec-event-footer">
80
+ <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
81
  </div>
82
  </div>
83
  </article>
97
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
98
  </div>
99
  <div class="mec-slider-t3-footer">
100
+ <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
101
  </div>
102
  </div>
103
  </article>
117
  <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '.$location['address'] : ''); ?></div>
118
  </div>
119
  <div class="mec-slider-t4-footer">
120
+ <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
121
  </div>
122
  </div>
123
  </article>
148
  </div>
149
  </div>
150
  <div class="mec-event-footer">
151
+ <a class="mec-booking-button" href="<?php echo $this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']); ?>"><?php echo (is_array($event->data->tickets) and count($event->data->tickets)) ? $this->main->m('register_button', __('REGISTER', 'modern-events-calendar-lite')) : $this->main->m('view_detail', __('View Detail', 'modern-events-calendar-lite')); ?></a>
152
  </div>
153
  </div>
154
  </article>
app/skins/slider/tpl.php CHANGED
@@ -38,7 +38,7 @@ $this->factory->params('footer', $javascript);
38
  </div>
39
  <?php else: ?>
40
  <div class="mec-skin-slider-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
41
- <?php _e('No event found!', 'mec'); ?>
42
  </div>
43
  <?php endif; ?>
44
 
38
  </div>
39
  <?php else: ?>
40
  <div class="mec-skin-slider-events-container" id="mec_skin_events_<?php echo $this->id; ?>">
41
+ <?php _e('No event found!', 'modern-events-calendar-lite'); ?>
42
  </div>
43
  <?php endif; ?>
44
 
app/skins/timetable/modern.php CHANGED
@@ -69,7 +69,7 @@ if($this->next_previous_button)
69
  }
70
  }
71
 
72
- $week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(__('Week %s', 'mec'), '<span>'.(isset($this->week_of_days[$this->today]) ? $this->week_of_days[$this->today] : 1).'</span>').'</h3></div>';
73
 
74
  $month_html = '<div class="mec-weeks-container mec-calendar-d-table">'.$weeks.'</div>
75
  <div class="mec-week-events-container">'.$date_events.'</div>';
69
  }
70
  }
71
 
72
+ $week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(__('Week %s', 'modern-events-calendar-lite'), '<span>'.(isset($this->week_of_days[$this->today]) ? $this->week_of_days[$this->today] : 1).'</span>').'</h3></div>';
73
 
74
  $month_html = '<div class="mec-weeks-container mec-calendar-d-table">'.$weeks.'</div>
75
  <div class="mec-week-events-container">'.$date_events.'</div>';
app/skins/timetable/render.php CHANGED
@@ -50,7 +50,7 @@ $has_events = array();
50
  </div>
51
  <?php elseif(!isset($has_events[$week])): $has_events[$week] = 'printed'; ?>
52
  <div class="mec-timetable-events-list mec-weekly-view-date-events mec-util-hidden mec-calendar-day-events mec-clear mec-weekly-view-week-<?php echo $this->id; ?>-<?php echo date('Ym', strtotime($date)).$week; ?>" id="mec_weekly_view_date_events<?php echo $this->id; ?>_<?php echo date('Ymd', strtotime($date)); ?>" data-week-number="<?php echo $week; ?>">
53
- <article class="mec-event-article"><h4 class="mec-event-title"><?php _e('No Events', 'mec'); ?></h4><div class="mec-event-detail"></div></article>
54
  </div>
55
  <?php endif; ?>
56
  <?php endforeach; ?>
50
  </div>
51
  <?php elseif(!isset($has_events[$week])): $has_events[$week] = 'printed'; ?>
52
  <div class="mec-timetable-events-list mec-weekly-view-date-events mec-util-hidden mec-calendar-day-events mec-clear mec-weekly-view-week-<?php echo $this->id; ?>-<?php echo date('Ym', strtotime($date)).$week; ?>" id="mec_weekly_view_date_events<?php echo $this->id; ?>_<?php echo date('Ymd', strtotime($date)); ?>" data-week-number="<?php echo $week; ?>">
53
+ <article class="mec-event-article"><h4 class="mec-event-title"><?php _e('No Events', 'modern-events-calendar-lite'); ?></h4><div class="mec-event-detail"></div></article>
54
  </div>
55
  <?php endif; ?>
56
  <?php endforeach; ?>
app/skins/weekly_view/render.php CHANGED
@@ -32,7 +32,7 @@ $has_events = array();
32
  </li>
33
  <?php elseif(!isset($has_events[$week])): $has_events[$week] = 'printed'; ?>
34
  <li class="mec-weekly-view-date-events mec-util-hidden mec-calendar-day-events mec-clear mec-weekly-view-week-<?php echo $this->id; ?>-<?php echo date('Ym', strtotime($date)).$week; ?>" id="mec_weekly_view_date_events<?php echo $this->id; ?>_<?php echo date('Ymd', strtotime($date)); ?>" data-week-number="<?php echo $week; ?>">
35
- <article class="mec-event-article"><h4 class="mec-event-title"><?php _e('No Events', 'mec'); ?></h4><div class="mec-event-detail"></div></article>
36
  </li>
37
  <?php endif; ?>
38
  <?php endforeach; ?>
32
  </li>
33
  <?php elseif(!isset($has_events[$week])): $has_events[$week] = 'printed'; ?>
34
  <li class="mec-weekly-view-date-events mec-util-hidden mec-calendar-day-events mec-clear mec-weekly-view-week-<?php echo $this->id; ?>-<?php echo date('Ym', strtotime($date)).$week; ?>" id="mec_weekly_view_date_events<?php echo $this->id; ?>_<?php echo date('Ymd', strtotime($date)); ?>" data-week-number="<?php echo $week; ?>">
35
+ <article class="mec-event-article"><h4 class="mec-event-title"><?php _e('No Events', 'modern-events-calendar-lite'); ?></h4><div class="mec-event-detail"></div></article>
36
  </li>
37
  <?php endif; ?>
38
  <?php endforeach; ?>
app/skins/weekly_view/tpl.php CHANGED
@@ -69,7 +69,7 @@ if($this->next_previous_button)
69
  }
70
  }
71
 
72
- $week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(__('Week %s', 'mec'), '<span>'.(isset($this->week_of_days[$this->today]) ? $this->week_of_days[$this->today] : 1).'</span>').'</h3></div>';
73
 
74
  $month_html = '<div class="mec-weeks-container mec-calendar-d-table">'.$weeks.'</div>
75
  <div class="mec-week-events-container">'.$date_events.'</div>';
69
  }
70
  }
71
 
72
+ $week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(__('Week %s', 'modern-events-calendar-lite'), '<span>'.(isset($this->week_of_days[$this->today]) ? $this->week_of_days[$this->today] : 1).'</span>').'</h3></div>';
73
 
74
  $month_html = '<div class="mec-weeks-container mec-calendar-d-table">'.$weeks.'</div>
75
  <div class="mec-week-events-container">'.$date_events.'</div>';
app/skins/yearly_view/render.php CHANGED
@@ -62,6 +62,6 @@ for($i = 1; $i <= 12; $i++)
62
  <?php endforeach; ?>
63
  <span class="mec-yearly-max" data-count="<?php echo $count; ?>" ></span>
64
  <?php if ($count > 20): ?>
65
- <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'mec'); ?></div></div>
66
  <?php endif; ?>
67
  </div>
62
  <?php endforeach; ?>
63
  <span class="mec-yearly-max" data-count="<?php echo $count; ?>" ></span>
64
  <?php if ($count > 20): ?>
65
+ <div class="mec-load-more-wrap"><div class="mec-load-more-button" onclick=""><?php echo __('Load More', 'modern-events-calendar-lite'); ?></div></div>
66
  <?php endif; ?>
67
  </div>
app/skins/yearly_view/tpl.php CHANGED
@@ -65,8 +65,8 @@ jQuery(document).ready(function()
65
  today: "'.date('Ymd', strtotime($this->active_day)).'",
66
  year_id: "'.date('Y', $current_year_time).'",
67
  next_year: {year: "'.date('Y', $_1year_after).'"},
68
- events_label: "'.esc_attr__('Events', 'mec').'",
69
- event_label: "'.esc_attr__('Event', 'mec').'",
70
  year_navigator: '.($this->next_previous_button ? 1 : 0).',
71
  atts: "'.http_build_query(array('atts'=>$this->atts), '', '&').'",
72
  ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
65
  today: "'.date('Ymd', strtotime($this->active_day)).'",
66
  year_id: "'.date('Y', $current_year_time).'",
67
  next_year: {year: "'.date('Y', $_1year_after).'"},
68
+ events_label: "'.esc_attr__('Events', 'modern-events-calendar-lite').'",
69
+ event_label: "'.esc_attr__('Event', 'modern-events-calendar-lite').'",
70
  year_navigator: '.($this->next_previous_button ? 1 : 0).',
71
  atts: "'.http_build_query(array('atts'=>$this->atts), '', '&').'",
72
  ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
app/widgets/MEC.php CHANGED
@@ -20,7 +20,7 @@ class MEC_MEC_widget extends WP_Widget
20
  // MEC Main Class
21
  $this->main = MEC::getInstance('app.libraries.main');
22
 
23
- parent::__construct('MEC_MEC_widget', __('Modern Events Calendar', 'mec'), array('description'=>__('Show events based on created shortcodes.', 'mec')));
24
  }
25
 
26
  /**
@@ -60,14 +60,14 @@ class MEC_MEC_widget extends WP_Widget
60
  $calendars = get_posts(array('post_type'=>'mec_calendars', 'posts_per_page'=>'-1', 'meta_query'=>array(array('key'=>'skin', 'value'=>array('list', 'grid', 'monthly_view'), 'compare'=>'IN'))));
61
 
62
  echo '<p class="mec-widget-row-container">'
63
- .'<label for="'.$this->get_field_id('title').'">'.__('Title:', 'mec').'</label>'
64
  .'<input class="widefat" type="text" id="'.$this->get_field_id('title').'" name="'.$this->get_field_name('title').'" value="'.(isset($instance['title']) ? $instance['title'] : '').'" />'
65
  .'</p>';
66
 
67
  if(count($calendars))
68
  {
69
  echo '<p class="mec-widget-row-container">'
70
- .'<label for="'.$this->get_field_id('calendar_id').'">'.__('Shortcode:', 'mec').'</label>'
71
  .'<select class="widefat" name="'.$this->get_field_name('calendar_id').'" id="'.$this->get_field_id('calendar_id').'"><option value="">-----</option>';
72
 
73
  foreach($calendars as $calendar) echo '<option value="'.$calendar->ID.'"'.((isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID) ? ' selected="selected"' : '').'>'.$calendar->post_title.'</option>';
20
  // MEC Main Class
21
  $this->main = MEC::getInstance('app.libraries.main');
22
 
23
+ parent::__construct('MEC_MEC_widget', __('Modern Events Calendar', 'modern-events-calendar-lite'), array('description'=>__('Show events based on created shortcodes.', 'modern-events-calendar-lite')));
24
  }
25
 
26
  /**
60
  $calendars = get_posts(array('post_type'=>'mec_calendars', 'posts_per_page'=>'-1', 'meta_query'=>array(array('key'=>'skin', 'value'=>array('list', 'grid', 'monthly_view'), 'compare'=>'IN'))));
61
 
62
  echo '<p class="mec-widget-row-container">'
63
+ .'<label for="'.$this->get_field_id('title').'">'.__('Title:', 'modern-events-calendar-lite').'</label>'
64
  .'<input class="widefat" type="text" id="'.$this->get_field_id('title').'" name="'.$this->get_field_name('title').'" value="'.(isset($instance['title']) ? $instance['title'] : '').'" />'
65
  .'</p>';
66
 
67
  if(count($calendars))
68
  {
69
  echo '<p class="mec-widget-row-container">'
70
+ .'<label for="'.$this->get_field_id('calendar_id').'">'.__('Shortcode:', 'modern-events-calendar-lite').'</label>'
71
  .'<select class="widefat" name="'.$this->get_field_name('calendar_id').'" id="'.$this->get_field_id('calendar_id').'"><option value="">-----</option>';
72
 
73
  foreach($calendars as $calendar) echo '<option value="'.$calendar->ID.'"'.((isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID) ? ' selected="selected"' : '').'>'.$calendar->post_title.'</option>';
app/widgets/SINGLE.php CHANGED
@@ -19,7 +19,7 @@ class Mec_Single_Widget extends WP_Widget
19
  */
20
  public function __construct()
21
  {
22
- parent::__construct($this->get_widget_slug(), __('MEC Single Sidebar Items', 'mec'), array('classname' => $this->get_widget_slug().'-class', 'description' => __('To manage event details page elements.', 'mec')));
23
 
24
  // Refreshing the widget's cached output with each new post
25
  add_action('save_post', array($this, 'flush_widget_cache'));
@@ -90,63 +90,63 @@ class Mec_Single_Widget extends WP_Widget
90
  ?>
91
  <ul class="mec-sortable">
92
  <li>
93
- <label for="<?php echo $this->get_field_id( 'data_time' ); ?>"><?php _e( 'Date Time Module : ', 'mec' ); ?></label>
94
  <input class="checkbox" type="checkbox" <?php checked( $data_time, 'on' ); ?> id="<?php echo $this->get_field_id( 'data_time' ); ?>" name="<?php echo $this->get_field_name( 'data_time' ); ?>" />
95
  </li>
96
  <li>
97
- <label for="<?php echo $this->get_field_id( 'local_time' ); ?>"><?php _e( 'Local Time : ', 'mec' ); ?></label>
98
  <input class="checkbox" type="checkbox" <?php checked( $local_time, 'on' ); ?> id="<?php echo $this->get_field_id( 'local_time' ); ?>" name="<?php echo $this->get_field_name( 'local_time' ); ?>" />
99
  </li>
100
  <li>
101
- <label for="<?php echo $this->get_field_id( 'event_cost' ); ?>"><?php _e( 'Event Cost : ', 'mec' ); ?></label>
102
  <input class="checkbox" type="checkbox" <?php checked( $event_cost, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_cost' ); ?>" name="<?php echo $this->get_field_name( 'event_cost' ); ?>" />
103
  </li>
104
  <li>
105
- <label for="<?php echo $this->get_field_id( 'more_info' ); ?>"><?php _e( 'More Info : ', 'mec' ); ?></label>
106
  <input class="checkbox" type="checkbox" <?php checked( $more_info, 'on' ); ?> id="<?php echo $this->get_field_id( 'more_info' ); ?>" name="<?php echo $this->get_field_name( 'more_info' ); ?>" />
107
  </li>
108
  <li>
109
- <label for="<?php echo $this->get_field_id( 'event_label' ); ?>"><?php _e( 'Event Label : ', 'mec' ); ?></label>
110
  <input class="checkbox" type="checkbox" <?php checked( $event_label, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_label' ); ?>" name="<?php echo $this->get_field_name( 'event_label' ); ?>" />
111
  </li>
112
  <li>
113
- <label for="<?php echo $this->get_field_id( 'event_location' ); ?>"><?php _e( 'Event Location : ', 'mec' ); ?></label>
114
  <input class="checkbox" type="checkbox" <?php checked( $event_location, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_location' ); ?>" name="<?php echo $this->get_field_name( 'event_location' ); ?>" />
115
  </li>
116
  <li>
117
- <label for="<?php echo $this->get_field_id( 'event_categories' ); ?>"><?php _e( 'Event Categories : ', 'mec' ); ?></label>
118
  <input class="checkbox" type="checkbox" <?php checked( $event_categories, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_categories' ); ?>" name="<?php echo $this->get_field_name( 'event_categories' ); ?>" />
119
  </li>
120
  <li>
121
- <label for="<?php echo $this->get_field_id( 'event_orgnizer' ); ?>"><?php _e( 'Event Organizer : ', 'mec' ); ?></label>
122
  <input class="checkbox" type="checkbox" <?php checked( $event_orgnizer, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_orgnizer' ); ?>" name="<?php echo $this->get_field_name( 'event_orgnizer' ); ?>" />
123
  </li>
124
  <li>
125
- <label for="<?php echo $this->get_field_id( 'register_btn' ); ?>"><?php _e( 'Register Button : ', 'mec' ); ?></label>
126
  <input class="checkbox" type="checkbox" <?php checked( $register_btn, 'on' ); ?> id="<?php echo $this->get_field_id( 'register_btn' ); ?>" name="<?php echo $this->get_field_name( 'register_btn' ); ?>" />
127
  </li>
128
  <li>
129
- <label for="<?php echo $this->get_field_id( 'attende_module' ); ?>"><?php _e( 'Attendees Module : ', 'mec' ); ?></label>
130
  <input class="checkbox" type="checkbox" <?php checked( $attende_module, 'on' ); ?> id="<?php echo $this->get_field_id( 'attende_module' ); ?>" name="<?php echo $this->get_field_name( 'attende_module' ); ?>" />
131
  </li>
132
  <li>
133
- <label for="<?php echo $this->get_field_id( 'next_module' ); ?>"><?php _e( 'Next Pervious Module : ', 'mec' ); ?></label>
134
  <input class="checkbox" type="checkbox" <?php checked( $next_module, 'on' ); ?> id="<?php echo $this->get_field_id( 'next_module' ); ?>" name="<?php echo $this->get_field_name( 'next_module' ); ?>" />
135
  </li>
136
  <li>
137
- <label for="<?php echo $this->get_field_id( 'links_module' ); ?>"><?php _e( 'Social Module : ', 'mec' ); ?></label>
138
  <input class="checkbox" type="checkbox" <?php checked( $links_module, 'on' ); ?> id="<?php echo $this->get_field_id( 'links_module' ); ?>" name="<?php echo $this->get_field_name( 'links_module' ); ?>" />
139
  </li>
140
  <li>
141
- <label for="<?php echo $this->get_fi
19
  */
20
  public function __construct()
21
  {
22
+ parent::__construct($this->get_widget_slug(), __('MEC Single Sidebar Items', 'modern-events-calendar-lite'), array('classname' => $this->get_widget_slug().'-class', 'description' => __('To manage event details page elements.', 'modern-events-calendar-lite')));
23
 
24
  // Refreshing the widget's cached output with each new post
25
  add_action('save_post', array($this, 'flush_widget_cache'));
90
  ?>
91
  <ul class="mec-sortable">
92
  <li>
93
+ <label for="<?php echo $this->get_field_id( 'data_time' ); ?>"><?php _e( 'Date Time Module : ', 'modern-events-calendar-lite' ); ?></label>
94
  <input class="checkbox" type="checkbox" <?php checked( $data_time, 'on' ); ?> id="<?php echo $this->get_field_id( 'data_time' ); ?>" name="<?php echo $this->get_field_name( 'data_time' ); ?>" />
95
  </li>
96
  <li>
97
+ <label for="<?php echo $this->get_field_id( 'local_time' ); ?>"><?php _e( 'Local Time : ', 'modern-events-calendar-lite' ); ?></label>
98
  <input class="checkbox" type="checkbox" <?php checked( $local_time, 'on' ); ?> id="<?php echo $this->get_field_id( 'local_time' ); ?>" name="<?php echo $this->get_field_name( 'local_time' ); ?>" />
99
  </li>
100
  <li>
101
+ <label for="<?php echo $this->get_field_id( 'event_cost' ); ?>"><?php _e( 'Event Cost : ', 'modern-events-calendar-lite' ); ?></label>
102
  <input class="checkbox" type="checkbox" <?php checked( $event_cost, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_cost' ); ?>" name="<?php echo $this->get_field_name( 'event_cost' ); ?>" />
103
  </li>
104
  <li>
105
+ <label for="<?php echo $this->get_field_id( 'more_info' ); ?>"><?php _e( 'More Info : ', 'modern-events-calendar-lite' ); ?></label>
106
  <input class="checkbox" type="checkbox" <?php checked( $more_info, 'on' ); ?> id="<?php echo $this->get_field_id( 'more_info' ); ?>" name="<?php echo $this->get_field_name( 'more_info' ); ?>" />
107
  </li>
108
  <li>
109
+ <label for="<?php echo $this->get_field_id( 'event_label' ); ?>"><?php _e( 'Event Label : ', 'modern-events-calendar-lite' ); ?></label>
110
  <input class="checkbox" type="checkbox" <?php checked( $event_label, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_label' ); ?>" name="<?php echo $this->get_field_name( 'event_label' ); ?>" />
111
  </li>
112
  <li>
113
+ <label for="<?php echo $this->get_field_id( 'event_location' ); ?>"><?php _e( 'Event Location : ', 'modern-events-calendar-lite' ); ?></label>
114
  <input class="checkbox" type="checkbox" <?php checked( $event_location, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_location' ); ?>" name="<?php echo $this->get_field_name( 'event_location' ); ?>" />
115
  </li>
116
  <li>
117
+ <label for="<?php echo $this->get_field_id( 'event_categories' ); ?>"><?php _e( 'Event Categories : ', 'modern-events-calendar-lite' ); ?></label>
118
  <input class="checkbox" type="checkbox" <?php checked( $event_categories, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_categories' ); ?>" name="<?php echo $this->get_field_name( 'event_categories' ); ?>" />
119
  </li>
120
  <li>
121
+ <label for="<?php echo $this->get_field_id( 'event_orgnizer' ); ?>"><?php _e( 'Event Organizer : ', 'modern-events-calendar-lite' ); ?></label>
122
  <input class="checkbox" type="checkbox" <?php checked( $event_orgnizer, 'on' ); ?> id="<?php echo $this->get_field_id( 'event_orgnizer' ); ?>" name="<?php echo $this->get_field_name( 'event_orgnizer' ); ?>" />
123
  </li>
124
  <li>
125
+ <label for="<?php echo $this->get_field_id( 'register_btn' ); ?>"><?php _e( 'Register Button : ', 'modern-events-calendar-lite' ); ?></label>
126
  <input class="checkbox" type="checkbox" <?php checked( $register_btn, 'on' ); ?> id="<?php echo $this->get_field_id( 'register_btn' ); ?>" name="<?php echo $this->get_field_name( 'register_btn' ); ?>" />
127
  </li>
128
  <li>
129
+ <label for="<?php echo $this->get_field_id( 'attende_module' ); ?>"><?php _e( 'Attendees Module : ', 'modern-events-calendar-lite' ); ?></label>
130
  <input class="checkbox" type="checkbox" <?php checked( $attende_module, 'on' ); ?> id="<?php echo $this->get_field_id( 'attende_module' ); ?>" name="<?php echo $this->get_field_name( 'attende_module' ); ?>" />
131
  </li>
132
  <li>
133
+ <label for="<?php echo $this->get_field_id( 'next_module' ); ?>"><?php _e( 'Next Pervious Module : ', 'modern-events-calendar-lite' ); ?></label>
134
  <input class="checkbox" type="checkbox" <?php checked( $next_module, 'on' ); ?> id="<?php echo $this->get_field_id( 'next_module' ); ?>" name="<?php echo $this->get_field_name( 'next_module' ); ?>" />
135
  </li>
136
  <li>
137
+ <label for="<?php echo $this->get_field_id( 'links_module' ); ?>"><?php _e( 'Social Module : ', 'modern-events-calendar-lite' ); ?></label>
138
  <input class="checkbox" type="checkbox" <?php checked( $links_module, 'on' ); ?> id="<?php echo $this->get_field_id( 'links_module' ); ?>" name="<?php echo $this->get_field_name( 'links_module' ); ?>" />
139
  </li>
140
  <li>