Modern Events Calendar Lite - Version 6.4.7

Version Description

27 March 2022 = - Fixed: An issue on PayPal Standard Gateway (pro) - Fixed: An issue in the Related Events module when a link is set for an event - Fixed: Some issues in notification placeholders - Fixed: An issue in manual import from Google Calendar - Fixed: Some PHP issues and warnings - Fixed: An issue on displaying cancellation reason (pro) - Removed: PHP curl and used WordPress remote API instead - Escaped and Sanitized: Many parts of the project to improve security and performance

Download this release

Release Info

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

Code changes from version 6.4.5 to 6.4.7

Files changed (83) hide show
  1. app/addons/elementor/shortcode.php +3 -3
  2. app/addons/learndash.php +1 -1
  3. app/addons/mec-beaver-builder/mec-beaver-builder.php +6 -6
  4. app/api/TFPDF/tfpdf.php +2 -2
  5. app/core/puc/Puc/v4p11/Plugin/Ui.php +1 -1
  6. app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php +1 -1
  7. app/core/src/Books/Book.php +6 -6
  8. app/core/src/Books/BookingForm.php +1 -1
  9. app/core/src/Forms/DisplayFields.php +11 -11
  10. app/core/src/Forms/FormFields.php +69 -69
  11. app/core/src/Forms/SettingsForm.php +15 -15
  12. app/core/src/Notifications/SendEmail.php +1 -1
  13. app/core/src/Notifications/template-notification-settings.php +11 -11
  14. app/core/src/SingleBuilder/Widgets/BookingForm/BookingForm.php +15 -5
  15. app/core/src/SingleBuilder/Widgets/Content/Content.php +1 -1
  16. app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php +2 -2
  17. app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php +2 -2
  18. app/core/src/SingleBuilder/Widgets/EventCancellationReason/EventCancellationReason.php +2 -2
  19. app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php +3 -3
  20. app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php +3 -3
  21. app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php +2 -2
  22. app/core/src/SingleBuilder/Widgets/EventData/EventData.php +2 -2
  23. app/core/src/SingleBuilder/Widgets/EventDate/EventDate.php +1 -1
  24. app/core/src/SingleBuilder/Widgets/EventExport/EventExport.php +2 -2
  25. app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php +4 -4
  26. app/core/src/SingleBuilder/Widgets/EventHourlySchedule/EventHourlySchedule.php +2 -2
  27. app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php +3 -3
  28. app/core/src/SingleBuilder/Widgets/EventLocalTime/EventLocalTime.php +2 -2
  29. app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php +4 -4
  30. app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php +4 -4
  31. app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php +2 -2
  32. app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php +2 -2
  33. app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php +7 -7
  34. app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php +2 -2
  35. app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php +6 -6
  36. app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php +2 -2
  37. app/core/src/SingleBuilder/Widgets/EventSocialShare/EventSocialShare.php +3 -3
  38. app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php +2 -2
  39. app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php +3 -3
  40. app/core/src/SingleBuilder/Widgets/EventTime/EventTime.php +4 -3
  41. app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php +2 -2
  42. app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php +2 -2
  43. app/crons/auto-emails.php +0 -118
  44. app/crons/event-finished.php +0 -99
  45. app/features/admincalendar.php +1 -1
  46. app/features/autoemails.php +9 -9
  47. app/features/booking/calendar_novel.php +3 -3
  48. app/features/bookingcalendar.php +4 -4
  49. app/features/cart.php +5 -5
  50. app/features/cart/cart.php +6 -6
  51. app/features/cart/checkout.php +10 -10
  52. app/features/colors.php +4 -4
  53. app/features/contextual.php +29 -41
  54. app/features/dc.php +1 -1
  55. app/features/dlfile.php +10 -10
  56. app/features/events.php +533 -533
  57. app/features/feed.php +1 -1
  58. app/features/feed/rss2.php +13 -13
  59. app/features/fes.php +15 -15
  60. app/features/fes/form.php +193 -193
  61. app/features/fes/list.php +6 -6
  62. app/features/fes/message.php +1 -1
  63. app/features/ix.php +51 -45
  64. app/features/ix/export.php +25 -25
  65. app/features/ix/export_g_calendar.php +22 -22
  66. app/features/ix/import.php +27 -27
  67. app/features/ix/import_f_calendar.php +26 -26
  68. app/features/ix/import_g_calendar.php +26 -26
  69. app/features/ix/import_meetup.php +25 -25
  70. app/features/ix/sync.php +26 -26
  71. app/features/ix/thirdparty.php +29 -29
  72. app/features/labels.php +30 -29
  73. app/features/locations.php +53 -57
  74. app/features/mec.php +122 -116
  75. app/features/mec/addons.php +4 -4
  76. app/features/mec/booking.php +281 -281
  77. app/features/mec/dashboard.php +64 -66
  78. app/features/mec/dyncss.php +66 -66
  79. app/features/mec/go-pro.php +6 -6
  80. app/features/mec/ie.php +6 -6
  81. app/features/mec/integrations.php +62 -62
  82. app/features/mec/messages.php +10 -10
  83. app/features/mec/meta_boxes/display_options.php +49 -50
app/addons/elementor/shortcode.php CHANGED
@@ -31,7 +31,7 @@ class MEC_addon_elementor_shortcode extends \Elementor\Widget_Base
31
  */
32
  public function get_title()
33
  {
34
- return __('Modern Events Calendar (MEC)', 'modern-events-calendar-lite');
35
  }
36
 
37
  /**
@@ -75,7 +75,7 @@ class MEC_addon_elementor_shortcode extends \Elementor\Widget_Base
75
  $this->start_controls_section(
76
  'content_section',
77
  array(
78
- 'label' => __('General', 'modern-events-calendar-lite'),
79
  'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
80
  )
81
  );
@@ -84,7 +84,7 @@ class MEC_addon_elementor_shortcode extends \Elementor\Widget_Base
84
  $this->add_control(
85
  'type',
86
  array(
87
- 'label' => __('Select Type', 'modern-events-calendar-lite'),
88
  'type' => \Elementor\Controls_Manager::SELECT,
89
  'options' => $calendars,
90
  )
31
  */
32
  public function get_title()
33
  {
34
+ return esc_html__('Modern Events Calendar (MEC)', 'modern-events-calendar-lite');
35
  }
36
 
37
  /**
75
  $this->start_controls_section(
76
  'content_section',
77
  array(
78
+ 'label' => esc_html__('General', 'modern-events-calendar-lite'),
79
  'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
80
  )
81
  );
84
  $this->add_control(
85
  'type',
86
  array(
87
+ 'label' => esc_html__('Select Type', 'modern-events-calendar-lite'),
88
  'type' => \Elementor\Controls_Manager::SELECT,
89
  'options' => $calendars,
90
  )
app/addons/learndash.php CHANGED
@@ -64,7 +64,7 @@ class MEC_addon_learndash extends MEC_base
64
  if(!count($courses)) return;
65
  ?>
66
  <div class="mec-form-row">
67
- <label for="mec_tickets_<?php echo esc_attr($key); ?>_ld_course"><?php _e('LearnDash Course', 'modern-events-calendar-lite'); ?></label>
68
  <select name="mec[tickets][<?php echo esc_attr($key); ?>][ld_course]" id="mec_tickets_<?php echo esc_attr($key); ?>_ld_course">
69
  <option>-----</option>
70
  <?php foreach($courses as $course_id => $course_name): ?>
64
  if(!count($courses)) return;
65
  ?>
66
  <div class="mec-form-row">
67
+ <label for="mec_tickets_<?php echo esc_attr($key); ?>_ld_course"><?php esc_html_e('LearnDash Course', 'modern-events-calendar-lite'); ?></label>
68
  <select name="mec[tickets][<?php echo esc_attr($key); ?>][ld_course]" id="mec_tickets_<?php echo esc_attr($key); ?>_ld_course">
69
  <option>-----</option>
70
  <?php foreach($courses as $course_id => $course_name): ?>
app/addons/mec-beaver-builder/mec-beaver-builder.php CHANGED
@@ -4,9 +4,9 @@ class mecBeaverBuilderShortcode extends FLBuilderModule {
4
  public function __construct()
5
  {
6
  parent::__construct(array(
7
- 'name' => __( 'Modern Events Calendar (MEC)', 'modern-events-calendar-lite' ),
8
- 'description' => __( 'MEC Shortcodes', 'modern-events-calendar-lite' ),
9
- 'category' => __( 'Basic', 'modern-events-calendar-lite' ),
10
  'dir' => MEC_BEAVER_DIR . 'mec-beaver-builder/',
11
  'url' => MEC_BEAVER_URL . 'mec-beaver-builder/',
12
  'icon' => 'button.svg',
@@ -22,14 +22,14 @@ $calendars = array();
22
  foreach($calendar_posts as $calendar_post) $calendars[$calendar_post->ID] = $calendar_post->post_title;
23
  FLBuilder::register_module( 'mecBeaverBuilderShortcode', array(
24
  'my-tab-1' => array(
25
- 'title' => __( 'Content', 'modern-events-calendar-lite' ),
26
  'sections' => array(
27
  'my-section-1' => array(
28
- 'title' => __( 'Select Shortcode', 'modern-events-calendar-lite' ),
29
  'fields' => array(
30
  'mec_shortcode' => array(
31
  'type' => 'select',
32
- 'label' => __( 'Select Shortcode', 'modern-events-calendar-lite' ),
33
  'options' => $calendars,
34
  ),
35
  )
4
  public function __construct()
5
  {
6
  parent::__construct(array(
7
+ 'name' => esc_html__( 'Modern Events Calendar (MEC)', 'modern-events-calendar-lite' ),
8
+ 'description' => esc_html__( 'MEC Shortcodes', 'modern-events-calendar-lite' ),
9
+ 'category' => esc_html__( 'Basic', 'modern-events-calendar-lite' ),
10
  'dir' => MEC_BEAVER_DIR . 'mec-beaver-builder/',
11
  'url' => MEC_BEAVER_URL . 'mec-beaver-builder/',
12
  'icon' => 'button.svg',
22
  foreach($calendar_posts as $calendar_post) $calendars[$calendar_post->ID] = $calendar_post->post_title;
23
  FLBuilder::register_module( 'mecBeaverBuilderShortcode', array(
24
  'my-tab-1' => array(
25
+ 'title' => esc_html__( 'Content', 'modern-events-calendar-lite' ),
26
  'sections' => array(
27
  'my-section-1' => array(
28
+ 'title' => esc_html__( 'Select Shortcode', 'modern-events-calendar-lite' ),
29
  'fields' => array(
30
  'mec_shortcode' => array(
31
  'type' => 'select',
32
+ 'label' => esc_html__( 'Select Shortcode', 'modern-events-calendar-lite' ),
33
  'options' => $calendars,
34
  ),
35
  )
app/api/TFPDF/tfpdf.php CHANGED
@@ -1210,7 +1210,7 @@ function Output($dest='', $name='', $isUTF8=false)
1210
  header('Cache-Control: private, max-age=0, must-revalidate');
1211
  header('Pragma: public');
1212
  }
1213
- echo $this->buffer;
1214
  break;
1215
  case 'D':
1216
  // Download file
@@ -1219,7 +1219,7 @@ function Output($dest='', $name='', $isUTF8=false)
1219
  header('Content-Disposition: attachment; '.$this->_httpencode('filename',$name,$isUTF8));
1220
  header('Cache-Control: private, max-age=0, must-revalidate');
1221
  header('Pragma: public');
1222
- echo $this->buffer;
1223
  break;
1224
  case 'F':
1225
  // Save to local file
1210
  header('Cache-Control: private, max-age=0, must-revalidate');
1211
  header('Pragma: public');
1212
  }
1213
+ echo ($this->buffer);
1214
  break;
1215
  case 'D':
1216
  // Download file
1219
  header('Content-Disposition: attachment; '.$this->_httpencode('filename',$name,$isUTF8));
1220
  header('Cache-Control: private, max-age=0, must-revalidate');
1221
  header('Pragma: public');
1222
+ echo ($this->buffer);
1223
  break;
1224
  case 'F':
1225
  // Save to local file
app/core/puc/Puc/v4p11/Plugin/Ui.php CHANGED
@@ -51,7 +51,7 @@ if ( !class_exists('Puc_v4p11_Plugin_Ui', false) ):
51
  */
52
  public function addViewDetailsLink($pluginMeta, $pluginFile, $pluginData = array()) {
53
  if ( $this->isMyPluginFile($pluginFile) && !isset($pluginData['slug']) ) {
54
- $linkText = apply_filters($this->updateChecker->getUniqueName('view_details_link'), __('View details'));
55
  if ( !empty($linkText) ) {
56
  $viewDetailsLinkPosition = 'append';
57
 
51
  */
52
  public function addViewDetailsLink($pluginMeta, $pluginFile, $pluginData = array()) {
53
  if ( $this->isMyPluginFile($pluginFile) && !isset($pluginData['slug']) ) {
54
+ $linkText = apply_filters($this->updateChecker->getUniqueName('view_details_link'), esc_html__('View details'));
55
  if ( !empty($linkText) ) {
56
  $viewDetailsLinkPosition = 'append';
57
 
app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php CHANGED
@@ -97,7 +97,7 @@ if ( !class_exists('Puc_v4p11_Vcs_PluginUpdateChecker') ):
97
  if ( empty($info->sections['changelog']) ) {
98
  $info->sections['changelog'] = $api->getRemoteChangelog($ref, $this->package->getAbsoluteDirectoryPath());
99
  if ( empty($info->sections['changelog']) ) {
100
- $info->sections['changelog'] = __('There is no changelog available.', 'plugin-update-checker');
101
  }
102
  }
103
 
97
  if ( empty($info->sections['changelog']) ) {
98
  $info->sections['changelog'] = $api->getRemoteChangelog($ref, $this->package->getAbsoluteDirectoryPath());
99
  if ( empty($info->sections['changelog']) ) {
100
+ $info->sections['changelog'] = esc_html__('There is no changelog available.', 'plugin-update-checker');
101
  }
102
  }
103
 
app/core/src/Books/Book.php CHANGED
@@ -103,18 +103,18 @@ class Book extends PostBase {
103
  switch ( $status ) {
104
  case '-1':
105
 
106
- $text = __('Rejected', 'modern-events-calendar-lite');
107
 
108
  break;
109
  case '1':
110
 
111
- $text = __('Confirmed', 'modern-events-calendar-lite');
112
 
113
  break;
114
  case '0':
115
  default:
116
 
117
- $text = __('Pending', 'modern-events-calendar-lite');
118
 
119
  break;
120
  }
@@ -183,18 +183,18 @@ class Book extends PostBase {
183
  switch ( $status ) {
184
  case '-1':
185
 
186
- $text = __('Canceled', 'modern-events-calendar-lite');
187
 
188
  break;
189
  case '1':
190
 
191
- $text = __('Verified', 'modern-events-calendar-lite');
192
 
193
  break;
194
  case '0':
195
  default:
196
 
197
- $text = __('Waiting', 'modern-events-calendar-lite');
198
 
199
  break;
200
  }
103
  switch ( $status ) {
104
  case '-1':
105
 
106
+ $text = esc_html__('Rejected', 'modern-events-calendar-lite');
107
 
108
  break;
109
  case '1':
110
 
111
+ $text = esc_html__('Confirmed', 'modern-events-calendar-lite');
112
 
113
  break;
114
  case '0':
115
  default:
116
 
117
+ $text = esc_html__('Pending', 'modern-events-calendar-lite');
118
 
119
  break;
120
  }
183
  switch ( $status ) {
184
  case '-1':
185
 
186
+ $text = esc_html__('Canceled', 'modern-events-calendar-lite');
187
 
188
  break;
189
  case '1':
190
 
191
+ $text = esc_html__('Verified', 'modern-events-calendar-lite');
192
 
193
  break;
194
  case '0':
195
  default:
196
 
197
+ $text = esc_html__('Waiting', 'modern-events-calendar-lite');
198
 
199
  break;
200
  }
app/core/src/Books/BookingForm.php CHANGED
@@ -54,7 +54,7 @@ class BookingForm extends Singleton {
54
  } elseif ( isset($settings['booking_user_login']) && $settings['booking_user_login'] == '0' && !is_user_logged_in() && isset($booking_options['bookings_limit_for_users']) && $booking_options['bookings_limit_for_users'] == '1' ) {
55
  echo do_shortcode('[MEC_login]');
56
  } else {
57
- echo $mainClass->module('booking.default', array('event' => $MEC_Events));
58
  }
59
  ?>
60
  </div>
54
  } elseif ( isset($settings['booking_user_login']) && $settings['booking_user_login'] == '0' && !is_user_logged_in() && isset($booking_options['bookings_limit_for_users']) && $booking_options['bookings_limit_for_users'] == '1' ) {
55
  echo do_shortcode('[MEC_login]');
56
  } else {
57
+ echo \MEC_kses::full($mainClass->module('booking.default', array('event' => $MEC_Events)));
58
  }
59
  ?>
60
  </div>
app/core/src/Forms/DisplayFields.php CHANGED
@@ -79,19 +79,19 @@ class DisplayFields {
79
  case 'first_name':
80
  $field_type = 'text';
81
  $field_id = 'first_name';
82
- $field['label'] = isset( $field['label'] ) ? $field['label'] : __('First Name','modern-events-calendar-lite');
83
  $value = $current_user->first_name;
84
  break;
85
  case 'last_name':
86
  $field_type = 'text';
87
  $field_id = 'last_name';
88
- $field['label'] = isset( $field['label'] ) ? $field['label'] : __('Last Name','modern-events-calendar-lite');
89
  $value = $current_user->last_name;
90
  break;
91
  case 'mec_email':
92
  $field_type = 'email';
93
  $field_id = $type;
94
- $field['label'] = isset( $field['label'] ) ? $field['label'] : __('Email','modern-events-calendar-lite');
95
  $value = isset( $current_user->user_email ) ? $current_user->user_email : '';
96
  case 'email':
97
  $field_type = 'email';
@@ -165,7 +165,7 @@ class DisplayFields {
165
  if ( isset( $field['label'] ) && !empty( $field['label'] ) ) {
166
 
167
  $label_field = '<label for="' . esc_attr( $html_id ) . '" style="display:block" class="' . ( $required ? 'required' : '' ) . '">'
168
- . __( $field['label'], 'modern-events-calendar-lite' )
169
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
170
  . '</label>';
171
 
@@ -179,7 +179,7 @@ class DisplayFields {
179
  case 'last_name':
180
  case 'mec_email':
181
 
182
- $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? __( $field['placeholder'], 'modern-events-calendar-lite' ) : __( $field['label'], 'modern-events-calendar-lite' );
183
  $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="rsvp[attendees][' . $j . '][' . $type . ']" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
184
 
185
  break;
@@ -189,13 +189,13 @@ class DisplayFields {
189
  case 'email':
190
  case 'tel':
191
 
192
- $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? __( $field['placeholder'], 'modern-events-calendar-lite' ) : __( $field['label'], 'modern-events-calendar-lite' );
193
  $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="' . $field_name . '" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
194
 
195
  break;
196
  case 'textarea':
197
 
198
- $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? __( $field['placeholder'], 'modern-events-calendar-lite' ) : __( $field['label'], 'modern-events-calendar-lite' );
199
  $input_html = '<textarea id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" name="' . $field_name . '" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' ></textarea>';
200
 
201
  break;
@@ -208,7 +208,7 @@ class DisplayFields {
208
  $options = isset($field['options']) ? $field['options'] : [];
209
  foreach ( $options as $field_option ) {
210
  $rd++;
211
- $option_text = isset( $field_option['label'] ) ? __( $field_option['label'], 'modern-events-calendar-lite' ) : '';
212
  $option_value = ( $rd === 1 and isset( $field['ignore'] ) and $field['ignore'] ) ? '' : esc_attr__( $field_option['label'], 'modern-events-calendar-lite' );
213
 
214
  $input_html .= '<option value="' . $option_value . '" ' . selected( $selected, $option_value, false ) . '>' . $option_text . '</option>';
@@ -220,11 +220,11 @@ class DisplayFields {
220
  case 'checkbox':
221
  $options = isset($field['options']) ? $field['options'] : [];
222
  foreach ( $options as $field_option ) {
223
- $current_value = __( $field_option['label'], 'modern-events-calendar-lite' );
224
  $checked = in_array($current_value,(array)$value);
225
  $input_html .= '<label for="' . $html_id . $j . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) ) . '">'
226
  . '<input type="' . esc_attr( $field_type ) . '" id="mec_' . $form_type . '_field_' . $type . $j . '_' . $field_id . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) ) . '" name="' . $field_name . '[]" value="' . $current_value . '" '.checked($checked,true,false).'/>'
227
- . __( $field_option['label'], 'modern-events-calendar-lite' )
228
  . '</label>';
229
  }
230
 
@@ -235,7 +235,7 @@ class DisplayFields {
235
  $input_html = '<label for="' . $html_id . $j . '">'
236
  . '<input type="checkbox" id="' . $html_id . $j . '" name="' . $field_name . '" value="1" ' . checked( $checked, 'checked', false ) . ' onchange="mec_agreement_change(this);"/>'
237
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
238
- . sprintf( __( stripslashes( $field['label'] ), 'modern-events-calendar-lite' ), '<a href="' . get_the_permalink( $field['page'] ) . '" target="_blank">' . get_the_title( $field['page'] ) . '</a>' )
239
  . '</label>';
240
 
241
  break;
79
  case 'first_name':
80
  $field_type = 'text';
81
  $field_id = 'first_name';
82
+ $field['label'] = isset( $field['label'] ) ? $field['label'] : esc_html__('First Name','modern-events-calendar-lite');
83
  $value = $current_user->first_name;
84
  break;
85
  case 'last_name':
86
  $field_type = 'text';
87
  $field_id = 'last_name';
88
+ $field['label'] = isset( $field['label'] ) ? $field['label'] : esc_html__('Last Name','modern-events-calendar-lite');
89
  $value = $current_user->last_name;
90
  break;
91
  case 'mec_email':
92
  $field_type = 'email';
93
  $field_id = $type;
94
+ $field['label'] = isset( $field['label'] ) ? $field['label'] : esc_html__('Email','modern-events-calendar-lite');
95
  $value = isset( $current_user->user_email ) ? $current_user->user_email : '';
96
  case 'email':
97
  $field_type = 'email';
165
  if ( isset( $field['label'] ) && !empty( $field['label'] ) ) {
166
 
167
  $label_field = '<label for="' . esc_attr( $html_id ) . '" style="display:block" class="' . ( $required ? 'required' : '' ) . '">'
168
+ . esc_html__( $field['label'], 'modern-events-calendar-lite' )
169
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
170
  . '</label>';
171
 
179
  case 'last_name':
180
  case 'mec_email':
181
 
182
+ $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
183
  $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="rsvp[attendees][' . $j . '][' . $type . ']" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
184
 
185
  break;
189
  case 'email':
190
  case 'tel':
191
 
192
+ $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
193
  $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="' . $field_name . '" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
194
 
195
  break;
196
  case 'textarea':
197
 
198
+ $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
199
  $input_html = '<textarea id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" name="' . $field_name . '" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' ></textarea>';
200
 
201
  break;
208
  $options = isset($field['options']) ? $field['options'] : [];
209
  foreach ( $options as $field_option ) {
210
  $rd++;
211
+ $option_text = isset( $field_option['label'] ) ? esc_html__( $field_option['label'], 'modern-events-calendar-lite' ) : '';
212
  $option_value = ( $rd === 1 and isset( $field['ignore'] ) and $field['ignore'] ) ? '' : esc_attr__( $field_option['label'], 'modern-events-calendar-lite' );
213
 
214
  $input_html .= '<option value="' . $option_value . '" ' . selected( $selected, $option_value, false ) . '>' . $option_text . '</option>';
220
  case 'checkbox':
221
  $options = isset($field['options']) ? $field['options'] : [];
222
  foreach ( $options as $field_option ) {
223
+ $current_value = esc_html__( $field_option['label'], 'modern-events-calendar-lite' );
224
  $checked = in_array($current_value,(array)$value);
225
  $input_html .= '<label for="' . $html_id . $j . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) ) . '">'
226
  . '<input type="' . esc_attr( $field_type ) . '" id="mec_' . $form_type . '_field_' . $type . $j . '_' . $field_id . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) ) . '" name="' . $field_name . '[]" value="' . $current_value . '" '.checked($checked,true,false).'/>'
227
+ . esc_html__( $field_option['label'], 'modern-events-calendar-lite' )
228
  . '</label>';
229
  }
230
 
235
  $input_html = '<label for="' . $html_id . $j . '">'
236
  . '<input type="checkbox" id="' . $html_id . $j . '" name="' . $field_name . '" value="1" ' . checked( $checked, 'checked', false ) . ' onchange="mec_agreement_change(this);"/>'
237
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
238
+ . sprintf( esc_html__( stripslashes( $field['label'] ), 'modern-events-calendar-lite' ), '<a href="' . get_the_permalink( $field['page'] ) . '" target="_blank">' . get_the_title( $field['page'] ) . '</a>' )
239
  . '</label>';
240
 
241
  break;
app/core/src/Forms/FormFields.php CHANGED
@@ -48,17 +48,17 @@ class FormFields extends Singleton {
48
  public function field_text( $key, $values = array(), $prefix = 'reg' ) {
49
 
50
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '" class="mec_form_field_item">
51
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
52
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Text', 'modern-events-calendar-lite' ) . '</span>
53
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
54
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
55
  <label>
56
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
57
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
58
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
59
  </label>
60
  </p>
61
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
62
  <div>
63
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="text" />
64
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -82,31 +82,31 @@ class FormFields extends Singleton {
82
  switch($type){
83
  case 'first_name':
84
 
85
- $label = __( 'MEC First Name', 'modern-events-calendar-lite' );
86
  break;
87
  case 'last_name':
88
 
89
- $label = __( 'MEC Last Name', 'modern-events-calendar-lite' );
90
  break;
91
  default:
92
 
93
- $label = __( 'MEC Name', 'modern-events-calendar-lite' );
94
  break;
95
 
96
  }
97
 
98
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
99
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
100
  <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html( $label ) . '</span>
101
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
102
  <p class="mec_' . esc_attr( $prefix ) . '_field_options" style="display:none">
103
  <label>
104
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" />
105
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" checked="checked" disabled />
106
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
107
  </label>
108
  </p>
109
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
110
  <div>
111
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="'.$type.'" />
112
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -154,17 +154,17 @@ class FormFields extends Singleton {
154
  public function field_mec_email( $key, $values = array(), $prefix = 'reg' ) {
155
 
156
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
157
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
158
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'MEC Email', 'modern-events-calendar-lite' ) . '</span>
159
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
160
  <p class="mec_' . esc_attr( $prefix ) . '_field_options" style="display:none">
161
  <label>
162
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" />
163
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" checked="checked" disabled />
164
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
165
  </label>
166
  </p>
167
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
168
  <div>
169
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="mec_email" />
170
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -184,17 +184,17 @@ class FormFields extends Singleton {
184
  public function field_email( $key, $values = array(), $prefix = 'reg' ) {
185
 
186
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
187
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
188
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Email', 'modern-events-calendar-lite' ) . '</span>
189
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
190
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
191
  <label>
192
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
193
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
194
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
195
  </label>
196
  </p>
197
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
198
  <div>
199
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="email" />
200
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -215,17 +215,17 @@ class FormFields extends Singleton {
215
  public function field_url( $key, $values = array(), $prefix = 'reg' ) {
216
 
217
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
218
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
219
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'URL', 'modern-events-calendar-lite' ) . '</span>
220
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
221
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
222
  <label>
223
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
224
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
225
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
226
  </label>
227
  </p>
228
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
229
  <div>
230
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="url" />
231
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -246,17 +246,17 @@ class FormFields extends Singleton {
246
  public function field_file( $key, $values = array(), $prefix = 'reg' ) {
247
 
248
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
249
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
250
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'File', 'modern-events-calendar-lite' ) . '</span>
251
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
252
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
253
  <label>
254
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
255
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
256
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
257
  </label>
258
  </p>
259
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
260
  <div>
261
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="file" />
262
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -276,17 +276,17 @@ class FormFields extends Singleton {
276
  public function field_date( $key, $values = array(), $prefix = 'reg' ) {
277
 
278
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
279
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
280
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Date', 'modern-events-calendar-lite' ) . '</span>
281
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
282
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
283
  <label>
284
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
285
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
286
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
287
  </label>
288
  </p>
289
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
290
  <div>
291
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="date" />
292
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -307,17 +307,17 @@ class FormFields extends Singleton {
307
  public function field_tel( $key, $values = array(), $prefix = 'reg' ) {
308
 
309
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
310
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
311
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Tel', 'modern-events-calendar-lite' ) . '</span>
312
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
313
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
314
  <label>
315
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
316
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
317
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
318
  </label>
319
  </p>
320
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
321
  <div>
322
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="tel" />
323
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -338,17 +338,17 @@ class FormFields extends Singleton {
338
  public function field_textarea( $key, $values = array(), $prefix = 'reg' ) {
339
 
340
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
341
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
342
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Textarea', 'modern-events-calendar-lite' ) . '</span>
343
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
344
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
345
  <label>
346
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
347
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
348
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
349
  </label>
350
  </p>
351
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
352
  <div>
353
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="textarea" />
354
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -369,13 +369,13 @@ class FormFields extends Singleton {
369
  public function field_p( $key, $values = array(), $prefix = 'reg' ) {
370
 
371
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
372
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
373
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Paragraph', 'modern-events-calendar-lite' ) . '</span>
374
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
375
  <div>
376
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="p" />
377
  <textarea name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][content]">' . ( isset( $values['content'] ) ? htmlentities( stripslashes( $values['content'] ) ) : '' ) . '</textarea>
378
- <p class="description">' . __( 'HTML and shortcode are allowed.' ) . '</p>
379
  </div>
380
  </li>';
381
  }
@@ -393,17 +393,17 @@ class FormFields extends Singleton {
393
 
394
  $i = 0;
395
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
396
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
397
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Checkboxes', 'modern-events-calendar-lite' ) . '</span>
398
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
399
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
400
  <label>
401
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
402
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
403
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
404
  </label>
405
  </p>
406
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
407
  <div>
408
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="checkbox" />
409
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -418,7 +418,7 @@ class FormFields extends Singleton {
418
  }
419
 
420
  $field .= '</ul>
421
- <button type="button" class="mec-' . esc_attr( $prefix ) . '-field-add-option mec-field-add-option" data-field-id="' . esc_attr( $key ) . '">' . __( 'Option', 'modern-events-calendar-lite' ) . '</button>
422
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
423
  </div>
424
  </li>';
@@ -439,17 +439,17 @@ class FormFields extends Singleton {
439
 
440
  $i = 0;
441
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
442
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
443
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Radio Buttons', 'modern-events-calendar-lite' ) . '</span>
444
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
445
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
446
  <label>
447
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
448
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
449
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
450
  </label>
451
  </p>
452
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
453
  <div>
454
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="radio" />
455
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -464,7 +464,7 @@ class FormFields extends Singleton {
464
  }
465
 
466
  $field .= '</ul>
467
- <button type="button" class="mec-' . esc_attr( $prefix ) . '-field-add-option mec-field-add-option" data-field-id="' . esc_attr( $key ) . '">' . __( 'Option', 'modern-events-calendar-lite' ) . '</button>
468
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
469
  </div>
470
  </li>';
@@ -485,24 +485,24 @@ class FormFields extends Singleton {
485
 
486
  $i = 0;
487
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
488
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
489
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Dropdown', 'modern-events-calendar-lite' ) . '</span>
490
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
491
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
492
  <label>
493
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
494
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
495
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
496
  </label>
497
  </p>
498
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
499
  <label>
500
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][ignore]" value="0" />
501
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][ignore]" value="1" ' . ( ( isset( $values['ignore'] ) and $values['ignore'] ) ? 'checked="checked"' : '' ) . ' />
502
- ' . __( 'Consider first item as placeholder', 'modern-events-calendar-lite' ) . '
503
  </label>
504
  </p>
505
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
506
  <div>
507
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="select" />
508
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
@@ -517,7 +517,7 @@ class FormFields extends Singleton {
517
  }
518
 
519
  $field .= '</ul>
520
- <button type="button" class="mec-' . esc_attr( $prefix ) . '-field-add-option mec-field-add-option" data-field-id="' . esc_attr( $key ) . '">' . __( 'Option', 'modern-events-calendar-lite' ) . '</button>
521
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
522
  </div>
523
  </li>';
@@ -541,22 +541,22 @@ class FormFields extends Singleton {
541
 
542
  $i = 0;
543
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
544
- <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
545
- <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . __( 'Agreement', 'modern-events-calendar-lite' ) . '</span>
546
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
547
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
548
  <label>
549
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
550
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( !isset( $values['mandatory'] ) or ( isset( $values['mandatory'] ) and $values['mandatory'] ) ) ? 'checked="checked"' : '' ) . ' />
551
- ' . __( 'Required Field', 'modern-events-calendar-lite' ) . '
552
  </label>
553
  </p>
554
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
555
  <div>
556
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="agreement" />
557
- <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : esc_attr__('I agree with %s', 'modern-events-calendar-lite') ) . '" /><p class="description">' . __( 'Instead of %s, the page title with a link will be show.', 'modern-events-calendar-lite' ) . '</p>
558
  <div>
559
- <label for="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_page">' . __( 'Agreement Page', 'modern-events-calendar-lite' ) . '</label>
560
  <select id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_page" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][page]">';
561
 
562
  $page_options = '';
@@ -567,10 +567,10 @@ class FormFields extends Singleton {
567
  $field .= $page_options . '</select>
568
  </div>
569
  <div>
570
- <label for="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_status">' . __( 'Status', 'modern-events-calendar-lite' ) . '</label>
571
  <select id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_status" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][status]">
572
- <option value="checked" ' . ( ( isset( $values['status'] ) and $values['status'] === 'checked' ) ? 'selected="selected"' : '' ) . '>' . __( 'Checked by default', 'modern-events-calendar-lite' ) . '</option>
573
- <option value="unchecked" ' . ( ( isset( $values['status'] ) and $values['status'] === 'unchecked' ) ? 'selected="selected"' : '' ) . '>' . __( 'Unchecked by default', 'modern-events-calendar-lite' ) . '</option>
574
  </select>
575
  </div>
576
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
@@ -593,8 +593,8 @@ class FormFields extends Singleton {
593
  public function field_option( $field_key, $key, $values = array(), $prefix = 'reg' ) {
594
 
595
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_option_' . esc_attr( $field_key ) . '_' . esc_attr( $key ) . '" class="mec_fields_option">
596
- <span class="mec_' . esc_attr( $prefix ) . '_field_option_sort mec_field_option_sort">' . __( 'Sort', 'modern-events-calendar-lite' ) . '</span>
597
- <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . __( 'Remove', 'modern-events-calendar-lite' ) . '</span>
598
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $field_key ) . '][options][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this option', 'modern-events-calendar-lite' ) . '" value="' . ( ( isset( $values['options'] ) and isset( $values['options'][ $key ] ) ) ? esc_attr( stripslashes( $values['options'][ $key ]['label'] ) ) : '' ) . '" />
599
  </li>';
600
  }
48
  public function field_text( $key, $values = array(), $prefix = 'reg' ) {
49
 
50
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '" class="mec_form_field_item">
51
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
52
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Text', 'modern-events-calendar-lite' ) . '</span>
53
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
54
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
55
  <label>
56
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
57
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
58
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
59
  </label>
60
  </p>
61
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
62
  <div>
63
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="text" />
64
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
82
  switch($type){
83
  case 'first_name':
84
 
85
+ $label = esc_html__( 'MEC First Name', 'modern-events-calendar-lite' );
86
  break;
87
  case 'last_name':
88
 
89
+ $label = esc_html__( 'MEC Last Name', 'modern-events-calendar-lite' );
90
  break;
91
  default:
92
 
93
+ $label = esc_html__( 'MEC Name', 'modern-events-calendar-lite' );
94
  break;
95
 
96
  }
97
 
98
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
99
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
100
  <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html( $label ) . '</span>
101
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
102
  <p class="mec_' . esc_attr( $prefix ) . '_field_options" style="display:none">
103
  <label>
104
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" />
105
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" checked="checked" disabled />
106
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
107
  </label>
108
  </p>
109
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
110
  <div>
111
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="'.$type.'" />
112
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
154
  public function field_mec_email( $key, $values = array(), $prefix = 'reg' ) {
155
 
156
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
157
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
158
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'MEC Email', 'modern-events-calendar-lite' ) . '</span>
159
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
160
  <p class="mec_' . esc_attr( $prefix ) . '_field_options" style="display:none">
161
  <label>
162
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" />
163
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" checked="checked" disabled />
164
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
165
  </label>
166
  </p>
167
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
168
  <div>
169
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="mec_email" />
170
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
184
  public function field_email( $key, $values = array(), $prefix = 'reg' ) {
185
 
186
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
187
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
188
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Email', 'modern-events-calendar-lite' ) . '</span>
189
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
190
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
191
  <label>
192
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
193
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
194
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
195
  </label>
196
  </p>
197
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
198
  <div>
199
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="email" />
200
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
215
  public function field_url( $key, $values = array(), $prefix = 'reg' ) {
216
 
217
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
218
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
219
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'URL', 'modern-events-calendar-lite' ) . '</span>
220
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
221
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
222
  <label>
223
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
224
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
225
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
226
  </label>
227
  </p>
228
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
229
  <div>
230
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="url" />
231
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
246
  public function field_file( $key, $values = array(), $prefix = 'reg' ) {
247
 
248
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
249
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
250
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'File', 'modern-events-calendar-lite' ) . '</span>
251
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
252
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
253
  <label>
254
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
255
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
256
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
257
  </label>
258
  </p>
259
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
260
  <div>
261
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="file" />
262
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
276
  public function field_date( $key, $values = array(), $prefix = 'reg' ) {
277
 
278
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
279
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
280
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Date', 'modern-events-calendar-lite' ) . '</span>
281
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
282
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
283
  <label>
284
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
285
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
286
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
287
  </label>
288
  </p>
289
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
290
  <div>
291
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="date" />
292
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
307
  public function field_tel( $key, $values = array(), $prefix = 'reg' ) {
308
 
309
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
310
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
311
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Tel', 'modern-events-calendar-lite' ) . '</span>
312
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
313
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
314
  <label>
315
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
316
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
317
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
318
  </label>
319
  </p>
320
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
321
  <div>
322
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="tel" />
323
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
338
  public function field_textarea( $key, $values = array(), $prefix = 'reg' ) {
339
 
340
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
341
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
342
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Textarea', 'modern-events-calendar-lite' ) . '</span>
343
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
344
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
345
  <label>
346
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
347
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
348
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
349
  </label>
350
  </p>
351
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
352
  <div>
353
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="textarea" />
354
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
369
  public function field_p( $key, $values = array(), $prefix = 'reg' ) {
370
 
371
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
372
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
373
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Paragraph', 'modern-events-calendar-lite' ) . '</span>
374
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
375
  <div>
376
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="p" />
377
  <textarea name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][content]">' . ( isset( $values['content'] ) ? htmlentities( stripslashes( $values['content'] ) ) : '' ) . '</textarea>
378
+ <p class="description">' . esc_html__( 'HTML and shortcode are allowed.' ) . '</p>
379
  </div>
380
  </li>';
381
  }
393
 
394
  $i = 0;
395
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
396
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
397
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Checkboxes', 'modern-events-calendar-lite' ) . '</span>
398
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
399
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
400
  <label>
401
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
402
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
403
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
404
  </label>
405
  </p>
406
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
407
  <div>
408
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="checkbox" />
409
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
418
  }
419
 
420
  $field .= '</ul>
421
+ <button type="button" class="mec-' . esc_attr( $prefix ) . '-field-add-option mec-field-add-option" data-field-id="' . esc_attr( $key ) . '">' . esc_html__( 'Option', 'modern-events-calendar-lite' ) . '</button>
422
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
423
  </div>
424
  </li>';
439
 
440
  $i = 0;
441
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
442
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
443
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Radio Buttons', 'modern-events-calendar-lite' ) . '</span>
444
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
445
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
446
  <label>
447
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
448
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
449
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
450
  </label>
451
  </p>
452
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
453
  <div>
454
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="radio" />
455
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
464
  }
465
 
466
  $field .= '</ul>
467
+ <button type="button" class="mec-' . esc_attr( $prefix ) . '-field-add-option mec-field-add-option" data-field-id="' . esc_attr( $key ) . '">' . esc_html__( 'Option', 'modern-events-calendar-lite' ) . '</button>
468
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
469
  </div>
470
  </li>';
485
 
486
  $i = 0;
487
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
488
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
489
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Dropdown', 'modern-events-calendar-lite' ) . '</span>
490
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
491
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
492
  <label>
493
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
494
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( isset( $values['mandatory'] ) and $values['mandatory'] ) ? 'checked="checked"' : '' ) . ' />
495
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
496
  </label>
497
  </p>
498
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
499
  <label>
500
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][ignore]" value="0" />
501
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][ignore]" value="1" ' . ( ( isset( $values['ignore'] ) and $values['ignore'] ) ? 'checked="checked"' : '' ) . ' />
502
+ ' . esc_html__( 'Consider first item as placeholder', 'modern-events-calendar-lite' ) . '
503
  </label>
504
  </p>
505
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
506
  <div>
507
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="select" />
508
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
517
  }
518
 
519
  $field .= '</ul>
520
+ <button type="button" class="mec-' . esc_attr( $prefix ) . '-field-add-option mec-field-add-option" data-field-id="' . esc_attr( $key ) . '">' . esc_html__( 'Option', 'modern-events-calendar-lite' ) . '</button>
521
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
522
  </div>
523
  </li>';
541
 
542
  $i = 0;
543
  $field = '<li id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '">
544
+ <span class="mec_' . esc_attr( $prefix ) . '_field_sort mec_field_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
545
+ <span class="mec_' . esc_attr( $prefix ) . '_field_type mec_field_type">' . esc_html__( 'Agreement', 'modern-events-calendar-lite' ) . '</span>
546
  ' . ( $prefix === 'event' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%event_field_' . esc_attr( $key ) . '%%</span>' : ( $prefix === 'bfixed' ? '<span class="mec_' . esc_attr( $prefix ) . '_notification_placeholder">%%booking_field_' . esc_attr( $key ) . '%%</span>' : '' ) ) . '
547
  <p class="mec_' . esc_attr( $prefix ) . '_field_options">
548
  <label>
549
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="0" />
550
  <input type="checkbox" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][mandatory]" value="1" ' . ( ( !isset( $values['mandatory'] ) or ( isset( $values['mandatory'] ) and $values['mandatory'] ) ) ? 'checked="checked"' : '' ) . ' />
551
+ ' . esc_html__( 'Required Field', 'modern-events-calendar-lite' ) . '
552
  </label>
553
  </p>
554
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
555
  <div>
556
  <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="agreement" />
557
+ <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : esc_attr__('I agree with %s', 'modern-events-calendar-lite') ) . '" /><p class="description">' . esc_html__( 'Instead of %s, the page title with a link will be show.', 'modern-events-calendar-lite' ) . '</p>
558
  <div>
559
+ <label for="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_page">' . esc_html__( 'Agreement Page', 'modern-events-calendar-lite' ) . '</label>
560
  <select id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_page" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][page]">';
561
 
562
  $page_options = '';
567
  $field .= $page_options . '</select>
568
  </div>
569
  <div>
570
+ <label for="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_status">' . esc_html__( 'Status', 'modern-events-calendar-lite' ) . '</label>
571
  <select id="mec_' . esc_attr( $prefix ) . '_fields_' . esc_attr( $key ) . '_status" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][status]">
572
+ <option value="checked" ' . ( ( isset( $values['status'] ) and $values['status'] === 'checked' ) ? 'selected="selected"' : '' ) . '>' . esc_html__( 'Checked by default', 'modern-events-calendar-lite' ) . '</option>
573
+ <option value="unchecked" ' . ( ( isset( $values['status'] ) and $values['status'] === 'unchecked' ) ? 'selected="selected"' : '' ) . '>' . esc_html__( 'Unchecked by default', 'modern-events-calendar-lite' ) . '</option>
574
  </select>
575
  </div>
576
  <input type="hidden" id="mec_new_' . esc_attr( $prefix ) . '_field_option_key_' . esc_attr( $key ) . '" value="' . ( $i + 1 ) . '" />
593
  public function field_option( $field_key, $key, $values = array(), $prefix = 'reg' ) {
594
 
595
  return '<li id="mec_' . esc_attr( $prefix ) . '_fields_option_' . esc_attr( $field_key ) . '_' . esc_attr( $key ) . '" class="mec_fields_option">
596
+ <span class="mec_' . esc_attr( $prefix ) . '_field_option_sort mec_field_option_sort">' . esc_html__( 'Sort', 'modern-events-calendar-lite' ) . '</span>
597
+ <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
598
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $field_key ) . '][options][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this option', 'modern-events-calendar-lite' ) . '" value="' . ( ( isset( $values['options'] ) and isset( $values['options'][ $key ] ) ) ? esc_attr( stripslashes( $values['options'][ $key ]['label'] ) ) : '' ) . '" />
599
  </li>';
600
  }
app/core/src/Forms/SettingsForm.php CHANGED
@@ -70,72 +70,72 @@ class SettingsForm extends Singleton {
70
  $elements = array(
71
  'first_name' => array(
72
  'required' => true,
73
- 'text' => __( 'MEC First Name', 'modern-events-calendar-lite' ),
74
  'class' => 'red',
75
  ),
76
  'last_name' => array(
77
  'required' => true,
78
- 'text' => __( 'MEC Last Name', 'modern-events-calendar-lite' ),
79
  'class' => 'red',
80
  ),
81
  'mec_email' => array(
82
  'required' => true,
83
- 'text' => __( 'MEC Email', 'modern-events-calendar-lite' ),
84
  'class' => 'red',
85
  ),
86
  'text' => array(
87
  'required' => false,
88
- 'text' => __( 'Text', 'modern-events-calendar-lite' ),
89
  'class' => '',
90
  ),
91
  'email' => array(
92
  'required' => false,
93
- 'text' => __( 'Email', 'modern-events-calendar-lite' ),
94
  'class' => '',
95
  ),
96
  'date' => array(
97
  'required' => false,
98
- 'text' => __( 'Date', 'modern-events-calendar-lite' ),
99
  'class' => '',
100
  ),
101
  'tel' => array(
102
  'required' => false,
103
- 'text' => __( 'Tel', 'modern-events-calendar-lite' ),
104
  'class' => '',
105
  ),
106
  'file' => array(
107
  'required' => false,
108
- 'text' => __( 'File', 'modern-events-calendar-lite' ),
109
  'class' => '',
110
  ),
111
  'textarea' => array(
112
  'required' => false,
113
- 'text' => __( 'Textarea', 'modern-events-calendar-lite' ),
114
  'class' => '',
115
  ),
116
  'checkbox' => array(
117
  'required' => false,
118
- 'text' => __( 'Checkboxes', 'modern-events-calendar-lite' ),
119
  'class' => '',
120
  ),
121
  'radio' => array(
122
  'required' => false,
123
- 'text' => __( 'Radio Buttons', 'modern-events-calendar-lite' ),
124
  'class' => '',
125
  ),
126
  'select' => array(
127
  'required' => false,
128
- 'text' => __( 'Dropdown', 'modern-events-calendar-lite' ),
129
  'class' => '',
130
  ),
131
  'agreement' => array(
132
  'required' => false,
133
- 'text' => __( 'Agreement', 'modern-events-calendar-lite' ),
134
  'class' => '',
135
  ),
136
  'p' => array(
137
  'required' => false,
138
- 'text' => __( 'Paragraph', 'modern-events-calendar-lite' ),
139
  'class' => '',
140
  ),
141
  );
@@ -180,7 +180,7 @@ class SettingsForm extends Singleton {
180
  $i = max( $i, (int)$key );
181
 
182
 
183
- echo $this->display_field( $key, $field_args, $type );
184
  }
185
 
186
  ?>
70
  $elements = array(
71
  'first_name' => array(
72
  'required' => true,
73
+ 'text' => esc_html__( 'MEC First Name', 'modern-events-calendar-lite' ),
74
  'class' => 'red',
75
  ),
76
  'last_name' => array(
77
  'required' => true,
78
+ 'text' => esc_html__( 'MEC Last Name', 'modern-events-calendar-lite' ),
79
  'class' => 'red',
80
  ),
81
  'mec_email' => array(
82
  'required' => true,
83
+ 'text' => esc_html__( 'MEC Email', 'modern-events-calendar-lite' ),
84
  'class' => 'red',
85
  ),
86
  'text' => array(
87
  'required' => false,
88
+ 'text' => esc_html__( 'Text', 'modern-events-calendar-lite' ),
89
  'class' => '',
90
  ),
91
  'email' => array(
92
  'required' => false,
93
+ 'text' => esc_html__( 'Email', 'modern-events-calendar-lite' ),
94
  'class' => '',
95
  ),
96
  'date' => array(
97
  'required' => false,
98
+ 'text' => esc_html__( 'Date', 'modern-events-calendar-lite' ),
99
  'class' => '',
100
  ),
101
  'tel' => array(
102
  'required' => false,
103
+ 'text' => esc_html__( 'Tel', 'modern-events-calendar-lite' ),
104
  'class' => '',
105
  ),
106
  'file' => array(
107
  'required' => false,
108
+ 'text' => esc_html__( 'File', 'modern-events-calendar-lite' ),
109
  'class' => '',
110
  ),
111
  'textarea' => array(
112
  'required' => false,
113
+ 'text' => esc_html__( 'Textarea', 'modern-events-calendar-lite' ),
114
  'class' => '',
115
  ),
116
  'checkbox' => array(
117
  'required' => false,
118
+ 'text' => esc_html__( 'Checkboxes', 'modern-events-calendar-lite' ),
119
  'class' => '',
120
  ),
121
  'radio' => array(
122
  'required' => false,
123
+ 'text' => esc_html__( 'Radio Buttons', 'modern-events-calendar-lite' ),
124
  'class' => '',
125
  ),
126
  'select' => array(
127
  'required' => false,
128
+ 'text' => esc_html__( 'Dropdown', 'modern-events-calendar-lite' ),
129
  'class' => '',
130
  ),
131
  'agreement' => array(
132
  'required' => false,
133
+ 'text' => esc_html__( 'Agreement', 'modern-events-calendar-lite' ),
134
  'class' => '',
135
  ),
136
  'p' => array(
137
  'required' => false,
138
+ 'text' => esc_html__( 'Paragraph', 'modern-events-calendar-lite' ),
139
  'class' => '',
140
  ),
141
  );
180
  $i = max( $i, (int)$key );
181
 
182
 
183
+ echo \MEC_kses::form($this->display_field( $key, $field_args, $type ));
184
  }
185
 
186
  ?>
app/core/src/Notifications/SendEmail.php CHANGED
@@ -72,7 +72,7 @@ class SendEmail{
72
 
73
  $subject = $this->get_notification_settings( 'subject' );
74
 
75
- return !is_null($subject) ? __($subject,'modern-events-calendar-lite') : $default;
76
  }
77
 
78
  public function get_content( $default = '' ){
72
 
73
  $subject = $this->get_notification_settings( 'subject' );
74
 
75
+ return !is_null($subject) ? esc_html__($subject,'modern-events-calendar-lite') : $default;
76
  }
77
 
78
  public function get_content( $default = '' ){
app/core/src/Notifications/template-notification-settings.php CHANGED
@@ -25,7 +25,7 @@ $options = $atts['options'];
25
  <input onchange="jQuery('#mec_notification_<?php echo esc_attr( $group_id ); ?>_notification_container_toggle').toggle();" value="1" type="checkbox" name="<?php echo esc_attr( $base_field_name ); ?>[<?php echo esc_attr( $group_id ); ?>_notification][status]" <?php if(!isset($options['status']) or (isset($options['status']) and $options['status'])) echo 'checked="checked"'; ?> /> <?php $enable_options_text; ?>
26
  </label>
27
  </div>
28
- <p class="mec-col-12 description"><?php echo $enable_options_description ?></p>
29
  </div>
30
  <div id="mec_notification_<?php echo esc_attr( $group_id ); ?>_notification_container_toggle" class="<?php if(isset($options) and isset($options['status']) and !$options['status']) echo 'mec-util-hidden'; ?>">
31
 
@@ -33,7 +33,7 @@ $options = $atts['options'];
33
 
34
  <div class="mec-form-row">
35
  <div class="mec-col-3">
36
- <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_subject"><?php _e('Email Subject', 'modern-events-calendar-lite'); ?></label>
37
  </div>
38
  <div class="mec-col-9">
39
  <input type="text" name="<?php echo esc_attr( $base_field_name ); ?>[<?php echo esc_attr( $group_id ); ?>_notification][subject]" id="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_subject" value="<?php echo (isset($options['subject']) ? stripslashes($options['subject']) : ''); ?>" />
@@ -43,7 +43,7 @@ $options = $atts['options'];
43
  <!-- Start Receiver Users -->
44
  <div class="mec-form-row">
45
  <div class="mec-col-3">
46
- <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_receiver_users"><?php _e('Receiver Users', 'modern-events-calendar-lite'); ?></label>
47
  </div>
48
  <div class="mec-col-9">
49
  <?php
@@ -52,7 +52,7 @@ $options = $atts['options'];
52
  ?>
53
  <span class="mec-tooltip">
54
  <div class="box left">
55
- <h5 class="title"><?php _e('Receiver Users', 'modern-events-calendar-lite'); ?></h5>
56
  <div class="content"><p><?php esc_attr_e('Select users to send a copy of email to them!', 'modern-events-calendar-lite'); ?></p></div>
57
  </div>
58
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -64,7 +64,7 @@ $options = $atts['options'];
64
  <!-- Start Receiver Roles -->
65
  <div class="mec-form-row">
66
  <div class="mec-col-3">
67
- <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_receiver_roles"><?php _e('Receiver Roles', 'modern-events-calendar-lite'); ?></label>
68
  </div>
69
  <div class="mec-col-9">
70
  <?php
@@ -73,7 +73,7 @@ $options = $atts['options'];
73
  ?>
74
  <span class="mec-tooltip">
75
  <div class="box left">
76
- <h5 class="title"><?php _e('Receiver Roles', 'modern-events-calendar-lite'); ?></h5>
77
  <div class="content"><p><?php esc_attr_e('Select users a specific role.', 'modern-events-calendar-lite'); ?></p></div>
78
  </div>
79
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -84,14 +84,14 @@ $options = $atts['options'];
84
 
85
  <div class="mec-form-row">
86
  <div class="mec-col-3">
87
- <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_recipients"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
88
  </div>
89
  <div class="mec-col-9">
90
  <input type="text" name="<?php echo esc_attr( $base_field_name ); ?>[<?php echo esc_attr( $group_id ); ?>_notification][recipients]" id="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_recipients" value="<?php echo (isset($options['recipients']) ? $options['recipients'] : ''); ?>" />
91
  <span class="mec-tooltip">
92
  <div class="box left">
93
- <h5 class="title"><?php _e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
94
- <div class="content"><p><?php esc_attr_e('Insert comma separated emails for multiple recipients.', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/notifications/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
95
  </div>
96
  <i title="" class="dashicons-before dashicons-editor-help"></i>
97
  </span>
@@ -101,7 +101,7 @@ $options = $atts['options'];
101
  <?php do_action( 'mec_notifications_settings_before_editor', $group_id, $options ); ?>
102
 
103
  <div class="mec-form-row">
104
- <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_content"><?php _e('Email Content', 'modern-events-calendar-lite'); ?></label>
105
  <?php
106
  $content = isset($options['content']) ? stripslashes($options['content']) : '';
107
  wp_editor(
@@ -118,7 +118,7 @@ $options = $atts['options'];
118
 
119
  <div class="mec-form-row">
120
  <div class="mec-col-12">
121
- <p class="description"><?php _e('You can use the following placeholders', 'modern-events-calendar-lite'); ?></p>
122
  <ul>
123
  <?php foreach($placeholders as $p_key => $p_text): ?>
124
  <li><span><?php echo esc_attr( $p_key ) ?></span>: <?php echo esc_html( $p_text ); ?></li>
25
  <input onchange="jQuery('#mec_notification_<?php echo esc_attr( $group_id ); ?>_notification_container_toggle').toggle();" value="1" type="checkbox" name="<?php echo esc_attr( $base_field_name ); ?>[<?php echo esc_attr( $group_id ); ?>_notification][status]" <?php if(!isset($options['status']) or (isset($options['status']) and $options['status'])) echo 'checked="checked"'; ?> /> <?php $enable_options_text; ?>
26
  </label>
27
  </div>
28
+ <p class="mec-col-12 description"><?php echo esc_html($enable_options_description); ?></p>
29
  </div>
30
  <div id="mec_notification_<?php echo esc_attr( $group_id ); ?>_notification_container_toggle" class="<?php if(isset($options) and isset($options['status']) and !$options['status']) echo 'mec-util-hidden'; ?>">
31
 
33
 
34
  <div class="mec-form-row">
35
  <div class="mec-col-3">
36
+ <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
37
  </div>
38
  <div class="mec-col-9">
39
  <input type="text" name="<?php echo esc_attr( $base_field_name ); ?>[<?php echo esc_attr( $group_id ); ?>_notification][subject]" id="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_subject" value="<?php echo (isset($options['subject']) ? stripslashes($options['subject']) : ''); ?>" />
43
  <!-- Start Receiver Users -->
44
  <div class="mec-form-row">
45
  <div class="mec-col-3">
46
+ <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_receiver_users"><?php esc_html_e('Receiver Users', 'modern-events-calendar-lite'); ?></label>
47
  </div>
48
  <div class="mec-col-9">
49
  <?php
52
  ?>
53
  <span class="mec-tooltip">
54
  <div class="box left">
55
+ <h5 class="title"><?php esc_html_e('Receiver Users', 'modern-events-calendar-lite'); ?></h5>
56
  <div class="content"><p><?php esc_attr_e('Select users to send a copy of email to them!', 'modern-events-calendar-lite'); ?></p></div>
57
  </div>
58
  <i title="" class="dashicons-before dashicons-editor-help"></i>
64
  <!-- Start Receiver Roles -->
65
  <div class="mec-form-row">
66
  <div class="mec-col-3">
67
+ <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_receiver_roles"><?php esc_html_e('Receiver Roles', 'modern-events-calendar-lite'); ?></label>
68
  </div>
69
  <div class="mec-col-9">
70
  <?php
73
  ?>
74
  <span class="mec-tooltip">
75
  <div class="box left">
76
+ <h5 class="title"><?php esc_html_e('Receiver Roles', 'modern-events-calendar-lite'); ?></h5>
77
  <div class="content"><p><?php esc_attr_e('Select users a specific role.', 'modern-events-calendar-lite'); ?></p></div>
78
  </div>
79
  <i title="" class="dashicons-before dashicons-editor-help"></i>
84
 
85
  <div class="mec-form-row">
86
  <div class="mec-col-3">
87
+ <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
88
  </div>
89
  <div class="mec-col-9">
90
  <input type="text" name="<?php echo esc_attr( $base_field_name ); ?>[<?php echo esc_attr( $group_id ); ?>_notification][recipients]" id="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_recipients" value="<?php echo (isset($options['recipients']) ? $options['recipients'] : ''); ?>" />
91
  <span class="mec-tooltip">
92
  <div class="box left">
93
+ <h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
94
+ <div class="content"><p><?php esc_attr_e('Insert comma separated emails for multiple recipients.', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/notifications/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
95
  </div>
96
  <i title="" class="dashicons-before dashicons-editor-help"></i>
97
  </span>
101
  <?php do_action( 'mec_notifications_settings_before_editor', $group_id, $options ); ?>
102
 
103
  <div class="mec-form-row">
104
+ <label for="mec_notifications_<?php echo esc_attr( $group_id ); ?>_notification_content"><?php esc_html_e('Email Content', 'modern-events-calendar-lite'); ?></label>
105
  <?php
106
  $content = isset($options['content']) ? stripslashes($options['content']) : '';
107
  wp_editor(
118
 
119
  <div class="mec-form-row">
120
  <div class="mec-col-12">
121
+ <p class="description"><?php esc_html_e('You can use the following placeholders', 'modern-events-calendar-lite'); ?></p>
122
  <ul>
123
  <?php foreach($placeholders as $p_key => $p_text): ?>
124
  <li><span><?php echo esc_attr( $p_key ) ?></span>: <?php echo esc_html( $p_text ); ?></li>
app/core/src/SingleBuilder/Widgets/BookingForm/BookingForm.php CHANGED
@@ -15,7 +15,7 @@ class BookingForm extends WidgetBase {
15
  return ob_get_clean();
16
  }
17
 
18
- /**
19
  * Get HTML Output
20
  *
21
  * @param int $event_id
@@ -34,6 +34,16 @@ class BookingForm extends WidgetBase {
34
  return '';
35
  }
36
 
 
 
 
 
 
 
 
 
 
 
37
  $settings = $this->settings;
38
  $event_detail = $this->get_event_detail($event_id);
39
  $html = '';
@@ -42,9 +52,9 @@ class BookingForm extends WidgetBase {
42
  $html = '<div class="mec-content-notification">
43
  <p>'
44
  .'<span>'
45
- . __('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set Booking module for your last event.', 'modern-events-calendar-lite')
46
  .'</span>'
47
- .'<a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank">' . __('How to set booking module', 'modern-events-calendar-lite') . ' </a>'
48
  .'</p>'
49
  .'</div>';
50
  } else {
@@ -67,9 +77,9 @@ class BookingForm extends WidgetBase {
67
 
68
  $html .= '<div class="mec-content-notification"><p>'
69
  .'<span>'
70
- . __('This widget is displayed if Booking is set. In order for the widget in this page to be displayed correctly, please set Booking module for your last event.', 'modern-events-calendar-lite')
71
  .'</span>'
72
- .'<a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/" target="_blank">' . __('How to set Booking module', 'modern-events-calendar-lite') . ' </a>'
73
  .'</p></div>';
74
  }
75
  }
15
  return ob_get_clean();
16
  }
17
 
18
+ /**
19
  * Get HTML Output
20
  *
21
  * @param int $event_id
34
  return '';
35
  }
36
 
37
+ if( isset( $atts['display_price_label'] ) && $atts['display_price_label'] ){
38
+ update_option('mec_filter_price_label','yes');
39
+ update_option('mec_filter_ticket_price_label','yes');
40
+
41
+ }else{
42
+
43
+ update_option('mec_filter_price_label','no');
44
+ update_option('mec_filter_ticket_price_label','no');
45
+ }
46
+
47
  $settings = $this->settings;
48
  $event_detail = $this->get_event_detail($event_id);
49
  $html = '';
52
  $html = '<div class="mec-content-notification">
53
  <p>'
54
  .'<span>'
55
+ . esc_html__('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set Booking module for your last event.', 'modern-events-calendar-lite')
56
  .'</span>'
57
+ .'<a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank">' . esc_html__('How to set booking module', 'modern-events-calendar-lite') . ' </a>'
58
  .'</p>'
59
  .'</div>';
60
  } else {
77
 
78
  $html .= '<div class="mec-content-notification"><p>'
79
  .'<span>'
80
+ . esc_html__('This widget is displayed if Booking is set. In order for the widget in this page to be displayed correctly, please set Booking module for your last event.', 'modern-events-calendar-lite')
81
  .'</span>'
82
+ .'<a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/" target="_blank">' . esc_html__('How to set Booking module', 'modern-events-calendar-lite') . ' </a>'
83
  .'</p></div>';
84
  }
85
  }
app/core/src/SingleBuilder/Widgets/Content/Content.php CHANGED
@@ -36,7 +36,7 @@ class Content extends WidgetBase {
36
  $content = str_replace( ']]>', ']]&gt;', $content );
37
  }else{
38
 
39
- if( 'yes' !== get_post_meta( $event_id, '_elementor_edit_mode', true ) ){
40
 
41
  $content = \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $event_id );
42
  }
36
  $content = str_replace( ']]>', ']]&gt;', $content );
37
  }else{
38
 
39
+ if( 'yes' === get_post_meta( $event_id, '_elementor_edit_mode', true ) ){
40
 
41
  $content = \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $event_id );
42
  }
app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php CHANGED
@@ -32,8 +32,8 @@ class EventAttendees extends WidgetBase {
32
  if ( true === $this->is_editor_mode && (!isset($settings['bp_status']) || !$settings['bp_status']) ) {
33
 
34
  $html = '<div class="mec-content-notification"><p>'
35
- .'<span>'. __('This widget is displayed if buddypress is set. In order for the widget in this page to be displayed correctly, please set buddypress for your last event.', 'modern-events-calendar-lite').'</span>'
36
- . '<a href="https://webnus.net/dox/modern-events-calendar/buddypress/" target="_blank">' . __('How to set buddypress', 'modern-events-calendar-lite') . ' </a>'
37
  .'</p></div>';
38
  } else {
39
 
32
  if ( true === $this->is_editor_mode && (!isset($settings['bp_status']) || !$settings['bp_status']) ) {
33
 
34
  $html = '<div class="mec-content-notification"><p>'
35
+ .'<span>'. esc_html__('This widget is displayed if buddypress is set. In order for the widget in this page to be displayed correctly, please set buddypress for your last event.', 'modern-events-calendar-lite').'</span>'
36
+ . '<a href="https://webnus.net/dox/modern-events-calendar/buddypress/" target="_blank">' . esc_html__('How to set buddypress', 'modern-events-calendar-lite') . ' </a>'
37
  .'</p></div>';
38
  } else {
39
 
app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php CHANGED
@@ -52,8 +52,8 @@ class EventBreadcrumbs extends WidgetBase {
52
  if ( true === $this->is_editor_mode && ( !isset($settings['breadcrumbs']) || !$settings['breadcrumbs'] ) ) {
53
 
54
  $html = '<div class="mec-content-notification"><p>'
55
- .'<span>'. __('This widget is displayed if breadcrumbs is set. In order for the widget in this page to be displayed correctly, please set breadcrumbs for your last event.', 'modern-events-calendar-lite').'</span>'
56
- . '<a href="https://webnus.net/dox/modern-events-calendar/event-detailssingle-event-page/" target="_blank">' . __('How to set breadcrumbs', 'modern-events-calendar-lite') . ' </a>'
57
  .'</p></div>';
58
  } else {
59
 
52
  if ( true === $this->is_editor_mode && ( !isset($settings['breadcrumbs']) || !$settings['breadcrumbs'] ) ) {
53
 
54
  $html = '<div class="mec-content-notification"><p>'
55
+ .'<span>'. esc_html__('This widget is displayed if breadcrumbs is set. In order for the widget in this page to be displayed correctly, please set breadcrumbs for your last event.', 'modern-events-calendar-lite').'</span>'
56
+ . '<a href="https://webnus.net/dox/modern-events-calendar/event-detailssingle-event-page/" target="_blank">' . esc_html__('How to set breadcrumbs', 'modern-events-calendar-lite') . ' </a>'
57
  .'</p></div>';
58
  } else {
59
 
app/core/src/SingleBuilder/Widgets/EventCancellationReason/EventCancellationReason.php CHANGED
@@ -51,8 +51,8 @@ class EventCancellationReason extends WidgetBase {
51
  if ( !$display_reason && $this->is_editor_mode() ) {
52
 
53
  $html = '<div class="mec-content-notification"><p>'
54
- .'<span>'. __('This widget is displayed if cancellation reason is set. In order for the widget in this page to be displayed correctly, please set cancellation reason for your last event.', 'modern-events-calendar-lite').'</span>'
55
- . '<a href="#" target="_blank">' . __('Cancellation Reason', 'modern-events-calendar-lite') . ' </a>'
56
  .'</p></div>';
57
  } else {
58
 
51
  if ( !$display_reason && $this->is_editor_mode() ) {
52
 
53
  $html = '<div class="mec-content-notification"><p>'
54
+ .'<span>'. esc_html__('This widget is displayed if cancellation reason is set. In order for the widget in this page to be displayed correctly, please set cancellation reason for your last event.', 'modern-events-calendar-lite').'</span>'
55
+ . '<a href="#" target="_blank">' . esc_html__('Cancellation Reason', 'modern-events-calendar-lite') . ' </a>'
56
  .'</p></div>';
57
  } else {
58
 
app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php CHANGED
@@ -35,8 +35,8 @@ class EventCategories extends WidgetBase {
35
  if ( true === $this->is_editor_mode && empty( $categories ) ) {
36
 
37
  $html = '<div class="mec-content-notification"><p>'
38
- .'<span>'. __('This widget is displayed if category is set. In order for the widget in this page to be displayed correctly, please set category for your last event.', 'modern-events-calendar-lite').'</span>'
39
- . '<a href="https://webnus.net/dox/modern-events-calendar/categories/" target="_blank">' . __('How to set category', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( !empty($categories) ) {
42
 
@@ -44,7 +44,7 @@ class EventCategories extends WidgetBase {
44
  echo '<div class="mec-single-event-category mec-event-meta mec-frontbox">';
45
  ?>
46
  <i class="mec-sl-folder"></i>
47
- <dt><?php echo Base::get_main()->m('taxonomy_categories', __('Category', 'modern-events-calendar-lite')); ?></dt>
48
  <?php
49
  foreach ($categories as $category) {
50
  $icon = get_metadata('term', $category['id'], 'mec_cat_icon', true);
35
  if ( true === $this->is_editor_mode && empty( $categories ) ) {
36
 
37
  $html = '<div class="mec-content-notification"><p>'
38
+ .'<span>'. esc_html__('This widget is displayed if category is set. In order for the widget in this page to be displayed correctly, please set category for your last event.', 'modern-events-calendar-lite').'</span>'
39
+ . '<a href="https://webnus.net/dox/modern-events-calendar/categories/" target="_blank">' . esc_html__('How to set category', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( !empty($categories) ) {
42
 
44
  echo '<div class="mec-single-event-category mec-event-meta mec-frontbox">';
45
  ?>
46
  <i class="mec-sl-folder"></i>
47
+ <dt><?php echo Base::get_main()->m('taxonomy_categories', esc_html__('Category', 'modern-events-calendar-lite')); ?></dt>
48
  <?php
49
  foreach ($categories as $category) {
50
  $icon = get_metadata('term', $category['id'], 'mec_cat_icon', true);
app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php CHANGED
@@ -33,8 +33,8 @@ class EventCost extends WidgetBase {
33
  if ( true === $this->is_editor_mode && !(isset($events_detail->data->meta['mec_cost']) && $events_detail->data->meta['mec_cost'] != '') ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if cost is set. In order for the widget in this page to be displayed correctly, please set cost for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/add-event/" target="_blank">' . __('How to set cost', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
@@ -44,7 +44,7 @@ class EventCost extends WidgetBase {
44
  <div class="mec-event-meta">
45
  <div class="mec-event-cost">
46
  <i class="mec-sl-wallet"></i>
47
- <h3 class="mec-cost"><?php echo Base::get_main()->m('cost', __('Cost', 'modern-events-calendar-lite')); ?></h3>
48
  <dd class="mec-events-event-cost"><?php echo (is_numeric($events_detail->data->meta['mec_cost']) ? Base::get_main()->render_price($events_detail->data->meta['mec_cost'], $events_detail ) : $events_detail->data->meta['mec_cost']); ?></dd>
49
  </div>
50
  </div>
33
  if ( true === $this->is_editor_mode && !(isset($events_detail->data->meta['mec_cost']) && $events_detail->data->meta['mec_cost'] != '') ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if cost is set. In order for the widget in this page to be displayed correctly, please set cost for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/add-event/" target="_blank">' . esc_html__('How to set cost', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
44
  <div class="mec-event-meta">
45
  <div class="mec-event-cost">
46
  <i class="mec-sl-wallet"></i>
47
+ <h3 class="mec-cost"><?php echo Base::get_main()->m('cost', esc_html__('Cost', 'modern-events-calendar-lite')); ?></h3>
48
  <dd class="mec-events-event-cost"><?php echo (is_numeric($events_detail->data->meta['mec_cost']) ? Base::get_main()->render_price($events_detail->data->meta['mec_cost'], $events_detail ) : $events_detail->data->meta['mec_cost']); ?></dd>
49
  </div>
50
  </div>
app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php CHANGED
@@ -33,8 +33,8 @@ class EventCountdown extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['countdown_status']) || !$settings['countdown_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if cost is set. In order for the widget in this page to be displayed correctly, please set cost for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/add-event/" target="_blank">' . __('How to set cost', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['countdown_status']) || !$settings['countdown_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if cost is set. In order for the widget in this page to be displayed correctly, please set cost for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/add-event/" target="_blank">' . esc_html__('How to set cost', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventData/EventData.php CHANGED
@@ -34,8 +34,8 @@ class EventData extends WidgetBase {
34
  if ( true === $this->is_editor_mode && ( empty($data) || ( isset($settings['display_event_fields']) && !$settings['display_event_fields'] ) ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
- .'<span>'. __('This widget is displayed if event data is set. In order for the widget in this page to be displayed correctly, please set event data for your last event.', 'modern-events-calendar-lite').'</span>'
38
- . '<a href="https://webnus.net/dox/modern-events-calendar/custom-fields/" target="_blank">' . __('How to set Custom Fields', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
34
  if ( true === $this->is_editor_mode && ( empty($data) || ( isset($settings['display_event_fields']) && !$settings['display_event_fields'] ) ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
+ .'<span>'. esc_html__('This widget is displayed if event data is set. In order for the widget in this page to be displayed correctly, please set event data for your last event.', 'modern-events-calendar-lite').'</span>'
38
+ . '<a href="https://webnus.net/dox/modern-events-calendar/custom-fields/" target="_blank">' . esc_html__('How to set Custom Fields', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
app/core/src/SingleBuilder/Widgets/EventDate/EventDate.php CHANGED
@@ -49,7 +49,7 @@ class EventDate extends WidgetBase {
49
  <?php if($midnight_event): ?>
50
  <dd><abbr class="mec-events-abbr"><?php echo Base::get_main()->dateify( $event_detail, $date_format ); ?></abbr></dd>
51
  <?php else: ?>
52
- <dd><abbr class="mec-events-abbr"><?php echo $date_label; ?></abbr></dd>
53
  <?php endif; ?>
54
  </dl>
55
  <?php echo Base::get_main()->holding_status( $event_detail ); ?>
49
  <?php if($midnight_event): ?>
50
  <dd><abbr class="mec-events-abbr"><?php echo Base::get_main()->dateify( $event_detail, $date_format ); ?></abbr></dd>
51
  <?php else: ?>
52
+ <dd><abbr class="mec-events-abbr"><?php echo wp_kses( $date_label, array('span' => array( 'class' => array(), 'itemprop' => array() ) ) ); ?></abbr></dd>
53
  <?php endif; ?>
54
  </dl>
55
  <?php echo Base::get_main()->holding_status( $event_detail ); ?>
app/core/src/SingleBuilder/Widgets/EventExport/EventExport.php CHANGED
@@ -33,8 +33,8 @@ class EventExport extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['export_module_status']) || !$settings['export_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if export module is set. In order for the widget in this page to be displayed correctly, please set export module for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/export-module/" target="_blank">' . __('How to set export module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['export_module_status']) || !$settings['export_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if export module is set. In order for the widget in this page to be displayed correctly, please set export module for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/export-module/" target="_blank">' . esc_html__('How to set export module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php CHANGED
@@ -35,14 +35,14 @@ class EventGoogleMap extends WidgetBase {
35
  if ( true === $this->is_editor_mode && ( !isset($settings['google_maps_status']) || !$settings['google_maps_status'] ) ) {
36
 
37
  $html = '<div class="mec-content-notification"><p>'
38
- .'<span>'. __('This option is disabled. In order for the widget in this page to be displayed correctly, please turn on Google Maps Options and set the API for it there.', 'modern-events-calendar-lite').'</span>'
39
- . '<a href="https://webnus.net/dox/modern-events-calendar/google-maps-options/" target="_blank">' . __('How to set Google Map', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( true === $this->is_editor_mode && !$primary_location_id ){
42
 
43
  $html = '<div class="mec-content-notification"><p>'
44
- .'<span>'. __('This widget is displayed if Google Map is set. In order for the widget in this page to be displayed correctly, please set Google Map for your last event.', 'modern-events-calendar-lite').'</span>'
45
- . '<a href="https://webnus.net/dox/modern-events-calendar/google-maps-options/" target="_blank">' . __('How to set Google Map', 'modern-events-calendar-lite') . ' </a>'
46
  .'</p></div>';
47
  } else {
48
 
35
  if ( true === $this->is_editor_mode && ( !isset($settings['google_maps_status']) || !$settings['google_maps_status'] ) ) {
36
 
37
  $html = '<div class="mec-content-notification"><p>'
38
+ .'<span>'. esc_html__('This option is disabled. In order for the widget in this page to be displayed correctly, please turn on Google Maps Options and set the API for it there.', 'modern-events-calendar-lite').'</span>'
39
+ . '<a href="https://webnus.net/dox/modern-events-calendar/google-maps-options/" target="_blank">' . esc_html__('How to set Google Map', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( true === $this->is_editor_mode && !$primary_location_id ){
42
 
43
  $html = '<div class="mec-content-notification"><p>'
44
+ .'<span>'. esc_html__('This widget is displayed if Google Map is set. In order for the widget in this page to be displayed correctly, please set Google Map for your last event.', 'modern-events-calendar-lite').'</span>'
45
+ . '<a href="https://webnus.net/dox/modern-events-calendar/google-maps-options/" target="_blank">' . esc_html__('How to set Google Map', 'modern-events-calendar-lite') . ' </a>'
46
  .'</p></div>';
47
  } else {
48
 
app/core/src/SingleBuilder/Widgets/EventHourlySchedule/EventHourlySchedule.php CHANGED
@@ -34,8 +34,8 @@ class EventHourlySchedule extends WidgetBase {
34
  if ( true === $this->is_editor_mode && 0 == count($hourly_schedules) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
- .'<span>'. __('This widget is displayed if Hourly Schedule is set. In order for the widget in this page to be displayed correctly, please set Hourly Schedule for your last event.', 'modern-events-calendar-lite').'</span>'
38
- . '<a href="https://webnus.net/dox/modern-events-calendar/hourly-schedule/" target="_blank">' . __('How to set Hourly Schedule', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
34
  if ( true === $this->is_editor_mode && 0 == count($hourly_schedules) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
+ .'<span>'. esc_html__('This widget is displayed if Hourly Schedule is set. In order for the widget in this page to be displayed correctly, please set Hourly Schedule for your last event.', 'modern-events-calendar-lite').'</span>'
38
+ . '<a href="https://webnus.net/dox/modern-events-calendar/hourly-schedule/" target="_blank">' . esc_html__('How to set Hourly Schedule', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php CHANGED
@@ -35,8 +35,8 @@ class EventLabels extends WidgetBase {
35
  if ( empty($labels) && true === $this->is_editor_mode ) {
36
 
37
  echo '<div class="mec-content-notification"><p>'
38
- .'<span>'. __('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set label for your last event.', 'modern-events-calendar-lite').'</span>'
39
- . '<a href="https://webnus.net/dox/modern-events-calendar/label/" target="_blank">' . __('How to set label', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( !empty($labels) ) {
42
 
@@ -45,7 +45,7 @@ class EventLabels extends WidgetBase {
45
  $mec_i = 0; ?>
46
  <div class="mec-single-event-label">
47
  <i class="mec-fa-bookmark-o"></i>
48
- <h3 class="mec-cost"><?php echo Base::get_main()->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?></h3>
49
  <?php foreach ($labels as $k => $label) :
50
  $seperator = (++$mec_i === $mec_items) ? '' : ',';
51
  echo '<dd style="color:' . esc_attr( $label['color'] ) . '">' . $label["name"] . $seperator . '</dd>';
35
  if ( empty($labels) && true === $this->is_editor_mode ) {
36
 
37
  echo '<div class="mec-content-notification"><p>'
38
+ .'<span>'. esc_html__('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set label for your last event.', 'modern-events-calendar-lite').'</span>'
39
+ . '<a href="https://webnus.net/dox/modern-events-calendar/label/" target="_blank">' . esc_html__('How to set label', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( !empty($labels) ) {
42
 
45
  $mec_i = 0; ?>
46
  <div class="mec-single-event-label">
47
  <i class="mec-fa-bookmark-o"></i>
48
+ <h3 class="mec-cost"><?php echo Base::get_main()->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite')); ?></h3>
49
  <?php foreach ($labels as $k => $label) :
50
  $seperator = (++$mec_i === $mec_items) ? '' : ',';
51
  echo '<dd style="color:' . esc_attr( $label['color'] ) . '">' . $label["name"] . $seperator . '</dd>';
app/core/src/SingleBuilder/Widgets/EventLocalTime/EventLocalTime.php CHANGED
@@ -33,8 +33,8 @@ class EventLocalTime extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['local_time_module_status']) || !$settings['local_time_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set LocalTime module for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/local-time-module/" target="_blank">' . __('How to set LocalTime module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['local_time_module_status']) || !$settings['local_time_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set LocalTime module for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/local-time-module/" target="_blank">' . esc_html__('How to set LocalTime module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php CHANGED
@@ -35,8 +35,8 @@ class EventLocations extends WidgetBase {
35
  if ( true === $this->is_editor_mode && ( empty($locations) || !isset($locations[$primary_location_id]) ) ) {
36
 
37
  $html = '<div class="mec-content-notification"><p>'
38
- .'<span>'. __('This widget is displayed if location is set. In order for the widget in this page to be displayed correctly, please set location for your last event.', 'modern-events-calendar-lite').'</span>'
39
- . '<a href="https://webnus.net/dox/modern-events-calendar/location/" target="_blank">' . __('How to set location', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( !empty($locations) && isset($locations[$primary_location_id]) and !empty($locations[$primary_location_id])) {
42
 
@@ -51,7 +51,7 @@ class EventLocations extends WidgetBase {
51
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail']); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
52
  <?php endif; ?>
53
  <i class="mec-sl-location-pin"></i>
54
- <h3 class="mec-events-single-section-title mec-location"><?php echo Base::get_main()->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')); ?></h3>
55
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
56
  <dd class="location">
57
  <address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
@@ -60,7 +60,7 @@ class EventLocations extends WidgetBase {
60
  <?php if(isset($location['url']) and trim($location['url'])): ?>
61
  <dd class="mec-location-url">
62
  <i class="mec-sl-sitemap"></i>
63
- <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
64
  <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $location['url'] ); ?></a></span>
65
  </dd>
66
  <?php endif;
35
  if ( true === $this->is_editor_mode && ( empty($locations) || !isset($locations[$primary_location_id]) ) ) {
36
 
37
  $html = '<div class="mec-content-notification"><p>'
38
+ .'<span>'. esc_html__('This widget is displayed if location is set. In order for the widget in this page to be displayed correctly, please set location for your last event.', 'modern-events-calendar-lite').'</span>'
39
+ . '<a href="https://webnus.net/dox/modern-events-calendar/location/" target="_blank">' . esc_html__('How to set location', 'modern-events-calendar-lite') . ' </a>'
40
  .'</p></div>';
41
  } elseif ( !empty($locations) && isset($locations[$primary_location_id]) and !empty($locations[$primary_location_id])) {
42
 
51
  <img class="mec-img-location" src="<?php echo esc_url($location['thumbnail']); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
52
  <?php endif; ?>
53
  <i class="mec-sl-location-pin"></i>
54
+ <h3 class="mec-events-single-section-title mec-location"><?php echo Base::get_main()->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite')); ?></h3>
55
  <dd class="author fn org"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></dd>
56
  <dd class="location">
57
  <address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
60
  <?php if(isset($location['url']) and trim($location['url'])): ?>
61
  <dd class="mec-location-url">
62
  <i class="mec-sl-sitemap"></i>
63
+ <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
64
  <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $location['url'] ); ?></a></span>
65
  </dd>
66
  <?php endif;
app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php CHANGED
@@ -34,8 +34,8 @@ class EventMoreInfo extends WidgetBase {
34
  if ( true === $this->is_editor_mode && ( !(isset($event_detail->data->meta['mec_more_info']) && $event_detail->data->meta['mec_more_info'] != '') ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
- .'<span>'. __('This widget is displayed if read more is set. In order for the widget in this page to be displayed correctly, please set read more for your last event.', 'modern-events-calendar-lite').'</span>'
38
- . '<a href="https://webnus.net/dox/modern-events-calendar/add-event/" target="_blank">' . __('How to set read more', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
@@ -45,8 +45,8 @@ class EventMoreInfo extends WidgetBase {
45
  <div class="mec-event-meta">
46
  <div class="mec-event-more-info">
47
  <i class="mec-sl-info"></i>
48
- <h3 class="mec-more-info-label"><?php echo Base::get_main()->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></h3>
49
- <dd class="mec-events-event-more-info"><a class="mec-more-info-button a mec-color-hover" target="<?php echo (isset($event_detail->data->meta['mec_more_info_target']) ? $event_detail->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo esc_attr( $event_detail->data->meta['mec_more_info'] ); ?>"><?php echo ((isset($event_detail->data->meta['mec_more_info_title']) && trim($event_detail->data->meta['mec_more_info_title'])) ? $event_detail->data->meta['mec_more_info_title'] : __('Read More', 'modern-events-calendar-lite')); ?></a></dd>
50
  </div>
51
  </div>
52
  <?php
34
  if ( true === $this->is_editor_mode && ( !(isset($event_detail->data->meta['mec_more_info']) && $event_detail->data->meta['mec_more_info'] != '') ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
+ .'<span>'. esc_html__('This widget is displayed if read more is set. In order for the widget in this page to be displayed correctly, please set read more for your last event.', 'modern-events-calendar-lite').'</span>'
38
+ . '<a href="https://webnus.net/dox/modern-events-calendar/add-event/" target="_blank">' . esc_html__('How to set read more', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
45
  <div class="mec-event-meta">
46
  <div class="mec-event-more-info">
47
  <i class="mec-sl-info"></i>
48
+ <h3 class="mec-more-info-label"><?php echo Base::get_main()->m('more_info_link', esc_html__('More Info', 'modern-events-calendar-lite')); ?></h3>
49
+ <dd class="mec-events-event-more-info"><a class="mec-more-info-button a mec-color-hover" target="<?php echo (isset($event_detail->data->meta['mec_more_info_target']) ? $event_detail->data->meta['mec_more_info_target'] : '_self'); ?>" href="<?php echo esc_attr( $event_detail->data->meta['mec_more_info'] ); ?>"><?php echo ((isset($event_detail->data->meta['mec_more_info_title']) && trim($event_detail->data->meta['mec_more_info_title'])) ? $event_detail->data->meta['mec_more_info_title'] : esc_html__('Read More', 'modern-events-calendar-lite')); ?></a></dd>
50
  </div>
51
  </div>
52
  <?php
app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php CHANGED
@@ -33,8 +33,8 @@ class EventNextOccurrences extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['next_event_module_status']) || !$settings['next_event_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if next events module is set. In order for the widget in this page to be displayed correctly, please set next events module for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/next-event-module/" target="_blank">' . __('How to set next events module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['next_event_module_status']) || !$settings['next_event_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if next events module is set. In order for the widget in this page to be displayed correctly, please set next events module for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/next-event-module/" target="_blank">' . esc_html__('How to set next events module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php CHANGED
@@ -33,8 +33,8 @@ class EventNextPrevious extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['next_previous_events']) || !$settings['next_previous_events'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if related events is set. In order for the widget in this page to be displayed correctly, please set Related Event for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/next-previous-events/" target="_blank">' . __('How to set Next/Previous Events', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['next_previous_events']) || !$settings['next_previous_events'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if related events is set. In order for the widget in this page to be displayed correctly, please set Related Event for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/next-previous-events/" target="_blank">' . esc_html__('How to set Next/Previous Events', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php CHANGED
@@ -36,8 +36,8 @@ class EventOrganizers extends WidgetBase {
36
  if ( true === $this->is_editor_mode && ( empty($organizers) || !isset($organizers[$primary_organizer_id]) ) ) {
37
 
38
  $html = '<div class="mec-content-notification"><p>'
39
- .'<span>'. __('This widget is displayed if organizer is set. In order for the widget in this page to be displayed correctly, please set organizer for your last event.', 'modern-events-calendar-lite').'</span>'
40
- . '<a href="https://webnus.net/dox/modern-events-calendar/organizer-and-other-organizer/" target="_blank">' . __('How to set organizer', 'modern-events-calendar-lite') . ' </a>'
41
  .'</p></div>';
42
  } elseif ( !empty($organizers) && isset($organizers[$primary_organizer_id]) && !empty($organizers[$primary_organizer_id])) {
43
 
@@ -50,7 +50,7 @@ class EventOrganizers extends WidgetBase {
50
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
51
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
52
  <?php endif; ?>
53
- <h3 class="mec-events-single-section-title"><?php echo Base::get_main()->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')); ?></h3>
54
  <?php if(isset($organizer['thumbnail'])): ?>
55
  <dd class="mec-organizer">
56
  <i class="mec-sl-home"></i>
@@ -60,27 +60,27 @@ class EventOrganizers extends WidgetBase {
60
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
61
  <dd class="mec-organizer-tel">
62
  <i class="mec-sl-phone"></i>
63
- <h6><?php _e('Phone', 'modern-events-calendar-lite'); ?></h6>
64
  <a href="tel:<?php echo esc_attr($organizer['tel']); ?>"><?php echo esc_html( $organizer['tel'] ); ?></a>
65
  </dd>
66
  <?php endif;
67
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
68
  <dd class="mec-organizer-email">
69
  <i class="mec-sl-envelope"></i>
70
- <h6><?php _e('Email', 'modern-events-calendar-lite'); ?></h6>
71
  <a href="mailto:<?php echo esc_attr( $organizer['email'] ); ?>"><?php echo esc_html( $organizer['email'] ); ?></a>
72
  </dd>
73
  <?php endif;
74
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
75
  <dd class="mec-organizer-url">
76
  <i class="mec-sl-sitemap"></i>
77
- <h6><?php _e('Website', 'modern-events-calendar-lite'); ?></h6>
78
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $organizer['url'] ); ?></a></span>
79
  </dd>
80
  <?php endif;
81
  $organizer_description_setting = isset( $set['organizer_description'] ) ? $set['organizer_description'] : ''; $organizer_terms = get_the_terms($event_detail->data, 'mec_organizer'); if($organizer_description_setting == '1'): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
82
  <dd class="mec-organizer-description">
83
- <p><?php echo $organizer_term->description;?></p>
84
  </dd>
85
  <?php endif; } } endif; ?>
86
  </div>
36
  if ( true === $this->is_editor_mode && ( empty($organizers) || !isset($organizers[$primary_organizer_id]) ) ) {
37
 
38
  $html = '<div class="mec-content-notification"><p>'
39
+ .'<span>'. esc_html__('This widget is displayed if organizer is set. In order for the widget in this page to be displayed correctly, please set organizer for your last event.', 'modern-events-calendar-lite').'</span>'
40
+ . '<a href="https://webnus.net/dox/modern-events-calendar/organizer-and-other-organizer/" target="_blank">' . esc_html__('How to set organizer', 'modern-events-calendar-lite') . ' </a>'
41
  .'</p></div>';
42
  } elseif ( !empty($organizers) && isset($organizers[$primary_organizer_id]) && !empty($organizers[$primary_organizer_id])) {
43
 
50
  <?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
51
  <img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
52
  <?php endif; ?>
53
+ <h3 class="mec-events-single-section-title"><?php echo Base::get_main()->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite')); ?></h3>
54
  <?php if(isset($organizer['thumbnail'])): ?>
55
  <dd class="mec-organizer">
56
  <i class="mec-sl-home"></i>
60
  if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
61
  <dd class="mec-organizer-tel">
62
  <i class="mec-sl-phone"></i>
63
+ <h6><?php esc_html_e('Phone', 'modern-events-calendar-lite'); ?></h6>
64
  <a href="tel:<?php echo esc_attr($organizer['tel']); ?>"><?php echo esc_html( $organizer['tel'] ); ?></a>
65
  </dd>
66
  <?php endif;
67
  if(isset($organizer['email']) && !empty($organizer['email'])): ?>
68
  <dd class="mec-organizer-email">
69
  <i class="mec-sl-envelope"></i>
70
+ <h6><?php esc_html_e('Email', 'modern-events-calendar-lite'); ?></h6>
71
  <a href="mailto:<?php echo esc_attr( $organizer['email'] ); ?>"><?php echo esc_html( $organizer['email'] ); ?></a>
72
  </dd>
73
  <?php endif;
74
  if(isset($organizer['url']) && !empty($organizer['url']) and $organizer['url'] != 'http://'): ?>
75
  <dd class="mec-organizer-url">
76
  <i class="mec-sl-sitemap"></i>
77
+ <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
78
  <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $organizer['url'] ); ?></a></span>
79
  </dd>
80
  <?php endif;
81
  $organizer_description_setting = isset( $set['organizer_description'] ) ? $set['organizer_description'] : ''; $organizer_terms = get_the_terms($event_detail->data, 'mec_organizer'); if($organizer_description_setting == '1'): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
82
  <dd class="mec-organizer-description">
83
+ <p><?php echo esc_html( $organizer_term->description );?></p>
84
  </dd>
85
  <?php endif; } } endif; ?>
86
  </div>
app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php CHANGED
@@ -33,8 +33,8 @@ class EventQrCode extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['qrcode_module_status']) || !$settings['qrcode_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if QR Code is set. In order for the widget in this page to be displayed correctly, please set QR code module for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/qr-code-module/" target="_blank">' . __('How to set QR code module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['qrcode_module_status']) || !$settings['qrcode_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if QR Code is set. In order for the widget in this page to be displayed correctly, please set QR code module for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/qr-code-module/" target="_blank">' . esc_html__('How to set QR code module', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php CHANGED
@@ -33,8 +33,8 @@ class EventRegisterButton extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['single_booking_style']) || !$settings['single_booking_style'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if register button is set. In order for the widget in this page to be displayed correctly, please set register button for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank">' . __('How to set register button', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
@@ -43,9 +43,9 @@ class EventRegisterButton extends WidgetBase {
43
  $mec_more_info = isset($event_detail->data->meta['mec_more_info']) && trim($event_detail->data->meta['mec_more_info']) && $event_detail->data->meta['mec_more_info'] != 'http://';
44
  $mec_more_info_target = isset($event_detail->data->meta['mec_more_info_target']) ? $event_detail->data->meta['mec_more_info_target'] : '_self';
45
  if (isset($event_detail->data->meta['mec_more_info_title']) && trim($event_detail->data->meta['mec_more_info_title'])){
46
- $button_text = esc_html(trim($event_detail->data->meta['mec_more_info_title']), 'modern-events-calendar-lite');
47
  }else{
48
- $button_text = esc_html(Base::get_main()->m('register_button', __('REGISTER', 'modern-events-calendar-lite')));
49
  }
50
 
51
  $classes = '';
@@ -65,7 +65,7 @@ class EventRegisterButton extends WidgetBase {
65
  $classes .= ' mec-booking-data-lity';
66
  }
67
  ?>
68
- <a class="mec-booking-button mec-bg-color <?php echo esc_attr( $classes ); ?>" href="#mec-events-meta-group-booking-<?php echo esc_attr( $single->uniqueid ); ?>" <?php echo esc_attr( $data_lity ); ?>><?php echo $button_text; ?></a>
69
  <script>
70
  // Fix modal booking in some themes
71
  if( 'undefined' === typeof mec_booking_lity_init){
@@ -83,7 +83,7 @@ class EventRegisterButton extends WidgetBase {
83
  </script>
84
  <?php elseif ( $mec_more_info ) : ?>
85
  <a target="<?php echo esc_attr( $mec_more_info_target ); ?>" class="mec-booking-button mec-bg-color" href="<?php echo esc_url( $event_detail->data->meta['mec_more_info'] ); ?>">
86
- <?php echo $button_text; ?>
87
  </a>
88
  <?php endif; ?>
89
  </div>
33
  if ( true === $this->is_editor_mode && ( !isset($settings['single_booking_style']) || !$settings['single_booking_style'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if register button is set. In order for the widget in this page to be displayed correctly, please set register button for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank">' . esc_html__('How to set register button', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
43
  $mec_more_info = isset($event_detail->data->meta['mec_more_info']) && trim($event_detail->data->meta['mec_more_info']) && $event_detail->data->meta['mec_more_info'] != 'http://';
44
  $mec_more_info_target = isset($event_detail->data->meta['mec_more_info_target']) ? $event_detail->data->meta['mec_more_info_target'] : '_self';
45
  if (isset($event_detail->data->meta['mec_more_info_title']) && trim($event_detail->data->meta['mec_more_info_title'])){
46
+ $button_text = trim($event_detail->data->meta['mec_more_info_title']);
47
  }else{
48
+ $button_text = Base::get_main()->m('register_button', esc_html__('REGISTER', 'modern-events-calendar-lite'));
49
  }
50
 
51
  $classes = '';
65
  $classes .= ' mec-booking-data-lity';
66
  }
67
  ?>
68
+ <a class="mec-booking-button mec-bg-color <?php echo esc_attr( $classes ); ?>" href="#mec-events-meta-group-booking-<?php echo esc_attr( $single->uniqueid ); ?>" <?php echo esc_attr( $data_lity ); ?>><?php echo esc_html__( $button_text, 'modern-events-calendar-lite' ); ?></a>
69
  <script>
70
  // Fix modal booking in some themes
71
  if( 'undefined' === typeof mec_booking_lity_init){
83
  </script>
84
  <?php elseif ( $mec_more_info ) : ?>
85
  <a target="<?php echo esc_attr( $mec_more_info_target ); ?>" class="mec-booking-button mec-bg-color" href="<?php echo esc_url( $event_detail->data->meta['mec_more_info'] ); ?>">
86
+ <?php echo esc_html__( $button_text , 'modern-events-calendar-lite' ); ?>
87
  </a>
88
  <?php endif; ?>
89
  </div>
app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php CHANGED
@@ -33,8 +33,8 @@ class EventRelated extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['related_events']) || !$settings['related_events'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if related events is set. In order for the widget in this page to be displayed correctly, please set Related Event for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/related-events/" target="_blank">' . __('How to set related events', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['related_events']) || !$settings['related_events'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if related events is set. In order for the widget in this page to be displayed correctly, please set Related Event for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/related-events/" target="_blank">' . esc_html__('How to set related events', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/EventSocialShare/EventSocialShare.php CHANGED
@@ -34,8 +34,8 @@ class EventSocialShare extends WidgetBase {
34
  if ( true === $this->is_editor_mode && ( !isset($settings['social_network_status']) || !$settings['social_network_status'] ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
- .'<span>'. __('This widget is displayed if social networks is set. In order for the widget in this page to be displayed correctly, please set label for your last event.', 'modern-events-calendar-lite').'</span>'
38
- . '<a href="https://webnus.net/dox/modern-events-calendar/social-networks/" target="_blank">' . __('How to set social networks', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
@@ -48,7 +48,7 @@ class EventSocialShare extends WidgetBase {
48
  $socials = Base::get_main()->get_social_networks();
49
  ?>
50
  <div class="mec-event-social mec-frontbox">
51
- <h3 class="mec-social-single mec-frontbox-title"><?php _e('Share this event', 'modern-events-calendar-lite'); ?></h3>
52
  <div class="mec-event-sharing">
53
  <div class="mec-links-details">
54
  <ul>
34
  if ( true === $this->is_editor_mode && ( !isset($settings['social_network_status']) || !$settings['social_network_status'] ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
+ .'<span>'. esc_html__('This widget is displayed if social networks is set. In order for the widget in this page to be displayed correctly, please set label for your last event.', 'modern-events-calendar-lite').'</span>'
38
+ . '<a href="https://webnus.net/dox/modern-events-calendar/social-networks/" target="_blank">' . esc_html__('How to set social networks', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } else {
41
 
48
  $socials = Base::get_main()->get_social_networks();
49
  ?>
50
  <div class="mec-event-social mec-frontbox">
51
+ <h3 class="mec-social-single mec-frontbox-title"><?php esc_html_e('Share this event', 'modern-events-calendar-lite'); ?></h3>
52
  <div class="mec-event-sharing">
53
  <div class="mec-links-details">
54
  <ul>
app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php CHANGED
@@ -34,8 +34,8 @@ class EventSpeakers extends WidgetBase {
34
  if ( true === $this->is_editor_mode && ( empty($speakers) || (!isset($settings['speakers_status']) || !$settings['speakers_status']) ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
- .'<span>'. __('This widget is displayed if speaker is set. In order for the widget in this page to be displayed correctly, please set speaker for your last event.', 'modern-events-calendar-lite').'</span>'
38
- . '<a href="https://webnus.net/dox/modern-events-calendar/speaker/" target="_blank">' . __('How to set speaker', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } elseif ( true === $this->is_editor_mode && isset($settings['speakers_status']) && $settings['speakers_status'] ) {
41
 
34
  if ( true === $this->is_editor_mode && ( empty($speakers) || (!isset($settings['speakers_status']) || !$settings['speakers_status']) ) ) {
35
 
36
  $html = '<div class="mec-content-notification"><p>'
37
+ .'<span>'. esc_html__('This widget is displayed if speaker is set. In order for the widget in this page to be displayed correctly, please set speaker for your last event.', 'modern-events-calendar-lite').'</span>'
38
+ . '<a href="https://webnus.net/dox/modern-events-calendar/speaker/" target="_blank">' . esc_html__('How to set speaker', 'modern-events-calendar-lite') . ' </a>'
39
  .'</p></div>';
40
  } elseif ( true === $this->is_editor_mode && isset($settings['speakers_status']) && $settings['speakers_status'] ) {
41
 
app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php CHANGED
@@ -36,14 +36,14 @@ class EventTags extends WidgetBase {
36
  if ( true === $this->is_editor_mode && empty( $tags ) ) {
37
 
38
  $html = '<div class="mec-content-notification"><p>'
39
- .'<span>'. __('This widget is displayed if tags is set. In order for the widget in this page to be displayed correctly, please set tags for your last event.', 'modern-events-calendar-lite').'</span>'
40
- . '<a href="https://webnus.net/dox/modern-events-calendar/tags/" target="_blank">' . __('How to set tags', 'modern-events-calendar-lite') . ' </a>'
41
  .'</p></div>';
42
  } else {
43
 
44
  ob_start();
45
  echo '<div class="mec-events-meta-group mec-events-meta-group-tags">';
46
- echo __( 'Tags: ', 'modern-events-calendar-lite' );
47
  if ( $tags ) {
48
  echo implode(
49
  ', ',
36
  if ( true === $this->is_editor_mode && empty( $tags ) ) {
37
 
38
  $html = '<div class="mec-content-notification"><p>'
39
+ .'<span>'. esc_html__('This widget is displayed if tags is set. In order for the widget in this page to be displayed correctly, please set tags for your last event.', 'modern-events-calendar-lite').'</span>'
40
+ . '<a href="https://webnus.net/dox/modern-events-calendar/tags/" target="_blank">' . esc_html__('How to set tags', 'modern-events-calendar-lite') . ' </a>'
41
  .'</p></div>';
42
  } else {
43
 
44
  ob_start();
45
  echo '<div class="mec-events-meta-group mec-events-meta-group-tags">';
46
+ echo esc_html__( 'Tags: ', 'modern-events-calendar-lite' );
47
  if ( $tags ) {
48
  echo implode(
49
  ', ',
app/core/src/SingleBuilder/Widgets/EventTime/EventTime.php CHANGED
@@ -40,13 +40,14 @@ class EventTime extends WidgetBase {
40
  ?>
41
  <div class="mec-single-event-time">
42
  <i class="mec-sl-clock"></i>
43
- <h3 class="mec-time"><?php _e('Time', 'modern-events-calendar-lite'); ?></h3>
44
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
45
  <dl>
46
  <?php if ($allday == '0' and isset($event_detail->data->time) and trim($event_detail->data->time['start'])) : ?>
47
- <dd><abbr class="mec-events-abbr"><?php echo $event_detail->data->time['start']; ?><?php echo (trim($event_detail->data->time['end']) ? ' - ' . $event_detail->data->time['end'] : ''); ?></abbr></dd>
 
48
  <?php else : ?>
49
- <dd><abbr class="mec-events-abbr"><?php echo \MEC\Base::get_main()->m('all_day', __('All Day' , 'modern-events-calendar-lite')); ?></abbr></dd>
50
  <?php endif; ?>
51
  </dl>
52
  </div>
40
  ?>
41
  <div class="mec-single-event-time">
42
  <i class="mec-sl-clock"></i>
43
+ <h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
44
  <i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
45
  <dl>
46
  <?php if ($allday == '0' and isset($event_detail->data->time) and trim($event_detail->data->time['start'])) : ?>
47
+ <?php ?>
48
+ <dd><abbr class="mec-events-abbr"><?php echo esc_html( $event_detail->data->time['start'] ); ?><?php echo (trim($event_detail->data->time['end']) ? esc_html( ' - ' . $event_detail->data->time['end'] ) : ''); ?></abbr></dd>
49
  <?php else : ?>
50
+ <dd><abbr class="mec-events-abbr"><?php echo esc_html( \MEC\Base::get_main()->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) ); ?></abbr></dd>
51
  <?php endif; ?>
52
  </dl>
53
  </div>
app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php CHANGED
@@ -33,8 +33,8 @@ class EventWeather extends WidgetBase {
33
  if ( true === $this->is_editor_mode && ( !isset($settings['weather_module_status']) || !$settings['weather_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
- .'<span>'. __('This widget is displayed if weather is set. In order for the widget in this page to be displayed correctly, please set location for your last event.', 'modern-events-calendar-lite').'</span>'
37
- . '<a href="https://webnus.net/dox/modern-events-calendar/weather-module/" target="_blank">' . __('How to set weather', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
33
  if ( true === $this->is_editor_mode && ( !isset($settings['weather_module_status']) || !$settings['weather_module_status'] ) ) {
34
 
35
  $html = '<div class="mec-content-notification"><p>'
36
+ .'<span>'. esc_html__('This widget is displayed if weather is set. In order for the widget in this page to be displayed correctly, please set location for your last event.', 'modern-events-calendar-lite').'</span>'
37
+ . '<a href="https://webnus.net/dox/modern-events-calendar/weather-module/" target="_blank">' . esc_html__('How to set weather', 'modern-events-calendar-lite') . ' </a>'
38
  .'</p></div>';
39
  } else {
40
 
app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php CHANGED
@@ -54,9 +54,9 @@ class RSVPForm extends WidgetBase {
54
  $html = '<div class="mec-content-notification">
55
  <p>'
56
  .'<span>'
57
- . __('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set RSVP module for your last event.', 'modern-events-calendar-lite')
58
  .'</span>'
59
- .'<a href="https://webnus.net/dox/modern-events-calendar/rsvp-events-addon/" target="_blank">' . __('How to set RSVP module', 'modern-events-calendar-lite') . ' </a>'
60
  .'</p>'
61
  .'</div>';
62
  } elseif( $is_rsvp_enabled ) {
54
  $html = '<div class="mec-content-notification">
55
  <p>'
56
  .'<span>'
57
+ . esc_html__('This widget is displayed if label is set. In order for the widget in this page to be displayed correctly, please set RSVP module for your last event.', 'modern-events-calendar-lite')
58
  .'</span>'
59
+ .'<a href="https://webnus.net/dox/modern-events-calendar/rsvp-events-addon/" target="_blank">' . esc_html__('How to set RSVP module', 'modern-events-calendar-lite') . ' </a>'
60
  .'</p>'
61
  .'</div>';
62
  } elseif( $is_rsvp_enabled ) {
app/crons/auto-emails.php DELETED
@@ -1,118 +0,0 @@
1
- <?php
2
- /**
3
- * WordPress initializing
4
- */
5
- function mec_find_wordpress_base_path_ae()
6
- {
7
- $dir = dirname(__FILE__);
8
-
9
- do
10
- {
11
- if(file_exists($dir.'/wp-load.php') and file_exists($dir.'/wp-config.php')) return $dir;
12
- }
13
- while($dir = realpath($dir.'/..'));
14
-
15
- return NULL;
16
- }
17
-
18
- define('BASE_PATH', mec_find_wordpress_base_path_ae().'/');
19
- if(!defined('WP_USE_THEMES')) define('WP_USE_THEMES', false);
20
-
21
- global $wp, $wp_query, $wp_the_query, $wp_rewrite, $wp_did_header;
22
- require BASE_PATH.'wp-load.php';
23
-
24
- /** @var $main MEC_main **/
25
-
26
- // MEC libraries
27
- $main = MEC::getInstance('app.libraries.main');
28
-
29
- // Blogs
30
- $blogs = array(1);
31
-
32
- // Current Blog ID
33
- $multisite = (function_exists('is_multisite') and is_multisite());
34
- $current_blog_id = get_current_blog_id();
35
-
36
- // Database
37
- $db = $main->getDB();
38
-
39
- // Multisite
40
- if($multisite) $blogs = $db->select("SELECT `blog_id` FROM `#__blogs`", 'loadColumn');
41
-
42
- $sent_emails = 0;
43
- $now = current_time('Y-m-d H:i');
44
-
45
- $now_start = strtotime($now);
46
- $now_end = $now_start + 60;
47
-
48
- foreach($blogs as $blog)
49
- {
50
- // Switch to Blog
51
- if($multisite) switch_to_blog($blog);
52
-
53
- // MEC Settings
54
- $settings = $main->get_settings();
55
-
56
- // Auto Emails is disabled
57
- if(!isset($settings['auto_emails_module_status']) or (isset($settings['auto_emails_module_status']) and !$settings['auto_emails_module_status'])) continue;
58
-
59
- /**
60
- * Notification Sender Library
61
- * @var $notif MEC_notifications
62
- */
63
- $notif = $main->getNotifications();
64
-
65
- // All Emails
66
- $emails = get_posts(array('post_type'=>$main->get_email_post_type(), 'numberposts'=>-1, 'post_status'=>'publish'));
67
-
68
- // Send Emails
69
- foreach($emails as $email)
70
- {
71
- $time = get_post_meta($email->ID, 'mec_time', true);
72
- if($time == '') $time = 1;
73
-
74
- $type = get_post_meta($email->ID, 'mec_type', true);
75
- if($type == '') $type = 'day';
76
-
77
- $afterbefore = get_post_meta($email->ID, 'mec_afterbefore', true);
78
- if($afterbefore == '') $afterbefore = 'before';
79
-
80
- $all = get_post_meta($email->ID, 'mec_all', true);
81
- if($all == '') $all = 1;
82
-
83
- $events = get_post_meta($email->ID, 'mec_events', true);
84
- if(!is_array($events)) $events = array();
85
-
86
- if($type === 'day') $plus_minus = $time * (3600 * 24);
87
- elseif($type === 'hour') $plus_minus = $time * 3600;
88
- else $plus_minus = $time * 60;
89
-
90
- if($afterbefore === 'after') $plus_minus *= -1;
91
-
92
- $occ_start = $now_start + $plus_minus;
93
- $occ_end = $now_end + $plus_minus;
94
-
95
- $query = "SELECT `post_id`, `tstart`, `tend` FROM `#__mec_dates` WHERE `tstart`>=".$occ_start." AND `tend`<".$occ_end;
96
- if(!$all and count($events)) $query .= " AND `post_id` IN (".implode(',', $events).")";
97
-
98
- // Fetch Event Occurrences
99
- $occurrences = $db->select($query, 'loadObjectList');
100
-
101
- foreach($occurrences as $occurrence)
102
- {
103
- $bookings = $main->get_bookings($occurrence->post_id, $occurrence->tstart);
104
-
105
- foreach($bookings as $booking)
106
- {
107
- $result = $notif->auto_email($booking->ID, $email->post_title, $email->post_content, $occurrence->tstart.':'.$occurrence->tend);
108
- if($result) $sent_emails++;
109
- }
110
- }
111
- }
112
- }
113
-
114
- // Switch to Current Blog
115
- if($multisite) switch_to_blog($current_blog_id);
116
-
117
- echo sprintf(__('%s emails(s) sent.', 'modern-events-calendar-lite'), $sent_emails);
118
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/crons/event-finished.php DELETED
@@ -1,99 +0,0 @@
1
- <?php
2
- /**
3
- * WordPress initializing
4
- */
5
- function mec_find_wordpress_base_path_ef()
6
- {
7
- $dir = dirname(__FILE__);
8
-
9
- do
10
- {
11
- if(file_exists($dir.'/wp-load.php') and file_exists($dir.'/wp-config.php')) return $dir;
12
- }
13
- while($dir = realpath($dir.'/..'));
14
-
15
- return NULL;
16
- }
17
-
18
- define('BASE_PATH', mec_find_wordpress_base_path_ef().'/');
19
- if(!defined('WP_USE_THEMES')) define('WP_USE_THEMES', false);
20
-
21
- global $wp, $wp_query, $wp_the_query, $wp_rewrite, $wp_did_header;
22
- require BASE_PATH.'wp-load.php';
23
-
24
- /** @var $main MEC_main **/
25
-
26
- // MEC libraries
27
- $main = MEC::getInstance('app.libraries.main');
28
-
29
- // Blogs
30
- $blogs = array(1);
31
-
32
- // Current Blog ID
33
- $multisite = (function_exists('is_multisite') and is_multisite());
34
- $current_blog_id = get_current_blog_id();
35
-
36
- // Database
37
- $db = $main->getDB();
38
-
39
- // Multisite
40
- if($multisite) $blogs = $db->select("SELECT `blog_id` FROM `#__blogs`", 'loadColumn');
41
-
42
- $sent_notifications = 0;
43
- $now = current_time('Y-m-d H:i');
44
-
45
- foreach($blogs as $blog)
46
- {
47
- // Switch to Blog
48
- if($multisite) switch_to_blog($blog);
49
-
50
- // MEC notifications
51
- $notifications = $main->get_notifications();
52
-
53
- // MEC Settings
54
- $settings = $main->get_settings();
55
-
56
- // Booking is disabled
57
- if(!isset($settings['booking_status']) or (isset($settings['booking_status']) and !$settings['booking_status'])) continue;
58
-
59
- $hour = isset($notifications['event_finished']['hour']) ? trim($notifications['event_finished']['hour'], ', ') : 2;
60
-
61
- // Hour is invalid
62
- if(!$hour or ($hour and $hour < 0)) continue;
63
-
64
- // Check Last Run Date & Time
65
- $latest_run = get_option('mec_event_finished_last_run_datetime', NULL);
66
- if($latest_run and strtotime($latest_run) > strtotime('-1 Hour', strtotime($now))) continue;
67
-
68
- /**
69
- * Notification Sender Library
70
- * @var $notif MEC_notifications
71
- */
72
- $notif = $main->getNotifications();
73
-
74
- // It's time of the hour that we're going to check
75
- $time = strtotime('-'.$hour.' hours', strtotime($now));
76
-
77
- $tstart = floor($time / 3600) * 3600;
78
- $tend = $time + 3600;
79
-
80
- $mec_dates = $db->select("SELECT `post_id`, `tstart`, `tend` FROM `#__mec_dates` WHERE `tend` >= $tstart AND `tend` < $tend", 'loadObjectList');
81
- if(!count($mec_dates)) continue;
82
-
83
- foreach($mec_dates as $mec_date)
84
- {
85
- if(!get_post($mec_date->post_id)) continue;
86
-
87
- $result = $notif->event_finished($mec_date->post_id, $mec_date->tstart.':'.$mec_date->tend);
88
- if($result) $sent_notifications++;
89
- }
90
-
91
- // Last Run
92
- update_option('mec_event_finished_last_run_datetime', $now, false);
93
- }
94
-
95
- // Switch to Current Blog
96
- if($multisite) switch_to_blog($current_blog_id);
97
-
98
- echo sprintf(__('%s notification(s) sent.', 'modern-events-calendar-lite'), $sent_notifications);
99
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/features/admincalendar.php CHANGED
@@ -63,7 +63,7 @@ class MEC_feature_admincalendar extends MEC_base
63
  jQuery(document).ready(function($)
64
  {
65
  $('hr.wp-header-end').before('<a href="<?php echo esc_url($this->main->remove_qs_var('admincalendar')); ?>" class="add-new-h2"><?php esc_html_e('Classic View', 'modern-events-calendar-lite'); ?></a>');
66
- $('#posts-filter').before(`<div><?php echo $HTML; ?></div>`);
67
  });
68
  </script>
69
  <?php else: ?>
63
  jQuery(document).ready(function($)
64
  {
65
  $('hr.wp-header-end').before('<a href="<?php echo esc_url($this->main->remove_qs_var('admincalendar')); ?>" class="add-new-h2"><?php esc_html_e('Classic View', 'modern-events-calendar-lite'); ?></a>');
66
+ $('#posts-filter').before(`<div><?php echo MEC_kses::full($HTML); ?></div>`);
67
  });
68
  </script>
69
  <?php else: ?>
app/features/autoemails.php CHANGED
@@ -57,8 +57,8 @@ class MEC_feature_autoemails extends MEC_base
57
  */
58
  public function register_post_type()
59
  {
60
- $singular_label = __('Email', 'modern-events-calendar-lite');
61
- $plural_label = __('Emails', 'modern-events-calendar-lite');
62
 
63
  $capability = 'manage_options';
64
  register_post_type($this->PT,
@@ -112,7 +112,7 @@ class MEC_feature_autoemails extends MEC_base
112
  */
113
  public function register_meta_boxes()
114
  {
115
- add_meta_box('mec_email_metabox_details', __('Details', 'modern-events-calendar-lite'), array($this, 'meta_box_details'), $this->PT, 'normal', 'high');
116
  }
117
 
118
  public function meta_box_details($post)
@@ -121,7 +121,7 @@ class MEC_feature_autoemails extends MEC_base
121
 
122
  ob_start();
123
  include $path;
124
- echo $output = ob_get_clean();
125
  }
126
 
127
  /**
@@ -147,13 +147,13 @@ class MEC_feature_autoemails extends MEC_base
147
  // All Options
148
  update_post_meta($post_id, 'mec', $mec);
149
 
150
- update_post_meta($post_id, 'mec_time', (isset($mec['time']) ? $mec['time'] : 1));
151
- update_post_meta($post_id, 'mec_type', (isset($mec['type']) ? $mec['type'] : 'day'));
152
- update_post_meta($post_id, 'mec_afterbefore', (isset($mec['afterbefore']) ? $mec['afterbefore'] : 'before'));
153
 
154
- $events = ((isset($mec['events']) and is_array($mec['events'])) ? $mec['events'] : array());
155
 
156
- $all = (isset($mec['all']) ? $mec['all'] : 1);
157
  if($all) $events = array();
158
 
159
  update_post_meta($post_id, 'mec_all', $all);
57
  */
58
  public function register_post_type()
59
  {
60
+ $singular_label = esc_html__('Email', 'modern-events-calendar-lite');
61
+ $plural_label = esc_html__('Emails', 'modern-events-calendar-lite');
62
 
63
  $capability = 'manage_options';
64
  register_post_type($this->PT,
112
  */
113
  public function register_meta_boxes()
114
  {
115
+ add_meta_box('mec_email_metabox_details', esc_html__('Details', 'modern-events-calendar-lite'), array($this, 'meta_box_details'), $this->PT, 'normal', 'high');
116
  }
117
 
118
  public function meta_box_details($post)
121
 
122
  ob_start();
123
  include $path;
124
+ echo MEC_kses::full(ob_get_clean());
125
  }
126
 
127
  /**
147
  // All Options
148
  update_post_meta($post_id, 'mec', $mec);
149
 
150
+ update_post_meta($post_id, 'mec_time', (isset($mec['time']) ? sanitize_text_field($mec['time']) : 1));
151
+ update_post_meta($post_id, 'mec_type', (isset($mec['type']) ? sanitize_text_field($mec['type']) : 'day'));
152
+ update_post_meta($post_id, 'mec_afterbefore', (isset($mec['afterbefore']) ? sanitize_text_field($mec['afterbefore']) : 'before'));
153
 
154
+ $events = (isset($mec['events']) and is_array($mec['events']) and count($mec['events'])) ? array_map('sanitize_text_field', wp_unslash($mec['events'])) : array();
155
 
156
+ $all = (isset($mec['all']) ? sanitize_text_field($mec['all']) : 1);
157
  if($all) $events = array();
158
 
159
  update_post_meta($post_id, 'mec_all', $all);
app/features/booking/calendar_novel.php CHANGED
@@ -97,10 +97,10 @@ jQuery(document).ready(function()
97
  </script>';
98
 
99
  // Include javascript code into the page
100
- echo $javascript;
101
  ?>
102
  <div class="mec-booking-calendar mec-wrap" id="mec_booking_calendar_<?php echo esc_attr($uniqueid); ?>">
103
- <div class="mec-booking-calendar-month-navigation"><?php echo $navigator_html; ?></div>
104
  <div class="mec-calendar mec-box-calendar mec-event-calendar-classic mec-event-container-novel <?php echo sanitize_html_class($multiple_date); ?>">
105
  <?php
106
  // Table Headings
@@ -188,4 +188,4 @@ echo $javascript;
188
  </dl>
189
  </div>
190
  </div>
191
- <div class="mec-choosen-time-message disable"><?php echo __('Chosen Time:', 'modern-events-calendar-lite'); ?> <span class="mec-choosen-time"></span></div>
97
  </script>';
98
 
99
  // Include javascript code into the page
100
+ echo MEC_kses::full($javascript);
101
  ?>
102
  <div class="mec-booking-calendar mec-wrap" id="mec_booking_calendar_<?php echo esc_attr($uniqueid); ?>">
103
+ <div class="mec-booking-calendar-month-navigation"><?php echo MEC_kses::element($navigator_html); ?></div>
104
  <div class="mec-calendar mec-box-calendar mec-event-calendar-classic mec-event-container-novel <?php echo sanitize_html_class($multiple_date); ?>">
105
  <?php
106
  // Table Headings
188
  </dl>
189
  </div>
190
  </div>
191
+ <div class="mec-choosen-time-message disable"><?php echo esc_html__('Chosen Time:', 'modern-events-calendar-lite'); ?> <span class="mec-choosen-time"></span></div>
app/features/bookingcalendar.php CHANGED
@@ -72,10 +72,10 @@ class MEC_feature_bookingcalendar extends MEC_base
72
  // Render
73
  $render = $this->getRender();
74
 
75
- $event_id = $request->getVar('event_id');
76
- $uniqueid = $request->getVar('uniqueid');
77
- $year = $request->getVar('year');
78
- $month = $request->getVar('month');
79
 
80
  // Start Date
81
  $start = $year.'-'.$month.'-01';
72
  // Render
73
  $render = $this->getRender();
74
 
75
+ $event_id = sanitize_text_field($request->getVar('event_id'));
76
+ $uniqueid = sanitize_text_field($request->getVar('uniqueid'));
77
+ $year = sanitize_text_field($request->getVar('year'));
78
+ $month = sanitize_text_field($request->getVar('month'));
79
 
80
  // Start Date
81
  $start = $year.'-'.$month.'-01';
app/features/cart.php CHANGED
@@ -88,7 +88,7 @@ class MEC_feature_cart extends MEC_base
88
  // Request
89
  $request = $this->getRequest();
90
 
91
- $transaction_id = $request->getVar('transaction_id');
92
 
93
  $cart_id = $this->cart->get_cart_id();
94
  $cart = $this->cart->get_cart($cart_id);
@@ -123,7 +123,7 @@ class MEC_feature_cart extends MEC_base
123
  // Request
124
  $request = $this->getRequest();
125
 
126
- $coupon = $request->getVar('coupon');
127
 
128
  $cart_id = $this->cart->get_cart_id();
129
  $cart = $this->cart->get_cart($cart_id);
@@ -171,7 +171,7 @@ class MEC_feature_cart extends MEC_base
171
  wp_send_json(array(
172
  'success' => 0,
173
  'code' => 'NONCE_IS_INVALID',
174
- 'message' => __('Request is invalid!', 'modern-events-calendar-lite'),
175
  ));
176
  }
177
 
@@ -181,14 +181,14 @@ class MEC_feature_cart extends MEC_base
181
  wp_send_json(array(
182
  'success' => 0,
183
  'code' => 'NOT_FREE',
184
- 'message' => __('Your cart is not free!', 'modern-events-calendar-lite'),
185
  ));
186
  }
187
 
188
  $free_gateway = new MEC_gateway_free();
189
  $results = $free_gateway->cart_do_transaction($cart_id);
190
 
191
- $results['output'] = '<h4>' . __('Thanks for your booking.', 'modern-events-calendar-lite') . '</h4>
192
  <div class="mec-event-book-message">
193
  <div class="' . ($results['success'] ? 'mec-success' : 'mec-error') . '">' . $results['message'] . '</div>
194
  </div>';
88
  // Request
89
  $request = $this->getRequest();
90
 
91
+ $transaction_id = sanitize_text_field($request->getVar('transaction_id'));
92
 
93
  $cart_id = $this->cart->get_cart_id();
94
  $cart = $this->cart->get_cart($cart_id);
123
  // Request
124
  $request = $this->getRequest();
125
 
126
+ $coupon = sanitize_text_field($request->getVar('coupon'));
127
 
128
  $cart_id = $this->cart->get_cart_id();
129
  $cart = $this->cart->get_cart($cart_id);
171
  wp_send_json(array(
172
  'success' => 0,
173
  'code' => 'NONCE_IS_INVALID',
174
+ 'message' => esc_html__('Request is invalid!', 'modern-events-calendar-lite'),
175
  ));
176
  }
177
 
181
  wp_send_json(array(
182
  'success' => 0,
183
  'code' => 'NOT_FREE',
184
+ 'message' => esc_html__('Your cart is not free!', 'modern-events-calendar-lite'),
185
  ));
186
  }
187
 
188
  $free_gateway = new MEC_gateway_free();
189
  $results = $free_gateway->cart_do_transaction($cart_id);
190
 
191
+ $results['output'] = '<h4>' . esc_html__('Thanks for your booking.', 'modern-events-calendar-lite') . '</h4>
192
  <div class="mec-event-book-message">
193
  <div class="' . ($results['success'] ? 'mec-success' : 'mec-error') . '">' . $results['message'] . '</div>
194
  </div>';
app/features/cart/cart.php CHANGED
@@ -52,20 +52,20 @@ $archive_url = $this->main->get_archive_url();
52
  <tr id="mec_cart_transactions_<?php echo esc_attr($transaction_id); ?>">
53
  <td><span class="mec-cart-remove-transactions" data-transaction-id="<?php echo esc_attr($transaction_id); ?>"><svg xmlns="http://www.w3.org/2000/svg" width="9" height="8.999" viewBox="0 0 9 8.999"><path id="close" d="M6.079,5.647l4.067,4.067-.433.433L5.646,6.079,1.579,10.146l-.433-.433L5.214,5.647,1.146,1.58l.433-.433L5.646,5.214,9.713,1.147l.433.433Z" transform="translate(-1.146 -1.147)" fill="#949596"></path></svg></span></td>
54
  <td>
55
- <?php echo $transaction_id; ?>
56
  <?php echo ($TO->get_coupon() ? '<br><code class="mec-cart-coupon-code" title="'.esc_attr__('Applied Coupon', 'modern-events-calendar-lite').'">'.$TO->get_coupon().'</code>' : ''); ?>
57
  </td>
58
- <td class="mec-cart-event-info"><?php echo $TO->get_event_featured_image(); ?><?php echo $TO->get_event_link(); ?></td>
59
- <td><?php echo $TO->get_tickets_html(); ?></td>
60
- <td><?php echo $TO->get_dates_html(); ?></td>
61
- <td><?php echo $TO->get_price_html(); ?></td>
62
  </tr>
63
  <?php endforeach; ?>
64
  </tbody>
65
  <tfoot>
66
  <tr>
67
  <th colspan="5"></th>
68
- <th id="mec_cart_total_payable"><?php echo $this->main->render_price($this->cart->get_payable($cart)); ?></th>
69
  </tr>
70
  </tfoot>
71
  </table>
52
  <tr id="mec_cart_transactions_<?php echo esc_attr($transaction_id); ?>">
53
  <td><span class="mec-cart-remove-transactions" data-transaction-id="<?php echo esc_attr($transaction_id); ?>"><svg xmlns="http://www.w3.org/2000/svg" width="9" height="8.999" viewBox="0 0 9 8.999"><path id="close" d="M6.079,5.647l4.067,4.067-.433.433L5.646,6.079,1.579,10.146l-.433-.433L5.214,5.647,1.146,1.58l.433-.433L5.646,5.214,9.713,1.147l.433.433Z" transform="translate(-1.146 -1.147)" fill="#949596"></path></svg></span></td>
54
  <td>
55
+ <?php echo esc_html($transaction_id); ?>
56
  <?php echo ($TO->get_coupon() ? '<br><code class="mec-cart-coupon-code" title="'.esc_attr__('Applied Coupon', 'modern-events-calendar-lite').'">'.$TO->get_coupon().'</code>' : ''); ?>
57
  </td>
58
+ <td class="mec-cart-event-info"><?php echo MEC_kses::element($TO->get_event_featured_image()); ?><?php echo MEC_kses::element($TO->get_event_link()); ?></td>
59
+ <td><?php echo MEC_kses::element($TO->get_tickets_html()); ?></td>
60
+ <td><?php echo MEC_kses::element($TO->get_dates_html()); ?></td>
61
+ <td><?php echo MEC_kses::element($TO->get_price_html()); ?></td>
62
  </tr>
63
  <?php endforeach; ?>
64
  </tbody>
65
  <tfoot>
66
  <tr>
67
  <th colspan="5"></th>
68
+ <th id="mec_cart_total_payable"><?php echo MEC_kses::element($this->main->render_price($this->cart->get_payable($cart))); ?></th>
69
  </tr>
70
  </tfoot>
71
  </table>
app/features/cart/checkout.php CHANGED
@@ -47,13 +47,13 @@ $this->factory->params('footer', $javascript);
47
  <ul class="mec-checkout-list">
48
  <?php foreach($cart as $transaction_id): $TO = $this->book->get_TO($transaction_id); $price_details = $TO->get_price_details(); ?>
49
  <li class="mec-list-items">
50
- <h3><?php echo $TO->get_event_link(); ?> (<?php echo $this->main->render_price($price_details['total'], $TO->get_event_id()); ?>)</h3>
51
- <div class="mec-checkout-tickets-wrapper"><?php echo $TO->get_tickets_html(); ?></div>
52
  <ul class="mec-checkout-price-details">
53
  <?php foreach($price_details['details'] as $detail): ?>
54
- <li class="mec-checkout-price-detail mec-checkout-price-detail-type<?php echo $detail['type']; ?>">
55
- <span class="mec-checkout-price-detail-description"><?php echo $detail['description']; ?></span>
56
- <span class="mec-checkout-price-detail-amount"><?php echo $this->main->render_price($detail['amount'], $TO->get_event_id()); ?></span>
57
  </li>
58
  <?php endforeach; ?>
59
  </ul>
@@ -64,7 +64,7 @@ $this->factory->params('footer', $javascript);
64
  <?php if(!$free): ?>
65
  <div class="mec-checkout-footer">
66
 
67
- <p id="mec_cart_total_payable"><?php echo $this->main->render_price($this->cart->get_payable($cart)); ?></p>
68
 
69
  <div class="mec-events-meta-group-booking mec-checkout-gateways-wrapper mec-book-form-gateways">
70
  <?php foreach($active_gateways as $gateway): ?>
@@ -73,14 +73,14 @@ $this->factory->params('footer', $javascript);
73
  <?php if(count($active_gateways) > 1): ?>
74
  <input type="radio" name="book[gateway]" class="mec-checkout-gateways-radio" value="<?php echo esc_attr($gateway->id()); ?>" />
75
  <?php endif; ?>
76
- <?php echo $gateway->title(); ?>
77
  </label>
78
  </div>
79
  <?php endforeach; ?>
80
 
81
  <?php foreach($active_gateways as $gateway): ?>
82
  <div class="mec-checkout-form-gateway-checkout <?php echo (count($active_gateways) == 1 ? '' : 'mec-util-hidden'); ?>" id="mec_checkout_form_gateway_checkout<?php echo esc_attr($gateway->id()); ?>">
83
- <?php echo $gateway->comment(); ?>
84
  <?php $gateway->cart_checkout_form($cart_id); ?>
85
  </div>
86
  <?php endforeach; ?>
@@ -90,10 +90,10 @@ $this->factory->params('footer', $javascript);
90
  <form id="mec_checkout_form_free_booking">
91
  <div class="mec-form-row">
92
  <input type="hidden" name="action" value="mec_do_cart_free" />
93
- <input type="hidden" name="cart_id" value="<?php echo $cart_id; ?>" />
94
  <input type="hidden" name="gateway_id" value="4" />
95
  <?php wp_nonce_field('mec_cart_form_'.$cart_id); ?>
96
- <button class="mec-book-form-next-button" type="submit"><?php echo sprintf(__('Free %s', 'modern-events-calendar-lite'), $this->main->m('booking', __('Booking', 'modern-events-calendar-lite'))); ?></button>
97
  </div>
98
  </form>
99
  </div>
47
  <ul class="mec-checkout-list">
48
  <?php foreach($cart as $transaction_id): $TO = $this->book->get_TO($transaction_id); $price_details = $TO->get_price_details(); ?>
49
  <li class="mec-list-items">
50
+ <h3><?php echo MEC_kses::element($TO->get_event_link()); ?> (<?php echo MEC_kses::element($this->main->render_price($price_details['total'], $TO->get_event_id())); ?>)</h3>
51
+ <div class="mec-checkout-tickets-wrapper"><?php echo MEC_kses::element($TO->get_tickets_html()); ?></div>
52
  <ul class="mec-checkout-price-details">
53
  <?php foreach($price_details['details'] as $detail): ?>
54
+ <li class="mec-checkout-price-detail mec-checkout-price-detail-type<?php echo sanitize_html_class($detail['type']); ?>">
55
+ <span class="mec-checkout-price-detail-description"><?php echo esc_html($detail['description']); ?></span>
56
+ <span class="mec-checkout-price-detail-amount"><?php echo MEC_kses::element($this->main->render_price($detail['amount'], $TO->get_event_id())); ?></span>
57
  </li>
58
  <?php endforeach; ?>
59
  </ul>
64
  <?php if(!$free): ?>
65
  <div class="mec-checkout-footer">
66
 
67
+ <p id="mec_cart_total_payable"><?php echo MEC_kses::element($this->main->render_price($this->cart->get_payable($cart))); ?></p>
68
 
69
  <div class="mec-events-meta-group-booking mec-checkout-gateways-wrapper mec-book-form-gateways">
70
  <?php foreach($active_gateways as $gateway): ?>
73
  <?php if(count($active_gateways) > 1): ?>
74
  <input type="radio" name="book[gateway]" class="mec-checkout-gateways-radio" value="<?php echo esc_attr($gateway->id()); ?>" />
75
  <?php endif; ?>
76
+ <?php echo esc_html($gateway->title()); ?>
77
  </label>
78
  </div>
79
  <?php endforeach; ?>
80
 
81
  <?php foreach($active_gateways as $gateway): ?>
82
  <div class="mec-checkout-form-gateway-checkout <?php echo (count($active_gateways) == 1 ? '' : 'mec-util-hidden'); ?>" id="mec_checkout_form_gateway_checkout<?php echo esc_attr($gateway->id()); ?>">
83
+ <?php echo MEC_kses::element($gateway->comment()); ?>
84
  <?php $gateway->cart_checkout_form($cart_id); ?>
85
  </div>
86
  <?php endforeach; ?>
90
  <form id="mec_checkout_form_free_booking">
91
  <div class="mec-form-row">
92
  <input type="hidden" name="action" value="mec_do_cart_free" />
93
+ <input type="hidden" name="cart_id" value="<?php echo esc_attr($cart_id); ?>" />
94
  <input type="hidden" name="gateway_id" value="4" />
95
  <?php wp_nonce_field('mec_cart_form_'.$cart_id); ?>
96
+ <button class="mec-book-form-next-button" type="submit"><?php echo sprintf(__('Free %s', 'modern-events-calendar-lite'), $this->main->m('booking', esc_html__('Booking', 'modern-events-calendar-lite'))); ?></button>
97
  </div>
98
  </form>
99
  </div>
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', 'modern-events-calendar-lite'), array($this, 'meta_box_colors'), $this->main->get_main_post_type(), 'side');
51
  }
52
 
53
  public function mec_hex2rgb($hex)
@@ -81,14 +81,14 @@ class MEC_feature_colors extends MEC_base
81
  ?>
82
  <div class="mec-meta-box-colors-container">
83
  <div class="mec-form-row">
84
- <input type="text" id="mec_event_color" name="mec[color]" value="#<?php echo $color; ?>" data-default-color="#<?php echo $color; ?>" class="mec-color-picker" />
85
  </div>
86
  <div class="mec-form-row mec-available-color-row">
87
- <div class="mec-recent-color-sec" style="display: none"><?php echo __('Recent Colors', 'modern-events-calendar-lite'); ?></div>
88
  <?php foreach($available_colors as $available_color): $rgba_array = $this->mec_hex2rgb('#'.$available_color); ?>
89
  <span class="mec-recent-color-sec-wrap">
90
  <?php if(!empty($rgba_array)) echo '<span class="mec-color-meta-box-popup" style="display: none;background-color: rgba('.$rgba_array[0].','.$rgba_array[1].','.$rgba_array[2].',0.14);"></span>'; ?>
91
- <span class="mec-color" onclick="mec_set_event_color('<?php echo $available_color; ?>');" style="background-color: #<?php echo $available_color; ?>"></span>
92
  </span>
93
  <?php endforeach; ?>
94
  </div>
47
  */
48
  public function register_meta_boxes()
49
  {
50
+ add_meta_box('mec_metabox_color', esc_html__('Event Color', 'modern-events-calendar-lite'), array($this, 'meta_box_colors'), $this->main->get_main_post_type(), 'side');
51
  }
52
 
53
  public function mec_hex2rgb($hex)
81
  ?>
82
  <div class="mec-meta-box-colors-container">
83
  <div class="mec-form-row">
84
+ <input type="text" id="mec_event_color" name="mec[color]" value="#<?php echo esc_attr($color); ?>" data-default-color="#<?php echo esc_attr($color); ?>" class="mec-color-picker" />
85
  </div>
86
  <div class="mec-form-row mec-available-color-row">
87
+ <div class="mec-recent-color-sec" style="display: none"><?php echo esc_html__('Recent Colors', 'modern-events-calendar-lite'); ?></div>
88
  <?php foreach($available_colors as $available_color): $rgba_array = $this->mec_hex2rgb('#'.$available_color); ?>
89
  <span class="mec-recent-color-sec-wrap">
90
  <?php if(!empty($rgba_array)) echo '<span class="mec-color-meta-box-popup" style="display: none;background-color: rgba('.$rgba_array[0].','.$rgba_array[1].','.$rgba_array[2].',0.14);"></span>'; ?>
91
+ <span class="mec-color" onclick="mec_set_event_color('<?php echo esc_attr($available_color); ?>');" style="background-color: #<?php echo esc_attr($available_color); ?>"></span>
92
  </span>
93
  <?php endforeach; ?>
94
  </div>
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', '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 used for every attendee).</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,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', '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,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','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,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','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,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','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,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','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,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','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>
@@ -190,7 +190,6 @@ class MEC_feature_contextual extends MEC_base
190
  A. <a href="https://developers.google.com/maps/web/"><b>Click On This</b></a> to start get key from google when page is fully loaded scroll down and click on "GET A KEY" like this :
191
  <div class="row">
192
  <div class="col-md-10">
193
- <!-- <img src="images/settings/get_key.png" width="100%" alt="Get Google Key"> -->
194
  </div>
195
  <div class="col-md-2"></div>
196
  </div>
@@ -202,24 +201,14 @@ class MEC_feature_contextual extends MEC_base
202
  <li>C. After login user will be directed to blew page set drop down to create new project then click on continue .
203
  <div class="row">
204
  <div class="col-md-8">
205
- <!-- <img src="images/settings/continu.png" width="100%" alt="Get Google Key"> -->
206
  </div>
207
  <div class="col-md-4"></div>
208
  </div>
209
  </li>
210
  <div class="vertical-space2"></div>
211
- <!--<li>D. Enter your name for google map project and set your domain then click on create!
212
- <div class="row">
213
- <div class="col-md-6">
214
- <img src="images/settings/creat.png" width="100%" alt="Create Google Key">
215
- </div>
216
- <div class="col-md-6"></div>
217
- </div>
218
- </li>-->
219
  <li>D. Congratulation you got key!
220
  <div class="row">
221
  <div class="col-md-8">
222
- <!-- <img src="images/settings/Congratulation.png" width="100%" alt="Congratulation"> -->
223
  </div>
224
  <div class="col-md-4"></div>
225
  </div>
@@ -227,7 +216,6 @@ class MEC_feature_contextual extends MEC_base
227
  <li>E. Paste your key here now Modern Event calendar can contract with google map!
228
  <div class="row">
229
  <div class="col-md-8">
230
- <!-- <img src="images/settings/paste_key.png" width="100%" alt="Congratulation"> -->
231
  </div>
232
  <div class="col-md-4"></div>
233
  </div>
@@ -241,7 +229,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','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,7 +243,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','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,7 +253,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','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,7 +263,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','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,7 +271,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','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,7 +283,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','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,7 +293,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','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,7 +303,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','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,7 +311,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','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,7 +319,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','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,7 +331,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','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>
52
  $screen->add_help_tab(array
53
  (
54
  'id' => 'mec-settings',
55
+ 'title' => esc_html__('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' => esc_html__('Booking Form', 'modern-events-calendar-lite'),
63
+ 'content' => esc_html__('<h2 class="dark-text">Booking Form<hr></h2>
64
  <strong>Build your booking registration form (This form will be used for every attendee).</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' => esc_html__('Payment Gateways', 'modern-events-calendar-lite'),
71
+ 'content' => esc_html__('<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' => esc_html__('Notifications', 'modern-events-calendar-lite'),
78
+ 'content' => esc_html__('<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' => esc_html__('Google Cal. Import', 'modern-events-calendar-lite'),
89
+ 'content' => esc_html__('<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' => esc_html__('Google Cal. Export', 'modern-events-calendar-lite'),
96
+ 'content' => esc_html__('<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' => esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'),
103
+ 'content' => esc_html__('<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 esc_html_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 esc_html_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 esc_html_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 esc_html_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 esc_html_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>
190
  A. <a href="https://developers.google.com/maps/web/"><b>Click On This</b></a> to start get key from google when page is fully loaded scroll down and click on "GET A KEY" like this :
191
  <div class="row">
192
  <div class="col-md-10">
 
193
  </div>
194
  <div class="col-md-2"></div>
195
  </div>
201
  <li>C. After login user will be directed to blew page set drop down to create new project then click on continue .
202
  <div class="row">
203
  <div class="col-md-8">
 
204
  </div>
205
  <div class="col-md-4"></div>
206
  </div>
207
  </li>
208
  <div class="vertical-space2"></div>
 
 
 
 
 
 
 
 
209
  <li>D. Congratulation you got key!
210
  <div class="row">
211
  <div class="col-md-8">
 
212
  </div>
213
  <div class="col-md-4"></div>
214
  </div>
216
  <li>E. Paste your key here now Modern Event calendar can contract with google map!
217
  <div class="row">
218
  <div class="col-md-8">
 
219
  </div>
220
  <div class="col-md-4"></div>
221
  </div>
229
  </ul>
230
 
231
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
232
+ <li class="mec-acc-label" data-key="g_recaptcha" data-status="close"><?php esc_html_e('Google Recaptcha Options','modern-events-calendar-lite'); ?></li>
233
  <ul id="mec-acc-g_recaptcha" style="display: none;">
234
  <h2 class="dark-text">GOOGLE RECAPTCHA OPTIONS<hr></h2>
235
  <strong>Easily setup your captcha and security on mec by google captcha.</strong>
243
  </ul>
244
 
245
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
246
+ <li class="mec-acc-label" data-key="countdown" data-status="close"><?php esc_html_e('Countdown Options','modern-events-calendar-lite'); ?></li>
247
  <ul id="mec-acc-countdown" style="display: none;">
248
  <h2 class="dark-text">COUNTDOWN OPTIONS<hr></h2>
249
  <strong>1- Shows Event Countdown in event single.</strong><br />
253
  </ul>
254
 
255
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
256
+ <li class="mec-acc-label" data-key="social" data-status="close"><?php esc_html_e('Social Networks','modern-events-calendar-lite'); ?></li>
257
  <ul id="mec-acc-social" style="display: none;">
258
  <h2 class="dark-text">Social Networks <hr></h2>
259
  <strong>Show social networks in event single. (For better displaying in grid view, you should just select 3 of them)</strong>
263
  </ul>
264
 
265
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
266
+ <li class="mec-acc-label" data-key="next_event" data-status="close"><?php esc_html_e('Next Event Module','modern-events-calendar-lite'); ?></li>
267
  <ul id="mec-acc-next_event" style="display: none;">
268
  <h2 class="dark-text">Next Event Module<hr></h2>
269
  <iframe width="600" height="420" src="https://www.youtube.com/embed/2CsOdgkBIms" frameborder="0" allowfullscreen></iframe>
271
  </ul>
272
 
273
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
274
+ <li class="mec-acc-label" data-key="fes" data-status="close"><?php esc_html_e('Frontend Event Submission','modern-events-calendar-lite'); ?></li>
275
  <ul id="mec-acc-fes" style="display: none;">
276
  <h2 class="dark-text">Front Event Submission<hr></h2>
277
  <ol class="list-w">
283
  </ul>
284
 
285
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
286
+ <li class="mec-acc-label" data-key="exceptional" data-status="close"><?php esc_html_e('Exceptional Days','modern-events-calendar-lite'); ?></li>
287
  <ul id="mec-acc-exceptional" style="display: none;">
288
  <h2 class="dark-text">Exceptional Days<hr></h2>
289
  <strong>Show exceptional days option on Add/Edit events page</strong>
293
  </ul>
294
 
295
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
296
+ <li class="mec-acc-label" data-key="booking" data-status="close"><?php esc_html_e('Booking','modern-events-calendar-lite'); ?></li>
297
  <ul id="mec-acc-booking" style="display: none;">
298
  <h2 class="dark-text">Booking<hr></h2>
299
  <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>
303
  </ul>
304
 
305
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
306
+ <li class="mec-acc-label" data-key="coupon" data-status="close"><?php esc_html_e('Coupons','modern-events-calendar-lite'); ?></li>
307
  <ul id="mec-acc-coupon" style="display: none;">
308
  <h2 class="dark-text">Coupons<hr></h2>
309
  <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>
311
  </ul>
312
 
313
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
314
+ <li class="mec-acc-label" data-key="buddy" data-status="close"><?php esc_html_e('BuddyPress Integration','modern-events-calendar-lite'); ?></li>
315
  <ul id="mec-acc-buddy" style="display: none;">
316
  <h2 class="dark-text">Buddypress<hr></h2>
317
  <iframe width="600" height="300" src="https://www.youtube.com/embed/ZNZOSgXO16o" frameborder="0" allowfullscreen></iframe>
319
  </ul>
320
 
321
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
322
+ <li class="mec-acc-label" data-key="mailchimp" data-status="close"><?php esc_html_e('Mailchimp Integration','modern-events-calendar-lite'); ?></li>
323
  <ul id="mec-acc-mailchimp" style="display: none;">
324
  <h2 class="dark-text">Mailchimp Integration<hr></h2>
325
  <strong>API Key : Mailchimp account > Extras > API Key > Copy APIKey</strong>
331
  </ul>
332
 
333
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
334
+ <li class="mec-acc-label" data-key="activation" data-status="close"><?php esc_html_e('MEC Activation','modern-events-calendar-lite'); ?></li>
335
  <ul id="mec-acc-activation" style="display: none;">
336
  <h2 class="dark-text">How to Activate Plugin<hr></h2>
337
  <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/dc.php CHANGED
@@ -212,7 +212,7 @@ class MEC_feature_dc extends MEC_base
212
  if(isset($event->date) and isset($event->date['start']) and isset($event->date['start']['timestamp'])) $more_info_url = MEC_feature_occurrences::param($event->ID, $event->date['start']['timestamp'], 'more_info', $more_info_url);
213
 
214
  $more_info_target = MEC_feature_occurrences::param($event->ID, $event->date['start']['timestamp'], 'more_info_target', (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'));
215
- $more_info_title = MEC_feature_occurrences::param($event->ID, $event->date['start']['timestamp'], 'more_info_title', ((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')));
216
 
217
  return '<a target="'.$more_info_target.'" href="'.esc_url($more_info_url).'">'.$more_info_title.'</a>';
218
  }
212
  if(isset($event->date) and isset($event->date['start']) and isset($event->date['start']['timestamp'])) $more_info_url = MEC_feature_occurrences::param($event->ID, $event->date['start']['timestamp'], 'more_info', $more_info_url);
213
 
214
  $more_info_target = MEC_feature_occurrences::param($event->ID, $event->date['start']['timestamp'], 'more_info_target', (isset($event->data->meta['mec_more_info_target']) ? $event->data->meta['mec_more_info_target'] : '_self'));
215
+ $more_info_title = MEC_feature_occurrences::param($event->ID, $event->date['start']['timestamp'], 'more_info_title', ((isset($event->data->meta['mec_more_info_title']) and trim($event->data->meta['mec_more_info_title'])) ? $event->data->meta['mec_more_info_title'] : esc_html__('Read More', 'modern-events-calendar-lite')));
216
 
217
  return '<a target="'.$more_info_target.'" href="'.esc_url($more_info_url).'">'.$more_info_title.'</a>';
218
  }
app/features/dlfile.php CHANGED
@@ -135,13 +135,13 @@ class MEC_feature_dlfile extends MEC_base
135
  });
136
  </script>
137
  <div class="mec-meta-box-fields mec-booking-tab-content" id="mec-downloadable-file">
138
- <h4><?php _e('Downloadable File', 'modern-events-calendar-lite'); ?></h4>
139
  <div id="mec_meta_box_downloadable_file_options">
140
- <input type="hidden" id="mec_downloadable_file" name="mec[downloadable_file]" value="<?php echo $file_id; ?>">
141
  <input type="file" id="mec_downloadable_file_uploader">
142
  <p class="description"><?php esc_html_e('pdf,zip,png,jpg and gif files are allowed.', 'modern-events-calendar-lite'); ?></p>
143
  <div id="mec_downloadable_file_link" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php echo ($file_id ? '<a href="'.$file_url.'" target="_blank">'.$file_url.'</a>' : ''); ?></div>
144
- <button type="button" id="mec_downloadable_file_remove_image_button" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php _e('Remove File', 'modern-events-calendar-lite'); ?></button>
145
  <div class="mec-error mec-util-hidden" id="mec_downloadable_file_error"></div>
146
  </div>
147
  </div>
@@ -203,7 +203,7 @@ class MEC_feature_dlfile extends MEC_base
203
  if($attach_id and (!isset($upload['error']) or (isset($upload['error']) and !$upload['error'])))
204
  {
205
  $success = 1;
206
- $message = __('File uploaded!', 'modern-events-calendar-lite');
207
 
208
  $data['url'] = $upload['url'];
209
  $data['id'] = $attach_id;
@@ -284,21 +284,21 @@ class MEC_feature_dlfile extends MEC_base
284
  });
285
  </script>
286
  <div class="mec-meta-box-fields mec-event-tab-content" id="mec-public-download-module-file">
287
- <h4><?php _e('Public File to Download', 'modern-events-calendar-lite'); ?></h4>
288
  <div id="mec_meta_box_downloadable_file_options">
289
- <input type="hidden" id="mec_public_download_module_file" name="mec[public_download_module_file]" value="<?php echo $file_id; ?>">
290
  <input type="file" id="mec_public_download_module_file_uploader">
291
  <p class="description"><?php esc_html_e('pdf,zip,png,jpg and gif files are allowed.', 'modern-events-calendar-lite'); ?></p>
292
  <div id="mec_public_download_module_file_link" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php echo ($file_id ? '<a href="'.$file_url.'" target="_blank">'.$file_url.'</a>' : ''); ?></div>
293
- <button type="button" id="mec_public_download_module_file_remove_image_button" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php _e('Remove File', 'modern-events-calendar-lite'); ?></button>
294
  <div class="mec-error mec-util-hidden" id="mec_public_download_module_file_error"></div>
295
  </div>
296
  <div class="mec-form-row" style="margin-top: 30px;">
297
- <label for="mec_public_download_module_title" class="mec-col-2"><?php _e('Title', 'modern-events-calendar-lite'); ?></label>
298
  <input class="mec-col-5" type="text" id="mec_public_download_module_title" name="mec[public_download_module_title]" value="<?php echo esc_attr($title); ?>">
299
  </div>
300
  <div class="mec-form-row">
301
- <label for="mec_public_download_module_description" class="mec-col-2"><?php _e('Description', 'modern-events-calendar-lite'); ?></label>
302
  <textarea class="mec-col-5" id="mec_public_download_module_description" name="mec[public_download_module_description]" rows="5"><?php echo esc_textarea($description); ?></textarea>
303
  </div>
304
  </div>
@@ -360,7 +360,7 @@ class MEC_feature_dlfile extends MEC_base
360
  if($attach_id and (!isset($upload['error']) or (isset($upload['error']) and !$upload['error'])))
361
  {
362
  $success = 1;
363
- $message = __('File uploaded!', 'modern-events-calendar-lite');
364
 
365
  $data['url'] = $upload['url'];
366
  $data['id'] = $attach_id;
135
  });
136
  </script>
137
  <div class="mec-meta-box-fields mec-booking-tab-content" id="mec-downloadable-file">
138
+ <h4><?php esc_html_e('Downloadable File', 'modern-events-calendar-lite'); ?></h4>
139
  <div id="mec_meta_box_downloadable_file_options">
140
+ <input type="hidden" id="mec_downloadable_file" name="mec[downloadable_file]" value="<?php echo esc_attr($file_id); ?>">
141
  <input type="file" id="mec_downloadable_file_uploader">
142
  <p class="description"><?php esc_html_e('pdf,zip,png,jpg and gif files are allowed.', 'modern-events-calendar-lite'); ?></p>
143
  <div id="mec_downloadable_file_link" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php echo ($file_id ? '<a href="'.$file_url.'" target="_blank">'.$file_url.'</a>' : ''); ?></div>
144
+ <button type="button" id="mec_downloadable_file_remove_image_button" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php esc_html_e('Remove File', 'modern-events-calendar-lite'); ?></button>
145
  <div class="mec-error mec-util-hidden" id="mec_downloadable_file_error"></div>
146
  </div>
147
  </div>
203
  if($attach_id and (!isset($upload['error']) or (isset($upload['error']) and !$upload['error'])))
204
  {
205
  $success = 1;
206
+ $message = esc_html__('File uploaded!', 'modern-events-calendar-lite');
207
 
208
  $data['url'] = $upload['url'];
209
  $data['id'] = $attach_id;
284
  });
285
  </script>
286
  <div class="mec-meta-box-fields mec-event-tab-content" id="mec-public-download-module-file">
287
+ <h4><?php esc_html_e('Public File to Download', 'modern-events-calendar-lite'); ?></h4>
288
  <div id="mec_meta_box_downloadable_file_options">
289
+ <input type="hidden" id="mec_public_download_module_file" name="mec[public_download_module_file]" value="<?php echo esc_attr($file_id); ?>">
290
  <input type="file" id="mec_public_download_module_file_uploader">
291
  <p class="description"><?php esc_html_e('pdf,zip,png,jpg and gif files are allowed.', 'modern-events-calendar-lite'); ?></p>
292
  <div id="mec_public_download_module_file_link" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php echo ($file_id ? '<a href="'.$file_url.'" target="_blank">'.$file_url.'</a>' : ''); ?></div>
293
+ <button type="button" id="mec_public_download_module_file_remove_image_button" class="<?php echo (trim($file_id) ? '' : 'mec-util-hidden'); ?>"><?php esc_html_e('Remove File', 'modern-events-calendar-lite'); ?></button>
294
  <div class="mec-error mec-util-hidden" id="mec_public_download_module_file_error"></div>
295
  </div>
296
  <div class="mec-form-row" style="margin-top: 30px;">
297
+ <label for="mec_public_download_module_title" class="mec-col-2"><?php esc_html_e('Title', 'modern-events-calendar-lite'); ?></label>
298
  <input class="mec-col-5" type="text" id="mec_public_download_module_title" name="mec[public_download_module_title]" value="<?php echo esc_attr($title); ?>">
299
  </div>
300
  <div class="mec-form-row">
301
+ <label for="mec_public_download_module_description" class="mec-col-2"><?php esc_html_e('Description', 'modern-events-calendar-lite'); ?></label>
302
  <textarea class="mec-col-5" id="mec_public_download_module_description" name="mec[public_download_module_description]" rows="5"><?php echo esc_textarea($description); ?></textarea>
303
  </div>
304
  </div>
360
  if($attach_id and (!isset($upload['error']) or (isset($upload['error']) and !$upload['error'])))
361
  {
362
  $success = 1;
363
+ $message = esc_html__('File uploaded!', 'modern-events-calendar-lite');
364
 
365
  $data['url'] = $upload['url'];
366
  $data['id'] = $attach_id;
app/features/events.php CHANGED
@@ -189,15 +189,15 @@ class MEC_feature_events extends MEC_base
189
  $this->PT,
190
  array(
191
  'labels' => array(
192
- 'name' => __('Events', 'modern-events-calendar-lite'),
193
- 'singular_name' => __('Event', 'modern-events-calendar-lite'),
194
- 'add_new' => __('Add Event', 'modern-events-calendar-lite'),
195
- 'add_new_item' => __('Add New Event', 'modern-events-calendar-lite'),
196
- 'not_found' => __('No events found!', 'modern-events-calendar-lite'),
197
- 'all_items' => __('All Events', 'modern-events-calendar-lite'),
198
- 'edit_item' => __('Edit Event', 'modern-events-calendar-lite'),
199
- 'view_item' => __('View Event', 'modern-events-calendar-lite'),
200
- 'not_found_in_trash' => __('No events found in Trash!', 'modern-events-calendar-lite'),
201
  ),
202
  'public' => true,
203
  'has_archive' => ($this->main->get_archive_status() ? true : false),
@@ -215,8 +215,8 @@ class MEC_feature_events extends MEC_base
215
  )
216
  );
217
 
218
- $singular_label = $this->main->m('taxonomy_category', __('Category', 'modern-events-calendar-lite'));
219
- $plural_label = $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite'));
220
 
221
  register_taxonomy(
222
  'mec_category',
@@ -260,23 +260,23 @@ class MEC_feature_events extends MEC_base
260
  $fallback = (isset($this->settings['fallback_featured_image_status']) and $this->settings['fallback_featured_image_status']);
261
  ?>
262
  <div class="form-field">
263
- <label for="mec_cat_icon"><?php _e('Category Icon', 'modern-events-calendar-lite'); ?></label>
264
  <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value=""/>
265
- <a href="<?php echo $this->main->asset('icon.html'); ?>?&width=680&height=450&inlineId=my-content-id"
266
- class="thickbox mec_category_icon button"><?php echo __('Select icon', 'modern-events-calendar-lite'); ?></a>
267
  </div>
268
  <div class="form-field">
269
- <label for="mec_cat_color"><?php _e('Color', 'modern-events-calendar-lite'); ?></label>
270
  <input type="text" name="mec_cat_color" id="mec_cat_color" class="mec-color-picker" />
271
- <p class="description"><?php _e('Optional category color', 'modern-events-calendar-lite'); ?></p>
272
  </div>
273
  <?php if($fallback): ?>
274
  <div class="form-field">
275
- <label for="mec_thumbnail_button"><?php _e('Fallback Image', 'modern-events-calendar-lite'); ?></label>
276
  <div id="mec_thumbnail_img"></div>
277
  <input type="hidden" name="fallback" id="mec_thumbnail" value="" />
278
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
279
- <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
280
  </div>
281
  <?php endif; ?>
282
  <?php
@@ -305,36 +305,36 @@ class MEC_feature_events extends MEC_base
305
  ?>
306
  <tr class="form-field">
307
  <th scope="row" >
308
- <label for="mec_cat_icon"><?php _e('Category Icon', 'modern-events-calendar-lite'); ?></label>
309
  </th>
310
  <td>
311
- <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value="<?php echo $icon; ?>"/>
312
- <a href="<?php echo $this->main->asset('icon.html'); ?>?&width=680&height=450&inlineId=my-content-id"
313
- class="thickbox mec_category_icon button"><?php echo __('Select icon', 'modern-events-calendar-lite'); ?></a>
314
  <?php if (isset($icon)) : ?>
315
- <div class="mec-webnus-icon"><i class="<?php echo $icon; ?> mec-color"></i></div>
316
  <?php endif; ?>
317
  </td>
318
  </tr>
319
  <tr class="form-field">
320
  <th scope="row" >
321
- <label for="mec_cat_color"><?php _e('Color', 'modern-events-calendar-lite'); ?></label>
322
  </th>
323
  <td>
324
- <input type="text" name="mec_cat_color" id="mec_cat_color" value="<?php echo $color; ?>" data-default-color="<?php echo $color; ?>" class="mec-color-picker" />
325
- <p class="description"><?php _e('Optional category color', 'modern-events-calendar-lite'); ?></p>
326
  </td>
327
  </tr>
328
  <?php if($fallback): ?>
329
  <tr class="form-field">
330
  <th scope="row" >
331
- <label for="mec_thumbnail_button"><?php _e('Fallback Image', 'modern-events-calendar-lite'); ?></label>
332
  </th>
333
  <td>
334
  <div id="mec_thumbnail_img"><?php if(trim($fallback_image) != '') echo '<img src="'.$fallback_image.'" />'; ?></div>
335
  <input type="hidden" name="fallback" id="mec_thumbnail" value="<?php echo esc_attr($fallback_image); ?>" />
336
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
337
- <button type="button" class="mec_remove_image_button button <?php echo (!trim($fallback_image) ? 'mec-util-hidden' : ''); ?>"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
338
  </td>
339
  </tr>
340
  <?php endif; ?>
@@ -389,12 +389,12 @@ class MEC_feature_events extends MEC_base
389
  */
390
  public function register_meta_boxes()
391
  {
392
- 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');
393
 
394
  // Show Booking meta box onnly if booking module is enabled
395
  if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status'])
396
  {
397
- add_meta_box('mec_metabox_booking', __('Booking', 'modern-events-calendar-lite'), array($this, 'meta_box_booking'), $this->main->get_main_post_type(), 'normal', 'high');
398
  }
399
  }
400
 
@@ -420,19 +420,19 @@ class MEC_feature_events extends MEC_base
420
  <?php
421
  $activated = '';
422
  $tabs = array(
423
- __('FES Details', 'modern-events-calendar-lite') => 'mec_meta_box_fes_form',
424
- __('Date And Time', 'modern-events-calendar-lite') => 'mec_meta_box_date_form',
425
- __('Event Repeating', 'modern-events-calendar-lite') => 'mec_meta_box_repeat_form',
426
- __('Event Data', 'modern-events-calendar-lite') => 'mec-event-data',
427
- __('Exceptional Days', 'modern-events-calendar-lite') => 'mec-exceptional-days',
428
- __('Hourly Schedule', 'modern-events-calendar-lite') => 'mec-hourly-schedule',
429
- __('Location/Venue', 'modern-events-calendar-lite') => 'mec-location',
430
- __('Links', 'modern-events-calendar-lite') => 'mec-read-more',
431
- __('Organizer', 'modern-events-calendar-lite') => 'mec-organizer',
432
- __('Cost', 'modern-events-calendar-lite') => 'mec-cost',
433
- __('SEO Schema / Event Status', 'modern-events-calendar-lite') => 'mec-schema',
434
- __('Notifications', 'modern-events-calendar-lite') => 'mec-notifications',
435
- __('Public Download', 'modern-events-calendar-lite') => 'mec-public-download-module-file',
436
  );
437
 
438
  $single_event_meta_title = apply_filters('mec-single-event-meta-title', $tabs, $activated, $post);
@@ -595,15 +595,15 @@ class MEC_feature_events extends MEC_base
595
  <?php endif; ?>
596
  <?php if($note_visibility and trim($note)): ?>
597
  <div class="mec-event-note">
598
- <h4><?php _e('Note for reviewer', 'modern-events-calendar-lite'); ?></h4>
599
- <p><?php echo $note; ?></p>
600
  </div>
601
  <?php endif; ?>
602
  <?php if(trim($fes_guest_email) and trim($fes_guest_name)): ?>
603
  <div class="mec-guest-data">
604
- <h4><?php _e('Guest Data', 'modern-events-calendar-lite'); ?></h4>
605
- <p><strong><?php _e('Name', 'modern-events-calendar-lite'); ?>:</strong> <?php echo $fes_guest_name; ?></p>
606
- <p><strong><?php _e('Email', 'modern-events-calendar-lite'); ?>:</strong> <?php echo $fes_guest_email; ?></p>
607
  </div>
608
  <?php endif; ?>
609
  <?php if(($note_visibility and trim($note)) || (trim($fes_guest_email) and trim($fes_guest_name))): ?>
@@ -616,14 +616,14 @@ class MEC_feature_events extends MEC_base
616
  <?php endif; ?>
617
 
618
  <div id="mec_meta_box_date_form" class="mec-event-tab-content">
619
- <h4><?php _e('Date and Time', 'modern-events-calendar-lite'); ?></h4>
620
  <div class="mec-title">
621
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
622
- <label for="mec_start_date"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
623
  </div>
624
  <div class="mec-form-row">
625
  <div class="mec-col-4">
626
- <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($this->main->standardize_format($start_date, $datepicker_format)); ?>" placeholder="<?php _e('Start Date', 'modern-events-calendar-lite'); ?>" autocomplete="off"/>
627
  </div>
628
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
629
  <?php $this->main->timepicker(array(
@@ -639,11 +639,11 @@ class MEC_feature_events extends MEC_base
639
  </div>
640
  <div class="mec-title">
641
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
642
- <label for="mec_end_date"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
643
  </div>
644
  <div class="mec-form-row">
645
  <div class="mec-col-4">
646
- <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($this->main->standardize_format($end_date, $datepicker_format)); ?>" placeholder="<?php _e('End Date', 'modern-events-calendar-lite'); ?>" autocomplete="off"/>
647
  </div>
648
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
649
  <?php $this->main->timepicker(array(
@@ -666,7 +666,7 @@ class MEC_feature_events extends MEC_base
666
  ?>
667
  type="checkbox" name="mec[date][allday]" id="mec_allday" value="1"
668
  onchange="jQuery('.mec-time-picker, .mec-time-picker-label').toggle(); jQuery('#mec_add_in_days').data('allday', (jQuery(this).is(':checked') ? 1 : 0));"/><label
669
- for="mec_allday"><?php _e('All-day Event', 'modern-events-calendar-lite'); ?></label>
670
  </div>
671
  <div class="mec-form-row">
672
  <input
@@ -676,7 +676,7 @@ class MEC_feature_events extends MEC_base
676
  }
677
  ?>
678
  type="checkbox" name="mec[date][hide_time]" id="mec_hide_time" value="1"/><label
679
- for="mec_hide_time"><?php _e('Hide Event Time', 'modern-events-calendar-lite'); ?></label>
680
  </div>
681
  <div class="mec-form-row">
682
  <input
@@ -686,19 +686,19 @@ class MEC_feature_events extends MEC_base
686
  }
687
  ?>
688
  type="checkbox" name="mec[date][hide_end_time]" id="mec_hide_end_time" value="1"/><label
689
- for="mec_hide_end_time"><?php _e('Hide Event End Time', 'modern-events-calendar-lite'); ?></label>
690
  </div>
691
  <div class="mec-form-row">
692
  <div class="mec-col-4">
693
  <input type="text" class="" name="mec[date][comment]" id="mec_comment"
694
- placeholder="<?php _e('Notes on the time', 'modern-events-calendar-lite'); ?>"
695
  value="<?php echo esc_attr($comment); ?>"/>
696
  <span class="mec-tooltip">
697
  <div class="box top">
698
- <h5 class="title"><?php _e('Notes on the time', 'modern-events-calendar-lite'); ?></h5>
699
  <div class="content"><p><?php esc_attr_e('It shows next to event time on the Single Event Page. You can enter notes such as timezone in this field.', 'modern-events-calendar-lite'); ?>
700
  <a href="https://webnus.net/dox/modern-events-calendar/add-event/"
701
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
702
  </div>
703
  <i title="" class="dashicons-before dashicons-editor-help"></i>
704
  </span>
@@ -714,7 +714,7 @@ class MEC_feature_events extends MEC_base
714
  <div class="mec-col-4">
715
  <select name="mec[timezone]" id="mec_event_timezone">
716
  <option value="global"><?php esc_html_e('Inherit from global options'); ?></option>
717
- <?php echo $this->main->timezones($event_timezone); ?>
718
  </select>
719
  </div>
720
  </div>
@@ -722,31 +722,31 @@ class MEC_feature_events extends MEC_base
722
  <?php endif; ?>
723
 
724
  <?php if(isset($this->settings['countdown_status']) and $this->settings['countdown_status']): ?>
725
- <h4><?php _e('Countdown Method', 'modern-events-calendar-lite'); ?></h4>
726
  <div class="mec-form-row">
727
  <div class="mec-col-4">
728
  <select name="mec[countdown_method]" id="mec_countdown_method" title="<?php esc_attr_e('Countdown Method', 'modern-events-calendar-lite'); ?>">
729
- <option value="global" <?php if('global' == $countdown_method) echo 'selected="selected"'; ?>><?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
730
- <option value="start" <?php if('start' == $countdown_method) echo 'selected="selected"'; ?>><?php _e('Count to Event Start', 'modern-events-calendar-lite'); ?></option>
731
- <option value="end" <?php if('end' == $countdown_method) echo 'selected="selected"'; ?>><?php _e('Count to Event End', 'modern-events-calendar-lite'); ?></option>
732
  </select>
733
  </div>
734
  </div>
735
  <?php endif; ?>
736
 
737
- <h4><?php _e('Visibility', 'modern-events-calendar-lite'); ?></h4>
738
  <div class="mec-form-row">
739
  <div class="mec-col-4">
740
  <select name="mec[public]" id="mec_public" title="<?php esc_attr_e('Event Visibility', 'modern-events-calendar-lite'); ?>">
741
- <option value="1" <?php if('1' == $public) echo 'selected="selected"'; ?>><?php _e('Show on Shortcodes', 'modern-events-calendar-lite'); ?></option>
742
- <option value="0" <?php if('0' == $public) echo 'selected="selected"'; ?>><?php _e('Hide on Shortcodes', 'modern-events-calendar-lite'); ?></option>
743
  </select>
744
  </div>
745
  </div>
746
 
747
  </div>
748
  <div id="mec_meta_box_repeat_form" class="mec-event-tab-content">
749
- <h4><?php _e('Repeating', 'modern-events-calendar-lite'); ?></h4>
750
  <div class="mec-form-row">
751
  <input
752
  <?php
@@ -755,11 +755,11 @@ class MEC_feature_events extends MEC_base
755
  }
756
  ?>
757
  type="checkbox" name="mec[date][repeat][status]" id="mec_repeat" value="1"/><label
758
- for="mec_repeat"><?php _e('Event Repeating (Recurring events)', 'modern-events-calendar-lite'); ?></label>
759
  </div>
760
  <div class="mec-form-repeating-event-row">
761
  <div class="mec-form-row">
762
- <label class="mec-col-3" for="mec_repeat_type"><?php _e('Repeats', 'modern-events-calendar-lite'); ?></label>
763
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
764
  <option
765
  <?php
@@ -767,81 +767,81 @@ class MEC_feature_events extends MEC_base
767
  echo 'selected="selected"';
768
  }
769
  ?>
770
- value="daily"><?php _e('Daily', 'modern-events-calendar-lite'); ?></option>
771
  <option
772
  <?php
773
  if ($repeat_type == 'weekday') {
774
  echo 'selected="selected"';
775
  }
776
  ?>
777
- value="weekday"><?php _e('Every Weekday', 'modern-events-calendar-lite'); ?></option>
778
  <option
779
  <?php
780
  if ($repeat_type == 'weekend') {
781
  echo 'selected="selected"';
782
  }
783
  ?>
784
- value="weekend"><?php _e('Every Weekend', 'modern-events-calendar-lite'); ?></option>
785
  <option
786
  <?php
787
  if ($repeat_type == 'certain_weekdays') {
788
  echo 'selected="selected"';
789
  }
790
  ?>
791
- value="certain_weekdays"><?php _e('Certain Weekdays', 'modern-events-calendar-lite'); ?></option>
792
  <option
793
  <?php
794
  if ($repeat_type == 'weekly') {
795
  echo 'selected="selected"';
796
  }
797
  ?>
798
- value="weekly"><?php _e('Weekly', 'modern-events-calendar-lite'); ?></option>
799
  <option
800
  <?php
801
  if ($repeat_type == 'monthly') {
802
  echo 'selected="selected"';
803
  }
804
  ?>
805
- value="monthly"><?php _e('Monthly', 'modern-events-calendar-lite'); ?></option>
806
  <option
807
  <?php
808
  if ($repeat_type == 'yearly') {
809
  echo 'selected="selected"';
810
  }
811
  ?>
812
- value="yearly"><?php _e('Yearly', 'modern-events-calendar-lite'); ?></option>
813
  <option
814
  <?php
815
  if ($repeat_type == 'custom_days') {
816
  echo 'selected="selected"';
817
  }
818
  ?>
819
- value="custom_days"><?php _e('Custom Days', 'modern-events-calendar-lite'); ?></option>
820
  <option
821
  <?php
822
  if ($repeat_type == 'advanced') {
823
  echo 'selected="selected"';
824
  }
825
  ?>
826
- value="advanced"><?php _e('Advanced', 'modern-events-calendar-lite'); ?></option>
827
  </select>
828
  </div>
829
  <div class="mec-form-row" id="mec_repeat_interval_container">
830
  <label class="mec-col-3"
831
- for="mec_repeat_interval"><?php _e('Repeat Interval', 'modern-events-calendar-lite'); ?></label>
832
  <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval"
833
- placeholder="<?php _e('Repeat interval', 'modern-events-calendar-lite'); ?>"
834
  value="<?php echo($repeat_type == 'weekly' ? ($repeat_interval / 7) : $repeat_interval); ?>"/>
835
  </div>
836
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
837
- <label class="mec-col-3"><?php _e('Week Days', 'modern-events-calendar-lite'); ?></label>
838
  <?php
839
  $weekdays = $this->main->get_weekday_i18n_labels();
840
  foreach($weekdays as $weekday):
841
  ?>
842
  <label>
843
  <input type="checkbox" name="mec[date][repeat][certain_weekdays][]"
844
- value="<?php echo intval($weekday[0]); ?>" <?php echo(in_array($weekday[0], $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php echo $weekday[1]; ?>
845
  </label>
846
  <?php endforeach; ?>
847
  </div>
@@ -857,7 +857,7 @@ class MEC_feature_events extends MEC_base
857
  <?php endif; ?>
858
  <div class="mec-form-row">
859
  <div class="mec-col-4">
860
- <input type="text" id="mec_exceptions_in_days_start_date" value="" placeholder="<?php _e('Start', 'modern-events-calendar-lite'); ?>" title="<?php _e('Start', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format widefat" autocomplete="off"/>
861
  </div>
862
  <div class="mec-col-3 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
863
  <?php $this->main->timepicker(array(
@@ -871,14 +871,14 @@ class MEC_feature_events extends MEC_base
871
  )); ?>
872
  </div>
873
  <div class="mec-col-5">
874
- <button class="button" type="button" id="mec_add_in_days" data-allday="<?php echo $allday; ?>"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
875
  <span class="mec-tooltip">
876
  <div class="box top">
877
- <h5 class="title"><?php _e('Custom Days Repeating', 'modern-events-calendar-lite'); ?></h5>
878
  <div class="content">
879
  <p>
880
  <?php esc_attr_e('Add certain days to event occurrence dates. If you have a single day event, start and end dates should be the same, If you have a multiple day event, the start and end dates must be commensurate with the initial date.', 'modern-events-calendar-lite'); ?>
881
- <a href="https://webnus.net/dox/modern-events-calendar/date-and-time/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a>
882
  </p>
883
  </div>
884
  </div>
@@ -888,7 +888,7 @@ class MEC_feature_events extends MEC_base
888
  </div>
889
  <div class="mec-form-row">
890
  <div class="mec-col-4">
891
- <input type="text" id="mec_exceptions_in_days_end_date" value="" placeholder="<?php _e('End', 'modern-events-calendar-lite'); ?>" title="<?php _e('End', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format" autocomplete="off"/>
892
  </div>
893
  <div class="mec-col-8 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
894
  <?php $this->main->timepicker(array(
@@ -945,14 +945,14 @@ class MEC_feature_events extends MEC_base
945
  $in_day = $first_date . ':' . $second_date.(trim($in_day_start_time) ? ':'.$in_day_start_time : '').(trim($in_day_end_time) ? ':'.$in_day_end_time : '');
946
  $in_day_label = $first_date. (trim($in_day_start_time_label) ? ' <span class="mec-time-picker-label '.($allday ? 'mec-util-hidden' : '').'">'.$in_day_start_time_label.'</span>' : '') . ' - ' . $second_date. (trim($in_day_end_time_label) ? ' <span class="mec-time-picker-label '.($allday ? 'mec-util-hidden' : '').'">'.$in_day_end_time_label.'</span>' : '');
947
  ?>
948
- <div class="mec-form-row" id="mec_in_days_row<?php echo $i; ?>">
949
- <input type="hidden" name="mec[in_days][<?php echo $i; ?>]" value="<?php echo $in_day; ?>"/>
950
- <span class="mec-in-days-day"><?php echo $in_day_label; ?></span>
951
- <span class="mec-not-in-days-remove" onclick="mec_in_days_remove(<?php echo $i; ?>);">x</span>
952
  </div>
953
  <?php $i++; endforeach; ?>
954
  </div>
955
- <input type="hidden" id="mec_new_in_days_key" value="<?php echo $i + 1; ?>"/>
956
  <div class="mec-util-hidden" id="mec_new_in_days_raw">
957
  <div class="mec-form-row" id="mec_in_days_row:i:">
958
  <input type="hidden" name="mec[in_days][:i:]" value=":val:"/>
@@ -965,211 +965,211 @@ class MEC_feature_events extends MEC_base
965
  <div class="mec-form-row">
966
  <ul>
967
  <li>
968
- <?php _e('First', 'modern-events-calendar-lite'); ?>
969
  </li>
970
  <ul>
971
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
972
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.1"); ?>">
973
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
974
- <span class="key"><?php echo $day_1th ?>.1-</span>
975
  </li>
976
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
977
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.1"); ?>">
978
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
979
- <span class="key"><?php echo $day_2th ?>.1-</span>
980
  </li>
981
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
982
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.1"); ?>">
983
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
984
- <span class="key"><?php echo $day_3th ?>.1-</span>
985
  </li>
986
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
987
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.1"); ?>">
988
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
989
- <span class="key"><?php echo $day_4th ?>.1-</span>
990
  </li>
991
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
992
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.1"); ?>">
993
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
994
- <span class="key"><?php echo $day_5th ?>.1-</span>
995
  </li>
996
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
997
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.1"); ?>">
998
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
999
- <span class="key"><?php echo $day_6th ?>.1-</span>
1000
  </li>
1001
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1002
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.1"); ?>">
1003
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
1004
- <span class="key"><?php echo $day_7th ?>.1-</span>
1005
  </li>
1006
  </ul>
1007
  </ul>
1008
  <ul>
1009
  <li>
1010
- <?php _e('Second', 'modern-events-calendar-lite'); ?>
1011
  </li>
1012
  <ul>
1013
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1014
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.2"); ?>">
1015
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
1016
- <span class="key"><?php echo $day_1th ?>.2-</span>
1017
  </li>
1018
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1019
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.2"); ?>">
1020
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
1021
- <span class="key"><?php echo $day_2th ?>.2-</span>
1022
  </li>
1023
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1024
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.2"); ?>">
1025
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
1026
- <span class="key"><?php echo $day_3th ?>.2-</span>
1027
  </li>
1028
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1029
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.2"); ?>">
1030
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
1031
- <span class="key"><?php echo $day_4th ?>.2-</span>
1032
  </li>
1033
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1034
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.2"); ?>">
1035
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
1036
- <span class="key"><?php echo $day_5th ?>.2-</span>
1037
  </li>
1038
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1039
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.2"); ?>">
1040
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
1041
- <span class="key"><?php echo $day_6th ?>.2-</span>
1042
  </li>
1043
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1044
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.2"); ?>">
1045
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
1046
- <span class="key"><?php echo $day_7th ?>.2-</span>
1047
  </li>
1048
  </ul>
1049
  </ul>
1050
  <ul>
1051
  <li>
1052
- <?php _e('Third', 'modern-events-calendar-lite'); ?>
1053
  </li>
1054
  <ul>
1055
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1056
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.3"); ?>">
1057
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
1058
- <span class="key"><?php echo $day_1th ?>.3-</span>
1059
  </li>
1060
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1061
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.3"); ?>">
1062
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
1063
- <span class="key"><?php echo $day_2th ?>.3-</span>
1064
  </li>
1065
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1066
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.3"); ?>">
1067
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
1068
- <span class="key"><?php echo $day_3th ?>.3-</span>
1069
  </li>
1070
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1071
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.3"); ?>">
1072
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
1073
- <span class="key"><?php echo $day_4th ?>.3-</span>
1074
  </li>
1075
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1076
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.3"); ?>">
1077
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
1078
- <span class="key"><?php echo $day_5th ?>.3-</span>
1079
  </li>
1080
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1081
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.3"); ?>">
1082
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
1083
- <span class="key"><?php echo $day_6th ?>.3-</span>
1084
  </li>
1085
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1086
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.3"); ?>">
1087
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
1088
- <span class="key"><?php echo $day_7th ?>.3-</span>
1089
  </li>
1090
  </ul>
1091
  </ul>
1092
  <ul>
1093
  <li>
1094
- <?php _e('Fourth', 'modern-events-calendar-lite'); ?>
1095
  </li>
1096
  <ul>
1097
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1098
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.4"); ?>">
1099
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
1100
- <span class="key"><?php echo $day_1th ?>.4-</span>
1101
  </li>
1102
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1103
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.4"); ?>">
1104
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
1105
- <span class="key"><?php echo $day_2th ?>.4-</span>
1106
  </li>
1107
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1108
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.4"); ?>">
1109
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
1110
- <span class="key"><?php echo $day_3th ?>.4-</span>
1111
  </li>
1112
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1113
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.4"); ?>">
1114
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
1115
- <span class="key"><?php echo $day_4th ?>.4-</span>
1116
  </li>
1117
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1118
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.4"); ?>">
1119
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
1120
- <span class="key"><?php echo $day_5th ?>.4-</span>
1121
  </li>
1122
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1123
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.4"); ?>">
1124
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
1125
- <span class="key"><?php echo $day_6th ?>.4-</span>
1126
  </li>
1127
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1128
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.4"); ?>">
1129
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
1130
- <span class="key"><?php echo $day_7th ?>.4-</span>
1131
  </li>
1132
  </ul>
1133
  </ul>
1134
  <ul>
1135
  <li>
1136
- <?php _e('Last', 'modern-events-calendar-lite'); ?>
1137
  </li>
1138
  <ul>
1139
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1140
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.l"); ?>">
1141
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
1142
- <span class="key"><?php echo $day_1th ?>.l-</span>
1143
  </li>
1144
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1145
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.l"); ?>">
1146
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
1147
- <span class="key"><?php echo $day_2th ?>.l-</span>
1148
  </li>
1149
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1150
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.l"); ?>">
1151
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
1152
- <span class="key"><?php echo $day_3th ?>.l-</span>
1153
  </li>
1154
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1155
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.l"); ?>">
1156
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
1157
- <span class="key"><?php echo $day_4th ?>.l-</span>
1158
  </li>
1159
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1160
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.l"); ?>">
1161
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
1162
- <span class="key"><?php echo $day_5th ?>.l-</span>
1163
  </li>
1164
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1165
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.l"); ?>">
1166
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
1167
- <span class="key"><?php echo $day_6th ?>.l-</span>
1168
  </li>
1169
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1170
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.l"); ?>">
1171
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
1172
- <span class="key"><?php echo $day_7th ?>.l-</span>
1173
  </li>
1174
  </ul>
1175
  </ul>
@@ -1180,7 +1180,7 @@ class MEC_feature_events extends MEC_base
1180
  <div id="mec_end_wrapper">
1181
  <div class="mec-form-row">
1182
  <label for="mec_repeat_ends_never">
1183
- <h4 class="mec-title"><?php _e('Ends Repeat', 'modern-events-calendar-lite'); ?></h4>
1184
  </label>
1185
  </div>
1186
  <div class="mec-form-row">
@@ -1192,7 +1192,7 @@ class MEC_feature_events extends MEC_base
1192
  ?>
1193
  type="radio" value="never" name="mec[date][repeat][end]"
1194
  id="mec_repeat_ends_never"/>
1195
- <label for="mec_repeat_ends_never"><?php _e('Never', 'modern-events-calendar-lite'); ?></label>
1196
  </div>
1197
  <div class="mec-form-row">
1198
  <div class="mec-col-3">
@@ -1204,7 +1204,7 @@ class MEC_feature_events extends MEC_base
1204
  ?>
1205
  type="radio" value="date" name="mec[date][repeat][end]"
1206
  id="mec_repeat_ends_date"/>
1207
- <label for="mec_repeat_ends_date"><?php _e('On', 'modern-events-calendar-lite'); ?></label>
1208
  </div>
1209
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]"
1210
  id="mec_date_repeat_end_at_date" autocomplete="off"
@@ -1220,18 +1220,18 @@ class MEC_feature_events extends MEC_base
1220
  ?>
1221
  type="radio" value="occurrences" name="mec[date][repeat][end]"
1222
  id="mec_repeat_ends_occurrences"/>
1223
- <label for="mec_repeat_ends_occurrences"><?php _e('After', 'modern-events-calendar-lite'); ?></label>
1224
  </div>
1225
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]"
1226
  id="mec_date_repeat_end_at_occurrences" autocomplete="off"
1227
- placeholder="<?php _e('Occurrences times', 'modern-events-calendar-lite'); ?>"
1228
  value="<?php echo esc_attr(($repeat_end_at_occurrences + 1)); ?>"/>
1229
  <span class="mec-tooltip">
1230
  <div class="box top">
1231
- <h5 class="title"><?php _e('Occurrences times', 'modern-events-calendar-lite'); ?></h5>
1232
  <div class="content"><p><?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 occurrences.', 'modern-events-calendar-lite'); ?>
1233
  <a href="https://webnus.net/dox/modern-events-calendar/date-and-time/"
1234
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1235
  </div>
1236
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1237
  </span>
@@ -1245,7 +1245,7 @@ class MEC_feature_events extends MEC_base
1245
  }
1246
  ?>
1247
  type="checkbox" name="mec[date][one_occurrence]" id="mec-one-occurrence" value="1"/><label
1248
- for="mec-one-occurrence"><?php _e('Show only one occurrence of this event', 'modern-events-calendar-lite'); ?></label>
1249
  </div>
1250
  </div>
1251
  </div>
@@ -1274,13 +1274,13 @@ class MEC_feature_events extends MEC_base
1274
  $current_currency = (isset($currency['currency']) ? $currency['currency'] : (isset($this->settings['currency']) ? $this->settings['currency'] : 'USD'));
1275
  ?>
1276
  <div class="mec-meta-box-fields mec-event-tab-content" id="mec-cost">
1277
- <h4><?php echo $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')); ?></h4>
1278
  <div id="mec_meta_box_cost_form" class="<?php echo ($cost_auto_calculate ? 'mec-util-hidden' : ''); ?>">
1279
  <div class="mec-form-row">
1280
  <?php if(apply_filters('mec_event_cost_custom_field_status', false)): ?>
1281
  <?php do_action('mec_event_cost_custom_field', $cost, $type, 'mec[cost]'); ?>
1282
  <?php else: ?>
1283
- <input type="<?php echo ($type === 'alphabetic' ? 'text' : 'number'); ?>" <?php echo ($type === 'numeric' ? 'min="0" step="any"' : ''); ?> class="mec-col-3" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" title="<?php _e('Cost', 'modern-events-calendar-lite'); ?>" placeholder="<?php _e('Cost', 'modern-events-calendar-lite'); ?>"/>
1284
  <?php endif; ?>
1285
  </div>
1286
  </div>
@@ -1289,55 +1289,55 @@ class MEC_feature_events extends MEC_base
1289
  <label for="mec_cost_auto_calculate">
1290
  <input type="hidden" name="mec[cost_auto_calculate]" value="0" />
1291
  <input type="checkbox" name="mec[cost_auto_calculate]" id="mec_cost_auto_calculate" <?php echo ($cost_auto_calculate == 1) ? 'checked="checked"' : ''; ?> value="1" onchange="jQuery('#mec_meta_box_cost_form').toggleClass('mec-util-hidden');">
1292
- <?php _e('Show the minimum price based on tickets', 'modern-events-calendar-lite'); ?>
1293
  </label>
1294
  </div>
1295
  </div>
1296
 
1297
  <?php if($currency_per_event): ?>
1298
- <h4><?php echo __('Currency Options', 'modern-events-calendar-lite'); ?></h4>
1299
  <div class="mec-form-row">
1300
- <label class="mec-col-2" for="mec_currency_currency"><?php _e('Currency', 'modern-events-calendar-lite'); ?></label>
1301
  <div class="mec-col-4">
1302
  <select name="mec[currency][currency]" id="mec_currency_currency">
1303
  <?php foreach($currencies as $c=>$currency_name): ?>
1304
- <option value="<?php echo $c; ?>" <?php echo (($current_currency == $c) ? 'selected="selected"' : ''); ?>><?php echo $currency_name; ?></option>
1305
  <?php endforeach; ?>
1306
  </select>
1307
  </div>
1308
  </div>
1309
  <div class="mec-form-row">
1310
- <label class="mec-col-2" for="mec_currency_currency_symptom"><?php _e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
1311
  <div class="mec-col-4">
1312
  <input type="text" name="mec[currency][currency_symptom]" id="mec_currency_currency_symptom" value="<?php echo (isset($currency['currency_symptom']) ? $currency['currency_symptom'] : ''); ?>" />
1313
  <span class="mec-tooltip">
1314
  <div class="box left">
1315
- <h5 class="title"><?php _e('Currency Sign', 'modern-events-calendar-lite'); ?></h5>
1316
- <div class="content"><p><?php esc_attr_e("Default value will be \"currency\" if you leave it empty.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/currency-options/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1317
  </div>
1318
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1319
  </span>
1320
  </div>
1321
  </div>
1322
  <div class="mec-form-row">
1323
- <label class="mec-col-2" for="mec_currency_currency_sign"><?php _e('Currency Position', 'modern-events-calendar-lite'); ?></label>
1324
  <div class="mec-col-4">
1325
  <select name="mec[currency][currency_sign]" id="mec_currency_currency_sign">
1326
- <option value="before" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before') ? 'selected="selected"' : ''); ?>><?php _e('$10 (Before)', 'modern-events-calendar-lite'); ?></option>
1327
- <option value="before_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before_space') ? 'selected="selected"' : ''); ?>><?php _e('$ 10 (Before with Space)', 'modern-events-calendar-lite'); ?></option>
1328
- <option value="after" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after') ? 'selected="selected"' : ''); ?>><?php _e('10$ (After)', 'modern-events-calendar-lite'); ?></option>
1329
- <option value="after_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after_space') ? 'selected="selected"' : ''); ?>><?php _e('10 $ (After with Space)', 'modern-events-calendar-lite'); ?></option>
1330
  </select>
1331
  </div>
1332
  </div>
1333
  <div class="mec-form-row">
1334
- <label class="mec-col-2" for="mec_currency_thousand_separator"><?php _e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
1335
  <div class="mec-col-4">
1336
  <input type="text" name="mec[currency][thousand_separator]" id="mec_currency_thousand_separator" value="<?php echo (isset($currency['thousand_separator']) ? $currency['thousand_separator'] : ','); ?>" />
1337
  </div>
1338
  </div>
1339
  <div class="mec-form-row">
1340
- <label class="mec-col-2" for="mec_currency_decimal_separator"><?php _e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
1341
  <div class="mec-col-4">
1342
  <input type="text" name="mec[currency][decimal_separator]" id="mec_currency_decimal_separator" value="<?php echo (isset($currency['decimal_separator']) ? $currency['decimal_separator'] : '.'); ?>" />
1343
  </div>
@@ -1347,7 +1347,7 @@ class MEC_feature_events extends MEC_base
1347
  <label for="mec_currency_decimal_separator_status">
1348
  <input type="hidden" name="mec[currency][decimal_separator_status]" value="1" />
1349
  <input type="checkbox" name="mec[currency][decimal_separator_status]" id="mec_currency_decimal_separator_status" <?php echo ((isset($currency['decimal_separator_status']) and $currency['decimal_separator_status'] == '0') ? 'checked="checked"' : ''); ?> value="0" />
1350
- <?php _e('No decimal', 'modern-events-calendar-lite'); ?>
1351
  </label>
1352
  </div>
1353
  </div>
@@ -1382,26 +1382,26 @@ class MEC_feature_events extends MEC_base
1382
  $not_in_days = trim($not_in_days_str) ? explode(',', $not_in_days_str) : array();
1383
  ?>
1384
  <div class="mec-meta-box-fields mec-event-tab-content mec-fes-exceptional-days" id="mec-exceptional-days">
1385
- <h4><?php _e('Exceptional Days (Exclude Dates)', 'modern-events-calendar-lite'); ?></h4>
1386
  <div id="mec_meta_box_exceptions_form">
1387
 
1388
  <div id="mec_exceptions_not_in_days_container">
1389
  <div class="mec-title">
1390
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
1391
- <label for="mec_exceptions_not_in_days_date"><?php _e('Exclude certain days', 'modern-events-calendar-lite'); ?></label>
1392
  </div>
1393
  <div class="mec-form-row">
1394
  <div class="mec-col-12">
1395
  <input type="text" id="mec_exceptions_not_in_days_date" value=""
1396
- placeholder="<?php _e('Date', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format" autocomplete="off"/>
1397
  <button class="button" type="button"
1398
- id="mec_add_not_in_days"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
1399
  <span class="mec-tooltip">
1400
  <div class="box top">
1401
- <h5 class="title"><?php _e('Exclude certain days', 'modern-events-calendar-lite'); ?></h5>
1402
  <div class="content"><p><?php esc_attr_e('Exclude certain days from event occurrence dates. Please note that you can exclude only single day occurrences and you cannot exclude one day from multiple day occurrences.', 'modern-events-calendar-lite'); ?>
1403
  <a href="https://webnus.net/dox/modern-events-calendar/exceptional-days/"
1404
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1405
  </div>
1406
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1407
  </span>
@@ -1413,19 +1413,19 @@ class MEC_feature_events extends MEC_base
1413
  $datepicker_format = (isset($this->settings['datepicker_format']) and trim($this->settings['datepicker_format'])) ? $this->settings['datepicker_format'] : 'Y-m-d';
1414
  $i = 1;
1415
  foreach ($not_in_days as $not_in_day) : ?>
1416
- <div class="mec-form-row" id="mec_not_in_days_row<?php echo $i; ?>">
1417
- <input type="hidden" name="mec[not_in_days][<?php echo $i; ?>]"
1418
- value="<?php echo $this->main->standardize_format( $not_in_day, $datepicker_format ); ?>"/>
1419
- <span class="mec-not-in-days-day"><?php echo $this->main->standardize_format( $not_in_day, $datepicker_format ); ?></span>
1420
  <span class="mec-not-in-days-remove"
1421
- onclick="mec_not_in_days_remove(<?php echo $i; ?>);">x</span>
1422
  </div>
1423
  <?php
1424
  $i++;
1425
  endforeach;
1426
  ?>
1427
  </div>
1428
- <input type="hidden" id="mec_new_not_in_days_key" value="<?php echo $i + 1; ?>"/>
1429
  <div class="mec-util-hidden" id="mec_new_not_in_days_raw">
1430
  <div class="mec-form-row" id="mec_not_in_days_row:i:">
1431
  <input type="hidden" name="mec[not_in_days][:i:]" value=":val:"/>
@@ -1457,7 +1457,7 @@ class MEC_feature_events extends MEC_base
1457
  if(!isset($meta_hourly_schedules[$first_key]['schedules']))
1458
  {
1459
  $hourly_schedules[] = array(
1460
- 'title' => __('Day 1', 'modern-events-calendar-lite'),
1461
  'schedules' => $meta_hourly_schedules,
1462
  );
1463
  }
@@ -1495,44 +1495,44 @@ class MEC_feature_events extends MEC_base
1495
  $more_info_target = get_post_meta($post->ID, 'mec_more_info_target', true);
1496
  ?>
1497
  <div class="mec-meta-box-fields mec-event-tab-content mec-fes-event-links" id="mec-read-more">
1498
- <h4><?php _e('Event Links', 'modern-events-calendar-lite'); ?></h4>
1499
  <div class="mec-form-row">
1500
  <label class="mec-col-2"
1501
- for="mec_read_more_link"><?php echo $this->main->m('read_more_link', __('Event Link', 'modern-events-calendar-lite')); ?></label>
1502
  <input class="mec-col-7" type="text" name="mec[read_more]" id="mec_read_more_link"
1503
  value="<?php echo esc_attr($read_more); ?>"
1504
- placeholder="<?php _e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>"/>
1505
  <?php do_action('extra_event_link', $post->ID); ?>
1506
 
1507
  <span class="mec-tooltip">
1508
  <div class="box top">
1509
- <h5 class="title"><?php _e('Event Link', 'modern-events-calendar-lite'); ?></h5>
1510
  <div class="content"><p><?php esc_attr_e('If you fill it, it will replace the default event page link. Insert full link including http(s):// - Also, if you use advertising URL, can use URL Shortener', 'modern-events-calendar-lite'); ?>
1511
  <a href="https://bit.ly/"
1512
- target="_blank"><?php _e('URL Shortener', 'modern-events-calendar-lite'); ?></a></p></div>
1513
  </div>
1514
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1515
  </span>
1516
  </div>
1517
  <div class="mec-form-row">
1518
  <label class="mec-col-2"
1519
- for="mec_more_info_link"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?></label>
1520
  <input class="mec-col-3" type="text" name="mec[more_info]" id="mec_more_info_link"
1521
  value="<?php echo esc_attr($more_info); ?>"
1522
- placeholder="<?php _e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>"/>
1523
  <input class="mec-col-2" type="text" name="mec[more_info_title]" id="mec_more_info_title"
1524
  value="<?php echo esc_attr($more_info_title); ?>"
1525
- placeholder="<?php _e('More Information', 'modern-events-calendar-lite'); ?>"/>
1526
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
1527
- <option value="_self" <?php echo($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php _e('Current Window', 'modern-events-calendar-lite'); ?></option>
1528
- <option value="_blank" <?php echo($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php _e('New Window', 'modern-events-calendar-lite'); ?></option>
1529
  </select>
1530
  <span class="mec-tooltip">
1531
  <div class="box top">
1532
- <h5 class="title"><?php _e('More Info', 'modern-events-calendar-lite'); ?></h5>
1533
  <div class="content"><p><?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'); ?>
1534
  <a href="https://webnus.net/dox/modern-events-calendar/add-event/"
1535
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1536
  </div>
1537
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1538
  </span>
@@ -1639,7 +1639,7 @@ class MEC_feature_events extends MEC_base
1639
  <div class="mec-meta-box-fields mec-booking-tab-content mec-tab-active mec-fes-booking-options" id="mec_meta_box_booking_options_form_1">
1640
 
1641
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_tbl']) or (isset($this->settings['fes_section_booking_tbl']) and $this->settings['fes_section_booking_tbl'])))): ?>
1642
- <h4 class="mec-title"><label for="mec_bookings_limit"><?php _e('Total booking limit', 'modern-events-calendar-lite'); ?></label></h4>
1643
  <div class="mec-form-row">
1644
  <label class="mec-col-4" for="mec_bookings_limit_unlimited" id="mec_bookings_limit_unlimited_label">
1645
  <input type="hidden" name="mec[booking][bookings_limit_unlimited]" value="0"/>
@@ -1650,15 +1650,15 @@ class MEC_feature_events extends MEC_base
1650
  }
1651
  ?>
1652
  type="checkbox" value="1" name="mec[booking][bookings_limit_unlimited]"/>
1653
- <?php _e('Unlimited', 'modern-events-calendar-lite'); ?>
1654
  <span class="mec-tooltip">
1655
  <div class="box">
1656
- <h5 class="title"><?php _e('Total booking limit', 'modern-events-calendar-lite'); ?></h5>
1657
  <div class="content">
1658
  <p>
1659
  <?php esc_attr_e('If you want to set a limit to all tickets, uncheck this checkbox and put a limitation number.', 'modern-events-calendar-lite'); ?>
1660
- <a href="https://webnus.net/dox/modern-events-calendar/total-booking-limits/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a>
1661
- <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/" target="_blank"><?php _e('Read About A Booking System', 'modern-events-calendar-lite'); ?></a>
1662
  </p>
1663
  </div>
1664
  </div>
@@ -1666,24 +1666,24 @@ class MEC_feature_events extends MEC_base
1666
  </span>
1667
  </label>
1668
  <input class="mec-col-4 <?php echo ($bookings_limit_unlimited == 1) ? 'mec-util-hidden' : ''; ?>" type="text" name="mec[booking][bookings_limit]" id="mec_bookings_limit"
1669
- value="<?php echo esc_attr($bookings_limit); ?>" placeholder="<?php _e('100', 'modern-events-calendar-lite'); ?>"/>
1670
  </div>
1671
  <?php endif; ?>
1672
 
1673
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_dpur']) or (isset($this->settings['fes_section_booking_dpur']) and $this->settings['fes_section_booking_dpur'])))): ?>
1674
- <h4 class="mec-title"><?php _e('Discount per user roles', 'modern-events-calendar-lite'); ?></h4>
1675
  <?php foreach($roles as $role_key => $role_name): $role_discount = isset($booking_options['roles_discount_'.$role_key]) ? $booking_options['roles_discount_'.$role_key] : $loggedin_discount; ?>
1676
  <div class="mec-form-row">
1677
  <div class="mec-col-2">
1678
- <label for="mec_bookings_roles_discount_<?php echo $role_key; ?>"><?php echo $role_name; ?></label>
1679
  </div>
1680
- <input class="mec-col-4" type="text" name="mec[booking][roles_discount_<?php echo $role_key; ?>]" id="mec_bookings_roles_discount_<?php echo $role_key; ?>" value="<?php echo esc_attr($role_discount); ?>" placeholder="<?php _e('e.g 5', 'modern-events-calendar-lite'); ?>">
1681
  </div>
1682
  <?php endforeach; ?>
1683
  <?php endif; ?>
1684
 
1685
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_bao']) or (isset($this->settings['fes_section_booking_bao']) and $this->settings['fes_section_booking_bao'])))): ?>
1686
- <h4 class="mec-title"><?php _e('Book All Occurrences', 'modern-events-calendar-lite'); ?></h4>
1687
  <div class="mec-form-row">
1688
  <label class="mec-col-4" for="mec_bookings_all_occurrences">
1689
  <input type="hidden" name="mec[booking][bookings_all_occurrences]" value="0"/>
@@ -1694,10 +1694,10 @@ class MEC_feature_events extends MEC_base
1694
  }
1695
  ?>
1696
  type="checkbox" value="1" name="mec[booking][bookings_all_occurrences]" onchange="jQuery('#mec_bookings_all_occurrences_options').toggle();"/>
1697
- <?php _e('Sell all occurrences by one booking', 'modern-events-calendar-lite'); ?>
1698
  <span class="mec-tooltip">
1699
  <div class="box">
1700
- <h5 class="title"><?php _e('Book All Occurrences', 'modern-events-calendar-lite'); ?></h5>
1701
  <div class="content">
1702
  <p>
1703
  <?php esc_attr_e("If you have a series of events and you want to sell all of them at once, this option is for you! For example a weekly yoga course or something similar.", 'modern-events-calendar-lite'); ?>
@@ -1718,20 +1718,20 @@ class MEC_feature_events extends MEC_base
1718
  }
1719
  ?>
1720
  type="checkbox" value="1" name="mec[booking][bookings_all_occurrences_multiple]"/>
1721
- <?php _e('Allow multiple bookings by same email on different dates.', 'modern-events-calendar-lite'); ?>
1722
  </label>
1723
  </div>
1724
  <?php endif; ?>
1725
 
1726
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_io']) or (isset($this->settings['fes_section_booking_io']) and $this->settings['fes_section_booking_io'])))): ?>
1727
- <h4 class="mec-title"><?php _e('Interval Options', 'modern-events-calendar-lite'); ?></h4>
1728
  <div class="mec-form-row">
1729
- <label class="mec-col-4" for="mec_booking_show_booking_form_interval"><?php _e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></label>
1730
  <div class="mec-col-4">
1731
  <input type="number" id="mec_booking_show_booking_form_interval" name="mec[booking][show_booking_form_interval]" value="<?php echo ((isset($booking_options['show_booking_form_interval']) and trim($booking_options['show_booking_form_interval']) != '') ? $booking_options['show_booking_form_interval'] : ''); ?>" placeholder="<?php esc_attr_e('Minutes (e.g 5)', 'modern-events-calendar-lite'); ?>" />
1732
  <span class="mec-tooltip">
1733
  <div class="box">
1734
- <h5 class="title"><?php _e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></h5>
1735
  <div class="content"><p><?php esc_attr_e("You can show booking form only at certain times before event start. If you set this option to 30 then booking form will open only 30 minutes before starting the event! One day is 1440 minutes.", 'modern-events-calendar-lite'); ?></p></div>
1736
  </div>
1737
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -1748,30 +1748,30 @@ class MEC_feature_events extends MEC_base
1748
  }
1749
  ?>
1750
  type="checkbox" value="1" name="mec[booking][stop_selling_after_first_occurrence]"/>
1751
- <?php _e('Stop selling tickets after first occurrence.', 'modern-events-calendar-lite'); ?>
1752
  </label>
1753
  </div>
1754
  <?php endif; ?>
1755
 
1756
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_aa']) or (isset($this->settings['fes_section_booking_aa']) and $this->settings['fes_section_booking_aa'])))): ?>
1757
- <h4><?php _e('Automatic Approval', 'modern-events-calendar-lite'); ?></h4>
1758
  <div class="mec-form-row">
1759
- <label class="mec-col-4" for="mec_booking_auto_verify"><?php _e('Email Verification', 'modern-events-calendar-lite'); ?></label>
1760
  <div class="mec-col-4">
1761
  <select name="mec[booking][auto_verify]" id="mec_booking_auto_verify">
1762
- <option value="global" <?php if(isset($booking_options['auto_verify']) and 'global' == $booking_options['auto_verify']) echo 'selected="selected"'; ?>><?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
1763
- <option value="0" <?php if(isset($booking_options['auto_verify']) and '0' == $booking_options['auto_verify']) echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
1764
- <option value="1" <?php if(isset($booking_options['auto_verify']) and '1' == $booking_options['auto_verify']) echo 'selected="selected"'; ?>><?php _e('Enabled', 'modern-events-calendar-lite'); ?></option>
1765
  </select>
1766
  </div>
1767
  </div>
1768
  <div class="mec-form-row">
1769
- <label class="mec-col-4" for="mec_booking_auto_confirm"><?php _e('Booking Confirmation', 'modern-events-calendar-lite'); ?></label>
1770
  <div class="mec-col-4">
1771
  <select name="mec[booking][auto_confirm]" id="mec_booking_auto_confirm">
1772
- <option value="global" <?php if(isset($booking_options['auto_confirm']) and 'global' == $booking_options['auto_confirm']) echo 'selected="selected"'; ?>><?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
1773
- <option value="0" <?php if(isset($booking_options['auto_confirm']) and '0' == $booking_options['auto_confirm']) echo 'selected="selected"'; ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
1774
- <option value="1" <?php if(isset($booking_options['auto_confirm']) and '1' == $booking_options['auto_confirm']) echo 'selected="selected"'; ?>><?php _e('Enabled', 'modern-events-calendar-lite'); ?></option>
1775
  </select>
1776
  </div>
1777
  </div>
@@ -1779,7 +1779,7 @@ class MEC_feature_events extends MEC_base
1779
 
1780
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_lftp']) or (isset($this->settings['fes_section_booking_lftp']) and $this->settings['fes_section_booking_lftp'])))): ?>
1781
  <div class="mec-form-row">
1782
- <h4 class="mec-title"><?php _e('Last Few Tickets Percentage', 'modern-events-calendar-lite'); ?></h4>
1783
  <div class="mec-form-row">
1784
  <label class="mec-col-4" for="mec_bookings_last_few_tickets_percentage_inherit">
1785
  <input type="hidden" name="mec[booking][last_few_tickets_percentage_inherit]" value="0"/>
@@ -1790,16 +1790,16 @@ class MEC_feature_events extends MEC_base
1790
  }
1791
  ?>
1792
  type="checkbox" value="1" name="mec[booking][last_few_tickets_percentage_inherit]" onchange="jQuery(this).parent().parent().find('input[type=number]').toggle();"/>
1793
- <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
1794
  </label>
1795
- <input class="mec-col-4" <?php echo ($bookings_last_few_tickets_percentage_inherite == 1) ? 'style="display: none;"' : ''; ?> type="number" min="1" max="100" step="1" name="mec[booking][last_few_tickets_percentage]" value="<?php echo esc_attr($bookings_last_few_tickets_percentage); ?>" placeholder="<?php _e('15', 'modern-events-calendar-lite'); ?>"/>
1796
  </div>
1797
  </div>
1798
  <?php endif; ?>
1799
 
1800
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_typ']) or (isset($this->settings['fes_section_booking_typ']) and $this->settings['fes_section_booking_typ'])))): ?>
1801
  <div class="mec-form-row">
1802
- <h4 class="mec-title"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></h4>
1803
  <div class="mec-form-row">
1804
  <label class="mec-col-4" for="mec_bookings_thankyou_page_inherit">
1805
  <input type="hidden" name="mec[booking][thankyou_page_inherit]" value="0"/>
@@ -1810,37 +1810,37 @@ class MEC_feature_events extends MEC_base
1810
  }
1811
  ?>
1812
  type="checkbox" value="1" name="mec[booking][thankyou_page_inherit]" onchange="jQuery('#mec_booking_thankyou_page_options').toggle();"/>
1813
- <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
1814
  </label>
1815
  </div>
1816
  <div id="mec_booking_thankyou_page_options" <?php echo ($bookings_thankyou_page_inherit == 1) ? 'style="display: none;"' : ''; ?>>
1817
  <br>
1818
  <div class="mec-form-row">
1819
- <label class="mec-col-3" for="mec_bookings_booking_thankyou_page"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></label>
1820
  <div class="mec-col-9">
1821
  <select id="mec_bookings_booking_thankyou_page" name="mec[booking][booking_thankyou_page]">
1822
  <option value="">----</option>
1823
  <?php foreach($pages as $page): ?>
1824
- <option <?php echo ((isset($booking_options['booking_thankyou_page']) and $booking_options['booking_thankyou_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo $page->ID; ?>"><?php echo $page->post_title; ?></option>
1825
  <?php endforeach; ?>
1826
  </select>
1827
  <span class="mec-tooltip">
1828
  <div class="box left">
1829
- <h5 class="title"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></h5>
1830
- <div class="content"><p><?php esc_attr_e("User redirects to this page after booking. Leave it empty if you want to disable it.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1831
  </div>
1832
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1833
  </span>
1834
  </div>
1835
  </div>
1836
  <div class="mec-form-row">
1837
- <label class="mec-col-3" for="mec_bookings_booking_thankyou_page_time"><?php _e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></label>
1838
  <div class="mec-col-9">
1839
  <input type="number" id="mec_bookings_booking_thankyou_page_time" name="mec[booking][booking_thankyou_page_time]" value="<?php echo ((isset($booking_options['booking_thankyou_page_time']) and trim($booking_options['booking_thankyou_page_time']) != '0') ? $booking_options['booking_thankyou_page_time'] : '2000'); ?>" placeholder="<?php esc_attr_e('2000 mean 2 seconds', 'modern-events-calendar-lite'); ?>" />
1840
  <span class="mec-tooltip">
1841
  <div class="box left">
1842
- <h5 class="title"><?php _e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></h5>
1843
- <div class="content"><p><?php esc_attr_e("Waiting time before redirecting to thank you page. It's in miliseconds so 2000 means 2 seconds.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1844
  </div>
1845
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1846
  </span>
@@ -1854,7 +1854,7 @@ class MEC_feature_events extends MEC_base
1854
 
1855
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_tubl']) or (isset($this->settings['fes_section_booking_tubl']) and $this->settings['fes_section_booking_tubl'])))): ?>
1856
  <div class="mec-meta-box-fields mec-booking-tab-content" id="mec_meta_box_booking_options_form_2">
1857
- <h4 class="mec-title"><label for="mec_bookings_user_limit"><?php _e('Total User Booking Limits', 'modern-events-calendar-lite'); ?></label></h4>
1858
  <div class="mec-form-row">
1859
  <label class="mec-col-4" for="mec_bookings_user_limit_unlimited" id="mec_bookings_user_limit_unlimited_label">
1860
  <input type="hidden" name="mec[booking][bookings_user_limit_unlimited]" value="0"/>
@@ -1865,25 +1865,25 @@ class MEC_feature_events extends MEC_base
1865
  }
1866
  ?>
1867
  type="checkbox" value="1" name="mec[booking][bookings_user_limit_unlimited]" onchange="jQuery(this).parent().parent().find('input[type=text]').toggle().val('');"/>
1868
- <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
1869
  </label>
1870
  <input class="mec-col-4" <?php echo ($bookings_user_limit_unlimited == 1) ? 'style="display: none;"' : ''; ?> type="text" name="mec[booking][bookings_user_limit]" id="mec_bookings_user_limit"
1871
- value="<?php echo esc_attr($bookings_user_limit); ?>" placeholder="<?php _e('12', 'modern-events-calendar-lite'); ?>"/>
1872
  </div>
1873
  </div>
1874
  <?php endif; ?>
1875
 
1876
  <?php if(isset($gateway_settings['gateways_per_event']) and $gateway_settings['gateways_per_event']): ?>
1877
  <div class="mec-meta-box-fields mec-booking-tab-content" id="mec_meta_box_booking_options_form_gateways_per_event">
1878
- <h4 class="mec-title"><?php _e('Disabled Gateways', 'modern-events-calendar-lite'); ?></h4>
1879
  <p class="description"><?php esc_html_e("You can disable some of the following payment gateways by checking them otherwise they will be enabled.", 'modern-events-calendar-lite'); ?></p>
1880
 
1881
  <?php foreach($enableds_gateways as $g): ?>
1882
  <div class="mec-form-row" style="margin-bottom: 0;">
1883
  <label class="mec-col-4">
1884
- <input type="hidden" name="mec[booking][gateways_<?php echo $g->id(); ?>_disabled]" value="0"/>
1885
- <input type="checkbox" value="1" name="mec[booking][gateways_<?php echo $g->id(); ?>_disabled]" <?php echo (isset($booking_options['gateways_'.$g->id().'_disabled']) and $booking_options['gateways_'.$g->id().'_disabled']) ? 'checked="checked"' : ''; ?> />
1886
- <?php echo $g->title(); ?>
1887
  </label>
1888
  </div>
1889
  <?php endforeach; ?>
@@ -1921,15 +1921,15 @@ class MEC_feature_events extends MEC_base
1921
  if(!is_array($tickets)) $tickets = array();
1922
  ?>
1923
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-tickets" id="mec-tickets">
1924
- <h4 class="mec-meta-box-header"><?php echo $this->main->m('tickets', __('Tickets', 'modern-events-calendar-lite')); ?></h4>
1925
 
1926
  <?php if($post->ID != $this->main->get_original_event($post->ID)): ?>
1927
- <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>
1928
  <?php endif; ?>
1929
 
1930
  <div id="mec_meta_box_tickets_form">
1931
  <div class="mec-form-row">
1932
- <button class="button" type="button" id="mec_add_ticket_button"><?php _e('Add Ticket', 'modern-events-calendar-lite'); ?></button>
1933
  </div>
1934
  <div id="mec_tickets">
1935
  <?php
@@ -1940,10 +1940,10 @@ class MEC_feature_events extends MEC_base
1940
  if(!is_numeric($key)) continue;
1941
  $i = max($i, $key);
1942
  ?>
1943
- <div class="mec-box" id="mec_ticket_row<?php echo $key; ?>">
1944
- <div class="mec-ticket-id" title="<?php esc_attr_e('Ticket ID', 'modern-events-calendar-lite'); ?>"><span class="mec-ticket-id-title"><?php esc_attr_e('ID', 'modern-events-calendar-lite'); ?>: </span><?php echo $key; ?></div>
1945
  <div class="mec-form-row">
1946
- <input type="text" class="mec-col-12" name="mec[tickets][<?php echo $key; ?>][name]"
1947
  placeholder="<?php esc_attr_e('Ticket Name', 'modern-events-calendar-lite'); ?>"
1948
  value="<?php echo(isset($ticket['name']) ? esc_attr($ticket['name']) : ''); ?>"/>
1949
  </div>
@@ -1984,17 +1984,17 @@ class MEC_feature_events extends MEC_base
1984
 
1985
  <div class="mec-form-row">
1986
  <textarea type="text" class="mec-col-12"
1987
- name="mec[tickets][<?php echo $key; ?>][description]"
1988
  placeholder="<?php esc_attr_e('Description', 'modern-events-calendar-lite'); ?>"><?php echo(isset($ticket['description']) ? esc_textarea($ticket['description']) : ''); ?></textarea>
1989
  </div>
1990
  <?php if($private_description_status): ?>
1991
  <div class="mec-form-row">
1992
  <textarea type="text" class="mec-col-12"
1993
- name="mec[tickets][<?php echo $key; ?>][private_description]"
1994
  placeholder="<?php esc_attr_e('Private Description', 'modern-events-calendar-lite'); ?>"><?php echo(isset($ticket['private_description']) ? esc_textarea($ticket['private_description']) : ''); ?></textarea>
1995
  <span class="mec-tooltip">
1996
  <div class="box top">
1997
- <h5 class="title"><?php _e('Private Description', 'modern-events-calendar-lite'); ?></h5>
1998
  <div class="content"><p><?php esc_attr_e("You can show it on the email notifications by placing %%ticket_private_description%% into the email template.", 'modern-events-calendar-lite'); ?></p></div>
1999
  </div>
2000
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -2003,30 +2003,30 @@ class MEC_feature_events extends MEC_base
2003
  <?php endif; ?>
2004
  <div class="mec-form-row">
2005
  <span class="mec-col-4">
2006
- <input type="number" min="0" step="0.01" name="mec[tickets][<?php echo $key; ?>][price]"
2007
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>"
2008
  value="<?php echo ((isset($ticket['price']) and trim($ticket['price'])) ? esc_attr($ticket['price']) : 0); ?>"/>
2009
  <span class="mec-tooltip">
2010
  <div class="box top">
2011
- <h5 class="title"><?php _e('Price', 'modern-events-calendar-lite'); ?></h5>
2012
  <div class="content"><p><?php esc_attr_e('Insert 0 for free ticket. Only numbers please — Enter only the price without any symbols or characters.', 'modern-events-calendar-lite'); ?>
2013
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2014
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2015
  </div>
2016
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2017
  </span>
2018
  </span>
2019
  <span class="mec-col-8">
2020
- <input type="text" name="mec[tickets][<?php echo $key; ?>][price_label]"
2021
  placeholder="<?php esc_attr_e('Price Label', 'modern-events-calendar-lite'); ?>"
2022
  value="<?php echo(isset($ticket['price_label']) ? esc_attr($ticket['price_label']) : ''); ?>"
2023
  class="mec-col-12"/>
2024
  <span class="mec-tooltip">
2025
  <div class="box top">
2026
- <h5 class="title"><?php _e('Price Label', 'modern-events-calendar-lite'); ?></h5>
2027
  <div class="content"><p><?php esc_attr_e('For showing on website. e.g. $15', 'modern-events-calendar-lite'); ?>
2028
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2029
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2030
  </div>
2031
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2032
  </span>
@@ -2034,30 +2034,30 @@ class MEC_feature_events extends MEC_base
2034
  </div>
2035
  <div class="mec-form-row">
2036
  <div class="mec-col-10">
2037
- <input class="mec-col-4 mec-available-tickets" type="text" name="mec[tickets][<?php echo $key; ?>][limit]"
2038
  placeholder="<?php esc_attr_e('Available Tickets', 'modern-events-calendar-lite'); ?>"
2039
  value="<?php echo(isset($ticket['limit']) ? esc_attr($ticket['limit']) : '100'); ?>"/>
2040
- <label class="mec-col-4" for="mec_tickets_unlimited_<?php echo $key; ?>"
2041
- id="mec_bookings_limit_unlimited_label<?php echo $key; ?>">
2042
- <input type="hidden" name="mec[tickets][<?php echo $key; ?>][unlimited]" value="0"/>
2043
- <input id="mec_tickets_unlimited_<?php echo $key; ?>" type="checkbox" value="1"
2044
- name="mec[tickets][<?php echo $key; ?>][unlimited]"
2045
  <?php
2046
  if (isset($ticket['unlimited']) and $ticket['unlimited']) {
2047
  echo 'checked="checked"';
2048
  }
2049
  ?>
2050
  />
2051
- <?php _e('Unlimited', 'modern-events-calendar-lite'); ?>
2052
  </label>
2053
  </div>
2054
  </div>
2055
  <div class="mec-form-row">
2056
  <div class="mec-col-4">
2057
- <input type="text" name="mec[tickets][<?php echo $key; ?>][minimum_ticket]" value="<?php echo(isset($ticket['minimum_ticket']) ? esc_attr($ticket['minimum_ticket']) : '0'); ?>" placeholder="<?php _e('Minimum Ticket e.g. 3', 'modern-events-calendar-lite'); ?>">
2058
  <span class="mec-tooltip">
2059
  <div class="box top">
2060
- <h5 class="title"><?php _e('MinimumTicket', 'modern-events-calendar-lite'); ?></h5>
2061
  <div class="content">
2062
  <p><?php esc_attr_e('Set a number for the minimum ticket reservation possible', 'modern-events-calendar-lite'); ?></p>
2063
  </div>
@@ -2068,23 +2068,23 @@ class MEC_feature_events extends MEC_base
2068
  </div>
2069
  <div class="mec-form-row">
2070
  <?php ob_start(); ?>
2071
- <input type="number" class="mec-stop-selling-tickets" name="mec[tickets][<?php echo $key; ?>][stop_selling_value]" value="<?php echo((isset($ticket['stop_selling_value']) and trim($ticket['stop_selling_value'])) ? esc_attr($ticket['stop_selling_value']) : '0'); ?>" placeholder="<?php _e('e.g. 0', 'modern-events-calendar-lite'); ?>">
2072
- <select name="mec[tickets][<?php echo $key; ?>][stop_selling_type]">
2073
- <option value="day" <?php echo(isset($ticket['stop_selling_type']) and trim($ticket['stop_selling_type']) == 'day') ? 'selected="selected"' : ''; ?>><?php _e("Day", "mec"); ?></option>
2074
- <option value="hour" <?php echo(isset($ticket['stop_selling_type']) and trim($ticket['stop_selling_type']) == 'hour') ? 'selected="selected"' : ''; ?>><?php _e("Hour", "mec"); ?></option>
2075
  </select>
2076
  <?php echo sprintf(__('Stop selling ticket %s before event start.', 'modern-events-calendar-lite'), ob_get_clean()); ?>
2077
  <button class="button remove" type="button"
2078
- onclick="mec_ticket_remove(<?php echo $key; ?>);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="1em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 20 20"><path d="M14.95 6.46L11.41 10l3.54 3.54l-1.41 1.41L10 11.42l-3.53 3.53l-1.42-1.42L8.58 10L5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"/></svg></button>
2079
  </div>
2080
  <?php do_action('custom_field_ticket', $ticket, $key); ?>
2081
  <div id="mec_price_per_dates_container">
2082
  <div class="mec-form-row">
2083
- <h4><?php _e('Price per Date', 'modern-events-calendar-lite'); ?></h4>
2084
  <button class="button mec_add_price_date_button" type="button"
2085
- data-key="<?php echo $key; ?>"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
2086
  </div>
2087
- <div id="mec-ticket-price-dates-<?php echo $key; ?>">
2088
  <?php $j = 0; if(isset($ticket['dates']) and count($ticket['dates'])) : ?>
2089
  <?php
2090
  foreach ($ticket['dates'] as $p => $price_date) :
@@ -2093,52 +2093,52 @@ class MEC_feature_events extends MEC_base
2093
  }
2094
  $j = max($j, $p);
2095
  ?>
2096
- <div id="mec_ticket_price_raw_<?php echo $key; ?>_<?php echo $p; ?>">
2097
  <div class="mec-form-row">
2098
  <input class="mec-col-3 mec_date_picker_dynamic_format" type="text"
2099
- name="mec[tickets][<?php echo $key; ?>][dates][<?php echo $p; ?>][start]"
2100
  value="<?php echo isset($price_date['start']) ? $this->main->standardize_format($price_date['start'], $datepicker_format) : $this->main->standardize_format(date('Y-m-d'), $datepicker_format); ?>"
2101
  placeholder="<?php esc_attr_e('Start', 'modern-events-calendar-lite'); ?>"/>
2102
  <input class="mec-col-3 mec_date_picker_dynamic_format" type="text"
2103
- name="mec[tickets][<?php echo $key; ?>][dates][<?php echo $p; ?>][end]"
2104
  value="<?php echo isset($price_date['end']) ? $this->main->standardize_format($price_date['end'], $datepicker_format) : $this->main->standardize_format(date('Y-m-d', strtotime( '+10 days')), $datepicker_format); ?>"
2105
  placeholder="<?php esc_attr_e('End', 'modern-events-calendar-lite'); ?>"/>
2106
  <input class="mec-col-3" type="number"
2107
- name="mec[tickets][<?php echo $key; ?>][dates][<?php echo $p; ?>][price]"
2108
  value="<?php echo isset($price_date['price']) ? $price_date['price'] : ''; ?>"
2109
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" min="0" step="0.01"/>
2110
  <input class="mec-col-2" type="text"
2111
- name="mec[tickets][<?php echo $key; ?>][dates][<?php echo $p; ?>][label]"
2112
  value="<?php echo isset($price_date['label']) ? $price_date['label'] : ''; ?>"
2113
  placeholder="<?php esc_attr_e('Label', 'modern-events-calendar-lite'); ?>"/>
2114
  <button class="button mec-col-1" type="button"
2115
- onclick="mec_ticket_price_remove(<?php echo $key; ?>, <?php echo $p; ?>)"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
2116
  </div>
2117
  </div>
2118
  <?php endforeach; ?>
2119
  <?php endif; ?>
2120
  </div>
2121
- <input type="hidden" id="mec_new_ticket_price_key_<?php echo $key; ?>"
2122
- value="<?php echo $j + 1; ?>"/>
2123
- <div class="mec-util-hidden" id="mec_new_ticket_price_raw_<?php echo $key; ?>">
2124
- <div id="mec_ticket_price_raw_<?php echo $key; ?>_:j:">
2125
  <div class="mec-form-row">
2126
  <input class="mec-col-3 new_added" type="text"
2127
- name="mec[tickets][<?php echo $key; ?>][dates][:j:][start]"
2128
- value="<?php echo $this->main->standardize_format( date( 'Y-m-d' ), $datepicker_format ); ?>"
2129
  placeholder="<?php esc_attr_e('Start', 'modern-events-calendar-lite'); ?>"/>
2130
  <input class="mec-col-3 new_added" type="text"
2131
- name="mec[tickets][<?php echo $key; ?>][dates][:j:][end]"
2132
- value="<?php echo $this->main->standardize_format( date( 'Y-m-d', strtotime( '+10 days' ) ), $datepicker_format ); ?>"
2133
  placeholder="<?php esc_attr_e('End', 'modern-events-calendar-lite'); ?>"/>
2134
  <input class="mec-col-3" type="number"
2135
- name="mec[tickets][<?php echo $key; ?>][dates][:j:][price]"
2136
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" min="0" step="0.01"/>
2137
  <input class="mec-col-2" type="text"
2138
- name="mec[tickets][<?php echo $key; ?>][dates][:j:][label]"
2139
  placeholder="<?php esc_attr_e('Label', 'modern-events-calendar-lite'); ?>"/>
2140
  <button class="button mec-col-1" type="button"
2141
- onclick="mec_ticket_price_remove(<?php echo $key; ?>, :j:)"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
2142
  </div>
2143
  </div>
2144
  </div>
@@ -2154,19 +2154,19 @@ class MEC_feature_events extends MEC_base
2154
  ?>
2155
  <div id="mec_variations_per_ticket_container">
2156
  <div class="mec-form-row">
2157
- <h4><?php _e('Variations Per Ticket', 'modern-events-calendar-lite'); ?></h4>
2158
- <div id="mec_variations_per_ticket_form<?php echo $key; ?>">
2159
  <div class="mec-form-row">
2160
  <label>
2161
- <input type="hidden" name="mec[tickets][<?php echo $key; ?>][variations_event_inheritance]" value="0"/>
2162
- <input onchange="jQuery('#mec_variations_per_ticket_container_toggle<?php echo $key; ?>').toggle();" value="1" type="checkbox" name="mec[tickets][<?php echo $key; ?>][variations_event_inheritance]" <?php echo ($event_inheritance ? 'checked="checked"' : ''); ?>> <?php _e('Inherit from event options', 'modern-events-calendar-lite'); ?>
2163
  </label>
2164
  </div>
2165
- <div id="mec_variations_per_ticket_container_toggle<?php echo $key; ?>" class="<?php echo ($event_inheritance ? 'mec-util-hidden' : ''); ?>">
2166
  <div class="mec-form-row">
2167
- <button class="button" type="button" id="mec_add_variation_per_ticket_button<?php echo $key; ?>" onclick="add_variation_per_ticket(<?php echo $key; ?>);"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
2168
  </div>
2169
- <div id="mec_ticket_variations_list<?php echo $key; ?>">
2170
  <?php
2171
  $ticket_variations = ((isset($ticket['variations']) and is_array($ticket['variations'])) ? $ticket['variations'] : array());
2172
  foreach($ticket_variations as $tvk => $ticket_variation)
@@ -2185,7 +2185,7 @@ class MEC_feature_events extends MEC_base
2185
  </div>
2186
  </div>
2187
  </div>
2188
- <div class="mec-util-hidden" id="mec_new_variation_per_ticket_raw<?php echo $key; ?>">
2189
  <?php
2190
  $TicketVariations->item(array(
2191
  'name_prefix' => 'mec[tickets]['.$key.'][variations]',
@@ -2203,9 +2203,9 @@ class MEC_feature_events extends MEC_base
2203
  }
2204
  ?>
2205
  </div>
2206
- <input type="hidden" id="mec_new_variation_per_ticket_key" value="<?php echo $tvi + 1; ?>"/>
2207
  </div>
2208
- <input type="hidden" id="mec_new_ticket_key" value="<?php echo $i + 1; ?>"/>
2209
  <div class="mec-util-hidden" id="mec_new_ticket_raw">
2210
  <div class="mec-box" id="mec_ticket_row:i:">
2211
  <div class="mec-ticket-id" title="<?php esc_attr_e('Ticket ID', 'modern-events-calendar-lite'); ?>"><span class="mec-ticket-id-title"><?php esc_attr_e('ID', 'modern-events-calendar-lite'); ?>: </span>:i:</div>
@@ -2253,7 +2253,7 @@ class MEC_feature_events extends MEC_base
2253
  placeholder="<?php esc_attr_e('Private Description', 'modern-events-calendar-lite'); ?>"></textarea>
2254
  <span class="mec-tooltip">
2255
  <div class="box top">
2256
- <h5 class="title"><?php _e('Private Description', 'modern-events-calendar-lite'); ?></h5>
2257
  <div class="content"><p><?php esc_attr_e("You can show it on the email notifications by placing %%ticket_private_description%% into the email template.", 'modern-events-calendar-lite'); ?></p></div>
2258
  </div>
2259
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -2265,10 +2265,10 @@ class MEC_feature_events extends MEC_base
2265
  <input type="number" min="0" step="0.01" name="mec[tickets][:i:][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" value="0">
2266
  <span class="mec-tooltip">
2267
  <div class="box top">
2268
- <h5 class="title"><?php _e('Price', 'modern-events-calendar-lite'); ?></h5>
2269
  <div class="content"><p><?php esc_attr_e('Insert 0 for free ticket. Only numbers please — Enter only the price without any symbols or characters.', 'modern-events-calendar-lite'); ?>
2270
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2271
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2272
  </div>
2273
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2274
  </span>
@@ -2277,10 +2277,10 @@ class MEC_feature_events extends MEC_base
2277
  <input type="text" name="mec[tickets][:i:][price_label]" placeholder="<?php esc_attr_e('Price Label', 'modern-events-calendar-lite'); ?>" class="mec-col-12">
2278
  <span class="mec-tooltip">
2279
  <div class="box top">
2280
- <h5 class="title"><?php _e('Price Label', 'modern-events-calendar-lite'); ?></h5>
2281
  <div class="content"><p><?php esc_attr_e('For showing on website. e.g. $15', 'modern-events-calendar-lite'); ?>
2282
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2283
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2284
  </div>
2285
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2286
  </span>
@@ -2295,16 +2295,16 @@ class MEC_feature_events extends MEC_base
2295
  <input type="hidden" name="mec[tickets][:i:][unlimited]" value="0"/>
2296
  <input id="mec_tickets_unlimited_:i:" type="checkbox" value="1"
2297
  name="mec[tickets][:i:][unlimited]"/>
2298
- <?php _e('Unlimited', 'modern-events-calendar-lite'); ?>
2299
  </label>
2300
  </div>
2301
  </div>
2302
  <div class="mec-form-row">
2303
  <div class="mec-col-4">
2304
- <input type="text" name="mec[tickets][:i:][minimum_ticket]" value="1" placeholder="<?php _e('Minimum Ticket e.g. 3', 'modern-events-calendar-lite'); ?>">
2305
  <span class="mec-tooltip">
2306
  <div class="box top">
2307
- <h5 class="title"><?php _e('MinimumTicket', 'modern-events-calendar-lite'); ?></h5>
2308
  <div class="content">
2309
  <p><?php esc_attr_e('Set a number for the minimum ticket reservation possible', 'modern-events-calendar-lite'); ?></p>
2310
  </div>
@@ -2315,10 +2315,10 @@ class MEC_feature_events extends MEC_base
2315
  </div>
2316
  <div class="mec-form-row">
2317
  <?php ob_start(); ?>
2318
- <input type="number" class="mec-stop-selling-tickets" name="mec[tickets][:i:][stop_selling_value]" value="0" placeholder="<?php _e('e.g. 0', 'modern-events-calendar-lite'); ?>">
2319
  <select name="mec[tickets][:i:][stop_selling_type]">
2320
- <option value="day"><?php _e("Day", "mec"); ?></option>
2321
- <option value="hour"><?php _e("Hour", "mec"); ?></option>
2322
  </select>
2323
  <?php echo sprintf(__('Stop selling ticket %s before event start.', 'modern-events-calendar-lite'), ob_get_clean()); ?>
2324
  <button class="button remove" type="button"
@@ -2327,9 +2327,9 @@ class MEC_feature_events extends MEC_base
2327
  <?php do_action('custom_field_dynamic_ticket'); ?>
2328
  <div id="mec_price_per_dates_container_:i:">
2329
  <div class="mec-form-row">
2330
- <h4><?php _e('Price per Date', 'modern-events-calendar-lite'); ?></h4>
2331
  <button class="button mec_add_price_date_button" type="button"
2332
- data-key=":i:"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
2333
  </div>
2334
  <div id="mec-ticket-price-dates-:i:">
2335
  </div>
@@ -2339,18 +2339,18 @@ class MEC_feature_events extends MEC_base
2339
  <div class="mec-form-row">
2340
  <input class="mec-col-3 new_added" type="text"
2341
  name="mec[tickets][:i:][dates][:j:][start]"
2342
- value="<?php echo $this->main->standardize_format( date( 'Y-m-d' ), $datepicker_format ); ?>"
2343
  placeholder="<?php esc_attr_e('Start', 'modern-events-calendar-lite'); ?>"/>
2344
  <input class="mec-col-3 new_added" type="text"
2345
  name="mec[tickets][:i:][dates][:j:][end]"
2346
- value="<?php echo $this->main->standardize_format( date( 'Y-m-d', strtotime( '+10 days' ) ), $datepicker_format ); ?>"
2347
  placeholder="<?php esc_attr_e('End', 'modern-events-calendar-lite'); ?>"/>
2348
  <input class="mec-col-3" type="number" name="mec[tickets][:i:][dates][:j:][price]"
2349
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" min="0" step="0.01"/>
2350
  <input class="mec-col-2" type="text" name="mec[tickets][:i:][dates][:j:][label]"
2351
  placeholder="<?php esc_attr_e('Label', 'modern-events-calendar-lite'); ?>"/>
2352
  <button class="button mec-col-1" type="button"
2353
- onclick="mec_ticket_price_remove(:i:, :j:)"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
2354
  </div>
2355
  </div>
2356
  </div>
@@ -2363,17 +2363,17 @@ class MEC_feature_events extends MEC_base
2363
  ?>
2364
  <div id="mec_variations_per_ticket_container">
2365
  <div class="mec-form-row">
2366
- <h4><?php _e('Variations Per Ticket', 'modern-events-calendar-lite'); ?></h4>
2367
  <div id="mec_variations_per_ticket_form:i:">
2368
  <div class="mec-form-row">
2369
  <label>
2370
  <input type="hidden" name="mec[tickets][:i:][variations_event_inheritance]" value="0"/>
2371
- <input onchange="jQuery('#mec_variations_per_ticket_container_toggle:i:').toggle();" value="1" type="checkbox" name="mec[tickets][:i:][variations_event_inheritance]" checked="checked"> <?php _e('Inherit from event options', 'modern-events-calendar-lite'); ?>
2372
  </label>
2373
  </div>
2374
  <div id="mec_variations_per_ticket_container_toggle:i:" class="mec-util-hidden">
2375
  <div class="mec-form-row">
2376
- <button class="button" type="button" id="mec_add_variation_per_ticket_button:i:" onclick="add_variation_per_ticket(:i:);"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
2377
  </div>
2378
  <div id="mec_ticket_variations_list:i:"></div>
2379
  </div>
@@ -2423,7 +2423,7 @@ class MEC_feature_events extends MEC_base
2423
  }
2424
  ?>
2425
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-fees" id="mec-fees">
2426
- <h4 class="mec-meta-box-header"><?php _e('Fees', 'modern-events-calendar-lite'); ?></h4>
2427
  <div id="mec_meta_box_fees_form">
2428
  <div class="mec-form-row">
2429
  <label>
@@ -2435,7 +2435,7 @@ class MEC_feature_events extends MEC_base
2435
  echo 'checked="checked"';
2436
  }
2437
  ?>
2438
- /> <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
2439
  </label>
2440
  </div>
2441
  <div id="mec_taxes_fees_container_toggle" class="
@@ -2446,7 +2446,7 @@ class MEC_feature_events extends MEC_base
2446
  ?>
2447
  ">
2448
  <div class="mec-form-row">
2449
- <button class="button" type="button" id="mec_add_fee_button"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
2450
  </div>
2451
  <div id="mec_fees_list">
2452
  <?php
@@ -2457,44 +2457,44 @@ class MEC_feature_events extends MEC_base
2457
  }
2458
  $i = max($i, $key);
2459
  ?>
2460
- <div class="mec-box" id="mec_fee_row<?php echo $i; ?>">
2461
  <div class="mec-form-row">
2462
- <input class="mec-col-12" type="text" name="mec[fees][<?php echo $i; ?>][title]"
2463
  placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>"
2464
  value="<?php echo(isset($fee['title']) ? esc_attr($fee['title']) : ''); ?>"/>
2465
  </div>
2466
  <div class="mec-form-row">
2467
  <span class="mec-col-4">
2468
- <input type="text" name="mec[fees][<?php echo $i; ?>][amount]"
2469
  placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>"
2470
  value="<?php echo(isset($fee['amount']) ? esc_attr($fee['amount']) : ''); ?>"/>
2471
  <span class="mec-tooltip">
2472
  <div class="box top">
2473
- <h5 class="title"><?php _e('Amount', 'modern-events-calendar-lite'); ?></h5>
2474
  <div class="content"><p><?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'); ?>
2475
  <a href="https://webnus.net/dox/modern-events-calendar/tickets-and-taxes-fees/"
2476
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2477
  </div>
2478
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2479
  </span>
2480
  </span>
2481
  <span class="mec-col-4">
2482
- <select name="mec[fees][<?php echo $i; ?>][type]">
2483
- <option value="percent" <?php echo((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
2484
- <option value="amount" <?php echo((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
2485
- <option value="amount_per_date" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_date') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
2486
- <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>
2487
  </select>
2488
  </span>
2489
- <button class="button" type="button" id="mec_remove_fee_button<?php echo $i; ?>"
2490
- onclick="mec_remove_fee(<?php echo $i; ?>);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
2491
  </div>
2492
  </div>
2493
  <?php endforeach; ?>
2494
  </div>
2495
  </div>
2496
  </div>
2497
- <input type="hidden" id="mec_new_fee_key" value="<?php echo $i + 1; ?>"/>
2498
  <div class="mec-util-hidden" id="mec_new_fee_raw">
2499
  <div class="mec-box" id="mec_fee_row:i:">
2500
  <div class="mec-form-row">
@@ -2507,24 +2507,24 @@ class MEC_feature_events extends MEC_base
2507
  placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>"/>
2508
  <span class="mec-tooltip">
2509
  <div class="box top">
2510
- <h5 class="title"><?php _e('Amount', 'modern-events-calendar-lite'); ?></h5>
2511
  <div class="content"><p><?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'); ?>
2512
  <a href="https://webnus.net/dox/modern-events-calendar/tickets-and-taxes-fees/"
2513
- target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2514
  </div>
2515
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2516
  </span>
2517
  </span>
2518
  <span class="mec-col-4">
2519
  <select name="mec[fees][:i:][type]">
2520
- <option value="percent"><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
2521
- <option value="amount"><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
2522
- <option value="amount_per_date"><?php _e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
2523
- <option value="amount_per_booking"><?php _e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
2524
  </select>
2525
  </span>
2526
  <button class="button" type="button" id="mec_remove_fee_button:i:"
2527
- onclick="mec_remove_fee(:i:);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
2528
  </div>
2529
  </div>
2530
  </div>
@@ -2553,17 +2553,17 @@ class MEC_feature_events extends MEC_base
2553
  $TicketVariations = $this->getTicketVariations();
2554
  ?>
2555
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-ticket-variations" id="mec-ticket-variations">
2556
- <h4 class="mec-meta-box-header"><?php _e('Ticket Variations / Options', 'modern-events-calendar-lite'); ?></h4>
2557
  <div id="mec_meta_box_ticket_variations_form">
2558
  <div class="mec-form-row">
2559
  <label>
2560
  <input type="hidden" name="mec[ticket_variations_global_inheritance]" value="0"/>
2561
- <input onchange="jQuery('#mec_taxes_ticket_variations_container_toggle').toggle();" value="1" type="checkbox" name="mec[ticket_variations_global_inheritance]" <?php echo ($global_inheritance ? 'checked="checked"' : ''); ?>> <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
2562
  </label>
2563
  </div>
2564
  <div id="mec_taxes_ticket_variations_container_toggle" class="<?php echo ($global_inheritance ? 'mec-util-hidden' : ''); ?>">
2565
  <div class="mec-form-row">
2566
- <button class="button" type="button" id="mec_add_ticket_variation_button"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
2567
  </div>
2568
  <div id="mec_ticket_variations_list">
2569
  <?php
@@ -2582,7 +2582,7 @@ class MEC_feature_events extends MEC_base
2582
  </div>
2583
  </div>
2584
  </div>
2585
- <input type="hidden" id="mec_new_ticket_variation_key" value="<?php echo $i + 1; ?>"/>
2586
  <div class="mec-util-hidden" id="mec_new_ticket_variation_raw">
2587
  <?php
2588
  $TicketVariations->item(array(
@@ -2652,10 +2652,10 @@ class MEC_feature_events extends MEC_base
2652
  }
2653
  ?>
2654
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-reg-form" id="mec-reg-fields">
2655
- <h4 class="mec-meta-box-header"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></h4>
2656
 
2657
  <?php if($post->ID != $this->main->get_original_event($post->ID)) : ?>
2658
- <p class="warning-msg"><?php _e("You're translating an event so MEC will use the original event for booking form. You can only translate the field name and options. Please define exact fields that you defined in the original event here.", 'modern-events-calendar-lite'); ?></p>
2659
  <?php endif; ?>
2660
 
2661
  <div id="mec_meta_box_reg_fields_form">
@@ -2669,7 +2669,7 @@ class MEC_feature_events extends MEC_base
2669
  echo 'checked="checked"';
2670
  }
2671
  ?>
2672
- /> <?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?>
2673
  </label>
2674
  </div>
2675
  <?php do_action('mec_meta_box_reg_fields_form', $post->ID); ?>
@@ -2681,7 +2681,7 @@ class MEC_feature_events extends MEC_base
2681
  ?>">
2682
 
2683
  <div class="mec-booking-per-attendee-fields">
2684
- <h5 class="mec-form-subtitle"><?php _e('Per Attendee Fields', 'modern-events-calendar-lite'); ?></h5>
2685
  <?php /** Don't remove this hidden field **/ ?>
2686
  <input type="hidden" name="mec[reg_fields]" value=""/>
2687
 
@@ -2694,85 +2694,85 @@ class MEC_feature_events extends MEC_base
2694
 
2695
  $i = max($i, $key);
2696
 
2697
- if($reg_field['type'] == 'text') echo $this->main->field_text($key, $reg_field);
2698
- elseif($reg_field['type'] == 'mec_email') echo $this->main->field_mec_email($key, $reg_field);
2699
- elseif($reg_field['type'] == 'name') echo $this->main->field_name($key, $reg_field);
2700
- elseif($reg_field['type'] == 'email') echo $this->main->field_email($key, $reg_field);
2701
- elseif($reg_field['type'] == 'date') echo $this->main->field_date($key, $reg_field);
2702
- elseif($reg_field['type'] == 'file') echo $this->main->field_file($key, $reg_field);
2703
- elseif($reg_field['type'] == 'tel') echo $this->main->field_tel($key, $reg_field);
2704
- elseif($reg_field['type'] == 'textarea') echo $this->main->field_textarea($key, $reg_field);
2705
- elseif($reg_field['type'] == 'p') echo $this->main->field_p($key, $reg_field);
2706
- elseif($reg_field['type'] == 'checkbox') echo $this->main->field_checkbox($key, $reg_field);
2707
- elseif($reg_field['type'] == 'radio') echo $this->main->field_radio($key, $reg_field);
2708
- elseif($reg_field['type'] == 'select') echo $this->main->field_select($key, $reg_field);
2709
- elseif($reg_field['type'] == 'agreement') echo $this->main->field_agreement($key, $reg_field);
2710
  }
2711
  ?>
2712
  </ul>
2713
  <div id="mec_reg_form_field_types">
2714
- <button type="button" class="button red" data-type="name"><?php _e('MEC Name', 'modern-events-calendar-lite'); ?></button>
2715
- <button type="button" class="button red" data-type="mec_email"><?php _e('MEC Email', 'modern-events-calendar-lite'); ?></button>
2716
- <button type="button" class="button" data-type="text"><?php _e('Text', 'modern-events-calendar-lite'); ?></button>
2717
- <button type="button" class="button" data-type="email"><?php _e('Email', 'modern-events-calendar-lite'); ?></button>
2718
- <button type="button" class="button" data-type="date"><?php _e('Date', 'modern-events-calendar-lite'); ?></button>
2719
- <button type="button" class="button" data-type="tel"><?php _e('Tel', 'modern-events-calendar-lite'); ?></button>
2720
- <button type="button" class="button" data-type="file"><?php _e('File', 'modern-events-calendar-lite'); ?></button>
2721
- <button type="button" class="button" data-type="textarea"><?php _e('Textarea', 'modern-events-calendar-lite'); ?></button>
2722
- <button type="button" class="button" data-type="checkbox"><?php _e('Checkboxes', 'modern-events-calendar-lite'); ?></button>
2723
- <button type="button" class="button" data-type="radio"><?php _e('Radio Buttons', 'modern-events-calendar-lite'); ?></button>
2724
- <button type="button" class="button" data-type="select"><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></button>
2725
- <button type="button" class="button" data-type="agreement"><?php _e('Agreement', 'modern-events-calendar-lite'); ?></button>
2726
- <button type="button" class="button" data-type="p"><?php _e('Paragraph', 'modern-events-calendar-lite'); ?></button>
2727
  </div>
2728
- <input type="hidden" id="mec_new_reg_field_key" value="<?php echo $i + 1; ?>"/>
2729
  <div class="mec-util-hidden">
2730
  <div id="mec_reg_field_text">
2731
- <?php echo $this->main->field_text(':i:'); ?>
2732
  </div>
2733
  <div id="mec_reg_field_email">
2734
- <?php echo $this->main->field_email(':i:'); ?>
2735
  </div>
2736
  <div id="mec_reg_field_mec_email">
2737
- <?php echo $this->main->field_mec_email(':i:'); ?>
2738
  </div>
2739
  <div id="mec_reg_field_name">
2740
- <?php echo $this->main->field_name(':i:'); ?>
2741
  </div>
2742
  <div id="mec_reg_field_tel">
2743
- <?php echo $this->main->field_tel(':i:'); ?>
2744
  </div>
2745
  <div id="mec_reg_field_date">
2746
- <?php echo $this->main->field_date(':i:'); ?>
2747
  </div>
2748
  <div id="mec_reg_field_file">
2749
- <?php echo $this->main->field_file(':i:'); ?>
2750
  </div>
2751
  <div id="mec_reg_field_textarea">
2752
- <?php echo $this->main->field_textarea(':i:'); ?>
2753
  </div>
2754
  <div id="mec_reg_field_checkbox">
2755
- <?php echo $this->main->field_checkbox(':i:'); ?>
2756
  </div>
2757
  <div id="mec_reg_field_radio">
2758
- <?php echo $this->main->field_radio(':i:'); ?>
2759
  </div>
2760
  <div id="mec_reg_field_select">
2761
- <?php echo $this->main->field_select(':i:'); ?>
2762
  </div>
2763
  <div id="mec_reg_field_agreement">
2764
- <?php echo $this->main->field_agreement(':i:'); ?>
2765
  </div>
2766
  <div id="mec_reg_field_p">
2767
- <?php echo $this->main->field_p(':i:'); ?>
2768
  </div>
2769
  <div id="mec_reg_field_option">
2770
- <?php echo $this->main->field_option(':fi:', ':i:'); ?>
2771
  </div>
2772
  </div>
2773
  </div>
2774
  <div class="mec-booking-fixed-fields">
2775
- <h5 class="mec-form-subtitle"><?php _e('Fixed Fields', 'modern-events-calendar-lite'); ?></h5>
2776
  <div class="mec-form-row" id="mec_bfixed_form_container">
2777
  <?php /** Don't remove this hidden field **/ ?>
2778
  <input type="hidden" name="mec[bfixed_fields]" value="" />
@@ -2785,69 +2785,69 @@ class MEC_feature_events extends MEC_base
2785
  if(!is_numeric($key)) continue;
2786
  $b = max($b, $key);
2787
 
2788
- if($bfixed_field['type'] == 'text') echo $this->main->field_text( $key, $bfixed_field, 'bfixed' );
2789
- elseif($bfixed_field['type'] == 'name') echo $this->main->field_name( $key, $bfixed_field, 'bfixed' );
2790
- elseif($bfixed_field['type'] == 'mec_email') echo $this->main->field_mec_email( $key, $bfixed_field, 'bfixed' );
2791
- elseif($bfixed_field['type'] == 'email') echo $this->main->field_email( $key, $bfixed_field, 'bfixed' );
2792
- elseif($bfixed_field['type'] == 'date') echo $this->main->field_date( $key, $bfixed_field, 'bfixed' );
2793
- elseif($bfixed_field['type'] == 'file') echo $this->main->field_file( $key, $bfixed_field, 'bfixed' );
2794
- elseif($bfixed_field['type'] == 'tel') echo $this->main->field_tel( $key, $bfixed_field, 'bfixed' );
2795
- elseif($bfixed_field['type'] == 'textarea') echo $this->main->field_textarea( $key, $bfixed_field, 'bfixed' );
2796
- elseif($bfixed_field['type'] == 'p') echo $this->main->field_p( $key, $bfixed_field, 'bfixed' );
2797
- elseif($bfixed_field['type'] == 'checkbox') echo $this->main->field_checkbox( $key, $bfixed_field, 'bfixed' );
2798
- elseif($bfixed_field['type'] == 'radio') echo $this->main->field_radio( $key, $bfixed_field, 'bfixed' );
2799
- elseif($bfixed_field['type'] == 'select') echo $this->main->field_select( $key, $bfixed_field, 'bfixed' );
2800
- elseif($bfixed_field['type'] == 'agreement') echo $this->main->field_agreement( $key, $bfixed_field, 'bfixed' );
2801
  }
2802
  ?>
2803
  </ul>
2804
  <div id="mec_bfixed_form_field_types">
2805
- <button type="button" class="button" data-type="text"><?php _e( 'Text', 'modern-events-calendar-lite' ); ?></button>
2806
- <button type="button" class="button" data-type="email"><?php _e( 'Email', 'modern-events-calendar-lite' ); ?></button>
2807
- <button type="button" class="button" data-type="date"><?php _e( 'Date', 'modern-events-calendar-lite' ); ?></button>
2808
- <button type="button" class="button" data-type="tel"><?php _e( 'Tel', 'modern-events-calendar-lite' ); ?></button>
2809
- <button type="button" class="button" data-type="textarea"><?php _e( 'Textarea', 'modern-events-calendar-lite' ); ?></button>
2810
- <button type="button" class="button" data-type="checkbox"><?php _e( 'Checkboxes', 'modern-events-calendar-lite' ); ?></button>
2811
- <button type="button" class="button" data-type="radio"><?php _e( 'Radio Buttons', 'modern-events-calendar-lite' ); ?></button>
2812
- <button type="button" class="button" data-type="select"><?php _e( 'Dropdown', 'modern-events-calendar-lite' ); ?></button>
2813
- <button type="button" class="button" data-type="agreement"><?php _e( 'Agreement', 'modern-events-calendar-lite' ); ?></button>
2814
- <button type="button" class="button" data-type="p"><?php _e( 'Paragraph', 'modern-events-calendar-lite' ); ?></button>
2815
  </div>
2816
  </div>
2817
- <input type="hidden" id="mec_new_bfixed_field_key" value="<?php echo $b + 1; ?>" />
2818
  <div class="mec-util-hidden">
2819
  <div id="mec_bfixed_field_text">
2820
- <?php echo $this->main->field_text(':i:', array(), 'bfixed'); ?>
2821
  </div>
2822
  <div id="mec_bfixed_field_email">
2823
- <?php echo $this->main->field_email(':i:', array(), 'bfixed'); ?>
2824
  </div>
2825
  <div id="mec_bfixed_field_tel">
2826
- <?php echo $this->main->field_tel(':i:', array(), 'bfixed'); ?>
2827
  </div>
2828
  <div id="mec_bfixed_field_date">
2829
- <?php echo $this->main->field_date(':i:', array(), 'bfixed'); ?>
2830
  </div>
2831
  <div id="mec_bfixed_field_textarea">
2832
- <?php echo $this->main->field_textarea(':i:', array(), 'bfixed'); ?>
2833
  </div>
2834
  <div id="mec_bfixed_field_checkbox">
2835
- <?php echo $this->main->field_checkbox(':i:', array(), 'bfixed'); ?>
2836
  </div>
2837
  <div id="mec_bfixed_field_radio">
2838
- <?php echo $this->main->field_radio(':i:', array(), 'bfixed'); ?>
2839
  </div>
2840
  <div id="mec_bfixed_field_select">
2841
- <?php echo $this->main->field_select(':i:', array(), 'bfixed'); ?>
2842
  </div>
2843
  <div id="mec_bfixed_field_agreement">
2844
- <?php echo $this->main->field_agreement(':i:', array(), 'bfixed'); ?>
2845
  </div>
2846
  <div id="mec_bfixed_field_p">
2847
- <?php echo $this->main->field_p(':i:', array(), 'bfixed'); ?>
2848
  </div>
2849
  <div id="mec_bfixed_field_option">
2850
- <?php echo $this->main->field_option(':fi:', ':i:', array(), 'bfixed'); ?>
2851
  </div>
2852
  </div>
2853
  </div>
@@ -2884,16 +2884,16 @@ class MEC_feature_events extends MEC_base
2884
  do_action('mec_events_meta_box_attendees_start', $post);
2885
  ?>
2886
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-attendees" id="mec_meta_box_booking_options_form_attendees">
2887
- <h4 class="mec-meta-box-header"><?php _e('Attendees', 'modern-events-calendar-lite'); ?></h4>
2888
  <div class="mec-attendees-wrapper mec-booking-attendees-wrapper">
2889
  <div>
2890
  <select id="mec_att_occurrences_dropdown" title="<?php esc_attr_e('Occurrence', 'modern-events-calendar-lite'); ?>">
2891
- <option class="mec-load-occurrences" value="<?php echo $_6months_ago.':'.$_6months_ago; ?>"><?php esc_html_e('Previous Occurrences', 'modern-events-calendar-lite'); ?></option>
2892
  <?php $i = 1; foreach($occurrences as $occurrence): ?>
2893
- <option value="<?php echo $occurrence->tstart.':'.$occurrence->tend; ?>" <?php echo ($i === 1 ? 'selected="selected"' : ''); ?>><?php echo (date_i18n($datetime_format, $occurrence->tstart)); ?></option>
2894
  <?php $i++; endforeach; ?>
2895
  <?php if(count($occurrences) >= $limit and isset($occurrence)): ?>
2896
- <option class="mec-load-occurrences" value="<?php echo $occurrence->tstart.':'.$occurrence->tend; ?>"><?php esc_html_e('Next Occurrences', 'modern-events-calendar-lite'); ?></option>
2897
  <?php endif; ?>
2898
  </select>
2899
  </div>
@@ -2929,7 +2929,7 @@ class MEC_feature_events extends MEC_base
2929
  {
2930
  url: "<?php echo admin_url('admin-ajax.php', NULL); ?>",
2931
  type: "POST",
2932
- data: "action=mec_occurrences_dropdown&id=<?php echo $post->ID; ?>&_wpnonce=<?php echo wp_create_nonce('mec_occurrences_dropdown'); ?>&date="+value,
2933
  dataType: "json"
2934
  })
2935
  .done(function(response)
@@ -2958,7 +2958,7 @@ class MEC_feature_events extends MEC_base
2958
  {
2959
  url: "<?php echo admin_url('admin-ajax.php', NULL); ?>",
2960
  type: "POST",
2961
- data: "action=mec_event_bookings&id=<?php echo $post->ID; ?>&occurrence="+value+"&backend=<?php echo (is_admin() ? 1 : 0); ?>",
2962
  dataType: "json"
2963
  })
2964
  .done(function(response)
@@ -2989,10 +2989,10 @@ class MEC_feature_events extends MEC_base
2989
  if(!isset($_POST['mec_event_nonce'])) return;
2990
 
2991
  // It's from FES
2992
- if(isset($_POST['action']) and $_POST['action'] === 'mec_fes_form') return;
2993
 
2994
  // Verify that the nonce is valid.
2995
- if(!wp_verify_nonce($_POST['mec_event_nonce'], 'mec_event_data')) return;
2996
 
2997
  // If this is an autosave, our form has not been submitted, so we don't want to do anything.
2998
  if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
@@ -3021,7 +3021,7 @@ class MEC_feature_events extends MEC_base
3021
  $cost
3022
  );
3023
 
3024
- $cost_auto_calculate = (isset($_mec['cost_auto_calculate']) ? $_mec['cost_auto_calculate'] : 0);
3025
  $currency_options = ((isset($_mec['currency']) and is_array($_mec['currency'])) ? $_mec['currency'] : array());
3026
 
3027
  update_post_meta($post_id, 'mec_location_id', $location_id);
@@ -3688,7 +3688,7 @@ class MEC_feature_events extends MEC_base
3688
  $this->main->event_date_updated($post_id, $prev_start_datetime, $prev_end_datetime);
3689
  }
3690
 
3691
- $mec_update = (isset($_REQUEST['original_publish']) and strtolower(trim($_REQUEST['original_publish'])) == 'publish') ? false : true;
3692
  do_action('mec_after_publish_admin_event', $post_id, $mec_update);
3693
 
3694
  // Save Event Data
@@ -3774,7 +3774,7 @@ class MEC_feature_events extends MEC_base
3774
  {
3775
  wp_dropdown_categories(
3776
  array(
3777
- 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_labels', __('labels', 'modern-events-calendar-lite'))),
3778
  'taxonomy' => $taxonomy,
3779
  'name' => $taxonomy,
3780
  'value_field' => 'slug',
@@ -3792,7 +3792,7 @@ class MEC_feature_events extends MEC_base
3792
  {
3793
  wp_dropdown_categories(
3794
  array(
3795
- 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_locations', __('locations', 'modern-events-calendar-lite'))),
3796
  'taxonomy' => $taxonomy,
3797
  'name' => $taxonomy,
3798
  'value_field' => 'slug',
@@ -3810,7 +3810,7 @@ class MEC_feature_events extends MEC_base
3810
  {
3811
  wp_dropdown_categories(
3812
  array(
3813
- 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizers', __('organizers', 'modern-events-calendar-lite'))),
3814
  'taxonomy' => $taxonomy,
3815
  'name' => $taxonomy,
3816
  'value_field' => 'slug',
@@ -3828,7 +3828,7 @@ class MEC_feature_events extends MEC_base
3828
  {
3829
  wp_dropdown_categories(
3830
  array(
3831
- 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_categorys', __('Categories', 'modern-events-calendar-lite'))),
3832
  'taxonomy' => $taxonomy,
3833
  'name' => $taxonomy,
3834
  'value_field' => 'slug',
@@ -3871,17 +3871,17 @@ class MEC_feature_events extends MEC_base
3871
  unset($columns['date']);
3872
  unset($columns['tags']);
3873
 
3874
- $columns['title'] = __('Title', 'modern-events-calendar-lite');
3875
- $columns['category'] = __('Category', 'modern-events-calendar-lite');
3876
- $columns['location'] = $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite'));
3877
- $columns['organizer'] = $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'));
3878
- $columns['start_date'] = __('Start Date', 'modern-events-calendar-lite');
3879
- $columns['end_date'] = __('End Date', 'modern-events-calendar-lite');
3880
 
3881
  // Sold Tickets
3882
- if($this->getPRO() and (isset($this->settings['booking_status']) and $this->settings['booking_status'])) $columns['sold_tickets'] = __('Sold Tickets', 'modern-events-calendar-lite');
3883
 
3884
- $columns['repeat'] = __('Repeat', 'modern-events-calendar-lite');
3885
  return $columns;
3886
  }
3887
 
@@ -3913,35 +3913,35 @@ class MEC_feature_events extends MEC_base
3913
  if($column_name == 'location')
3914
  {
3915
  $location = get_term(get_post_meta($post_id, 'mec_location_id', true));
3916
- echo(isset($location->name) ? $location->name : '----');
3917
  }
3918
  elseif($column_name == 'organizer')
3919
  {
3920
  $organizer = get_term(get_post_meta($post_id, 'mec_organizer_id', true));
3921
- echo(isset($organizer->name) ? $organizer->name : '----');
3922
  }
3923
  elseif($column_name == 'start_date')
3924
  {
3925
  $datetime_format = get_option('date_format', 'Y-n-d').' '.get_option('time_format', 'H:i');
3926
  $date = get_post_meta($post_id, 'mec_start_date', true);
3927
 
3928
- echo $this->main->date_i18n($datetime_format, (strtotime($date) + ((int) get_post_meta($post_id, 'mec_start_day_seconds', true))), $post_id);
3929
  }
3930
  elseif($column_name == 'end_date')
3931
  {
3932
  $datetime_format = get_option('date_format', 'Y-n-d').' '.get_option('time_format', 'H:i');
3933
  $date = get_post_meta($post_id, 'mec_end_date', true);
3934
 
3935
- echo $this->main->date_i18n($datetime_format, (strtotime($date) + ((int) get_post_meta($post_id, 'mec_end_day_seconds', true))), $post_id);
3936
  }
3937
  elseif($column_name == 'sold_tickets')
3938
  {
3939
- echo $this->getBook()->get_all_sold_tickets($post_id);
3940
  }
3941
  elseif($column_name == 'repeat')
3942
  {
3943
  $repeat_type = get_post_meta($post_id, 'mec_repeat_type', true);
3944
- echo ucwords(str_replace('_', ' ', $repeat_type));
3945
  }
3946
  elseif($column_name == 'category')
3947
  {
@@ -3950,7 +3950,7 @@ class MEC_feature_events extends MEC_base
3950
  if(!empty($categories))
3951
  {
3952
  $category_name = implode(",", $categories);
3953
- echo $category_name;
3954
  }
3955
  }
3956
  }
@@ -4050,23 +4050,23 @@ class MEC_feature_events extends MEC_base
4050
  ?>
4051
  <script type="text/javascript">
4052
  jQuery(document).ready(function () {
4053
- jQuery('<option>').val('ical-export').text('<?php echo __('iCal / Outlook Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4054
- jQuery('<option>').val('ical-export').text('<?php echo __('iCal / Outlook Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4055
 
4056
- jQuery('<option>').val('csv-export').text('<?php echo __('CSV Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4057
- jQuery('<option>').val('csv-export').text('<?php echo __('CSV Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4058
 
4059
- jQuery('<option>').val('ms-excel-export').text('<?php echo __('MS Excel Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4060
- jQuery('<option>').val('ms-excel-export').text('<?php echo __('MS Excel Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4061
 
4062
- jQuery('<option>').val('xml-export').text('<?php echo __('XML Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4063
- jQuery('<option>').val('xml-export').text('<?php echo __('XML Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4064
 
4065
- jQuery('<option>').val('json-export').text('<?php echo __('JSON Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4066
- jQuery('<option>').val('json-export').text('<?php echo __('JSON Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4067
 
4068
- jQuery('<option>').val('duplicate').text('<?php echo __('Duplicate', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4069
- jQuery('<option>').val('duplicate').text('<?php echo __('Duplicate', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4070
  });
4071
  </script>
4072
  <?php
@@ -4089,7 +4089,7 @@ class MEC_feature_events extends MEC_base
4089
  {
4090
  case 'ical-export':
4091
 
4092
- $post_ids = $_GET['post'];
4093
  $events = '';
4094
 
4095
  foreach($post_ids as $post_id) $events .= $this->main->ical_single((int) $post_id);
@@ -4098,7 +4098,7 @@ class MEC_feature_events extends MEC_base
4098
  header('Content-type: application/force-download; charset=utf-8');
4099
  header('Content-Disposition: attachment; filename="mec-events-' . date('YmdTHi') . '.ics"');
4100
 
4101
- echo $ical_calendar;
4102
 
4103
  exit;
4104
  break;
@@ -4125,7 +4125,7 @@ class MEC_feature_events extends MEC_base
4125
 
4126
  case 'xml-export':
4127
 
4128
- $post_ids = $_GET['post'];
4129
 
4130
  $events = array();
4131
  foreach($post_ids as $post_id) $events[] = $this->main->export_single((int) $post_id);
@@ -4135,14 +4135,14 @@ class MEC_feature_events extends MEC_base
4135
  header('Content-type: application/force-download; charset=utf-8');
4136
  header('Content-Disposition: attachment; filename="mec-events-' . date('YmdTHi') . '.xml"');
4137
 
4138
- echo $xml_feed;
4139
 
4140
  exit;
4141
  break;
4142
 
4143
  case 'json-export':
4144
 
4145
- $post_ids = $_GET['post'];
4146
 
4147
  $events = array();
4148
  foreach($post_ids as $post_id) $events[] = $this->main->export_single((int) $post_id);
@@ -4157,7 +4157,7 @@ class MEC_feature_events extends MEC_base
4157
 
4158
  case 'duplicate':
4159
 
4160
- $post_ids = $_GET['post'];
4161
  foreach($post_ids as $post_id) $this->main->duplicate((int) $post_id);
4162
 
4163
  break;
@@ -4176,31 +4176,31 @@ class MEC_feature_events extends MEC_base
4176
  $render = $this->getRender();
4177
 
4178
  if($export_all) $post_ids = get_posts('post_type=mec-events&fields=ids&posts_per_page=-1');
4179
- else $post_ids = isset($_GET['post']) ? (array) $_GET['post'] : array();
4180
 
4181
  $columns = array(
4182
- __('ID', 'modern-events-calendar-lite'),
4183
- __('Title', 'modern-events-calendar-lite'),
4184
- __('Description', 'modern-events-calendar-lite'),
4185
- __('Start Date', 'modern-events-calendar-lite'),
4186
- __('Start Time', 'modern-events-calendar-lite'),
4187
- __('End Date', 'modern-events-calendar-lite'),
4188
- __('End Time', 'modern-events-calendar-lite'),
4189
- __('Link', 'modern-events-calendar-lite'),
4190
- $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite')),
4191
- __('Address', 'modern-events-calendar-lite'),
4192
- $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite')),
4193
- sprintf(__('%s Tel', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))),
4194
- sprintf(__('%s Email', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', __('Organizer', 'modern-events-calendar-lite'))),
4195
- $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')),
4196
- __('Featured Image', 'modern-events-calendar-lite'),
4197
- __('Labels', 'modern-events-calendar-lite'),
4198
- __('Categories', 'modern-events-calendar-lite'),
4199
- __('Tags', 'modern-events-calendar-lite'),
4200
  );
4201
 
4202
  // Speakers
4203
- if(isset($this->settings['speakers_status']) and $this->settings['speakers_status']) $columns[] = __('Speakers', 'modern-events-calendar-lite');
4204
 
4205
  // Event Fields
4206
  $fields = $this->main->get_event_fields();
@@ -4293,10 +4293,10 @@ class MEC_feature_events extends MEC_base
4293
  if($post->post_type != $this->PT) return $actions;
4294
 
4295
  // Duplicate Button
4296
- $actions['mec-duplicate'] = '<a href="'.$this->main->add_qs_vars(array('mec-action'=>'duplicate-event', 'id'=>$post->ID)).'">'.__('Duplicate', 'modern-events-calendar-lite').'</a>';
4297
 
4298
  // Booking Button
4299
- if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']) $actions['mec-bookings'] = '<a href="'.$this->main->add_qs_vars(array('post_type'=>$this->main->get_book_post_type(), 'mec_event_id'=>$post->ID), trim($this->main->URL('admin'), '/ ').'/edit.php').'">'.__('Bookings', 'modern-events-calendar-lite').'</a>';
4300
 
4301
  return $actions;
4302
  }
@@ -4443,16 +4443,16 @@ class MEC_feature_events extends MEC_base
4443
  <span><input type="checkbox" id="mec-send-email-check-all" onchange="mec_send_email_check_all(this);" /></span>
4444
  </div>
4445
  <div class="w-col-xs-3 name">
4446
- <span>'.__('Name', 'modern-events-calendar-lite').'</span>
4447
  </div>
4448
  <div class="w-col-xs-3 email">
4449
- <span>'.__('Email', 'modern-events-calendar-lite').'</span>
4450
  </div>
4451
  <div class="w-col-xs-3 ticket">
4452
- <span>'.$this->main->m('ticket', __('Ticket', 'modern-events-calendar-lite')).'</span>
4453
  </div>
4454
  <div class="w-col-xs-2">
4455
- <span>'.__('Variations', 'modern-events-calendar-lite').'</span>
4456
  </div>';
4457
 
4458
  $html = apply_filters('mec_attendees_list_header_html', $html, $id, $occurrence);
@@ -4467,7 +4467,7 @@ class MEC_feature_events extends MEC_base
4467
  $html .= '<div class="w-col-xs-1"><input type="checkbox" onchange="mec_send_email_check(this);" /><span class="mec-util-hidden mec-send-email-attendee-info">'.$attendee['name'].':.:'.$attendee['email'].',</span></div>';
4468
  $html .= '<div class="w-col-xs-3 name">' . get_avatar($attendee['email']) .$attendee['name'].'</div>';
4469
  $html .= '<div class="w-col-xs-3 email">'.$attendee['email'] .'</div>';
4470
- $html .= '<div class="w-col-xs-3 ticket">'.((isset($attendee['id']) and isset($tickets[$attendee['id']]['name'])) ? $tickets[$attendee['id']]['name'] : __('Unknown', 'modern-events-calendar-lite')).'</div>';
4471
 
4472
  $variations = '<div class="w-col-xs-2">';
4473
  if(isset($attendee['variations']) and is_array($attendee['variations']) and count($attendee['variations']))
@@ -4499,7 +4499,7 @@ class MEC_feature_events extends MEC_base
4499
  }
4500
  else
4501
  {
4502
- $html .= '<p>'.__("No Attendees Found!", 'modern-events-calendar-lite').'</p>';
4503
  $email_button = '';
4504
  }
4505
 
@@ -4509,7 +4509,7 @@ class MEC_feature_events extends MEC_base
4509
 
4510
  public function mass_email()
4511
  {
4512
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
4513
 
4514
  // Current User is not Permitted
4515
  if(!current_user_can('mec_report')) $this->main->response(array('success'=>0, 'code'=>'NO_ACCESS'));
@@ -4517,7 +4517,7 @@ class MEC_feature_events extends MEC_base
4517
  $mail_recipients_info = isset($_POST['mail_recipients_info']) ? trim(sanitize_text_field($_POST['mail_recipients_info']), ', ') : '';
4518
  $mail_subject = isset($_POST['mail_subject']) ? sanitize_text_field($_POST['mail_subject']) : '';
4519
  $mail_content = isset($_POST['mail_content']) ? $_POST['mail_content'] : '';
4520
- $mail_copy = isset($_POST['mail_copy']) ? $_POST['mail_copy'] : 0;
4521
 
4522
  $render_recipients = array_unique(explode(',', $mail_recipients_info));
4523
  $headers = array('Content-Type: text/html; charset=UTF-8');
@@ -4735,16 +4735,16 @@ class MEC_feature_events extends MEC_base
4735
  {
4736
  $html .= '<div class="w-clearfix">
4737
  <div class="w-col-xs-3 name">
4738
- <span>'.__('Title', 'modern-events-calendar-lite').'</span>
4739
  </div>
4740
  <div class="w-col-xs-3 email">
4741
- <span>'.__('Attendees', 'modern-events-calendar-lite').'</span>
4742
  </div>
4743
  <div class="w-col-xs-3 ticket">
4744
- <span>'.__('Transaction ID', 'modern-events-calendar-lite').'</span>
4745
  </div>
4746
  <div class="w-col-xs-3">
4747
- <span>'.__('Price', 'modern-events-calendar-lite').'</span>
4748
  </div>
4749
  </div>';
4750
 
@@ -4801,7 +4801,7 @@ class MEC_feature_events extends MEC_base
4801
  }
4802
  else
4803
  {
4804
- $html .= '<p>'.__("No Bookings Found!", 'modern-events-calendar-lite').'</p>';
4805
  }
4806
 
4807
  $html = apply_filters('mec_event_bookings_report', $html, $bookings, $id, $backend, $occurrence, $total_attendees);
189
  $this->PT,
190
  array(
191
  'labels' => array(
192
+ 'name' => esc_html__('Events', 'modern-events-calendar-lite'),
193
+ 'singular_name' => esc_html__('Event', 'modern-events-calendar-lite'),
194
+ 'add_new' => esc_html__('Add Event', 'modern-events-calendar-lite'),
195
+ 'add_new_item' => esc_html__('Add New Event', 'modern-events-calendar-lite'),
196
+ 'not_found' => esc_html__('No events found!', 'modern-events-calendar-lite'),
197
+ 'all_items' => esc_html__('All Events', 'modern-events-calendar-lite'),
198
+ 'edit_item' => esc_html__('Edit Event', 'modern-events-calendar-lite'),
199
+ 'view_item' => esc_html__('View Event', 'modern-events-calendar-lite'),
200
+ 'not_found_in_trash' => esc_html__('No events found in Trash!', 'modern-events-calendar-lite'),
201
  ),
202
  'public' => true,
203
  'has_archive' => ($this->main->get_archive_status() ? true : false),
215
  )
216
  );
217
 
218
+ $singular_label = $this->main->m('taxonomy_category', esc_html__('Category', 'modern-events-calendar-lite'));
219
+ $plural_label = $this->main->m('taxonomy_categories', esc_html__('Categories', 'modern-events-calendar-lite'));
220
 
221
  register_taxonomy(
222
  'mec_category',
260
  $fallback = (isset($this->settings['fallback_featured_image_status']) and $this->settings['fallback_featured_image_status']);
261
  ?>
262
  <div class="form-field">
263
+ <label for="mec_cat_icon"><?php esc_html_e('Category Icon', 'modern-events-calendar-lite'); ?></label>
264
  <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value=""/>
265
+ <a href="<?php echo esc_url($this->main->asset('icon.html')); ?>?&width=680&height=450&inlineId=my-content-id"
266
+ class="thickbox mec_category_icon button"><?php echo esc_html__('Select icon', 'modern-events-calendar-lite'); ?></a>
267
  </div>
268
  <div class="form-field">
269
+ <label for="mec_cat_color"><?php esc_html_e('Color', 'modern-events-calendar-lite'); ?></label>
270
  <input type="text" name="mec_cat_color" id="mec_cat_color" class="mec-color-picker" />
271
+ <p class="description"><?php esc_html_e('Optional category color', 'modern-events-calendar-lite'); ?></p>
272
  </div>
273
  <?php if($fallback): ?>
274
  <div class="form-field">
275
+ <label for="mec_thumbnail_button"><?php esc_html_e('Fallback Image', 'modern-events-calendar-lite'); ?></label>
276
  <div id="mec_thumbnail_img"></div>
277
  <input type="hidden" name="fallback" id="mec_thumbnail" value="" />
278
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo esc_html__('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
279
+ <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo esc_html__('Remove image', 'modern-events-calendar-lite'); ?></button>
280
  </div>
281
  <?php endif; ?>
282
  <?php
305
  ?>
306
  <tr class="form-field">
307
  <th scope="row" >
308
+ <label for="mec_cat_icon"><?php esc_html_e('Category Icon', 'modern-events-calendar-lite'); ?></label>
309
  </th>
310
  <td>
311
+ <input type="hidden" name="mec_cat_icon" id="mec_cat_icon" value="<?php echo esc_attr($icon); ?>"/>
312
+ <a href="<?php echo esc_url($this->main->asset('icon.html')); ?>?&width=680&height=450&inlineId=my-content-id"
313
+ class="thickbox mec_category_icon button"><?php echo esc_html__('Select icon', 'modern-events-calendar-lite'); ?></a>
314
  <?php if (isset($icon)) : ?>
315
+ <div class="mec-webnus-icon"><i class="<?php echo esc_attr($icon); ?> mec-color"></i></div>
316
  <?php endif; ?>
317
  </td>
318
  </tr>
319
  <tr class="form-field">
320
  <th scope="row" >
321
+ <label for="mec_cat_color"><?php esc_html_e('Color', 'modern-events-calendar-lite'); ?></label>
322
  </th>
323
  <td>
324
+ <input type="text" name="mec_cat_color" id="mec_cat_color" value="<?php echo esc_attr($color); ?>" data-default-color="<?php echo esc_attr($color); ?>" class="mec-color-picker" />
325
+ <p class="description"><?php esc_html_e('Optional category color', 'modern-events-calendar-lite'); ?></p>
326
  </td>
327
  </tr>
328
  <?php if($fallback): ?>
329
  <tr class="form-field">
330
  <th scope="row" >
331
+ <label for="mec_thumbnail_button"><?php esc_html_e('Fallback Image', 'modern-events-calendar-lite'); ?></label>
332
  </th>
333
  <td>
334
  <div id="mec_thumbnail_img"><?php if(trim($fallback_image) != '') echo '<img src="'.$fallback_image.'" />'; ?></div>
335
  <input type="hidden" name="fallback" id="mec_thumbnail" value="<?php echo esc_attr($fallback_image); ?>" />
336
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo esc_html__('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
337
+ <button type="button" class="mec_remove_image_button button <?php echo (!trim($fallback_image) ? 'mec-util-hidden' : ''); ?>"><?php echo esc_html__('Remove image', 'modern-events-calendar-lite'); ?></button>
338
  </td>
339
  </tr>
340
  <?php endif; ?>
389
  */
390
  public function register_meta_boxes()
391
  {
392
+ add_meta_box('mec_metabox_details', esc_html__('Event Details', 'modern-events-calendar-lite'), array($this, 'meta_box_details'), $this->main->get_main_post_type(), 'normal', 'high');
393
 
394
  // Show Booking meta box onnly if booking module is enabled
395
  if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status'])
396
  {
397
+ add_meta_box('mec_metabox_booking', esc_html__('Booking', 'modern-events-calendar-lite'), array($this, 'meta_box_booking'), $this->main->get_main_post_type(), 'normal', 'high');
398
  }
399
  }
400
 
420
  <?php
421
  $activated = '';
422
  $tabs = array(
423
+ esc_html__('FES Details', 'modern-events-calendar-lite') => 'mec_meta_box_fes_form',
424
+ esc_html__('Date And Time', 'modern-events-calendar-lite') => 'mec_meta_box_date_form',
425
+ esc_html__('Event Repeating', 'modern-events-calendar-lite') => 'mec_meta_box_repeat_form',
426
+ esc_html__('Event Data', 'modern-events-calendar-lite') => 'mec-event-data',
427
+ esc_html__('Exceptional Days', 'modern-events-calendar-lite') => 'mec-exceptional-days',
428
+ esc_html__('Hourly Schedule', 'modern-events-calendar-lite') => 'mec-hourly-schedule',
429
+ esc_html__('Location/Venue', 'modern-events-calendar-lite') => 'mec-location',
430
+ esc_html__('Links', 'modern-events-calendar-lite') => 'mec-read-more',
431
+ esc_html__('Organizer', 'modern-events-calendar-lite') => 'mec-organizer',
432
+ esc_html__('Cost', 'modern-events-calendar-lite') => 'mec-cost',
433
+ esc_html__('SEO Schema / Event Status', 'modern-events-calendar-lite') => 'mec-schema',
434
+ esc_html__('Notifications', 'modern-events-calendar-lite') => 'mec-notifications',
435
+ esc_html__('Public Download', 'modern-events-calendar-lite') => 'mec-public-download-module-file',
436
  );
437
 
438
  $single_event_meta_title = apply_filters('mec-single-event-meta-title', $tabs, $activated, $post);
595
  <?php endif; ?>
596
  <?php if($note_visibility and trim($note)): ?>
597
  <div class="mec-event-note">
598
+ <h4><?php esc_html_e('Note for reviewer', 'modern-events-calendar-lite'); ?></h4>
599
+ <p><?php echo esc_html($note); ?></p>
600
  </div>
601
  <?php endif; ?>
602
  <?php if(trim($fes_guest_email) and trim($fes_guest_name)): ?>
603
  <div class="mec-guest-data">
604
+ <h4><?php esc_html_e('Guest Data', 'modern-events-calendar-lite'); ?></h4>
605
+ <p><strong><?php esc_html_e('Name', 'modern-events-calendar-lite'); ?>:</strong> <?php echo esc_html($fes_guest_name); ?></p>
606
+ <p><strong><?php esc_html_e('Email', 'modern-events-calendar-lite'); ?>:</strong> <?php echo esc_html($fes_guest_email); ?></p>
607
  </div>
608
  <?php endif; ?>
609
  <?php if(($note_visibility and trim($note)) || (trim($fes_guest_email) and trim($fes_guest_name))): ?>
616
  <?php endif; ?>
617
 
618
  <div id="mec_meta_box_date_form" class="mec-event-tab-content">
619
+ <h4><?php esc_html_e('Date and Time', 'modern-events-calendar-lite'); ?></h4>
620
  <div class="mec-title">
621
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
622
+ <label for="mec_start_date"><?php esc_html_e('Start Date', 'modern-events-calendar-lite'); ?></label>
623
  </div>
624
  <div class="mec-form-row">
625
  <div class="mec-col-4">
626
+ <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($this->main->standardize_format($start_date, $datepicker_format)); ?>" placeholder="<?php esc_html_e('Start Date', 'modern-events-calendar-lite'); ?>" autocomplete="off"/>
627
  </div>
628
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
629
  <?php $this->main->timepicker(array(
639
  </div>
640
  <div class="mec-title">
641
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
642
+ <label for="mec_end_date"><?php esc_html_e('End Date', 'modern-events-calendar-lite'); ?></label>
643
  </div>
644
  <div class="mec-form-row">
645
  <div class="mec-col-4">
646
+ <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($this->main->standardize_format($end_date, $datepicker_format)); ?>" placeholder="<?php esc_html_e('End Date', 'modern-events-calendar-lite'); ?>" autocomplete="off"/>
647
  </div>
648
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
649
  <?php $this->main->timepicker(array(
666
  ?>
667
  type="checkbox" name="mec[date][allday]" id="mec_allday" value="1"
668
  onchange="jQuery('.mec-time-picker, .mec-time-picker-label').toggle(); jQuery('#mec_add_in_days').data('allday', (jQuery(this).is(':checked') ? 1 : 0));"/><label
669
+ for="mec_allday"><?php esc_html_e('All-day Event', 'modern-events-calendar-lite'); ?></label>
670
  </div>
671
  <div class="mec-form-row">
672
  <input
676
  }
677
  ?>
678
  type="checkbox" name="mec[date][hide_time]" id="mec_hide_time" value="1"/><label
679
+ for="mec_hide_time"><?php esc_html_e('Hide Event Time', 'modern-events-calendar-lite'); ?></label>
680
  </div>
681
  <div class="mec-form-row">
682
  <input
686
  }
687
  ?>
688
  type="checkbox" name="mec[date][hide_end_time]" id="mec_hide_end_time" value="1"/><label
689
+ for="mec_hide_end_time"><?php esc_html_e('Hide Event End Time', 'modern-events-calendar-lite'); ?></label>
690
  </div>
691
  <div class="mec-form-row">
692
  <div class="mec-col-4">
693
  <input type="text" class="" name="mec[date][comment]" id="mec_comment"
694
+ placeholder="<?php esc_html_e('Notes on the time', 'modern-events-calendar-lite'); ?>"
695
  value="<?php echo esc_attr($comment); ?>"/>
696
  <span class="mec-tooltip">
697
  <div class="box top">
698
+ <h5 class="title"><?php esc_html_e('Notes on the time', 'modern-events-calendar-lite'); ?></h5>
699
  <div class="content"><p><?php esc_attr_e('It shows next to event time on the Single Event Page. You can enter notes such as timezone in this field.', 'modern-events-calendar-lite'); ?>
700
  <a href="https://webnus.net/dox/modern-events-calendar/add-event/"
701
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
702
  </div>
703
  <i title="" class="dashicons-before dashicons-editor-help"></i>
704
  </span>
714
  <div class="mec-col-4">
715
  <select name="mec[timezone]" id="mec_event_timezone">
716
  <option value="global"><?php esc_html_e('Inherit from global options'); ?></option>
717
+ <?php echo MEC_kses::form($this->main->timezones($event_timezone)); ?>
718
  </select>
719
  </div>
720
  </div>
722
  <?php endif; ?>
723
 
724
  <?php if(isset($this->settings['countdown_status']) and $this->settings['countdown_status']): ?>
725
+ <h4><?php esc_html_e('Countdown Method', 'modern-events-calendar-lite'); ?></h4>
726
  <div class="mec-form-row">
727
  <div class="mec-col-4">
728
  <select name="mec[countdown_method]" id="mec_countdown_method" title="<?php esc_attr_e('Countdown Method', 'modern-events-calendar-lite'); ?>">
729
+ <option value="global" <?php if('global' == $countdown_method) echo 'selected="selected"'; ?>><?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
730
+ <option value="start" <?php if('start' == $countdown_method) echo 'selected="selected"'; ?>><?php esc_html_e('Count to Event Start', 'modern-events-calendar-lite'); ?></option>
731
+ <option value="end" <?php if('end' == $countdown_method) echo 'selected="selected"'; ?>><?php esc_html_e('Count to Event End', 'modern-events-calendar-lite'); ?></option>
732
  </select>
733
  </div>
734
  </div>
735
  <?php endif; ?>
736
 
737
+ <h4><?php esc_html_e('Visibility', 'modern-events-calendar-lite'); ?></h4>
738
  <div class="mec-form-row">
739
  <div class="mec-col-4">
740
  <select name="mec[public]" id="mec_public" title="<?php esc_attr_e('Event Visibility', 'modern-events-calendar-lite'); ?>">
741
+ <option value="1" <?php if('1' == $public) echo 'selected="selected"'; ?>><?php esc_html_e('Show on Shortcodes', 'modern-events-calendar-lite'); ?></option>
742
+ <option value="0" <?php if('0' == $public) echo 'selected="selected"'; ?>><?php esc_html_e('Hide on Shortcodes', 'modern-events-calendar-lite'); ?></option>
743
  </select>
744
  </div>
745
  </div>
746
 
747
  </div>
748
  <div id="mec_meta_box_repeat_form" class="mec-event-tab-content">
749
+ <h4><?php esc_html_e('Repeating', 'modern-events-calendar-lite'); ?></h4>
750
  <div class="mec-form-row">
751
  <input
752
  <?php
755
  }
756
  ?>
757
  type="checkbox" name="mec[date][repeat][status]" id="mec_repeat" value="1"/><label
758
+ for="mec_repeat"><?php esc_html_e('Event Repeating (Recurring events)', 'modern-events-calendar-lite'); ?></label>
759
  </div>
760
  <div class="mec-form-repeating-event-row">
761
  <div class="mec-form-row">
762
+ <label class="mec-col-3" for="mec_repeat_type"><?php esc_html_e('Repeats', 'modern-events-calendar-lite'); ?></label>
763
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
764
  <option
765
  <?php
767
  echo 'selected="selected"';
768
  }
769
  ?>
770
+ value="daily"><?php esc_html_e('Daily', 'modern-events-calendar-lite'); ?></option>
771
  <option
772
  <?php
773
  if ($repeat_type == 'weekday') {
774
  echo 'selected="selected"';
775
  }
776
  ?>
777
+ value="weekday"><?php esc_html_e('Every Weekday', 'modern-events-calendar-lite'); ?></option>
778
  <option
779
  <?php
780
  if ($repeat_type == 'weekend') {
781
  echo 'selected="selected"';
782
  }
783
  ?>
784
+ value="weekend"><?php esc_html_e('Every Weekend', 'modern-events-calendar-lite'); ?></option>
785
  <option
786
  <?php
787
  if ($repeat_type == 'certain_weekdays') {
788
  echo 'selected="selected"';
789
  }
790
  ?>
791
+ value="certain_weekdays"><?php esc_html_e('Certain Weekdays', 'modern-events-calendar-lite'); ?></option>
792
  <option
793
  <?php
794
  if ($repeat_type == 'weekly') {
795
  echo 'selected="selected"';
796
  }
797
  ?>
798
+ value="weekly"><?php esc_html_e('Weekly', 'modern-events-calendar-lite'); ?></option>
799
  <option
800
  <?php
801
  if ($repeat_type == 'monthly') {
802
  echo 'selected="selected"';
803
  }
804
  ?>
805
+ value="monthly"><?php esc_html_e('Monthly', 'modern-events-calendar-lite'); ?></option>
806
  <option
807
  <?php
808
  if ($repeat_type == 'yearly') {
809
  echo 'selected="selected"';
810
  }
811
  ?>
812
+ value="yearly"><?php esc_html_e('Yearly', 'modern-events-calendar-lite'); ?></option>
813
  <option
814
  <?php
815
  if ($repeat_type == 'custom_days') {
816
  echo 'selected="selected"';
817
  }
818
  ?>
819
+ value="custom_days"><?php esc_html_e('Custom Days', 'modern-events-calendar-lite'); ?></option>
820
  <option
821
  <?php
822
  if ($repeat_type == 'advanced') {
823
  echo 'selected="selected"';
824
  }
825
  ?>
826
+ value="advanced"><?php esc_html_e('Advanced', 'modern-events-calendar-lite'); ?></option>
827
  </select>
828
  </div>
829
  <div class="mec-form-row" id="mec_repeat_interval_container">
830
  <label class="mec-col-3"
831
+ for="mec_repeat_interval"><?php esc_html_e('Repeat Interval', 'modern-events-calendar-lite'); ?></label>
832
  <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval"
833
+ placeholder="<?php esc_html_e('Repeat interval', 'modern-events-calendar-lite'); ?>"
834
  value="<?php echo($repeat_type == 'weekly' ? ($repeat_interval / 7) : $repeat_interval); ?>"/>
835
  </div>
836
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
837
+ <label class="mec-col-3"><?php esc_html_e('Week Days', 'modern-events-calendar-lite'); ?></label>
838
  <?php
839
  $weekdays = $this->main->get_weekday_i18n_labels();
840
  foreach($weekdays as $weekday):
841
  ?>
842
  <label>
843
  <input type="checkbox" name="mec[date][repeat][certain_weekdays][]"
844
+ value="<?php echo intval($weekday[0]); ?>" <?php echo(in_array($weekday[0], $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php echo esc_html($weekday[1]); ?>
845
  </label>
846
  <?php endforeach; ?>
847
  </div>
857
  <?php endif; ?>
858
  <div class="mec-form-row">
859
  <div class="mec-col-4">
860
+ <input type="text" id="mec_exceptions_in_days_start_date" value="" placeholder="<?php esc_html_e('Start', 'modern-events-calendar-lite'); ?>" title="<?php esc_html_e('Start', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format widefat" autocomplete="off"/>
861
  </div>
862
  <div class="mec-col-3 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
863
  <?php $this->main->timepicker(array(
871
  )); ?>
872
  </div>
873
  <div class="mec-col-5">
874
+ <button class="button" type="button" id="mec_add_in_days" data-allday="<?php echo esc_attr($allday); ?>"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
875
  <span class="mec-tooltip">
876
  <div class="box top">
877
+ <h5 class="title"><?php esc_html_e('Custom Days Repeating', 'modern-events-calendar-lite'); ?></h5>
878
  <div class="content">
879
  <p>
880
  <?php esc_attr_e('Add certain days to event occurrence dates. If you have a single day event, start and end dates should be the same, If you have a multiple day event, the start and end dates must be commensurate with the initial date.', 'modern-events-calendar-lite'); ?>
881
+ <a href="https://webnus.net/dox/modern-events-calendar/date-and-time/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a>
882
  </p>
883
  </div>
884
  </div>
888
  </div>
889
  <div class="mec-form-row">
890
  <div class="mec-col-4">
891
+ <input type="text" id="mec_exceptions_in_days_end_date" value="" placeholder="<?php esc_html_e('End', 'modern-events-calendar-lite'); ?>" title="<?php esc_html_e('End', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format" autocomplete="off"/>
892
  </div>
893
  <div class="mec-col-8 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
894
  <?php $this->main->timepicker(array(
945
  $in_day = $first_date . ':' . $second_date.(trim($in_day_start_time) ? ':'.$in_day_start_time : '').(trim($in_day_end_time) ? ':'.$in_day_end_time : '');
946
  $in_day_label = $first_date. (trim($in_day_start_time_label) ? ' <span class="mec-time-picker-label '.($allday ? 'mec-util-hidden' : '').'">'.$in_day_start_time_label.'</span>' : '') . ' - ' . $second_date. (trim($in_day_end_time_label) ? ' <span class="mec-time-picker-label '.($allday ? 'mec-util-hidden' : '').'">'.$in_day_end_time_label.'</span>' : '');
947
  ?>
948
+ <div class="mec-form-row" id="mec_in_days_row<?php echo esc_attr($i); ?>">
949
+ <input type="hidden" name="mec[in_days][<?php echo esc_attr($i); ?>]" value="<?php echo esc_attr($in_day); ?>"/>
950
+ <span class="mec-in-days-day"><?php echo esc_html($in_day_label); ?></span>
951
+ <span class="mec-not-in-days-remove" onclick="mec_in_days_remove(<?php echo esc_attr($i); ?>);">x</span>
952
  </div>
953
  <?php $i++; endforeach; ?>
954
  </div>
955
+ <input type="hidden" id="mec_new_in_days_key" value="<?php echo ($i + 1); ?>"/>
956
  <div class="mec-util-hidden" id="mec_new_in_days_raw">
957
  <div class="mec-form-row" id="mec_in_days_row:i:">
958
  <input type="hidden" name="mec[in_days][:i:]" value=":val:"/>
965
  <div class="mec-form-row">
966
  <ul>
967
  <li>
968
+ <?php esc_html_e('First', 'modern-events-calendar-lite'); ?>
969
  </li>
970
  <ul>
971
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
972
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.1"); ?>">
973
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
974
+ <span class="key"><?php echo esc_html($day_1th); ?>.1-</span>
975
  </li>
976
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
977
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.1"); ?>">
978
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
979
+ <span class="key"><?php echo esc_html($day_2th); ?>.1-</span>
980
  </li>
981
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
982
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.1"); ?>">
983
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
984
+ <span class="key"><?php echo esc_html($day_3th); ?>.1-</span>
985
  </li>
986
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
987
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.1"); ?>">
988
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
989
+ <span class="key"><?php echo esc_html($day_4th); ?>.1-</span>
990
  </li>
991
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
992
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.1"); ?>">
993
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
994
+ <span class="key"><?php echo esc_html($day_5th); ?>.1-</span>
995
  </li>
996
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
997
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.1"); ?>">
998
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
999
+ <span class="key"><?php echo esc_html($day_6th); ?>.1-</span>
1000
  </li>
1001
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1002
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.1"); ?>">
1003
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
1004
+ <span class="key"><?php echo esc_html($day_7th); ?>.1-</span>
1005
  </li>
1006
  </ul>
1007
  </ul>
1008
  <ul>
1009
  <li>
1010
+ <?php esc_html_e('Second', 'modern-events-calendar-lite'); ?>
1011
  </li>
1012
  <ul>
1013
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1014
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.2"); ?>">
1015
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
1016
+ <span class="key"><?php echo esc_html($day_1th); ?>.2-</span>
1017
  </li>
1018
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1019
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.2"); ?>">
1020
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
1021
+ <span class="key"><?php echo esc_html($day_2th); ?>.2-</span>
1022
  </li>
1023
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1024
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.2"); ?>">
1025
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
1026
+ <span class="key"><?php echo esc_html($day_3th); ?>.2-</span>
1027
  </li>
1028
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1029
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.2"); ?>">
1030
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
1031
+ <span class="key"><?php echo esc_html($day_4th); ?>.2-</span>
1032
  </li>
1033
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1034
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.2"); ?>">
1035
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
1036
+ <span class="key"><?php echo esc_html($day_5th); ?>.2-</span>
1037
  </li>
1038
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1039
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.2"); ?>">
1040
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
1041
+ <span class="key"><?php echo esc_html($day_6th); ?>.2-</span>
1042
  </li>
1043
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1044
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.2"); ?>">
1045
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
1046
+ <span class="key"><?php echo esc_html($day_7th); ?>.2-</span>
1047
  </li>
1048
  </ul>
1049
  </ul>
1050
  <ul>
1051
  <li>
1052
+ <?php esc_html_e('Third', 'modern-events-calendar-lite'); ?>
1053
  </li>
1054
  <ul>
1055
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1056
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.3"); ?>">
1057
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
1058
+ <span class="key"><?php echo esc_html($day_1th); ?>.3-</span>
1059
  </li>
1060
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1061
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.3"); ?>">
1062
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
1063
+ <span class="key"><?php echo esc_html($day_2th); ?>.3-</span>
1064
  </li>
1065
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1066
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.3"); ?>">
1067
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
1068
+ <span class="key"><?php echo esc_html($day_3th); ?>.3-</span>
1069
  </li>
1070
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1071
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.3"); ?>">
1072
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
1073
+ <span class="key"><?php echo esc_html($day_4th); ?>.3-</span>
1074
  </li>
1075
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1076
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.3"); ?>">
1077
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
1078
+ <span class="key"><?php echo esc_html($day_5th); ?>.3-</span>
1079
  </li>
1080
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1081
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.3"); ?>">
1082
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
1083
+ <span class="key"><?php echo esc_html($day_6th); ?>.3-</span>
1084
  </li>
1085
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1086
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.3"); ?>">
1087
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
1088
+ <span class="key"><?php echo esc_html($day_7th); ?>.3-</span>
1089
  </li>
1090
  </ul>
1091
  </ul>
1092
  <ul>
1093
  <li>
1094
+ <?php esc_html_e('Fourth', 'modern-events-calendar-lite'); ?>
1095
  </li>
1096
  <ul>
1097
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1098
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.4"); ?>">
1099
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
1100
+ <span class="key"><?php echo esc_html($day_1th); ?>.4-</span>
1101
  </li>
1102
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1103
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.4"); ?>">
1104
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
1105
+ <span class="key"><?php echo esc_html($day_2th); ?>.4-</span>
1106
  </li>
1107
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1108
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.4"); ?>">
1109
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
1110
+ <span class="key"><?php echo esc_html($day_3th); ?>.4-</span>
1111
  </li>
1112
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1113
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.4"); ?>">
1114
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
1115
+ <span class="key"><?php echo esc_html($day_4th); ?>.4-</span>
1116
  </li>
1117
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1118
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.4"); ?>">
1119
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
1120
+ <span class="key"><?php echo esc_html($day_5th); ?>.4-</span>
1121
  </li>
1122
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1123
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.4"); ?>">
1124
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
1125
+ <span class="key"><?php echo esc_html($day_6th); ?>.4-</span>
1126
  </li>
1127
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1128
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.4"); ?>">
1129
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
1130
+ <span class="key"><?php echo esc_html($day_7th); ?>.4-</span>
1131
  </li>
1132
  </ul>
1133
  </ul>
1134
  <ul>
1135
  <li>
1136
+ <?php esc_html_e('Last', 'modern-events-calendar-lite'); ?>
1137
  </li>
1138
  <ul>
1139
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
1140
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.l"); ?>">
1141
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
1142
+ <span class="key"><?php echo esc_html($day_1th); ?>.l-</span>
1143
  </li>
1144
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
1145
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.l"); ?>">
1146
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
1147
+ <span class="key"><?php echo esc_html($day_2th); ?>.l-</span>
1148
  </li>
1149
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
1150
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.l"); ?>">
1151
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
1152
+ <span class="key"><?php echo esc_html($day_3th); ?>.l-</span>
1153
  </li>
1154
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
1155
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.l"); ?>">
1156
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
1157
+ <span class="key"><?php echo esc_html($day_4th); ?>.l-</span>
1158
  </li>
1159
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
1160
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.l"); ?>">
1161
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
1162
+ <span class="key"><?php echo esc_html($day_5th); ?>.l-</span>
1163
  </li>
1164
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
1165
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.l"); ?>">
1166
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
1167
+ <span class="key"><?php echo esc_html($day_6th); ?>.l-</span>
1168
  </li>
1169
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
1170
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.l"); ?>">
1171
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
1172
+ <span class="key"><?php echo esc_html($day_7th); ?>.l-</span>
1173
  </li>
1174
  </ul>
1175
  </ul>
1180
  <div id="mec_end_wrapper">
1181
  <div class="mec-form-row">
1182
  <label for="mec_repeat_ends_never">
1183
+ <h4 class="mec-title"><?php esc_html_e('Ends Repeat', 'modern-events-calendar-lite'); ?></h4>
1184
  </label>
1185
  </div>
1186
  <div class="mec-form-row">
1192
  ?>
1193
  type="radio" value="never" name="mec[date][repeat][end]"
1194
  id="mec_repeat_ends_never"/>
1195
+ <label for="mec_repeat_ends_never"><?php esc_html_e('Never', 'modern-events-calendar-lite'); ?></label>
1196
  </div>
1197
  <div class="mec-form-row">
1198
  <div class="mec-col-3">
1204
  ?>
1205
  type="radio" value="date" name="mec[date][repeat][end]"
1206
  id="mec_repeat_ends_date"/>
1207
+ <label for="mec_repeat_ends_date"><?php esc_html_e('On', 'modern-events-calendar-lite'); ?></label>
1208
  </div>
1209
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]"
1210
  id="mec_date_repeat_end_at_date" autocomplete="off"
1220
  ?>
1221
  type="radio" value="occurrences" name="mec[date][repeat][end]"
1222
  id="mec_repeat_ends_occurrences"/>
1223
+ <label for="mec_repeat_ends_occurrences"><?php esc_html_e('After', 'modern-events-calendar-lite'); ?></label>
1224
  </div>
1225
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]"
1226
  id="mec_date_repeat_end_at_occurrences" autocomplete="off"
1227
+ placeholder="<?php esc_html_e('Occurrences times', 'modern-events-calendar-lite'); ?>"
1228
  value="<?php echo esc_attr(($repeat_end_at_occurrences + 1)); ?>"/>
1229
  <span class="mec-tooltip">
1230
  <div class="box top">
1231
+ <h5 class="title"><?php esc_html_e('Occurrences times', 'modern-events-calendar-lite'); ?></h5>
1232
  <div class="content"><p><?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 occurrences.', 'modern-events-calendar-lite'); ?>
1233
  <a href="https://webnus.net/dox/modern-events-calendar/date-and-time/"
1234
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1235
  </div>
1236
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1237
  </span>
1245
  }
1246
  ?>
1247
  type="checkbox" name="mec[date][one_occurrence]" id="mec-one-occurrence" value="1"/><label
1248
+ for="mec-one-occurrence"><?php esc_html_e('Show only one occurrence of this event', 'modern-events-calendar-lite'); ?></label>
1249
  </div>
1250
  </div>
1251
  </div>
1274
  $current_currency = (isset($currency['currency']) ? $currency['currency'] : (isset($this->settings['currency']) ? $this->settings['currency'] : 'USD'));
1275
  ?>
1276
  <div class="mec-meta-box-fields mec-event-tab-content" id="mec-cost">
1277
+ <h4><?php echo esc_html($this->main->m('event_cost', esc_html__('Event Cost', 'modern-events-calendar-lite'))); ?></h4>
1278
  <div id="mec_meta_box_cost_form" class="<?php echo ($cost_auto_calculate ? 'mec-util-hidden' : ''); ?>">
1279
  <div class="mec-form-row">
1280
  <?php if(apply_filters('mec_event_cost_custom_field_status', false)): ?>
1281
  <?php do_action('mec_event_cost_custom_field', $cost, $type, 'mec[cost]'); ?>
1282
  <?php else: ?>
1283
+ <input type="<?php echo ($type === 'alphabetic' ? 'text' : 'number'); ?>" <?php echo ($type === 'numeric' ? 'min="0" step="any"' : ''); ?> class="mec-col-3" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" title="<?php esc_html_e('Cost', 'modern-events-calendar-lite'); ?>" placeholder="<?php esc_html_e('Cost', 'modern-events-calendar-lite'); ?>"/>
1284
  <?php endif; ?>
1285
  </div>
1286
  </div>
1289
  <label for="mec_cost_auto_calculate">
1290
  <input type="hidden" name="mec[cost_auto_calculate]" value="0" />
1291
  <input type="checkbox" name="mec[cost_auto_calculate]" id="mec_cost_auto_calculate" <?php echo ($cost_auto_calculate == 1) ? 'checked="checked"' : ''; ?> value="1" onchange="jQuery('#mec_meta_box_cost_form').toggleClass('mec-util-hidden');">
1292
+ <?php esc_html_e('Show the minimum price based on tickets', 'modern-events-calendar-lite'); ?>
1293
  </label>
1294
  </div>
1295
  </div>
1296
 
1297
  <?php if($currency_per_event): ?>
1298
+ <h4><?php echo esc_html__('Currency Options', 'modern-events-calendar-lite'); ?></h4>
1299
  <div class="mec-form-row">
1300
+ <label class="mec-col-2" for="mec_currency_currency"><?php esc_html_e('Currency', 'modern-events-calendar-lite'); ?></label>
1301
  <div class="mec-col-4">
1302
  <select name="mec[currency][currency]" id="mec_currency_currency">
1303
  <?php foreach($currencies as $c=>$currency_name): ?>
1304
+ <option value="<?php echo esc_attr($c); ?>" <?php echo (($current_currency == $c) ? 'selected="selected"' : ''); ?>><?php echo esc_html($currency_name); ?></option>
1305
  <?php endforeach; ?>
1306
  </select>
1307
  </div>
1308
  </div>
1309
  <div class="mec-form-row">
1310
+ <label class="mec-col-2" for="mec_currency_currency_symptom"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
1311
  <div class="mec-col-4">
1312
  <input type="text" name="mec[currency][currency_symptom]" id="mec_currency_currency_symptom" value="<?php echo (isset($currency['currency_symptom']) ? $currency['currency_symptom'] : ''); ?>" />
1313
  <span class="mec-tooltip">
1314
  <div class="box left">
1315
+ <h5 class="title"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></h5>
1316
+ <div class="content"><p><?php esc_attr_e("Default value will be \"currency\" if you leave it empty.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/currency-options/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1317
  </div>
1318
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1319
  </span>
1320
  </div>
1321
  </div>
1322
  <div class="mec-form-row">
1323
+ <label class="mec-col-2" for="mec_currency_currency_sign"><?php esc_html_e('Currency Position', 'modern-events-calendar-lite'); ?></label>
1324
  <div class="mec-col-4">
1325
  <select name="mec[currency][currency_sign]" id="mec_currency_currency_sign">
1326
+ <option value="before" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before') ? 'selected="selected"' : ''); ?>><?php esc_html_e('$10 (Before)', 'modern-events-calendar-lite'); ?></option>
1327
+ <option value="before_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before_space') ? 'selected="selected"' : ''); ?>><?php esc_html_e('$ 10 (Before with Space)', 'modern-events-calendar-lite'); ?></option>
1328
+ <option value="after" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after') ? 'selected="selected"' : ''); ?>><?php esc_html_e('10$ (After)', 'modern-events-calendar-lite'); ?></option>
1329
+ <option value="after_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after_space') ? 'selected="selected"' : ''); ?>><?php esc_html_e('10 $ (After with Space)', 'modern-events-calendar-lite'); ?></option>
1330
  </select>
1331
  </div>
1332
  </div>
1333
  <div class="mec-form-row">
1334
+ <label class="mec-col-2" for="mec_currency_thousand_separator"><?php esc_html_e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
1335
  <div class="mec-col-4">
1336
  <input type="text" name="mec[currency][thousand_separator]" id="mec_currency_thousand_separator" value="<?php echo (isset($currency['thousand_separator']) ? $currency['thousand_separator'] : ','); ?>" />
1337
  </div>
1338
  </div>
1339
  <div class="mec-form-row">
1340
+ <label class="mec-col-2" for="mec_currency_decimal_separator"><?php esc_html_e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
1341
  <div class="mec-col-4">
1342
  <input type="text" name="mec[currency][decimal_separator]" id="mec_currency_decimal_separator" value="<?php echo (isset($currency['decimal_separator']) ? $currency['decimal_separator'] : '.'); ?>" />
1343
  </div>
1347
  <label for="mec_currency_decimal_separator_status">
1348
  <input type="hidden" name="mec[currency][decimal_separator_status]" value="1" />
1349
  <input type="checkbox" name="mec[currency][decimal_separator_status]" id="mec_currency_decimal_separator_status" <?php echo ((isset($currency['decimal_separator_status']) and $currency['decimal_separator_status'] == '0') ? 'checked="checked"' : ''); ?> value="0" />
1350
+ <?php esc_html_e('No decimal', 'modern-events-calendar-lite'); ?>
1351
  </label>
1352
  </div>
1353
  </div>
1382
  $not_in_days = trim($not_in_days_str) ? explode(',', $not_in_days_str) : array();
1383
  ?>
1384
  <div class="mec-meta-box-fields mec-event-tab-content mec-fes-exceptional-days" id="mec-exceptional-days">
1385
+ <h4><?php esc_html_e('Exceptional Days (Exclude Dates)', 'modern-events-calendar-lite'); ?></h4>
1386
  <div id="mec_meta_box_exceptions_form">
1387
 
1388
  <div id="mec_exceptions_not_in_days_container">
1389
  <div class="mec-title">
1390
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
1391
+ <label for="mec_exceptions_not_in_days_date"><?php esc_html_e('Exclude certain days', 'modern-events-calendar-lite'); ?></label>
1392
  </div>
1393
  <div class="mec-form-row">
1394
  <div class="mec-col-12">
1395
  <input type="text" id="mec_exceptions_not_in_days_date" value=""
1396
+ placeholder="<?php esc_html_e('Date', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format" autocomplete="off"/>
1397
  <button class="button" type="button"
1398
+ id="mec_add_not_in_days"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
1399
  <span class="mec-tooltip">
1400
  <div class="box top">
1401
+ <h5 class="title"><?php esc_html_e('Exclude certain days', 'modern-events-calendar-lite'); ?></h5>
1402
  <div class="content"><p><?php esc_attr_e('Exclude certain days from event occurrence dates. Please note that you can exclude only single day occurrences and you cannot exclude one day from multiple day occurrences.', 'modern-events-calendar-lite'); ?>
1403
  <a href="https://webnus.net/dox/modern-events-calendar/exceptional-days/"
1404
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1405
  </div>
1406
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1407
  </span>
1413
  $datepicker_format = (isset($this->settings['datepicker_format']) and trim($this->settings['datepicker_format'])) ? $this->settings['datepicker_format'] : 'Y-m-d';
1414
  $i = 1;
1415
  foreach ($not_in_days as $not_in_day) : ?>
1416
+ <div class="mec-form-row" id="mec_not_in_days_row<?php echo esc_attr($i); ?>">
1417
+ <input type="hidden" name="mec[not_in_days][<?php echo esc_attr($i); ?>]"
1418
+ value="<?php echo esc_attr($this->main->standardize_format($not_in_day, $datepicker_format)); ?>"/>
1419
+ <span class="mec-not-in-days-day"><?php echo esc_html($this->main->standardize_format($not_in_day, $datepicker_format)); ?></span>
1420
  <span class="mec-not-in-days-remove"
1421
+ onclick="mec_not_in_days_remove(<?php echo esc_attr($i); ?>);">x</span>
1422
  </div>
1423
  <?php
1424
  $i++;
1425
  endforeach;
1426
  ?>
1427
  </div>
1428
+ <input type="hidden" id="mec_new_not_in_days_key" value="<?php echo ($i + 1); ?>"/>
1429
  <div class="mec-util-hidden" id="mec_new_not_in_days_raw">
1430
  <div class="mec-form-row" id="mec_not_in_days_row:i:">
1431
  <input type="hidden" name="mec[not_in_days][:i:]" value=":val:"/>
1457
  if(!isset($meta_hourly_schedules[$first_key]['schedules']))
1458
  {
1459
  $hourly_schedules[] = array(
1460
+ 'title' => esc_html__('Day 1', 'modern-events-calendar-lite'),
1461
  'schedules' => $meta_hourly_schedules,
1462
  );
1463
  }
1495
  $more_info_target = get_post_meta($post->ID, 'mec_more_info_target', true);
1496
  ?>
1497
  <div class="mec-meta-box-fields mec-event-tab-content mec-fes-event-links" id="mec-read-more">
1498
+ <h4><?php esc_html_e('Event Links', 'modern-events-calendar-lite'); ?></h4>
1499
  <div class="mec-form-row">
1500
  <label class="mec-col-2"
1501
+ for="mec_read_more_link"><?php echo esc_html($this->main->m('read_more_link', esc_html__('Event Link', 'modern-events-calendar-lite'))); ?></label>
1502
  <input class="mec-col-7" type="text" name="mec[read_more]" id="mec_read_more_link"
1503
  value="<?php echo esc_attr($read_more); ?>"
1504
+ placeholder="<?php esc_html_e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>"/>
1505
  <?php do_action('extra_event_link', $post->ID); ?>
1506
 
1507
  <span class="mec-tooltip">
1508
  <div class="box top">
1509
+ <h5 class="title"><?php esc_html_e('Event Link', 'modern-events-calendar-lite'); ?></h5>
1510
  <div class="content"><p><?php esc_attr_e('If you fill it, it will replace the default event page link. Insert full link including http(s):// - Also, if you use advertising URL, can use URL Shortener', 'modern-events-calendar-lite'); ?>
1511
  <a href="https://bit.ly/"
1512
+ target="_blank"><?php esc_html_e('URL Shortener', 'modern-events-calendar-lite'); ?></a></p></div>
1513
  </div>
1514
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1515
  </span>
1516
  </div>
1517
  <div class="mec-form-row">
1518
  <label class="mec-col-2"
1519
+ for="mec_more_info_link"><?php echo esc_html($this->main->m('more_info_link', esc_html__('More Info', 'modern-events-calendar-lite'))); ?></label>
1520
  <input class="mec-col-3" type="text" name="mec[more_info]" id="mec_more_info_link"
1521
  value="<?php echo esc_attr($more_info); ?>"
1522
+ placeholder="<?php esc_html_e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>"/>
1523
  <input class="mec-col-2" type="text" name="mec[more_info_title]" id="mec_more_info_title"
1524
  value="<?php echo esc_attr($more_info_title); ?>"
1525
+ placeholder="<?php esc_html_e('More Information', 'modern-events-calendar-lite'); ?>"/>
1526
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
1527
+ <option value="_self" <?php echo($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Current Window', 'modern-events-calendar-lite'); ?></option>
1528
+ <option value="_blank" <?php echo($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php esc_html_e('New Window', 'modern-events-calendar-lite'); ?></option>
1529
  </select>
1530
  <span class="mec-tooltip">
1531
  <div class="box top">
1532
+ <h5 class="title"><?php esc_html_e('More Info', 'modern-events-calendar-lite'); ?></h5>
1533
  <div class="content"><p><?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'); ?>
1534
  <a href="https://webnus.net/dox/modern-events-calendar/add-event/"
1535
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1536
  </div>
1537
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1538
  </span>
1639
  <div class="mec-meta-box-fields mec-booking-tab-content mec-tab-active mec-fes-booking-options" id="mec_meta_box_booking_options_form_1">
1640
 
1641
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_tbl']) or (isset($this->settings['fes_section_booking_tbl']) and $this->settings['fes_section_booking_tbl'])))): ?>
1642
+ <h4 class="mec-title"><label for="mec_bookings_limit"><?php esc_html_e('Total booking limit', 'modern-events-calendar-lite'); ?></label></h4>
1643
  <div class="mec-form-row">
1644
  <label class="mec-col-4" for="mec_bookings_limit_unlimited" id="mec_bookings_limit_unlimited_label">
1645
  <input type="hidden" name="mec[booking][bookings_limit_unlimited]" value="0"/>
1650
  }
1651
  ?>
1652
  type="checkbox" value="1" name="mec[booking][bookings_limit_unlimited]"/>
1653
+ <?php esc_html_e('Unlimited', 'modern-events-calendar-lite'); ?>
1654
  <span class="mec-tooltip">
1655
  <div class="box">
1656
+ <h5 class="title"><?php esc_html_e('Total booking limit', 'modern-events-calendar-lite'); ?></h5>
1657
  <div class="content">
1658
  <p>
1659
  <?php esc_attr_e('If you want to set a limit to all tickets, uncheck this checkbox and put a limitation number.', 'modern-events-calendar-lite'); ?>
1660
+ <a href="https://webnus.net/dox/modern-events-calendar/total-booking-limits/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a>
1661
+ <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/" target="_blank"><?php esc_html_e('Read About A Booking System', 'modern-events-calendar-lite'); ?></a>
1662
  </p>
1663
  </div>
1664
  </div>
1666
  </span>
1667
  </label>
1668
  <input class="mec-col-4 <?php echo ($bookings_limit_unlimited == 1) ? 'mec-util-hidden' : ''; ?>" type="text" name="mec[booking][bookings_limit]" id="mec_bookings_limit"
1669
+ value="<?php echo esc_attr($bookings_limit); ?>" placeholder="<?php esc_html_e('100', 'modern-events-calendar-lite'); ?>"/>
1670
  </div>
1671
  <?php endif; ?>
1672
 
1673
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_dpur']) or (isset($this->settings['fes_section_booking_dpur']) and $this->settings['fes_section_booking_dpur'])))): ?>
1674
+ <h4 class="mec-title"><?php esc_html_e('Discount per user roles', 'modern-events-calendar-lite'); ?></h4>
1675
  <?php foreach($roles as $role_key => $role_name): $role_discount = isset($booking_options['roles_discount_'.$role_key]) ? $booking_options['roles_discount_'.$role_key] : $loggedin_discount; ?>
1676
  <div class="mec-form-row">
1677
  <div class="mec-col-2">
1678
+ <label for="mec_bookings_roles_discount_<?php echo esc_attr($role_key); ?>"><?php echo esc_html($role_name); ?></label>
1679
  </div>
1680
+ <input class="mec-col-4" type="text" name="mec[booking][roles_discount_<?php echo esc_attr($role_key); ?>]" id="mec_bookings_roles_discount_<?php echo esc_attr($role_key); ?>" value="<?php echo esc_attr($role_discount); ?>" placeholder="<?php esc_html_e('e.g 5', 'modern-events-calendar-lite'); ?>">
1681
  </div>
1682
  <?php endforeach; ?>
1683
  <?php endif; ?>
1684
 
1685
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_bao']) or (isset($this->settings['fes_section_booking_bao']) and $this->settings['fes_section_booking_bao'])))): ?>
1686
+ <h4 class="mec-title"><?php esc_html_e('Book All Occurrences', 'modern-events-calendar-lite'); ?></h4>
1687
  <div class="mec-form-row">
1688
  <label class="mec-col-4" for="mec_bookings_all_occurrences">
1689
  <input type="hidden" name="mec[booking][bookings_all_occurrences]" value="0"/>
1694
  }
1695
  ?>
1696
  type="checkbox" value="1" name="mec[booking][bookings_all_occurrences]" onchange="jQuery('#mec_bookings_all_occurrences_options').toggle();"/>
1697
+ <?php esc_html_e('Sell all occurrences by one booking', 'modern-events-calendar-lite'); ?>
1698
  <span class="mec-tooltip">
1699
  <div class="box">
1700
+ <h5 class="title"><?php esc_html_e('Book All Occurrences', 'modern-events-calendar-lite'); ?></h5>
1701
  <div class="content">
1702
  <p>
1703
  <?php esc_attr_e("If you have a series of events and you want to sell all of them at once, this option is for you! For example a weekly yoga course or something similar.", 'modern-events-calendar-lite'); ?>
1718
  }
1719
  ?>
1720
  type="checkbox" value="1" name="mec[booking][bookings_all_occurrences_multiple]"/>
1721
+ <?php esc_html_e('Allow multiple bookings by same email on different dates.', 'modern-events-calendar-lite'); ?>
1722
  </label>
1723
  </div>
1724
  <?php endif; ?>
1725
 
1726
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_io']) or (isset($this->settings['fes_section_booking_io']) and $this->settings['fes_section_booking_io'])))): ?>
1727
+ <h4 class="mec-title"><?php esc_html_e('Interval Options', 'modern-events-calendar-lite'); ?></h4>
1728
  <div class="mec-form-row">
1729
+ <label class="mec-col-4" for="mec_booking_show_booking_form_interval"><?php esc_html_e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></label>
1730
  <div class="mec-col-4">
1731
  <input type="number" id="mec_booking_show_booking_form_interval" name="mec[booking][show_booking_form_interval]" value="<?php echo ((isset($booking_options['show_booking_form_interval']) and trim($booking_options['show_booking_form_interval']) != '') ? $booking_options['show_booking_form_interval'] : ''); ?>" placeholder="<?php esc_attr_e('Minutes (e.g 5)', 'modern-events-calendar-lite'); ?>" />
1732
  <span class="mec-tooltip">
1733
  <div class="box">
1734
+ <h5 class="title"><?php esc_html_e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></h5>
1735
  <div class="content"><p><?php esc_attr_e("You can show booking form only at certain times before event start. If you set this option to 30 then booking form will open only 30 minutes before starting the event! One day is 1440 minutes.", 'modern-events-calendar-lite'); ?></p></div>
1736
  </div>
1737
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1748
  }
1749
  ?>
1750
  type="checkbox" value="1" name="mec[booking][stop_selling_after_first_occurrence]"/>
1751
+ <?php esc_html_e('Stop selling tickets after first occurrence.', 'modern-events-calendar-lite'); ?>
1752
  </label>
1753
  </div>
1754
  <?php endif; ?>
1755
 
1756
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_aa']) or (isset($this->settings['fes_section_booking_aa']) and $this->settings['fes_section_booking_aa'])))): ?>
1757
+ <h4><?php esc_html_e('Automatic Approval', 'modern-events-calendar-lite'); ?></h4>
1758
  <div class="mec-form-row">
1759
+ <label class="mec-col-4" for="mec_booking_auto_verify"><?php esc_html_e('Email Verification', 'modern-events-calendar-lite'); ?></label>
1760
  <div class="mec-col-4">
1761
  <select name="mec[booking][auto_verify]" id="mec_booking_auto_verify">
1762
+ <option value="global" <?php if(isset($booking_options['auto_verify']) and 'global' == $booking_options['auto_verify']) echo 'selected="selected"'; ?>><?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
1763
+ <option value="0" <?php if(isset($booking_options['auto_verify']) and '0' == $booking_options['auto_verify']) echo 'selected="selected"'; ?>><?php esc_html_e('Disabled', 'modern-events-calendar-lite'); ?></option>
1764
+ <option value="1" <?php if(isset($booking_options['auto_verify']) and '1' == $booking_options['auto_verify']) echo 'selected="selected"'; ?>><?php esc_html_e('Enabled', 'modern-events-calendar-lite'); ?></option>
1765
  </select>
1766
  </div>
1767
  </div>
1768
  <div class="mec-form-row">
1769
+ <label class="mec-col-4" for="mec_booking_auto_confirm"><?php esc_html_e('Booking Confirmation', 'modern-events-calendar-lite'); ?></label>
1770
  <div class="mec-col-4">
1771
  <select name="mec[booking][auto_confirm]" id="mec_booking_auto_confirm">
1772
+ <option value="global" <?php if(isset($booking_options['auto_confirm']) and 'global' == $booking_options['auto_confirm']) echo 'selected="selected"'; ?>><?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
1773
+ <option value="0" <?php if(isset($booking_options['auto_confirm']) and '0' == $booking_options['auto_confirm']) echo 'selected="selected"'; ?>><?php esc_html_e('Disabled', 'modern-events-calendar-lite'); ?></option>
1774
+ <option value="1" <?php if(isset($booking_options['auto_confirm']) and '1' == $booking_options['auto_confirm']) echo 'selected="selected"'; ?>><?php esc_html_e('Enabled', 'modern-events-calendar-lite'); ?></option>
1775
  </select>
1776
  </div>
1777
  </div>
1779
 
1780
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_lftp']) or (isset($this->settings['fes_section_booking_lftp']) and $this->settings['fes_section_booking_lftp'])))): ?>
1781
  <div class="mec-form-row">
1782
+ <h4 class="mec-title"><?php esc_html_e('Last Few Tickets Percentage', 'modern-events-calendar-lite'); ?></h4>
1783
  <div class="mec-form-row">
1784
  <label class="mec-col-4" for="mec_bookings_last_few_tickets_percentage_inherit">
1785
  <input type="hidden" name="mec[booking][last_few_tickets_percentage_inherit]" value="0"/>
1790
  }
1791
  ?>
1792
  type="checkbox" value="1" name="mec[booking][last_few_tickets_percentage_inherit]" onchange="jQuery(this).parent().parent().find('input[type=number]').toggle();"/>
1793
+ <?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?>
1794
  </label>
1795
+ <input class="mec-col-4" <?php echo ($bookings_last_few_tickets_percentage_inherite == 1) ? 'style="display: none;"' : ''; ?> type="number" min="1" max="100" step="1" name="mec[booking][last_few_tickets_percentage]" value="<?php echo esc_attr($bookings_last_few_tickets_percentage); ?>" placeholder="<?php esc_html_e('15', 'modern-events-calendar-lite'); ?>"/>
1796
  </div>
1797
  </div>
1798
  <?php endif; ?>
1799
 
1800
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_typ']) or (isset($this->settings['fes_section_booking_typ']) and $this->settings['fes_section_booking_typ'])))): ?>
1801
  <div class="mec-form-row">
1802
+ <h4 class="mec-title"><?php esc_html_e('Thank You Page', 'modern-events-calendar-lite'); ?></h4>
1803
  <div class="mec-form-row">
1804
  <label class="mec-col-4" for="mec_bookings_thankyou_page_inherit">
1805
  <input type="hidden" name="mec[booking][thankyou_page_inherit]" value="0"/>
1810
  }
1811
  ?>
1812
  type="checkbox" value="1" name="mec[booking][thankyou_page_inherit]" onchange="jQuery('#mec_booking_thankyou_page_options').toggle();"/>
1813
+ <?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?>
1814
  </label>
1815
  </div>
1816
  <div id="mec_booking_thankyou_page_options" <?php echo ($bookings_thankyou_page_inherit == 1) ? 'style="display: none;"' : ''; ?>>
1817
  <br>
1818
  <div class="mec-form-row">
1819
+ <label class="mec-col-3" for="mec_bookings_booking_thankyou_page"><?php esc_html_e('Thank You Page', 'modern-events-calendar-lite'); ?></label>
1820
  <div class="mec-col-9">
1821
  <select id="mec_bookings_booking_thankyou_page" name="mec[booking][booking_thankyou_page]">
1822
  <option value="">----</option>
1823
  <?php foreach($pages as $page): ?>
1824
+ <option <?php echo ((isset($booking_options['booking_thankyou_page']) and $booking_options['booking_thankyou_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
1825
  <?php endforeach; ?>
1826
  </select>
1827
  <span class="mec-tooltip">
1828
  <div class="box left">
1829
+ <h5 class="title"><?php esc_html_e('Thank You Page', 'modern-events-calendar-lite'); ?></h5>
1830
+ <div class="content"><p><?php esc_attr_e("User redirects to this page after booking. Leave it empty if you want to disable it.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1831
  </div>
1832
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1833
  </span>
1834
  </div>
1835
  </div>
1836
  <div class="mec-form-row">
1837
+ <label class="mec-col-3" for="mec_bookings_booking_thankyou_page_time"><?php esc_html_e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></label>
1838
  <div class="mec-col-9">
1839
  <input type="number" id="mec_bookings_booking_thankyou_page_time" name="mec[booking][booking_thankyou_page_time]" value="<?php echo ((isset($booking_options['booking_thankyou_page_time']) and trim($booking_options['booking_thankyou_page_time']) != '0') ? $booking_options['booking_thankyou_page_time'] : '2000'); ?>" placeholder="<?php esc_attr_e('2000 mean 2 seconds', 'modern-events-calendar-lite'); ?>" />
1840
  <span class="mec-tooltip">
1841
  <div class="box left">
1842
+ <h5 class="title"><?php esc_html_e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></h5>
1843
+ <div class="content"><p><?php esc_attr_e("Waiting time before redirecting to thank you page. It's in miliseconds so 2000 means 2 seconds.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1844
  </div>
1845
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1846
  </span>
1854
 
1855
  <?php if(!$FES or ($FES and (!isset($this->settings['fes_section_booking_tubl']) or (isset($this->settings['fes_section_booking_tubl']) and $this->settings['fes_section_booking_tubl'])))): ?>
1856
  <div class="mec-meta-box-fields mec-booking-tab-content" id="mec_meta_box_booking_options_form_2">
1857
+ <h4 class="mec-title"><label for="mec_bookings_user_limit"><?php esc_html_e('Total User Booking Limits', 'modern-events-calendar-lite'); ?></label></h4>
1858
  <div class="mec-form-row">
1859
  <label class="mec-col-4" for="mec_bookings_user_limit_unlimited" id="mec_bookings_user_limit_unlimited_label">
1860
  <input type="hidden" name="mec[booking][bookings_user_limit_unlimited]" value="0"/>
1865
  }
1866
  ?>
1867
  type="checkbox" value="1" name="mec[booking][bookings_user_limit_unlimited]" onchange="jQuery(this).parent().parent().find('input[type=text]').toggle().val('');"/>
1868
+ <?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?>
1869
  </label>
1870
  <input class="mec-col-4" <?php echo ($bookings_user_limit_unlimited == 1) ? 'style="display: none;"' : ''; ?> type="text" name="mec[booking][bookings_user_limit]" id="mec_bookings_user_limit"
1871
+ value="<?php echo esc_attr($bookings_user_limit); ?>" placeholder="<?php esc_html_e('12', 'modern-events-calendar-lite'); ?>"/>
1872
  </div>
1873
  </div>
1874
  <?php endif; ?>
1875
 
1876
  <?php if(isset($gateway_settings['gateways_per_event']) and $gateway_settings['gateways_per_event']): ?>
1877
  <div class="mec-meta-box-fields mec-booking-tab-content" id="mec_meta_box_booking_options_form_gateways_per_event">
1878
+ <h4 class="mec-title"><?php esc_html_e('Disabled Gateways', 'modern-events-calendar-lite'); ?></h4>
1879
  <p class="description"><?php esc_html_e("You can disable some of the following payment gateways by checking them otherwise they will be enabled.", 'modern-events-calendar-lite'); ?></p>
1880
 
1881
  <?php foreach($enableds_gateways as $g): ?>
1882
  <div class="mec-form-row" style="margin-bottom: 0;">
1883
  <label class="mec-col-4">
1884
+ <input type="hidden" name="mec[booking][gateways_<?php echo esc_attr($g->id()); ?>_disabled]" value="0"/>
1885
+ <input type="checkbox" value="1" name="mec[booking][gateways_<?php echo esc_attr($g->id()); ?>_disabled]" <?php echo (isset($booking_options['gateways_'.$g->id().'_disabled']) and $booking_options['gateways_'.$g->id().'_disabled']) ? 'checked="checked"' : ''; ?> />
1886
+ <?php echo esc_html($g->title()); ?>
1887
  </label>
1888
  </div>
1889
  <?php endforeach; ?>
1921
  if(!is_array($tickets)) $tickets = array();
1922
  ?>
1923
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-tickets" id="mec-tickets">
1924
+ <h4 class="mec-meta-box-header"><?php echo esc_html($this->main->m('tickets', esc_html__('Tickets', 'modern-events-calendar-lite'))); ?></h4>
1925
 
1926
  <?php if($post->ID != $this->main->get_original_event($post->ID)): ?>
1927
+ <p class="warning-msg"><?php esc_html_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>
1928
  <?php endif; ?>
1929
 
1930
  <div id="mec_meta_box_tickets_form">
1931
  <div class="mec-form-row">
1932
+ <button class="button" type="button" id="mec_add_ticket_button"><?php esc_html_e('Add Ticket', 'modern-events-calendar-lite'); ?></button>
1933
  </div>
1934
  <div id="mec_tickets">
1935
  <?php
1940
  if(!is_numeric($key)) continue;
1941
  $i = max($i, $key);
1942
  ?>
1943
+ <div class="mec-box" id="mec_ticket_row<?php echo esc_attr($key); ?>">
1944
+ <div class="mec-ticket-id" title="<?php esc_attr_e('Ticket ID', 'modern-events-calendar-lite'); ?>"><span class="mec-ticket-id-title"><?php esc_attr_e('ID', 'modern-events-calendar-lite'); ?>: </span><?php echo esc_attr($key); ?></div>
1945
  <div class="mec-form-row">
1946
+ <input type="text" class="mec-col-12" name="mec[tickets][<?php echo esc_attr($key); ?>][name]"
1947
  placeholder="<?php esc_attr_e('Ticket Name', 'modern-events-calendar-lite'); ?>"
1948
  value="<?php echo(isset($ticket['name']) ? esc_attr($ticket['name']) : ''); ?>"/>
1949
  </div>
1984
 
1985
  <div class="mec-form-row">
1986
  <textarea type="text" class="mec-col-12"
1987
+ name="mec[tickets][<?php echo esc_attr($key); ?>][description]"
1988
  placeholder="<?php esc_attr_e('Description', 'modern-events-calendar-lite'); ?>"><?php echo(isset($ticket['description']) ? esc_textarea($ticket['description']) : ''); ?></textarea>
1989
  </div>
1990
  <?php if($private_description_status): ?>
1991
  <div class="mec-form-row">
1992
  <textarea type="text" class="mec-col-12"
1993
+ name="mec[tickets][<?php echo esc_attr($key); ?>][private_description]"
1994
  placeholder="<?php esc_attr_e('Private Description', 'modern-events-calendar-lite'); ?>"><?php echo(isset($ticket['private_description']) ? esc_textarea($ticket['private_description']) : ''); ?></textarea>
1995
  <span class="mec-tooltip">
1996
  <div class="box top">
1997
+ <h5 class="title"><?php esc_html_e('Private Description', 'modern-events-calendar-lite'); ?></h5>
1998
  <div class="content"><p><?php esc_attr_e("You can show it on the email notifications by placing %%ticket_private_description%% into the email template.", 'modern-events-calendar-lite'); ?></p></div>
1999
  </div>
2000
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2003
  <?php endif; ?>
2004
  <div class="mec-form-row">
2005
  <span class="mec-col-4">
2006
+ <input type="number" min="0" step="0.01" name="mec[tickets][<?php echo esc_attr($key); ?>][price]"
2007
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>"
2008
  value="<?php echo ((isset($ticket['price']) and trim($ticket['price'])) ? esc_attr($ticket['price']) : 0); ?>"/>
2009
  <span class="mec-tooltip">
2010
  <div class="box top">
2011
+ <h5 class="title"><?php esc_html_e('Price', 'modern-events-calendar-lite'); ?></h5>
2012
  <div class="content"><p><?php esc_attr_e('Insert 0 for free ticket. Only numbers please — Enter only the price without any symbols or characters.', 'modern-events-calendar-lite'); ?>
2013
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2014
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2015
  </div>
2016
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2017
  </span>
2018
  </span>
2019
  <span class="mec-col-8">
2020
+ <input type="text" name="mec[tickets][<?php echo esc_attr($key); ?>][price_label]"
2021
  placeholder="<?php esc_attr_e('Price Label', 'modern-events-calendar-lite'); ?>"
2022
  value="<?php echo(isset($ticket['price_label']) ? esc_attr($ticket['price_label']) : ''); ?>"
2023
  class="mec-col-12"/>
2024
  <span class="mec-tooltip">
2025
  <div class="box top">
2026
+ <h5 class="title"><?php esc_html_e('Price Label', 'modern-events-calendar-lite'); ?></h5>
2027
  <div class="content"><p><?php esc_attr_e('For showing on website. e.g. $15', 'modern-events-calendar-lite'); ?>
2028
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2029
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2030
  </div>
2031
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2032
  </span>
2034
  </div>
2035
  <div class="mec-form-row">
2036
  <div class="mec-col-10">
2037
+ <input class="mec-col-4 mec-available-tickets" type="text" name="mec[tickets][<?php echo esc_attr($key); ?>][limit]"
2038
  placeholder="<?php esc_attr_e('Available Tickets', 'modern-events-calendar-lite'); ?>"
2039
  value="<?php echo(isset($ticket['limit']) ? esc_attr($ticket['limit']) : '100'); ?>"/>
2040
+ <label class="mec-col-4" for="mec_tickets_unlimited_<?php echo esc_attr($key); ?>"
2041
+ id="mec_bookings_limit_unlimited_label<?php echo esc_attr($key); ?>">
2042
+ <input type="hidden" name="mec[tickets][<?php echo esc_attr($key); ?>][unlimited]" value="0"/>
2043
+ <input id="mec_tickets_unlimited_<?php echo esc_attr($key); ?>" type="checkbox" value="1"
2044
+ name="mec[tickets][<?php echo esc_attr($key); ?>][unlimited]"
2045
  <?php
2046
  if (isset($ticket['unlimited']) and $ticket['unlimited']) {
2047
  echo 'checked="checked"';
2048
  }
2049
  ?>
2050
  />
2051
+ <?php esc_html_e('Unlimited', 'modern-events-calendar-lite'); ?>
2052
  </label>
2053
  </div>
2054
  </div>
2055
  <div class="mec-form-row">
2056
  <div class="mec-col-4">
2057
+ <input type="text" name="mec[tickets][<?php echo esc_attr($key); ?>][minimum_ticket]" value="<?php echo(isset($ticket['minimum_ticket']) ? esc_attr($ticket['minimum_ticket']) : '0'); ?>" placeholder="<?php esc_html_e('Minimum Ticket e.g. 3', 'modern-events-calendar-lite'); ?>">
2058
  <span class="mec-tooltip">
2059
  <div class="box top">
2060
+ <h5 class="title"><?php esc_html_e('MinimumTicket', 'modern-events-calendar-lite'); ?></h5>
2061
  <div class="content">
2062
  <p><?php esc_attr_e('Set a number for the minimum ticket reservation possible', 'modern-events-calendar-lite'); ?></p>
2063
  </div>
2068
  </div>
2069
  <div class="mec-form-row">
2070
  <?php ob_start(); ?>
2071
+ <input type="number" class="mec-stop-selling-tickets" name="mec[tickets][<?php echo esc_attr($key); ?>][stop_selling_value]" value="<?php echo((isset($ticket['stop_selling_value']) and trim($ticket['stop_selling_value'])) ? esc_attr($ticket['stop_selling_value']) : '0'); ?>" placeholder="<?php esc_html_e('e.g. 0', 'modern-events-calendar-lite'); ?>">
2072
+ <select name="mec[tickets][<?php echo esc_attr($key); ?>][stop_selling_type]">
2073
+ <option value="day" <?php echo(isset($ticket['stop_selling_type']) and trim($ticket['stop_selling_type']) == 'day') ? 'selected="selected"' : ''; ?>><?php esc_html_e("Day", "mec"); ?></option>
2074
+ <option value="hour" <?php echo(isset($ticket['stop_selling_type']) and trim($ticket['stop_selling_type']) == 'hour') ? 'selected="selected"' : ''; ?>><?php esc_html_e("Hour", "mec"); ?></option>
2075
  </select>
2076
  <?php echo sprintf(__('Stop selling ticket %s before event start.', 'modern-events-calendar-lite'), ob_get_clean()); ?>
2077
  <button class="button remove" type="button"
2078
+ onclick="mec_ticket_remove(<?php echo esc_attr($key); ?>);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="1em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 20 20"><path d="M14.95 6.46L11.41 10l3.54 3.54l-1.41 1.41L10 11.42l-3.53 3.53l-1.42-1.42L8.58 10L5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"/></svg></button>
2079
  </div>
2080
  <?php do_action('custom_field_ticket', $ticket, $key); ?>
2081
  <div id="mec_price_per_dates_container">
2082
  <div class="mec-form-row">
2083
+ <h4><?php esc_html_e('Price per Date', 'modern-events-calendar-lite'); ?></h4>
2084
  <button class="button mec_add_price_date_button" type="button"
2085
+ data-key="<?php echo esc_attr($key); ?>"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
2086
  </div>
2087
+ <div id="mec-ticket-price-dates-<?php echo esc_attr($key); ?>">
2088
  <?php $j = 0; if(isset($ticket['dates']) and count($ticket['dates'])) : ?>
2089
  <?php
2090
  foreach ($ticket['dates'] as $p => $price_date) :
2093
  }
2094
  $j = max($j, $p);
2095
  ?>
2096
+ <div id="mec_ticket_price_raw_<?php echo esc_attr($key); ?>_<?php echo esc_attr($p); ?>">
2097
  <div class="mec-form-row">
2098
  <input class="mec-col-3 mec_date_picker_dynamic_format" type="text"
2099
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][<?php echo esc_attr($p); ?>][start]"
2100
  value="<?php echo isset($price_date['start']) ? $this->main->standardize_format($price_date['start'], $datepicker_format) : $this->main->standardize_format(date('Y-m-d'), $datepicker_format); ?>"
2101
  placeholder="<?php esc_attr_e('Start', 'modern-events-calendar-lite'); ?>"/>
2102
  <input class="mec-col-3 mec_date_picker_dynamic_format" type="text"
2103
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][<?php echo esc_attr($p); ?>][end]"
2104
  value="<?php echo isset($price_date['end']) ? $this->main->standardize_format($price_date['end'], $datepicker_format) : $this->main->standardize_format(date('Y-m-d', strtotime( '+10 days')), $datepicker_format); ?>"
2105
  placeholder="<?php esc_attr_e('End', 'modern-events-calendar-lite'); ?>"/>
2106
  <input class="mec-col-3" type="number"
2107
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][<?php echo esc_attr($p); ?>][price]"
2108
  value="<?php echo isset($price_date['price']) ? $price_date['price'] : ''; ?>"
2109
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" min="0" step="0.01"/>
2110
  <input class="mec-col-2" type="text"
2111
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][<?php echo esc_attr($p); ?>][label]"
2112
  value="<?php echo isset($price_date['label']) ? $price_date['label'] : ''; ?>"
2113
  placeholder="<?php esc_attr_e('Label', 'modern-events-calendar-lite'); ?>"/>
2114
  <button class="button mec-col-1" type="button"
2115
+ onclick="mec_ticket_price_remove(<?php echo esc_attr($key); ?>, <?php echo esc_attr($p); ?>)"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
2116
  </div>
2117
  </div>
2118
  <?php endforeach; ?>
2119
  <?php endif; ?>
2120
  </div>
2121
+ <input type="hidden" id="mec_new_ticket_price_key_<?php echo esc_attr($key); ?>"
2122
+ value="<?php echo ($j + 1); ?>"/>
2123
+ <div class="mec-util-hidden" id="mec_new_ticket_price_raw_<?php echo esc_attr($key); ?>">
2124
+ <div id="mec_ticket_price_raw_<?php echo esc_attr($key); ?>_:j:">
2125
  <div class="mec-form-row">
2126
  <input class="mec-col-3 new_added" type="text"
2127
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][:j:][start]"
2128
+ value="<?php echo esc_attr($this->main->standardize_format( date( 'Y-m-d' ), $datepicker_format )); ?>"
2129
  placeholder="<?php esc_attr_e('Start', 'modern-events-calendar-lite'); ?>"/>
2130
  <input class="mec-col-3 new_added" type="text"
2131
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][:j:][end]"
2132
+ value="<?php echo esc_attr($this->main->standardize_format( date( 'Y-m-d', strtotime( '+10 days' ) ), $datepicker_format )); ?>"
2133
  placeholder="<?php esc_attr_e('End', 'modern-events-calendar-lite'); ?>"/>
2134
  <input class="mec-col-3" type="number"
2135
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][:j:][price]"
2136
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" min="0" step="0.01"/>
2137
  <input class="mec-col-2" type="text"
2138
+ name="mec[tickets][<?php echo esc_attr($key); ?>][dates][:j:][label]"
2139
  placeholder="<?php esc_attr_e('Label', 'modern-events-calendar-lite'); ?>"/>
2140
  <button class="button mec-col-1" type="button"
2141
+ onclick="mec_ticket_price_remove(<?php echo esc_attr($key); ?>, :j:)"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
2142
  </div>
2143
  </div>
2144
  </div>
2154
  ?>
2155
  <div id="mec_variations_per_ticket_container">
2156
  <div class="mec-form-row">
2157
+ <h4><?php esc_html_e('Variations Per Ticket', 'modern-events-calendar-lite'); ?></h4>
2158
+ <div id="mec_variations_per_ticket_form<?php echo esc_attr($key); ?>">
2159
  <div class="mec-form-row">
2160
  <label>
2161
+ <input type="hidden" name="mec[tickets][<?php echo esc_attr($key); ?>][variations_event_inheritance]" value="0"/>
2162
+ <input onchange="jQuery('#mec_variations_per_ticket_container_toggle<?php echo esc_attr($key); ?>').toggle();" value="1" type="checkbox" name="mec[tickets][<?php echo esc_attr($key); ?>][variations_event_inheritance]" <?php echo ($event_inheritance ? 'checked="checked"' : ''); ?>> <?php esc_html_e('Inherit from event options', 'modern-events-calendar-lite'); ?>
2163
  </label>
2164
  </div>
2165
+ <div id="mec_variations_per_ticket_container_toggle<?php echo esc_attr($key); ?>" class="<?php echo ($event_inheritance ? 'mec-util-hidden' : ''); ?>">
2166
  <div class="mec-form-row">
2167
+ <button class="button" type="button" id="mec_add_variation_per_ticket_button<?php echo esc_attr($key); ?>" onclick="add_variation_per_ticket(<?php echo esc_attr($key); ?>);"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
2168
  </div>
2169
+ <div id="mec_ticket_variations_list<?php echo esc_attr($key); ?>">
2170
  <?php
2171
  $ticket_variations = ((isset($ticket['variations']) and is_array($ticket['variations'])) ? $ticket['variations'] : array());
2172
  foreach($ticket_variations as $tvk => $ticket_variation)
2185
  </div>
2186
  </div>
2187
  </div>
2188
+ <div class="mec-util-hidden" id="mec_new_variation_per_ticket_raw<?php echo esc_attr($key); ?>">
2189
  <?php
2190
  $TicketVariations->item(array(
2191
  'name_prefix' => 'mec[tickets]['.$key.'][variations]',
2203
  }
2204
  ?>
2205
  </div>
2206
+ <input type="hidden" id="mec_new_variation_per_ticket_key" value="<?php echo ($tvi + 1); ?>"/>
2207
  </div>
2208
+ <input type="hidden" id="mec_new_ticket_key" value="<?php echo ($i + 1); ?>"/>
2209
  <div class="mec-util-hidden" id="mec_new_ticket_raw">
2210
  <div class="mec-box" id="mec_ticket_row:i:">
2211
  <div class="mec-ticket-id" title="<?php esc_attr_e('Ticket ID', 'modern-events-calendar-lite'); ?>"><span class="mec-ticket-id-title"><?php esc_attr_e('ID', 'modern-events-calendar-lite'); ?>: </span>:i:</div>
2253
  placeholder="<?php esc_attr_e('Private Description', 'modern-events-calendar-lite'); ?>"></textarea>
2254
  <span class="mec-tooltip">
2255
  <div class="box top">
2256
+ <h5 class="title"><?php esc_html_e('Private Description', 'modern-events-calendar-lite'); ?></h5>
2257
  <div class="content"><p><?php esc_attr_e("You can show it on the email notifications by placing %%ticket_private_description%% into the email template.", 'modern-events-calendar-lite'); ?></p></div>
2258
  </div>
2259
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2265
  <input type="number" min="0" step="0.01" name="mec[tickets][:i:][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" value="0">
2266
  <span class="mec-tooltip">
2267
  <div class="box top">
2268
+ <h5 class="title"><?php esc_html_e('Price', 'modern-events-calendar-lite'); ?></h5>
2269
  <div class="content"><p><?php esc_attr_e('Insert 0 for free ticket. Only numbers please — Enter only the price without any symbols or characters.', 'modern-events-calendar-lite'); ?>
2270
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2271
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2272
  </div>
2273
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2274
  </span>
2277
  <input type="text" name="mec[tickets][:i:][price_label]" placeholder="<?php esc_attr_e('Price Label', 'modern-events-calendar-lite'); ?>" class="mec-col-12">
2278
  <span class="mec-tooltip">
2279
  <div class="box top">
2280
+ <h5 class="title"><?php esc_html_e('Price Label', 'modern-events-calendar-lite'); ?></h5>
2281
  <div class="content"><p><?php esc_attr_e('For showing on website. e.g. $15', 'modern-events-calendar-lite'); ?>
2282
  <a href="https://webnus.net/dox/modern-events-calendar/add-a-booking-system/"
2283
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2284
  </div>
2285
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2286
  </span>
2295
  <input type="hidden" name="mec[tickets][:i:][unlimited]" value="0"/>
2296
  <input id="mec_tickets_unlimited_:i:" type="checkbox" value="1"
2297
  name="mec[tickets][:i:][unlimited]"/>
2298
+ <?php esc_html_e('Unlimited', 'modern-events-calendar-lite'); ?>
2299
  </label>
2300
  </div>
2301
  </div>
2302
  <div class="mec-form-row">
2303
  <div class="mec-col-4">
2304
+ <input type="text" name="mec[tickets][:i:][minimum_ticket]" value="1" placeholder="<?php esc_html_e('Minimum Ticket e.g. 3', 'modern-events-calendar-lite'); ?>">
2305
  <span class="mec-tooltip">
2306
  <div class="box top">
2307
+ <h5 class="title"><?php esc_html_e('MinimumTicket', 'modern-events-calendar-lite'); ?></h5>
2308
  <div class="content">
2309
  <p><?php esc_attr_e('Set a number for the minimum ticket reservation possible', 'modern-events-calendar-lite'); ?></p>
2310
  </div>
2315
  </div>
2316
  <div class="mec-form-row">
2317
  <?php ob_start(); ?>
2318
+ <input type="number" class="mec-stop-selling-tickets" name="mec[tickets][:i:][stop_selling_value]" value="0" placeholder="<?php esc_html_e('e.g. 0', 'modern-events-calendar-lite'); ?>">
2319
  <select name="mec[tickets][:i:][stop_selling_type]">
2320
+ <option value="day"><?php esc_html_e("Day", "mec"); ?></option>
2321
+ <option value="hour"><?php esc_html_e("Hour", "mec"); ?></option>
2322
  </select>
2323
  <?php echo sprintf(__('Stop selling ticket %s before event start.', 'modern-events-calendar-lite'), ob_get_clean()); ?>
2324
  <button class="button remove" type="button"
2327
  <?php do_action('custom_field_dynamic_ticket'); ?>
2328
  <div id="mec_price_per_dates_container_:i:">
2329
  <div class="mec-form-row">
2330
+ <h4><?php esc_html_e('Price per Date', 'modern-events-calendar-lite'); ?></h4>
2331
  <button class="button mec_add_price_date_button" type="button"
2332
+ data-key=":i:"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
2333
  </div>
2334
  <div id="mec-ticket-price-dates-:i:">
2335
  </div>
2339
  <div class="mec-form-row">
2340
  <input class="mec-col-3 new_added" type="text"
2341
  name="mec[tickets][:i:][dates][:j:][start]"
2342
+ value="<?php echo esc_attr($this->main->standardize_format(date('Y-m-d'), $datepicker_format)); ?>"
2343
  placeholder="<?php esc_attr_e('Start', 'modern-events-calendar-lite'); ?>"/>
2344
  <input class="mec-col-3 new_added" type="text"
2345
  name="mec[tickets][:i:][dates][:j:][end]"
2346
+ value="<?php echo esc_attr($this->main->standardize_format(date('Y-m-d', strtotime('+10 days')), $datepicker_format)); ?>"
2347
  placeholder="<?php esc_attr_e('End', 'modern-events-calendar-lite'); ?>"/>
2348
  <input class="mec-col-3" type="number" name="mec[tickets][:i:][dates][:j:][price]"
2349
  placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" min="0" step="0.01"/>
2350
  <input class="mec-col-2" type="text" name="mec[tickets][:i:][dates][:j:][label]"
2351
  placeholder="<?php esc_attr_e('Label', 'modern-events-calendar-lite'); ?>"/>
2352
  <button class="button mec-col-1" type="button"
2353
+ onclick="mec_ticket_price_remove(:i:, :j:)"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
2354
  </div>
2355
  </div>
2356
  </div>
2363
  ?>
2364
  <div id="mec_variations_per_ticket_container">
2365
  <div class="mec-form-row">
2366
+ <h4><?php esc_html_e('Variations Per Ticket', 'modern-events-calendar-lite'); ?></h4>
2367
  <div id="mec_variations_per_ticket_form:i:">
2368
  <div class="mec-form-row">
2369
  <label>
2370
  <input type="hidden" name="mec[tickets][:i:][variations_event_inheritance]" value="0"/>
2371
+ <input onchange="jQuery('#mec_variations_per_ticket_container_toggle:i:').toggle();" value="1" type="checkbox" name="mec[tickets][:i:][variations_event_inheritance]" checked="checked"> <?php esc_html_e('Inherit from event options', 'modern-events-calendar-lite'); ?>
2372
  </label>
2373
  </div>
2374
  <div id="mec_variations_per_ticket_container_toggle:i:" class="mec-util-hidden">
2375
  <div class="mec-form-row">
2376
+ <button class="button" type="button" id="mec_add_variation_per_ticket_button:i:" onclick="add_variation_per_ticket(:i:);"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
2377
  </div>
2378
  <div id="mec_ticket_variations_list:i:"></div>
2379
  </div>
2423
  }
2424
  ?>
2425
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-fees" id="mec-fees">
2426
+ <h4 class="mec-meta-box-header"><?php esc_html_e('Fees', 'modern-events-calendar-lite'); ?></h4>
2427
  <div id="mec_meta_box_fees_form">
2428
  <div class="mec-form-row">
2429
  <label>
2435
  echo 'checked="checked"';
2436
  }
2437
  ?>
2438
+ /> <?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?>
2439
  </label>
2440
  </div>
2441
  <div id="mec_taxes_fees_container_toggle" class="
2446
  ?>
2447
  ">
2448
  <div class="mec-form-row">
2449
+ <button class="button" type="button" id="mec_add_fee_button"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
2450
  </div>
2451
  <div id="mec_fees_list">
2452
  <?php
2457
  }
2458
  $i = max($i, $key);
2459
  ?>
2460
+ <div class="mec-box" id="mec_fee_row<?php echo esc_attr($i); ?>">
2461
  <div class="mec-form-row">
2462
+ <input class="mec-col-12" type="text" name="mec[fees][<?php echo esc_attr($i); ?>][title]"
2463
  placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>"
2464
  value="<?php echo(isset($fee['title']) ? esc_attr($fee['title']) : ''); ?>"/>
2465
  </div>
2466
  <div class="mec-form-row">
2467
  <span class="mec-col-4">
2468
+ <input type="text" name="mec[fees][<?php echo esc_attr($i); ?>][amount]"
2469
  placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>"
2470
  value="<?php echo(isset($fee['amount']) ? esc_attr($fee['amount']) : ''); ?>"/>
2471
  <span class="mec-tooltip">
2472
  <div class="box top">
2473
+ <h5 class="title"><?php esc_html_e('Amount', 'modern-events-calendar-lite'); ?></h5>
2474
  <div class="content"><p><?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'); ?>
2475
  <a href="https://webnus.net/dox/modern-events-calendar/tickets-and-taxes-fees/"
2476
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2477
  </div>
2478
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2479
  </span>
2480
  </span>
2481
  <span class="mec-col-4">
2482
+ <select name="mec[fees][<?php echo esc_attr($i); ?>][type]">
2483
+ <option value="percent" <?php echo((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Percent', 'modern-events-calendar-lite'); ?></option>
2484
+ <option value="amount" <?php echo((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
2485
+ <option value="amount_per_date" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_date') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
2486
+ <option value="amount_per_booking" <?php echo((isset($fee['type']) and $fee['type'] == 'amount_per_booking') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
2487
  </select>
2488
  </span>
2489
+ <button class="button" type="button" id="mec_remove_fee_button<?php echo esc_attr($i); ?>"
2490
+ onclick="mec_remove_fee(<?php echo esc_attr($i); ?>);"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
2491
  </div>
2492
  </div>
2493
  <?php endforeach; ?>
2494
  </div>
2495
  </div>
2496
  </div>
2497
+ <input type="hidden" id="mec_new_fee_key" value="<?php echo ($i + 1); ?>"/>
2498
  <div class="mec-util-hidden" id="mec_new_fee_raw">
2499
  <div class="mec-box" id="mec_fee_row:i:">
2500
  <div class="mec-form-row">
2507
  placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>"/>
2508
  <span class="mec-tooltip">
2509
  <div class="box top">
2510
+ <h5 class="title"><?php esc_html_e('Amount', 'modern-events-calendar-lite'); ?></h5>
2511
  <div class="content"><p><?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'); ?>
2512
  <a href="https://webnus.net/dox/modern-events-calendar/tickets-and-taxes-fees/"
2513
+ target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
2514
  </div>
2515
  <i title="" class="dashicons-before dashicons-editor-help"></i>
2516
  </span>
2517
  </span>
2518
  <span class="mec-col-4">
2519
  <select name="mec[fees][:i:][type]">
2520
+ <option value="percent"><?php esc_html_e('Percent', 'modern-events-calendar-lite'); ?></option>
2521
+ <option value="amount"><?php esc_html_e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
2522
+ <option value="amount_per_date"><?php esc_html_e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
2523
+ <option value="amount_per_booking"><?php esc_html_e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
2524
  </select>
2525
  </span>
2526
  <button class="button" type="button" id="mec_remove_fee_button:i:"
2527
+ onclick="mec_remove_fee(:i:);"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
2528
  </div>
2529
  </div>
2530
  </div>
2553
  $TicketVariations = $this->getTicketVariations();
2554
  ?>
2555
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-ticket-variations" id="mec-ticket-variations">
2556
+ <h4 class="mec-meta-box-header"><?php esc_html_e('Ticket Variations / Options', 'modern-events-calendar-lite'); ?></h4>
2557
  <div id="mec_meta_box_ticket_variations_form">
2558
  <div class="mec-form-row">
2559
  <label>
2560
  <input type="hidden" name="mec[ticket_variations_global_inheritance]" value="0"/>
2561
+ <input onchange="jQuery('#mec_taxes_ticket_variations_container_toggle').toggle();" value="1" type="checkbox" name="mec[ticket_variations_global_inheritance]" <?php echo ($global_inheritance ? 'checked="checked"' : ''); ?>> <?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?>
2562
  </label>
2563
  </div>
2564
  <div id="mec_taxes_ticket_variations_container_toggle" class="<?php echo ($global_inheritance ? 'mec-util-hidden' : ''); ?>">
2565
  <div class="mec-form-row">
2566
+ <button class="button" type="button" id="mec_add_ticket_variation_button"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
2567
  </div>
2568
  <div id="mec_ticket_variations_list">
2569
  <?php
2582
  </div>
2583
  </div>
2584
  </div>
2585
+ <input type="hidden" id="mec_new_ticket_variation_key" value="<?php echo ($i + 1); ?>"/>
2586
  <div class="mec-util-hidden" id="mec_new_ticket_variation_raw">
2587
  <?php
2588
  $TicketVariations->item(array(
2652
  }
2653
  ?>
2654
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-reg-form" id="mec-reg-fields">
2655
+ <h4 class="mec-meta-box-header"><?php esc_html_e('Booking Form', 'modern-events-calendar-lite'); ?></h4>
2656
 
2657
  <?php if($post->ID != $this->main->get_original_event($post->ID)) : ?>
2658
+ <p class="warning-msg"><?php esc_html_e("You're translating an event so MEC will use the original event for booking form. You can only translate the field name and options. Please define exact fields that you defined in the original event here.", 'modern-events-calendar-lite'); ?></p>
2659
  <?php endif; ?>
2660
 
2661
  <div id="mec_meta_box_reg_fields_form">
2669
  echo 'checked="checked"';
2670
  }
2671
  ?>
2672
+ /> <?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?>
2673
  </label>
2674
  </div>
2675
  <?php do_action('mec_meta_box_reg_fields_form', $post->ID); ?>
2681
  ?>">
2682
 
2683
  <div class="mec-booking-per-attendee-fields">
2684
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Per Attendee Fields', 'modern-events-calendar-lite'); ?></h5>
2685
  <?php /** Don't remove this hidden field **/ ?>
2686
  <input type="hidden" name="mec[reg_fields]" value=""/>
2687
 
2694
 
2695
  $i = max($i, $key);
2696
 
2697
+ if($reg_field['type'] == 'text') echo MEC_kses::form($this->main->field_text($key, $reg_field));
2698
+ elseif($reg_field['type'] == 'mec_email') echo MEC_kses::form($this->main->field_mec_email($key, $reg_field));
2699
+ elseif($reg_field['type'] == 'name') echo MEC_kses::form($this->main->field_name($key, $reg_field));
2700
+ elseif($reg_field['type'] == 'email') echo MEC_kses::form($this->main->field_email($key, $reg_field));
2701
+ elseif($reg_field['type'] == 'date') echo MEC_kses::form($this->main->field_date($key, $reg_field));
2702
+ elseif($reg_field['type'] == 'file') echo MEC_kses::form($this->main->field_file($key, $reg_field));
2703
+ elseif($reg_field['type'] == 'tel') echo MEC_kses::form($this->main->field_tel($key, $reg_field));
2704
+ elseif($reg_field['type'] == 'textarea') echo MEC_kses::form($this->main->field_textarea($key, $reg_field));
2705
+ elseif($reg_field['type'] == 'p') echo MEC_kses::form($this->main->field_p($key, $reg_field));
2706
+ elseif($reg_field['type'] == 'checkbox') echo MEC_kses::form($this->main->field_checkbox($key, $reg_field));
2707
+ elseif($reg_field['type'] == 'radio') echo MEC_kses::form($this->main->field_radio($key, $reg_field));
2708
+ elseif($reg_field['type'] == 'select') echo MEC_kses::form($this->main->field_select($key, $reg_field));
2709
+ elseif($reg_field['type'] == 'agreement') echo MEC_kses::form($this->main->field_agreement($key, $reg_field));
2710
  }
2711
  ?>
2712
  </ul>
2713
  <div id="mec_reg_form_field_types">
2714
+ <button type="button" class="button red" data-type="name"><?php esc_html_e('MEC Name', 'modern-events-calendar-lite'); ?></button>
2715
+ <button type="button" class="button red" data-type="mec_email"><?php esc_html_e('MEC Email', 'modern-events-calendar-lite'); ?></button>
2716
+ <button type="button" class="button" data-type="text"><?php esc_html_e('Text', 'modern-events-calendar-lite'); ?></button>
2717
+ <button type="button" class="button" data-type="email"><?php esc_html_e('Email', 'modern-events-calendar-lite'); ?></button>
2718
+ <button type="button" class="button" data-type="date"><?php esc_html_e('Date', 'modern-events-calendar-lite'); ?></button>
2719
+ <button type="button" class="button" data-type="tel"><?php esc_html_e('Tel', 'modern-events-calendar-lite'); ?></button>
2720
+ <button type="button" class="button" data-type="file"><?php esc_html_e('File', 'modern-events-calendar-lite'); ?></button>
2721
+ <button type="button" class="button" data-type="textarea"><?php esc_html_e('Textarea', 'modern-events-calendar-lite'); ?></button>
2722
+ <button type="button" class="button" data-type="checkbox"><?php esc_html_e('Checkboxes', 'modern-events-calendar-lite'); ?></button>
2723
+ <button type="button" class="button" data-type="radio"><?php esc_html_e('Radio Buttons', 'modern-events-calendar-lite'); ?></button>
2724
+ <button type="button" class="button" data-type="select"><?php esc_html_e('Dropdown', 'modern-events-calendar-lite'); ?></button>
2725
+ <button type="button" class="button" data-type="agreement"><?php esc_html_e('Agreement', 'modern-events-calendar-lite'); ?></button>
2726
+ <button type="button" class="button" data-type="p"><?php esc_html_e('Paragraph', 'modern-events-calendar-lite'); ?></button>
2727
  </div>
2728
+ <input type="hidden" id="mec_new_reg_field_key" value="<?php echo ($i + 1); ?>"/>
2729
  <div class="mec-util-hidden">
2730
  <div id="mec_reg_field_text">
2731
+ <?php echo MEC_kses::form($this->main->field_text(':i:')); ?>
2732
  </div>
2733
  <div id="mec_reg_field_email">
2734
+ <?php echo MEC_kses::form($this->main->field_email(':i:')); ?>
2735
  </div>
2736
  <div id="mec_reg_field_mec_email">
2737
+ <?php echo MEC_kses::form($this->main->field_mec_email(':i:')); ?>
2738
  </div>
2739
  <div id="mec_reg_field_name">
2740
+ <?php echo MEC_kses::form($this->main->field_name(':i:')); ?>
2741
  </div>
2742
  <div id="mec_reg_field_tel">
2743
+ <?php echo MEC_kses::form($this->main->field_tel(':i:')); ?>
2744
  </div>
2745
  <div id="mec_reg_field_date">
2746
+ <?php echo MEC_kses::form($this->main->field_date(':i:')); ?>
2747
  </div>
2748
  <div id="mec_reg_field_file">
2749
+ <?php echo MEC_kses::form($this->main->field_file(':i:')); ?>
2750
  </div>
2751
  <div id="mec_reg_field_textarea">
2752
+ <?php echo MEC_kses::form($this->main->field_textarea(':i:')); ?>
2753
  </div>
2754
  <div id="mec_reg_field_checkbox">
2755
+ <?php echo MEC_kses::form($this->main->field_checkbox(':i:')); ?>
2756
  </div>
2757
  <div id="mec_reg_field_radio">
2758
+ <?php echo MEC_kses::form($this->main->field_radio(':i:')); ?>
2759
  </div>
2760
  <div id="mec_reg_field_select">
2761
+ <?php echo MEC_kses::form($this->main->field_select(':i:')); ?>
2762
  </div>
2763
  <div id="mec_reg_field_agreement">
2764
+ <?php echo MEC_kses::form($this->main->field_agreement(':i:')); ?>
2765
  </div>
2766
  <div id="mec_reg_field_p">
2767
+ <?php echo MEC_kses::form($this->main->field_p(':i:')); ?>
2768
  </div>
2769
  <div id="mec_reg_field_option">
2770
+ <?php echo MEC_kses::form($this->main->field_option(':fi:', ':i:')); ?>
2771
  </div>
2772
  </div>
2773
  </div>
2774
  <div class="mec-booking-fixed-fields">
2775
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Fixed Fields', 'modern-events-calendar-lite'); ?></h5>
2776
  <div class="mec-form-row" id="mec_bfixed_form_container">
2777
  <?php /** Don't remove this hidden field **/ ?>
2778
  <input type="hidden" name="mec[bfixed_fields]" value="" />
2785
  if(!is_numeric($key)) continue;
2786
  $b = max($b, $key);
2787
 
2788
+ if($bfixed_field['type'] == 'text') echo MEC_kses::form($this->main->field_text($key, $bfixed_field, 'bfixed'));
2789
+ elseif($bfixed_field['type'] == 'name') echo MEC_kses::form($this->main->field_name($key, $bfixed_field, 'bfixed'));
2790
+ elseif($bfixed_field['type'] == 'mec_email') echo MEC_kses::form($this->main->field_mec_email($key, $bfixed_field, 'bfixed'));
2791
+ elseif($bfixed_field['type'] == 'email') echo MEC_kses::form($this->main->field_email($key, $bfixed_field, 'bfixed'));
2792
+ elseif($bfixed_field['type'] == 'date') echo MEC_kses::form($this->main->field_date($key, $bfixed_field, 'bfixed'));
2793
+ elseif($bfixed_field['type'] == 'file') echo MEC_kses::form($this->main->field_file($key, $bfixed_field, 'bfixed'));
2794
+ elseif($bfixed_field['type'] == 'tel') echo MEC_kses::form($this->main->field_tel($key, $bfixed_field, 'bfixed'));
2795
+ elseif($bfixed_field['type'] == 'textarea') echo MEC_kses::form($this->main->field_textarea($key, $bfixed_field, 'bfixed'));
2796
+ elseif($bfixed_field['type'] == 'p') echo MEC_kses::form($this->main->field_p($key, $bfixed_field, 'bfixed'));
2797
+ elseif($bfixed_field['type'] == 'checkbox') echo MEC_kses::form($this->main->field_checkbox($key, $bfixed_field, 'bfixed'));
2798
+ elseif($bfixed_field['type'] == 'radio') echo MEC_kses::form($this->main->field_radio($key, $bfixed_field, 'bfixed'));
2799
+ elseif($bfixed_field['type'] == 'select') echo MEC_kses::form($this->main->field_select($key, $bfixed_field, 'bfixed'));
2800
+ elseif($bfixed_field['type'] == 'agreement') echo MEC_kses::form($this->main->field_agreement($key, $bfixed_field, 'bfixed'));
2801
  }
2802
  ?>
2803
  </ul>
2804
  <div id="mec_bfixed_form_field_types">
2805
+ <button type="button" class="button" data-type="text"><?php esc_html_e( 'Text', 'modern-events-calendar-lite' ); ?></button>
2806
+ <button type="button" class="button" data-type="email"><?php esc_html_e( 'Email', 'modern-events-calendar-lite' ); ?></button>
2807
+ <button type="button" class="button" data-type="date"><?php esc_html_e( 'Date', 'modern-events-calendar-lite' ); ?></button>
2808
+ <button type="button" class="button" data-type="tel"><?php esc_html_e( 'Tel', 'modern-events-calendar-lite' ); ?></button>
2809
+ <button type="button" class="button" data-type="textarea"><?php esc_html_e( 'Textarea', 'modern-events-calendar-lite' ); ?></button>
2810
+ <button type="button" class="button" data-type="checkbox"><?php esc_html_e( 'Checkboxes', 'modern-events-calendar-lite' ); ?></button>
2811
+ <button type="button" class="button" data-type="radio"><?php esc_html_e( 'Radio Buttons', 'modern-events-calendar-lite' ); ?></button>
2812
+ <button type="button" class="button" data-type="select"><?php esc_html_e( 'Dropdown', 'modern-events-calendar-lite' ); ?></button>
2813
+ <button type="button" class="button" data-type="agreement"><?php esc_html_e( 'Agreement', 'modern-events-calendar-lite' ); ?></button>
2814
+ <button type="button" class="button" data-type="p"><?php esc_html_e( 'Paragraph', 'modern-events-calendar-lite' ); ?></button>
2815
  </div>
2816
  </div>
2817
+ <input type="hidden" id="mec_new_bfixed_field_key" value="<?php echo ($b + 1); ?>" />
2818
  <div class="mec-util-hidden">
2819
  <div id="mec_bfixed_field_text">
2820
+ <?php echo MEC_kses::form($this->main->field_text(':i:', array(), 'bfixed')); ?>
2821
  </div>
2822
  <div id="mec_bfixed_field_email">
2823
+ <?php echo MEC_kses::form($this->main->field_email(':i:', array(), 'bfixed')); ?>
2824
  </div>
2825
  <div id="mec_bfixed_field_tel">
2826
+ <?php echo MEC_kses::form($this->main->field_tel(':i:', array(), 'bfixed')); ?>
2827
  </div>
2828
  <div id="mec_bfixed_field_date">
2829
+ <?php echo MEC_kses::form($this->main->field_date(':i:', array(), 'bfixed')); ?>
2830
  </div>
2831
  <div id="mec_bfixed_field_textarea">
2832
+ <?php echo MEC_kses::form($this->main->field_textarea(':i:', array(), 'bfixed')); ?>
2833
  </div>
2834
  <div id="mec_bfixed_field_checkbox">
2835
+ <?php echo MEC_kses::form($this->main->field_checkbox(':i:', array(), 'bfixed')); ?>
2836
  </div>
2837
  <div id="mec_bfixed_field_radio">
2838
+ <?php echo MEC_kses::form($this->main->field_radio(':i:', array(), 'bfixed')); ?>
2839
  </div>
2840
  <div id="mec_bfixed_field_select">
2841
+ <?php echo MEC_kses::form($this->main->field_select(':i:', array(), 'bfixed')); ?>
2842
  </div>
2843
  <div id="mec_bfixed_field_agreement">
2844
+ <?php echo MEC_kses::form($this->main->field_agreement(':i:', array(), 'bfixed')); ?>
2845
  </div>
2846
  <div id="mec_bfixed_field_p">
2847
+ <?php echo MEC_kses::form($this->main->field_p(':i:', array(), 'bfixed')); ?>
2848
  </div>
2849
  <div id="mec_bfixed_field_option">
2850
+ <?php echo MEC_kses::form($this->main->field_option(':fi:', ':i:', array(), 'bfixed')); ?>
2851
  </div>
2852
  </div>
2853
  </div>
2884
  do_action('mec_events_meta_box_attendees_start', $post);
2885
  ?>
2886
  <div class="mec-meta-box-fields mec-booking-tab-content mec-fes-attendees" id="mec_meta_box_booking_options_form_attendees">
2887
+ <h4 class="mec-meta-box-header"><?php esc_html_e('Attendees', 'modern-events-calendar-lite'); ?></h4>
2888
  <div class="mec-attendees-wrapper mec-booking-attendees-wrapper">
2889
  <div>
2890
  <select id="mec_att_occurrences_dropdown" title="<?php esc_attr_e('Occurrence', 'modern-events-calendar-lite'); ?>">
2891
+ <option class="mec-load-occurrences" value="<?php echo esc_attr($_6months_ago.':'.$_6months_ago); ?>"><?php esc_html_e('Previous Occurrences', 'modern-events-calendar-lite'); ?></option>
2892
  <?php $i = 1; foreach($occurrences as $occurrence): ?>
2893
+ <option value="<?php echo esc_attr($occurrence->tstart.':'.$occurrence->tend); ?>" <?php echo ($i === 1 ? 'selected="selected"' : ''); ?>><?php echo (date_i18n($datetime_format, $occurrence->tstart)); ?></option>
2894
  <?php $i++; endforeach; ?>
2895
  <?php if(count($occurrences) >= $limit and isset($occurrence)): ?>
2896
+ <option class="mec-load-occurrences" value="<?php echo esc_attr($occurrence->tstart.':'.$occurrence->tend); ?>"><?php esc_html_e('Next Occurrences', 'modern-events-calendar-lite'); ?></option>
2897
  <?php endif; ?>
2898
  </select>
2899
  </div>
2929
  {
2930
  url: "<?php echo admin_url('admin-ajax.php', NULL); ?>",
2931
  type: "POST",
2932
+ data: "action=mec_occurrences_dropdown&id=<?php echo esc_js($post->ID); ?>&_wpnonce=<?php echo wp_create_nonce('mec_occurrences_dropdown'); ?>&date="+value,
2933
  dataType: "json"
2934
  })
2935
  .done(function(response)
2958
  {
2959
  url: "<?php echo admin_url('admin-ajax.php', NULL); ?>",
2960
  type: "POST",
2961
+ data: "action=mec_event_bookings&id=<?php echo esc_js($post->ID); ?>&occurrence="+value+"&backend=<?php echo (is_admin() ? 1 : 0); ?>",
2962
  dataType: "json"
2963
  })
2964
  .done(function(response)
2989
  if(!isset($_POST['mec_event_nonce'])) return;
2990
 
2991
  // It's from FES
2992
+ if(isset($_POST['action']) and sanitize_text_field($_POST['action']) === 'mec_fes_form') return;
2993
 
2994
  // Verify that the nonce is valid.
2995
+ if(!wp_verify_nonce(sanitize_text_field($_POST['mec_event_nonce']), 'mec_event_data')) return;
2996
 
2997
  // If this is an autosave, our form has not been submitted, so we don't want to do anything.
2998
  if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
3021
  $cost
3022
  );
3023
 
3024
+ $cost_auto_calculate = (isset($_mec['cost_auto_calculate']) ? sanitize_text_field($_mec['cost_auto_calculate']) : 0);
3025
  $currency_options = ((isset($_mec['currency']) and is_array($_mec['currency'])) ? $_mec['currency'] : array());
3026
 
3027
  update_post_meta($post_id, 'mec_location_id', $location_id);
3688
  $this->main->event_date_updated($post_id, $prev_start_datetime, $prev_end_datetime);
3689
  }
3690
 
3691
+ $mec_update = (isset($_REQUEST['original_publish']) and strtolower(trim(sanitize_text_field($_REQUEST['original_publish']))) == 'publish') ? false : true;
3692
  do_action('mec_after_publish_admin_event', $post_id, $mec_update);
3693
 
3694
  // Save Event Data
3774
  {
3775
  wp_dropdown_categories(
3776
  array(
3777
+ 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_labels', esc_html__('labels', 'modern-events-calendar-lite'))),
3778
  'taxonomy' => $taxonomy,
3779
  'name' => $taxonomy,
3780
  'value_field' => 'slug',
3792
  {
3793
  wp_dropdown_categories(
3794
  array(
3795
+ 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_locations', esc_html__('locations', 'modern-events-calendar-lite'))),
3796
  'taxonomy' => $taxonomy,
3797
  'name' => $taxonomy,
3798
  'value_field' => 'slug',
3810
  {
3811
  wp_dropdown_categories(
3812
  array(
3813
+ 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizers', esc_html__('organizers', 'modern-events-calendar-lite'))),
3814
  'taxonomy' => $taxonomy,
3815
  'name' => $taxonomy,
3816
  'value_field' => 'slug',
3828
  {
3829
  wp_dropdown_categories(
3830
  array(
3831
+ 'show_option_all' => sprintf(__('Show all %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_categorys', esc_html__('Categories', 'modern-events-calendar-lite'))),
3832
  'taxonomy' => $taxonomy,
3833
  'name' => $taxonomy,
3834
  'value_field' => 'slug',
3871
  unset($columns['date']);
3872
  unset($columns['tags']);
3873
 
3874
+ $columns['title'] = esc_html__('Title', 'modern-events-calendar-lite');
3875
+ $columns['category'] = esc_html__('Category', 'modern-events-calendar-lite');
3876
+ $columns['location'] = $this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'));
3877
+ $columns['organizer'] = $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'));
3878
+ $columns['start_date'] = esc_html__('Start Date', 'modern-events-calendar-lite');
3879
+ $columns['end_date'] = esc_html__('End Date', 'modern-events-calendar-lite');
3880
 
3881
  // Sold Tickets
3882
+ if($this->getPRO() and (isset($this->settings['booking_status']) and $this->settings['booking_status'])) $columns['sold_tickets'] = esc_html__('Sold Tickets', 'modern-events-calendar-lite');
3883
 
3884
+ $columns['repeat'] = esc_html__('Repeat', 'modern-events-calendar-lite');
3885
  return $columns;
3886
  }
3887
 
3913
  if($column_name == 'location')
3914
  {
3915
  $location = get_term(get_post_meta($post_id, 'mec_location_id', true));
3916
+ echo (isset($location->name) ? esc_html($location->name) : '----');
3917
  }
3918
  elseif($column_name == 'organizer')
3919
  {
3920
  $organizer = get_term(get_post_meta($post_id, 'mec_organizer_id', true));
3921
+ echo (isset($organizer->name) ? esc_html($organizer->name) : '----');
3922
  }
3923
  elseif($column_name == 'start_date')
3924
  {
3925
  $datetime_format = get_option('date_format', 'Y-n-d').' '.get_option('time_format', 'H:i');
3926
  $date = get_post_meta($post_id, 'mec_start_date', true);
3927
 
3928
+ echo esc_html($this->main->date_i18n($datetime_format, (strtotime($date) + ((int) get_post_meta($post_id, 'mec_start_day_seconds', true))), $post_id));
3929
  }
3930
  elseif($column_name == 'end_date')
3931
  {
3932
  $datetime_format = get_option('date_format', 'Y-n-d').' '.get_option('time_format', 'H:i');
3933
  $date = get_post_meta($post_id, 'mec_end_date', true);
3934
 
3935
+ echo esc_html($this->main->date_i18n($datetime_format, (strtotime($date) + ((int) get_post_meta($post_id, 'mec_end_day_seconds', true))), $post_id));
3936
  }
3937
  elseif($column_name == 'sold_tickets')
3938
  {
3939
+ echo esc_html($this->getBook()->get_all_sold_tickets($post_id));
3940
  }
3941
  elseif($column_name == 'repeat')
3942
  {
3943
  $repeat_type = get_post_meta($post_id, 'mec_repeat_type', true);
3944
+ echo esc_html(ucwords(str_replace('_', ' ', $repeat_type)));
3945
  }
3946
  elseif($column_name == 'category')
3947
  {
3950
  if(!empty($categories))
3951
  {
3952
  $category_name = implode(",", $categories);
3953
+ echo esc_html($category_name);
3954
  }
3955
  }
3956
  }
4050
  ?>
4051
  <script type="text/javascript">
4052
  jQuery(document).ready(function () {
4053
+ jQuery('<option>').val('ical-export').text('<?php echo esc_html__('iCal / Outlook Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4054
+ jQuery('<option>').val('ical-export').text('<?php echo esc_html__('iCal / Outlook Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4055
 
4056
+ jQuery('<option>').val('csv-export').text('<?php echo esc_html__('CSV Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4057
+ jQuery('<option>').val('csv-export').text('<?php echo esc_html__('CSV Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4058
 
4059
+ jQuery('<option>').val('ms-excel-export').text('<?php echo esc_html__('MS Excel Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4060
+ jQuery('<option>').val('ms-excel-export').text('<?php echo esc_html__('MS Excel Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4061
 
4062
+ jQuery('<option>').val('xml-export').text('<?php echo esc_html__('XML Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4063
+ jQuery('<option>').val('xml-export').text('<?php echo esc_html__('XML Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4064
 
4065
+ jQuery('<option>').val('json-export').text('<?php echo esc_html__('JSON Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4066
+ jQuery('<option>').val('json-export').text('<?php echo esc_html__('JSON Export', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4067
 
4068
+ jQuery('<option>').val('duplicate').text('<?php echo esc_html__('Duplicate', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action']");
4069
+ jQuery('<option>').val('duplicate').text('<?php echo esc_html__('Duplicate', 'modern-events-calendar-lite'); ?>').appendTo("select[name='action2']");
4070
  });
4071
  </script>
4072
  <?php
4089
  {
4090
  case 'ical-export':
4091
 
4092
+ $post_ids = (isset($_GET['post']) and is_array($_GET['post']) and count($_GET['post'])) ? array_map('sanitize_text_field', wp_unslash($_GET['post'])) : array();
4093
  $events = '';
4094
 
4095
  foreach($post_ids as $post_id) $events .= $this->main->ical_single((int) $post_id);
4098
  header('Content-type: application/force-download; charset=utf-8');
4099
  header('Content-Disposition: attachment; filename="mec-events-' . date('YmdTHi') . '.ics"');
4100
 
4101
+ echo MEC_kses::full($ical_calendar);
4102
 
4103
  exit;
4104
  break;
4125
 
4126
  case 'xml-export':
4127
 
4128
+ $post_ids = (isset($_GET['post']) and is_array($_GET['post']) and count($_GET['post'])) ? array_map('sanitize_text_field', wp_unslash($_GET['post'])) : array();
4129
 
4130
  $events = array();
4131
  foreach($post_ids as $post_id) $events[] = $this->main->export_single((int) $post_id);
4135
  header('Content-type: application/force-download; charset=utf-8');
4136
  header('Content-Disposition: attachment; filename="mec-events-' . date('YmdTHi') . '.xml"');
4137
 
4138
+ echo MEC_kses::full($xml_feed);
4139
 
4140
  exit;
4141
  break;
4142
 
4143
  case 'json-export':
4144
 
4145
+ $post_ids = (isset($_GET['post']) and is_array($_GET['post']) and count($_GET['post'])) ? array_map('sanitize_text_field', wp_unslash($_GET['post'])) : array();
4146
 
4147
  $events = array();
4148
  foreach($post_ids as $post_id) $events[] = $this->main->export_single((int) $post_id);
4157
 
4158
  case 'duplicate':
4159
 
4160
+ $post_ids = (isset($_GET['post']) and is_array($_GET['post']) and count($_GET['post'])) ? array_map('sanitize_text_field', wp_unslash($_GET['post'])) : array();
4161
  foreach($post_ids as $post_id) $this->main->duplicate((int) $post_id);
4162
 
4163
  break;
4176
  $render = $this->getRender();
4177
 
4178
  if($export_all) $post_ids = get_posts('post_type=mec-events&fields=ids&posts_per_page=-1');
4179
+ else $post_ids = (isset($_GET['post']) and is_array($_GET['post']) and count($_GET['post'])) ? array_map('sanitize_text_field', wp_unslash($_GET['post'])) : array();
4180
 
4181
  $columns = array(
4182
+ esc_html__('ID', 'modern-events-calendar-lite'),
4183
+ esc_html__('Title', 'modern-events-calendar-lite'),
4184
+ esc_html__('Description', 'modern-events-calendar-lite'),
4185
+ esc_html__('Start Date', 'modern-events-calendar-lite'),
4186
+ esc_html__('Start Time', 'modern-events-calendar-lite'),
4187
+ esc_html__('End Date', 'modern-events-calendar-lite'),
4188
+ esc_html__('End Time', 'modern-events-calendar-lite'),
4189
+ esc_html__('Link', 'modern-events-calendar-lite'),
4190
+ $this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite')),
4191
+ esc_html__('Address', 'modern-events-calendar-lite'),
4192
+ $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite')),
4193
+ sprintf(__('%s Tel', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))),
4194
+ sprintf(__('%s Email', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))),
4195
+ $this->main->m('event_cost', esc_html__('Event Cost', 'modern-events-calendar-lite')),
4196
+ esc_html__('Featured Image', 'modern-events-calendar-lite'),
4197
+ esc_html__('Labels', 'modern-events-calendar-lite'),
4198
+ esc_html__('Categories', 'modern-events-calendar-lite'),
4199
+ esc_html__('Tags', 'modern-events-calendar-lite'),
4200
  );
4201
 
4202
  // Speakers
4203
+ if(isset($this->settings['speakers_status']) and $this->settings['speakers_status']) $columns[] = esc_html__('Speakers', 'modern-events-calendar-lite');
4204
 
4205
  // Event Fields
4206
  $fields = $this->main->get_event_fields();
4293
  if($post->post_type != $this->PT) return $actions;
4294
 
4295
  // Duplicate Button
4296
+ $actions['mec-duplicate'] = '<a href="'.$this->main->add_qs_vars(array('mec-action'=>'duplicate-event', 'id'=>$post->ID)).'">'.esc_html__('Duplicate', 'modern-events-calendar-lite').'</a>';
4297
 
4298
  // Booking Button
4299
+ if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']) $actions['mec-bookings'] = '<a href="'.$this->main->add_qs_vars(array('post_type'=>$this->main->get_book_post_type(), 'mec_event_id'=>$post->ID), trim($this->main->URL('admin'), '/ ').'/edit.php').'">'.esc_html__('Bookings', 'modern-events-calendar-lite').'</a>';
4300
 
4301
  return $actions;
4302
  }
4443
  <span><input type="checkbox" id="mec-send-email-check-all" onchange="mec_send_email_check_all(this);" /></span>
4444
  </div>
4445
  <div class="w-col-xs-3 name">
4446
+ <span>'.esc_html__('Name', 'modern-events-calendar-lite').'</span>
4447
  </div>
4448
  <div class="w-col-xs-3 email">
4449
+ <span>'.esc_html__('Email', 'modern-events-calendar-lite').'</span>
4450
  </div>
4451
  <div class="w-col-xs-3 ticket">
4452
+ <span>'.$this->main->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite')).'</span>
4453
  </div>
4454
  <div class="w-col-xs-2">
4455
+ <span>'.esc_html__('Variations', 'modern-events-calendar-lite').'</span>
4456
  </div>';
4457
 
4458
  $html = apply_filters('mec_attendees_list_header_html', $html, $id, $occurrence);
4467
  $html .= '<div class="w-col-xs-1"><input type="checkbox" onchange="mec_send_email_check(this);" /><span class="mec-util-hidden mec-send-email-attendee-info">'.$attendee['name'].':.:'.$attendee['email'].',</span></div>';
4468
  $html .= '<div class="w-col-xs-3 name">' . get_avatar($attendee['email']) .$attendee['name'].'</div>';
4469
  $html .= '<div class="w-col-xs-3 email">'.$attendee['email'] .'</div>';
4470
+ $html .= '<div class="w-col-xs-3 ticket">'.((isset($attendee['id']) and isset($tickets[$attendee['id']]['name'])) ? $tickets[$attendee['id']]['name'] : esc_html__('Unknown', 'modern-events-calendar-lite')).'</div>';
4471
 
4472
  $variations = '<div class="w-col-xs-2">';
4473
  if(isset($attendee['variations']) and is_array($attendee['variations']) and count($attendee['variations']))
4499
  }
4500
  else
4501
  {
4502
+ $html .= '<p>'.esc_html__("No Attendees Found!", 'modern-events-calendar-lite').'</p>';
4503
  $email_button = '';
4504
  }
4505
 
4509
 
4510
  public function mass_email()
4511
  {
4512
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
4513
 
4514
  // Current User is not Permitted
4515
  if(!current_user_can('mec_report')) $this->main->response(array('success'=>0, 'code'=>'NO_ACCESS'));
4517
  $mail_recipients_info = isset($_POST['mail_recipients_info']) ? trim(sanitize_text_field($_POST['mail_recipients_info']), ', ') : '';
4518
  $mail_subject = isset($_POST['mail_subject']) ? sanitize_text_field($_POST['mail_subject']) : '';
4519
  $mail_content = isset($_POST['mail_content']) ? $_POST['mail_content'] : '';
4520
+ $mail_copy = isset($_POST['mail_copy']) ? sanitize_text_field($_POST['mail_copy']) : 0;
4521
 
4522
  $render_recipients = array_unique(explode(',', $mail_recipients_info));
4523
  $headers = array('Content-Type: text/html; charset=UTF-8');
4735
  {
4736
  $html .= '<div class="w-clearfix">
4737
  <div class="w-col-xs-3 name">
4738
+ <span>'.esc_html__('Title', 'modern-events-calendar-lite').'</span>
4739
  </div>
4740
  <div class="w-col-xs-3 email">
4741
+ <span>'.esc_html__('Attendees', 'modern-events-calendar-lite').'</span>
4742
  </div>
4743
  <div class="w-col-xs-3 ticket">
4744
+ <span>'.esc_html__('Transaction ID', 'modern-events-calendar-lite').'</span>
4745
  </div>
4746
  <div class="w-col-xs-3">
4747
+ <span>'.esc_html__('Price', 'modern-events-calendar-lite').'</span>
4748
  </div>
4749
  </div>';
4750
 
4801
  }
4802
  else
4803
  {
4804
+ $html .= '<p>'.esc_html__("No Bookings Found!", 'modern-events-calendar-lite').'</p>';
4805
  }
4806
 
4807
  $html = apply_filters('mec_event_bookings_report', $html, $bookings, $id, $backend, $occurrence, $total_attendees);
app/features/feed.php CHANGED
@@ -165,7 +165,7 @@ class MEC_feature_feed extends MEC_base
165
  header('Content-Disposition: inline; filename="mec-events-'.date('YmdTHi').'.ics"');
166
 
167
  // Print the Calendar
168
- echo $ical_calendar;
169
  exit;
170
  }
171
  }
165
  header('Content-Disposition: inline; filename="mec-events-'.date('YmdTHi').'.ics"');
166
 
167
  // Print the Calendar
168
+ echo MEC_kses::full($ical_calendar);
169
  exit;
170
  }
171
  }
app/features/feed/rss2.php CHANGED
@@ -26,7 +26,7 @@ do_action('rss_tag_pre', 'rss2');
26
  <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
27
  <link><?php bloginfo_rss('url'); ?></link>
28
  <description><?php bloginfo_rss("description"); ?></description>
29
- <lastBuildDate><?php echo $this->main->mysql2date('D, d M Y H:i:s O', get_lastpostmodified('GMT'), wp_timezone()); ?></lastBuildDate>
30
  <language><?php bloginfo_rss('language'); ?></language>
31
  <sy:updatePeriod><?php echo apply_filters('rss_update_period', 'hourly'); ?></sy:updatePeriod>
32
  <sy:updateFrequency><?php echo apply_filters('rss_update_frequency', 1); ?></sy:updateFrequency>
@@ -43,22 +43,22 @@ do_action('rss_tag_pre', 'rss2');
43
  $location_id = $this->main->get_master_location_id($event);
44
  ?>
45
  <item>
46
- <title><?php echo $this->feed->title($event->ID); ?></title>
47
- <link><?php echo $this->main->get_event_date_permalink($event, $event->date['start']['date']); ?></link>
48
 
49
  <?php if(get_comments_number($event->ID) or comments_open($event->ID)): ?>
50
  <comments><?php $this->feed->comments_link_feed($event->ID); ?></comments>
51
  <?php endif; ?>
52
 
53
- <pubDate><?php echo $this->main->mysql2date('D, d M Y H:i:s O', $event->date['start']['date'].' '.$event->data->time['start'], $tz); ?></pubDate>
54
- <dc:creator><![CDATA[<?php $this->feed->author($event->data->post->post_author); ?>]]></dc:creator>
55
 
56
  <guid isPermaLink="false"><?php the_guid($event->ID); ?></guid>
57
 
58
- <description><![CDATA[<?php echo $this->feed->excerpt($event->ID); ?>]]></description>
59
 
60
  <?php if(!get_option('rss_use_excerpt')): $content = $this->feed->content($event->ID, 'rss2'); ?>
61
- <content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
62
  <?php endif; ?>
63
 
64
  <?php if(get_comments_number($event->ID) or comments_open($event->ID)): ?>
@@ -67,21 +67,21 @@ do_action('rss_tag_pre', 'rss2');
67
  <?php endif; ?>
68
 
69
  <?php if(has_post_thumbnail($event->ID) and (!isset($this->settings['include_image_in_feed']) or (isset($this->settings['include_image_in_feed']) and !$this->settings['include_image_in_feed']))): $thumbnail_ID = get_post_thumbnail_id($event->ID); $thumbnail = wp_get_attachment_image_src($thumbnail_ID, 'large'); ?>
70
- <media:content medium="image" url="<?php echo $thumbnail[0]; ?>" width="<?php echo $thumbnail[1]; ?>" height="<?php echo $thumbnail[2]; ?>" />
71
  <?php endif; ?>
72
 
73
- <mec:startDate><?php echo $date; ?></mec:startDate>
74
  <?php if(isset($event->data) and isset($event->data->time) and isset($event->data->time['start'])): ?>
75
- <mec:startHour><?php echo $event->data->time['start']; ?></mec:startHour>
76
  <?php endif; ?>
77
 
78
- <mec:endDate><?php echo $this->main->get_end_date_by_occurrence($event->ID, $date); ?></mec:endDate>
79
  <?php if(isset($event->data) and isset($event->data->time) and isset($event->data->time['end'])): ?>
80
- <mec:endHour><?php echo $event->data->time['end']; ?></mec:endHour>
81
  <?php endif; ?>
82
 
83
  <?php if($location_id and $location = $this->main->get_location_data($location_id) and count($location)): ?>
84
- <mec:location><?php echo $location['address']; ?></mec:location>
85
  <?php endif; ?>
86
 
87
  <?php if($cost): ?>
26
  <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
27
  <link><?php bloginfo_rss('url'); ?></link>
28
  <description><?php bloginfo_rss("description"); ?></description>
29
+ <lastBuildDate><?php echo esc_html($this->main->mysql2date('D, d M Y H:i:s O', get_lastpostmodified('GMT'), wp_timezone())); ?></lastBuildDate>
30
  <language><?php bloginfo_rss('language'); ?></language>
31
  <sy:updatePeriod><?php echo apply_filters('rss_update_period', 'hourly'); ?></sy:updatePeriod>
32
  <sy:updateFrequency><?php echo apply_filters('rss_update_frequency', 1); ?></sy:updateFrequency>
43
  $location_id = $this->main->get_master_location_id($event);
44
  ?>
45
  <item>
46
+ <title><?php echo esc_html($this->feed->title($event->ID)); ?></title>
47
+ <link><?php echo esc_url($this->main->get_event_date_permalink($event, $event->date['start']['date'])); ?></link>
48
 
49
  <?php if(get_comments_number($event->ID) or comments_open($event->ID)): ?>
50
  <comments><?php $this->feed->comments_link_feed($event->ID); ?></comments>
51
  <?php endif; ?>
52
 
53
+ <pubDate><?php echo esc_html($this->main->mysql2date('D, d M Y H:i:s O', $event->date['start']['date'].' '.$event->data->time['start'], $tz)); ?></pubDate>
54
+ <dc:creator><![CDATA[<?php echo esc_html($this->feed->author($event->data->post->post_author)); ?>]]></dc:creator>
55
 
56
  <guid isPermaLink="false"><?php the_guid($event->ID); ?></guid>
57
 
58
+ <description><![CDATA[<?php echo MEC_kses::element($this->feed->excerpt($event->ID)); ?>]]></description>
59
 
60
  <?php if(!get_option('rss_use_excerpt')): $content = $this->feed->content($event->ID, 'rss2'); ?>
61
+ <content:encoded><![CDATA[<?php echo MEC_kses::element($content); ?>]]></content:encoded>
62
  <?php endif; ?>
63
 
64
  <?php if(get_comments_number($event->ID) or comments_open($event->ID)): ?>
67
  <?php endif; ?>
68
 
69
  <?php if(has_post_thumbnail($event->ID) and (!isset($this->settings['include_image_in_feed']) or (isset($this->settings['include_image_in_feed']) and !$this->settings['include_image_in_feed']))): $thumbnail_ID = get_post_thumbnail_id($event->ID); $thumbnail = wp_get_attachment_image_src($thumbnail_ID, 'large'); ?>
70
+ <media:content medium="image" url="<?php echo esc_url($thumbnail[0]); ?>" width="<?php echo esc_attr($thumbnail[1]); ?>" height="<?php echo esc_attr($thumbnail[2]); ?>" />
71
  <?php endif; ?>
72
 
73
+ <mec:startDate><?php echo esc_html($date); ?></mec:startDate>
74
  <?php if(isset($event->data) and isset($event->data->time) and isset($event->data->time['start'])): ?>
75
+ <mec:startHour><?php echo esc_html($event->data->time['start']); ?></mec:startHour>
76
  <?php endif; ?>
77
 
78
+ <mec:endDate><?php echo esc_html($this->main->get_end_date_by_occurrence($event->ID, $date)); ?></mec:endDate>
79
  <?php if(isset($event->data) and isset($event->data->time) and isset($event->data->time['end'])): ?>
80
+ <mec:endHour><?php echo esc_html($event->data->time['end']); ?></mec:endHour>
81
  <?php endif; ?>
82
 
83
  <?php if($location_id and $location = $this->main->get_location_data($location_id) and count($location)): ?>
84
+ <mec:location><?php echo esc_html($location['address']); ?></mec:location>
85
  <?php endif; ?>
86
 
87
  <?php if($cost): ?>
app/features/fes.php CHANGED
@@ -99,7 +99,7 @@ class MEC_feature_fes extends MEC_base
99
  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')))
100
  {
101
  // Show message
102
- $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>');
103
 
104
  ob_start();
105
  include MEC::import('app.features.fes.message', true, true);
@@ -119,7 +119,7 @@ class MEC_feature_fes extends MEC_base
119
  if($post_id > 0 and get_post_type($post_id) != $this->PT)
120
  {
121
  // Show message
122
- $message = __("Sorry! Selected post is not an event.", 'modern-events-calendar-lite');
123
 
124
  ob_start();
125
  include MEC::import('app.features.fes.message', true, true);
@@ -130,7 +130,7 @@ class MEC_feature_fes extends MEC_base
130
  if($post_id != -1 and !current_user_can('edit_post', $post_id))
131
  {
132
  // Show message
133
- $message = __("Sorry! You don't have access to modify this event.", 'modern-events-calendar-lite');
134
 
135
  ob_start();
136
  include MEC::import('app.features.fes.message', true, true);
@@ -172,7 +172,7 @@ class MEC_feature_fes extends MEC_base
172
  if($post_id > 0 and !current_user_can('edit_post', $post_id))
173
  {
174
  // Show message
175
- $message = __("Sorry! You don't have access to modify this event.", 'modern-events-calendar-lite');
176
 
177
  ob_start();
178
  include MEC::import('app.features.fes.message', true, true);
@@ -187,7 +187,7 @@ class MEC_feature_fes extends MEC_base
187
  if(!is_user_logged_in())
188
  {
189
  // Show message
190
- $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>');
191
 
192
  ob_start();
193
  include MEC::import('app.features.fes.message', true, true);
@@ -228,9 +228,9 @@ class MEC_feature_fes extends MEC_base
228
 
229
  public function mec_fes_csv_export()
230
  {
231
- if((!isset($_REQUEST['mec_event_id'])) or (!isset($_REQUEST['fes_nonce'])) or (!wp_verify_nonce($_REQUEST['fes_nonce'], 'mec_fes_nonce'))) die(json_encode(array('ex' => "error")));
232
 
233
- $event_id = intval($_REQUEST['mec_event_id']);
234
  $timestamp = isset($_REQUEST['timestamp']) ? sanitize_text_field($_REQUEST['timestamp']) : 0;
235
  $booking_ids = '';
236
  $type = isset($_REQUEST['type']) ? sanitize_text_field($_REQUEST['type']) : 'csv';
@@ -277,7 +277,7 @@ class MEC_feature_fes extends MEC_base
277
  $main_event_id = NULL;
278
  if(count($event_ids) == 1) $main_event_id = $event_ids[0];
279
 
280
- $columns = array(__('ID', 'modern-events-calendar-lite'), __('Event', 'modern-events-calendar-lite'), __('Date', 'modern-events-calendar-lite'), __('Order Time', 'modern-events-calendar-lite'), $this->main->m('ticket', __('Ticket', 'modern-events-calendar-lite')), __('Transaction ID', 'modern-events-calendar-lite'), __('Total Price', 'modern-events-calendar-lite'), __('Gateway', 'modern-events-calendar-lite'), __('Name', 'modern-events-calendar-lite'), __('Email', 'modern-events-calendar-lite'), __('Ticket Variation', 'modern-events-calendar-lite'), __('Confirmation', 'modern-events-calendar-lite'), __('Verification', 'modern-events-calendar-lite'));
281
  $columns = apply_filters('mec_csv_export_columns', $columns);
282
 
283
  $reg_fields = $this->main->get_reg_fields($main_event_id);
@@ -287,7 +287,7 @@ class MEC_feature_fes extends MEC_base
287
  if(!is_numeric($reg_field_key)) continue;
288
 
289
  $type = isset($reg_field['type']) ? $reg_field['type'] : '';
290
- $label = isset($reg_field['label']) ? __($reg_field['label'], 'modern-events-calendar-lite') : '';
291
 
292
  if(trim($label) == '' or $type == 'name' or $type == 'mec_email') continue;
293
  if($type == 'agreement') $label = sprintf($label, get_the_title($reg_field['page']));
@@ -353,7 +353,7 @@ class MEC_feature_fes extends MEC_base
353
  html_entity_decode(get_the_title($event_id), ENT_QUOTES | ENT_HTML5),
354
  get_the_date('', $post_id),
355
  $order_time,
356
- (isset($tickets[$ticket_id]['name']) ? $tickets[$ticket_id]['name'] : __('Unknown', 'modern-events-calendar-lite')),
357
  $transaction_id,
358
  $this->main->render_price(($price ? $price : 0), $post_id),
359
  html_entity_decode($gateway_label, ENT_QUOTES | ENT_HTML5),
@@ -373,7 +373,7 @@ class MEC_feature_fes extends MEC_base
373
  if(!is_numeric($field_id)) continue;
374
 
375
  $type = isset($reg_field['type']) ? $reg_field['type'] : '';
376
- $label = isset($reg_field['label']) ? __($reg_field['label'], 'modern-events-calendar-lite') : '';
377
  if(trim($label) == '' or $type == 'name' or $type == 'mec_email') continue;
378
 
379
  $booking[] = isset($reg_form[$field_id]) ? ((is_string($reg_form[$field_id]) and trim($reg_form[$field_id])) ? $reg_form[$field_id] : (is_array($reg_form[$field_id]) ? implode(' | ', $reg_form[$field_id]) : '---')) : '';
@@ -431,7 +431,7 @@ class MEC_feature_fes extends MEC_base
431
  if($movefile and !isset($movefile['error']))
432
  {
433
  $success = 1;
434
- $message = __('Image uploaded!', 'modern-events-calendar-lite');
435
 
436
  $data['url'] = $movefile['url'];
437
  }
@@ -1385,11 +1385,11 @@ class MEC_feature_fes extends MEC_base
1385
  do_action('save_fes_meta_action', $post_id, $mec);
1386
 
1387
  // For Event Notification Badge.
1388
- if(isset($_REQUEST['mec']['post_id']) and trim($_REQUEST['mec']['post_id']) == '-1') update_post_meta($post_id, 'mec_event_date_submit', date('YmdHis', current_time('timestamp', 0)));
1389
 
1390
  $message = '';
1391
- if($status == 'pending') $message = __('Event submitted. It will publish as soon as possible.', 'modern-events-calendar-lite');
1392
- elseif($status == 'publish') $message = __('The event published.', 'modern-events-calendar-lite');
1393
 
1394
  // Trigger Event
1395
  if($method == 'updated') do_action('mec_fes_updated', $post_id , 'update');
99
  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')))
100
  {
101
  // Show message
102
+ $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()).'">'.esc_html__('Login', 'modern-events-calendar-lite').'</a>', '<a href="'.wp_registration_url().'">'.esc_html__('Register', 'modern-events-calendar-lite').'</a>');
103
 
104
  ob_start();
105
  include MEC::import('app.features.fes.message', true, true);
119
  if($post_id > 0 and get_post_type($post_id) != $this->PT)
120
  {
121
  // Show message
122
+ $message = esc_html__("Sorry! Selected post is not an event.", 'modern-events-calendar-lite');
123
 
124
  ob_start();
125
  include MEC::import('app.features.fes.message', true, true);
130
  if($post_id != -1 and !current_user_can('edit_post', $post_id))
131
  {
132
  // Show message
133
+ $message = esc_html__("Sorry! You don't have access to modify this event.", 'modern-events-calendar-lite');
134
 
135
  ob_start();
136
  include MEC::import('app.features.fes.message', true, true);
172
  if($post_id > 0 and !current_user_can('edit_post', $post_id))
173
  {
174
  // Show message
175
+ $message = esc_html__("Sorry! You don't have access to modify this event.", 'modern-events-calendar-lite');
176
 
177
  ob_start();
178
  include MEC::import('app.features.fes.message', true, true);
187
  if(!is_user_logged_in())
188
  {
189
  // Show message
190
+ $message = sprintf(__('Please %s/%s in order to manage events.', 'modern-events-calendar-lite'), '<a href="'.wp_login_url($this->main->get_full_url()).'">'.esc_html__('Login', 'modern-events-calendar-lite').'</a>', '<a href="'.wp_registration_url().'">'.esc_html__('Register', 'modern-events-calendar-lite').'</a>');
191
 
192
  ob_start();
193
  include MEC::import('app.features.fes.message', true, true);
228
 
229
  public function mec_fes_csv_export()
230
  {
231
+ if((!isset($_REQUEST['mec_event_id'])) or (!isset($_REQUEST['fes_nonce'])) or (!wp_verify_nonce(sanitize_text_field($_REQUEST['fes_nonce']), 'mec_fes_nonce'))) die(json_encode(array('ex' => "error")));
232
 
233
+ $event_id = intval(sanitize_text_field($_REQUEST['mec_event_id']));
234
  $timestamp = isset($_REQUEST['timestamp']) ? sanitize_text_field($_REQUEST['timestamp']) : 0;
235
  $booking_ids = '';
236
  $type = isset($_REQUEST['type']) ? sanitize_text_field($_REQUEST['type']) : 'csv';
277
  $main_event_id = NULL;
278
  if(count($event_ids) == 1) $main_event_id = $event_ids[0];
279
 
280
+ $columns = array(__('ID', 'modern-events-calendar-lite'), esc_html__('Event', 'modern-events-calendar-lite'), esc_html__('Date', 'modern-events-calendar-lite'), esc_html__('Order Time', 'modern-events-calendar-lite'), $this->main->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite')), esc_html__('Transaction ID', 'modern-events-calendar-lite'), esc_html__('Total Price', 'modern-events-calendar-lite'), esc_html__('Gateway', 'modern-events-calendar-lite'), esc_html__('Name', 'modern-events-calendar-lite'), esc_html__('Email', 'modern-events-calendar-lite'), esc_html__('Ticket Variation', 'modern-events-calendar-lite'), esc_html__('Confirmation', 'modern-events-calendar-lite'), esc_html__('Verification', 'modern-events-calendar-lite'));
281
  $columns = apply_filters('mec_csv_export_columns', $columns);
282
 
283
  $reg_fields = $this->main->get_reg_fields($main_event_id);
287
  if(!is_numeric($reg_field_key)) continue;
288
 
289
  $type = isset($reg_field['type']) ? $reg_field['type'] : '';
290
+ $label = isset($reg_field['label']) ? esc_html__($reg_field['label'], 'modern-events-calendar-lite') : '';
291
 
292
  if(trim($label) == '' or $type == 'name' or $type == 'mec_email') continue;
293
  if($type == 'agreement') $label = sprintf($label, get_the_title($reg_field['page']));
353
  html_entity_decode(get_the_title($event_id), ENT_QUOTES | ENT_HTML5),
354
  get_the_date('', $post_id),
355
  $order_time,
356
+ (isset($tickets[$ticket_id]['name']) ? $tickets[$ticket_id]['name'] : esc_html__('Unknown', 'modern-events-calendar-lite')),
357
  $transaction_id,
358
  $this->main->render_price(($price ? $price : 0), $post_id),
359
  html_entity_decode($gateway_label, ENT_QUOTES | ENT_HTML5),
373
  if(!is_numeric($field_id)) continue;
374
 
375
  $type = isset($reg_field['type']) ? $reg_field['type'] : '';
376
+ $label = isset($reg_field['label']) ? esc_html__($reg_field['label'], 'modern-events-calendar-lite') : '';
377
  if(trim($label) == '' or $type == 'name' or $type == 'mec_email') continue;
378
 
379
  $booking[] = isset($reg_form[$field_id]) ? ((is_string($reg_form[$field_id]) and trim($reg_form[$field_id])) ? $reg_form[$field_id] : (is_array($reg_form[$field_id]) ? implode(' | ', $reg_form[$field_id]) : '---')) : '';
431
  if($movefile and !isset($movefile['error']))
432
  {
433
  $success = 1;
434
+ $message = esc_html__('Image uploaded!', 'modern-events-calendar-lite');
435
 
436
  $data['url'] = $movefile['url'];
437
  }
1385
  do_action('save_fes_meta_action', $post_id, $mec);
1386
 
1387
  // For Event Notification Badge.
1388
+ if(isset($_REQUEST['mec']['post_id']) and trim(sanitize_text_field($_REQUEST['mec']['post_id'])) == '-1') update_post_meta($post_id, 'mec_event_date_submit', date('YmdHis', current_time('timestamp', 0)));
1389
 
1390
  $message = '';
1391
+ if($status == 'pending') $message = esc_html__('Event submitted. It will publish as soon as possible.', 'modern-events-calendar-lite');
1392
+ elseif($status == 'publish') $message = esc_html__('The event published.', 'modern-events-calendar-lite');
1393
 
1394
  // Trigger Event
1395
  if($method == 'updated') do_action('mec_fes_updated', $post_id , 'update');
app/features/fes/form.php CHANGED
@@ -177,10 +177,10 @@ $this->factory->params('footer', $javascript);
177
  <?php if(is_user_logged_in()): ?>
178
  <div class="mec-fes-form-top-actions">
179
  <?php do_action('mec_fes_form_top_actions'); ?>
180
- <a class="mec-fes-form-back-to" href="<?php echo esc_url($this->link_list_events()); ?>"><?php echo __('Go back to events list', 'modern-events-calendar-lite'); ?></a>
181
  <?php $status = $this->main->get_event_label_status(get_post_status($post_id)); ?>
182
  <?php if(trim($status['label']) != "Empty"): ?>
183
- <span class="post-status <?php echo sanitize_html_class($status['status_class']); ?>"><?php echo $status['label']; ?></span>
184
  <?php endif; ?>
185
  </div>
186
  <?php endif; ?>
@@ -259,7 +259,7 @@ $this->factory->params('footer', $javascript);
259
 
260
  <div class="mec-fes-form-cntt">
261
  <div class="mec-form-row mec-fes-title">
262
- <label for="mec_fes_title"><?php _e('Title', 'modern-events-calendar-lite'); ?> <span class="mec-required">*</span></label>
263
  <input type="text" name="mec[title]" id="mec_fes_title" value="<?php echo (isset($post->post_title) ? $post->post_title : ''); ?>" required="required" />
264
  </div>
265
  <div class="mec-form-row mec-fes-editor">
@@ -267,7 +267,7 @@ $this->factory->params('footer', $javascript);
267
  </div>
268
  <?php if(isset($this->settings['fes_section_excerpt']) && $this->settings['fes_section_excerpt']): ?>
269
  <div class="mec-meta-box-fields mec-fes-excerpt" id="mec-excerpt">
270
- <h4><?php _e('Excerpt', 'modern-events-calendar-lite'); ?> <?php echo ((isset($this->settings['fes_required_excerpt']) and $this->settings['fes_required_excerpt']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
271
  <div class="mec-form-row">
272
  <div class="mec-col-12">
273
  <textarea name="mec[excerpt]" id="mec_fes_excerpt" class="widefat" rows="10" title="<?php esc_attr_e('Optional Event Excerpt', 'modern-events-calendar-lite'); ?>" placeholder="<?php esc_attr_e('Optional Event Excerpt', 'modern-events-calendar-lite'); ?>" <?php echo ((isset($this->settings['fes_required_excerpt']) and $this->settings['fes_required_excerpt']) ? 'required' : ''); ?>><?php echo (isset($post->post_excerpt) ? $post->post_excerpt : ''); ?></textarea>
@@ -281,15 +281,15 @@ $this->factory->params('footer', $javascript);
281
  <?php endif; ?>
282
 
283
  <div class="mec-meta-box-fields mec-fes-datetime" id="mec-date-time">
284
- <h4><?php _e('Date and Time', 'modern-events-calendar-lite'); ?></h4>
285
  <div id="mec_meta_box_date_form">
286
  <div class="mec-title">
287
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
288
- <label for="mec_start_date"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
289
  </div>
290
  <div class="mec-form-row">
291
  <div class="mec-col-4">
292
- <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($this->main->standardize_format($start_date, $datepicker_format)); ?>" placeholder="<?php _e('Start Date', 'modern-events-calendar-lite'); ?>" autocomplete="off" />
293
  </div>
294
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
295
  <?php $this->main->timepicker(array(
@@ -305,11 +305,11 @@ $this->factory->params('footer', $javascript);
305
  </div>
306
  <div class="mec-title">
307
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
308
- <label for="mec_end_date"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
309
  </div>
310
  <div class="mec-form-row">
311
  <div class="mec-col-4">
312
- <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($this->main->standardize_format($end_date, $datepicker_format)); ?>" placeholder="<?php _e('End Date', 'modern-events-calendar-lite'); ?>" autocomplete="off" />
313
  </div>
314
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
315
  <?php $this->main->timepicker(array(
@@ -323,18 +323,18 @@ $this->factory->params('footer', $javascript);
323
  </div>
324
  </div>
325
  <div class="mec-form-row">
326
- <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>
327
  </div>
328
  <div class="mec-form-row">
329
- <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>
330
  </div>
331
  <div class="mec-form-row">
332
- <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>
333
  </div>
334
  <div class="mec-form-row">
335
  <div class="mec-col-4">
336
- <input type="text" class="" name="mec[date][comment]" id="mec_comment" placeholder="<?php _e('Notes on the time', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($comment); ?>" />
337
- <p class="description"><?php _e('It shows next to event time on the Single Event Page. You can enter notes such as timezone in this field.', 'modern-events-calendar-lite'); ?></p>
338
  </div>
339
  </div>
340
 
@@ -347,7 +347,7 @@ $this->factory->params('footer', $javascript);
347
  <div class="mec-col-4">
348
  <select name="mec[timezone]" id="mec_event_timezone">
349
  <option value="global"><?php esc_html_e('Inherit from global options'); ?></option>
350
- <?php echo $this->main->timezones($event_timezone); ?>
351
  </select>
352
  </div>
353
  </div>
@@ -355,25 +355,25 @@ $this->factory->params('footer', $javascript);
355
  <?php endif; ?>
356
 
357
  <?php if(isset($this->settings['countdown_status']) and $this->settings['countdown_status'] and (!isset($this->settings['fes_section_countdown_method']) or (isset($this->settings['fes_section_countdown_method']) and $this->settings['fes_section_countdown_method']))): ?>
358
- <h4><?php _e('Countdown Method', 'modern-events-calendar-lite'); ?></h4>
359
  <div class="mec-form-row">
360
  <div class="mec-col-4">
361
  <select name="mec[countdown_method]" id="mec_countdown_method" title="<?php esc_attr_e('Countdown Method', 'modern-events-calendar-lite'); ?>">
362
- <option value="global" <?php if('global' == $countdown_method) echo 'selected="selected"'; ?>><?php _e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
363
- <option value="start" <?php if('start' == $countdown_method) echo 'selected="selected"'; ?>><?php _e('Count to Event Start', 'modern-events-calendar-lite'); ?></option>
364
- <option value="end" <?php if('end' == $countdown_method) echo 'selected="selected"'; ?>><?php _e('Count to Event End', 'modern-events-calendar-lite'); ?></option>
365
  </select>
366
  </div>
367
  </div>
368
  <?php endif; ?>
369
 
370
  <?php if(!isset($this->settings['fes_section_shortcode_visibility']) or (isset($this->settings['fes_section_shortcode_visibility']) and $this->settings['fes_section_shortcode_visibility'])): ?>
371
- <h4><?php _e('Visibility', 'modern-events-calendar-lite'); ?></h4>
372
  <div class="mec-form-row">
373
  <div class="mec-col-4">
374
  <select name="mec[public]" id="mec_public" title="<?php esc_attr_e('Event Visibility', 'modern-events-calendar-lite'); ?>">
375
- <option value="1" <?php if('1' == $public) echo 'selected="selected"'; ?>><?php _e('Show on Shortcodes', 'modern-events-calendar-lite'); ?></option>
376
- <option value="0" <?php if('0' == $public) echo 'selected="selected"'; ?>><?php _e('Hide on Shortcodes', 'modern-events-calendar-lite'); ?></option>
377
  </select>
378
  </div>
379
  </div>
@@ -381,45 +381,45 @@ $this->factory->params('footer', $javascript);
381
 
382
  </div>
383
  <div id="mec_meta_box_repeat_form">
384
- <h4><?php _e('Repeating', 'modern-events-calendar-lite'); ?></h4>
385
  <div class="mec-form-row">
386
- <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>
387
  </div>
388
  <div class="mec-form-repeating-event-row">
389
  <div class="mec-form-row">
390
- <label class="mec-col-3" for="mec_repeat_type"><?php _e('Repeats', 'modern-events-calendar-lite'); ?></label>
391
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
392
- <option <?php if($repeat_type == 'daily') echo 'selected="selected"'; ?> value="daily"><?php _e('Daily', 'modern-events-calendar-lite'); ?></option>
393
- <option <?php if($repeat_type == 'weekday') echo 'selected="selected"'; ?> value="weekday"><?php _e('Every Weekday', 'modern-events-calendar-lite'); ?></option>
394
- <option <?php if($repeat_type == 'weekend') echo 'selected="selected"'; ?> value="weekend"><?php _e('Every Weekend', 'modern-events-calendar-lite'); ?></option>
395
- <option <?php if($repeat_type == 'certain_weekdays') echo 'selected="selected"'; ?> value="certain_weekdays"><?php _e('Certain Weekdays', 'modern-events-calendar-lite'); ?></option>
396
- <option <?php if($repeat_type == 'weekly') echo 'selected="selected"'; ?> value="weekly"><?php _e('Weekly', 'modern-events-calendar-lite'); ?></option>
397
- <option <?php if($repeat_type == 'monthly') echo 'selected="selected"'; ?> value="monthly"><?php _e('Monthly', 'modern-events-calendar-lite'); ?></option>
398
- <option <?php if($repeat_type == 'yearly') echo 'selected="selected"'; ?> value="yearly"><?php _e('Yearly', 'modern-events-calendar-lite'); ?></option>
399
- <option <?php if($repeat_type == 'custom_days') echo 'selected="selected"'; ?> value="custom_days"><?php _e('Custom Days', 'modern-events-calendar-lite'); ?></option>
400
- <option <?php if($repeat_type == 'advanced') echo 'selected="selected"'; ?> value="advanced"><?php _e('Advanced', 'modern-events-calendar-lite'); ?></option>
401
  </select>
402
  </div>
403
  <div class="mec-form-row" id="mec_repeat_interval_container">
404
- <label class="mec-col-3" for="mec_repeat_interval"><?php _e('Repeat Interval', 'modern-events-calendar-lite'); ?></label>
405
- <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); ?>" />
406
  </div>
407
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
408
- <label class="mec-col-3"><?php _e('Week Days', 'modern-events-calendar-lite'); ?></label>
409
- <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>
410
- <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>
411
- <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>
412
- <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>
413
- <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>
414
- <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>
415
- <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>
416
  </div>
417
  <div class="mec-form-row" id="mec_exceptions_in_days_container">
418
  <div class="mec-form-row">
419
  <div class="mec-col-12">
420
  <div class="mec-form-row">
421
  <div class="mec-col-4">
422
- <input type="text" id="mec_exceptions_in_days_start_date" value="" placeholder="<?php _e('Start', 'modern-events-calendar-lite'); ?>" title="<?php _e('Start', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format widefat" autocomplete="off"/>
423
  </div>
424
  <div class="mec-col-8">
425
  <?php $this->main->timepicker(array(
@@ -435,7 +435,7 @@ $this->factory->params('footer', $javascript);
435
  </div>
436
  <div class="mec-form-row">
437
  <div class="mec-col-4">
438
- <input type="text" id="mec_exceptions_in_days_end_date" value="" placeholder="<?php _e('End', 'modern-events-calendar-lite'); ?>" title="<?php _e('End', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format" autocomplete="off"/>
439
  </div>
440
  <div class="mec-col-8">
441
  <?php $this->main->timepicker(array(
@@ -450,14 +450,14 @@ $this->factory->params('footer', $javascript);
450
  </div>
451
  <div class="mec-form-row">
452
  <div class="mec-col-12">
453
- <button class="button" type="button" id="mec_add_in_days"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
454
  <span class="mec-tooltip">
455
  <div class="box top">
456
- <h5 class="title"><?php _e('Custom Days Repeating', 'modern-events-calendar-lite'); ?></h5>
457
  <div class="content">
458
  <p>
459
  <?php esc_attr_e('Add certain days to event occurrence dates. If you have a single day event, start and end dates should be the same, If you have a multiple day event, the start and end dates must be commensurate with the initial date.', 'modern-events-calendar-lite'); ?>
460
- <a href="https://webnus.net/dox/modern-events-calendar/date-and-time/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a>
461
  </p>
462
  </div>
463
  </div>
@@ -509,14 +509,14 @@ $this->factory->params('footer', $javascript);
509
  $in_day = $first_date . ':' . $second_date.(trim($in_day_start_time) ? ':'.$in_day_start_time : '').(trim($in_day_end_time) ? ':'.$in_day_end_time : '');
510
  $in_day_label = $first_date. (trim($in_day_start_time_label) ? ' '.$in_day_start_time_label : '') . ' - ' . $second_date. (trim($in_day_end_time_label) ? ' '.$in_day_end_time_label : '');
511
  ?>
512
- <div class="mec-form-row" id="mec_in_days_row<?php echo $i; ?>">
513
- <input type="hidden" name="mec[in_days][<?php echo $i; ?>]" value="<?php echo $in_day; ?>"/>
514
- <span class="mec-not-in-days-day"><?php echo $in_day_label; ?></span>
515
- <span class="mec-not-in-days-remove" onclick="mec_in_days_remove(<?php echo $i; ?>);">x</span>
516
  </div>
517
  <?php $i++; endforeach; ?>
518
  </div>
519
- <input type="hidden" id="mec_new_in_days_key" value="<?php echo $i+1; ?>" />
520
  <div class="mec-util-hidden" id="mec_new_in_days_raw">
521
  <div class="mec-form-row" id="mec_in_days_row:i:">
522
  <input type="hidden" name="mec[in_days][:i:]" value=":val:" />
@@ -529,211 +529,211 @@ $this->factory->params('footer', $javascript);
529
  <div class="mec-form-row">
530
  <ul>
531
  <li>
532
- <?php _e('First', 'modern-events-calendar-lite'); ?>
533
  </li>
534
  <ul>
535
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
536
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.1"); ?>">
537
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
538
- <span class="key"><?php echo $day_1th ?>.1-</span>
539
  </li>
540
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
541
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.1"); ?>">
542
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
543
- <span class="key"><?php echo $day_2th ?>.1-</span>
544
  </li>
545
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
546
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.1"); ?>">
547
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
548
- <span class="key"><?php echo $day_3th ?>.1-</span>
549
  </li>
550
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
551
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.1"); ?>">
552
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
553
- <span class="key"><?php echo $day_4th ?>.1-</span>
554
  </li>
555
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
556
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.1"); ?>">
557
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
558
- <span class="key"><?php echo $day_5th ?>.1-</span>
559
  </li>
560
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
561
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.1"); ?>">
562
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
563
- <span class="key"><?php echo $day_6th ?>.1-</span>
564
  </li>
565
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
566
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.1"); ?>">
567
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
568
- <span class="key"><?php echo $day_7th ?>.1-</span>
569
  </li>
570
  </ul>
571
  </ul>
572
  <ul>
573
  <li>
574
- <?php _e('Second', 'modern-events-calendar-lite'); ?>
575
  </li>
576
  <ul>
577
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
578
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.2"); ?>">
579
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
580
- <span class="key"><?php echo $day_1th ?>.2-</span>
581
  </li>
582
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
583
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.2"); ?>">
584
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
585
- <span class="key"><?php echo $day_2th ?>.2-</span>
586
  </li>
587
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
588
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.2"); ?>">
589
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
590
- <span class="key"><?php echo $day_3th ?>.2-</span>
591
  </li>
592
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
593
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.2"); ?>">
594
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
595
- <span class="key"><?php echo $day_4th ?>.2-</span>
596
  </li>
597
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
598
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.2"); ?>">
599
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
600
- <span class="key"><?php echo $day_5th ?>.2-</span>
601
  </li>
602
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
603
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.2"); ?>">
604
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
605
- <span class="key"><?php echo $day_6th ?>.2-</span>
606
  </li>
607
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
608
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.2"); ?>">
609
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
610
- <span class="key"><?php echo $day_7th ?>.2-</span>
611
  </li>
612
  </ul>
613
  </ul>
614
  <ul>
615
  <li>
616
- <?php _e('Third', 'modern-events-calendar-lite'); ?>
617
  </li>
618
  <ul>
619
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
620
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.3"); ?>">
621
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
622
- <span class="key"><?php echo $day_1th ?>.3-</span>
623
  </li>
624
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
625
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.3"); ?>">
626
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
627
- <span class="key"><?php echo $day_2th ?>.3-</span>
628
  </li>
629
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
630
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.3"); ?>">
631
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
632
- <span class="key"><?php echo $day_3th ?>.3-</span>
633
  </li>
634
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
635
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.3"); ?>">
636
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
637
- <span class="key"><?php echo $day_4th ?>.3-</span>
638
  </li>
639
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
640
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.3"); ?>">
641
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
642
- <span class="key"><?php echo $day_5th ?>.3-</span>
643
  </li>
644
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
645
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.3"); ?>">
646
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
647
- <span class="key"><?php echo $day_6th ?>.3-</span>
648
  </li>
649
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
650
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.3"); ?>">
651
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
652
- <span class="key"><?php echo $day_7th ?>.3-</span>
653
  </li>
654
  </ul>
655
  </ul>
656
  <ul>
657
  <li>
658
- <?php _e('Fourth', 'modern-events-calendar-lite'); ?>
659
  </li>
660
  <ul>
661
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
662
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.4"); ?>">
663
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
664
- <span class="key"><?php echo $day_1th ?>.4-</span>
665
  </li>
666
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
667
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.4"); ?>">
668
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
669
- <span class="key"><?php echo $day_2th ?>.4-</span>
670
  </li>
671
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
672
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.4"); ?>">
673
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
674
- <span class="key"><?php echo $day_3th ?>.4-</span>
675
  </li>
676
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
677
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.4"); ?>">
678
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
679
- <span class="key"><?php echo $day_4th ?>.4-</span>
680
  </li>
681
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
682
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.4"); ?>">
683
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
684
- <span class="key"><?php echo $day_5th ?>.4-</span>
685
  </li>
686
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
687
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.4"); ?>">
688
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
689
- <span class="key"><?php echo $day_6th ?>.4-</span>
690
  </li>
691
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
692
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.4"); ?>">
693
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
694
- <span class="key"><?php echo $day_7th ?>.4-</span>
695
  </li>
696
  </ul>
697
  </ul>
698
  <ul>
699
  <li>
700
- <?php _e('Last', 'modern-events-calendar-lite'); ?>
701
  </li>
702
  <ul>
703
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
704
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.l"); ?>">
705
- <?php _e($day_1th, 'modern-events-calendar-lite'); ?>
706
- <span class="key"><?php echo $day_1th ?>.l-</span>
707
  </li>
708
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
709
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.l"); ?>">
710
- <?php _e($day_2th, 'modern-events-calendar-lite'); ?>
711
- <span class="key"><?php echo $day_2th ?>.l-</span>
712
  </li>
713
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
714
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.l"); ?>">
715
- <?php _e($day_3th, 'modern-events-calendar-lite'); ?>
716
- <span class="key"><?php echo $day_3th ?>.l-</span>
717
  </li>
718
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
719
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.l"); ?>">
720
- <?php _e($day_4th, 'modern-events-calendar-lite'); ?>
721
- <span class="key"><?php echo $day_4th ?>.l-</span>
722
  </li>
723
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
724
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.l"); ?>">
725
- <?php _e($day_5th, 'modern-events-calendar-lite'); ?>
726
- <span class="key"><?php echo $day_5th ?>.l-</span>
727
  </li>
728
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
729
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.l"); ?>">
730
- <?php _e($day_6th, 'modern-events-calendar-lite'); ?>
731
- <span class="key"><?php echo $day_6th ?>.l-</span>
732
  </li>
733
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
734
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.l"); ?>">
735
- <?php _e($day_7th, 'modern-events-calendar-lite'); ?>
736
- <span class="key"><?php echo $day_7th ?>.l-</span>
737
  </li>
738
  </ul>
739
  </ul>
@@ -743,29 +743,29 @@ $this->factory->params('footer', $javascript);
743
  </div>
744
  <div id="mec_end_wrapper">
745
  <div class="mec-form-row">
746
- <label for="mec_repeat_ends_never"><h5 class="mec-title"><?php _e('Ends Repeat', 'modern-events-calendar-lite'); ?></h5></label>
747
  </div>
748
  <div class="mec-form-row">
749
  <input <?php if($mec_repeat_end == 'never') echo 'checked="checked"'; ?> type="radio" value="never" name="mec[date][repeat][end]" id="mec_repeat_ends_never" />
750
- <label for="mec_repeat_ends_never"><?php _e('Never', 'modern-events-calendar-lite'); ?></label>
751
  </div>
752
  <div class="mec-form-row">
753
  <div class="mec-col-3">
754
  <input <?php if($mec_repeat_end == 'date') echo 'checked="checked"'; ?> type="radio" value="date" name="mec[date][repeat][end]" id="mec_repeat_ends_date" />
755
- <label for="mec_repeat_ends_date"><?php _e('On', 'modern-events-calendar-lite'); ?></label>
756
  </div>
757
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]" id="mec_date_repeat_end_at_date" autocomplete="off" value="<?php echo esc_attr( $this->main->standardize_format( $repeat_end_at_date, $datepicker_format ) ); ?>" />
758
  </div>
759
  <div class="mec-form-row">
760
  <div class="mec-col-3">
761
  <input <?php if($mec_repeat_end == 'occurrences') echo 'checked="checked"'; ?> type="radio" value="occurrences" name="mec[date][repeat][end]" id="mec_repeat_ends_occurrences" />
762
- <label for="mec_repeat_ends_occurrences"><?php _e('After', 'modern-events-calendar-lite'); ?></label>
763
  </div>
764
- <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]" id="mec_date_repeat_end_at_occurrences" autocomplete="off" placeholder="<?php _e('Occurrences times', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr(($repeat_end_at_occurrences+1)); ?>" />
765
  <span class="mec-tooltip">
766
  <div class="box">
767
- <h5 class="title"><?php _e('Occurrences times', 'modern-events-calendar-lite'); ?></h5>
768
- <div class="content"><p><?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'); ?><a href="https://webnus.net/dox/modern-events-calendar/event-detailssingle-event-page/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
769
  </div>
770
  <i title="" class="dashicons-before dashicons-editor-help"></i>
771
  </span>
@@ -778,7 +778,7 @@ $this->factory->params('footer', $javascript);
778
  }
779
  ?>
780
  type="checkbox" name="mec[date][one_occurrence]" id="mec-one-occurrence" value="1"/><label
781
- for="mec-one-occurrence"><?php _e('Show only one occurrence of this event', 'modern-events-calendar-lite'); ?></label>
782
  </div>
783
  </div>
784
  </div>
@@ -789,9 +789,9 @@ $this->factory->params('footer', $javascript);
789
 
790
  <?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); ?>
791
  <div class="mec-meta-box-fields mec-fes-note" id="mec-event-note">
792
- <h4><?php _e('Note to reviewer', 'modern-events-calendar-lite'); ?></h4>
793
  <div id="mec_meta_box_event_note">
794
- <textarea name="mec[note]"><?php echo $note; ?></textarea>
795
  </div>
796
  </div>
797
  <?php endif; ?>
@@ -807,14 +807,14 @@ $this->factory->params('footer', $javascript);
807
  $guest_name = get_post_meta($post_id, 'fes_guest_name', true);
808
  ?>
809
  <div class="mec-meta-box-fields mec-fes-user-data" id="mec-guest-email-link">
810
- <h4><?php _e('User Data', 'modern-events-calendar-lite'); ?></h4>
811
  <div class="mec-form-row">
812
- <label class="mec-col-2" for="mec_guest_email"><?php _e('Email', 'modern-events-calendar-lite'); ?><span>*</span></label>
813
- <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'); ?>" />
814
  </div>
815
  <div class="mec-form-row">
816
- <label class="mec-col-2" for="mec_guest_name"><?php _e('Name', 'modern-events-calendar-lite'); ?><span>*</span></label>
817
- <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'); ?>" />
818
  </div>
819
  </div>
820
  <?php endif; ?>
@@ -828,21 +828,21 @@ $this->factory->params('footer', $javascript);
828
  $more_info_target = get_post_meta($post_id, 'mec_more_info_target', true);
829
  ?>
830
  <div class="mec-meta-box-fields mec-fes-event-links" id="mec-event-links">
831
- <h4><?php _e('Event Links', 'modern-events-calendar-lite'); ?></h4>
832
  <div class="mec-form-row">
833
- <label class="mec-col-2" for="mec_read_more_link"><?php echo $this->main->m('read_more_link', __('Event Link', 'modern-events-calendar-lite')); ?> <?php echo ((isset($this->settings['fes_required_event_link']) and $this->settings['fes_required_event_link']) ? '<span class="mec-required">*</span>' : ''); ?></label>
834
- <input class="mec-col-9" 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'); ?>" <?php echo ((isset($this->settings['fes_required_event_link']) and $this->settings['fes_required_event_link']) ? 'required' : ''); ?> />
835
- <p class="description"><?php _e('If you fill it, it will replace the default event page link. Insert full link including http(s)://', 'modern-events-calendar-lite'); ?></p>
836
  </div>
837
  <div class="mec-form-row">
838
- <label class="mec-col-2" for="mec_more_info_link"><?php echo $this->main->m('more_info_link', __('More Info', 'modern-events-calendar-lite')); ?> <?php echo ((isset($this->settings['fes_required_more_info_link']) and $this->settings['fes_required_more_info_link']) ? '<span class="mec-required">*</span>' : ''); ?></label>
839
- <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'); ?>" <?php echo ((isset($this->settings['fes_required_more_info_link']) and $this->settings['fes_required_more_info_link']) ? 'required' : ''); ?> />
840
- <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'); ?>" />
841
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
842
- <option value="_self" <?php echo ($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php _e('Current Window', 'modern-events-calendar-lite'); ?></option>
843
- <option value="_blank" <?php echo ($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php _e('New Window', 'modern-events-calendar-lite'); ?></option>
844
  </select>
845
- <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>
846
  </div>
847
  </div>
848
  <?php endif; ?>
@@ -864,10 +864,10 @@ $this->factory->params('footer', $javascript);
864
  $current_currency = (isset($currency['currency']) ? $currency['currency'] : (isset($this->settings['currency']) ? $this->settings['currency'] : NULL));
865
  ?>
866
  <div class="mec-meta-box-fields mec-fes-cost" id="mec-event-cost">
867
- <h4><?php echo $this->main->m('event_cost', __('Event Cost', 'modern-events-calendar-lite')); ?> <?php echo ((isset($this->settings['fes_required_cost']) and $this->settings['fes_required_cost']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
868
  <div id="mec_meta_box_cost_form" class="<?php echo ($cost_auto_calculate ? 'mec-util-hidden' : ''); ?>">
869
  <div class="mec-form-row">
870
- <input type="<?php echo ($cost_type === 'alphabetic' ? 'text' : 'number'); ?>" <?php echo ($cost_type === 'numeric' ? 'min="0" step="any"' : ''); ?> class="mec-col-3" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" placeholder="<?php _e('Cost', 'modern-events-calendar-lite'); ?>" <?php echo ((isset($this->settings['fes_required_cost']) and $this->settings['fes_required_cost']) ? 'required' : ''); ?> />
871
  </div>
872
  </div>
873
 
@@ -876,55 +876,55 @@ $this->factory->params('footer', $javascript);
876
  <label for="mec_cost_auto_calculate">
877
  <input type="hidden" name="mec[cost_auto_calculate]" value="0" />
878
  <input type="checkbox" name="mec[cost_auto_calculate]" id="mec_cost_auto_calculate" <?php echo ($cost_auto_calculate == 1) ? 'checked="checked"' : ''; ?> value="1" onchange="jQuery('#mec_meta_box_cost_form').toggleClass('mec-util-hidden');">
879
- <?php _e('Show the minimum price based on tickets', 'modern-events-calendar-lite'); ?>
880
  </label>
881
  </div>
882
  </div>
883
 
884
  <?php if($currency_per_event): ?>
885
- <h4><?php echo __('Currency Options', 'modern-events-calendar-lite'); ?></h4>
886
  <div class="mec-form-row">
887
- <label class="mec-col-2" for="mec_currency_currency"><?php _e('Currency', 'modern-events-calendar-lite'); ?></label>
888
  <div class="mec-col-4">
889
  <select name="mec[currency][currency]" id="mec_currency_currency">
890
  <?php foreach($currencies as $c=>$currency_name): ?>
891
- <option value="<?php echo $c; ?>" <?php echo (($current_currency == $c) ? 'selected="selected"' : ''); ?>><?php echo $currency_name; ?></option>
892
  <?php endforeach; ?>
893
  </select>
894
  </div>
895
  </div>
896
  <div class="mec-form-row">
897
- <label class="mec-col-2" for="mec_currency_currency_symptom"><?php _e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
898
  <div class="mec-col-4">
899
  <input type="text" name="mec[currency][currency_symptom]" id="mec_currency_currency_symptom" value="<?php echo (isset($currency['currency_symptom']) ? $currency['currency_symptom'] : ''); ?>" />
900
  <span class="mec-tooltip">
901
  <div class="box left">
902
- <h5 class="title"><?php _e('Currency Sign', 'modern-events-calendar-lite'); ?></h5>
903
- <div class="content"><p><?php esc_attr_e("Default value will be \"currency\" if you leave it empty.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/currency-options/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
904
  </div>
905
  <i title="" class="dashicons-before dashicons-editor-help"></i>
906
  </span>
907
  </div>
908
  </div>
909
  <div class="mec-form-row">
910
- <label class="mec-col-2" for="mec_currency_currency_sign"><?php _e('Currency Position', 'modern-events-calendar-lite'); ?></label>
911
  <div class="mec-col-4">
912
  <select name="mec[currency][currency_sign]" id="mec_currency_currency_sign">
913
- <option value="before" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before') ? 'selected="selected"' : ''); ?>><?php _e('$10 (Before)', 'modern-events-calendar-lite'); ?></option>
914
- <option value="before_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before_space') ? 'selected="selected"' : ''); ?>><?php _e('$ 10 (Before with Space)', 'modern-events-calendar-lite'); ?></option>
915
- <option value="after" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after') ? 'selected="selected"' : ''); ?>><?php _e('10$ (After)', 'modern-events-calendar-lite'); ?></option>
916
- <option value="after_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after_space') ? 'selected="selected"' : ''); ?>><?php _e('10 $ (After with Space)', 'modern-events-calendar-lite'); ?></option>
917
  </select>
918
  </div>
919
  </div>
920
  <div class="mec-form-row">
921
- <label class="mec-col-2" for="mec_currency_thousand_separator"><?php _e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
922
  <div class="mec-col-4">
923
  <input type="text" name="mec[currency][thousand_separator]" id="mec_currency_thousand_separator" value="<?php echo (isset($currency['thousand_separator']) ? $currency['thousand_separator'] : ','); ?>" />
924
  </div>
925
  </div>
926
  <div class="mec-form-row">
927
- <label class="mec-col-2" for="mec_currency_decimal_separator"><?php _e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
928
  <div class="mec-col-4">
929
  <input type="text" name="mec[currency][decimal_separator]" id="mec_currency_decimal_separator" value="<?php echo (isset($currency['decimal_separator']) ? $currency['decimal_separator'] : '.'); ?>" />
930
  </div>
@@ -934,7 +934,7 @@ $this->factory->params('footer', $javascript);
934
  <label for="mec_currency_decimal_separator_status">
935
  <input type="hidden" name="mec[currency][decimal_separator_status]" value="1" />
936
  <input type="checkbox" name="mec[currency][decimal_separator_status]" id="mec_currency_decimal_separator_status" <?php echo ((isset($currency['decimal_separator_status']) and $currency['decimal_separator_status'] == '0') ? 'checked="checked"' : ''); ?> value="0" />
937
- <?php _e('No decimal', 'modern-events-calendar-lite'); ?>
938
  </label>
939
  </div>
940
  </div>
@@ -950,12 +950,12 @@ $this->factory->params('footer', $javascript);
950
  if(isset($featured_image[0])) $featured_image = $featured_image[0];
951
  ?>
952
  <div class="mec-meta-box-fields mec-fes-featured-image" id="mec-featured-image">
953
- <h4><?php _e('Featured Image', 'modern-events-calendar-lite'); ?></h4>
954
  <div class="mec-form-row">
955
  <span id="mec_fes_thumbnail_img"><?php echo (trim($featured_image) ? '<img src="'.$featured_image.'" />' : ''); ?></span>
956
  <input type="hidden" id="mec_fes_thumbnail" name="mec[featured_image]" value="<?php if(isset($attachment_id) and intval($attachment_id)) the_guid($attachment_id); ?>" />
957
  <input type="file" id="mec_featured_image_file" onchange="mec_fes_upload_featured_image();" />
958
- <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>
959
 
960
  <div class="mec-error mec-util-hidden" id="mec_fes_thumbnail_error"></div>
961
  </div>
@@ -971,7 +971,7 @@ $this->factory->params('footer', $javascript);
971
  <!-- Event Category Section -->
972
  <?php if(!isset($this->settings['fes_section_categories']) or (isset($this->settings['fes_section_categories']) and $this->settings['fes_section_categories'])): ?>
973
  <div class="mec-meta-box-fields mec-fes-category" id="mec-categories">
974
- <h4><?php echo $this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite')); ?> <?php echo ((isset($this->settings['fes_required_category']) and $this->settings['fes_required_category']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
975
  <div class="mec-form-row">
976
  <?php
977
  wp_list_categories(array(
@@ -997,13 +997,13 @@ $this->factory->params('footer', $javascript);
997
  ?>
998
  <?php if(count($label_terms)): ?>
999
  <div class="mec-meta-box-fields mec-fes-labels" id="mec-labels">
1000
- <h4><?php echo $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite')); ?> <?php echo ((isset($this->settings['fes_required_label']) and $this->settings['fes_required_label']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
1001
  <div class="mec-form-row">
1002
  <?php foreach($label_terms as $label_term): ?>
1003
- <label for="mec_fes_labels<?php echo $label_term->term_id; ?>">
1004
- <input type="checkbox" name="mec[labels][<?php echo $label_term->term_id; ?>]" id="mec_fes_labels<?php echo $label_term->term_id; ?>" value="1" <?php echo (in_array($label_term->term_id, $labels) ? 'checked="checked"' : ''); ?> />
1005
- <?php do_action('mec_label_to_checkbox_frontend', $label_term, $labels ) ?>
1006
- <?php echo $label_term->name; ?>
1007
  </label>
1008
  <?php endforeach; ?>
1009
  </div>
@@ -1021,12 +1021,12 @@ $this->factory->params('footer', $javascript);
1021
  ?>
1022
  <?php if(count($available_colors)): ?>
1023
  <div class="mec-meta-box-fields mec-fes-color" id="mec-event-color">
1024
- <h4><?php _e('Event Color', 'modern-events-calendar-lite'); ?></h4>
1025
  <div class="mec-form-row">
1026
  <div class="mec-form-row mec-available-color-row">
1027
- <input type="hidden" id="mec_event_color" name="mec[color]" value="#<?php echo $color; ?>" />
1028
  <?php foreach($available_colors as $available_color): ?>
1029
- <span class="mec-color <?php echo ($available_color == $color ? 'color-selected' : ''); ?>" onclick="mec_set_event_color('<?php echo $available_color; ?>');" style="background-color: #<?php echo $available_color; ?>"></span>
1030
  <?php endforeach; ?>
1031
  </div>
1032
  </div>
@@ -1043,7 +1043,7 @@ $this->factory->params('footer', $javascript);
1043
  foreach($post_tags as $post_tag) $tags .= $post_tag->name.',';
1044
  ?>
1045
  <div class="mec-meta-box-fields mec-fes-tags" id="mec-tags">
1046
- <h4><?php _e('Tags', 'modern-events-calendar-lite'); ?></h4>
1047
  <div class="mec-form-row">
1048
  <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>
1049
  </div>
@@ -1065,18 +1065,18 @@ $this->factory->params('footer', $javascript);
1065
  $speaker_terms = get_terms(array('taxonomy'=>'mec_speaker', 'hide_empty'=>false));
1066
  ?>
1067
  <div class="mec-meta-box-fields mec-fes-speakers" id="mec-speakers">
1068
- <h4><?php echo $this->main->m('taxonomy_speakers', __('Speakers', 'modern-events-calendar-lite')); ?></h4>
1069
  <div class="mec-form-row">
1070
- <input type="text" name="mec[speakers][datas][names]" id="mec_speaker_input_names" placeholder="<?php _e('Speakers Names', 'modern-events-calendar-lite'); ?>" class="" />
1071
- <p><?php _e('Separate names with commas: Justin, Chris', 'modern-events-calendar-lite'); ?></p>
1072
- <button class="button" type="button" id="mec_add_speaker_button"><?php _e('Add', 'modern-events-calendar-lite'); ?></button>
1073
  </div>
1074
  <div class="mec-form-row" id="mec-fes-speakers-list">
1075
  <?php if(count($speaker_terms)): ?>
1076
  <?php foreach($speaker_terms as $speaker_term): ?>
1077
- <label for="mec_fes_speakers<?php echo $speaker_term->term_id; ?>">
1078
- <input type="checkbox" name="mec[speakers][<?php echo $speaker_term->term_id; ?>]" id="mec_fes_speakers<?php echo $speaker_term->term_id; ?>" value="1" <?php echo (in_array($speaker_term->term_id, $speakers) ? 'checked="checked"' : ''); ?> />
1079
- <?php echo $speaker_term->name; ?>
1080
  </label>
1081
  <?php endforeach; ?>
1082
  <?php endif; ?>
@@ -1119,10 +1119,10 @@ $this->factory->params('footer', $javascript);
1119
  </label>
1120
  <?php endif; ?>
1121
 
1122
- <?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; ?>
1123
- <button class="mec-fes-sub-button" type="submit"><?php _e('Submit Event', 'modern-events-calendar-lite'); ?></button>
1124
  <div class="mec-util-hidden">
1125
- <input type="hidden" name="mec[post_id]" value="<?php echo $post_id; ?>" id="mec_fes_post_id" class="mec-fes-post-id" />
1126
  <input type="hidden" name="action" value="mec_fes_form" />
1127
  <?php wp_nonce_field('mec_fes_form'); ?>
1128
  <?php wp_nonce_field('mec_event_data', 'mec_event_nonce'); ?>
177
  <?php if(is_user_logged_in()): ?>
178
  <div class="mec-fes-form-top-actions">
179
  <?php do_action('mec_fes_form_top_actions'); ?>
180
+ <a class="mec-fes-form-back-to" href="<?php echo esc_url($this->link_list_events()); ?>"><?php echo esc_html__('Go back to events list', 'modern-events-calendar-lite'); ?></a>
181
  <?php $status = $this->main->get_event_label_status(get_post_status($post_id)); ?>
182
  <?php if(trim($status['label']) != "Empty"): ?>
183
+ <span class="post-status <?php echo sanitize_html_class($status['status_class']); ?>"><?php echo esc_html($status['label']); ?></span>
184
  <?php endif; ?>
185
  </div>
186
  <?php endif; ?>
259
 
260
  <div class="mec-fes-form-cntt">
261
  <div class="mec-form-row mec-fes-title">
262
+ <label for="mec_fes_title"><?php esc_html_e('Title', 'modern-events-calendar-lite'); ?> <span class="mec-required">*</span></label>
263
  <input type="text" name="mec[title]" id="mec_fes_title" value="<?php echo (isset($post->post_title) ? $post->post_title : ''); ?>" required="required" />
264
  </div>
265
  <div class="mec-form-row mec-fes-editor">
267
  </div>
268
  <?php if(isset($this->settings['fes_section_excerpt']) && $this->settings['fes_section_excerpt']): ?>
269
  <div class="mec-meta-box-fields mec-fes-excerpt" id="mec-excerpt">
270
+ <h4><?php esc_html_e('Excerpt', 'modern-events-calendar-lite'); ?> <?php echo ((isset($this->settings['fes_required_excerpt']) and $this->settings['fes_required_excerpt']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
271
  <div class="mec-form-row">
272
  <div class="mec-col-12">
273
  <textarea name="mec[excerpt]" id="mec_fes_excerpt" class="widefat" rows="10" title="<?php esc_attr_e('Optional Event Excerpt', 'modern-events-calendar-lite'); ?>" placeholder="<?php esc_attr_e('Optional Event Excerpt', 'modern-events-calendar-lite'); ?>" <?php echo ((isset($this->settings['fes_required_excerpt']) and $this->settings['fes_required_excerpt']) ? 'required' : ''); ?>><?php echo (isset($post->post_excerpt) ? $post->post_excerpt : ''); ?></textarea>
281
  <?php endif; ?>
282
 
283
  <div class="mec-meta-box-fields mec-fes-datetime" id="mec-date-time">
284
+ <h4><?php esc_html_e('Date and Time', 'modern-events-calendar-lite'); ?></h4>
285
  <div id="mec_meta_box_date_form">
286
  <div class="mec-title">
287
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
288
+ <label for="mec_start_date"><?php esc_html_e('Start Date', 'modern-events-calendar-lite'); ?></label>
289
  </div>
290
  <div class="mec-form-row">
291
  <div class="mec-col-4">
292
+ <input type="text" name="mec[date][start][date]" id="mec_start_date" value="<?php echo esc_attr($this->main->standardize_format($start_date, $datepicker_format)); ?>" placeholder="<?php esc_html_e('Start Date', 'modern-events-calendar-lite'); ?>" autocomplete="off" />
293
  </div>
294
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
295
  <?php $this->main->timepicker(array(
305
  </div>
306
  <div class="mec-title">
307
  <span class="mec-dashicons dashicons dashicons-calendar-alt"></span>
308
+ <label for="mec_end_date"><?php esc_html_e('End Date', 'modern-events-calendar-lite'); ?></label>
309
  </div>
310
  <div class="mec-form-row">
311
  <div class="mec-col-4">
312
+ <input type="text" name="mec[date][end][date]" id="mec_end_date" value="<?php echo esc_attr($this->main->standardize_format($end_date, $datepicker_format)); ?>" placeholder="<?php esc_html_e('End Date', 'modern-events-calendar-lite'); ?>" autocomplete="off" />
313
  </div>
314
  <div class="mec-col-6 mec-time-picker <?php echo ($allday == 1) ? 'mec-util-hidden' : ''; ?>">
315
  <?php $this->main->timepicker(array(
323
  </div>
324
  </div>
325
  <div class="mec-form-row">
326
+ <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 esc_html_e('All-day Event', 'modern-events-calendar-lite'); ?></label>
327
  </div>
328
  <div class="mec-form-row">
329
+ <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 esc_html_e('Hide Event Time', 'modern-events-calendar-lite'); ?></label>
330
  </div>
331
  <div class="mec-form-row">
332
+ <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 esc_html_e('Hide Event End Time', 'modern-events-calendar-lite'); ?></label>
333
  </div>
334
  <div class="mec-form-row">
335
  <div class="mec-col-4">
336
+ <input type="text" class="" name="mec[date][comment]" id="mec_comment" placeholder="<?php esc_html_e('Notes on the time', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($comment); ?>" />
337
+ <p class="description"><?php esc_html_e('It shows next to event time on the Single Event Page. You can enter notes such as timezone in this field.', 'modern-events-calendar-lite'); ?></p>
338
  </div>
339
  </div>
340
 
347
  <div class="mec-col-4">
348
  <select name="mec[timezone]" id="mec_event_timezone">
349
  <option value="global"><?php esc_html_e('Inherit from global options'); ?></option>
350
+ <?php echo MEC_kses::element($this->main->timezones($event_timezone)); ?>
351
  </select>
352
  </div>
353
  </div>
355
  <?php endif; ?>
356
 
357
  <?php if(isset($this->settings['countdown_status']) and $this->settings['countdown_status'] and (!isset($this->settings['fes_section_countdown_method']) or (isset($this->settings['fes_section_countdown_method']) and $this->settings['fes_section_countdown_method']))): ?>
358
+ <h4><?php esc_html_e('Countdown Method', 'modern-events-calendar-lite'); ?></h4>
359
  <div class="mec-form-row">
360
  <div class="mec-col-4">
361
  <select name="mec[countdown_method]" id="mec_countdown_method" title="<?php esc_attr_e('Countdown Method', 'modern-events-calendar-lite'); ?>">
362
+ <option value="global" <?php if('global' == $countdown_method) echo 'selected="selected"'; ?>><?php esc_html_e('Inherit from global options', 'modern-events-calendar-lite'); ?></option>
363
+ <option value="start" <?php if('start' == $countdown_method) echo 'selected="selected"'; ?>><?php esc_html_e('Count to Event Start', 'modern-events-calendar-lite'); ?></option>
364
+ <option value="end" <?php if('end' == $countdown_method) echo 'selected="selected"'; ?>><?php esc_html_e('Count to Event End', 'modern-events-calendar-lite'); ?></option>
365
  </select>
366
  </div>
367
  </div>
368
  <?php endif; ?>
369
 
370
  <?php if(!isset($this->settings['fes_section_shortcode_visibility']) or (isset($this->settings['fes_section_shortcode_visibility']) and $this->settings['fes_section_shortcode_visibility'])): ?>
371
+ <h4><?php esc_html_e('Visibility', 'modern-events-calendar-lite'); ?></h4>
372
  <div class="mec-form-row">
373
  <div class="mec-col-4">
374
  <select name="mec[public]" id="mec_public" title="<?php esc_attr_e('Event Visibility', 'modern-events-calendar-lite'); ?>">
375
+ <option value="1" <?php if('1' == $public) echo 'selected="selected"'; ?>><?php esc_html_e('Show on Shortcodes', 'modern-events-calendar-lite'); ?></option>
376
+ <option value="0" <?php if('0' == $public) echo 'selected="selected"'; ?>><?php esc_html_e('Hide on Shortcodes', 'modern-events-calendar-lite'); ?></option>
377
  </select>
378
  </div>
379
  </div>
381
 
382
  </div>
383
  <div id="mec_meta_box_repeat_form">
384
+ <h4><?php esc_html_e('Repeating', 'modern-events-calendar-lite'); ?></h4>
385
  <div class="mec-form-row">
386
+ <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 esc_html_e('Event Repeating', 'modern-events-calendar-lite'); ?></label>
387
  </div>
388
  <div class="mec-form-repeating-event-row">
389
  <div class="mec-form-row">
390
+ <label class="mec-col-3" for="mec_repeat_type"><?php esc_html_e('Repeats', 'modern-events-calendar-lite'); ?></label>
391
  <select class="mec-col-2" name="mec[date][repeat][type]" id="mec_repeat_type">
392
+ <option <?php if($repeat_type == 'daily') echo 'selected="selected"'; ?> value="daily"><?php esc_html_e('Daily', 'modern-events-calendar-lite'); ?></option>
393
+ <option <?php if($repeat_type == 'weekday') echo 'selected="selected"'; ?> value="weekday"><?php esc_html_e('Every Weekday', 'modern-events-calendar-lite'); ?></option>
394
+ <option <?php if($repeat_type == 'weekend') echo 'selected="selected"'; ?> value="weekend"><?php esc_html_e('Every Weekend', 'modern-events-calendar-lite'); ?></option>
395
+ <option <?php if($repeat_type == 'certain_weekdays') echo 'selected="selected"'; ?> value="certain_weekdays"><?php esc_html_e('Certain Weekdays', 'modern-events-calendar-lite'); ?></option>
396
+ <option <?php if($repeat_type == 'weekly') echo 'selected="selected"'; ?> value="weekly"><?php esc_html_e('Weekly', 'modern-events-calendar-lite'); ?></option>
397
+ <option <?php if($repeat_type == 'monthly') echo 'selected="selected"'; ?> value="monthly"><?php esc_html_e('Monthly', 'modern-events-calendar-lite'); ?></option>
398
+ <option <?php if($repeat_type == 'yearly') echo 'selected="selected"'; ?> value="yearly"><?php esc_html_e('Yearly', 'modern-events-calendar-lite'); ?></option>
399
+ <option <?php if($repeat_type == 'custom_days') echo 'selected="selected"'; ?> value="custom_days"><?php esc_html_e('Custom Days', 'modern-events-calendar-lite'); ?></option>
400
+ <option <?php if($repeat_type == 'advanced') echo 'selected="selected"'; ?> value="advanced"><?php esc_html_e('Advanced', 'modern-events-calendar-lite'); ?></option>
401
  </select>
402
  </div>
403
  <div class="mec-form-row" id="mec_repeat_interval_container">
404
+ <label class="mec-col-3" for="mec_repeat_interval"><?php esc_html_e('Repeat Interval', 'modern-events-calendar-lite'); ?></label>
405
+ <input class="mec-col-2" type="text" name="mec[date][repeat][interval]" id="mec_repeat_interval" placeholder="<?php esc_html_e('Repeat interval', 'modern-events-calendar-lite'); ?>" value="<?php echo ($repeat_type == 'weekly' ? ($repeat_interval/7) : $repeat_interval); ?>" />
406
  </div>
407
  <div class="mec-form-row" id="mec_repeat_certain_weekdays_container">
408
+ <label class="mec-col-3"><?php esc_html_e('Week Days', 'modern-events-calendar-lite'); ?></label>
409
+ <label><input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="1" <?php echo (in_array(1, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Monday', 'modern-events-calendar-lite'); ?></label>
410
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="2" <?php echo (in_array(2, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Tuesday', 'modern-events-calendar-lite'); ?></label>
411
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="3" <?php echo (in_array(3, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Wednesday', 'modern-events-calendar-lite'); ?></label>
412
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="4" <?php echo (in_array(4, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Thursday', 'modern-events-calendar-lite'); ?></label>
413
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="5" <?php echo (in_array(5, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Friday', 'modern-events-calendar-lite'); ?></label>
414
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="6" <?php echo (in_array(6, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Saturday', 'modern-events-calendar-lite'); ?></label>
415
+ <label>&nbsp;<input type="checkbox" name="mec[date][repeat][certain_weekdays][]" value="7" <?php echo (in_array(7, $certain_weekdays) ? 'checked="checked"' : ''); ?> /><?php esc_html_e('Sunday', 'modern-events-calendar-lite'); ?></label>
416
  </div>
417
  <div class="mec-form-row" id="mec_exceptions_in_days_container">
418
  <div class="mec-form-row">
419
  <div class="mec-col-12">
420
  <div class="mec-form-row">
421
  <div class="mec-col-4">
422
+ <input type="text" id="mec_exceptions_in_days_start_date" value="" placeholder="<?php esc_html_e('Start', 'modern-events-calendar-lite'); ?>" title="<?php esc_html_e('Start', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format widefat" autocomplete="off"/>
423
  </div>
424
  <div class="mec-col-8">
425
  <?php $this->main->timepicker(array(
435
  </div>
436
  <div class="mec-form-row">
437
  <div class="mec-col-4">
438
+ <input type="text" id="mec_exceptions_in_days_end_date" value="" placeholder="<?php esc_html_e('End', 'modern-events-calendar-lite'); ?>" title="<?php esc_html_e('End', 'modern-events-calendar-lite'); ?>" class="mec_date_picker_dynamic_format" autocomplete="off"/>
439
  </div>
440
  <div class="mec-col-8">
441
  <?php $this->main->timepicker(array(
450
  </div>
451
  <div class="mec-form-row">
452
  <div class="mec-col-12">
453
+ <button class="button" type="button" id="mec_add_in_days"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
454
  <span class="mec-tooltip">
455
  <div class="box top">
456
+ <h5 class="title"><?php esc_html_e('Custom Days Repeating', 'modern-events-calendar-lite'); ?></h5>
457
  <div class="content">
458
  <p>
459
  <?php esc_attr_e('Add certain days to event occurrence dates. If you have a single day event, start and end dates should be the same, If you have a multiple day event, the start and end dates must be commensurate with the initial date.', 'modern-events-calendar-lite'); ?>
460
+ <a href="https://webnus.net/dox/modern-events-calendar/date-and-time/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a>
461
  </p>
462
  </div>
463
  </div>
509
  $in_day = $first_date . ':' . $second_date.(trim($in_day_start_time) ? ':'.$in_day_start_time : '').(trim($in_day_end_time) ? ':'.$in_day_end_time : '');
510
  $in_day_label = $first_date. (trim($in_day_start_time_label) ? ' '.$in_day_start_time_label : '') . ' - ' . $second_date. (trim($in_day_end_time_label) ? ' '.$in_day_end_time_label : '');
511
  ?>
512
+ <div class="mec-form-row" id="mec_in_days_row<?php echo esc_attr($i); ?>">
513
+ <input type="hidden" name="mec[in_days][<?php echo esc_attr($i); ?>]" value="<?php echo esc_attr($in_day); ?>"/>
514
+ <span class="mec-not-in-days-day"><?php echo esc_html($in_day_label); ?></span>
515
+ <span class="mec-not-in-days-remove" onclick="mec_in_days_remove(<?php echo esc_attr($i); ?>);">x</span>
516
  </div>
517
  <?php $i++; endforeach; ?>
518
  </div>
519
+ <input type="hidden" id="mec_new_in_days_key" value="<?php echo ($i+1); ?>" />
520
  <div class="mec-util-hidden" id="mec_new_in_days_raw">
521
  <div class="mec-form-row" id="mec_in_days_row:i:">
522
  <input type="hidden" name="mec[in_days][:i:]" value=":val:" />
529
  <div class="mec-form-row">
530
  <ul>
531
  <li>
532
+ <?php esc_html_e('First', 'modern-events-calendar-lite'); ?>
533
  </li>
534
  <ul>
535
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
536
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.1"); ?>">
537
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
538
+ <span class="key"><?php echo esc_attr($day_1th); ?>.1-</span>
539
  </li>
540
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
541
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.1"); ?>">
542
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
543
+ <span class="key"><?php echo esc_attr($day_2th); ?>.1-</span>
544
  </li>
545
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
546
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.1"); ?>">
547
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
548
+ <span class="key"><?php echo esc_attr($day_3th); ?>.1-</span>
549
  </li>
550
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
551
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.1"); ?>">
552
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
553
+ <span class="key"><?php echo esc_attr($day_4th); ?>.1-</span>
554
  </li>
555
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
556
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.1"); ?>">
557
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
558
+ <span class="key"><?php echo esc_attr($day_5th); ?>.1-</span>
559
  </li>
560
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
561
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.1"); ?>">
562
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
563
+ <span class="key"><?php echo esc_attr($day_6th); ?>.1-</span>
564
  </li>
565
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
566
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.1"); ?>">
567
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
568
+ <span class="key"><?php echo esc_attr($day_7th); ?>.1-</span>
569
  </li>
570
  </ul>
571
  </ul>
572
  <ul>
573
  <li>
574
+ <?php esc_html_e('Second', 'modern-events-calendar-lite'); ?>
575
  </li>
576
  <ul>
577
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
578
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.2"); ?>">
579
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
580
+ <span class="key"><?php echo esc_attr($day_1th); ?>.2-</span>
581
  </li>
582
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
583
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.2"); ?>">
584
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
585
+ <span class="key"><?php echo esc_attr($day_2th); ?>.2-</span>
586
  </li>
587
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
588
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.2"); ?>">
589
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
590
+ <span class="key"><?php echo esc_attr($day_3th); ?>.2-</span>
591
  </li>
592
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
593
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.2"); ?>">
594
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
595
+ <span class="key"><?php echo esc_attr($day_4th); ?>.2-</span>
596
  </li>
597
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
598
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.2"); ?>">
599
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
600
+ <span class="key"><?php echo esc_attr($day_5th); ?>.2-</span>
601
  </li>
602
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
603
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.2"); ?>">
604
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
605
+ <span class="key"><?php echo esc_attr($day_6th); ?>.2-</span>
606
  </li>
607
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
608
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.2"); ?>">
609
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
610
+ <span class="key"><?php echo esc_attr($day_7th); ?>.2-</span>
611
  </li>
612
  </ul>
613
  </ul>
614
  <ul>
615
  <li>
616
+ <?php esc_html_e('Third', 'modern-events-calendar-lite'); ?>
617
  </li>
618
  <ul>
619
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
620
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.3"); ?>">
621
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
622
+ <span class="key"><?php echo esc_attr($day_1th); ?>.3-</span>
623
  </li>
624
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
625
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.3"); ?>">
626
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
627
+ <span class="key"><?php echo esc_attr($day_2th); ?>.3-</span>
628
  </li>
629
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
630
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.3"); ?>">
631
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
632
+ <span class="key"><?php echo esc_attr($day_3th); ?>.3-</span>
633
  </li>
634
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
635
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.3"); ?>">
636
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
637
+ <span class="key"><?php echo esc_attr($day_4th); ?>.3-</span>
638
  </li>
639
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
640
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.3"); ?>">
641
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
642
+ <span class="key"><?php echo esc_attr($day_5th); ?>.3-</span>
643
  </li>
644
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
645
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.3"); ?>">
646
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
647
+ <span class="key"><?php echo esc_attr($day_6th); ?>.3-</span>
648
  </li>
649
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
650
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.3"); ?>">
651
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
652
+ <span class="key"><?php echo esc_attr($day_7th); ?>.3-</span>
653
  </li>
654
  </ul>
655
  </ul>
656
  <ul>
657
  <li>
658
+ <?php esc_html_e('Fourth', 'modern-events-calendar-lite'); ?>
659
  </li>
660
  <ul>
661
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
662
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.4"); ?>">
663
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
664
+ <span class="key"><?php echo esc_attr($day_1th); ?>.4-</span>
665
  </li>
666
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
667
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.4"); ?>">
668
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
669
+ <span class="key"><?php echo esc_attr($day_2th); ?>.4-</span>
670
  </li>
671
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
672
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.4"); ?>">
673
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
674
+ <span class="key"><?php echo esc_attr($day_3th); ?>.4-</span>
675
  </li>
676
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
677
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.4"); ?>">
678
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
679
+ <span class="key"><?php echo esc_attr($day_4th); ?>.4-</span>
680
  </li>
681
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
682
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.4"); ?>">
683
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
684
+ <span class="key"><?php echo esc_attr($day_5th); ?>.4-</span>
685
  </li>
686
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
687
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.4"); ?>">
688
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
689
+ <span class="key"><?php echo esc_attr($day_6th); ?>.4-</span>
690
  </li>
691
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
692
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.4"); ?>">
693
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
694
+ <span class="key"><?php echo esc_attr($day_7th); ?>.4-</span>
695
  </li>
696
  </ul>
697
  </ul>
698
  <ul>
699
  <li>
700
+ <?php esc_html_e('Last', 'modern-events-calendar-lite'); ?>
701
  </li>
702
  <ul>
703
  <?php $day_1th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 1); ?>
704
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_1th}.l"); ?>">
705
+ <?php esc_html_e($day_1th, 'modern-events-calendar-lite'); ?>
706
+ <span class="key"><?php echo esc_attr($day_1th); ?>.l-</span>
707
  </li>
708
  <?php $day_2th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 2); ?>
709
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_2th}.l"); ?>">
710
+ <?php esc_html_e($day_2th, 'modern-events-calendar-lite'); ?>
711
+ <span class="key"><?php echo esc_attr($day_2th); ?>.l-</span>
712
  </li>
713
  <?php $day_3th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 3); ?>
714
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_3th}.l"); ?>">
715
+ <?php esc_html_e($day_3th, 'modern-events-calendar-lite'); ?>
716
+ <span class="key"><?php echo esc_attr($day_3th); ?>.l-</span>
717
  </li>
718
  <?php $day_4th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 4); ?>
719
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_4th}.l"); ?>">
720
+ <?php esc_html_e($day_4th, 'modern-events-calendar-lite'); ?>
721
+ <span class="key"><?php echo esc_attr($day_4th); ?>.l-</span>
722
  </li>
723
  <?php $day_5th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 5); ?>
724
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_5th}.l"); ?>">
725
+ <?php esc_html_e($day_5th, 'modern-events-calendar-lite'); ?>
726
+ <span class="key"><?php echo esc_attr($day_5th); ?>.l-</span>
727
  </li>
728
  <?php $day_6th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 6); ?>
729
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_6th}.l"); ?>">
730
+ <?php esc_html_e($day_6th, 'modern-events-calendar-lite'); ?>
731
+ <span class="key"><?php echo esc_attr($day_6th); ?>.l-</span>
732
  </li>
733
  <?php $day_7th = $this->main->advanced_repeating_sort_day($this->main->get_first_day_of_week(), 7); ?>
734
  <li class="<?php $this->main->mec_active($advanced_days, "{$day_7th}.l"); ?>">
735
+ <?php esc_html_e($day_7th, 'modern-events-calendar-lite'); ?>
736
+ <span class="key"><?php echo esc_attr($day_7th); ?>.l-</span>
737
  </li>
738
  </ul>
739
  </ul>
743
  </div>
744
  <div id="mec_end_wrapper">
745
  <div class="mec-form-row">
746
+ <label for="mec_repeat_ends_never"><h5 class="mec-title"><?php esc_html_e('Ends Repeat', 'modern-events-calendar-lite'); ?></h5></label>
747
  </div>
748
  <div class="mec-form-row">
749
  <input <?php if($mec_repeat_end == 'never') echo 'checked="checked"'; ?> type="radio" value="never" name="mec[date][repeat][end]" id="mec_repeat_ends_never" />
750
+ <label for="mec_repeat_ends_never"><?php esc_html_e('Never', 'modern-events-calendar-lite'); ?></label>
751
  </div>
752
  <div class="mec-form-row">
753
  <div class="mec-col-3">
754
  <input <?php if($mec_repeat_end == 'date') echo 'checked="checked"'; ?> type="radio" value="date" name="mec[date][repeat][end]" id="mec_repeat_ends_date" />
755
+ <label for="mec_repeat_ends_date"><?php esc_html_e('On', 'modern-events-calendar-lite'); ?></label>
756
  </div>
757
  <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_date]" id="mec_date_repeat_end_at_date" autocomplete="off" value="<?php echo esc_attr( $this->main->standardize_format( $repeat_end_at_date, $datepicker_format ) ); ?>" />
758
  </div>
759
  <div class="mec-form-row">
760
  <div class="mec-col-3">
761
  <input <?php if($mec_repeat_end == 'occurrences') echo 'checked="checked"'; ?> type="radio" value="occurrences" name="mec[date][repeat][end]" id="mec_repeat_ends_occurrences" />
762
+ <label for="mec_repeat_ends_occurrences"><?php esc_html_e('After', 'modern-events-calendar-lite'); ?></label>
763
  </div>
764
+ <input class="mec-col-2" type="text" name="mec[date][repeat][end_at_occurrences]" id="mec_date_repeat_end_at_occurrences" autocomplete="off" placeholder="<?php esc_html_e('Occurrences times', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr(($repeat_end_at_occurrences+1)); ?>" />
765
  <span class="mec-tooltip">
766
  <div class="box">
767
+ <h5 class="title"><?php esc_html_e('Occurrences times', 'modern-events-calendar-lite'); ?></h5>
768
+ <div class="content"><p><?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'); ?><a href="https://webnus.net/dox/modern-events-calendar/event-detailssingle-event-page/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
769
  </div>
770
  <i title="" class="dashicons-before dashicons-editor-help"></i>
771
  </span>
778
  }
779
  ?>
780
  type="checkbox" name="mec[date][one_occurrence]" id="mec-one-occurrence" value="1"/><label
781
+ for="mec-one-occurrence"><?php esc_html_e('Show only one occurrence of this event', 'modern-events-calendar-lite'); ?></label>
782
  </div>
783
  </div>
784
  </div>
789
 
790
  <?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); ?>
791
  <div class="mec-meta-box-fields mec-fes-note" id="mec-event-note">
792
+ <h4><?php esc_html_e('Note to reviewer', 'modern-events-calendar-lite'); ?></h4>
793
  <div id="mec_meta_box_event_note">
794
+ <textarea name="mec[note]"><?php echo esc_textarea($note); ?></textarea>
795
  </div>
796
  </div>
797
  <?php endif; ?>
807
  $guest_name = get_post_meta($post_id, 'fes_guest_name', true);
808
  ?>
809
  <div class="mec-meta-box-fields mec-fes-user-data" id="mec-guest-email-link">
810
+ <h4><?php esc_html_e('User Data', 'modern-events-calendar-lite'); ?></h4>
811
  <div class="mec-form-row">
812
+ <label class="mec-col-2" for="mec_guest_email"><?php esc_html_e('Email', 'modern-events-calendar-lite'); ?><span>*</span></label>
813
+ <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 esc_html_e('eg. yourname@gmail.com', 'modern-events-calendar-lite'); ?>" />
814
  </div>
815
  <div class="mec-form-row">
816
+ <label class="mec-col-2" for="mec_guest_name"><?php esc_html_e('Name', 'modern-events-calendar-lite'); ?><span>*</span></label>
817
+ <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 esc_html_e('eg. John Smith', 'modern-events-calendar-lite'); ?>" />
818
  </div>
819
  </div>
820
  <?php endif; ?>
828
  $more_info_target = get_post_meta($post_id, 'mec_more_info_target', true);
829
  ?>
830
  <div class="mec-meta-box-fields mec-fes-event-links" id="mec-event-links">
831
+ <h4><?php esc_html_e('Event Links', 'modern-events-calendar-lite'); ?></h4>
832
  <div class="mec-form-row">
833
+ <label class="mec-col-2" for="mec_read_more_link"><?php echo esc_html($this->main->m('read_more_link', esc_html__('Event Link', 'modern-events-calendar-lite'))); ?> <?php echo ((isset($this->settings['fes_required_event_link']) and $this->settings['fes_required_event_link']) ? '<span class="mec-required">*</span>' : ''); ?></label>
834
+ <input class="mec-col-9" type="text" name="mec[read_more]" id="mec_read_more_link" value="<?php echo esc_attr($read_more); ?>" placeholder="<?php esc_html_e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>" <?php echo ((isset($this->settings['fes_required_event_link']) and $this->settings['fes_required_event_link']) ? 'required' : ''); ?> />
835
+ <p class="description"><?php esc_html_e('If you fill it, it will replace the default event page link. Insert full link including http(s)://', 'modern-events-calendar-lite'); ?></p>
836
  </div>
837
  <div class="mec-form-row">
838
+ <label class="mec-col-2" for="mec_more_info_link"><?php echo esc_html($this->main->m('more_info_link', esc_html__('More Info', 'modern-events-calendar-lite'))); ?> <?php echo ((isset($this->settings['fes_required_more_info_link']) and $this->settings['fes_required_more_info_link']) ? '<span class="mec-required">*</span>' : ''); ?></label>
839
+ <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 esc_html_e('eg. http://yoursite.com/your-event', 'modern-events-calendar-lite'); ?>" <?php echo ((isset($this->settings['fes_required_more_info_link']) and $this->settings['fes_required_more_info_link']) ? 'required' : ''); ?> />
840
+ <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 esc_html_e('More Information', 'modern-events-calendar-lite'); ?>" />
841
  <select class="mec-col-2" name="mec[more_info_target]" id="mec_more_info_target">
842
+ <option value="_self" <?php echo ($more_info_target == '_self' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Current Window', 'modern-events-calendar-lite'); ?></option>
843
+ <option value="_blank" <?php echo ($more_info_target == '_blank' ? 'selected="selected"' : ''); ?>><?php esc_html_e('New Window', 'modern-events-calendar-lite'); ?></option>
844
  </select>
845
+ <p class="description"><?php esc_html_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>
846
  </div>
847
  </div>
848
  <?php endif; ?>
864
  $current_currency = (isset($currency['currency']) ? $currency['currency'] : (isset($this->settings['currency']) ? $this->settings['currency'] : NULL));
865
  ?>
866
  <div class="mec-meta-box-fields mec-fes-cost" id="mec-event-cost">
867
+ <h4><?php echo esc_html($this->main->m('event_cost', esc_html__('Event Cost', 'modern-events-calendar-lite'))); ?> <?php echo ((isset($this->settings['fes_required_cost']) and $this->settings['fes_required_cost']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
868
  <div id="mec_meta_box_cost_form" class="<?php echo ($cost_auto_calculate ? 'mec-util-hidden' : ''); ?>">
869
  <div class="mec-form-row">
870
+ <input type="<?php echo ($cost_type === 'alphabetic' ? 'text' : 'number'); ?>" <?php echo ($cost_type === 'numeric' ? 'min="0" step="any"' : ''); ?> class="mec-col-3" name="mec[cost]" id="mec_cost" value="<?php echo esc_attr($cost); ?>" placeholder="<?php esc_html_e('Cost', 'modern-events-calendar-lite'); ?>" <?php echo ((isset($this->settings['fes_required_cost']) and $this->settings['fes_required_cost']) ? 'required' : ''); ?> />
871
  </div>
872
  </div>
873
 
876
  <label for="mec_cost_auto_calculate">
877
  <input type="hidden" name="mec[cost_auto_calculate]" value="0" />
878
  <input type="checkbox" name="mec[cost_auto_calculate]" id="mec_cost_auto_calculate" <?php echo ($cost_auto_calculate == 1) ? 'checked="checked"' : ''; ?> value="1" onchange="jQuery('#mec_meta_box_cost_form').toggleClass('mec-util-hidden');">
879
+ <?php esc_html_e('Show the minimum price based on tickets', 'modern-events-calendar-lite'); ?>
880
  </label>
881
  </div>
882
  </div>
883
 
884
  <?php if($currency_per_event): ?>
885
+ <h4><?php echo esc_html__('Currency Options', 'modern-events-calendar-lite'); ?></h4>
886
  <div class="mec-form-row">
887
+ <label class="mec-col-2" for="mec_currency_currency"><?php esc_html_e('Currency', 'modern-events-calendar-lite'); ?></label>
888
  <div class="mec-col-4">
889
  <select name="mec[currency][currency]" id="mec_currency_currency">
890
  <?php foreach($currencies as $c=>$currency_name): ?>
891
+ <option value="<?php echo esc_attr($c); ?>" <?php echo (($current_currency == $c) ? 'selected="selected"' : ''); ?>><?php echo esc_html($currency_name); ?></option>
892
  <?php endforeach; ?>
893
  </select>
894
  </div>
895
  </div>
896
  <div class="mec-form-row">
897
+ <label class="mec-col-2" for="mec_currency_currency_symptom"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
898
  <div class="mec-col-4">
899
  <input type="text" name="mec[currency][currency_symptom]" id="mec_currency_currency_symptom" value="<?php echo (isset($currency['currency_symptom']) ? $currency['currency_symptom'] : ''); ?>" />
900
  <span class="mec-tooltip">
901
  <div class="box left">
902
+ <h5 class="title"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></h5>
903
+ <div class="content"><p><?php esc_attr_e("Default value will be \"currency\" if you leave it empty.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/currency-options/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
904
  </div>
905
  <i title="" class="dashicons-before dashicons-editor-help"></i>
906
  </span>
907
  </div>
908
  </div>
909
  <div class="mec-form-row">
910
+ <label class="mec-col-2" for="mec_currency_currency_sign"><?php esc_html_e('Currency Position', 'modern-events-calendar-lite'); ?></label>
911
  <div class="mec-col-4">
912
  <select name="mec[currency][currency_sign]" id="mec_currency_currency_sign">
913
+ <option value="before" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before') ? 'selected="selected"' : ''); ?>><?php esc_html_e('$10 (Before)', 'modern-events-calendar-lite'); ?></option>
914
+ <option value="before_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'before_space') ? 'selected="selected"' : ''); ?>><?php esc_html_e('$ 10 (Before with Space)', 'modern-events-calendar-lite'); ?></option>
915
+ <option value="after" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after') ? 'selected="selected"' : ''); ?>><?php esc_html_e('10$ (After)', 'modern-events-calendar-lite'); ?></option>
916
+ <option value="after_space" <?php echo ((isset($currency['currency_sign']) and $currency['currency_sign'] == 'after_space') ? 'selected="selected"' : ''); ?>><?php esc_html_e('10 $ (After with Space)', 'modern-events-calendar-lite'); ?></option>
917
  </select>
918
  </div>
919
  </div>
920
  <div class="mec-form-row">
921
+ <label class="mec-col-2" for="mec_currency_thousand_separator"><?php esc_html_e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
922
  <div class="mec-col-4">
923
  <input type="text" name="mec[currency][thousand_separator]" id="mec_currency_thousand_separator" value="<?php echo (isset($currency['thousand_separator']) ? $currency['thousand_separator'] : ','); ?>" />
924
  </div>
925
  </div>
926
  <div class="mec-form-row">
927
+ <label class="mec-col-2" for="mec_currency_decimal_separator"><?php esc_html_e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
928
  <div class="mec-col-4">
929
  <input type="text" name="mec[currency][decimal_separator]" id="mec_currency_decimal_separator" value="<?php echo (isset($currency['decimal_separator']) ? $currency['decimal_separator'] : '.'); ?>" />
930
  </div>
934
  <label for="mec_currency_decimal_separator_status">
935
  <input type="hidden" name="mec[currency][decimal_separator_status]" value="1" />
936
  <input type="checkbox" name="mec[currency][decimal_separator_status]" id="mec_currency_decimal_separator_status" <?php echo ((isset($currency['decimal_separator_status']) and $currency['decimal_separator_status'] == '0') ? 'checked="checked"' : ''); ?> value="0" />
937
+ <?php esc_html_e('No decimal', 'modern-events-calendar-lite'); ?>
938
  </label>
939
  </div>
940
  </div>
950
  if(isset($featured_image[0])) $featured_image = $featured_image[0];
951
  ?>
952
  <div class="mec-meta-box-fields mec-fes-featured-image" id="mec-featured-image">
953
+ <h4><?php esc_html_e('Featured Image', 'modern-events-calendar-lite'); ?></h4>
954
  <div class="mec-form-row">
955
  <span id="mec_fes_thumbnail_img"><?php echo (trim($featured_image) ? '<img src="'.$featured_image.'" />' : ''); ?></span>
956
  <input type="hidden" id="mec_fes_thumbnail" name="mec[featured_image]" value="<?php if(isset($attachment_id) and intval($attachment_id)) the_guid($attachment_id); ?>" />
957
  <input type="file" id="mec_featured_image_file" onchange="mec_fes_upload_featured_image();" />
958
+ <span id="mec_fes_remove_image_button" class="<?php echo (trim($featured_image) ? '' : 'mec-util-hidden'); ?>"><?php esc_html_e('Remove Image', 'modern-events-calendar-lite'); ?></span>
959
 
960
  <div class="mec-error mec-util-hidden" id="mec_fes_thumbnail_error"></div>
961
  </div>
971
  <!-- Event Category Section -->
972
  <?php if(!isset($this->settings['fes_section_categories']) or (isset($this->settings['fes_section_categories']) and $this->settings['fes_section_categories'])): ?>
973
  <div class="mec-meta-box-fields mec-fes-category" id="mec-categories">
974
+ <h4><?php echo esc_html($this->main->m('taxonomy_categories', esc_html__('Categories', 'modern-events-calendar-lite'))); ?> <?php echo ((isset($this->settings['fes_required_category']) and $this->settings['fes_required_category']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
975
  <div class="mec-form-row">
976
  <?php
977
  wp_list_categories(array(
997
  ?>
998
  <?php if(count($label_terms)): ?>
999
  <div class="mec-meta-box-fields mec-fes-labels" id="mec-labels">
1000
+ <h4><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?> <?php echo ((isset($this->settings['fes_required_label']) and $this->settings['fes_required_label']) ? '<span class="mec-required">*</span>' : ''); ?></h4>
1001
  <div class="mec-form-row">
1002
  <?php foreach($label_terms as $label_term): ?>
1003
+ <label for="mec_fes_labels<?php echo esc_attr($label_term->term_id); ?>">
1004
+ <input type="checkbox" name="mec[labels][<?php echo esc_attr($label_term->term_id); ?>]" id="mec_fes_labels<?php echo esc_attr($label_term->term_id); ?>" value="1" <?php echo (in_array($label_term->term_id, $labels) ? 'checked="checked"' : ''); ?> />
1005
+ <?php do_action('mec_label_to_checkbox_frontend', $label_term, $labels) ?>
1006
+ <?php echo esc_html($label_term->name); ?>
1007
  </label>
1008
  <?php endforeach; ?>
1009
  </div>
1021
  ?>
1022
  <?php if(count($available_colors)): ?>
1023
  <div class="mec-meta-box-fields mec-fes-color" id="mec-event-color">
1024
+ <h4><?php esc_html_e('Event Color', 'modern-events-calendar-lite'); ?></h4>
1025
  <div class="mec-form-row">
1026
  <div class="mec-form-row mec-available-color-row">
1027
+ <input type="hidden" id="mec_event_color" name="mec[color]" value="#<?php echo esc_attr($color); ?>" />
1028
  <?php foreach($available_colors as $available_color): ?>
1029
+ <span class="mec-color <?php echo ($available_color == $color ? 'color-selected' : ''); ?>" onclick="mec_set_event_color('<?php echo esc_attr($available_color); ?>');" style="background-color: #<?php echo esc_attr($available_color); ?>"></span>
1030
  <?php endforeach; ?>
1031
  </div>
1032
  </div>
1043
  foreach($post_tags as $post_tag) $tags .= $post_tag->name.',';
1044
  ?>
1045
  <div class="mec-meta-box-fields mec-fes-tags" id="mec-tags">
1046
+ <h4><?php esc_html_e('Tags', 'modern-events-calendar-lite'); ?></h4>
1047
  <div class="mec-form-row">
1048
  <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>
1049
  </div>
1065
  $speaker_terms = get_terms(array('taxonomy'=>'mec_speaker', 'hide_empty'=>false));
1066
  ?>
1067
  <div class="mec-meta-box-fields mec-fes-speakers" id="mec-speakers">
1068
+ <h4><?php echo esc_html($this->main->m('taxonomy_speakers', esc_html__('Speakers', 'modern-events-calendar-lite'))); ?></h4>
1069
  <div class="mec-form-row">
1070
+ <input type="text" name="mec[speakers][datas][names]" id="mec_speaker_input_names" placeholder="<?php esc_html_e('Speakers Names', 'modern-events-calendar-lite'); ?>" class="" />
1071
+ <p><?php esc_html_e('Separate names with commas: Justin, Chris', 'modern-events-calendar-lite'); ?></p>
1072
+ <button class="button" type="button" id="mec_add_speaker_button"><?php esc_html_e('Add', 'modern-events-calendar-lite'); ?></button>
1073
  </div>
1074
  <div class="mec-form-row" id="mec-fes-speakers-list">
1075
  <?php if(count($speaker_terms)): ?>
1076
  <?php foreach($speaker_terms as $speaker_term): ?>
1077
+ <label for="mec_fes_speakers<?php echo esc_attr($speaker_term->term_id); ?>">
1078
+ <input type="checkbox" name="mec[speakers][<?php echo esc_attr($speaker_term->term_id); ?>]" id="mec_fes_speakers<?php echo esc_attr($speaker_term->term_id); ?>" value="1" <?php echo (in_array($speaker_term->term_id, $speakers) ? 'checked="checked"' : ''); ?> />
1079
+ <?php echo esc_html($speaker_term->name); ?>
1080
  </label>
1081
  <?php endforeach; ?>
1082
  <?php endif; ?>
1119
  </label>
1120
  <?php endif; ?>
1121
 
1122
+ <?php if($this->main->get_recaptcha_status('fes')): ?><div class="mec-form-row mec-google-recaptcha"><div class="g-recaptcha" data-sitekey="<?php echo esc_attr($this->settings['google_recaptcha_sitekey']); ?>"></div></div><?php endif; ?>
1123
+ <button class="mec-fes-sub-button" type="submit"><?php esc_html_e('Submit Event', 'modern-events-calendar-lite'); ?></button>
1124
  <div class="mec-util-hidden">
1125
+ <input type="hidden" name="mec[post_id]" value="<?php echo esc_attr($post_id); ?>" id="mec_fes_post_id" class="mec-fes-post-id" />
1126
  <input type="hidden" name="action" value="mec_fes_form" />
1127
  <?php wp_nonce_field('mec_fes_form'); ?>
1128
  <?php wp_nonce_field('mec_event_data', 'mec_event_nonce'); ?>
app/features/fes/list.php CHANGED
@@ -69,7 +69,7 @@ $this->factory->params('footer', $javascript);
69
  <div class="mec-fes-list">
70
  <?php if($query->have_posts()): ?>
71
  <div class="mec-fes-list-top-actions">
72
- <a href="<?php echo esc_url($this->link_add_event()); ?>"><?php echo __('Add new', 'modern-events-calendar-lite'); ?></a>
73
  </div>
74
  <?php do_action('mec_fes_list'); ?>
75
  <ul>
@@ -83,11 +83,11 @@ $this->factory->params('footer', $javascript);
83
  <span class="mec-event-title">
84
  <a href="<?php echo esc_url($this->link_edit_event(get_the_ID())); ?>"><?php the_title(); ?></a>
85
  <?php if($display_date): ?>
86
- <span>(<?php echo $this->main->date_label(array(
87
  'date' => get_post_meta(get_the_ID(), 'mec_start_date', true)
88
  ), array(
89
  'date' => get_post_meta(get_the_ID(), 'mec_end_date', true)
90
- ), $date_format); ?>)</span>
91
  <?php endif; ?>
92
  </span>
93
  <?php
@@ -101,7 +101,7 @@ $this->factory->params('footer', $javascript);
101
  <?php if(current_user_can('delete_post', get_the_ID())): ?>
102
  <span class="mec-fes-event-remove" data-confirmed="0" data-id="<?php echo get_the_ID(); ?>"><div class="wn-p-t-right"><div class="wn-p-t-text-content"><?php echo esc_html__('Remove Event', 'modern-events-calendar-lite'); ?></div><i></i></div></span>
103
  <?php endif; ?>
104
- <span class="mec-fes-event-view mec-event-status <?php echo sanitize_html_class($status['status_class']); ?>"><?php echo $status['label']; ?></span>
105
  <div class="mec-fes-export-wrapper mec-modal-wrap lity-hide" id="mec-fes-export-wrapper-<?php echo get_the_ID(); ?>" data-event-id="<?php echo get_the_ID(); ?>">
106
  <div class="mec-fes-btn-date">
107
  <?php $mec_repeat_info = get_post_meta(get_the_ID(), 'mec_repeat', true); if(isset($mec_repeat_info['status']) and $mec_repeat_info['status']): ?>
@@ -125,7 +125,7 @@ $this->factory->params('footer', $javascript);
125
  $attendees_count += $book->get_total_attendees($booking->ID);
126
  }
127
  ?>
128
- <li class="mec-export-list-item" data-time="<?php echo $date['start']['timestamp']; ?>"><?php echo $this->main->date_label($date['start'], $date['end'], $date_format); ?> <span class="mec-export-badge"><?php echo $attendees_count; ?></span></li>
129
  <?php
130
  }
131
  }
@@ -142,6 +142,6 @@ $this->factory->params('footer', $javascript);
142
  <?php endwhile; wp_reset_postdata(); // Restore original Post Data ?>
143
  </ul>
144
  <?php else: ?>
145
- <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>
146
  <?php endif; ?>
147
  </div>
69
  <div class="mec-fes-list">
70
  <?php if($query->have_posts()): ?>
71
  <div class="mec-fes-list-top-actions">
72
+ <a href="<?php echo esc_url($this->link_add_event()); ?>"><?php echo esc_html__('Add new', 'modern-events-calendar-lite'); ?></a>
73
  </div>
74
  <?php do_action('mec_fes_list'); ?>
75
  <ul>
83
  <span class="mec-event-title">
84
  <a href="<?php echo esc_url($this->link_edit_event(get_the_ID())); ?>"><?php the_title(); ?></a>
85
  <?php if($display_date): ?>
86
+ <span>(<?php echo MEC_kses::element($this->main->date_label(array(
87
  'date' => get_post_meta(get_the_ID(), 'mec_start_date', true)
88
  ), array(
89
  'date' => get_post_meta(get_the_ID(), 'mec_end_date', true)
90
+ ), $date_format)); ?>)</span>
91
  <?php endif; ?>
92
  </span>
93
  <?php
101
  <?php if(current_user_can('delete_post', get_the_ID())): ?>
102
  <span class="mec-fes-event-remove" data-confirmed="0" data-id="<?php echo get_the_ID(); ?>"><div class="wn-p-t-right"><div class="wn-p-t-text-content"><?php echo esc_html__('Remove Event', 'modern-events-calendar-lite'); ?></div><i></i></div></span>
103
  <?php endif; ?>
104
+ <span class="mec-fes-event-view mec-event-status <?php echo sanitize_html_class($status['status_class']); ?>"><?php echo esc_html($status['label']); ?></span>
105
  <div class="mec-fes-export-wrapper mec-modal-wrap lity-hide" id="mec-fes-export-wrapper-<?php echo get_the_ID(); ?>" data-event-id="<?php echo get_the_ID(); ?>">
106
  <div class="mec-fes-btn-date">
107
  <?php $mec_repeat_info = get_post_meta(get_the_ID(), 'mec_repeat', true); if(isset($mec_repeat_info['status']) and $mec_repeat_info['status']): ?>
125
  $attendees_count += $book->get_total_attendees($booking->ID);
126
  }
127
  ?>
128
+ <li class="mec-export-list-item" data-time="<?php echo esc_attr($date['start']['timestamp']); ?>"><?php echo MEC_kses::element($this->main->date_label($date['start'], $date['end'], $date_format)); ?> <span class="mec-export-badge"><?php echo esc_html($attendees_count); ?></span></li>
129
  <?php
130
  }
131
  }
142
  <?php endwhile; wp_reset_postdata(); // Restore original Post Data ?>
143
  </ul>
144
  <?php else: ?>
145
+ <p><?php echo sprintf(__('No events found! %s', 'modern-events-calendar-lite'), '<a href="'.$this->link_add_event().'">'.esc_html__('Add new', 'modern-events-calendar-lite').'</a>'); ?></p>
146
  <?php endif; ?>
147
  </div>
app/features/fes/message.php CHANGED
@@ -3,5 +3,5 @@
3
  defined('MECEXEC') or die();
4
  ?>
5
  <div class="mec-fes-message">
6
- <p><?php echo $message; ?></p>
7
  </div>
3
  defined('MECEXEC') or die();
4
  ?>
5
  <div class="mec-fes-message">
6
+ <p><?php echo MEC_kses::element($message); ?></p>
7
  </div>
app/features/ix.php CHANGED
@@ -96,7 +96,7 @@ class MEC_feature_ix extends MEC_base
96
  */
97
  public function menus()
98
  {
99
- add_submenu_page('mec-intro', __('MEC - Import / Export', 'modern-events-calendar-lite'), __('Import / Export', 'modern-events-calendar-lite'), 'mec_import_export', 'MEC-ix', array($this, 'ix'));
100
  }
101
 
102
  /**
@@ -129,7 +129,7 @@ class MEC_feature_ix extends MEC_base
129
 
130
  ob_start();
131
  include $path;
132
- echo $output = ob_get_clean();
133
  }
134
 
135
  /**
@@ -141,7 +141,7 @@ class MEC_feature_ix extends MEC_base
141
  {
142
  // Current Action
143
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
144
- $this->ix = isset($_POST['ix']) ? $_POST['ix'] : array();
145
 
146
  if($this->action == 'save-sync-options')
147
  {
@@ -162,7 +162,7 @@ class MEC_feature_ix extends MEC_base
162
 
163
  ob_start();
164
  include $path;
165
- echo $output = ob_get_clean();
166
  }
167
 
168
  /**
@@ -174,11 +174,11 @@ class MEC_feature_ix extends MEC_base
174
  {
175
  // Current Action
176
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
177
- $this->ix = isset($_POST['ix']) ? $_POST['ix'] : array();
178
 
179
  $this->response = array();
180
 
181
- $nonce = (isset($_POST['_wpnonce']) ? $_POST['_wpnonce'] : '');
182
  if(wp_verify_nonce($nonce, 'mec_import_start_upload'))
183
  {
184
  if(in_array($this->action, array('import-start-xml', 'import-start-ics'))) $this->response = $this->import_start();
@@ -190,7 +190,7 @@ class MEC_feature_ix extends MEC_base
190
 
191
  ob_start();
192
  include $path;
193
- echo $output = ob_get_clean();
194
  }
195
 
196
  public function import_start_bookings()
@@ -198,12 +198,12 @@ class MEC_feature_ix extends MEC_base
198
  $feed_file = $_FILES['feed'];
199
 
200
  // File is not uploaded
201
- if(!isset($feed_file['name']) or (isset($feed_file['name']) and trim($feed_file['name']) == '')) return array('success' => 0, 'message' => __('Please upload a CSV file.', 'modern-events-calendar-lite'));
202
 
203
  // File name validation
204
  $name_ex = explode('.', $feed_file['name']);
205
  $name_end = end($name_ex);
206
- if($name_end != 'csv') return array('success' => 0, 'message' => __('Please upload a CSV file.', 'modern-events-calendar-lite'));
207
 
208
  // Upload the File
209
  $upload_dir = wp_upload_dir();
@@ -212,12 +212,12 @@ class MEC_feature_ix extends MEC_base
212
  $uploaded = move_uploaded_file($feed_file['tmp_name'], $target_path);
213
 
214
  // Error on Upload
215
- if(!$uploaded) return array('success' => 0, 'message' => __("An error occurred during the file upload! Please check permissions!", 'modern-events-calendar-lite'));
216
 
217
  if($type = mime_content_type($target_path) and $type == 'text/x-php')
218
  {
219
  unlink($target_path);
220
- return array('success' => 0, 'message' => __("Please upload a CSV file.", 'modern-events-calendar-lite'));
221
  }
222
 
223
  $bookings = array();
@@ -271,13 +271,13 @@ class MEC_feature_ix extends MEC_base
271
  $email = $data[10];
272
 
273
  $confirmed_label = $data[12];
274
- if($confirmed_label == __('Confirmed', 'modern-events-calendar-lite')) $confirmed = 1;
275
- elseif($confirmed_label == __('Rejected', 'modern-events-calendar-lite')) $confirmed = -1;
276
  else $confirmed = 0;
277
 
278
  $verified_label = $data[13];
279
- if($verified_label == __('Verified', 'modern-events-calendar-lite')) $verified = 1;
280
- elseif($verified_label == __('Canceled', 'modern-events-calendar-lite')) $verified = -1;
281
  else $verified = 0;
282
 
283
  $other_dates_str = $data[14];
@@ -440,7 +440,7 @@ class MEC_feature_ix extends MEC_base
440
  // Delete File
441
  unlink($target_path);
442
 
443
- return array('success' => (count($bookings) ? 1 : 0), 'message' => (count($bookings) ? __('The bookings are imported successfully!', 'modern-events-calendar-lite') : __('No bookings found to import!', 'modern-events-calendar-lite')));
444
  }
445
 
446
  public function import_start()
@@ -448,15 +448,15 @@ class MEC_feature_ix extends MEC_base
448
  $feed_file = $_FILES['feed'];
449
 
450
  // File is not uploaded
451
- 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'));
452
 
453
  // File name validation
454
  $ex = explode('.', $feed_file['name']);
455
  $name_end = end($ex);
456
- if(!in_array($name_end, array('xml', 'ics'))) return array('success' => 0, 'message' => __('Please upload an XML or an ICS file.', 'modern-events-calendar-lite'));
457
 
458
  // File Type is not valid
459
- 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'));
460
 
461
  // Upload the File
462
  $upload_dir = wp_upload_dir();
@@ -465,12 +465,12 @@ class MEC_feature_ix extends MEC_base
465
  $uploaded = move_uploaded_file($feed_file['tmp_name'], $target_path);
466
 
467
  // Error on Upload
468
- if(!$uploaded) return array('success' => 0, 'message' => __("An error occurred during the file upload! Please check permissions!", 'modern-events-calendar-lite'));
469
 
470
  if($type = mime_content_type($target_path) and $type == 'text/x-php')
471
  {
472
  unlink($target_path);
473
- return array('success' => 0, 'message' => __("Please upload an XML or an ICS file.", 'modern-events-calendar-lite'));
474
  }
475
 
476
  // Import
@@ -479,7 +479,7 @@ class MEC_feature_ix extends MEC_base
479
  // Delete File
480
  unlink($target_path);
481
 
482
- return array('success' => 1, 'message' => __('The events are imported successfully!', 'modern-events-calendar-lite'));
483
  }
484
 
485
  public function import_do($feed)
@@ -1264,7 +1264,7 @@ class MEC_feature_ix extends MEC_base
1264
  {
1265
  // Current Action
1266
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
1267
- $this->ix = isset($_POST['ix']) ? $_POST['ix'] : array();
1268
 
1269
  $this->response = array();
1270
  if($this->action == 'thirdparty-import-start') $this->response = $this->thirdparty_import_start();
@@ -1274,7 +1274,7 @@ class MEC_feature_ix extends MEC_base
1274
 
1275
  ob_start();
1276
  include $path;
1277
- echo $output = ob_get_clean();
1278
  }
1279
 
1280
  public function thirdparty_import_start()
@@ -3306,7 +3306,7 @@ class MEC_feature_ix extends MEC_base
3306
 
3307
  ob_start();
3308
  include $path;
3309
- echo $output = ob_get_clean();
3310
  }
3311
 
3312
  /**
@@ -3318,7 +3318,7 @@ class MEC_feature_ix extends MEC_base
3318
  {
3319
  // Current Action
3320
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
3321
- $this->ix = isset($_POST['ix']) ? $_POST['ix'] : array();
3322
 
3323
  $this->response = array();
3324
  if($this->action == 'google-calendar-import-start') $this->response = $this->g_calendar_import_start();
@@ -3328,7 +3328,7 @@ class MEC_feature_ix extends MEC_base
3328
 
3329
  ob_start();
3330
  include $path;
3331
- echo $output = ob_get_clean();
3332
  }
3333
 
3334
  public function g_calendar_import_start()
@@ -3374,10 +3374,16 @@ class MEC_feature_ix extends MEC_base
3374
  $title = $event->getSummary();
3375
  if(trim($title) == '') continue;
3376
 
3377
- // Import Only Main Events
3378
- if($event->getRecurringEventId()) continue;
3379
 
3380
- $data['events'][] = array('id'=>$event->id, 'title'=>$title, 'start'=>$event->getStart(), 'end'=>$event->getEnd());
 
 
 
 
 
 
 
3381
  }
3382
 
3383
  $data['count'] = count($data['events']);
@@ -3393,7 +3399,7 @@ class MEC_feature_ix extends MEC_base
3393
 
3394
  public function g_calendar_import_do()
3395
  {
3396
- $g_events = isset($_POST['g-events']) ? $_POST['g-events'] : array();
3397
  if(!count($g_events)) return array('success'=>0, 'error'=>__('Please select events to import!', 'modern-events-calendar-lite'));
3398
 
3399
  $api_key = isset($this->ix['google_import_api_key']) ? $this->ix['google_import_api_key'] : NULL;
@@ -3814,7 +3820,7 @@ class MEC_feature_ix extends MEC_base
3814
  {
3815
  // Current Action
3816
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
3817
- $this->ix = isset($_POST['ix']) ? $_POST['ix'] : array();
3818
 
3819
  $this->response = array();
3820
  if($this->action == 'meetup-import-start') $this->response = $this->meetup_import_start();
@@ -3824,7 +3830,7 @@ class MEC_feature_ix extends MEC_base
3824
 
3825
  ob_start();
3826
  include $path;
3827
- echo $output = ob_get_clean();
3828
  }
3829
 
3830
  public function meetup_import_start()
@@ -3889,7 +3895,7 @@ class MEC_feature_ix extends MEC_base
3889
 
3890
  public function meetup_import_do()
3891
  {
3892
- $m_events = isset($_POST['m-events']) ? $_POST['m-events'] : array();
3893
  if(!count($m_events)) return array('success'=>0, 'error'=>__('Please select events to import!', 'modern-events-calendar-lite'));
3894
 
3895
  $api_key = isset($this->ix['meetup_api_key']) ? $this->ix['meetup_api_key'] : NULL;
@@ -4198,7 +4204,7 @@ class MEC_feature_ix extends MEC_base
4198
  header('Content-type: application/force-download; charset=utf-8');
4199
  header('Content-Disposition: attachment; filename="mec-events-'.date('YmdTHi').'.ics"');
4200
 
4201
- echo $ical_calendar;
4202
  exit;
4203
 
4204
  break;
@@ -4232,7 +4238,7 @@ class MEC_feature_ix extends MEC_base
4232
  header('Content-type: application/force-download; charset=utf-8');
4233
  header('Content-Disposition: attachment; filename="mec-events-'.date('YmdTHi').'.xml"');
4234
 
4235
- echo $xml_feed;
4236
  exit;
4237
 
4238
  break;
@@ -4293,7 +4299,7 @@ class MEC_feature_ix extends MEC_base
4293
 
4294
  public function g_calendar_export_authenticate()
4295
  {
4296
- $ix = isset($_POST['ix']) ? $_POST['ix'] : array();
4297
 
4298
  $client_id = isset($ix['google_export_client_id']) ? $ix['google_export_client_id'] : NULL;
4299
  $client_secret = isset($ix['google_export_client_secret']) ? $ix['google_export_client_secret'] : NULL;
@@ -4323,7 +4329,7 @@ class MEC_feature_ix extends MEC_base
4323
  $this->main->response(array('success'=>0, 'message'=>$ex->getMessage()));
4324
  }
4325
 
4326
- $this->main->response(array('success'=>1, 'message'=>sprintf(__('All seems good! Please click %s to authenticate your app.', 'modern-events-calendar-lite'), '<a href="'.$auth_url.'">'.__('here', 'modern-events-calendar-lite').'</a>')));
4327
  }
4328
 
4329
  public function g_calendar_export_get_token()
@@ -4360,15 +4366,15 @@ class MEC_feature_ix extends MEC_base
4360
  }
4361
  catch(Exception $ex)
4362
  {
4363
- echo $ex->getMessage();
4364
  exit;
4365
  }
4366
  }
4367
 
4368
  public function g_calendar_export_do()
4369
  {
4370
- $mec_event_ids = (isset($_POST['mec-events']) ? $_POST['mec-events'] : array());
4371
- $export_attendees = (isset($_POST['export_attendees']) ? $_POST['export_attendees'] : 0);
4372
 
4373
  $ix = $this->main->get_ix_options();
4374
 
@@ -4556,7 +4562,7 @@ class MEC_feature_ix extends MEC_base
4556
  {
4557
  // Current Action
4558
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
4559
- $this->ix = isset($_POST['ix']) ? $_POST['ix'] : array();
4560
 
4561
  $this->response = array();
4562
  if($this->action == 'facebook-calendar-import-start') $this->response = $this->f_calendar_import_start();
@@ -4566,7 +4572,7 @@ class MEC_feature_ix extends MEC_base
4566
 
4567
  ob_start();
4568
  include $path;
4569
- echo $output = ob_get_clean();
4570
  }
4571
 
4572
  public function f_calendar_import_start()
@@ -4585,7 +4591,7 @@ class MEC_feature_ix extends MEC_base
4585
  $fb_page_id = isset($fb_page['id']) ? $fb_page['id'] : 0;
4586
  if(!$fb_page_id)
4587
  {
4588
- $message = __("We were not able to recognize your Facebook page. Please check again and provide a valid link.", 'modern-events-calendar-lite');
4589
  if(isset($fb_page['error']) and isset($fb_page['error']['message'])) $message = $fb_page['error']['message'];
4590
 
4591
  return array('success'=>0, 'message'=>$message);
@@ -4617,7 +4623,7 @@ class MEC_feature_ix extends MEC_base
4617
 
4618
  public function f_calendar_import_do()
4619
  {
4620
- $f_events = isset($_POST['f-events']) ? $_POST['f-events'] : array();
4621
  if(!count($f_events)) return array('success'=>0, 'message'=>__('Please select events to import!', 'modern-events-calendar-lite'));
4622
 
4623
  $fb_page_link = isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : NULL;
96
  */
97
  public function menus()
98
  {
99
+ add_submenu_page('mec-intro', esc_html__('MEC - Import / Export', 'modern-events-calendar-lite'), esc_html__('Import / Export', 'modern-events-calendar-lite'), 'mec_import_export', 'MEC-ix', array($this, 'ix'));
100
  }
101
 
102
  /**
129
 
130
  ob_start();
131
  include $path;
132
+ echo MEC_kses::full(ob_get_clean());
133
  }
134
 
135
  /**
141
  {
142
  // Current Action
143
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
144
+ $this->ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
145
 
146
  if($this->action == 'save-sync-options')
147
  {
162
 
163
  ob_start();
164
  include $path;
165
+ echo MEC_kses::full(ob_get_clean());
166
  }
167
 
168
  /**
174
  {
175
  // Current Action
176
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
177
+ $this->ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
178
 
179
  $this->response = array();
180
 
181
+ $nonce = (isset($_POST['_wpnonce']) ? sanitize_text_field($_POST['_wpnonce']) : '');
182
  if(wp_verify_nonce($nonce, 'mec_import_start_upload'))
183
  {
184
  if(in_array($this->action, array('import-start-xml', 'import-start-ics'))) $this->response = $this->import_start();
190
 
191
  ob_start();
192
  include $path;
193
+ echo MEC_kses::full(ob_get_clean());
194
  }
195
 
196
  public function import_start_bookings()
198
  $feed_file = $_FILES['feed'];
199
 
200
  // File is not uploaded
201
+ if(!isset($feed_file['name']) or (isset($feed_file['name']) and trim($feed_file['name']) == '')) return array('success' => 0, 'message' => esc_html__('Please upload a CSV file.', 'modern-events-calendar-lite'));
202
 
203
  // File name validation
204
  $name_ex = explode('.', $feed_file['name']);
205
  $name_end = end($name_ex);
206
+ if($name_end != 'csv') return array('success' => 0, 'message' => esc_html__('Please upload a CSV file.', 'modern-events-calendar-lite'));
207
 
208
  // Upload the File
209
  $upload_dir = wp_upload_dir();
212
  $uploaded = move_uploaded_file($feed_file['tmp_name'], $target_path);
213
 
214
  // Error on Upload
215
+ if(!$uploaded) return array('success' => 0, 'message' => esc_html__("An error occurred during the file upload! Please check permissions!", 'modern-events-calendar-lite'));
216
 
217
  if($type = mime_content_type($target_path) and $type == 'text/x-php')
218
  {
219
  unlink($target_path);
220
+ return array('success' => 0, 'message' => esc_html__("Please upload a CSV file.", 'modern-events-calendar-lite'));
221
  }
222
 
223
  $bookings = array();
271
  $email = $data[10];
272
 
273
  $confirmed_label = $data[12];
274
+ if($confirmed_label == esc_html__('Confirmed', 'modern-events-calendar-lite')) $confirmed = 1;
275
+ elseif($confirmed_label == esc_html__('Rejected', 'modern-events-calendar-lite')) $confirmed = -1;
276
  else $confirmed = 0;
277
 
278
  $verified_label = $data[13];
279
+ if($verified_label == esc_html__('Verified', 'modern-events-calendar-lite')) $verified = 1;
280
+ elseif($verified_label == esc_html__('Canceled', 'modern-events-calendar-lite')) $verified = -1;
281
  else $verified = 0;
282
 
283
  $other_dates_str = $data[14];
440
  // Delete File
441
  unlink($target_path);
442
 
443
+ return array('success' => (count($bookings) ? 1 : 0), 'message' => (count($bookings) ? esc_html__('The bookings are imported successfully!', 'modern-events-calendar-lite') : esc_html__('No bookings found to import!', 'modern-events-calendar-lite')));
444
  }
445
 
446
  public function import_start()
448
  $feed_file = $_FILES['feed'];
449
 
450
  // File is not uploaded
451
+ if(!isset($feed_file['name']) or (isset($feed_file['name']) and trim($feed_file['name']) == '')) return array('success' => 0, 'message' => esc_html__('Please upload the feed file.', 'modern-events-calendar-lite'));
452
 
453
  // File name validation
454
  $ex = explode('.', $feed_file['name']);
455
  $name_end = end($ex);
456
+ if(!in_array($name_end, array('xml', 'ics'))) return array('success' => 0, 'message' => esc_html__('Please upload an XML or an ICS file.', 'modern-events-calendar-lite'));
457
 
458
  // File Type is not valid
459
+ 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' => esc_html__('The file type should be XML or ICS.', 'modern-events-calendar-lite'));
460
 
461
  // Upload the File
462
  $upload_dir = wp_upload_dir();
465
  $uploaded = move_uploaded_file($feed_file['tmp_name'], $target_path);
466
 
467
  // Error on Upload
468
+ if(!$uploaded) return array('success' => 0, 'message' => esc_html__("An error occurred during the file upload! Please check permissions!", 'modern-events-calendar-lite'));
469
 
470
  if($type = mime_content_type($target_path) and $type == 'text/x-php')
471
  {
472
  unlink($target_path);
473
+ return array('success' => 0, 'message' => esc_html__("Please upload an XML or an ICS file.", 'modern-events-calendar-lite'));
474
  }
475
 
476
  // Import
479
  // Delete File
480
  unlink($target_path);
481
 
482
+ return array('success' => 1, 'message' => esc_html__('The events are imported successfully!', 'modern-events-calendar-lite'));
483
  }
484
 
485
  public function import_do($feed)
1264
  {
1265
  // Current Action
1266
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
1267
+ $this->ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
1268
 
1269
  $this->response = array();
1270
  if($this->action == 'thirdparty-import-start') $this->response = $this->thirdparty_import_start();
1274
 
1275
  ob_start();
1276
  include $path;
1277
+ echo MEC_kses::full(ob_get_clean());
1278
  }
1279
 
1280
  public function thirdparty_import_start()
3306
 
3307
  ob_start();
3308
  include $path;
3309
+ echo MEC_kses::full(ob_get_clean());
3310
  }
3311
 
3312
  /**
3318
  {
3319
  // Current Action
3320
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
3321
+ $this->ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
3322
 
3323
  $this->response = array();
3324
  if($this->action == 'google-calendar-import-start') $this->response = $this->g_calendar_import_start();
3328
 
3329
  ob_start();
3330
  include $path;
3331
+ echo MEC_kses::full(ob_get_clean());
3332
  }
3333
 
3334
  public function g_calendar_import_start()
3374
  $title = $event->getSummary();
3375
  if(trim($title) == '') continue;
3376
 
3377
+ $recurring_event_id = $event->getRecurringEventId();
 
3378
 
3379
+ // Update Date & Time
3380
+ if(isset($data['events'][$recurring_event_id]))
3381
+ {
3382
+ $data['events'][$recurring_event_id]['start'] = $event->getStart();
3383
+ $data['events'][$recurring_event_id]['end'] = $event->getEnd();
3384
+ }
3385
+ // Import Only Main Events
3386
+ elseif(!$recurring_event_id) $data['events'][$event->id] = array('id'=>$event->id, 'title'=>$title, 'start'=>$event->getStart(), 'end'=>$event->getEnd());
3387
  }
3388
 
3389
  $data['count'] = count($data['events']);
3399
 
3400
  public function g_calendar_import_do()
3401
  {
3402
+ $g_events = ((isset($_POST['g-events']) and is_array($_POST['g-events'])) ? array_map('sanitize_text_field', $_POST['g-events']) : array());
3403
  if(!count($g_events)) return array('success'=>0, 'error'=>__('Please select events to import!', 'modern-events-calendar-lite'));
3404
 
3405
  $api_key = isset($this->ix['google_import_api_key']) ? $this->ix['google_import_api_key'] : NULL;
3820
  {
3821
  // Current Action
3822
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
3823
+ $this->ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
3824
 
3825
  $this->response = array();
3826
  if($this->action == 'meetup-import-start') $this->response = $this->meetup_import_start();
3830
 
3831
  ob_start();
3832
  include $path;
3833
+ echo MEC_kses::full(ob_get_clean());
3834
  }
3835
 
3836
  public function meetup_import_start()
3895
 
3896
  public function meetup_import_do()
3897
  {
3898
+ $m_events = ((isset($_POST['m-events']) and is_array($_POST['m-events'])) ? array_map('sanitize_text_field', $_POST['m-events']) : array());
3899
  if(!count($m_events)) return array('success'=>0, 'error'=>__('Please select events to import!', 'modern-events-calendar-lite'));
3900
 
3901
  $api_key = isset($this->ix['meetup_api_key']) ? $this->ix['meetup_api_key'] : NULL;
4204
  header('Content-type: application/force-download; charset=utf-8');
4205
  header('Content-Disposition: attachment; filename="mec-events-'.date('YmdTHi').'.ics"');
4206
 
4207
+ echo MEC_kses::full($ical_calendar);
4208
  exit;
4209
 
4210
  break;
4238
  header('Content-type: application/force-download; charset=utf-8');
4239
  header('Content-Disposition: attachment; filename="mec-events-'.date('YmdTHi').'.xml"');
4240
 
4241
+ echo MEC_kses::full($xml_feed);
4242
  exit;
4243
 
4244
  break;
4299
 
4300
  public function g_calendar_export_authenticate()
4301
  {
4302
+ $ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
4303
 
4304
  $client_id = isset($ix['google_export_client_id']) ? $ix['google_export_client_id'] : NULL;
4305
  $client_secret = isset($ix['google_export_client_secret']) ? $ix['google_export_client_secret'] : NULL;
4329
  $this->main->response(array('success'=>0, 'message'=>$ex->getMessage()));
4330
  }
4331
 
4332
+ $this->main->response(array('success'=>1, 'message'=>sprintf(__('All seems good! Please click %s to authenticate your app.', 'modern-events-calendar-lite'), '<a href="'.$auth_url.'">'.esc_html__('here', 'modern-events-calendar-lite').'</a>')));
4333
  }
4334
 
4335
  public function g_calendar_export_get_token()
4366
  }
4367
  catch(Exception $ex)
4368
  {
4369
+ echo esc_html($ex->getMessage());
4370
  exit;
4371
  }
4372
  }
4373
 
4374
  public function g_calendar_export_do()
4375
  {
4376
+ $mec_event_ids = ((isset($_POST['mec-events']) and is_array($_POST['mec-events'])) ? array_map('sanitize_text_field', $_POST['mec-events']) : array());
4377
+ $export_attendees = (isset($_POST['export_attendees']) ? sanitize_text_field($_POST['export_attendees']) : 0);
4378
 
4379
  $ix = $this->main->get_ix_options();
4380
 
4562
  {
4563
  // Current Action
4564
  $this->action = isset($_POST['mec-ix-action']) ? sanitize_text_field($_POST['mec-ix-action']) : '';
4565
+ $this->ix = ((isset($_POST['ix']) and is_array($_POST['ix'])) ? array_map('sanitize_text_field', $_POST['ix']) : array());
4566
 
4567
  $this->response = array();
4568
  if($this->action == 'facebook-calendar-import-start') $this->response = $this->f_calendar_import_start();
4572
 
4573
  ob_start();
4574
  include $path;
4575
+ echo MEC_kses::full(ob_get_clean());
4576
  }
4577
 
4578
  public function f_calendar_import_start()
4591
  $fb_page_id = isset($fb_page['id']) ? $fb_page['id'] : 0;
4592
  if(!$fb_page_id)
4593
  {
4594
+ $message = esc_html__("We were not able to recognize your Facebook page. Please check again and provide a valid link.", 'modern-events-calendar-lite');
4595
  if(isset($fb_page['error']) and isset($fb_page['error']['message'])) $message = $fb_page['error']['message'];
4596
 
4597
  return array('success'=>0, 'message'=>$message);
4623
 
4624
  public function f_calendar_import_do()
4625
  {
4626
+ $f_events = ((isset($_POST['f-events']) and is_array($_POST['f-events'])) ? array_map('sanitize_text_field', $_POST['f-events']) : array());
4627
  if(!count($f_events)) return array('success'=>0, 'message'=>__('Please select events to import!', 'modern-events-calendar-lite'));
4628
 
4629
  $fb_page_link = isset($this->ix['facebook_import_page_link']) ? $this->ix['facebook_import_page_link'] : NULL;
app/features/ix/export.php CHANGED
@@ -8,54 +8,54 @@ $events = $this->main->get_events('-1');
8
  $settings = $this->main->get_settings();
9
  ?>
10
  <div class="wrap" id="mec-wrap">
11
- <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
12
  <h2 class="nav-tab-wrapper">
13
- <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
18
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab nav-tab-active"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
19
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
20
- <a href="<?php echo esc_url($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-all-events">
25
- <h3><?php _e('Export all events to file', 'modern-events-calendar-lite'); ?></h3>
26
- <p class="description"><?php _e("This will export all of your website events' data into your desired format.", 'modern-events-calendar-lite'); ?></p>
27
  <ul>
28
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ical'))); ?>"><?php _e('iCal', 'modern-events-calendar-lite'); ?></a></li>
29
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'csv'))); ?>"><?php _e('CSV', 'modern-events-calendar-lite'); ?></a></li>
30
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ms-excel'))); ?>"><?php _e('MS Excel', 'modern-events-calendar-lite'); ?></a></li>
31
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'xml'))); ?>"><?php _e('XML', 'modern-events-calendar-lite'); ?></a></li>
32
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'json'))); ?>"><?php _e('JSON', 'modern-events-calendar-lite'); ?></a></li>
33
  </ul>
34
  </div>
35
  <div class="mec-export-certain-events">
36
- <h3><?php _e('Export certain events', 'modern-events-calendar-lite'); ?></h3>
37
- <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>
38
  </div>
39
 
40
  <?php if(isset($settings['ical_feed']) and $settings['ical_feed']): ?>
41
  <div class="mec-export-certain-events">
42
- <h3><?php _e('iCal Feed', 'modern-events-calendar-lite'); ?></h3>
43
  <p class="description"><?php echo sprintf(esc_html__('You can use %s URL to export all events. Also you can include the URL into your website so your website users can subscribe to events.', 'modern-events-calendar-lite'), '<a href="'.trim($this->main->URL('site'), '/ ').'/?mec-ical-feed=1" target="_blank">'.trim($this->main->URL('site'), '/ ').'/?mec-ical-feed=1</a>'); ?></p>
44
  </div>
45
  <?php endif; ?>
46
 
47
  <hr>
48
  <div class="mec-export-all-bookings">
49
- <h3><?php _e('Export all bookings to file', 'modern-events-calendar-lite'); ?></h3>
50
- <p class="description"><?php _e("This will export all of your website bookings' data into your desired format.", 'modern-events-calendar-lite'); ?></p>
51
  <ul>
52
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-bookings', 'format'=>'csv'))); ?>"><?php _e('CSV', 'modern-events-calendar-lite'); ?></a></li>
53
- <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-bookings', 'format'=>'ms-excel'))); ?>"><?php _e('MS Excel', 'modern-events-calendar-lite'); ?></a></li>
54
  </ul>
55
  </div>
56
  <div class="mec-export-certain-bookings">
57
- <h3><?php _e('Export certain bookings', 'modern-events-calendar-lite'); ?></h3>
58
- <p class="description"><?php echo sprintf(__("For exporting bookings, 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>
59
  </div>
60
 
61
  <?php
8
  $settings = $this->main->get_settings();
9
  ?>
10
  <div class="wrap" id="mec-wrap">
11
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
12
  <h2 class="nav-tab-wrapper">
13
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
18
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
19
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
20
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('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-all-events">
25
+ <h3><?php esc_html_e('Export all events to file', 'modern-events-calendar-lite'); ?></h3>
26
+ <p class="description"><?php esc_html_e("This will export all of your website events' data into your desired format.", 'modern-events-calendar-lite'); ?></p>
27
  <ul>
28
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ical'))); ?>"><?php esc_html_e('iCal', 'modern-events-calendar-lite'); ?></a></li>
29
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'csv'))); ?>"><?php esc_html_e('CSV', 'modern-events-calendar-lite'); ?></a></li>
30
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'ms-excel'))); ?>"><?php esc_html_e('MS Excel', 'modern-events-calendar-lite'); ?></a></li>
31
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'xml'))); ?>"><?php esc_html_e('XML', 'modern-events-calendar-lite'); ?></a></li>
32
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-events', 'format'=>'json'))); ?>"><?php esc_html_e('JSON', 'modern-events-calendar-lite'); ?></a></li>
33
  </ul>
34
  </div>
35
  <div class="mec-export-certain-events">
36
+ <h3><?php esc_html_e('Export certain events', 'modern-events-calendar-lite'); ?></h3>
37
+ <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">'.esc_html__('Events', 'modern-events-calendar-lite').'</a>'); ?></p>
38
  </div>
39
 
40
  <?php if(isset($settings['ical_feed']) and $settings['ical_feed']): ?>
41
  <div class="mec-export-certain-events">
42
+ <h3><?php esc_html_e('iCal Feed', 'modern-events-calendar-lite'); ?></h3>
43
  <p class="description"><?php echo sprintf(esc_html__('You can use %s URL to export all events. Also you can include the URL into your website so your website users can subscribe to events.', 'modern-events-calendar-lite'), '<a href="'.trim($this->main->URL('site'), '/ ').'/?mec-ical-feed=1" target="_blank">'.trim($this->main->URL('site'), '/ ').'/?mec-ical-feed=1</a>'); ?></p>
44
  </div>
45
  <?php endif; ?>
46
 
47
  <hr>
48
  <div class="mec-export-all-bookings">
49
+ <h3><?php esc_html_e('Export all bookings to file', 'modern-events-calendar-lite'); ?></h3>
50
+ <p class="description"><?php esc_html_e("This will export all of your website bookings' data into your desired format.", 'modern-events-calendar-lite'); ?></p>
51
  <ul>
52
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-bookings', 'format'=>'csv'))); ?>"><?php esc_html_e('CSV', 'modern-events-calendar-lite'); ?></a></li>
53
+ <li><a href="<?php echo esc_url($this->main->add_qs_vars(array('mec-ix-action'=>'export-bookings', 'format'=>'ms-excel'))); ?>"><?php esc_html_e('MS Excel', 'modern-events-calendar-lite'); ?></a></li>
54
  </ul>
55
  </div>
56
  <div class="mec-export-certain-bookings">
57
+ <h3><?php esc_html_e('Export certain bookings', 'modern-events-calendar-lite'); ?></h3>
58
+ <p class="description"><?php echo sprintf(__("For exporting bookings, you can use bulk actions in %s page.", 'modern-events-calendar-lite'), '<a href="'.$this->main->URL('backend').'edit.php?post_type=mec-books">'.esc_html__('Bookings', 'modern-events-calendar-lite').'</a>'); ?></p>
59
  </div>
60
 
61
  <?php
app/features/ix/export_g_calendar.php CHANGED
@@ -9,43 +9,43 @@ $ix_options = $this->main->get_ix_options();
9
  if(isset($ix_options['google_export_token']) && $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 esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($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 esc_url($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 esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
18
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
19
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
20
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
21
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
22
  </h2>
23
  <div class="mec-container">
24
  <div class="export-content w-clearfix extra">
25
  <div class="mec-export-events-g-calendar">
26
- <h3><?php _e('Add events to Google Calendar', 'modern-events-calendar-lite'); ?></h3>
27
- <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>
28
  <form id="mec_g_calendar_export_form_authenticate" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
29
  <div class="mec-form-row">
30
- <label class="mec-col-3" for="mec_ix_google_export_client_id"><?php _e('App Client ID', 'modern-events-calendar-lite'); ?></label>
31
  <div class="mec-col-4">
32
  <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'] : ''); ?>" />
33
  </div>
34
  </div>
35
  <div class="mec-form-row">
36
- <label class="mec-col-3" for="mec_ix_google_export_client_secret"><?php _e('App Client Secret', 'modern-events-calendar-lite'); ?></label>
37
  <div class="mec-col-4">
38
  <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'] : ''); ?>" />
39
  </div>
40
  </div>
41
  <div class="mec-form-row">
42
- <label class="mec-col-3" for="mec_ix_google_export_calendar_id"><?php _e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
43
  <div class="mec-col-4">
44
  <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'] : ''); ?>" />
45
  </div>
46
  </div>
47
  <div class="mec-options-fields">
48
- <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>
49
  </div>
50
  <p id="mec_ix_google_export_authenticate_message" class="mec-col-6 mec-util-hidden"></p>
51
  </form>
@@ -54,29 +54,29 @@ if(isset($ix_options['google_export_token']) && $ix_options['google_export_token
54
  <div>
55
  <form id="mec_g_calendar_export_form_do">
56
  <ul class="mec-select-deselect-actions" data-for="#mec_export_g_calendar_events">
57
- <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
58
- <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
59
- <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
60
  </ul>
61
  <ul id="mec_export_g_calendar_events">
62
  <?php foreach($events as $event): ?>
63
  <li>
64
  <label>
65
  <input type="checkbox" name="mec-events[]" value="<?php echo esc_attr($event->ID); ?>" checked="checked" />
66
- <strong><?php echo $event->post_title; ?></strong>
67
  </label>
68
  </li>
69
  <?php endforeach; ?>
70
  </ul>
71
  <div class="mec-options-fields" style="padding-top: 0;">
72
- <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
73
  <div class="mec-form-row">
74
  <label>
75
  <input type="checkbox" name="export_attendees" value="1" />
76
- <?php _e('Export Attendees', 'modern-events-calendar-lite'); ?>
77
  </label>
78
  </div>
79
- <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>
80
  </div>
81
  <p id="mec_ix_google_export_do_message" class="mec-col-6 mec-util-hidden"></p>
82
  </form>
9
  if(isset($ix_options['google_export_token']) && $ix_options['google_export_token']) $this->action = 'google-calendar-export-start';
10
  ?>
11
  <div class="wrap" id="mec-wrap">
12
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
13
  <h2 class="nav-tab-wrapper">
14
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
18
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
19
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
20
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
21
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
22
  </h2>
23
  <div class="mec-container">
24
  <div class="export-content w-clearfix extra">
25
  <div class="mec-export-events-g-calendar">
26
+ <h3><?php esc_html_e('Add events to Google Calendar', 'modern-events-calendar-lite'); ?></h3>
27
+ <p class="description"><?php esc_html_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>
28
  <form id="mec_g_calendar_export_form_authenticate" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
29
  <div class="mec-form-row">
30
+ <label class="mec-col-3" for="mec_ix_google_export_client_id"><?php esc_html_e('App Client ID', 'modern-events-calendar-lite'); ?></label>
31
  <div class="mec-col-4">
32
  <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'] : ''); ?>" />
33
  </div>
34
  </div>
35
  <div class="mec-form-row">
36
+ <label class="mec-col-3" for="mec_ix_google_export_client_secret"><?php esc_html_e('App Client Secret', 'modern-events-calendar-lite'); ?></label>
37
  <div class="mec-col-4">
38
  <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'] : ''); ?>" />
39
  </div>
40
  </div>
41
  <div class="mec-form-row">
42
+ <label class="mec-col-3" for="mec_ix_google_export_calendar_id"><?php esc_html_e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
43
  <div class="mec-col-4">
44
  <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'] : ''); ?>" />
45
  </div>
46
  </div>
47
  <div class="mec-options-fields">
48
+ <button id="mec_ix_google_export_authenticate_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Authenticate', 'modern-events-calendar-lite'); ?></button>
49
  </div>
50
  <p id="mec_ix_google_export_authenticate_message" class="mec-col-6 mec-util-hidden"></p>
51
  </form>
54
  <div>
55
  <form id="mec_g_calendar_export_form_do">
56
  <ul class="mec-select-deselect-actions" data-for="#mec_export_g_calendar_events">
57
+ <li data-action="select-all"><?php esc_html_e('Select All', 'modern-events-calendar-lite'); ?></li>
58
+ <li data-action="deselect-all"><?php esc_html_e('Deselect All', 'modern-events-calendar-lite'); ?></li>
59
+ <li data-action="toggle"><?php esc_html_e('Toggle', 'modern-events-calendar-lite'); ?></li>
60
  </ul>
61
  <ul id="mec_export_g_calendar_events">
62
  <?php foreach($events as $event): ?>
63
  <li>
64
  <label>
65
  <input type="checkbox" name="mec-events[]" value="<?php echo esc_attr($event->ID); ?>" checked="checked" />
66
+ <strong><?php echo esc_html($event->post_title); ?></strong>
67
  </label>
68
  </li>
69
  <?php endforeach; ?>
70
  </ul>
71
  <div class="mec-options-fields" style="padding-top: 0;">
72
+ <h4><?php esc_html_e('Import Options', 'modern-events-calendar-lite'); ?></h4>
73
  <div class="mec-form-row">
74
  <label>
75
  <input type="checkbox" name="export_attendees" value="1" />
76
+ <?php esc_html_e('Export Attendees', 'modern-events-calendar-lite'); ?>
77
  </label>
78
  </div>
79
+ <button id="mec_ix_google_export_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Add to Google Calendar', 'modern-events-calendar-lite'); ?></button>
80
  </div>
81
  <p id="mec_ix_google_export_do_message" class="mec-col-6 mec-util-hidden"></p>
82
  </form>
app/features/ix/import.php CHANGED
@@ -5,95 +5,95 @@ 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', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
- <a href="<?php echo esc_url($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 esc_url($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 esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab nav-tab-active"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
- <h3><?php _e('Import MEC XML Feed', 'modern-events-calendar-lite'); ?></h3>
22
  <form id="mec_import_xml_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST" enctype="multipart/form-data">
23
  <div class="mec-form-row">
24
- <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>
25
  </div>
26
  <div class="mec-form-row">
27
  <input type="file" name="feed" id="feed" title="<?php esc_attr_e('XML Feed', 'modern-events-calendar-lite'); ?>">
28
  <input type="hidden" name="mec-ix-action" value="import-start-xml">
29
  <?php wp_nonce_field('mec_import_start_upload'); ?>
30
- <button class="button button-primary mec-button-primary mec-btn-2"><?php _e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
31
  </div>
32
  </form>
33
 
34
  <?php if($this->action == 'import-start-xml'): ?>
35
  <div class="mec-ix-import-started">
36
  <?php if($this->response['success'] == 0): ?>
37
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
38
  <?php else: ?>
39
- <div class="mec-success"><?php echo $this->response['message']; ?></div>
40
  <?php endif; ?>
41
  </div>
42
  <?php endif; ?>
43
 
44
- <br><h3><?php _e('Import .ics File', 'modern-events-calendar-lite'); ?></h3>
45
  <?php if($this->getPRO()): ?>
46
  <form id="mec_import_ics_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST" enctype="multipart/form-data">
47
  <div class="mec-form-row">
48
- <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>
49
  </div>
50
  <div class="mec-form-row">
51
  <input type="file" name="feed" id="feed" title="<?php esc_attr_e('ICS Feed', 'modern-events-calendar-lite'); ?>">
52
  <input type="hidden" name="mec-ix-action" value="import-start-ics">
53
  <?php wp_nonce_field('mec_import_start_upload'); ?>
54
- <button class="button button-primary mec-button-primary mec-btn-2"><?php _e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
55
  </div>
56
  </form>
57
  <?php else: ?>
58
- <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>
59
  <?php endif; ?>
60
 
61
  <?php if($this->action == 'import-start-ics'): ?>
62
  <div class="mec-ix-import-started">
63
  <?php if($this->response['success'] == 0): ?>
64
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
65
  <?php else: ?>
66
- <div class="mec-success"><?php echo $this->response['message']; ?></div>
67
  <?php endif; ?>
68
  </div>
69
  <?php endif; ?>
70
 
71
  <?php do_action('mec_import_item', $this); ?>
72
 
73
- <br><h3><?php _e('Import Booking CSV File', 'modern-events-calendar-lite'); ?></h3>
74
  <?php if($this->getPRO()): ?>
75
  <form id="mec_import_csv_booking_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST" enctype="multipart/form-data">
76
  <div class="mec-form-row">
77
- <p><?php echo sprintf(__("You can export bookings from %s using the booking menu in source website. You need a CSV export and then you're able to simply import it using this form in to your target website.", 'modern-events-calendar-lite'), '<strong>'.__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
78
- <p style="color: red;"><?php echo __("Please note that you should create (or imports) events and tickets before importing the bookings otherwise booking won't import due to lack of data.", 'modern-events-calendar-lite'); ?></p>
79
  </div>
80
  <div class="mec-form-row">
81
  <input type="file" name="feed" id="feed" title="<?php esc_attr_e('CSV File', 'modern-events-calendar-lite'); ?>">
82
  <input type="hidden" name="mec-ix-action" value="import-start-bookings">
83
  <?php wp_nonce_field('mec_import_start_upload'); ?>
84
- <button class="button button-primary mec-button-primary mec-btn-2"><?php _e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
85
  </div>
86
  </form>
87
  <?php else: ?>
88
- <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>
89
  <?php endif; ?>
90
 
91
  <?php if($this->action == 'import-start-bookings'): ?>
92
  <div class="mec-ix-import-started">
93
  <?php if($this->response['success'] == 0): ?>
94
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
95
  <?php else: ?>
96
- <div class="mec-success"><?php echo $this->response['message']; ?></div>
97
  <?php endif; ?>
98
  </div>
99
  <?php endif; ?>
5
  $third_parties = $this->main->get_integrated_plugins_for_import();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
+ <h3><?php esc_html_e('Import MEC XML Feed', 'modern-events-calendar-lite'); ?></h3>
22
  <form id="mec_import_xml_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST" enctype="multipart/form-data">
23
  <div class="mec-form-row">
24
+ <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>'.esc_html__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
25
  </div>
26
  <div class="mec-form-row">
27
  <input type="file" name="feed" id="feed" title="<?php esc_attr_e('XML Feed', 'modern-events-calendar-lite'); ?>">
28
  <input type="hidden" name="mec-ix-action" value="import-start-xml">
29
  <?php wp_nonce_field('mec_import_start_upload'); ?>
30
+ <button class="button button-primary mec-button-primary mec-btn-2"><?php esc_html_e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
31
  </div>
32
  </form>
33
 
34
  <?php if($this->action == 'import-start-xml'): ?>
35
  <div class="mec-ix-import-started">
36
  <?php if($this->response['success'] == 0): ?>
37
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
38
  <?php else: ?>
39
+ <div class="mec-success"><?php echo MEC_kses::element($this->response['message']); ?></div>
40
  <?php endif; ?>
41
  </div>
42
  <?php endif; ?>
43
 
44
+ <br><h3><?php esc_html_e('Import .ics File', 'modern-events-calendar-lite'); ?></h3>
45
  <?php if($this->getPRO()): ?>
46
  <form id="mec_import_ics_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST" enctype="multipart/form-data">
47
  <div class="mec-form-row">
48
+ <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>'.esc_html__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
49
  </div>
50
  <div class="mec-form-row">
51
  <input type="file" name="feed" id="feed" title="<?php esc_attr_e('ICS Feed', 'modern-events-calendar-lite'); ?>">
52
  <input type="hidden" name="mec-ix-action" value="import-start-ics">
53
  <?php wp_nonce_field('mec_import_start_upload'); ?>
54
+ <button class="button button-primary mec-button-primary mec-btn-2"><?php esc_html_e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
55
  </div>
56
  </form>
57
  <?php else: ?>
58
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
59
  <?php endif; ?>
60
 
61
  <?php if($this->action == 'import-start-ics'): ?>
62
  <div class="mec-ix-import-started">
63
  <?php if($this->response['success'] == 0): ?>
64
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
65
  <?php else: ?>
66
+ <div class="mec-success"><?php echo MEC_kses::element($this->response['message']); ?></div>
67
  <?php endif; ?>
68
  </div>
69
  <?php endif; ?>
70
 
71
  <?php do_action('mec_import_item', $this); ?>
72
 
73
+ <br><h3><?php esc_html_e('Import Booking CSV File', 'modern-events-calendar-lite'); ?></h3>
74
  <?php if($this->getPRO()): ?>
75
  <form id="mec_import_csv_booking_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST" enctype="multipart/form-data">
76
  <div class="mec-form-row">
77
+ <p><?php echo sprintf(__("You can export bookings from %s using the booking menu in source website. You need a CSV export and then you're able to simply import it using this form in to your target website.", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
78
+ <p style="color: red;"><?php echo esc_html__("Please note that you should create (or imports) events and tickets before importing the bookings otherwise booking won't import due to lack of data.", 'modern-events-calendar-lite'); ?></p>
79
  </div>
80
  <div class="mec-form-row">
81
  <input type="file" name="feed" id="feed" title="<?php esc_attr_e('CSV File', 'modern-events-calendar-lite'); ?>">
82
  <input type="hidden" name="mec-ix-action" value="import-start-bookings">
83
  <?php wp_nonce_field('mec_import_start_upload'); ?>
84
+ <button class="button button-primary mec-button-primary mec-btn-2"><?php esc_html_e('Upload & Import', 'modern-events-calendar-lite'); ?></button>
85
  </div>
86
  </form>
87
  <?php else: ?>
88
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
89
  <?php endif; ?>
90
 
91
  <?php if($this->action == 'import-start-bookings'): ?>
92
  <div class="mec-ix-import-started">
93
  <?php if($this->response['success'] == 0): ?>
94
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
95
  <?php else: ?>
96
+ <div class="mec-success"><?php echo MEC_kses::element($this->response['message']); ?></div>
97
  <?php endif; ?>
98
  </div>
99
  <?php endif; ?>
app/features/ix/import_f_calendar.php CHANGED
@@ -5,57 +5,57 @@ 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', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
- <a href="<?php echo esc_url($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 esc_url($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 esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
  <?php if(version_compare(PHP_VERSION, '5.4.0', '<')): ?>
22
- <p class="mec-error"><?php _e('The Facebook SDK requires PHP version 5.4 or higher.', 'modern-events-calendar-lite'); ?></p>
23
  <?php else: ?>
24
  <div class="mec-facebook-import">
25
  <form id="mec_facebook_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
26
- <h3><?php _e('Import from Facebook Calendar', 'modern-events-calendar-lite'); ?></h3>
27
- <p class="description"><?php _e('Import all of your Facebook events into MEC.', 'modern-events-calendar-lite'); ?> <a href="https://webnus.net/dox/modern-events-calendar/import-facebook-events/" target="_blank"><?php _e('Documentation', 'modern-events-calendar-lite'); ?></a></p>
28
  <div class="mec-form-row">
29
- <label class="mec-col-3" for="mec_ix_facebook_app_token"><?php _e('Facebook Page Access Token', 'modern-events-calendar-lite'); ?></label>
30
  <div class="mec-col-4">
31
  <input type="text" id="mec_ix_facebook_app_token" name="ix[facebook_app_token]" value="<?php echo (isset($ix_options['facebook_app_token']) ? $ix_options['facebook_app_token'] : ''); ?>" />
32
  </div>
33
  </div>
34
  <div class="mec-form-row">
35
- <label class="mec-col-3" for="mec_ix_facebook_import_page_link"><?php _e('Facebook Page Link', 'modern-events-calendar-lite'); ?></label>
36
  <div class="mec-col-4">
37
  <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'] : ''); ?>" />
38
  </div>
39
  </div>
40
  <div class="mec-options-fields">
41
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-start" />
42
- <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>
43
  </div>
44
  </form>
45
  </div>
46
  <?php if($this->action == 'facebook-calendar-import-start'): ?>
47
  <div class="mec-ix-facebook-import-started">
48
  <?php if($this->response['success'] == 0): ?>
49
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
50
  <?php else: ?>
51
  <form id="mec_facebook_import_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
52
  <div class="mec-xi-facebook-import-events mec-options-fields">
53
- <h4><?php _e('Facebook Events', 'modern-events-calendar-lite'); ?></h4>
54
  <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>
55
  <ul class="mec-select-deselect-actions" data-for="#mec_import_f_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_import_f_calendar_events">
61
  <?php foreach($this->response['data']['events'] as $event): if(trim($event['name']) == '') continue; ?>
@@ -69,29 +69,29 @@ $ix_options = $this->main->get_ix_options();
69
  </ul>
70
  </div>
71
  <div class="mec-options-fields">
72
- <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
73
  <div class="mec-form-row">
74
  <label>
75
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
76
- <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
77
  </label>
78
  </div>
79
  <div class="mec-form-row">
80
  <label>
81
  <input type="checkbox" name="ix[import_link_event]" value="1" />
82
- <?php _e('Import Facebook Link as Event Link', 'modern-events-calendar-lite'); ?>
83
  </label>
84
  </div>
85
  <div class="mec-form-row">
86
  <label>
87
  <input type="checkbox" name="ix[import_link_more_info]" value="1" />
88
- <?php _e('Import Facebook Link as More Info Link', 'modern-events-calendar-lite'); ?>
89
  </label>
90
  </div>
91
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-do" />
92
  <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'] : ''); ?>" />
93
  <input type="hidden" name="ix[facebook_app_token]" value="<?php echo (isset($this->ix['facebook_app_token']) ? $this->ix['facebook_app_token'] : ''); ?>" />
94
- <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>
95
  </div>
96
  </form>
97
  <?php endif; ?>
@@ -99,7 +99,7 @@ $ix_options = $this->main->get_ix_options();
99
  <?php elseif($this->action == 'facebook-calendar-import-do'): ?>
100
  <div class="mec-col-6 mec-ix-facebook-import-do">
101
  <?php if($this->response['success'] == 0): ?>
102
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
103
  <?php else: ?>
104
  <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>
105
  <?php endif; ?>
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
  <?php if(version_compare(PHP_VERSION, '5.4.0', '<')): ?>
22
+ <p class="mec-error"><?php esc_html_e('The Facebook SDK requires PHP version 5.4 or higher.', 'modern-events-calendar-lite'); ?></p>
23
  <?php else: ?>
24
  <div class="mec-facebook-import">
25
  <form id="mec_facebook_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
26
+ <h3><?php esc_html_e('Import from Facebook Calendar', 'modern-events-calendar-lite'); ?></h3>
27
+ <p class="description"><?php esc_html_e('Import all of your Facebook events into MEC.', 'modern-events-calendar-lite'); ?> <a href="https://webnus.net/dox/modern-events-calendar/import-facebook-events/" target="_blank"><?php esc_html_e('Documentation', 'modern-events-calendar-lite'); ?></a></p>
28
  <div class="mec-form-row">
29
+ <label class="mec-col-3" for="mec_ix_facebook_app_token"><?php esc_html_e('Facebook Page Access Token', 'modern-events-calendar-lite'); ?></label>
30
  <div class="mec-col-4">
31
  <input type="text" id="mec_ix_facebook_app_token" name="ix[facebook_app_token]" value="<?php echo (isset($ix_options['facebook_app_token']) ? $ix_options['facebook_app_token'] : ''); ?>" />
32
  </div>
33
  </div>
34
  <div class="mec-form-row">
35
+ <label class="mec-col-3" for="mec_ix_facebook_import_page_link"><?php esc_html_e('Facebook Page Link', 'modern-events-calendar-lite'); ?></label>
36
  <div class="mec-col-4">
37
  <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'] : ''); ?>" />
38
  </div>
39
  </div>
40
  <div class="mec-options-fields">
41
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-start" />
42
+ <button id="mec_ix_facebook_import_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Start', 'modern-events-calendar-lite'); ?></button>
43
  </div>
44
  </form>
45
  </div>
46
  <?php if($this->action == 'facebook-calendar-import-start'): ?>
47
  <div class="mec-ix-facebook-import-started">
48
  <?php if($this->response['success'] == 0): ?>
49
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
50
  <?php else: ?>
51
  <form id="mec_facebook_import_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
52
  <div class="mec-xi-facebook-import-events mec-options-fields">
53
+ <h4><?php esc_html_e('Facebook Events', 'modern-events-calendar-lite'); ?></h4>
54
  <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>
55
  <ul class="mec-select-deselect-actions" data-for="#mec_import_f_calendar_events">
56
+ <li data-action="select-all"><?php esc_html_e('Select All', 'modern-events-calendar-lite'); ?></li>
57
+ <li data-action="deselect-all"><?php esc_html_e('Deselect All', 'modern-events-calendar-lite'); ?></li>
58
+ <li data-action="toggle"><?php esc_html_e('Toggle', 'modern-events-calendar-lite'); ?></li>
59
  </ul>
60
  <ul id="mec_import_f_calendar_events">
61
  <?php foreach($this->response['data']['events'] as $event): if(trim($event['name']) == '') continue; ?>
69
  </ul>
70
  </div>
71
  <div class="mec-options-fields">
72
+ <h4><?php esc_html_e('Import Options', 'modern-events-calendar-lite'); ?></h4>
73
  <div class="mec-form-row">
74
  <label>
75
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
76
+ <?php esc_html_e('Import Locations', 'modern-events-calendar-lite'); ?>
77
  </label>
78
  </div>
79
  <div class="mec-form-row">
80
  <label>
81
  <input type="checkbox" name="ix[import_link_event]" value="1" />
82
+ <?php esc_html_e('Import Facebook Link as Event Link', 'modern-events-calendar-lite'); ?>
83
  </label>
84
  </div>
85
  <div class="mec-form-row">
86
  <label>
87
  <input type="checkbox" name="ix[import_link_more_info]" value="1" />
88
+ <?php esc_html_e('Import Facebook Link as More Info Link', 'modern-events-calendar-lite'); ?>
89
  </label>
90
  </div>
91
  <input type="hidden" name="mec-ix-action" value="facebook-calendar-import-do" />
92
  <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'] : ''); ?>" />
93
  <input type="hidden" name="ix[facebook_app_token]" value="<?php echo (isset($this->ix['facebook_app_token']) ? $this->ix['facebook_app_token'] : ''); ?>" />
94
+ <button id="mec_ix_facebook_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Import', 'modern-events-calendar-lite'); ?></button>
95
  </div>
96
  </form>
97
  <?php endif; ?>
99
  <?php elseif($this->action == 'facebook-calendar-import-do'): ?>
100
  <div class="mec-col-6 mec-ix-facebook-import-do">
101
  <?php if($this->response['success'] == 0): ?>
102
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
103
  <?php else: ?>
104
  <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>
105
  <?php endif; ?>
app/features/ix/import_g_calendar.php CHANGED
@@ -5,65 +5,65 @@ 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', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo esc_url($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 esc_url($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 esc_url($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 esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
  <div class="mec-google-import">
22
  <form id="mec_google_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
23
- <h3><?php _e('Import from Google Calendar', 'modern-events-calendar-lite'); ?></h3>
24
- <p class="description"><?php _e('This will import all of your Google calendar events into MEC.', 'modern-events-calendar-lite'); ?></p>
25
  <div class="mec-form-row">
26
- <label class="mec-col-3" for="mec_ix_google_import_api_key"><?php _e('Google API Key', 'modern-events-calendar-lite'); ?></label>
27
  <div class="mec-col-4">
28
  <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'] : ''); ?>" />
29
  </div>
30
  </div>
31
  <div class="mec-form-row">
32
- <label class="mec-col-3" for="mec_ix_google_import_calendar_id"><?php _e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
33
  <div class="mec-col-4">
34
  <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'] : ''); ?>" />
35
  </div>
36
  </div>
37
  <div class="mec-form-row">
38
- <label class="mec-col-3" for="mec_ix_google_import_start_date"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
39
  <div class="mec-col-4">
40
  <input type="text" id="mec_ix_google_import_start_date" name="ix[google_import_start_date]" value="<?php echo (isset($ix_options['google_import_start_date']) ? $ix_options['google_import_start_date'] : date('Y-m-d', strtotime('-1 Month'))); ?>" class="mec_date_picker" />
41
  </div>
42
  </div>
43
  <div class="mec-form-row">
44
- <label class="mec-col-3" for="mec_ix_google_import_end_date"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
45
  <div class="mec-col-4">
46
  <input type="text" id="mec_ix_google_import_end_date" name="ix[google_import_end_date]" value="<?php echo (isset($ix_options['google_import_end_date']) ? $ix_options['google_import_end_date'] : date('Y-m-d', strtotime('+3 Months'))); ?>" class="mec_date_picker" />
47
  </div>
48
  </div>
49
  <div class="mec-options-fields">
50
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-start" />
51
- <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>
52
  </div>
53
  </form>
54
  <?php if($this->action == 'google-calendar-import-start'): ?>
55
  <div class="mec-ix-google-import-started">
56
  <?php if($this->response['success'] == 0): ?>
57
- <div class="mec-error"><?php echo $this->response['error']; ?></div>
58
  <?php else: ?>
59
  <form id="mec_google_import_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
60
  <div class="mec-xi-google-import-events mec-options-fields">
61
- <h4><?php _e('Google Calendar Events', 'modern-events-calendar-lite'); ?></h4>
62
  <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>
63
  <ul class="mec-select-deselect-actions" data-for="#mec_import_g_calendar_events">
64
- <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
65
- <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
66
- <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
67
  </ul>
68
  <ul id="mec_import_g_calendar_events">
69
  <?php $timezone = $this->main->get_timezone(); foreach($this->response['data']['events'] as $event): if(trim($event['title']) == '') continue; ?>
@@ -84,23 +84,23 @@ $ix_options = $this->main->get_ix_options();
84
  </ul>
85
  </div>
86
  <div class="mec-options-fields">
87
- <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
88
  <div class="mec-form-row">
89
  <label>
90
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
91
- <?php _e('Import Organizers', 'modern-events-calendar-lite'); ?>
92
  </label>
93
  </div>
94
  <div class="mec-form-row">
95
  <label>
96
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
97
- <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
98
  </label>
99
  </div>
100
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-do" />
101
  <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'] : ''); ?>" />
102
  <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'] : ''); ?>" />
103
- <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>
104
  </div>
105
  </form>
106
  <?php endif; ?>
@@ -108,7 +108,7 @@ $ix_options = $this->main->get_ix_options();
108
  <?php elseif($this->action == 'google-calendar-import-do'): ?>
109
  <div class="mec-ix-google-import-do">
110
  <?php if($this->response['success'] == 0): ?>
111
- <div class="mec-error"><?php echo $this->response['error']; ?></div>
112
  <?php else: ?>
113
  <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>
114
  <?php endif; ?>
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
  <div class="mec-google-import">
22
  <form id="mec_google_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
23
+ <h3><?php esc_html_e('Import from Google Calendar', 'modern-events-calendar-lite'); ?></h3>
24
+ <p class="description"><?php esc_html_e('This will import all of your Google calendar events into MEC.', 'modern-events-calendar-lite'); ?></p>
25
  <div class="mec-form-row">
26
+ <label class="mec-col-3" for="mec_ix_google_import_api_key"><?php esc_html_e('Google API Key', 'modern-events-calendar-lite'); ?></label>
27
  <div class="mec-col-4">
28
  <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'] : ''); ?>" />
29
  </div>
30
  </div>
31
  <div class="mec-form-row">
32
+ <label class="mec-col-3" for="mec_ix_google_import_calendar_id"><?php esc_html_e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
33
  <div class="mec-col-4">
34
  <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'] : ''); ?>" />
35
  </div>
36
  </div>
37
  <div class="mec-form-row">
38
+ <label class="mec-col-3" for="mec_ix_google_import_start_date"><?php esc_html_e('Start Date', 'modern-events-calendar-lite'); ?></label>
39
  <div class="mec-col-4">
40
  <input type="text" id="mec_ix_google_import_start_date" name="ix[google_import_start_date]" value="<?php echo (isset($ix_options['google_import_start_date']) ? $ix_options['google_import_start_date'] : date('Y-m-d', strtotime('-1 Month'))); ?>" class="mec_date_picker" />
41
  </div>
42
  </div>
43
  <div class="mec-form-row">
44
+ <label class="mec-col-3" for="mec_ix_google_import_end_date"><?php esc_html_e('End Date', 'modern-events-calendar-lite'); ?></label>
45
  <div class="mec-col-4">
46
  <input type="text" id="mec_ix_google_import_end_date" name="ix[google_import_end_date]" value="<?php echo (isset($ix_options['google_import_end_date']) ? $ix_options['google_import_end_date'] : date('Y-m-d', strtotime('+3 Months'))); ?>" class="mec_date_picker" />
47
  </div>
48
  </div>
49
  <div class="mec-options-fields">
50
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-start" />
51
+ <button id="mec_ix_google_import_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Start', 'modern-events-calendar-lite'); ?></button>
52
  </div>
53
  </form>
54
  <?php if($this->action == 'google-calendar-import-start'): ?>
55
  <div class="mec-ix-google-import-started">
56
  <?php if($this->response['success'] == 0): ?>
57
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['error']); ?></div>
58
  <?php else: ?>
59
  <form id="mec_google_import_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
60
  <div class="mec-xi-google-import-events mec-options-fields">
61
+ <h4><?php esc_html_e('Google Calendar Events', 'modern-events-calendar-lite'); ?></h4>
62
  <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>
63
  <ul class="mec-select-deselect-actions" data-for="#mec_import_g_calendar_events">
64
+ <li data-action="select-all"><?php esc_html_e('Select All', 'modern-events-calendar-lite'); ?></li>
65
+ <li data-action="deselect-all"><?php esc_html_e('Deselect All', 'modern-events-calendar-lite'); ?></li>
66
+ <li data-action="toggle"><?php esc_html_e('Toggle', 'modern-events-calendar-lite'); ?></li>
67
  </ul>
68
  <ul id="mec_import_g_calendar_events">
69
  <?php $timezone = $this->main->get_timezone(); foreach($this->response['data']['events'] as $event): if(trim($event['title']) == '') continue; ?>
84
  </ul>
85
  </div>
86
  <div class="mec-options-fields">
87
+ <h4><?php esc_html_e('Import Options', 'modern-events-calendar-lite'); ?></h4>
88
  <div class="mec-form-row">
89
  <label>
90
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
91
+ <?php esc_html_e('Import Organizers', 'modern-events-calendar-lite'); ?>
92
  </label>
93
  </div>
94
  <div class="mec-form-row">
95
  <label>
96
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
97
+ <?php esc_html_e('Import Locations', 'modern-events-calendar-lite'); ?>
98
  </label>
99
  </div>
100
  <input type="hidden" name="mec-ix-action" value="google-calendar-import-do" />
101
  <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'] : ''); ?>" />
102
  <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'] : ''); ?>" />
103
+ <button id="mec_ix_google_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Import', 'modern-events-calendar-lite'); ?></button>
104
  </div>
105
  </form>
106
  <?php endif; ?>
108
  <?php elseif($this->action == 'google-calendar-import-do'): ?>
109
  <div class="mec-ix-google-import-do">
110
  <?php if($this->response['success'] == 0): ?>
111
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['error']); ?></div>
112
  <?php else: ?>
113
  <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>
114
  <?php endif; ?>
app/features/ix/import_meetup.php CHANGED
@@ -5,31 +5,31 @@ 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', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
- <a href="<?php echo esc_url($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 esc_url($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 esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab nav-tab-active"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
  <div class="mec-meetup-import">
22
  <form id="mec_meetup_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
23
- <h3><?php _e('Import from Meetup', 'modern-events-calendar-lite'); ?></h3>
24
- <p class="description"><?php _e('This will import all your meetup events into MEC.', 'modern-events-calendar-lite'); ?></p>
25
  <div class="mec-form-row">
26
- <label class="mec-col-3" for="mec_ix_meetup_api_key"><?php _e('Meetup API Key', 'modern-events-calendar-lite'); ?></label>
27
  <div class="mec-col-4">
28
  <input type="text" id="mec_ix_meetup_api_key" name="ix[meetup_api_key]" value="<?php echo (isset($ix_options['meetup_api_key']) ? $ix_options['meetup_api_key'] : ''); ?>" />
29
  </div>
30
  </div>
31
  <div class="mec-form-row">
32
- <label class="mec-col-3" for="mec_ix_meetup_group_url"><?php _e('Group URL', 'modern-events-calendar-lite'); ?></label>
33
  <div class="mec-col-4">
34
  <input type="text" id="mec_ix_meetup_group_url" name="ix[meetup_group_url]" value="<?php echo (isset($ix_options['meetup_group_url']) ? $ix_options['meetup_group_url'] : ''); ?>" />
35
  <p><?php echo sprintf(__('just put the slug of your group like %s in %s', 'modern-events-calendar-lite'), '<strong>your-group-slug</strong>', 'https://www.meetup.com/your-group-slug/'); ?></p>
@@ -37,22 +37,22 @@ $ix_options = $this->main->get_ix_options();
37
  </div>
38
  <div class="mec-options-fields">
39
  <input type="hidden" name="mec-ix-action" value="meetup-import-start" />
40
- <button id="mec_ix_meetup_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Start', 'modern-events-calendar-lite'); ?></button>
41
  </div>
42
  </form>
43
  <?php if($this->action == 'meetup-import-start'): ?>
44
  <div class="mec-ix-meetup-started">
45
  <?php if($this->response['success'] == 0): ?>
46
- <div class="mec-error"><?php echo $this->response['error']; ?></div>
47
  <?php else: ?>
48
  <form id="mec_meetup_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
49
  <div class="mec-xi-meetup-events mec-options-fields">
50
- <h4><?php _e('Meetup Events', 'modern-events-calendar-lite'); ?></h4>
51
  <div class="mec-success"><?php echo sprintf(__('We found %s events for %s group. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data']['count'].'</strong>', '<strong>'.$this->response['data']['title'].'</strong>'); ?></div>
52
  <ul class="mec-select-deselect-actions" data-for="#mec_import_meetup_events">
53
- <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
54
- <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
55
- <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
56
  </ul>
57
  <ul id="mec_import_meetup_events">
58
  <?php foreach($this->response['data']['events'] as $event): ?>
@@ -66,23 +66,23 @@ $ix_options = $this->main->get_ix_options();
66
  </ul>
67
  </div>
68
  <div class="mec-options-fields">
69
- <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
70
  <div class="mec-form-row">
71
  <label>
72
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
73
- <?php _e('Import Organizers', 'modern-events-calendar-lite'); ?>
74
  </label>
75
  </div>
76
  <div class="mec-form-row">
77
  <label>
78
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
79
- <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
80
  </label>
81
  </div>
82
  <input type="hidden" name="mec-ix-action" value="meetup-import-do" />
83
  <input type="hidden" name="ix[meetup_api_key]" value="<?php echo (isset($this->ix['meetup_api_key']) ? $this->ix['meetup_api_key'] : ''); ?>" />
84
  <input type="hidden" name="ix[meetup_group_url]" value="<?php echo (isset($this->ix['meetup_group_url']) ? $this->ix['meetup_group_url'] : ''); ?>" />
85
- <button id="mec_ix_meetup_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Import', 'modern-events-calendar-lite'); ?></button>
86
  </div>
87
  </form>
88
  <?php endif; ?>
@@ -90,10 +90,10 @@ $ix_options = $this->main->get_ix_options();
90
  <?php elseif($this->action == 'meetup-import-do'): ?>
91
  <div class="mec-ix-meetup-import-do">
92
  <?php if($this->response['success'] == 0): ?>
93
- <div class="mec-error"><?php echo $this->response['error']; ?></div>
94
  <?php else: ?>
95
  <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website from meetup.', 'modern-events-calendar-lite'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
96
- <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>
97
  <?php endif; ?>
98
  </div>
99
  <?php endif; ?>
5
  $ix_options = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="import-content w-clearfix extra">
21
  <div class="mec-meetup-import">
22
  <form id="mec_meetup_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
23
+ <h3><?php esc_html_e('Import from Meetup', 'modern-events-calendar-lite'); ?></h3>
24
+ <p class="description"><?php esc_html_e('This will import all your meetup events into MEC.', 'modern-events-calendar-lite'); ?></p>
25
  <div class="mec-form-row">
26
+ <label class="mec-col-3" for="mec_ix_meetup_api_key"><?php esc_html_e('Meetup API Key', 'modern-events-calendar-lite'); ?></label>
27
  <div class="mec-col-4">
28
  <input type="text" id="mec_ix_meetup_api_key" name="ix[meetup_api_key]" value="<?php echo (isset($ix_options['meetup_api_key']) ? $ix_options['meetup_api_key'] : ''); ?>" />
29
  </div>
30
  </div>
31
  <div class="mec-form-row">
32
+ <label class="mec-col-3" for="mec_ix_meetup_group_url"><?php esc_html_e('Group URL', 'modern-events-calendar-lite'); ?></label>
33
  <div class="mec-col-4">
34
  <input type="text" id="mec_ix_meetup_group_url" name="ix[meetup_group_url]" value="<?php echo (isset($ix_options['meetup_group_url']) ? $ix_options['meetup_group_url'] : ''); ?>" />
35
  <p><?php echo sprintf(__('just put the slug of your group like %s in %s', 'modern-events-calendar-lite'), '<strong>your-group-slug</strong>', 'https://www.meetup.com/your-group-slug/'); ?></p>
37
  </div>
38
  <div class="mec-options-fields">
39
  <input type="hidden" name="mec-ix-action" value="meetup-import-start" />
40
+ <button id="mec_ix_meetup_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Start', 'modern-events-calendar-lite'); ?></button>
41
  </div>
42
  </form>
43
  <?php if($this->action == 'meetup-import-start'): ?>
44
  <div class="mec-ix-meetup-started">
45
  <?php if($this->response['success'] == 0): ?>
46
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['error']); ?></div>
47
  <?php else: ?>
48
  <form id="mec_meetup_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
49
  <div class="mec-xi-meetup-events mec-options-fields">
50
+ <h4><?php esc_html_e('Meetup Events', 'modern-events-calendar-lite'); ?></h4>
51
  <div class="mec-success"><?php echo sprintf(__('We found %s events for %s group. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data']['count'].'</strong>', '<strong>'.$this->response['data']['title'].'</strong>'); ?></div>
52
  <ul class="mec-select-deselect-actions" data-for="#mec_import_meetup_events">
53
+ <li data-action="select-all"><?php esc_html_e('Select All', 'modern-events-calendar-lite'); ?></li>
54
+ <li data-action="deselect-all"><?php esc_html_e('Deselect All', 'modern-events-calendar-lite'); ?></li>
55
+ <li data-action="toggle"><?php esc_html_e('Toggle', 'modern-events-calendar-lite'); ?></li>
56
  </ul>
57
  <ul id="mec_import_meetup_events">
58
  <?php foreach($this->response['data']['events'] as $event): ?>
66
  </ul>
67
  </div>
68
  <div class="mec-options-fields">
69
+ <h4><?php esc_html_e('Import Options', 'modern-events-calendar-lite'); ?></h4>
70
  <div class="mec-form-row">
71
  <label>
72
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
73
+ <?php esc_html_e('Import Organizers', 'modern-events-calendar-lite'); ?>
74
  </label>
75
  </div>
76
  <div class="mec-form-row">
77
  <label>
78
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
79
+ <?php esc_html_e('Import Locations', 'modern-events-calendar-lite'); ?>
80
  </label>
81
  </div>
82
  <input type="hidden" name="mec-ix-action" value="meetup-import-do" />
83
  <input type="hidden" name="ix[meetup_api_key]" value="<?php echo (isset($this->ix['meetup_api_key']) ? $this->ix['meetup_api_key'] : ''); ?>" />
84
  <input type="hidden" name="ix[meetup_group_url]" value="<?php echo (isset($this->ix['meetup_group_url']) ? $this->ix['meetup_group_url'] : ''); ?>" />
85
+ <button id="mec_ix_meetup_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Import', 'modern-events-calendar-lite'); ?></button>
86
  </div>
87
  </form>
88
  <?php endif; ?>
90
  <?php elseif($this->action == 'meetup-import-do'): ?>
91
  <div class="mec-ix-meetup-import-do">
92
  <?php if($this->response['success'] == 0): ?>
93
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['error']); ?></div>
94
  <?php else: ?>
95
  <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website from meetup.', 'modern-events-calendar-lite'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
96
+ <div class="info-msg"><strong><?php esc_html_e('Attention', 'modern-events-calendar-lite'); ?>:</strong> <?php esc_html_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>
97
  <?php endif; ?>
98
  </div>
99
  <?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', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
- <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
- <a href="<?php echo esc_url($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 esc_url($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 esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab nav-tab-active"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="sync-content w-clearfix extra">
21
  <?php if(!$this->main->getPRO()): ?>
22
- <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>
23
  <?php else: ?>
24
  <form id="mec_ix_sync_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
25
  <div class="mec-form-row mec-syn-schedule">
26
  <input type="hidden" name="ix[sync_g_import]" value="0" />
27
  <label class="mec-col-3" for="mec_ix_sync_g_import">
28
  <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');" />
29
- <?php _e('Auto Google Import', 'modern-events-calendar-lite'); ?>
30
  </label>
31
  <br>
32
  <br>
33
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'g-import.php'; ?>
34
- <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 by php atleast once per day otherwise it won't import Google Calendar events.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
35
  </div>
36
  <div class="mec-form-row mec-syn-schedule">
37
  <input type="hidden" name="ix[sync_g_export]" value="0" />
38
  <label class="mec-col-3" for="mec_ix_sync_g_export">
39
  <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');" />
40
- <?php _e('Auto Google Export', 'modern-events-calendar-lite'); ?>
41
  </label>
42
  <br>
43
  <br>
@@ -47,13 +47,13 @@ $ix = $this->main->get_ix_options();
47
  <label>
48
  <input type="hidden" name="ix[sync_g_export_attendees]" value="0" />
49
  <input type="checkbox" name="ix[sync_g_export_attendees]" value="1" <?php echo (isset($ix['sync_g_export_attendees']) and $ix['sync_g_export_attendees'] == '1') ? 'checked="checked"' : ''; ?> />
50
- <?php _e('Export Attendees', 'modern-events-calendar-lite'); ?>
51
  </label>
52
  <br>
53
  <br>
54
  </div>
55
  <div class="mec-col-12">
56
- <strong><?php _e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file by php atleast once per day otherwise it won't export your website events into Google Calendar.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?>
57
  </div>
58
  </div>
59
  </div>
@@ -63,12 +63,12 @@ $ix = $this->main->get_ix_options();
63
  <input type="hidden" name="ix[sync_f_import]" value="0" />
64
  <label class="mec-col-3" for="mec_ix_sync_f_import">
65
  <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');" />
66
- <?php _e('Auto Facebook Import', 'modern-events-calendar-lite'); ?>
67
  </label>
68
  <br>
69
  <br>
70
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'f-import.php'; ?>
71
- <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 by php atleast once per day otherwise it won't import any event from Facebook.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
72
  </div>
73
  <?php endif; ?>
74
 
@@ -76,39 +76,39 @@ $ix = $this->main->get_ix_options();
76
  <input type="hidden" name="ix[sync_meetup_import]" value="0" />
77
  <label class="mec-col-3" for="mec_ix_sync_meetup_import">
78
  <input type="checkbox" id="mec_ix_sync_meetup_import" name="ix[sync_meetup_import]" value="1" <?php echo (isset($ix['sync_meetup_import']) and $ix['sync_meetup_import'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_meetup_import_cron').toggleClass('mec-util-hidden');" />
79
- <?php _e('Auto Meetup Import', 'modern-events-calendar-lite'); ?>
80
  </label>
81
  <br>
82
  <br>
83
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'meetup-import.php'; ?>
84
- <p id="mec_sync_meetup_import_cron" class="mec-col-12 <?php echo (isset($ix['sync_meetup_import']) and $ix['sync_meetup_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 by php atleast once per day otherwise it won't import any event from Meetup.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
85
  </div>
86
 
87
  <div class="mec-form-row mec-syn-schedule">
88
- <h2><?php _e('Auto set cronjobs (Once Daily)', 'modern-events-calendar-lite'); ?></h2>
89
- <h4>- <?php _e('First you need to enable the above options for each to be able to use this.', 'modern-events-calendar-lite'); ?></h4>
90
- <h4>- <?php _e('If you cannot set CronJob on your server, you can use the options below. Please make sure to NOT use the following options and setting up the server manually together.', 'modern-events-calendar-lite'); ?></h4>
91
  <input type="hidden" name="ix[sync_g_import_auto]" value="0" />
92
  <label class="mec-col-3" for="mec_ix_sync_g_import_auto">
93
  <input type="checkbox" id="mec_ix_sync_g_import_auto" name="ix[sync_g_import_auto]" value="1" <?php echo (isset($ix['sync_g_import_auto']) and $ix['sync_g_import_auto'] == '1') ? 'checked="checked"' : ''; ?> />
94
- <?php _e('Google import', 'modern-events-calendar-lite'); ?>
95
  </label>
96
  <input type="hidden" name="ix[sync_g_export_auto]" value="0" />
97
  <label class="mec-col-3" for="mec_ix_sync_g_export_auto">
98
  <input type="checkbox" id="mec_ix_sync_g_export_auto" name="ix[sync_g_export_auto]" value="1" <?php echo (isset($ix['sync_g_export_auto']) and $ix['sync_g_export_auto'] == '1') ? 'checked="checked"' : ''; ?> />
99
- <?php _e('Google export', 'modern-events-calendar-lite'); ?>
100
  </label>
101
  <input type="hidden" name="ix[sync_meetup_import_auto]" value="0" />
102
  <label class="mec-col-3" for="mec_ix_sync_meetup_import_auto">
103
  <input type="checkbox" id="mec_ix_sync_meetup_import_auto" name="ix[sync_meetup_import_auto]" value="1" <?php echo (isset($ix['sync_meetup_import_auto']) and $ix['sync_meetup_import_auto'] == '1') ? 'checked="checked"' : ''; ?> />
104
- <?php _e('Meetup import', 'modern-events-calendar-lite'); ?>
105
  </label>
106
 
107
  </div>
108
 
109
  <div class="mec-options-fields">
110
  <input type="hidden" name="mec-ix-action" value="save-sync-options" />
111
- <button class="button button-primary mec-button-primary" type="submit"><?php _e('Save', 'modern-events-calendar-lite'); ?></button>
112
  </div>
113
  </form>
114
  <?php endif; ?>
5
  $ix = $this->main->get_ix_options();
6
  ?>
7
  <div class="wrap" id="mec-wrap">
8
+ <h1><?php esc_html_e('Auto Synchronization', 'modern-events-calendar-lite'); ?></h1>
9
  <h2 class="nav-tab-wrapper">
10
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
11
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
12
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
18
  </h2>
19
  <div class="mec-container">
20
  <div class="sync-content w-clearfix extra">
21
  <?php if(!$this->main->getPRO()): ?>
22
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
23
  <?php else: ?>
24
  <form id="mec_ix_sync_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
25
  <div class="mec-form-row mec-syn-schedule">
26
  <input type="hidden" name="ix[sync_g_import]" value="0" />
27
  <label class="mec-col-3" for="mec_ix_sync_g_import">
28
  <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');" />
29
+ <?php esc_html_e('Auto Google Import', 'modern-events-calendar-lite'); ?>
30
  </label>
31
  <br>
32
  <br>
33
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'g-import.php'; ?>
34
+ <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 esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file by php atleast once per day otherwise it won't import Google Calendar events.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
35
  </div>
36
  <div class="mec-form-row mec-syn-schedule">
37
  <input type="hidden" name="ix[sync_g_export]" value="0" />
38
  <label class="mec-col-3" for="mec_ix_sync_g_export">
39
  <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');" />
40
+ <?php esc_html_e('Auto Google Export', 'modern-events-calendar-lite'); ?>
41
  </label>
42
  <br>
43
  <br>
47
  <label>
48
  <input type="hidden" name="ix[sync_g_export_attendees]" value="0" />
49
  <input type="checkbox" name="ix[sync_g_export_attendees]" value="1" <?php echo (isset($ix['sync_g_export_attendees']) and $ix['sync_g_export_attendees'] == '1') ? 'checked="checked"' : ''; ?> />
50
+ <?php esc_html_e('Export Attendees', 'modern-events-calendar-lite'); ?>
51
  </label>
52
  <br>
53
  <br>
54
  </div>
55
  <div class="mec-col-12">
56
+ <strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file by php atleast once per day otherwise it won't export your website events into Google Calendar.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?>
57
  </div>
58
  </div>
59
  </div>
63
  <input type="hidden" name="ix[sync_f_import]" value="0" />
64
  <label class="mec-col-3" for="mec_ix_sync_f_import">
65
  <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');" />
66
+ <?php esc_html_e('Auto Facebook Import', 'modern-events-calendar-lite'); ?>
67
  </label>
68
  <br>
69
  <br>
70
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'f-import.php'; ?>
71
+ <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 esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file by php atleast once per day otherwise it won't import any event from Facebook.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
72
  </div>
73
  <?php endif; ?>
74
 
76
  <input type="hidden" name="ix[sync_meetup_import]" value="0" />
77
  <label class="mec-col-3" for="mec_ix_sync_meetup_import">
78
  <input type="checkbox" id="mec_ix_sync_meetup_import" name="ix[sync_meetup_import]" value="1" <?php echo (isset($ix['sync_meetup_import']) and $ix['sync_meetup_import'] == '1') ? 'checked="checked"' : ''; ?> onchange="jQuery('#mec_sync_meetup_import_cron').toggleClass('mec-util-hidden');" />
79
+ <?php esc_html_e('Auto Meetup Import', 'modern-events-calendar-lite'); ?>
80
  </label>
81
  <br>
82
  <br>
83
  <?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'meetup-import.php'; ?>
84
+ <p id="mec_sync_meetup_import_cron" class="mec-col-12 <?php echo (isset($ix['sync_meetup_import']) and $ix['sync_meetup_import'] == '1') ? '' : 'mec-util-hidden'; ?>"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(__("Set a cronjob to call %s file by php atleast once per day otherwise it won't import any event from Meetup.", 'modern-events-calendar-lite'), '<code>'.$cron.'</code>'); ?></p>
85
  </div>
86
 
87
  <div class="mec-form-row mec-syn-schedule">
88
+ <h2><?php esc_html_e('Auto set cronjobs (Once Daily)', 'modern-events-calendar-lite'); ?></h2>
89
+ <h4>- <?php esc_html_e('First you need to enable the above options for each to be able to use this.', 'modern-events-calendar-lite'); ?></h4>
90
+ <h4>- <?php esc_html_e('If you cannot set CronJob on your server, you can use the options below. Please make sure to NOT use the following options and setting up the server manually together.', 'modern-events-calendar-lite'); ?></h4>
91
  <input type="hidden" name="ix[sync_g_import_auto]" value="0" />
92
  <label class="mec-col-3" for="mec_ix_sync_g_import_auto">
93
  <input type="checkbox" id="mec_ix_sync_g_import_auto" name="ix[sync_g_import_auto]" value="1" <?php echo (isset($ix['sync_g_import_auto']) and $ix['sync_g_import_auto'] == '1') ? 'checked="checked"' : ''; ?> />
94
+ <?php esc_html_e('Google import', 'modern-events-calendar-lite'); ?>
95
  </label>
96
  <input type="hidden" name="ix[sync_g_export_auto]" value="0" />
97
  <label class="mec-col-3" for="mec_ix_sync_g_export_auto">
98
  <input type="checkbox" id="mec_ix_sync_g_export_auto" name="ix[sync_g_export_auto]" value="1" <?php echo (isset($ix['sync_g_export_auto']) and $ix['sync_g_export_auto'] == '1') ? 'checked="checked"' : ''; ?> />
99
+ <?php esc_html_e('Google export', 'modern-events-calendar-lite'); ?>
100
  </label>
101
  <input type="hidden" name="ix[sync_meetup_import_auto]" value="0" />
102
  <label class="mec-col-3" for="mec_ix_sync_meetup_import_auto">
103
  <input type="checkbox" id="mec_ix_sync_meetup_import_auto" name="ix[sync_meetup_import_auto]" value="1" <?php echo (isset($ix['sync_meetup_import_auto']) and $ix['sync_meetup_import_auto'] == '1') ? 'checked="checked"' : ''; ?> />
104
+ <?php esc_html_e('Meetup import', 'modern-events-calendar-lite'); ?>
105
  </label>
106
 
107
  </div>
108
 
109
  <div class="mec-options-fields">
110
  <input type="hidden" name="mec-ix-action" value="save-sync-options" />
111
+ <button class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save', 'modern-events-calendar-lite'); ?></button>
112
  </div>
113
  </form>
114
  <?php endif; ?>
app/features/ix/thirdparty.php CHANGED
@@ -7,50 +7,50 @@ defined('MECEXEC') or die();
7
  $third_parties = $this->main->get_integrated_plugins_for_import();
8
  ?>
9
  <div class="wrap" id="mec-wrap">
10
- <h1><?php _e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
11
  <h2 class="nav-tab-wrapper">
12
- <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo __('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo __('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
14
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo __('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
15
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo __('Meetup Import', 'modern-events-calendar-lite'); ?></a>
16
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo __('Synchronization', 'modern-events-calendar-lite'); ?></a>
17
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo __('Export', 'modern-events-calendar-lite'); ?></a>
18
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo __('Import', 'modern-events-calendar-lite'); ?></a>
19
- <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab nav-tab-active"><?php echo __('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
20
  </h2>
21
  <div class="mec-container">
22
  <div class="import-content w-clearfix extra">
23
- <h3><?php _e('Third Party Plugins', 'modern-events-calendar-lite'); ?></h3>
24
  <form id="mec_thirdparty_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
25
  <div class="mec-form-row">
26
- <p><?php echo sprintf(__("You can import events from the following integrated plugins to %s.", 'modern-events-calendar-lite'), '<strong>'.__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
27
  </div>
28
  <div class="mec-form-row">
29
  <select name="ix[third-party]" id="third_party" title="<?php esc_attr_e('Third Party', 'modern-events-calendar-lite') ?>">
30
  <?php foreach($third_parties as $third_party=>$label): ?>
31
- <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>
32
  <?php endforeach; ?>
33
  </select>
34
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-start" />
35
- <button class="button button-primary mec-button-primary mec-btn-2"><?php _e('Start', 'modern-events-calendar-lite'); ?></button>
36
  </div>
37
  </form>
38
 
39
  <?php if($this->action == 'thirdparty-import-start'): ?>
40
  <div class="mec-ix-thirdparty-import-started">
41
  <?php if($this->response['success'] == 0): ?>
42
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
43
  <?php elseif(isset($this->response['data']['count']) && !$this->response['data']['count']): ?>
44
- <div class="mec-error"><?php echo __('No events found!', 'modern-events-calendar-lite'); ?></div>
45
  <?php else: ?>
46
  <form id="mec_thirdparty_import_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
47
  <div class="mec-ix-thirdparty-import-events mec-options-fields">
48
- <h4><?php _e('Found Events', 'modern-events-calendar-lite'); ?></h4>
49
  <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>
50
  <ul class="mec-select-deselect-actions" data-for="#mec_import_thirdparty_events">
51
- <li data-action="select-all"><?php _e('Select All', 'modern-events-calendar-lite'); ?></li>
52
- <li data-action="deselect-all"><?php _e('Deselect All', 'modern-events-calendar-lite'); ?></li>
53
- <li data-action="toggle"><?php _e('Toggle', 'modern-events-calendar-lite'); ?></li>
54
  </ul>
55
  <ul id="mec_import_thirdparty_events">
56
  <?php foreach($this->response['data']['events'] as $event): if(trim($event->post_title) == '') continue; ?>
@@ -64,15 +64,15 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
64
  </ul>
65
  </div>
66
  <div class="mec-options-fields">
67
- <h4><?php _e('Import Options', 'modern-events-calendar-lite'); ?></h4>
68
 
69
  <?php if(!in_array($this->ix['third-party'], array('event-espresso', 'events-manager-single', 'events-manager-recurring'))): ?>
70
  <div class="mec-form-row">
71
  <label>
72
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
73
  <?php
74
- if($this->ix['third-party'] == 'weekly-class') _e('Import Instructors', 'modern-events-calendar-lite');
75
- else _e('Import Organizers', 'modern-events-calendar-lite');
76
  ?>
77
  </label>
78
  </div>
@@ -81,27 +81,27 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
81
  <div class="mec-form-row">
82
  <label>
83
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
84
- <?php _e('Import Locations', 'modern-events-calendar-lite'); ?>
85
  </label>
86
  </div>
87
  <div class="mec-form-row">
88
  <label>
89
  <input type="checkbox" name="ix[import_categories]" value="1" checked="checked" />
90
  <?php
91
- if($this->ix['third-party'] == 'weekly-class') _e('Import Class Types', 'modern-events-calendar-lite');
92
- else _e('Import Categories', 'modern-events-calendar-lite');
93
  ?>
94
  </label>
95
  </div>
96
  <div class="mec-form-row">
97
  <label>
98
  <input type="checkbox" name="ix[import_featured_image]" value="1" checked="checked" />
99
- <?php _e('Import Featured Images', 'modern-events-calendar-lite'); ?>
100
  </label>
101
  </div>
102
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-do" />
103
  <input type="hidden" name="ix[third-party]" value="<?php echo esc_attr($this->ix['third-party']); ?>" />
104
- <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>
105
  </div>
106
  </form>
107
  <?php endif; ?>
@@ -109,10 +109,10 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
109
  <?php elseif($this->action == 'thirdparty-import-do'): ?>
110
  <div class="mec-col-12 mec-ix-thirdparty-import-do">
111
  <?php if($this->response['success'] == 0): ?>
112
- <div class="mec-error"><?php echo $this->response['message']; ?></div>
113
  <?php else: ?>
114
  <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data'].'</strong>'); ?></div>
115
- <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 they are correct.", 'modern-events-calendar-lite'); ?></div>
116
  <?php endif; ?>
117
  </div>
118
  <?php endif; ?>
7
  $third_parties = $this->main->get_integrated_plugins_for_import();
8
  ?>
9
  <div class="wrap" id="mec-wrap">
10
+ <h1><?php esc_html_e('MEC Import / Export', 'modern-events-calendar-lite'); ?></h1>
11
  <h2 class="nav-tab-wrapper">
12
+ <a href="<?php echo esc_url($this->main->remove_qs_var('tab')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Import', 'modern-events-calendar-lite'); ?></a>
13
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-g-calendar-export')); ?>" class="nav-tab"><?php echo esc_html__('Google Cal. Export', 'modern-events-calendar-lite'); ?></a>
14
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-f-calendar-import')); ?>" class="nav-tab"><?php echo esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'); ?></a>
15
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-meetup-import')); ?>" class="nav-tab"><?php echo esc_html__('Meetup Import', 'modern-events-calendar-lite'); ?></a>
16
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-sync')); ?>" class="nav-tab"><?php echo esc_html__('Synchronization', 'modern-events-calendar-lite'); ?></a>
17
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-export')); ?>" class="nav-tab"><?php echo esc_html__('Export', 'modern-events-calendar-lite'); ?></a>
18
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-import')); ?>" class="nav-tab"><?php echo esc_html__('Import', 'modern-events-calendar-lite'); ?></a>
19
+ <a href="<?php echo esc_url($this->main->add_qs_var('tab', 'MEC-thirdparty')); ?>" class="nav-tab nav-tab-active"><?php echo esc_html__('Third Party Plugins', 'modern-events-calendar-lite'); ?></a>
20
  </h2>
21
  <div class="mec-container">
22
  <div class="import-content w-clearfix extra">
23
+ <h3><?php esc_html_e('Third Party Plugins', 'modern-events-calendar-lite'); ?></h3>
24
  <form id="mec_thirdparty_import_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
25
  <div class="mec-form-row">
26
+ <p><?php echo sprintf(__("You can import events from the following integrated plugins to %s.", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Modern Events Calendar', 'modern-events-calendar-lite').'</strong>'); ?></p>
27
  </div>
28
  <div class="mec-form-row">
29
  <select name="ix[third-party]" id="third_party" title="<?php esc_attr_e('Third Party', 'modern-events-calendar-lite') ?>">
30
  <?php foreach($third_parties as $third_party=>$label): ?>
31
+ <option <?php echo ((isset($this->ix['third-party']) and $this->ix['third-party'] == $third_party) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($third_party); ?>"><?php echo esc_html($label); ?></option>
32
  <?php endforeach; ?>
33
  </select>
34
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-start" />
35
+ <button class="button button-primary mec-button-primary mec-btn-2"><?php esc_html_e('Start', 'modern-events-calendar-lite'); ?></button>
36
  </div>
37
  </form>
38
 
39
  <?php if($this->action == 'thirdparty-import-start'): ?>
40
  <div class="mec-ix-thirdparty-import-started">
41
  <?php if($this->response['success'] == 0): ?>
42
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
43
  <?php elseif(isset($this->response['data']['count']) && !$this->response['data']['count']): ?>
44
+ <div class="mec-error"><?php echo esc_html__('No events found!', 'modern-events-calendar-lite'); ?></div>
45
  <?php else: ?>
46
  <form id="mec_thirdparty_import_do_form" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
47
  <div class="mec-ix-thirdparty-import-events mec-options-fields">
48
+ <h4><?php esc_html_e('Found Events', 'modern-events-calendar-lite'); ?></h4>
49
  <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>
50
  <ul class="mec-select-deselect-actions" data-for="#mec_import_thirdparty_events">
51
+ <li data-action="select-all"><?php esc_html_e('Select All', 'modern-events-calendar-lite'); ?></li>
52
+ <li data-action="deselect-all"><?php esc_html_e('Deselect All', 'modern-events-calendar-lite'); ?></li>
53
+ <li data-action="toggle"><?php esc_html_e('Toggle', 'modern-events-calendar-lite'); ?></li>
54
  </ul>
55
  <ul id="mec_import_thirdparty_events">
56
  <?php foreach($this->response['data']['events'] as $event): if(trim($event->post_title) == '') continue; ?>
64
  </ul>
65
  </div>
66
  <div class="mec-options-fields">
67
+ <h4><?php esc_html_e('Import Options', 'modern-events-calendar-lite'); ?></h4>
68
 
69
  <?php if(!in_array($this->ix['third-party'], array('event-espresso', 'events-manager-single', 'events-manager-recurring'))): ?>
70
  <div class="mec-form-row">
71
  <label>
72
  <input type="checkbox" name="ix[import_organizers]" value="1" checked="checked" />
73
  <?php
74
+ if($this->ix['third-party'] == 'weekly-class') esc_html_e('Import Instructors', 'modern-events-calendar-lite');
75
+ else esc_html_e('Import Organizers', 'modern-events-calendar-lite');
76
  ?>
77
  </label>
78
  </div>
81
  <div class="mec-form-row">
82
  <label>
83
  <input type="checkbox" name="ix[import_locations]" value="1" checked="checked" />
84
+ <?php esc_html_e('Import Locations', 'modern-events-calendar-lite'); ?>
85
  </label>
86
  </div>
87
  <div class="mec-form-row">
88
  <label>
89
  <input type="checkbox" name="ix[import_categories]" value="1" checked="checked" />
90
  <?php
91
+ if($this->ix['third-party'] == 'weekly-class') esc_html_e('Import Class Types', 'modern-events-calendar-lite');
92
+ else esc_html_e('Import Categories', 'modern-events-calendar-lite');
93
  ?>
94
  </label>
95
  </div>
96
  <div class="mec-form-row">
97
  <label>
98
  <input type="checkbox" name="ix[import_featured_image]" value="1" checked="checked" />
99
+ <?php esc_html_e('Import Featured Images', 'modern-events-calendar-lite'); ?>
100
  </label>
101
  </div>
102
  <input type="hidden" name="mec-ix-action" value="thirdparty-import-do" />
103
  <input type="hidden" name="ix[third-party]" value="<?php echo esc_attr($this->ix['third-party']); ?>" />
104
+ <button id="mec_ix_thirdparty_import_do_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Import', 'modern-events-calendar-lite'); ?></button>
105
  </div>
106
  </form>
107
  <?php endif; ?>
109
  <?php elseif($this->action == 'thirdparty-import-do'): ?>
110
  <div class="mec-col-12 mec-ix-thirdparty-import-do">
111
  <?php if($this->response['success'] == 0): ?>
112
+ <div class="mec-error"><?php echo MEC_kses::element($this->response['message']); ?></div>
113
  <?php else: ?>
114
  <div class="mec-success"><?php echo sprintf(__('%s events successfully imported to your website.', 'modern-events-calendar-lite'), '<strong>'.$this->response['data'].'</strong>'); ?></div>
115
+ <div class="info-msg"><strong><?php esc_html_e('Attention', 'modern-events-calendar-lite'); ?>:</strong> <?php esc_html_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 they are correct.", 'modern-events-calendar-lite'); ?></div>
116
  <?php endif; ?>
117
  </div>
118
  <?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', 'modern-events-calendar-lite'));
61
- $plural_label = $this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite'));
62
 
63
  register_taxonomy(
64
  'mec_label',
@@ -101,25 +101,25 @@ class MEC_feature_labels extends MEC_base
101
  ?>
102
  <tr class="form-field">
103
  <th scope="row" >
104
- <label for="mec_color"><?php _e('Color', 'modern-events-calendar-lite'); ?></label>
105
  </th>
106
  <td>
107
- <input type="text" name="color" id="mec_color" value="<?php echo $color; ?>" data-default-color="<?php echo $color; ?>" class="mec-color-picker" />
108
- <p class="description"><?php _e('Select label color', 'modern-events-calendar-lite'); ?></p>
109
  </td>
110
  </tr>
111
  <tr class="form-field">
112
  <th scope="row" >
113
- <label for="mec_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
114
  </th>
115
  <td>
116
  <select name="style" id="mec_style">
117
- <option value=""><?php _e('Normal', 'modern-events-calendar-lite'); ?></option>
118
- <option value="mec-label-featured" <?php echo ($style == 'mec-label-featured' ? 'selected="selected"' : ''); ?>><?php _e('Featured', 'modern-events-calendar-lite'); ?></option>
119
- <option value="mec-label-canceled" <?php echo ($style == 'mec-label-canceled' ? 'selected="selected"' : ''); ?>><?php _e('Canceled', 'modern-events-calendar-lite'); ?></option>
120
- <option value="mec-label-custom" <?php echo ($style == 'mec-label-custom' ? 'selected="selected"' : ''); ?>><?php _e('Custom', 'modern-events-calendar-lite'); ?></option>
121
  </select>
122
- <p class="description"><?php _e('You can show featured, canceled and custom labels by a different style!', 'modern-events-calendar-lite'); ?></p>
123
  </td>
124
  </tr>
125
  <?php
@@ -133,19 +133,19 @@ class MEC_feature_labels extends MEC_base
133
  {
134
  ?>
135
  <div class="form-field">
136
- <label for="mec_color"><?php _e('Color', 'modern-events-calendar-lite'); ?></label>
137
- <input type="text" name="color" id="mec_color" value="" data-default-color="<?php echo $this->main->get_default_label_color(); ?>" class="mec-color-picker" />
138
- <p class="description"><?php _e('Select label color', 'modern-events-calendar-lite'); ?></p>
139
  </div>
140
  <div class="form-field">
141
- <label for="mec_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
142
  <select name="style" id="mec_style">
143
- <option value=""><?php _e('Normal', 'modern-events-calendar-lite'); ?></option>
144
- <option value="mec-label-featured"><?php _e('Featured', 'modern-events-calendar-lite'); ?></option>
145
- <option value="mec-label-canceled"><?php _e('Canceled', 'modern-events-calendar-lite'); ?></option>
146
- <option value="mec-label-custom"><?php _e('Custom', 'modern-events-calendar-lite'); ?></option>
147
  </select>
148
- <p class="description"><?php _e('You can show featured, canceled and custom labels by a different style!', 'modern-events-calendar-lite'); ?></p>
149
  </div>
150
  <?php
151
  }
@@ -180,11 +180,11 @@ class MEC_feature_labels extends MEC_base
180
  unset($columns['description']);
181
  unset($columns['posts']);
182
 
183
- $columns['id'] = __('ID', 'modern-events-calendar-lite');
184
- $columns['name'] = __('Name', 'modern-events-calendar-lite');
185
- $columns['color'] = __('Color', 'modern-events-calendar-lite');
186
- $columns['posts'] = __('Count', 'modern-events-calendar-lite');
187
- $columns['slug'] = __('Slug', 'modern-events-calendar-lite');
188
 
189
  return $columns;
190
  }
@@ -224,7 +224,7 @@ class MEC_feature_labels extends MEC_base
224
  */
225
  public function register_meta_boxes()
226
  {
227
- 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');
228
  }
229
 
230
  /**
@@ -241,9 +241,9 @@ class MEC_feature_labels extends MEC_base
241
  <div class="mec-form-row">
242
  <?php foreach($labels as $label): ?>
243
  <div class="mec-label-row">
244
- <input <?php if(in_array($label->term_id, $terms)) echo 'checked="checked"'; ?> name="mec[labels][]" type="checkbox" value="<?php echo $label->term_id; ?>" id="mec_label<?php echo $label->term_id; ?>" />
245
- <?php do_action('mec_label_to_checkbox_backend', $label, $terms ); ?>
246
- <label for="mec_label<?php echo $label->term_id; ?>"><?php echo $label->name; ?></label>
247
  <span class="mec-color" style="background-color: <?php echo get_term_meta($label->term_id, 'color', true); ?>"></span>
248
  </div>
249
  <?php endforeach; ?>
@@ -274,6 +274,7 @@ class MEC_feature_labels extends MEC_base
274
 
275
  $_labels = isset($_mec['labels']) ? (array) $_mec['labels'] : array();
276
 
 
277
  $_labels = array_map('intval', $_labels);
278
  $_labels = array_unique($_labels);
279
 
57
  */
58
  public function register_taxonomy()
59
  {
60
+ $singular_label = $this->main->m('taxonomy_label', esc_html__('Label', 'modern-events-calendar-lite'));
61
+ $plural_label = $this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'));
62
 
63
  register_taxonomy(
64
  'mec_label',
101
  ?>
102
  <tr class="form-field">
103
  <th scope="row" >
104
+ <label for="mec_color"><?php esc_html_e('Color', 'modern-events-calendar-lite'); ?></label>
105
  </th>
106
  <td>
107
+ <input type="text" name="color" id="mec_color" value="<?php echo esc_attr($color); ?>" data-default-color="<?php echo esc_attr($color); ?>" class="mec-color-picker" />
108
+ <p class="description"><?php esc_html_e('Select label color', 'modern-events-calendar-lite'); ?></p>
109
  </td>
110
  </tr>
111
  <tr class="form-field">
112
  <th scope="row" >
113
+ <label for="mec_style"><?php esc_html_e('Style', 'modern-events-calendar-lite'); ?></label>
114
  </th>
115
  <td>
116
  <select name="style" id="mec_style">
117
+ <option value=""><?php esc_html_e('Normal', 'modern-events-calendar-lite'); ?></option>
118
+ <option value="mec-label-featured" <?php echo ($style == 'mec-label-featured' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Featured', 'modern-events-calendar-lite'); ?></option>
119
+ <option value="mec-label-canceled" <?php echo ($style == 'mec-label-canceled' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Canceled', 'modern-events-calendar-lite'); ?></option>
120
+ <option value="mec-label-custom" <?php echo ($style == 'mec-label-custom' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Custom', 'modern-events-calendar-lite'); ?></option>
121
  </select>
122
+ <p class="description"><?php esc_html_e('You can show featured, canceled and custom labels by a different style!', 'modern-events-calendar-lite'); ?></p>
123
  </td>
124
  </tr>
125
  <?php
133
  {
134
  ?>
135
  <div class="form-field">
136
+ <label for="mec_color"><?php esc_html_e('Color', 'modern-events-calendar-lite'); ?></label>
137
+ <input type="text" name="color" id="mec_color" value="" data-default-color="<?php echo esc_attr($this->main->get_default_label_color()); ?>" class="mec-color-picker" />
138
+ <p class="description"><?php esc_html_e('Select label color', 'modern-events-calendar-lite'); ?></p>
139
  </div>
140
  <div class="form-field">
141
+ <label for="mec_style"><?php esc_html_e('Style', 'modern-events-calendar-lite'); ?></label>
142
  <select name="style" id="mec_style">
143
+ <option value=""><?php esc_html_e('Normal', 'modern-events-calendar-lite'); ?></option>
144
+ <option value="mec-label-featured"><?php esc_html_e('Featured', 'modern-events-calendar-lite'); ?></option>
145
+ <option value="mec-label-canceled"><?php esc_html_e('Canceled', 'modern-events-calendar-lite'); ?></option>
146
+ <option value="mec-label-custom"><?php esc_html_e('Custom', 'modern-events-calendar-lite'); ?></option>
147
  </select>
148
+ <p class="description"><?php esc_html_e('You can show featured, canceled and custom labels by a different style!', 'modern-events-calendar-lite'); ?></p>
149
  </div>
150
  <?php
151
  }
180
  unset($columns['description']);
181
  unset($columns['posts']);
182
 
183
+ $columns['id'] = esc_html__('ID', 'modern-events-calendar-lite');
184
+ $columns['name'] = esc_html__('Name', 'modern-events-calendar-lite');
185
+ $columns['color'] = esc_html__('Color', 'modern-events-calendar-lite');
186
+ $columns['posts'] = esc_html__('Count', 'modern-events-calendar-lite');
187
+ $columns['slug'] = esc_html__('Slug', 'modern-events-calendar-lite');
188
 
189
  return $columns;
190
  }
224
  */
225
  public function register_meta_boxes()
226
  {
227
+ add_meta_box('mec_metabox_label', sprintf(__('Event %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))), array($this, 'meta_box_labels'), $this->main->get_main_post_type(), 'side');
228
  }
229
 
230
  /**
241
  <div class="mec-form-row">
242
  <?php foreach($labels as $label): ?>
243
  <div class="mec-label-row">
244
+ <input <?php if(in_array($label->term_id, $terms)) echo 'checked="checked"'; ?> name="mec[labels][]" type="checkbox" value="<?php echo esc_attr($label->term_id); ?>" id="mec_label<?php echo esc_attr($label->term_id); ?>" />
245
+ <?php do_action('mec_label_to_checkbox_backend', $label, $terms); ?>
246
+ <label for="mec_label<?php echo esc_attr($label->term_id); ?>"><?php echo esc_html($label->name); ?></label>
247
  <span class="mec-color" style="background-color: <?php echo get_term_meta($label->term_id, 'color', true); ?>"></span>
248
  </div>
249
  <?php endforeach; ?>
274
 
275
  $_labels = isset($_mec['labels']) ? (array) $_mec['labels'] : array();
276
 
277
+ $_labels = array_map('sanitize_text_field', $_labels);
278
  $_labels = array_map('intval', $_labels);
279
  $_labels = array_unique($_labels);
280
 
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', 'modern-events-calendar-lite'));
59
- $plural_label = $this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite'));
60
 
61
  register_taxonomy(
62
  'mec_location',
@@ -108,10 +108,10 @@ class MEC_feature_locations extends MEC_base
108
  ?>
109
  <tr class="form-field">
110
  <th scope="row">
111
- <label for="mec_address"><?php _e('Address', 'modern-events-calendar-lite'); ?></label>
112
  </th>
113
  <td>
114
- <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; ?>" />
115
 
116
  <?php if($status and trim($api_key)): ?>
117
  <script type="text/javascript">
@@ -128,38 +128,38 @@ class MEC_feature_locations extends MEC_base
128
  </tr>
129
  <tr class="form-field">
130
  <th scope="row">
131
- <label for="mec_latitude"><?php _e('Latitude', 'modern-events-calendar-lite'); ?></label>
132
  </th>
133
  <td>
134
- <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo latitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" name="latitude" id="mec_latitude" value="<?php echo $latitude; ?>" />
135
  </td>
136
  </tr>
137
  <tr class="form-field">
138
  <th scope="row">
139
- <label for="mec_longitude"><?php _e('Longitude', 'modern-events-calendar-lite'); ?></label>
140
  </th>
141
  <td>
142
- <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo longitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" name="longitude" id="mec_longitude" value="<?php echo $longitude; ?>" />
143
  </td>
144
  </tr>
145
  <tr class="form-field">
146
  <th scope="row">
147
- <label for="mec_url"><?php _e('Location Website', 'modern-events-calendar-lite'); ?></label>
148
  </th>
149
  <td>
150
- <input type="url" placeholder="<?php esc_attr_e('Location Website (Optional)', 'modern-events-calendar-lite'); ?>" name="url" id="mec_url" value="<?php echo $url; ?>" />
151
  </td>
152
  </tr>
153
  <?php do_action('mec_location_after_edit_form', $term); ?>
154
  <tr class="form-field">
155
  <th scope="row">
156
- <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
157
  </th>
158
  <td>
159
- <div id="mec_thumbnail_img"><?php if(trim($thumbnail) != '') echo '<img src="'.$thumbnail.'" />'; ?></div>
160
- <input type="hidden" name="thumbnail" id="mec_thumbnail" value="<?php echo $thumbnail; ?>" />
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 <?php echo (!trim($thumbnail) ? 'mec-util-hidden' : ''); ?>"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
163
  </td>
164
  </tr>
165
  <?php
@@ -178,7 +178,7 @@ class MEC_feature_locations extends MEC_base
178
  $api_key = isset($this->settings['google_maps_api_key']) ? $this->settings['google_maps_api_key'] : '';
179
  ?>
180
  <div class="form-field">
181
- <label for="mec_address"><?php _e('Address', 'modern-events-calendar-lite'); ?></label>
182
  <input type="text" name="address" placeholder="<?php esc_attr_e('Enter the location address', 'modern-events-calendar-lite'); ?>" id="mec_address" value="" />
183
 
184
  <?php if($status and trim($api_key)): ?>
@@ -194,24 +194,24 @@ class MEC_feature_locations extends MEC_base
194
  <?php endif; ?>
195
  </div>
196
  <div class="form-field">
197
- <label for="mec_latitude"><?php _e('Latitude', 'modern-events-calendar-lite'); ?></label>
198
  <input type="text" name="latitude" placeholder="<?php esc_attr_e('Geo latitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" id="mec_latitude" value="" />
199
  </div>
200
  <div class="form-field">
201
- <label for="mec_longitude"><?php _e('Longitude', 'modern-events-calendar-lite'); ?></label>
202
  <input type="text" name="longitude" placeholder="<?php esc_attr_e('Geo longitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" id="mec_longitude" value="" />
203
  </div>
204
  <div class="form-field">
205
- <label for="mec_url"><?php _e('Location Website', 'modern-events-calendar-lite'); ?></label>
206
  <input type="url" name="url" placeholder="<?php esc_attr_e('Location Website (Optional)', 'modern-events-calendar-lite'); ?>" id="mec_url" value="" />
207
  </div>
208
  <?php do_action('mec_location_after_add_form'); ?>
209
  <div class="form-field">
210
- <label for="mec_thumbnail_button"><?php _e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
211
  <div id="mec_thumbnail_img"></div>
212
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="" />
213
- <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo __('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
214
- <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
215
  </div>
216
  <?php
217
  }
@@ -263,11 +263,11 @@ class MEC_feature_locations extends MEC_base
263
  unset($columns['description']);
264
  unset($columns['posts']);
265
 
266
- $columns['id'] = __('ID', 'modern-events-calendar-lite');
267
- $columns['name'] = __('Location', 'modern-events-calendar-lite');
268
- $columns['address'] = __('Address', 'modern-events-calendar-lite');
269
- $columns['posts'] = __('Count', 'modern-events-calendar-lite');
270
- $columns['slug'] = __('Slug', 'modern-events-calendar-lite');
271
 
272
  return $columns;
273
  }
@@ -326,31 +326,31 @@ class MEC_feature_locations extends MEC_base
326
  $api_key = isset($this->settings['google_maps_api_key']) ? $this->settings['google_maps_api_key'] : '';
327
  ?>
328
  <div class="mec-meta-box-fields mec-event-tab-content" id="mec-location">
329
- <h4><?php echo sprintf(__('Event Main %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_location', __('Location', 'modern-events-calendar-lite'))); ?></h4>
330
  <div class="mec-form-row">
331
- <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'); ?>">
332
- <option value="1"><?php _e('Hide location', 'modern-events-calendar-lite'); ?></option>
333
- <option value="0"><?php _e('Insert a new location', 'modern-events-calendar-lite'); ?></option>
334
  <?php foreach($locations as $location): ?>
335
- <option <?php if($location_id == $location->term_id) echo 'selected="selected"'; ?> value="<?php echo $location->term_id; ?>"><?php echo $location->name; ?></option>
336
  <?php endforeach; ?>
337
  </select>
338
  <span class="mec-tooltip">
339
  <div class="box top">
340
- <h5 class="title"><?php _e('Location', 'modern-events-calendar-lite'); ?></h5>
341
- <div class="content"><p><?php esc_attr_e('Choose one of saved locations or insert new one below.', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/location/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
342
  </div>
343
  <i title="" class="dashicons-before dashicons-editor-help"></i>
344
  </span>
345
  </div>
346
  <div id="mec_location_new_container">
347
  <div class="mec-form-row">
348
- <input type="text" name="mec[location][name]" id="mec_location_name" value="" placeholder="<?php _e('Location Name', 'modern-events-calendar-lite'); ?>" />
349
- <p class="description"><?php _e('eg. City Hall', 'modern-events-calendar-lite'); ?></p>
350
  </div>
351
  <div class="mec-form-row">
352
- <input type="text" name="mec[location][address]" id="mec_location_address" value="" placeholder="<?php _e('Event Location', 'modern-events-calendar-lite'); ?>" />
353
- <p class="description"><?php _e('eg. City hall, Manhattan, New York', 'modern-events-calendar-lite'); ?></p>
354
 
355
  <?php if($status and trim($api_key)): ?>
356
  <script type="text/javascript">
@@ -371,51 +371,51 @@ class MEC_feature_locations extends MEC_base
371
  <?php endif; ?>
372
  </div>
373
  <div class="mec-form-row mec-lat-lng-row">
374
- <input class="mec-has-tip" type="text" name="mec[location][latitude]" id="mec_location_latitude" value="" placeholder="<?php _e('Latitude', 'modern-events-calendar-lite'); ?>" />
375
- <input class="mec-has-tip" type="text" name="mec[location][longitude]" id="mec_location_longitude" value="" placeholder="<?php _e('Longitude', 'modern-events-calendar-lite'); ?>" />
376
  <span class="mec-tooltip">
377
  <div class="box top">
378
- <h5 class="title"><?php _e('Latitude/Longitude', 'modern-events-calendar-lite'); ?></h5>
379
- <div class="content"><p><?php esc_attr_e('If you leave the latitude and longitude empty, Modern Events Calendar tries to convert the location address to geopoint, Latitude and Longitude are the units that represent the coordinates at geographic coordinate system. To make a search, use the name of a place, city, state, or address, or click the location on the map to find lat long coordinates.', 'modern-events-calendar-lite'); ?><a href="https://latlong.net" target="_blank"><?php _e('Get Latitude and Longitude', 'modern-events-calendar-lite'); ?></a></p></div>
380
  </div>
381
  <i title="" class="dashicons-before dashicons-editor-help"></i>
382
  </span>
383
  </div>
384
  <div class="mec-form-row">
385
- <input type="url" name="mec[location][url]" id="mec_location_url" value="" placeholder="<?php _e('Location Website', 'modern-events-calendar-lite'); ?>" />
386
  </div>
387
  <?php do_action('mec_location_after_new_form'); ?>
388
  <?php /* Don't show this section in FES */ if(is_admin()): ?>
389
  <div class="mec-form-row mec-thumbnail-row">
390
  <div id="mec_location_thumbnail_img"></div>
391
  <input type="hidden" name="mec[location][thumbnail]" id="mec_location_thumbnail" value="" />
392
- <button type="button" class="mec_location_upload_image_button button" id="mec_location_thumbnail_button"><?php echo __('Choose image', 'modern-events-calendar-lite'); ?></button>
393
- <button type="button" class="mec_location_remove_image_button button mec-util-hidden"><?php echo __('Remove image', 'modern-events-calendar-lite'); ?></button>
394
  </div>
395
  <?php else: ?>
396
  <div class="mec-form-row mec-thumbnail-row">
397
  <span id="mec_fes_location_thumbnail_img"></span>
398
  <input type="hidden" name="mec[location][thumbnail]" id="mec_fes_location_thumbnail" value="" />
399
  <input type="file" id="mec_fes_location_thumbnail_file" onchange="mec_fes_upload_location_thumbnail();" />
400
- <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>
401
  </div>
402
  <?php endif; ?>
403
  </div>
404
  <?php if($this->getPRO()): ?>
405
  <div class="mec-form-row">
406
  <input type="hidden" name="mec[dont_show_map]" value="0" />
407
- <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>
408
  </div>
409
  <?php endif; ?>
410
  <?php if($additional_locations_status and count($locations)): ?>
411
- <h4><?php echo $this->main->m('other_locations', __('Other Locations', 'modern-events-calendar-lite')); ?></h4>
412
  <div class="mec-form-row">
413
- <p><?php _e('You can select extra locations in addition to main location if you like.', 'modern-events-calendar-lite'); ?></p>
414
  <div class="mec-additional-locations">
415
  <select class="mec-select2-dropdown" name="mec[additional_location_ids][]" multiple="multiple">
416
  <?php foreach($locations as $location): ?>
417
- <option <?php if(in_array($location->term_id, $location_ids)) echo 'selected="selected"'; ?> value="<?php echo $location->term_id; ?>">
418
- <?php echo $location->name; ?>
419
  </option>
420
  <?php endforeach; ?>
421
  </select>
@@ -443,7 +443,7 @@ class MEC_feature_locations extends MEC_base
443
  // If this is an autosave, our form has not been submitted, so we don't want to do anything.
444
  if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return false;
445
 
446
- $action = (isset($_POST['action']) ? $_POST['action'] : '');
447
  if($action === 'mec_fes_form') return false;
448
 
449
  // Get Modern Events Calendar Data
@@ -475,11 +475,7 @@ class MEC_feature_locations extends MEC_base
475
  $term = wp_insert_term($name, 'mec_location');
476
 
477
  // An error ocurred
478
- if(is_wp_error($term))
479
- {
480
- #TODO show a message to user
481
- return false;
482
- }
483
 
484
  $location_id = $term['term_id'];
485
  if(!$location_id) return false;
55
  */
56
  public function register_taxonomy()
57
  {
58
+ $singular_label = $this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'));
59
+ $plural_label = $this->main->m('taxonomy_locations', esc_html__('Locations', 'modern-events-calendar-lite'));
60
 
61
  register_taxonomy(
62
  'mec_location',
108
  ?>
109
  <tr class="form-field">
110
  <th scope="row">
111
+ <label for="mec_address"><?php esc_html_e('Address', 'modern-events-calendar-lite'); ?></label>
112
  </th>
113
  <td>
114
+ <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 esc_attr($address); ?>" />
115
 
116
  <?php if($status and trim($api_key)): ?>
117
  <script type="text/javascript">
128
  </tr>
129
  <tr class="form-field">
130
  <th scope="row">
131
+ <label for="mec_latitude"><?php esc_html_e('Latitude', 'modern-events-calendar-lite'); ?></label>
132
  </th>
133
  <td>
134
+ <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo latitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" name="latitude" id="mec_latitude" value="<?php echo esc_attr($latitude); ?>" />
135
  </td>
136
  </tr>
137
  <tr class="form-field">
138
  <th scope="row">
139
+ <label for="mec_longitude"><?php esc_html_e('Longitude', 'modern-events-calendar-lite'); ?></label>
140
  </th>
141
  <td>
142
+ <input class="mec-has-tip" type="text" placeholder="<?php esc_attr_e('Geo longitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" name="longitude" id="mec_longitude" value="<?php echo esc_attr($longitude); ?>" />
143
  </td>
144
  </tr>
145
  <tr class="form-field">
146
  <th scope="row">
147
+ <label for="mec_url"><?php esc_html_e('Location Website', 'modern-events-calendar-lite'); ?></label>
148
  </th>
149
  <td>
150
+ <input type="url" placeholder="<?php esc_attr_e('Location Website (Optional)', 'modern-events-calendar-lite'); ?>" name="url" id="mec_url" value="<?php echo esc_attr($url); ?>" />
151
  </td>
152
  </tr>
153
  <?php do_action('mec_location_after_edit_form', $term); ?>
154
  <tr class="form-field">
155
  <th scope="row">
156
+ <label for="mec_thumbnail_button"><?php esc_html_e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
157
  </th>
158
  <td>
159
+ <div id="mec_thumbnail_img"><?php if(trim($thumbnail) != '') echo '<img src="'.esc_url($thumbnail).'" />'; ?></div>
160
+ <input type="hidden" name="thumbnail" id="mec_thumbnail" value="<?php echo esc_attr($thumbnail); ?>" />
161
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo esc_html__('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
162
+ <button type="button" class="mec_remove_image_button button <?php echo (!trim($thumbnail) ? 'mec-util-hidden' : ''); ?>"><?php echo esc_html__('Remove image', 'modern-events-calendar-lite'); ?></button>
163
  </td>
164
  </tr>
165
  <?php
178
  $api_key = isset($this->settings['google_maps_api_key']) ? $this->settings['google_maps_api_key'] : '';
179
  ?>
180
  <div class="form-field">
181
+ <label for="mec_address"><?php esc_html_e('Address', 'modern-events-calendar-lite'); ?></label>
182
  <input type="text" name="address" placeholder="<?php esc_attr_e('Enter the location address', 'modern-events-calendar-lite'); ?>" id="mec_address" value="" />
183
 
184
  <?php if($status and trim($api_key)): ?>
194
  <?php endif; ?>
195
  </div>
196
  <div class="form-field">
197
+ <label for="mec_latitude"><?php esc_html_e('Latitude', 'modern-events-calendar-lite'); ?></label>
198
  <input type="text" name="latitude" placeholder="<?php esc_attr_e('Geo latitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" id="mec_latitude" value="" />
199
  </div>
200
  <div class="form-field">
201
+ <label for="mec_longitude"><?php esc_html_e('Longitude', 'modern-events-calendar-lite'); ?></label>
202
  <input type="text" name="longitude" placeholder="<?php esc_attr_e('Geo longitude (Optional for Lite)', 'modern-events-calendar-lite'); ?>" id="mec_longitude" value="" />
203
  </div>
204
  <div class="form-field">
205
+ <label for="mec_url"><?php esc_html_e('Location Website', 'modern-events-calendar-lite'); ?></label>
206
  <input type="url" name="url" placeholder="<?php esc_attr_e('Location Website (Optional)', 'modern-events-calendar-lite'); ?>" id="mec_url" value="" />
207
  </div>
208
  <?php do_action('mec_location_after_add_form'); ?>
209
  <div class="form-field">
210
+ <label for="mec_thumbnail_button"><?php esc_html_e('Thumbnail', 'modern-events-calendar-lite'); ?></label>
211
  <div id="mec_thumbnail_img"></div>
212
  <input type="hidden" name="thumbnail" id="mec_thumbnail" value="" />
213
+ <button type="button" class="mec_upload_image_button button" id="mec_thumbnail_button"><?php echo esc_html__('Upload/Add image', 'modern-events-calendar-lite'); ?></button>
214
+ <button type="button" class="mec_remove_image_button button mec-util-hidden"><?php echo esc_html__('Remove image', 'modern-events-calendar-lite'); ?></button>
215
  </div>
216
  <?php
217
  }
263
  unset($columns['description']);
264
  unset($columns['posts']);
265
 
266
+ $columns['id'] = esc_html__('ID', 'modern-events-calendar-lite');
267
+ $columns['name'] = esc_html__('Location', 'modern-events-calendar-lite');
268
+ $columns['address'] = esc_html__('Address', 'modern-events-calendar-lite');
269
+ $columns['posts'] = esc_html__('Count', 'modern-events-calendar-lite');
270
+ $columns['slug'] = esc_html__('Slug', 'modern-events-calendar-lite');
271
 
272
  return $columns;
273
  }
326
  $api_key = isset($this->settings['google_maps_api_key']) ? $this->settings['google_maps_api_key'] : '';
327
  ?>
328
  <div class="mec-meta-box-fields mec-event-tab-content" id="mec-location">
329
+ <h4><?php echo sprintf(__('Event Main %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h4>
330
  <div class="mec-form-row">
331
+ <select name="mec[location_id]" id="mec_location_id" title="<?php echo esc_attr__($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
332
+ <option value="1"><?php esc_html_e('Hide location', 'modern-events-calendar-lite'); ?></option>
333
+ <option value="0"><?php esc_html_e('Insert a new location', 'modern-events-calendar-lite'); ?></option>
334
  <?php foreach($locations as $location): ?>
335
+ <option <?php if($location_id == $location->term_id) echo 'selected="selected"'; ?> value="<?php echo esc_attr($location->term_id); ?>"><?php echo esc_html($location->name); ?></option>
336
  <?php endforeach; ?>
337
  </select>
338
  <span class="mec-tooltip">
339
  <div class="box top">
340
+ <h5 class="title"><?php esc_html_e('Location', 'modern-events-calendar-lite'); ?></h5>
341
+ <div class="content"><p><?php esc_attr_e('Choose one of saved locations or insert new one below.', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/location/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
342
  </div>
343
  <i title="" class="dashicons-before dashicons-editor-help"></i>
344
  </span>
345
  </div>
346
  <div id="mec_location_new_container">
347
  <div class="mec-form-row">
348
+ <input type="text" name="mec[location][name]" id="mec_location_name" value="" placeholder="<?php esc_html_e('Location Name', 'modern-events-calendar-lite'); ?>" />
349
+ <p class="description"><?php esc_html_e('eg. City Hall', 'modern-events-calendar-lite'); ?></p>
350
  </div>
351
  <div class="mec-form-row">
352
+ <input type="text" name="mec[location][address]" id="mec_location_address" value="" placeholder="<?php esc_html_e('Event Location', 'modern-events-calendar-lite'); ?>" />
353
+ <p class="description"><?php esc_html_e('eg. City hall, Manhattan, New York', 'modern-events-calendar-lite'); ?></p>
354
 
355
  <?php if($status and trim($api_key)): ?>
356
  <script type="text/javascript">
371
  <?php endif; ?>
372
  </div>
373
  <div class="mec-form-row mec-lat-lng-row">
374
+ <input class="mec-has-tip" type="text" name="mec[location][latitude]" id="mec_location_latitude" value="" placeholder="<?php esc_html_e('Latitude', 'modern-events-calendar-lite'); ?>" />
375
+ <input class="mec-has-tip" type="text" name="mec[location][longitude]" id="mec_location_longitude" value="" placeholder="<?php esc_html_e('Longitude', 'modern-events-calendar-lite'); ?>" />
376
  <span class="mec-tooltip">
377
  <div class="box top">
378
+ <h5 class="title"><?php esc_html_e('Latitude/Longitude', 'modern-events-calendar-lite'); ?></h5>
379
+ <div class="content"><p><?php esc_attr_e('If you leave the latitude and longitude empty, Modern Events Calendar tries to convert the location address to geopoint, Latitude and Longitude are the units that represent the coordinates at geographic coordinate system. To make a search, use the name of a place, city, state, or address, or click the location on the map to find lat long coordinates.', 'modern-events-calendar-lite'); ?><a href="https://latlong.net" target="_blank"><?php esc_html_e('Get Latitude and Longitude', 'modern-events-calendar-lite'); ?></a></p></div>
380
  </div>
381
  <i title="" class="dashicons-before dashicons-editor-help"></i>
382
  </span>
383
  </div>
384
  <div class="mec-form-row">
385
+ <input type="url" name="mec[location][url]" id="mec_location_url" value="" placeholder="<?php esc_html_e('Location Website', 'modern-events-calendar-lite'); ?>" />
386
  </div>
387
  <?php do_action('mec_location_after_new_form'); ?>
388
  <?php /* Don't show this section in FES */ if(is_admin()): ?>
389
  <div class="mec-form-row mec-thumbnail-row">
390
  <div id="mec_location_thumbnail_img"></div>
391
  <input type="hidden" name="mec[location][thumbnail]" id="mec_location_thumbnail" value="" />
392
+ <button type="button" class="mec_location_upload_image_button button" id="mec_location_thumbnail_button"><?php echo esc_html__('Choose image', 'modern-events-calendar-lite'); ?></button>
393
+ <button type="button" class="mec_location_remove_image_button button mec-util-hidden"><?php echo esc_html__('Remove image', 'modern-events-calendar-lite'); ?></button>
394
  </div>
395
  <?php else: ?>
396
  <div class="mec-form-row mec-thumbnail-row">
397
  <span id="mec_fes_location_thumbnail_img"></span>
398
  <input type="hidden" name="mec[location][thumbnail]" id="mec_fes_location_thumbnail" value="" />
399
  <input type="file" id="mec_fes_location_thumbnail_file" onchange="mec_fes_upload_location_thumbnail();" />
400
+ <span class="mec_fes_location_remove_image_button button mec-util-hidden" id="mec_fes_location_remove_image_button"><?php echo esc_html__('Remove image', 'modern-events-calendar-lite'); ?></span>
401
  </div>
402
  <?php endif; ?>
403
  </div>
404
  <?php if($this->getPRO()): ?>
405
  <div class="mec-form-row">
406
  <input type="hidden" name="mec[dont_show_map]" value="0" />
407
+ <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 esc_html__("Don't show map in single event page", 'modern-events-calendar-lite'); ?></label>
408
  </div>
409
  <?php endif; ?>
410
  <?php if($additional_locations_status and count($locations)): ?>
411
+ <h4><?php echo esc_html($this->main->m('other_locations', esc_html__('Other Locations', 'modern-events-calendar-lite'))); ?></h4>
412
  <div class="mec-form-row">
413
+ <p><?php esc_html_e('You can select extra locations in addition to main location if you like.', 'modern-events-calendar-lite'); ?></p>
414
  <div class="mec-additional-locations">
415
  <select class="mec-select2-dropdown" name="mec[additional_location_ids][]" multiple="multiple">
416
  <?php foreach($locations as $location): ?>
417
+ <option <?php if(in_array($location->term_id, $location_ids)) echo 'selected="selected"'; ?> value="<?php echo esc_attr($location->term_id); ?>">
418
+ <?php echo esc_html($location->name); ?>
419
  </option>
420
  <?php endforeach; ?>
421
  </select>
443
  // If this is an autosave, our form has not been submitted, so we don't want to do anything.
444
  if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return false;
445
 
446
+ $action = (isset($_POST['action']) ? sanitize_text_field($_POST['action']) : '');
447
  if($action === 'mec_fes_form') return false;
448
 
449
  // Get Modern Events Calendar Data
475
  $term = wp_insert_term($name, 'mec_location');
476
 
477
  // An error ocurred
478
+ if(is_wp_error($term)) return false;
 
 
 
 
479
 
480
  $location_id = $term['term_id'];
481
  if(!$location_id) return false;
app/features/mec.php CHANGED
@@ -176,7 +176,7 @@ class MEC_feature_mec extends MEC_base
176
  $this->factory->action('wp_ajax_total-booking-get-reports',array($this, 'dashboard_widget_total_booking_ajax_handler'));
177
 
178
  // Custom Capability Map
179
- if (is_admin()) $this->factory->filter('map_meta_cap', array($this, 'map_meta_cap'), 10, 4);
180
 
181
  // Protected Content Shortcode
182
  if($this->getPRO()) $this->factory->shortcode('mec-only-booked-users', array($this, 'only_booked_users_content'));
@@ -197,6 +197,12 @@ class MEC_feature_mec extends MEC_base
197
  {
198
  update_option('mec_latest_event_datetime', current_time('YmdHis'), false);
199
  });
 
 
 
 
 
 
200
  }
201
 
202
  /* Activate License */
@@ -207,7 +213,7 @@ class MEC_feature_mec extends MEC_base
207
  // Current User is not Permitted
208
  if(!current_user_can('manage_options')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
209
 
210
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
211
 
212
  $options = get_option('mec_options');
213
  $options['product_name'] = sanitize_text_field($_REQUEST['content']['LicenseTypeJson']);
@@ -224,13 +230,13 @@ class MEC_feature_mec extends MEC_base
224
  }
225
  else
226
  {
227
- $LicenseStatus = __('Activation failed. Please check your purchase code or license type.<br><b>Note: Your purchase code should match your licesne type.</b>', 'modern-events-calendar-lite') . '<a style="text-decoration: underline; padding-left: 7px;" href="https://webnus.net/dox/modern-events-calendar/auto-update-issue/" target="_blank">' . __('Troubleshooting', 'modern-events-calendar-lite') . '</a>';
228
  update_option('mec_license_status', 'faild');
229
  }
230
 
231
 
232
  update_option('mec_options', $options);
233
- echo $LicenseStatus;
234
  wp_die();
235
  }
236
  }
@@ -244,7 +250,7 @@ class MEC_feature_mec extends MEC_base
244
  $url = get_home_url();
245
  if (!isset($code) || empty($code)) return;
246
  $verify_url = MEC_API_URL . '/activation/verify?category=mec&license=' . $code . '&url=' . $url . '&item_id=' . $item_id;
247
-
248
  $JSON = wp_remote_retrieve_body(wp_remote_get($verify_url, array(
249
  'body' => null,
250
  'timeout' => '120',
@@ -265,7 +271,7 @@ class MEC_feature_mec extends MEC_base
265
  // Current User is not Permitted
266
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
267
 
268
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_download'))
269
  {
270
  exit();
271
  }
@@ -288,7 +294,7 @@ class MEC_feature_mec extends MEC_base
288
  {
289
  // Current User is not Permitted
290
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
291
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
292
 
293
  update_option('mec_addons_notification_option', 'open');
294
  wp_die();
@@ -299,7 +305,7 @@ class MEC_feature_mec extends MEC_base
299
  {
300
  // Current User is not Permitted
301
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
302
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
303
 
304
  update_option('mec_custom_msg_2_close_option', 'open');
305
  wp_die();
@@ -310,7 +316,7 @@ class MEC_feature_mec extends MEC_base
310
  {
311
  // Current User is not Permitted
312
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
313
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
314
 
315
  update_option('mec_custom_msg_close_option', 'open');
316
  wp_die();
@@ -322,7 +328,7 @@ class MEC_feature_mec extends MEC_base
322
  {
323
  // Current User is not Permitted
324
  if(!current_user_can('mec_report')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
325
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
326
 
327
  $event_id = sanitize_text_field($_POST['event_id']);
328
  $feature_class = new MEC_feature_mec();
@@ -380,9 +386,9 @@ class MEC_feature_mec extends MEC_base
380
  {
381
  // Current User is not Permitted
382
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
383
- if(!wp_verify_nonce($_REQUEST['nonce'], 'mec_settings_nonce')) exit();
384
 
385
- $options = $_REQUEST['content'];
386
  if($options == 'No-JSON')
387
  {
388
  echo '<div class="mec-message-import-error">' . esc_html__('Your option is not in JSON format. Please insert correct options in this field and try again.', 'modern-events-calendar-lite') . '</div>';
@@ -503,7 +509,7 @@ class MEC_feature_mec extends MEC_base
503
  */
504
  public function support_menu()
505
  {
506
- add_submenu_page('mec-intro', __('MEC - Support', 'modern-events-calendar-lite'), __('Support', 'modern-events-calendar-lite'), 'manage_options', 'MEC-support', array($this, 'support_page'));
507
  }
508
 
509
  /**
@@ -519,41 +525,41 @@ class MEC_feature_mec extends MEC_base
519
  remove_menu_page('edit.php?post_type=mec_calendars');
520
  do_action('before_mec_submenu_action');
521
 
522
- 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);
523
- add_submenu_page('mec-intro', __('Tags', 'modern-events-calendar-lite'), __('Tags', 'modern-events-calendar-lite'), 'edit_others_posts', 'edit-tags.php?taxonomy='.apply_filters('mec_taxonomy_tag', '').'&post_type='.$this->PT);
524
- add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_categories', __('Categories', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_category&post_type='.$this->PT);
525
- add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_labels', __('Labels', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_label&post_type='.$this->PT);
526
- add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_locations', __('Locations', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_location&post_type='.$this->PT);
527
- add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_organizers', __('Organizers', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_organizers', __('Organizers', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_organizer&post_type='.$this->PT);
528
 
529
  // Speakers Menu
530
  if(isset($this->settings['speakers_status']) and $this->settings['speakers_status'])
531
  {
532
- add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_speakers', __('Speakers', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_speakers', __('Speakers', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_speaker&post_type='.$this->PT);
533
  }
534
 
535
  $capability = (current_user_can('administrator') ? 'manage_options' : 'mec_shortcodes');
536
- add_submenu_page('mec-intro', __('Shortcodes', 'modern-events-calendar-lite'), __('Shortcodes', 'modern-events-calendar-lite'), $capability, 'edit.php?post_type=mec_calendars');
537
 
538
  // Auto Email Menu
539
  if(isset($this->settings['auto_emails_module_status']) and $this->settings['auto_emails_module_status'])
540
  {
541
  $capability = 'manage_options';
542
- add_submenu_page('mec-intro', __('Emails', 'modern-events-calendar-lite'), __('Emails', 'modern-events-calendar-lite'), $capability, 'edit.php?post_type=mec-emails');
543
  }
544
 
545
  $capability = (current_user_can('administrator') ? 'manage_options' : 'mec_settings');
546
- add_submenu_page('mec-intro', __('MEC - Settings', 'modern-events-calendar-lite'), __('Settings', 'modern-events-calendar-lite'), $capability, 'MEC-settings', array($this, 'page'));
547
 
548
- add_submenu_page('mec-intro', __('MEC - Addons', 'modern-events-calendar-lite'), __('Addons', 'modern-events-calendar-lite'), 'manage_options', 'MEC-addons', array($this, 'addons'));
549
- add_submenu_page('mec-intro', __('MEC - Wizard', 'modern-events-calendar-lite'), __('Wizard', 'modern-events-calendar-lite'), 'manage_options', 'MEC-wizard', array($this, 'setup_wizard'));
550
 
551
  if(isset($this->settings['booking_status']) and $this->settings['booking_status'])
552
  {
553
- add_submenu_page('mec-intro', __('MEC - Report', 'modern-events-calendar-lite'), __('Report', 'modern-events-calendar-lite'), 'mec_report', 'MEC-report', array($this, 'report'));
554
  }
555
 
556
- if(!$this->getPRO()) add_submenu_page('mec-intro', __('MEC - Go Pro', 'modern-events-calendar-lite'), __('Go Pro', 'modern-events-calendar-lite'), 'manage_options', 'MEC-go-pro', array($this, 'go_pro'));
557
  do_action('after_mec_submenu_action');
558
  }
559
 
@@ -577,7 +583,7 @@ class MEC_feature_mec extends MEC_base
577
  $path = MEC::import('app.features.mec.wizard', true, true);
578
  ob_start();
579
  include $path;
580
- echo $output = ob_get_clean();
581
  }
582
 
583
  /**
@@ -625,7 +631,7 @@ class MEC_feature_mec extends MEC_base
625
  */
626
  public function filter_columns($columns)
627
  {
628
- $columns['shortcode'] = __('Shortcode', 'modern-events-calendar-lite');
629
  return $columns;
630
  }
631
 
@@ -653,10 +659,10 @@ class MEC_feature_mec extends MEC_base
653
  $screen = get_current_screen();
654
  if ( $screen->id == 'mec_calendars' ) remove_all_actions('acf/input/admin_head');
655
 
656
- add_meta_box('mec_calendar_display_options', __('Display Options', 'modern-events-calendar-lite'), array($this, 'meta_box_display_options'), 'mec_calendars', 'normal', 'high');
657
- add_meta_box('mec_calendar_filter', __('Filter Options', 'modern-events-calendar-lite'), array($this, 'meta_box_filter'), 'mec_calendars', 'normal', 'high');
658
- add_meta_box('mec_calendar_shortcode', __('Shortcode', 'modern-events-calendar-lite'), array($this, 'meta_box_shortcode'), 'mec_calendars', 'side');
659
- add_meta_box('mec_calendar_search_form', __('Search Form', 'modern-events-calendar-lite'), array($this, 'meta_box_search_form'), 'mec_calendars', 'side');
660
  }
661
 
662
  /**
@@ -682,7 +688,7 @@ class MEC_feature_mec extends MEC_base
682
  $locations = (isset($terms['mec_location']) and is_array($terms['mec_location'])) ? implode(',', $terms['mec_location']) : '';
683
  $organizers = (isset($terms['mec_organizer']) and is_array($terms['mec_organizer'])) ? implode(',', $terms['mec_organizer']) : '';
684
  $labels = (isset($terms['mec_label']) and is_array($terms['mec_label'])) ? implode(',', $terms['mec_label']) : '';
685
- $tags = (isset($terms['mec_tag'])) ? explode(',', trim($terms['mec_tag'])) : '';
686
  $authors = (isset($terms['mec_author']) and is_array($terms['mec_author'])) ? implode(',', $terms['mec_author']) : '';
687
 
688
  // Fix tags
@@ -735,7 +741,7 @@ class MEC_feature_mec extends MEC_base
735
 
736
  ob_start();
737
  include $path;
738
- echo $output = ob_get_clean();
739
  }
740
 
741
  /**
@@ -749,7 +755,7 @@ class MEC_feature_mec extends MEC_base
749
 
750
  ob_start();
751
  include $path;
752
- echo $output = ob_get_clean();
753
  }
754
 
755
  /**
@@ -763,7 +769,7 @@ class MEC_feature_mec extends MEC_base
763
 
764
  ob_start();
765
  include $path;
766
- echo $output = ob_get_clean();
767
  }
768
 
769
  /**
@@ -777,7 +783,7 @@ class MEC_feature_mec extends MEC_base
777
 
778
  ob_start();
779
  include $path;
780
- echo $output = ob_get_clean();
781
  }
782
 
783
  /**
@@ -791,7 +797,7 @@ class MEC_feature_mec extends MEC_base
791
 
792
  ob_start();
793
  include $path;
794
- echo $output = ob_get_clean();
795
  }
796
 
797
  /**
@@ -814,7 +820,7 @@ class MEC_feature_mec extends MEC_base
814
  $path = MEC::import('app.features.mec.go-pro', true, true);
815
  ob_start();
816
  include $path;
817
- echo $output = ob_get_clean();
818
  }
819
 
820
  /**
@@ -837,7 +843,7 @@ class MEC_feature_mec extends MEC_base
837
  $path = MEC::import('app.features.mec.addons', true, true);
838
  ob_start();
839
  include $path;
840
- echo $output = ob_get_clean();
841
  }
842
 
843
  /**
@@ -862,7 +868,7 @@ class MEC_feature_mec extends MEC_base
862
  ob_start();
863
  include $path;
864
  do_action('mec_display_report_page', $path);
865
- echo $output = ob_get_clean();
866
  }
867
 
868
  /**
@@ -875,7 +881,7 @@ class MEC_feature_mec extends MEC_base
875
  $path = MEC::import('app.features.mec.support-page', true, true);
876
  ob_start();
877
  include $path;
878
- echo $output = ob_get_clean();
879
  }
880
 
881
  /**
@@ -923,7 +929,7 @@ class MEC_feature_mec extends MEC_base
923
 
924
  ob_start();
925
  include $path;
926
- echo $output = ob_get_clean();
927
  }
928
 
929
  /**
@@ -937,7 +943,7 @@ class MEC_feature_mec extends MEC_base
937
 
938
  ob_start();
939
  include $path;
940
- echo $output = ob_get_clean();
941
  }
942
 
943
  /**
@@ -951,7 +957,7 @@ class MEC_feature_mec extends MEC_base
951
 
952
  ob_start();
953
  include $path;
954
- echo $output = ob_get_clean();
955
  }
956
 
957
  /**
@@ -965,7 +971,7 @@ class MEC_feature_mec extends MEC_base
965
 
966
  ob_start();
967
  include $path;
968
- echo $output = ob_get_clean();
969
  }
970
 
971
  /**
@@ -979,7 +985,7 @@ class MEC_feature_mec extends MEC_base
979
 
980
  ob_start();
981
  include $path;
982
- echo $output = ob_get_clean();
983
  }
984
 
985
  /**
@@ -993,7 +999,7 @@ class MEC_feature_mec extends MEC_base
993
 
994
  ob_start();
995
  include $path;
996
- echo $output = ob_get_clean();
997
  }
998
 
999
  /**
@@ -1007,7 +1013,7 @@ class MEC_feature_mec extends MEC_base
1007
 
1008
  ob_start();
1009
  include $path;
1010
- echo $output = ob_get_clean();
1011
  }
1012
 
1013
  /**
@@ -1021,7 +1027,7 @@ class MEC_feature_mec extends MEC_base
1021
 
1022
  ob_start();
1023
  include $path;
1024
- echo $output = ob_get_clean();
1025
  }
1026
 
1027
  /**
@@ -1035,7 +1041,7 @@ class MEC_feature_mec extends MEC_base
1035
 
1036
  ob_start();
1037
  include $path;
1038
- echo $output = ob_get_clean();
1039
  }
1040
 
1041
  /**
@@ -1049,7 +1055,7 @@ class MEC_feature_mec extends MEC_base
1049
 
1050
  ob_start();
1051
  include $path;
1052
- echo $output = ob_get_clean();
1053
  }
1054
 
1055
  /**
@@ -1091,43 +1097,43 @@ class MEC_feature_mec extends MEC_base
1091
  {
1092
  $image_popup_html = '<div class="mec-form-row mec-image-popup-wrap mec-switcher">
1093
  <div class="mec-col-4">
1094
- <label for="mec_skin_'.$skin.'_image_popup">'.__('Display content\'s images as Popup', 'modern-events-calendar-lite').'</label>
1095
  </div>
1096
  <div class="mec-col-4">
1097
- <input type="hidden" name="mec[sk-options]['.$skin.'][image_popup]" value="0" />
1098
- <input type="checkbox" name="mec[sk-options]['.$skin.'][image_popup]" id="mec_skin_'.$skin.'_image_popup" value="1"';
1099
 
1100
  if($image_popup == 1) $image_popup_html .= 'checked="checked"';
1101
 
1102
- $image_popup_html .= '/><label for="mec_skin_'.$skin.'_image_popup"></label>
1103
  </div>
1104
  </div>';
1105
 
1106
  return '<div class="mec-form-row mec-sed-method-wrap">
1107
  <div class="mec-col-4">
1108
- <label for="mec_skin_'.$skin.'_sed_method">'.__('Single Event Display Method', 'modern-events-calendar-lite').'</label>
1109
  </div>
1110
  <div class="mec-col-8">
1111
- <input type="hidden" name="mec[sk-options]['.$skin.'][sed_method]" value="'.$value.'" id="mec_skin_'.$skin.'_sed_method_field" />
1112
- <ul class="mec-sed-methods" data-for="#mec_skin_'.$skin.'_sed_method_field">
1113
- <li data-method="0" class="'.(!$value ? 'active' : '').'"><a href="#mec_skin_'.$skin.'_sed_method_field">'.__('Current Window', 'modern-events-calendar-lite').'</a></li>
1114
- <li data-method="new" class="'.($value === 'new' ? 'active' : '').'"><a href="#mec_skin_'.$skin.'_sed_method_field">'.__('New Window', 'modern-events-calendar-lite').'</a></li>
1115
- <li data-method="m1" class="'.($value === 'm1' ? 'active' : '').'"><a href="#mec_skin_'.$skin.'_sed_method_field">'.__('Modal Popup', 'modern-events-calendar-lite').'</a></li>
1116
- <li data-method="no" class="'.($value === 'no' ? 'active' : '').'"><a href="#mec_skin_'.$skin.'_sed_method_field">'.__('Disable Link', 'modern-events-calendar-lite').'</a></li>
1117
  </ul>
1118
  </div>
1119
- </div>' . $image_popup_html;
1120
  }
1121
 
1122
  public function order_method_field($skin, $value = 'ASC', $key = 'order_method')
1123
  {
1124
  return '<div class="mec-form-row mec-switcher">
1125
  <div class="mec-col-4">
1126
- <label for="mec_skin_'.$skin.'_'.$key.'">'.__('Descending Order', 'modern-events-calendar-lite').'</label>
1127
  </div>
1128
  <div class="mec-col-4">
1129
- <input type="hidden" name="mec[sk-options]['.$skin.']['.$key.']" value="ASC" />
1130
- <input type="checkbox" name="mec[sk-options]['.$skin.']['.$key.']" id="mec_skin_'.$skin.'_'.$key.'" value="DESC" '.($value == 'DESC' ? 'checked="checked"' : '').' /><label for="mec_skin_'.$skin.'_'.$key.'"></label>
1131
  </div>
1132
  </div>';
1133
  }
@@ -1139,11 +1145,11 @@ class MEC_feature_mec extends MEC_base
1139
 
1140
  return '<div class="mec-form-row mec-booking-button-wrap mec-switcher">
1141
  <div class="mec-col-4">
1142
- <label for="mec_skin_'.$skin.'_booking_button">'.__('Booking Button / Icon', 'modern-events-calendar-lite').'</label>
1143
  </div>
1144
  <div class="mec-col-4">
1145
- <input type="hidden" name="mec[sk-options]['.$skin.'][booking_button]" value="0" />
1146
- <input type="checkbox" name="mec[sk-options]['.$skin.'][booking_button]" id="mec_skin_'.$skin.'_booking_button" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.$skin.'_booking_button"></label>
1147
  </div>
1148
  </div>';
1149
  }
@@ -1152,11 +1158,11 @@ class MEC_feature_mec extends MEC_base
1152
  {
1153
  return '<div class="mec-form-row mec-display-organizer-wrap mec-switcher">
1154
  <div class="mec-col-4">
1155
- <label for="mec_skin_'.$skin.'_display_organizer">'.__('Display Organizers', 'modern-events-calendar-lite').'</label>
1156
  </div>
1157
  <div class="mec-col-4">
1158
- <input type="hidden" name="mec[sk-options]['.$skin.'][display_organizer]" value="0" />
1159
- <input type="checkbox" name="mec[sk-options]['.$skin.'][display_organizer]" id="mec_skin_'.$skin.'_display_organizer" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.$skin.'_display_organizer"></label>
1160
  </div>
1161
  </div>';
1162
  }
@@ -1165,11 +1171,11 @@ class MEC_feature_mec extends MEC_base
1165
  {
1166
  return '<div class="mec-form-row mec-display-organizer-wrap mec-switcher">
1167
  <div class="mec-col-4">
1168
- <label for="mec_skin_'.$skin.'_custom_data">'.__('Display Custom Fields', 'modern-events-calendar-lite').'</label>
1169
  </div>
1170
  <div class="mec-col-4">
1171
- <input type="hidden" name="mec[sk-options]['.$skin.'][custom_data]" value="0" />
1172
- <input type="checkbox" name="mec[sk-options]['.$skin.'][custom_data]" id="mec_skin_'.$skin.'_custom_data" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.$skin.'_custom_data"></label>
1173
  </div>
1174
  </div>';
1175
  }
@@ -1178,12 +1184,12 @@ class MEC_feature_mec extends MEC_base
1178
  {
1179
  return '<div class="mec-form-row mec-switcher">
1180
  <div class="mec-col-4">
1181
- <label for="mec_skin_'.$skin.'_detailed_time">'.__('Detailed Time', 'modern-events-calendar-lite').'</label>
1182
- <span>'.__('For Multiple Day Events', 'modern-events-calendar-lite').'</span>
1183
  </div>
1184
  <div class="mec-col-4">
1185
- <input type="hidden" name="mec[sk-options]['.$skin.'][detailed_time]" value="0" />
1186
- <input type="checkbox" name="mec[sk-options]['.$skin.'][detailed_time]" id="mec_skin_'.$skin.'_detailed_time" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.$skin.'_detailed_time"></label>
1187
  </div>
1188
  </div>';
1189
  }
@@ -1338,7 +1344,7 @@ class MEC_feature_mec extends MEC_base
1338
  {
1339
  wp_add_dashboard_widget(
1340
  'mec_widget_news_features',
1341
- __('Modern Events Calendar', 'modern-events-calendar-lite'),
1342
  array($this, 'widget_news')
1343
  );
1344
 
@@ -1346,7 +1352,7 @@ class MEC_feature_mec extends MEC_base
1346
  {
1347
  wp_add_dashboard_widget(
1348
  'mec_widget_total_bookings',
1349
- __('Total Bookings', 'modern-events-calendar-lite'),
1350
  array($this, 'widget_total_bookings')
1351
  );
1352
  }
@@ -1362,7 +1368,7 @@ class MEC_feature_mec extends MEC_base
1362
  echo '<div class="mec-metabox-head-wrap">
1363
  <div class="mec-metabox-head-version">
1364
  <img src="'.plugin_dir_url(__FILE__ ) . '../../assets/img/ico-mec-vc.png" />
1365
- <p>'.($this->getPRO() ? __('Modern Events Calendar', 'modern-events-calendar-lite') : __('Modern Events Calendar (Lite)', 'modern-events-calendar-lite')).'</p>
1366
  <a href="'.esc_html__(admin_url( 'post-new.php?post_type=mec-events' )).'" class="button"><span aria-hidden="true" class="dashicons dashicons-plus"></span> Create New Event</a>
1367
  </div>
1368
  <div class="mec-metabox-head-button"></div>
@@ -1389,10 +1395,10 @@ class MEC_feature_mec extends MEC_base
1389
  echo '<li>
1390
  <span aria-hidden="true" class="dashicons dashicons-calendar-alt"></span>
1391
  <div class="mec-metabox-upcoming-event">
1392
- <a href="'.$event_link.'" target="">'.$event_title.'</a>
1393
- <div class="mec-metabox-upcoming-event-location">'.$locationName.'</div>
1394
  </div>
1395
- <div class="mec-metabox-upcoming-event-date">'.$event_date.'</div>
1396
  <div style="clear:both"></div>
1397
  </li>';
1398
  }
@@ -1432,8 +1438,8 @@ class MEC_feature_mec extends MEC_base
1432
  foreach($obj as $key => $value)
1433
  {
1434
  echo '<li>
1435
- <a href="'.$value->link.'" target="_blank">'.$value->title.'</a>
1436
- <p>'.$value->content.'</p>
1437
  </li>';
1438
  }
1439
 
@@ -1526,30 +1532,30 @@ class MEC_feature_mec extends MEC_base
1526
  </div>
1527
  <div class="w-box-content">
1528
  <ul>
1529
- <li class="mec-chart-this-month"><a href="<?php echo add_query_arg(array(
1530
  'sort' => 'this_month',
1531
  'start' => date('Y-m-01'),
1532
  'end' => date('Y-m-t'),
1533
  'type' => 'daily',
1534
- )); ?>"><?php _e('This Month', 'modern-events-calendar-lite'); ?></a></li>
1535
- <li class="mec-chart-last-month"><a href="<?php echo add_query_arg(array(
1536
  'sort' => 'last_month',
1537
  'start' => date('Y-m-01', strtotime('-1 Month')),
1538
  'end' => date('Y-m-t', strtotime('-1 Month')),
1539
  'type' => 'daily',
1540
- )); ?>"><?php _e('Last Month', 'modern-events-calendar-lite'); ?></a></li>
1541
- <li class="mec-chart-this-year"><a href="<?php echo add_query_arg(array(
1542
  'sort' => 'this_year',
1543
  'start' => date('Y-01-01'),
1544
  'end' => date('Y-12-31'),
1545
  'type' => 'monthly',
1546
- )); ?>"><?php _e('This Year', 'modern-events-calendar-lite'); ?></a></li>
1547
- <li class="mec-chart-last-year"><a href="<?php echo add_query_arg(array(
1548
  'sort' => 'last_year',
1549
  'start' => date('Y-01-01', strtotime('-1 Year')),
1550
  'end' => date('Y-12-31', strtotime('-1 Year')),
1551
  'type' => 'monthly',
1552
- )); ?>"><?php _e('Last Year', 'modern-events-calendar-lite'); ?></a></li>
1553
  </ul>
1554
  <script>
1555
  </script>
@@ -1561,18 +1567,18 @@ class MEC_feature_mec extends MEC_base
1561
  ?>
1562
  <form class="mec-sells-filter" method="GET" action="">
1563
  <?php if($current_page != 'dashboard'): ?><input type="hidden" name="page" value="mec-intro" /><?php endif; ?>
1564
- <input type="text" class="mec_date_picker" name="start" placeholder="<?php esc_attr_e('Start Date', 'modern-events-calendar-lite'); ?>" value="<?php echo $start; ?>" />
1565
- <input type="text" class="mec_date_picker" name="end" placeholder="<?php esc_attr_e('End Date', 'modern-events-calendar-lite'); ?>" value="<?php echo $end; ?>" />
1566
  <select name="type">
1567
- <option value="daily" <?php echo $type == 'daily' ? 'selected="selected"' : ''; ?>><?php _e('Daily', 'modern-events-calendar-lite'); ?></option>
1568
- <option value="monthly" <?php echo $type == 'monthly' ? 'selected="selected"' : ''; ?>><?php _e('Monthly', 'modern-events-calendar-lite'); ?></option>
1569
- <option value="yearly" <?php echo $type == 'yearly' ? 'selected="selected"' : ''; ?>><?php _e('Yearly', 'modern-events-calendar-lite'); ?></option>
1570
  </select>
1571
  <select name="chart">
1572
- <option value="bar" <?php echo $chart == 'bar' ? 'selected="selected"' : ''; ?>><?php _e('Bar', 'modern-events-calendar-lite'); ?></option>
1573
- <option value="line" <?php echo $chart == 'line' ? 'selected="selected"' : ''; ?>><?php _e('Line', 'modern-events-calendar-lite'); ?></option>
1574
  </select>
1575
- <button type="submit"><?php _e('Filter', 'modern-events-calendar-lite'); ?></button>
1576
  </form>
1577
  <div id="mec-total-booking-report">
1578
  <?php
@@ -1603,15 +1609,15 @@ class MEC_feature_mec extends MEC_base
1603
  <input type="hidden" name="method" value="mec-print">
1604
  <select name="mec-year" title="<?php esc_attr('Year', 'modern-events-calendar-lite'); ?>">
1605
  <?php for($i = $start_year; $i <= $end_year; $i++): ?>
1606
- <option value="<?php echo $i; ?>" <?php echo ($i == date('Y', current_time('timestamp', 0))) ? 'selected="selected"' : ''; ?>><?php echo $i; ?></option>
1607
  <?php endfor; ?>
1608
  </select>
1609
  <select name="mec-month" title="<?php esc_attr('Month', 'modern-events-calendar-lite'); ?>">
1610
  <?php for($i = 1; $i <= 12; $i++): ?>
1611
- <option value="<?php echo ($i < 10 ? '0'.$i : $i); ?>" <?php echo ($current_month == $i ? 'selected="selected"' : ''); ?>><?php echo $this->main->date_i18n('F', mktime(0, 0, 0, $i, 10)); ?></option>
1612
  <?php endfor; ?>
1613
  </select>
1614
- <button type="submit"><?php _e('Display Events', 'modern-events-calendar-lite'); ?></button>
1615
  </form>
1616
  </div>
1617
  </div>
@@ -1658,7 +1664,7 @@ class MEC_feature_mec extends MEC_base
1658
  public function register_assets_per_page_meta_boxes()
1659
  {
1660
  $post_types = $this->assets_per_page_post_types();
1661
- add_meta_box('mec_metabox_app', __('Include MEC Assets', 'modern-events-calendar-lite'), array($this, 'meta_box_assets_per_page'), $post_types, 'side', 'low');
1662
  }
1663
 
1664
  public function meta_box_assets_per_page($post)
@@ -1669,7 +1675,7 @@ class MEC_feature_mec extends MEC_base
1669
  <label for="mec_include_assets">
1670
  <input type="hidden" name="mec_include_assets" value="0" />
1671
  <input type="checkbox" name="mec_include_assets" id="mec_include_assets" <?php echo ($mec_include_assets ? 'checked="checked"' : ''); ?> value="1" />
1672
- <?php _e('Include Modern Events Calendar Assets (CSS, JavaScript, etc files.)', 'modern-events-calendar-lite'); ?>
1673
  </label>
1674
  </div>
1675
  <?php
@@ -1760,8 +1766,8 @@ class MEC_feature_mec extends MEC_base
1760
  // Verify that the nonce is valid.
1761
  if(!wp_verify_nonce(sanitize_text_field($_POST['_wpnonce']), 'mec_occurrences_dropdown')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
1762
 
1763
- $date = isset($_POST['date']) ? $_POST['date'] : '';
1764
- $id = isset($_POST['id']) ? $_POST['id'] : '';
1765
 
1766
  // Date is invalid!
1767
  if(!trim($date) or !trim($id)) $this->main->response(array('success'=>0, 'code'=>'DATE_OR_ID_IS_INVALID'));
@@ -1780,17 +1786,17 @@ class MEC_feature_mec extends MEC_base
1780
  $datetime_format = $date_format.' '.$time_format;
1781
 
1782
  $success = 0;
1783
- $html = '<option class="mec-load-occurrences" value="'.$_6months_ago.':'.$_6months_ago.'">'.__('Previous Occurrences', 'modern-events-calendar-lite').'</option>';
1784
 
1785
  $i = 1;
1786
  foreach($occurrences as $occurrence)
1787
  {
1788
- $success = 1;
1789
- $html .= '<option value="'.$occurrence->tstart.':'.$occurrence->tend.'" '.($i === 1 ? 'selected="selected"' : '').'>'.(date_i18n($datetime_format, $occurrence->tstart)).'</option>';
1790
  $i++;
1791
  }
1792
 
1793
- if(count($occurrences) >= $limit and isset($occurrence)) $html .= '<option class="mec-load-occurrences" value="'.$occurrence->tstart.':'.$occurrence->tend.'">'.__('Next Occurrences', 'modern-events-calendar-lite').'</option>';
1794
 
1795
  $this->main->response(array('success'=>$success, 'html'=>$html));
1796
  }
176
  $this->factory->action('wp_ajax_total-booking-get-reports',array($this, 'dashboard_widget_total_booking_ajax_handler'));
177
 
178
  // Custom Capability Map
179
+ if(is_admin()) $this->factory->filter('map_meta_cap', array($this, 'map_meta_cap'), 10, 4);
180
 
181
  // Protected Content Shortcode
182
  if($this->getPRO()) $this->factory->shortcode('mec-only-booked-users', array($this, 'only_booked_users_content'));
197
  {
198
  update_option('mec_latest_event_datetime', current_time('YmdHis'), false);
199
  });
200
+
201
+ // Kses
202
+ MEC::import('app.libraries.kses');
203
+
204
+ $this->factory->filter('mec_kses_tags', array('MEC_kses', 'tags'), 10, 2);
205
+ $this->factory->filter('safe_style_css', array('MEC_kses', 'styles'));
206
  }
207
 
208
  /* Activate License */
213
  // Current User is not Permitted
214
  if(!current_user_can('manage_options')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
215
 
216
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
217
 
218
  $options = get_option('mec_options');
219
  $options['product_name'] = sanitize_text_field($_REQUEST['content']['LicenseTypeJson']);
230
  }
231
  else
232
  {
233
+ $LicenseStatus = esc_html__('Activation failed. Please check your purchase code or license type. Note: Your purchase code should match your licesne type.', 'modern-events-calendar-lite') . '<a style="text-decoration: underline; padding-left: 7px;" href="https://webnus.net/dox/modern-events-calendar/auto-update-issue/" target="_blank">' . esc_html__('Troubleshooting', 'modern-events-calendar-lite') . '</a>';
234
  update_option('mec_license_status', 'faild');
235
  }
236
 
237
 
238
  update_option('mec_options', $options);
239
+ echo MEC_kses::element($LicenseStatus);
240
  wp_die();
241
  }
242
  }
250
  $url = get_home_url();
251
  if (!isset($code) || empty($code)) return;
252
  $verify_url = MEC_API_URL . '/activation/verify?category=mec&license=' . $code . '&url=' . $url . '&item_id=' . $item_id;
253
+ var_dump($verify_url);
254
  $JSON = wp_remote_retrieve_body(wp_remote_get($verify_url, array(
255
  'body' => null,
256
  'timeout' => '120',
271
  // Current User is not Permitted
272
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
273
 
274
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_download'))
275
  {
276
  exit();
277
  }
294
  {
295
  // Current User is not Permitted
296
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
297
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
298
 
299
  update_option('mec_addons_notification_option', 'open');
300
  wp_die();
305
  {
306
  // Current User is not Permitted
307
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
308
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
309
 
310
  update_option('mec_custom_msg_2_close_option', 'open');
311
  wp_die();
316
  {
317
  // Current User is not Permitted
318
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
319
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
320
 
321
  update_option('mec_custom_msg_close_option', 'open');
322
  wp_die();
328
  {
329
  // Current User is not Permitted
330
  if(!current_user_can('mec_report')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
331
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
332
 
333
  $event_id = sanitize_text_field($_POST['event_id']);
334
  $feature_class = new MEC_feature_mec();
386
  {
387
  // Current User is not Permitted
388
  if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
389
+ if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
390
 
391
+ $options = $_REQUEST['content']; // todo
392
  if($options == 'No-JSON')
393
  {
394
  echo '<div class="mec-message-import-error">' . esc_html__('Your option is not in JSON format. Please insert correct options in this field and try again.', 'modern-events-calendar-lite') . '</div>';
509
  */
510
  public function support_menu()
511
  {
512
+ add_submenu_page('mec-intro', esc_html__('MEC - Support', 'modern-events-calendar-lite'), esc_html__('Support', 'modern-events-calendar-lite'), 'manage_options', 'MEC-support', array($this, 'support_page'));
513
  }
514
 
515
  /**
525
  remove_menu_page('edit.php?post_type=mec_calendars');
526
  do_action('before_mec_submenu_action');
527
 
528
+ add_submenu_page('mec-intro', esc_html__('Add Event', 'modern-events-calendar-lite'), esc_html__('Add Event', 'modern-events-calendar-lite'), 'edit_posts', 'post-new.php?post_type='.$this->PT);
529
+ add_submenu_page('mec-intro', esc_html__('Tags', 'modern-events-calendar-lite'), esc_html__('Tags', 'modern-events-calendar-lite'), 'edit_others_posts', 'edit-tags.php?taxonomy='.apply_filters('mec_taxonomy_tag', '').'&post_type='.$this->PT);
530
+ add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_categories', esc_html__('Categories', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_categories', esc_html__('Categories', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_category&post_type='.$this->PT);
531
+ add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_label&post_type='.$this->PT);
532
+ add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_locations', esc_html__('Locations', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_locations', esc_html__('Locations', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_location&post_type='.$this->PT);
533
+ add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_organizers', esc_html__('Organizers', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_organizers', esc_html__('Organizers', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_organizer&post_type='.$this->PT);
534
 
535
  // Speakers Menu
536
  if(isset($this->settings['speakers_status']) and $this->settings['speakers_status'])
537
  {
538
+ add_submenu_page('mec-intro', esc_html($this->main->m('taxonomy_speakers', esc_html__('Speakers', 'modern-events-calendar-lite'))), esc_html($this->main->m('taxonomy_speakers', esc_html__('Speakers', 'modern-events-calendar-lite'))), 'edit_others_posts', 'edit-tags.php?taxonomy=mec_speaker&post_type='.$this->PT);
539
  }
540
 
541
  $capability = (current_user_can('administrator') ? 'manage_options' : 'mec_shortcodes');
542
+ add_submenu_page('mec-intro', esc_html__('Shortcodes', 'modern-events-calendar-lite'), esc_html__('Shortcodes', 'modern-events-calendar-lite'), $capability, 'edit.php?post_type=mec_calendars');
543
 
544
  // Auto Email Menu
545
  if(isset($this->settings['auto_emails_module_status']) and $this->settings['auto_emails_module_status'])
546
  {
547
  $capability = 'manage_options';
548
+ add_submenu_page('mec-intro', esc_html__('Emails', 'modern-events-calendar-lite'), esc_html__('Emails', 'modern-events-calendar-lite'), $capability, 'edit.php?post_type=mec-emails');
549
  }
550
 
551
  $capability = (current_user_can('administrator') ? 'manage_options' : 'mec_settings');
552
+ add_submenu_page('mec-intro', esc_html__('MEC - Settings', 'modern-events-calendar-lite'), esc_html__('Settings', 'modern-events-calendar-lite'), $capability, 'MEC-settings', array($this, 'page'));
553
 
554
+ add_submenu_page('mec-intro', esc_html__('MEC - Addons', 'modern-events-calendar-lite'), esc_html__('Addons', 'modern-events-calendar-lite'), 'manage_options', 'MEC-addons', array($this, 'addons'));
555
+ add_submenu_page('mec-intro', esc_html__('MEC - Wizard', 'modern-events-calendar-lite'), esc_html__('Wizard', 'modern-events-calendar-lite'), 'manage_options', 'MEC-wizard', array($this, 'setup_wizard'));
556
 
557
  if(isset($this->settings['booking_status']) and $this->settings['booking_status'])
558
  {
559
+ add_submenu_page('mec-intro', esc_html__('MEC - Report', 'modern-events-calendar-lite'), esc_html__('Report', 'modern-events-calendar-lite'), 'mec_report', 'MEC-report', array($this, 'report'));
560
  }
561
 
562
+ if(!$this->getPRO()) add_submenu_page('mec-intro', esc_html__('MEC - Go Pro', 'modern-events-calendar-lite'), esc_html__('Go Pro', 'modern-events-calendar-lite'), 'manage_options', 'MEC-go-pro', array($this, 'go_pro'));
563
  do_action('after_mec_submenu_action');
564
  }
565
 
583
  $path = MEC::import('app.features.mec.wizard', true, true);
584
  ob_start();
585
  include $path;
586
+ echo ob_get_clean();
587
  }
588
 
589
  /**
631
  */
632
  public function filter_columns($columns)
633
  {
634
+ $columns['shortcode'] = esc_html__('Shortcode', 'modern-events-calendar-lite');
635
  return $columns;
636
  }
637
 
659
  $screen = get_current_screen();
660
  if ( $screen->id == 'mec_calendars' ) remove_all_actions('acf/input/admin_head');
661
 
662
+ add_meta_box('mec_calendar_display_options', esc_html__('Display Options', 'modern-events-calendar-lite'), array($this, 'meta_box_display_options'), 'mec_calendars', 'normal', 'high');
663
+ add_meta_box('mec_calendar_filter', esc_html__('Filter Options', 'modern-events-calendar-lite'), array($this, 'meta_box_filter'), 'mec_calendars', 'normal', 'high');
664
+ add_meta_box('mec_calendar_shortcode', esc_html__('Shortcode', 'modern-events-calendar-lite'), array($this, 'meta_box_shortcode'), 'mec_calendars', 'side');
665
+ add_meta_box('mec_calendar_search_form', esc_html__('Search Form', 'modern-events-calendar-lite'), array($this, 'meta_box_search_form'), 'mec_calendars', 'side');
666
  }
667
 
668
  /**
688
  $locations = (isset($terms['mec_location']) and is_array($terms['mec_location'])) ? implode(',', $terms['mec_location']) : '';
689
  $organizers = (isset($terms['mec_organizer']) and is_array($terms['mec_organizer'])) ? implode(',', $terms['mec_organizer']) : '';
690
  $labels = (isset($terms['mec_label']) and is_array($terms['mec_label'])) ? implode(',', $terms['mec_label']) : '';
691
+ $tags = (isset($terms['mec_tag'])) ? explode(',', sanitize_text_field(trim($terms['mec_tag']))) : '';
692
  $authors = (isset($terms['mec_author']) and is_array($terms['mec_author'])) ? implode(',', $terms['mec_author']) : '';
693
 
694
  // Fix tags
741
 
742
  ob_start();
743
  include $path;
744
+ echo MEC_kses::full(ob_get_clean());
745
  }
746
 
747
  /**
755
 
756
  ob_start();
757
  include $path;
758
+ echo MEC_kses::full(ob_get_clean());
759
  }
760
 
761
  /**
769
 
770
  ob_start();
771
  include $path;
772
+ echo MEC_kses::full(ob_get_clean());
773
  }
774
 
775
  /**
783
 
784
  ob_start();
785
  include $path;
786
+ echo MEC_kses::full(ob_get_clean());
787
  }
788
 
789
  /**
797
 
798
  ob_start();
799
  include $path;
800
+ echo MEC_kses::full(ob_get_clean());
801
  }
802
 
803
  /**
820
  $path = MEC::import('app.features.mec.go-pro', true, true);
821
  ob_start();
822
  include $path;
823
+ echo MEC_kses::full(ob_get_clean());
824
  }
825
 
826
  /**
843
  $path = MEC::import('app.features.mec.addons', true, true);
844
  ob_start();
845
  include $path;
846
+ echo MEC_kses::full(ob_get_clean());
847
  }
848
 
849
  /**
868
  ob_start();
869
  include $path;
870
  do_action('mec_display_report_page', $path);
871
+ echo MEC_kses::full(ob_get_clean());
872
  }
873
 
874
  /**
881
  $path = MEC::import('app.features.mec.support-page', true, true);
882
  ob_start();
883
  include $path;
884
+ echo MEC_kses::full(ob_get_clean());
885
  }
886
 
887
  /**
929
 
930
  ob_start();
931
  include $path;
932
+ echo MEC_kses::full(ob_get_clean());
933
  }
934
 
935
  /**
943
 
944
  ob_start();
945
  include $path;
946
+ echo MEC_kses::full(ob_get_clean());
947
  }
948
 
949
  /**
957
 
958
  ob_start();
959
  include $path;
960
+ echo MEC_kses::full(ob_get_clean());
961
  }
962
 
963
  /**
971
 
972
  ob_start();
973
  include $path;
974
+ echo MEC_kses::full(ob_get_clean());
975
  }
976
 
977
  /**
985
 
986
  ob_start();
987
  include $path;
988
+ echo MEC_kses::full(ob_get_clean());
989
  }
990
 
991
  /**
999
 
1000
  ob_start();
1001
  include $path;
1002
+ echo MEC_kses::full(ob_get_clean());
1003
  }
1004
 
1005
  /**
1013
 
1014
  ob_start();
1015
  include $path;
1016
+ echo MEC_kses::full(ob_get_clean());
1017
  }
1018
 
1019
  /**
1027
 
1028
  ob_start();
1029
  include $path;
1030
+ echo MEC_kses::full(ob_get_clean());
1031
  }
1032
 
1033
  /**
1041
 
1042
  ob_start();
1043
  include $path;
1044
+ echo MEC_kses::full(ob_get_clean());
1045
  }
1046
 
1047
  /**
1055
 
1056
  ob_start();
1057
  include $path;
1058
+ echo MEC_kses::full(ob_get_clean());
1059
  }
1060
 
1061
  /**
1097
  {
1098
  $image_popup_html = '<div class="mec-form-row mec-image-popup-wrap mec-switcher">
1099
  <div class="mec-col-4">
1100
+ <label for="mec_skin_'.esc_attr($skin).'_image_popup">'.esc_html__('Display content\'s images as Popup', 'modern-events-calendar-lite').'</label>
1101
  </div>
1102
  <div class="mec-col-4">
1103
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).'][image_popup]" value="0" />
1104
+ <input type="checkbox" name="mec[sk-options]['.esc_attr($skin).'][image_popup]" id="mec_skin_'.esc_attr($skin).'_image_popup" value="1"';
1105
 
1106
  if($image_popup == 1) $image_popup_html .= 'checked="checked"';
1107
 
1108
+ $image_popup_html .= '/><label for="mec_skin_'.esc_attr($skin).'_image_popup"></label>
1109
  </div>
1110
  </div>';
1111
 
1112
  return '<div class="mec-form-row mec-sed-method-wrap">
1113
  <div class="mec-col-4">
1114
+ <label for="mec_skin_'.esc_attr($skin).'_sed_method">'.esc_html__('Single Event Display Method', 'modern-events-calendar-lite').'</label>
1115
  </div>
1116
  <div class="mec-col-8">
1117
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).'][sed_method]" value="'.esc_attr($value).'" id="mec_skin_'.esc_attr($skin).'_sed_method_field" />
1118
+ <ul class="mec-sed-methods" data-for="#mec_skin_'.esc_attr($skin).'_sed_method_field">
1119
+ <li data-method="0" class="'.(!$value ? 'active' : '').'"><a href="#mec_skin_'.esc_attr($skin).'_sed_method_field">'.esc_html__('Current Window', 'modern-events-calendar-lite').'</a></li>
1120
+ <li data-method="new" class="'.($value === 'new' ? 'active' : '').'"><a href="#mec_skin_'.esc_attr($skin).'_sed_method_field">'.esc_html__('New Window', 'modern-events-calendar-lite').'</a></li>
1121
+ <li data-method="m1" class="'.($value === 'm1' ? 'active' : '').'"><a href="#mec_skin_'.esc_attr($skin).'_sed_method_field">'.esc_html__('Modal Popup', 'modern-events-calendar-lite').'</a></li>
1122
+ <li data-method="no" class="'.($value === 'no' ? 'active' : '').'"><a href="#mec_skin_'.esc_attr($skin).'_sed_method_field">'.esc_html__('Disable Link', 'modern-events-calendar-lite').'</a></li>
1123
  </ul>
1124
  </div>
1125
+ </div>' . MEC_kses::form($image_popup_html);
1126
  }
1127
 
1128
  public function order_method_field($skin, $value = 'ASC', $key = 'order_method')
1129
  {
1130
  return '<div class="mec-form-row mec-switcher">
1131
  <div class="mec-col-4">
1132
+ <label for="mec_skin_'.esc_attr($skin).'_'.esc_attr($key).'">'.esc_html__('Descending Order', 'modern-events-calendar-lite').'</label>
1133
  </div>
1134
  <div class="mec-col-4">
1135
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).']['.esc_attr($key).']" value="ASC" />
1136
+ <input type="checkbox" name="mec[sk-options]['.esc_attr($skin).']['.esc_attr($key).']" id="mec_skin_'.esc_attr($skin).'_'.esc_attr($key).'" value="DESC" '.($value == 'DESC' ? 'checked="checked"' : '').' /><label for="mec_skin_'.esc_attr($skin).'_'.esc_attr($key).'"></label>
1137
  </div>
1138
  </div>';
1139
  }
1145
 
1146
  return '<div class="mec-form-row mec-booking-button-wrap mec-switcher">
1147
  <div class="mec-col-4">
1148
+ <label for="mec_skin_'.esc_attr($skin).'_booking_button">'.esc_html__('Booking Button / Icon', 'modern-events-calendar-lite').'</label>
1149
  </div>
1150
  <div class="mec-col-4">
1151
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).'][booking_button]" value="0" />
1152
+ <input type="checkbox" name="mec[sk-options]['.esc_attr($skin).'][booking_button]" id="mec_skin_'.esc_attr($skin).'_booking_button" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.esc_attr($skin).'_booking_button"></label>
1153
  </div>
1154
  </div>';
1155
  }
1158
  {
1159
  return '<div class="mec-form-row mec-display-organizer-wrap mec-switcher">
1160
  <div class="mec-col-4">
1161
+ <label for="mec_skin_'.esc_attr($skin).'_display_organizer">'.esc_html__('Display Organizers', 'modern-events-calendar-lite').'</label>
1162
  </div>
1163
  <div class="mec-col-4">
1164
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).'][display_organizer]" value="0" />
1165
+ <input type="checkbox" name="mec[sk-options]['.esc_attr($skin).'][display_organizer]" id="mec_skin_'.esc_attr($skin).'_display_organizer" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.esc_attr($skin).'_display_organizer"></label>
1166
  </div>
1167
  </div>';
1168
  }
1171
  {
1172
  return '<div class="mec-form-row mec-display-organizer-wrap mec-switcher">
1173
  <div class="mec-col-4">
1174
+ <label for="mec_skin_'.esc_attr($skin).'_custom_data">'.esc_html__('Display Custom Fields', 'modern-events-calendar-lite').'</label>
1175
  </div>
1176
  <div class="mec-col-4">
1177
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).'][custom_data]" value="0" />
1178
+ <input type="checkbox" name="mec[sk-options]['.esc_attr($skin).'][custom_data]" id="mec_skin_'.esc_attr($skin).'_custom_data" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.esc_attr($skin).'_custom_data"></label>
1179
  </div>
1180
  </div>';
1181
  }
1184
  {
1185
  return '<div class="mec-form-row mec-switcher">
1186
  <div class="mec-col-4">
1187
+ <label for="mec_skin_'.esc_attr($skin).'_detailed_time">'.esc_html__('Detailed Time', 'modern-events-calendar-lite').'</label>
1188
+ <span>'.esc_html__('For Multiple Day Events', 'modern-events-calendar-lite').'</span>
1189
  </div>
1190
  <div class="mec-col-4">
1191
+ <input type="hidden" name="mec[sk-options]['.esc_attr($skin).'][detailed_time]" value="0" />
1192
+ <input type="checkbox" name="mec[sk-options]['.esc_attr($skin).'][detailed_time]" id="mec_skin_'.esc_attr($skin).'_detailed_time" value="1" '.($value == '1' ? 'checked="checked"' : '').' /><label for="mec_skin_'.esc_attr($skin).'_detailed_time"></label>
1193
  </div>
1194
  </div>';
1195
  }
1344
  {
1345
  wp_add_dashboard_widget(
1346
  'mec_widget_news_features',
1347
+ esc_html__('Modern Events Calendar', 'modern-events-calendar-lite'),
1348
  array($this, 'widget_news')
1349
  );
1350
 
1352
  {
1353
  wp_add_dashboard_widget(
1354
  'mec_widget_total_bookings',
1355
+ esc_html__('Total Bookings', 'modern-events-calendar-lite'),
1356
  array($this, 'widget_total_bookings')
1357
  );
1358
  }
1368
  echo '<div class="mec-metabox-head-wrap">
1369
  <div class="mec-metabox-head-version">
1370
  <img src="'.plugin_dir_url(__FILE__ ) . '../../assets/img/ico-mec-vc.png" />
1371
+ <p>'.($this->getPRO() ? esc_html__('Modern Events Calendar', 'modern-events-calendar-lite') : esc_html__('Modern Events Calendar (Lite)', 'modern-events-calendar-lite')).'</p>
1372
  <a href="'.esc_html__(admin_url( 'post-new.php?post_type=mec-events' )).'" class="button"><span aria-hidden="true" class="dashicons dashicons-plus"></span> Create New Event</a>
1373
  </div>
1374
  <div class="mec-metabox-head-button"></div>
1395
  echo '<li>
1396
  <span aria-hidden="true" class="dashicons dashicons-calendar-alt"></span>
1397
  <div class="mec-metabox-upcoming-event">
1398
+ <a href="'.esc_url($event_link).'" target="">'.esc_html($event_title).'</a>
1399
+ <div class="mec-metabox-upcoming-event-location">'.esc_html($locationName).'</div>
1400
  </div>
1401
+ <div class="mec-metabox-upcoming-event-date">'.esc_html($event_date).'</div>
1402
  <div style="clear:both"></div>
1403
  </li>';
1404
  }
1438
  foreach($obj as $key => $value)
1439
  {
1440
  echo '<li>
1441
+ <a href="'.esc_url($value->link).'" target="_blank">'.esc_html($value->title).'</a>
1442
+ <p>'.esc_html($value->content).'</p>
1443
  </li>';
1444
  }
1445
 
1532
  </div>
1533
  <div class="w-box-content">
1534
  <ul>
1535
+ <li class="mec-chart-this-month"><a href="<?php echo esc_url(add_query_arg(array(
1536
  'sort' => 'this_month',
1537
  'start' => date('Y-m-01'),
1538
  'end' => date('Y-m-t'),
1539
  'type' => 'daily',
1540
+ ))); ?>"><?php esc_html_e('This Month', 'modern-events-calendar-lite'); ?></a></li>
1541
+ <li class="mec-chart-last-month"><a href="<?php echo esc_url(add_query_arg(array(
1542
  'sort' => 'last_month',
1543
  'start' => date('Y-m-01', strtotime('-1 Month')),
1544
  'end' => date('Y-m-t', strtotime('-1 Month')),
1545
  'type' => 'daily',
1546
+ ))); ?>"><?php esc_html_e('Last Month', 'modern-events-calendar-lite'); ?></a></li>
1547
+ <li class="mec-chart-this-year"><a href="<?php echo esc_url(add_query_arg(array(
1548
  'sort' => 'this_year',
1549
  'start' => date('Y-01-01'),
1550
  'end' => date('Y-12-31'),
1551
  'type' => 'monthly',
1552
+ ))); ?>"><?php esc_html_e('This Year', 'modern-events-calendar-lite'); ?></a></li>
1553
+ <li class="mec-chart-last-year"><a href="<?php echo esc_url(add_query_arg(array(
1554
  'sort' => 'last_year',
1555
  'start' => date('Y-01-01', strtotime('-1 Year')),
1556
  'end' => date('Y-12-31', strtotime('-1 Year')),
1557
  'type' => 'monthly',
1558
+ ))); ?>"><?php esc_html_e('Last Year', 'modern-events-calendar-lite'); ?></a></li>
1559
  </ul>
1560
  <script>
1561
  </script>
1567
  ?>
1568
  <form class="mec-sells-filter" method="GET" action="">
1569
  <?php if($current_page != 'dashboard'): ?><input type="hidden" name="page" value="mec-intro" /><?php endif; ?>
1570
+ <input type="text" class="mec_date_picker" name="start" placeholder="<?php esc_attr_e('Start Date', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($start); ?>" />
1571
+ <input type="text" class="mec_date_picker" name="end" placeholder="<?php esc_attr_e('End Date', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($end); ?>" />
1572
  <select name="type">
1573
+ <option value="daily" <?php echo ($type == 'daily' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Daily', 'modern-events-calendar-lite'); ?></option>
1574
+ <option value="monthly" <?php echo ($type == 'monthly' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Monthly', 'modern-events-calendar-lite'); ?></option>
1575
+ <option value="yearly" <?php echo ($type == 'yearly' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Yearly', 'modern-events-calendar-lite'); ?></option>
1576
  </select>
1577
  <select name="chart">
1578
+ <option value="bar" <?php echo ($chart == 'bar' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Bar', 'modern-events-calendar-lite'); ?></option>
1579
+ <option value="line" <?php echo ($chart == 'line' ? 'selected="selected"' : ''); ?>><?php esc_html_e('Line', 'modern-events-calendar-lite'); ?></option>
1580
  </select>
1581
+ <button type="submit"><?php esc_html_e('Filter', 'modern-events-calendar-lite'); ?></button>
1582
  </form>
1583
  <div id="mec-total-booking-report">
1584
  <?php
1609
  <input type="hidden" name="method" value="mec-print">
1610
  <select name="mec-year" title="<?php esc_attr('Year', 'modern-events-calendar-lite'); ?>">
1611
  <?php for($i = $start_year; $i <= $end_year; $i++): ?>
1612
+ <option value="<?php echo esc_attr($i); ?>" <?php echo ($i == date('Y', current_time('timestamp', 0))) ? 'selected="selected"' : ''; ?>><?php echo esc_html($i); ?></option>
1613
  <?php endfor; ?>
1614
  </select>
1615
  <select name="mec-month" title="<?php esc_attr('Month', 'modern-events-calendar-lite'); ?>">
1616
  <?php for($i = 1; $i <= 12; $i++): ?>
1617
+ <option value="<?php echo ($i < 10 ? '0'.$i : $i); ?>" <?php echo ($current_month == $i ? 'selected="selected"' : ''); ?>><?php echo esc_html($this->main->date_i18n('F', mktime(0, 0, 0, $i, 10))); ?></option>
1618
  <?php endfor; ?>
1619
  </select>
1620
+ <button type="submit"><?php esc_html_e('Display Events', 'modern-events-calendar-lite'); ?></button>
1621
  </form>
1622
  </div>
1623
  </div>
1664
  public function register_assets_per_page_meta_boxes()
1665
  {
1666
  $post_types = $this->assets_per_page_post_types();
1667
+ add_meta_box('mec_metabox_app', esc_html__('Include MEC Assets', 'modern-events-calendar-lite'), array($this, 'meta_box_assets_per_page'), $post_types, 'side', 'low');
1668
  }
1669
 
1670
  public function meta_box_assets_per_page($post)
1675
  <label for="mec_include_assets">
1676
  <input type="hidden" name="mec_include_assets" value="0" />
1677
  <input type="checkbox" name="mec_include_assets" id="mec_include_assets" <?php echo ($mec_include_assets ? 'checked="checked"' : ''); ?> value="1" />
1678
+ <?php esc_html_e('Include Modern Events Calendar Assets (CSS, JavaScript, etc files.)', 'modern-events-calendar-lite'); ?>
1679
  </label>
1680
  </div>
1681
  <?php
1766
  // Verify that the nonce is valid.
1767
  if(!wp_verify_nonce(sanitize_text_field($_POST['_wpnonce']), 'mec_occurrences_dropdown')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
1768
 
1769
+ $date = isset($_POST['date']) ? sanitize_text_field($_POST['date']) : '';
1770
+ $id = isset($_POST['id']) ? sanitize_text_field($_POST['id']) : '';
1771
 
1772
  // Date is invalid!
1773
  if(!trim($date) or !trim($id)) $this->main->response(array('success'=>0, 'code'=>'DATE_OR_ID_IS_INVALID'));
1786
  $datetime_format = $date_format.' '.$time_format;
1787
 
1788
  $success = 0;
1789
+ $html = '<option class="mec-load-occurrences" value="'.esc_attr($_6months_ago.':'.$_6months_ago).'">'.esc_html__('Previous Occurrences', 'modern-events-calendar-lite').'</option>';
1790
 
1791
  $i = 1;
1792
  foreach($occurrences as $occurrence)
1793
  {
1794
+ $success = 1;
1795
+ $html .= '<option value="'.esc_attr($occurrence->tstart.':'.$occurrence->tend).'" '.($i === 1 ? 'selected="selected"' : '').'>'.date_i18n($datetime_format, $occurrence->tstart).'</option>';
1796
  $i++;
1797
  }
1798
 
1799
+ if(count($occurrences) >= $limit and isset($occurrence)) $html .= '<option class="mec-load-occurrences" value="'.esc_attr($occurrence->tstart.':'.$occurrence->tend).'">'.esc_html__('Next Occurrences', 'modern-events-calendar-lite').'</option>';
1800
 
1801
  $this->main->response(array('success'=>$success, 'html'=>$html));
1802
  }
app/features/mec/addons.php CHANGED
@@ -8,12 +8,12 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
8
  <div class="welcome-head w-clearfix">
9
  <div class="w-row">
10
  <div class="w-col-sm-9">
11
- <h1> <?php echo __('Addons', 'modern-events-calendar-lite'); ?> </h1>
12
  </div>
13
  <div class="w-col-sm-3">
14
  <?php $styling = $this->main->get_styling(); $darkadmin_mode = ( isset($styling['dark_mode']) ) ? $styling['dark_mode'] : ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; endif; ?>
15
- <img src="<?php echo $darklogo; ?>" />
16
- <span class="w-theme-version"><?php echo __('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
17
  </div>
18
  </div>
19
  </div>
@@ -75,7 +75,7 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
75
  <div class="w-col-sm-12">
76
  <div class="addons-page-error">
77
  <p>
78
- <?php echo __( '<strong>"file_get_contents"</strong> and <strong>"Curl"</strong> functions are <strong>not activated</strong> on your server. Please contact your host provider in this regard.', 'modern-events-calendar-lite'); ?>
79
  </p>
80
  </div>
81
  </div>
8
  <div class="welcome-head w-clearfix">
9
  <div class="w-row">
10
  <div class="w-col-sm-9">
11
+ <h1> <?php echo esc_html__('Addons', 'modern-events-calendar-lite'); ?> </h1>
12
  </div>
13
  <div class="w-col-sm-3">
14
  <?php $styling = $this->main->get_styling(); $darkadmin_mode = ( isset($styling['dark_mode']) ) ? $styling['dark_mode'] : ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; endif; ?>
15
+ <img src="<?php echo esc_url($darklogo); ?>" />
16
+ <span class="w-theme-version"><?php echo esc_html__('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
17
  </div>
18
  </div>
19
  </div>
75
  <div class="w-col-sm-12">
76
  <div class="addons-page-error">
77
  <p>
78
+ <?php echo esc_html__( '<strong>"file_get_contents"</strong> and <strong>"Curl"</strong> functions are <strong>not activated</strong> on your server. Please contact your host provider in this regard.', 'modern-events-calendar-lite'); ?>
79
  </p>
80
  </div>
81
  </div>
app/features/mec/booking.php CHANGED
@@ -73,7 +73,7 @@ $gateways_options = $this->main->get_gateways_options();
73
  <i class="mec-sl-magnifier"></i>
74
  <input id="mec-search-settings" type="text" placeholder="<?php esc_html_e('Search...','modern-events-calendar-lite'); ?>">
75
  </div>
76
- <a id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
77
  </div>
78
 
79
  <div class="wns-be-sidebar">
@@ -89,66 +89,66 @@ $gateways_options = $this->main->get_gateways_options();
89
  <form id="mec_booking_form">
90
 
91
  <div id="booking_option" class="mec-options-fields active">
92
- <h4 class="mec-form-subtitle"><?php _e('Booking', 'modern-events-calendar-lite'); ?></h4>
93
 
94
  <?php if(!$this->main->getPRO()): ?>
95
- <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>
96
  <?php else: ?>
97
  <div class="mec-form-row">
98
  <label>
99
  <input type="hidden" name="mec[settings][booking_status]" value="0" />
100
- <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'); ?>
101
  <p><?php esc_attr_e("After enabling and saving the settings, reloading the page will add 'payment Gateways' to the settings and a new menu item on the Dashboard", 'modern-events-calendar-lite'); ?></p>
102
  </label>
103
  </div>
104
  <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'; ?>">
105
- <h5 class="title"><?php _e('Date Options', 'modern-events-calendar-lite'); ?></h5>
106
  <div class="mec-form-row">
107
- <label class="mec-col-3" for="mec_settings_booking_date_format1"><?php _e('Date Format', 'modern-events-calendar-lite'); ?></label>
108
  <div class="mec-col-9">
109
  <input type="text" id="mec_settings_booking_date_format1" name="mec[settings][booking_date_format1]" value="<?php echo ((isset($ml_settings['booking_date_format1']) and trim($ml_settings['booking_date_format1']) != '') ? $ml_settings['booking_date_format1'] : 'Y-m-d'); ?>" />
110
  <span class="mec-tooltip">
111
  <div class="box left">
112
- <h5 class="title"><?php _e('Date Format', 'modern-events-calendar-lite'); ?></h5>
113
- <div class="content"><p><?php esc_attr_e("Default is Y-m-d", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
114
  </div>
115
  <i title="" class="dashicons-before dashicons-editor-help"></i>
116
  </span>
117
  </div>
118
  </div>
119
  <div class="mec-form-row">
120
- <label class="mec-col-3" for="mec_settings_booking_maximum_dates"><?php _e('Maximum Dates', 'modern-events-calendar-lite'); ?></label>
121
  <div class="mec-col-9">
122
  <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" />
123
  </div>
124
  </div>
125
  <div class="mec-form-row">
126
- <label class="mec-col-3" for="mec_settings_booking_date_selection"><?php _e('Date Selection', 'modern-events-calendar-lite'); ?></label>
127
  <div class="mec-col-9">
128
  <select id="mec_settings_booking_date_selection" name="mec[settings][booking_date_selection]">
129
- <option value="dropdown" <?php echo ((!isset($settings['booking_date_selection']) or (isset($settings['booking_date_selection']) and $settings['booking_date_selection'] == 'dropdown')) ? 'selected="selected"' : ''); ?>><?php _e('Dropdown', 'modern-events-calendar-lite'); ?></option>
130
- <option value="calendar" <?php echo ((isset($settings['booking_date_selection']) and $settings['booking_date_selection'] == 'calendar') ? 'selected="selected"' : ''); ?>><?php _e('Calendar', 'modern-events-calendar-lite'); ?></option>
131
- <option value="checkboxes" <?php echo ((isset($settings['booking_date_selection']) and $settings['booking_date_selection'] == 'checkboxes') ? 'selected="selected"' : ''); ?>><?php _e('Checkboxes', 'modern-events-calendar-lite'); ?></option>
132
  </select>
133
  </div>
134
  </div>
135
- <h5 class="title"><?php _e('Interval Options', 'modern-events-calendar-lite'); ?></h5>
136
  <div class="mec-form-row">
137
- <label class="mec-col-3" for="mec_settings_show_booking_form_interval"><?php _e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></label>
138
  <div class="mec-col-9">
139
  <input type="number" id="mec_settings_show_booking_form_interval" name="mec[settings][show_booking_form_interval]" value="<?php echo ((isset($settings['show_booking_form_interval']) and trim($settings['show_booking_form_interval']) != '0') ? $settings['show_booking_form_interval'] : '0'); ?>" placeholder="<?php esc_attr_e('Minutes (e.g 5)', 'modern-events-calendar-lite'); ?>" />
140
  <span class="mec-tooltip">
141
  <div class="box left">
142
- <h5 class="title"><?php _e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></h5>
143
  <div class="content"><p><?php esc_attr_e("You can show booking form only at certain times before event start. If you set this option to 30 then booking form will open only 30 minutes before starting the event! One day is 1440 minutes.", 'modern-events-calendar-lite'); ?></p></div>
144
  </div>
145
  <i title="" class="dashicons-before dashicons-editor-help"></i>
146
  </span>
147
  </div>
148
  </div>
149
- <h5 class="mec-form-subtitle"><?php _e('Booking Cancellation', 'modern-events-calendar-lite'); ?></h5>
150
  <div class="mec-form-row">
151
- <label class="mec-col-3" for="mec_settings_cancellation_period_from"><?php _e('Cancellation Period', 'modern-events-calendar-lite'); ?></label>
152
  <div class="mec-col-9">
153
  <div class="cancellation-period-box">
154
  <input type="number" id="mec_settings_cancellation_period_from" name="mec[settings][cancellation_period_from]" value="<?php echo ((isset($settings['cancellation_period_from']) and trim($settings['cancellation_period_from']) != '') ? $settings['cancellation_period_from'] : ''); ?>" placeholder="<?php esc_attr_e('From e.g 48', 'modern-events-calendar-lite'); ?>" />
@@ -166,7 +166,7 @@ $gateways_options = $this->main->get_gateways_options();
166
  <?php esc_html_e('Event Start', 'modern-events-calendar-lite'); ?>
167
  <span class="mec-tooltip">
168
  <div class="box left">
169
- <h5 class="title"><?php _e('Cancellation Period', 'modern-events-calendar-lite'); ?></h5>
170
  <div class="content"><p><?php esc_attr_e("You can restrict the ability to cancel bookings. Leave empty for cancellation at any time. For example if you insert 48 to 24 hours before event start then bookers are able to cancel their booking between this time and before or after that they're not able to do that.", 'modern-events-calendar-lite'); ?></p></div>
171
  </div>
172
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -175,39 +175,39 @@ $gateways_options = $this->main->get_gateways_options();
175
  </div>
176
  </div>
177
  <div class="mec-form-row">
178
- <label class="mec-col-3" for="mec_settings_booking_cancel_page"><?php _e('Cancellation Page', 'modern-events-calendar-lite'); ?></label>
179
  <div class="mec-col-9">
180
  <select id="mec_settings_booking_cancel_page" name="mec[settings][booking_cancel_page]">
181
  <option value="">----</option>
182
  <?php foreach($pages as $page): ?>
183
- <option <?php echo ((isset($settings['booking_cancel_page']) and $settings['booking_cancel_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo $page->ID; ?>"><?php echo $page->post_title; ?></option>
184
  <?php endforeach; ?>
185
  </select>
186
  <span class="mec-tooltip">
187
  <div class="box left">
188
- <h5 class="title"><?php _e('Cancellation Page', 'modern-events-calendar-lite'); ?></h5>
189
- <div class="content"><p><?php esc_attr_e("User redirects to this page after booking cancellation. Leave it empty if you want to disable it.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
190
  </div>
191
  <i title="" class="dashicons-before dashicons-editor-help"></i>
192
  </span>
193
  </div>
194
  </div>
195
  <div class="mec-form-row">
196
- <label class="mec-col-3" for="mec_settings_booking_cancel_page_time"><?php _e('Cancellation Page Time Interval', 'modern-events-calendar-lite'); ?></label>
197
  <div class="mec-col-9">
198
  <input type="number" id="mec_settings_booking_cancel_page_time" name="mec[settings][booking_cancel_page_time]" value="<?php echo ((isset($settings['booking_cancel_page_time']) and trim($settings['booking_cancel_page_time']) != '0') ? $settings['booking_cancel_page_time'] : '2000'); ?>" placeholder="<?php esc_attr_e('2000 means 2 seconds', 'modern-events-calendar-lite'); ?>" />
199
  <span class="mec-tooltip">
200
  <div class="box left">
201
- <h5 class="title"><?php _e('Cancellation Page Time Interval', 'modern-events-calendar-lite'); ?></h5>
202
- <div class="content"><p><?php esc_attr_e("Waiting time before redirecting to cancellation page. It's in miliseconds so 2000 means 2 seconds.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
203
  </div>
204
  <i title="" class="dashicons-before dashicons-editor-help"></i>
205
  </span>
206
  </div>
207
  </div>
208
- <h5 class="title"><?php _e('User Registration', 'modern-events-calendar-lite'); ?></h5>
209
  <div class="mec-form-row">
210
- <label class="mec-col-3" for="mec_settings_booking_registration"><?php _e('Registration', 'modern-events-calendar-lite'); ?></label>
211
  <div class="mec-col-9">
212
  <select id="mec_settings_booking_registration" name="mec[settings][booking_registration]" onchange="jQuery('#mec_settings_booking_registration_wrapper').toggleClass('w-hidden');">
213
  <option <?php echo ((isset($settings['booking_registration']) and $settings['booking_registration'] == '1') ? 'selected="selected"' : ''); ?> value="1"><?php echo esc_html__('Enabled', 'modern-events-calendar-lite'); ?></option>
@@ -215,7 +215,7 @@ $gateways_options = $this->main->get_gateways_options();
215
  </select>
216
  <span class="mec-tooltip">
217
  <div class="box left">
218
- <h5 class="title"><?php _e('Registration', 'modern-events-calendar-lite'); ?></h5>
219
  <div class="content"><p><?php esc_attr_e("If enabled MEC would create a WordPress User for main attendees. It's recommended to keep it enabled.", 'modern-events-calendar-lite'); ?></p></div>
220
  </div>
221
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -224,25 +224,25 @@ $gateways_options = $this->main->get_gateways_options();
224
  </div>
225
  <div id="mec_settings_booking_registration_wrapper" class="<?php echo (!isset($settings['booking_registration']) or (isset($settings['booking_registration']) and $settings['booking_registration'])) ? "" : "w-hidden"; ?>">
226
  <div class="mec-form-row">
227
- <label class="mec-col-3" for="mec_settings_booking_user_role"><?php _e('User Role', 'modern-events-calendar-lite'); ?></label>
228
  <div class="mec-col-9">
229
  <select id="mec_settings_booking_user_role" name="mec[settings][booking_user_role]">
230
  <option value="">----</option>
231
  <?php foreach($roles as $role => $r): ?>
232
- <option <?php echo ((isset($settings['booking_user_role']) and $settings['booking_user_role'] == $role) ? 'selected="selected"' : ''); ?> value="<?php echo $role; ?>"><?php echo $r['name']; ?></option>
233
  <?php endforeach; ?>
234
  </select>
235
  <span class="mec-tooltip">
236
  <div class="box left">
237
- <h5 class="title"><?php _e('User Role', 'modern-events-calendar-lite'); ?></h5>
238
- <div class="content"><p><?php esc_attr_e("MEC creates a user for main attendee after each booking. Default role of the user is subscriber but you can change it if needed.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
239
  </div>
240
  <i title="" class="dashicons-before dashicons-editor-help"></i>
241
  </span>
242
  </div>
243
  </div>
244
  <div class="mec-form-row">
245
- <label class="mec-col-3" for="mec_settings_booking_userpass"><?php _e('Username & Password', 'modern-events-calendar-lite'); ?></label>
246
  <div class="mec-col-9">
247
  <select id="mec_settings_booking_userpass" name="mec[settings][booking_userpass]">
248
  <option value="auto" <?php echo ((isset($settings['booking_userpass']) and trim($settings['booking_userpass']) == 'auto') ? 'selected="selected"' : ''); ?>><?php echo esc_html__('Auto', 'modern-events-calendar-lite'); ?></option>
@@ -250,7 +250,7 @@ $gateways_options = $this->main->get_gateways_options();
250
  </select>
251
  <span class="mec-tooltip">
252
  <div class="box left">
253
- <h5 class="title"><?php _e('Username & Password', 'modern-events-calendar-lite'); ?></h5>
254
  <div class="content"><p><?php esc_attr_e("If you set it to manual option then users can insert a username and password during the booking for registration otherwise MEC use their email and an auto generated password.", 'modern-events-calendar-lite'); ?></p></div>
255
  </div>
256
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -259,14 +259,14 @@ $gateways_options = $this->main->get_gateways_options();
259
  </div>
260
  </div>
261
 
262
- <h5 class="mec-form-subtitle"><?php _e('Limitation', 'modern-events-calendar-lite'); ?></h5>
263
  <div class="mec-form-row">
264
- <label class="mec-col-3" for="mec_settings_booking_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
265
  <div class="mec-col-9">
266
  <input type="number" id="mec_settings_booking_limit" name="mec[settings][booking_limit]" value="<?php echo ((isset($settings['booking_limit']) and trim($settings['booking_limit']) != '') ? $settings['booking_limit'] : ''); ?>" placeholder="<?php esc_attr_e('Default is empty', 'modern-events-calendar-lite'); ?>" />
267
  <span class="mec-tooltip">
268
  <div class="box left">
269
- <h5 class="title"><?php _e('Booking Limit', 'modern-events-calendar-lite'); ?></h5>
270
  <div class="content"><p><?php esc_attr_e("Total tickets that a user can book. It is useful if you're providing free tickets. Leave it empty for unlimited booking.", 'modern-events-calendar-lite'); ?></p></div>
271
  </div>
272
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -274,7 +274,7 @@ $gateways_options = $this->main->get_gateways_options();
274
  </div>
275
  </div>
276
  <div class="mec-form-row">
277
- <label class="mec-col-3" for="mec_settings_booking_ip_restriction"><?php _e('IP restriction', 'modern-events-calendar-lite'); ?></label>
278
  <div class="mec-col-9">
279
  <select id="mec_settings_booking_ip_restriction" name="mec[settings][booking_ip_restriction]">
280
  <option value="1" <?php echo ((isset($settings['booking_ip_restriction']) and trim($settings['booking_ip_restriction']) == 1) ? 'selected="selected"' : ''); ?>><?php echo esc_html__('Enabled', 'modern-events-calendar-lite'); ?></option>
@@ -282,7 +282,7 @@ $gateways_options = $this->main->get_gateways_options();
282
  </select>
283
  <span class="mec-tooltip">
284
  <div class="box left">
285
- <h5 class="title"><?php _e('IP restriction', 'modern-events-calendar-lite'); ?></h5>
286
  <div class="content"><p><?php esc_attr_e("If you set limit for total tickets that users can book, MEC will use IP and email to prevent users to book high tickets. You can disable the IP restriction if you don't need it.", 'modern-events-calendar-lite'); ?></p></div>
287
  </div>
288
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -290,7 +290,7 @@ $gateways_options = $this->main->get_gateways_options();
290
  </div>
291
  </div>
292
  <div class="mec-form-row">
293
- <label class="mec-col-3" for="mec_settings_booking_lock_prefilled"><?php _e('Lock Pre-filled Fields', 'modern-events-calendar-lite'); ?></label>
294
  <div class="mec-col-9">
295
  <select id="mec_settings_booking_lock_prefilled" name="mec[settings][booking_lock_prefilled]">
296
  <option value="0" <?php echo (isset($settings['booking_lock_prefilled']) and $settings['booking_lock_prefilled'] == '0') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Disabled', 'modern-events-calendar-lite'); ?></option>
@@ -299,62 +299,62 @@ $gateways_options = $this->main->get_gateways_options();
299
  </select>
300
  <span class="mec-tooltip">
301
  <div class="box left">
302
- <h5 class="title"><?php _e('Lock Pre-filled Fields', 'modern-events-calendar-lite'); ?></h5>
303
- <div class="content"><p><?php esc_attr_e("When users are logged in, name and email fields will be pre-filled but users can change them. If you enable the lock, then logged in users cannot change the pre-filled fields.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
304
  </div>
305
  <i title="" class="dashicons-before dashicons-editor-help"></i>
306
  </span>
307
  </div>
308
  </div>
309
- <h5 class="mec-form-subtitle"><?php _e('Last Few Tickets Flag', 'modern-events-calendar-lite'); ?></h5>
310
  <div class="mec-form-row">
311
- <label class="mec-col-3" for="mec_settings_booking_last_few_tickets_percentage"><?php _e('Percentage', 'modern-events-calendar-lite'); ?></label>
312
  <div class="mec-col-9">
313
  <input type="number" id="mec_settings_booking_last_few_tickets_percentage" name="mec[settings][booking_last_few_tickets_percentage]" value="<?php echo ((isset($settings['booking_last_few_tickets_percentage']) and trim($settings['booking_last_few_tickets_percentage']) != '') ? max($settings['booking_last_few_tickets_percentage'], 1) : '15'); ?>" placeholder="<?php esc_attr_e('Default is 15', 'modern-events-calendar-lite'); ?>" min="1" max="100" step="1" />
314
  <span class="mec-tooltip">
315
  <div class="box left">
316
- <h5 class="title"><?php _e('Last Few Tickets Percentage', 'modern-events-calendar-lite'); ?></h5>
317
  <div class="content"><p><?php esc_attr_e("We will show a \"Last Few Tickets\" flag on events when remained tickets are less than this percentage.", 'modern-events-calendar-lite'); ?></p></div>
318
  </div>
319
  <i title="" class="dashicons-before dashicons-editor-help"></i>
320
  </span>
321
  </div>
322
  </div>
323
- <h5 class="mec-form-subtitle"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></h5>
324
  <div class="mec-form-row">
325
- <label class="mec-col-3" for="mec_settings_booking_thankyou_page"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></label>
326
  <div class="mec-col-9">
327
  <select id="mec_settings_booking_thankyou_page" name="mec[settings][booking_thankyou_page]">
328
  <option value="">----</option>
329
  <?php foreach($pages as $page): ?>
330
- <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>
331
  <?php endforeach; ?>
332
  </select>
333
  <span class="mec-tooltip">
334
  <div class="box left">
335
- <h5 class="title"><?php _e('Thank You Page', 'modern-events-calendar-lite'); ?></h5>
336
- <div class="content"><p><?php esc_attr_e("User redirects to this page after booking. Leave it empty if you want to disable it.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
337
  </div>
338
  <i title="" class="dashicons-before dashicons-editor-help"></i>
339
  </span>
340
  </div>
341
  </div>
342
  <div class="mec-form-row">
343
- <label class="mec-col-3" for="mec_settings_booking_thankyou_page_time"><?php _e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></label>
344
  <div class="mec-col-9">
345
  <input type="number" id="mec_settings_booking_thankyou_page_time" name="mec[settings][booking_thankyou_page_time]" value="<?php echo ((isset($settings['booking_thankyou_page_time']) and trim($settings['booking_thankyou_page_time']) != '0') ? $settings['booking_thankyou_page_time'] : '2000'); ?>" placeholder="<?php esc_attr_e('2000 mean 2 seconds', 'modern-events-calendar-lite'); ?>" />
346
  <span class="mec-tooltip">
347
  <div class="box left">
348
- <h5 class="title"><?php _e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></h5>
349
- <div class="content"><p><?php esc_attr_e("Waiting time before redirecting to thank you page. It's in miliseconds so 2000 means 2 seconds.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
350
  </div>
351
  <i title="" class="dashicons-before dashicons-editor-help"></i>
352
  </span>
353
  </div>
354
  </div>
355
- <h5 class="mec-form-subtitle"><?php _e('Transaction ID', 'modern-events-calendar-lite'); ?></h5>
356
  <div class="mec-form-row">
357
- <label class="mec-col-3" for="mec_settings_booking_tid_generation_method"><?php _e('Generation Method', 'modern-events-calendar-lite'); ?></label>
358
  <div class="mec-col-9">
359
  <select id="mec_settings_booking_tid_generation_method" name="mec[settings][booking_tid_gen_method]" onchange="jQuery('#mec_settings_booking_tid_ordered_generation').toggleClass('mec-util-hidden');">
360
  <option <?php echo ((isset($settings['booking_tid_gen_method']) and $settings['booking_tid_gen_method'] == 'random') ? 'selected="selected"' : ''); ?> value="random"><?php echo esc_html__('Random', 'modern-events-calendar-lite'); ?></option>
@@ -364,15 +364,15 @@ $gateways_options = $this->main->get_gateways_options();
364
  </div>
365
  <div id="mec_settings_booking_tid_ordered_generation" class="<?php echo (!isset($settings['booking_tid_gen_method']) or (isset($settings['booking_tid_gen_method']) and $settings['booking_tid_gen_method'] == 'random')) ? 'mec-util-hidden' : ''; ?>">
366
  <div class="mec-form-row">
367
- <label class="mec-col-3" for="mec_settings_booking_tid_start_from"><?php _e('Start From', 'modern-events-calendar-lite'); ?></label>
368
  <div class="mec-col-9">
369
  <input type="number" id="mec_settings_booking_tid_start_from" name="mec[settings][booking_tid_start_from]" value="<?php echo (isset($settings['booking_tid_start_from']) ? $settings['booking_tid_start_from'] : 10000); ?>" min="1" step="1">
370
  </div>
371
  </div>
372
  </div>
373
- <h5 class="mec-form-subtitle"><?php _e('Simplify Booking Form', 'modern-events-calendar-lite'); ?></h5>
374
  <div class="mec-form-row">
375
- <label class="mec-col-3" for="mec_settings_booking_skip_step1"><?php _e('Skip Step 1', 'modern-events-calendar-lite'); ?></label>
376
  <div class="mec-col-9">
377
  <select id="mec_settings_booking_skip_step1" name="mec[settings][booking_skip_step1]">
378
  <option <?php echo ((isset($settings['booking_skip_step1']) and $settings['booking_skip_step1'] == '0') ? 'selected="selected"' : ''); ?> value="0"><?php echo esc_html__('Disabled', 'modern-events-calendar-lite'); ?></option>
@@ -380,39 +380,39 @@ $gateways_options = $this->main->get_gateways_options();
380
  </select>
381
  </div>
382
  </div>
383
- <h5 class="mec-form-subtitle"><?php _e('Who can book?', 'modern-events-calendar-lite'); ?></h5>
384
  <div class="mec-form-row">
385
  <label for="mec_settings_booking_wcb_all">
386
  <input type="hidden" name="mec[settings][booking_wcb_all]" value="0" />
387
  <input type="checkbox" name="mec[settings][booking_wcb_all]" id="mec_settings_booking_wcb_all" <?php echo ((!isset($settings['booking_wcb_all']) or (isset($settings['booking_wcb_all']) and $settings['booking_wcb_all'] == '1')) ? 'checked="checked"' : ''); ?> value="1" onchange="jQuery('#mec_settings_booking_booking_wcb_options').toggleClass('mec-util-hidden');" />
388
- <?php _e('All Users', 'modern-events-calendar-lite'); ?>
389
  </label>
390
  </div>
391
  <div id="mec_settings_booking_booking_wcb_options" class="<?php echo (!isset($settings['booking_wcb_all']) or (isset($settings['booking_wcb_all']) and $settings['booking_wcb_all'] == '1')) ? 'mec-util-hidden' : ''; ?>" style="margin: 0 0 40px 0; padding: 20px 20px 4px; border: 1px solid #ddd;">
392
  <?php foreach($roles as $role_key => $role): $wcb_value = isset($settings['booking_wcb_'.$role_key]) ? $settings['booking_wcb_'.$role_key] : 1; ?>
393
  <div class="mec-form-row">
394
  <div class="mec-col-12">
395
- <label for="mec_settings_booking_wcb_<?php echo $role_key; ?>">
396
- <input type="hidden" name="mec[settings][booking_wcb_<?php echo $role_key; ?>]" value="0" />
397
- <input type="checkbox" name="mec[settings][booking_wcb_<?php echo $role_key; ?>]" id="mec_settings_booking_wcb_<?php echo $role_key; ?>" <?php echo ((!isset($settings['booking_wcb_'.$role_key]) or (isset($settings['booking_wcb_'.$role_key]) and $settings['booking_wcb_'.$role_key] == '1')) ? 'checked="checked"' : ''); ?> value="1" />
398
- <?php echo $role['name']; ?>
399
  </label>
400
  </div>
401
  </div>
402
  <?php endforeach; ?>
403
  </div>
404
- <h5 class="mec-form-subtitle"><?php _e('Booking Elements', 'modern-events-calendar-lite'); ?></h5>
405
  <div class="mec-form-row">
406
  <div class="mec-col-12">
407
  <label for="mec_settings_booking_first_for_all">
408
  <input type="hidden" name="mec[settings][booking_first_for_all]" value="0" />
409
  <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" />
410
- <?php _e('Enable Express Attendees Form', 'modern-events-calendar-lite'); ?>
411
  </label>
412
  <span class="mec-tooltip">
413
  <div class="box">
414
- <h5 class="title"><?php _e('Attendees Form', 'modern-events-calendar-lite'); ?></h5>
415
- <div class="content"><p><?php esc_attr_e("Apply the info from the first attendee to all purchased ticket by that user. Uncheck if you want every ticket to have its own attendee’s info.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
416
  </div>
417
  <i title="" class="dashicons-before dashicons-editor-help"></i>
418
  </span>
@@ -425,7 +425,7 @@ $gateways_options = $this->main->get_gateways_options();
425
  <input type="checkbox" name="mec[settings][attendee_counter]" id="mec_settings_attendee_counter"
426
  <?php echo ((isset($settings['attendee_counter']) and $settings['attendee_counter'] == '1') ? 'checked="checked"' : ''); ?>
427
  value="1" />
428
- <?php _e('Attendee Counter', 'modern-events-calendar-lite'); ?>
429
  </label>
430
  </div>
431
  </div>
@@ -436,7 +436,7 @@ $gateways_options = $this->main->get_gateways_options();
436
  <input type="checkbox" name="mec[settings][booking_invoice]" id="mec_settings_booking_invoice"
437
  <?php echo ((!isset($settings['booking_invoice']) or (isset($settings['booking_invoice']) and $settings['booking_invoice'] == '1')) ? 'checked="checked"' : ''); ?>
438
  value="1" />
439
- <?php _e('Enable Invoice', 'modern-events-calendar-lite'); ?>
440
  </label>
441
  </div>
442
  </div>
@@ -447,7 +447,7 @@ $gateways_options = $this->main->get_gateways_options();
447
  <input type="checkbox" name="mec[settings][booking_ongoing]" id="mec_settings_booking_ongoing"
448
  <?php echo ((isset($settings['booking_ongoing']) and $settings['booking_ongoing'] == '1') ? 'checked="checked"' : ''); ?>
449
  value="1" />
450
- <?php _e('Enable Booking for Ongoing Events', 'modern-events-calendar-lite'); ?>
451
  </label>
452
  </div>
453
  </div>
@@ -458,12 +458,12 @@ $gateways_options = $this->main->get_gateways_options();
458
  <input type="checkbox" name="mec[settings][downloadable_file_status]" id="mec_settings_booking_downloadable_file_status"
459
  <?php echo ((isset($settings['downloadable_file_status']) and $settings['downloadable_file_status'] == '1') ? 'checked="checked"' : ''); ?>
460
  value="1" />
461
- <?php _e('Enable Downloadable File', 'modern-events-calendar-lite'); ?>
462
  </label>
463
  <span class="mec-tooltip">
464
  <div class="box">
465
- <h5 class="title"><?php _e('Downloadable File', 'modern-events-calendar-lite'); ?></h5>
466
- <div class="content"><p><?php esc_attr_e("By enabling this feature, You can upload a file for each event and bookers are able to download it after booking.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
467
  </div>
468
  <i title="" class="dashicons-before dashicons-editor-help"></i>
469
  </span>
@@ -476,18 +476,18 @@ $gateways_options = $this->main->get_gateways_options();
476
  <input type="checkbox" name="mec[settings][disable_ticket_times]" id="mec_settings_booking_disable_ticket_times"
477
  <?php echo ((isset($settings['disable_ticket_times']) and $settings['disable_ticket_times'] == '1') ? 'checked="checked"' : ''); ?>
478
  value="1" />
479
- <?php _e('Disable Ticket Times', 'modern-events-calendar-lite'); ?>
480
  </label>
481
  </div>
482
  </div>
483
  <?php do_action('add_booking_variables', $settings); ?>
484
- <h5 class="mec-form-subtitle"><?php _e('Email verification', 'modern-events-calendar-lite'); ?></h5>
485
  <div class="mec-form-row">
486
  <div class="mec-col-12">
487
  <label for="mec_settings_booking_auto_verify_free">
488
  <input type="hidden" name="mec[settings][booking_auto_verify_free]" value="0" />
489
  <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" />
490
- <?php _e('Auto verification for free bookings', 'modern-events-calendar-lite'); ?>
491
  </label>
492
  </div>
493
  </div>
@@ -496,17 +496,17 @@ $gateways_options = $this->main->get_gateways_options();
496
  <label for="mec_settings_booking_auto_verify_paid">
497
  <input type="hidden" name="mec[settings][booking_auto_verify_paid]" value="0" />
498
  <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" />
499
- <?php _e('Auto verification for paid bookings', 'modern-events-calendar-lite'); ?>
500
  </label>
501
  </div>
502
  </div>
503
- <h5 class="mec-form-subtitle"><?php _e('Booking Confirmation', 'modern-events-calendar-lite'); ?></h5>
504
  <div class="mec-form-row">
505
  <div class="mec-col-12">
506
  <label for="mec_settings_booking_auto_confirm_free">
507
  <input type="hidden" name="mec[settings][booking_auto_confirm_free]" value="0" />
508
  <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" />
509
- <?php _e('Auto confirmation for free bookings', 'modern-events-calendar-lite'); ?>
510
  </label>
511
  </div>
512
  </div>
@@ -515,7 +515,7 @@ $gateways_options = $this->main->get_gateways_options();
515
  <label for="mec_settings_booking_auto_confirm_paid">
516
  <input type="hidden" name="mec[settings][booking_auto_confirm_paid]" value="0" />
517
  <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" />
518
- <?php _e('Auto confirmation for paid bookings', 'modern-events-calendar-lite'); ?>
519
  </label>
520
  </div>
521
  </div>
@@ -524,7 +524,7 @@ $gateways_options = $this->main->get_gateways_options();
524
  <label for="mec_settings_booking_auto_confirm_send_email">
525
  <input type="hidden" name="mec[settings][booking_auto_confirm_send_email]" value="0" />
526
  <input type="checkbox" name="mec[settings][booking_auto_confirm_send_email]" id="mec_settings_booking_auto_confirm_send_email" <?php echo ((isset($settings['booking_auto_confirm_send_email']) and $settings['booking_auto_confirm_send_email'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
527
- <?php _e('Send confirmation email in auto confirmation mode', 'modern-events-calendar-lite'); ?>
528
  </label>
529
  </div>
530
  </div>
@@ -538,10 +538,10 @@ $gateways_options = $this->main->get_gateways_options();
538
  <?php do_action('mec_reg_menu_start', $this->main, $this->settings); ?>
539
 
540
  <div id="booking_shortcode" class="mec-options-fields">
541
- <h4 class="mec-form-subtitle"><?php _e('Booking Shortcode', 'modern-events-calendar-lite'); ?></h4>
542
 
543
  <?php if(!$this->main->getPRO()): ?>
544
- <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>
545
  <?php else: ?>
546
 
547
  <div class="mec-form-row">
@@ -554,15 +554,15 @@ $gateways_options = $this->main->get_gateways_options();
554
  </div>
555
 
556
  <div id="coupon_option" class="mec-options-fields">
557
- <h4 class="mec-form-subtitle"><?php _e('Coupons', 'modern-events-calendar-lite'); ?></h4>
558
 
559
  <?php if(!$this->main->getPRO()): ?>
560
- <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>
561
  <?php else: ?>
562
  <div class="mec-form-row">
563
  <label>
564
  <input type="hidden" name="mec[settings][coupons_status]" value="0" />
565
- <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'); ?>
566
  </label>
567
  <p><?php esc_attr_e("After enabling and saving the settings, you should reload the page to see a new menu on the Dashboard > Booking", 'modern-events-calendar-lite'); ?></p>
568
  </div>
@@ -572,52 +572,52 @@ $gateways_options = $this->main->get_gateways_options();
572
  </div>
573
 
574
  <div id="taxes_option" class="mec-options-fields">
575
- <h4 class="mec-form-subtitle"><?php _e('Taxes / Fees', 'modern-events-calendar-lite'); ?></h4>
576
 
577
  <?php if(!$this->main->getPRO()): ?>
578
- <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>
579
  <?php else: ?>
580
  <div class="mec-form-row">
581
  <label>
582
  <input type="hidden" name="mec[settings][taxes_fees_status]" value="0" />
583
- <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'); ?>
584
  </label>
585
  </div>
586
  <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'; ?>">
587
  <div class="mec-form-row">
588
- <button class="button" type="button" id="mec_add_fee_button"><?php _e('Add Fee', 'modern-events-calendar-lite'); ?></button>
589
  </div>
590
  <div class="mec-form-row" id="mec_fees_list">
591
  <?php $i = 0; foreach($fees as $key=>$fee): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
592
- <div class="mec-box" id="mec_fee_row<?php echo $i; ?>">
593
  <div class="mec-form-row">
594
- <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'] : ''); ?>" />
595
  </div>
596
  <div class="mec-form-row">
597
  <span class="mec-col-4">
598
- <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'] : ''); ?>" />
599
  <span class="mec-tooltip">
600
  <div class="box top">
601
- <h5 class="title"><?php _e('Amount', 'modern-events-calendar-lite'); ?></h5>
602
- <div class="content"><p><?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'); ?><a href="https://webnus.net/dox/modern-events-calendar/taxes-or-fees/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
603
  </div>
604
  <i title="" class="dashicons-before dashicons-editor-help"></i>
605
  </span>
606
  </span>
607
  <span class="mec-col-4">
608
- <select name="mec[settings][fees][<?php echo $i; ?>][type]">
609
- <option value="percent" <?php echo ((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
610
- <option value="amount" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
611
- <option value="amount_per_date" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_date') ? 'selected="selected"' : ''); ?>><?php _e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
612
- <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>
613
  </select>
614
  </span>
615
- <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>
616
  </div>
617
  </div>
618
  <?php endforeach; ?>
619
  </div>
620
- <input type="hidden" id="mec_new_fee_key" value="<?php echo $i+1; ?>" />
621
  <div class="mec-util-hidden" id="mec_new_fee_raw">
622
  <div class="mec-box" id="mec_fee_row:i:">
623
  <div class="mec-form-row">
@@ -628,35 +628,35 @@ $gateways_options = $this->main->get_gateways_options();
628
  <input type="text" name="mec[settings][fees][:i:][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" />
629
  <span class="mec-tooltip">
630
  <div class="box top">
631
- <h5 class="title"><?php _e('Amount', 'modern-events-calendar-lite'); ?></h5>
632
- <div class="content"><p><?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'); ?><a href="https://webnus.net/dox/modern-events-calendar/taxes-or-fees/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
633
  </div>
634
  <i title="" class="dashicons-before dashicons-editor-help"></i>
635
  </span>
636
  </span>
637
  <span class="mec-col-4">
638
  <select name="mec[settings][fees][:i:][type]">
639
- <option value="percent"><?php _e('Percent', 'modern-events-calendar-lite'); ?></option>
640
- <option value="amount"><?php _e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
641
- <option value="amount_per_date"><?php _e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
642
- <option value="amount_per_booking"><?php _e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
643
  </select>
644
  </span>
645
- <button class="button" type="button" id="mec_remove_fee_button:i:" onclick="mec_remove_fee(:i:);"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
646
  </div>
647
  </div>
648
  </div>
649
 
650
  <?php if(!isset($settings['wc_status']) or (isset($settings['wc_status']) and !$settings['wc_status'])): ?>
651
  <div class="mec-form-row">
652
- <h4><?php echo __('Disable Fees per Gateways', 'modern-events-calendar-lite'); ?></h4>
653
  <?php foreach($gateways as $gateway): ?>
654
  <div class="mec-form-row">
655
  <span class="mec-col-12">
656
  <label>
657
  <input type="hidden" name="mec[settings][fees_disabled_gateways][<?php echo esc_attr($gateway->id()); ?>]" value="0">
658
  <input type="checkbox" name="mec[settings][fees_disabled_gateways][<?php echo esc_attr($gateway->id()); ?>]" value="1" <?php echo ((isset($settings['fees_disabled_gateways']) and isset($settings['fees_disabled_gateways'][$gateway->id()]) and $settings['fees_disabled_gateways'][$gateway->id()]) ? 'checked="checked"' : ''); ?>>
659
- <?php echo $gateway->title(); ?>
660
  </label>
661
  </span>
662
  </div>
@@ -668,54 +668,54 @@ $gateways_options = $this->main->get_gateways_options();
668
  </div>
669
 
670
  <div id="ticket_variations_option" class="mec-options-fields">
671
- <h4 class="mec-form-subtitle"><?php _e('Ticket Variations & Options', 'modern-events-calendar-lite'); ?></h4>
672
 
673
  <?php if(!$this->main->getPRO()): ?>
674
- <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>
675
  <?php else: ?>
676
  <div class="mec-form-row">
677
  <label>
678
  <input type="hidden" name="mec[settings][ticket_variations_status]" value="0" />
679
- <input onchange="jQuery('#mec_ticket_variations_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][ticket_variations_status]" <?php if(isset($settings['ticket_variations_status']) and $settings['ticket_variations_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable ticket variations module', 'modern-events-calendar-lite'); ?>
680
  </label>
681
  </div>
682
  <div id="mec_ticket_variations_container_toggle" class="<?php if((isset($settings['ticket_variations_status']) and !$settings['ticket_variations_status']) or !isset($settings['ticket_variations_status'])) echo 'mec-util-hidden'; ?>">
683
  <div class="mec-form-row">
684
- <button class="button" type="button" id="mec_add_ticket_variation_button"><?php _e('Add Variation / Option', 'modern-events-calendar-lite'); ?></button>
685
  </div>
686
  <div class="mec-form-row" id="mec_ticket_variations_list">
687
  <?php $i = 0; foreach($ticket_variations as $key=>$ticket_variation): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
688
- <div class="mec-box" id="mec_ticket_variation_row<?php echo $i; ?>">
689
  <div class="mec-form-row">
690
- <input class="mec-col-12" type="text" name="mec[settings][ticket_variations][<?php echo $i; ?>][title]" placeholder="<?php esc_attr_e('Title', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket_variation['title']) ? $ticket_variation['title'] : ''); ?>" />
691
  </div>
692
  <div class="mec-form-row">
693
  <span class="mec-col-4">
694
- <input type="text" name="mec[settings][ticket_variations][<?php echo $i; ?>][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket_variation['price']) ? $ticket_variation['price'] : ''); ?>" />
695
  <span class="mec-tooltip">
696
  <div class="box top">
697
- <h5 class="title"><?php _e('Price', 'modern-events-calendar-lite'); ?></h5>
698
- <div class="content"><p><?php esc_attr_e("Option Price", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
699
  </div>
700
  <i title="" class="dashicons-before dashicons-editor-help"></i>
701
  </span>
702
  </span>
703
  <span class="mec-col-4">
704
- <input type="number" min="0" name="mec[settings][ticket_variations][<?php echo $i; ?>][max]" placeholder="<?php esc_attr_e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket_variation['max']) ? $ticket_variation['max'] : ''); ?>" />
705
  <span class="mec-tooltip">
706
  <div class="box top">
707
- <h5 class="title"><?php _e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?></h5>
708
- <div class="content"><p><?php esc_attr_e("Maximum Per Ticket. Leave blank for unlimited.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
709
  </div>
710
  <i title="" class="dashicons-before dashicons-editor-help"></i>
711
  </span>
712
  </span>
713
- <button class="button" type="button" id="mec_remove_ticket_variation_button<?php echo $i; ?>" onclick="mec_remove_ticket_variation(<?php echo $i; ?>, 'ticket_variation');"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
714
  </div>
715
  </div>
716
  <?php endforeach; ?>
717
  </div>
718
- <input type="hidden" id="mec_new_ticket_variation_key" value="<?php echo $i+1; ?>" />
719
  <div class="mec-util-hidden" id="mec_new_ticket_variation_raw">
720
  <div class="mec-box" id="mec_ticket_variation_row:i:">
721
  <div class="mec-form-row">
@@ -726,8 +726,8 @@ $gateways_options = $this->main->get_gateways_options();
726
  <input type="text" name="mec[settings][ticket_variations][:i:][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" />
727
  <span class="mec-tooltip">
728
  <div class="box top">
729
- <h5 class="title"><?php _e('Price', 'modern-events-calendar-lite'); ?></h5>
730
- <div class="content"><p><?php esc_attr_e("Option Price", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
731
  </div>
732
  <i title="" class="dashicons-before dashicons-editor-help"></i>
733
  </span>
@@ -736,13 +736,13 @@ $gateways_options = $this->main->get_gateways_options();
736
  <input type="number" min="0" name="mec[settings][ticket_variations][:i:][max]" placeholder="<?php esc_attr_e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?>" value="1" />
737
  <span class="mec-tooltip">
738
  <div class="box top">
739
- <h5 class="title"><?php _e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?></h5>
740
- <div class="content"><p><?php esc_attr_e("Maximum Per Ticket. Leave blank for unlimited.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
741
  </div>
742
  <i title="" class="dashicons-before dashicons-editor-help"></i>
743
  </span>
744
  </span>
745
- <button class="button" type="button" id="mec_remove_ticket_variation_button:i:" onclick="mec_remove_ticket_variation(:i:, 'ticket_variation');"><?php _e('Remove', 'modern-events-calendar-lite'); ?></button>
746
  </div>
747
  </div>
748
  </div>
@@ -750,16 +750,16 @@ $gateways_options = $this->main->get_gateways_options();
750
  <div class="mec-form-row">
751
  <label>
752
  <input type="hidden" name="mec[settings][ticket_variations_per_ticket]" value="0" />
753
- <input value="1" type="checkbox" name="mec[settings][ticket_variations_per_ticket]" <?php if(isset($settings['ticket_variations_per_ticket']) and $settings['ticket_variations_per_ticket']) echo 'checked="checked"'; ?> /> <?php _e('Enable variations per ticket', 'modern-events-calendar-lite'); ?>
754
  </label>
755
  </div>
756
  <?php endif; ?>
757
  </div>
758
 
759
  <div id="booking_form_option" class="mec-options-fields">
760
- <h4 class="mec-form-subtitle"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></h4>
761
  <div class="mec-booking-per-attendee-fields">
762
- <h5 class="mec-form-subtitle"><?php _e('Per Attendee Fields', 'modern-events-calendar-lite'); ?></h5>
763
  <div class="mec-container">
764
  <?php do_action('before_mec_reg_fields_form'); ?>
765
  <?php do_action('mec_reg_fields_form_start'); ?>
@@ -775,89 +775,89 @@ $gateways_options = $this->main->get_gateways_options();
775
  if(!is_numeric($key)) continue;
776
  $i = max( $i, $key );
777
 
778
- if($reg_field['type'] == 'text') echo $this->main->field_text( $key, $reg_field );
779
- elseif($reg_field['type'] == 'name') echo $this->main->field_name( $key, $reg_field );
780
- elseif($reg_field['type'] == 'mec_email') echo $this->main->field_mec_email( $key, $reg_field );
781
- elseif($reg_field['type'] == 'email') echo $this->main->field_email( $key, $reg_field );
782
- elseif($reg_field['type'] == 'date') echo $this->main->field_date( $key, $reg_field );
783
- elseif($reg_field['type'] == 'file') echo $this->main->field_file( $key, $reg_field );
784
- elseif($reg_field['type'] == 'tel') echo $this->main->field_tel( $key, $reg_field );
785
- elseif($reg_field['type'] == 'textarea') echo $this->main->field_textarea( $key, $reg_field );
786
- elseif($reg_field['type'] == 'p') echo $this->main->field_p( $key, $reg_field );
787
- elseif($reg_field['type'] == 'checkbox') echo $this->main->field_checkbox( $key, $reg_field );
788
- elseif($reg_field['type'] == 'radio') echo $this->main->field_radio( $key, $reg_field );
789
- elseif($reg_field['type'] == 'select') echo $this->main->field_select( $key, $reg_field );
790
- elseif($reg_field['type'] == 'agreement') echo $this->main->field_agreement( $key, $reg_field );
791
  }
792
  ?>
793
  </ul>
794
  <div id="mec_reg_form_field_types">
795
- <button type="button" class="button red" data-type="name"><?php _e( 'MEC Name', 'modern-events-calendar-lite' ); ?></button>
796
- <button type="button" class="button red" data-type="mec_email"><?php _e( 'MEC Email', 'modern-events-calendar-lite' ); ?></button>
797
- <button type="button" class="button" data-type="text"><?php _e( 'Text', 'modern-events-calendar-lite' ); ?></button>
798
- <button type="button" class="button" data-type="email"><?php _e( 'Email', 'modern-events-calendar-lite' ); ?></button>
799
- <button type="button" class="button" data-type="date"><?php _e( 'Date', 'modern-events-calendar-lite' ); ?></button>
800
- <button type="button" class="button" data-type="tel"><?php _e( 'Tel', 'modern-events-calendar-lite' ); ?></button>
801
- <button type="button" class="button" data-type="file"><?php _e( 'File', 'modern-events-calendar-lite' ); ?></button>
802
- <button type="button" class="button" data-type="textarea"><?php _e( 'Textarea', 'modern-events-calendar-lite' ); ?></button>
803
- <button type="button" class="button" data-type="checkbox"><?php _e( 'Checkboxes', 'modern-events-calendar-lite' ); ?></button>
804
- <button type="button" class="button" data-type="radio"><?php _e( 'Radio Buttons', 'modern-events-calendar-lite' ); ?></button>
805
- <button type="button" class="button" data-type="select"><?php _e( 'Dropdown', 'modern-events-calendar-lite' ); ?></button>
806
- <button type="button" class="button" data-type="agreement"><?php _e( 'Agreement', 'modern-events-calendar-lite' ); ?></button>
807
- <button type="button" class="button" data-type="p"><?php _e( 'Paragraph', 'modern-events-calendar-lite' ); ?></button>
808
  </div>
809
  <?php do_action('mec_reg_fields_form_end'); ?>
810
  </div>
811
  <?php do_action('after_mec_reg_fields_form'); ?>
812
  </div>
813
- <input type="hidden" id="mec_new_reg_field_key" value="<?php echo $i + 1; ?>" />
814
  <div class="mec-util-hidden">
815
  <div id="mec_reg_field_text">
816
- <?php echo $this->main->field_text( ':i:' ); ?>
817
  </div>
818
  <div id="mec_reg_field_email">
819
- <?php echo $this->main->field_email( ':i:' ); ?>
820
  </div>
821
  <div id="mec_reg_field_mec_email">
822
- <?php echo $this->main->field_mec_email( ':i:' ); ?>
823
  </div>
824
  <div id="mec_reg_field_name">
825
- <?php echo $this->main->field_name( ':i:' ); ?>
826
  </div>
827
  <div id="mec_reg_field_tel">
828
- <?php echo $this->main->field_tel( ':i:' ); ?>
829
  </div>
830
  <div id="mec_reg_field_date">
831
- <?php echo $this->main->field_date( ':i:' ); ?>
832
  </div>
833
  <div id="mec_reg_field_file">
834
- <?php echo $this->main->field_file( ':i:' ); ?>
835
  </div>
836
  <div id="mec_reg_field_textarea">
837
- <?php echo $this->main->field_textarea( ':i:' ); ?>
838
  </div>
839
  <div id="mec_reg_field_checkbox">
840
- <?php echo $this->main->field_checkbox( ':i:' ); ?>
841
  </div>
842
  <div id="mec_reg_field_radio">
843
- <?php echo $this->main->field_radio( ':i:' ); ?>
844
  </div>
845
  <div id="mec_reg_field_select">
846
- <?php echo $this->main->field_select( ':i:' ); ?>
847
  </div>
848
  <div id="mec_reg_field_agreement">
849
- <?php echo $this->main->field_agreement( ':i:' ); ?>
850
  </div>
851
  <div id="mec_reg_field_p">
852
- <?php echo $this->main->field_p( ':i:' ); ?>
853
  </div>
854
  <div id="mec_reg_field_option">
855
- <?php echo $this->main->field_option( ':fi:', ':i:' ); ?>
856
  </div>
857
  </div>
858
  </div>
859
  <div class="mec-booking-fixed-fields">
860
- <h5 class="mec-form-subtitle"><?php _e('Fixed Fields', 'modern-events-calendar-lite'); ?></h5>
861
  <div class="mec-container">
862
  <?php do_action('before_mec_bfixed_fields_form'); ?>
863
  <?php do_action('mec_bfixed_fields_form_start'); ?>
@@ -875,101 +875,101 @@ $gateways_options = $this->main->get_gateways_options();
875
 
876
  if( !isset($bfixed_field['type']) ) continue;
877
 
878
- if($bfixed_field['type'] == 'text') echo $this->main->field_text( $key, $bfixed_field, 'bfixed' );
879
- elseif($bfixed_field['type'] == 'name') echo $this->main->field_name( $key, $bfixed_field, 'bfixed' );
880
- elseif($bfixed_field['type'] == 'mec_email') echo $this->main->field_mec_email( $key, $bfixed_field, 'bfixed' );
881
- elseif($bfixed_field['type'] == 'email') echo $this->main->field_email( $key, $bfixed_field, 'bfixed' );
882
- elseif($bfixed_field['type'] == 'date') echo $this->main->field_date( $key, $bfixed_field, 'bfixed' );
883
- elseif($bfixed_field['type'] == 'file') echo $this->main->field_file( $key, $bfixed_field, 'bfixed' );
884
- elseif($bfixed_field['type'] == 'tel') echo $this->main->field_tel( $key, $bfixed_field, 'bfixed' );
885
- elseif($bfixed_field['type'] == 'textarea') echo $this->main->field_textarea( $key, $bfixed_field, 'bfixed' );
886
- elseif($bfixed_field['type'] == 'p') echo $this->main->field_p( $key, $bfixed_field, 'bfixed' );
887
- elseif($bfixed_field['type'] == 'checkbox') echo $this->main->field_checkbox( $key, $bfixed_field, 'bfixed' );
888
- elseif($bfixed_field['type'] == 'radio') echo $this->main->field_radio( $key, $bfixed_field, 'bfixed' );
889
- elseif($bfixed_field['type'] == 'select') echo $this->main->field_select( $key, $bfixed_field, 'bfixed' );
890
- elseif($bfixed_field['type'] == 'agreement') echo $this->main->field_agreement( $key, $bfixed_field, 'bfixed' );
891
  }
892
  ?>
893
  </ul>
894
  <div id="mec_bfixed_form_field_types">
895
- <button type="button" class="button" data-type="text"><?php _e( 'Text', 'modern-events-calendar-lite' ); ?></button>
896
- <button type="button" class="button" data-type="email"><?php _e( 'Email', 'modern-events-calendar-lite' ); ?></button>
897
- <button type="button" class="button" data-type="date"><?php _e( 'Date', 'modern-events-calendar-lite' ); ?></button>
898
- <button type="button" class="button" data-type="tel"><?php _e( 'Tel', 'modern-events-calendar-lite' ); ?></button>
899
- <button type="button" class="button" data-type="textarea"><?php _e( 'Textarea', 'modern-events-calendar-lite' ); ?></button>
900
- <button type="button" class="button" data-type="checkbox"><?php _e( 'Checkboxes', 'modern-events-calendar-lite' ); ?></button>
901
- <button type="button" class="button" data-type="radio"><?php _e( 'Radio Buttons', 'modern-events-calendar-lite' ); ?></button>
902
- <button type="button" class="button" data-type="select"><?php _e( 'Dropdown', 'modern-events-calendar-lite' ); ?></button>
903
- <button type="button" class="button" data-type="agreement"><?php _e( 'Agreement', 'modern-events-calendar-lite' ); ?></button>
904
- <button type="button" class="button" data-type="p"><?php _e( 'Paragraph', 'modern-events-calendar-lite' ); ?></button>
905
  </div>
906
  <?php do_action('mec_bfixed_fields_form_end'); ?>
907
  </div>
908
  <div class="mec-form-row">
909
  <?php wp_nonce_field('mec_options_form'); ?>
910
- <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>
911
  </div>
912
  <?php do_action('after_mec_bfixed_fields_form'); ?>
913
  </div>
914
- <input type="hidden" id="mec_new_bfixed_field_key" value="<?php echo $b + 1; ?>" />
915
  <div class="mec-util-hidden">
916
  <div id="mec_bfixed_field_text">
917
- <?php echo $this->main->field_text(':i:', array(), 'bfixed'); ?>
918
  </div>
919
  <div id="mec_bfixed_field_email">
920
- <?php echo $this->main->field_email(':i:', array(), 'bfixed'); ?>
921
  </div>
922
  <div id="mec_bfixed_field_tel">
923
- <?php echo $this->main->field_tel(':i:', array(), 'bfixed'); ?>
924
  </div>
925
  <div id="mec_bfixed_field_date">
926
- <?php echo $this->main->field_date(':i:', array(), 'bfixed'); ?>
927
  </div>
928
  <div id="mec_bfixed_field_textarea">
929
- <?php echo $this->main->field_textarea(':i:', array(), 'bfixed'); ?>
930
  </div>
931
  <div id="mec_bfixed_field_checkbox">
932
- <?php echo $this->main->field_checkbox(':i:', array(), 'bfixed'); ?>
933
  </div>
934
  <div id="mec_bfixed_field_radio">
935
- <?php echo $this->main->field_radio(':i:', array(), 'bfixed'); ?>
936
  </div>
937
  <div id="mec_bfixed_field_select">
938
- <?php echo $this->main->field_select(':i:', array(), 'bfixed'); ?>
939
  </div>
940
  <div id="mec_bfixed_field_agreement">
941
- <?php echo $this->main->field_agreement(':i:', array(), 'bfixed'); ?>
942
  </div>
943
  <div id="mec_bfixed_field_p">
944
- <?php echo $this->main->field_p(':i:', array(), 'bfixed'); ?>
945
  </div>
946
  <div id="mec_bfixed_field_option">
947
- <?php echo $this->main->field_option(':fi:', ':i:', array(), 'bfixed'); ?>
948
  </div>
949
  </div>
950
  </div>
951
  </div>
952
 
953
  <div id="uploadfield_option" class="mec-options-fields">
954
- <h4 class="mec-form-subtitle"><?php _e('Upload Field', 'modern-events-calendar-lite'); ?></h4>
955
  <div class="mec-form-row">
956
- <label class="mec-col-3" for="mec_booking_form_upload_field_mime_types"><?php _e('Mime types', 'modern-events-calendar-lite'); ?></label>
957
  <div class="mec-col-9">
958
  <input type="text" id="mec_booking_form_upload_field_mime_types" name="mec[settings][upload_field_mime_types]" placeholder="jpeg,jpg,png,pdf" value="<?php echo ((isset($settings['upload_field_mime_types']) and trim($settings['upload_field_mime_types']) != '') ? $settings['upload_field_mime_types'] : ''); ?>" />
959
  </div>
960
- <p class="description"><?php echo __('Split mime types with ",".', 'modern-events-calendar-lite'); ?> <br /> <?php esc_attr_e("Default: jpeg,jpg,png,pdf", 'modern-events-calendar-lite'); ?></p>
961
  </div>
962
  <div class="mec-form-row">
963
- <label class="mec-col-3" for="mec_booking_form_upload_field_max_upload_size"><?php _e('Maximum file size', 'modern-events-calendar-lite'); ?></label>
964
  <div class="mec-col-9">
965
  <input type="number" id="mec_booking_form_upload_field_max_upload_size" name="mec[settings][upload_field_max_upload_size]" value="<?php echo ((isset($settings['upload_field_max_upload_size']) and trim($settings['upload_field_max_upload_size']) != '') ? $settings['upload_field_max_upload_size'] : ''); ?>" />
966
  </div>
967
- <p class="description"><?php echo __('The unit is Megabyte "MB"', 'modern-events-calendar-lite'); ?></p>
968
  </div>
969
  </div>
970
 
971
  <div id="payment_gateways_option" class="mec-options-fields">
972
- <h4 class="mec-form-subtitle"><?php _e('Payment Gateways', 'modern-events-calendar-lite'); ?></h4>
973
  <div class="mec-container">
974
 
975
  <?php if(class_exists('WooCommerce')): ?>
@@ -977,7 +977,7 @@ $gateways_options = $this->main->get_gateways_options();
977
  <div class="mec-col-12">
978
  <label>
979
  <input type="hidden" name="mec[settings][wc_status]" value="0" />
980
- <input id="mec_gateways_wc_status" onchange="jQuery('#mec_payment_options_wrapper, #mec_gateways_wc_status_guide').toggleClass('w-hidden');" value="1" type="checkbox" name="mec[settings][wc_status]" <?php if(isset($settings['wc_status']) and $settings['wc_status']) echo 'checked="checked"'; ?> /> <?php _e('Use WooCommerce as Payment System', 'modern-events-calendar-lite'); ?>
981
  </label>
982
  <p><?php esc_html_e("By enabling this feature, tickets will be added to WooCommerce cart and all payment process would be done by WooCommerce so all of MEC payment related modules will be disabled. To configure your desired gateways and booking fields etc, you need to configure WooCommerce on your website.", 'modern-events-calendar-lite'); ?></p>
983
  <div id="mec_gateways_wc_status_guide" class="<?php if(!isset($settings['wc_status']) or (isset($settings['wc_status']) and !$settings['wc_status'])) echo 'w-hidden'; ?>">
@@ -997,45 +997,45 @@ $gateways_options = $this->main->get_gateways_options();
997
  </ul>
998
 
999
  <div class="mec-form-row" style="margin-top: 40px;">
1000
- <label class="mec-col-3" for="mec_gateways_wc_autoorder_complete"><?php _e('Automatically complete WooCommerce orders', 'modern-events-calendar-lite'); ?></label>
1001
  <div class="mec-col-9">
1002
  <select id="mec_gateways_wc_autoorder_complete" name="mec[settings][wc_autoorder_complete]">
1003
- <option value="1" <?php echo((isset($settings['wc_autoorder_complete']) and $settings['wc_autoorder_complete'] == '1') ? 'selected="selected"' : ''); ?>><?php _e('Enabled', 'modern-events-calendar-lite'); ?></option>
1004
- <option value="0" <?php echo((isset($settings['wc_autoorder_complete']) and $settings['wc_autoorder_complete'] == '0') ? 'selected="selected"' : ''); ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
1005
  </select>
1006
  <span class="mec-tooltip">
1007
  <div class="box left">
1008
- <h5 class="title"><?php _e('Auto WooCommerce orders', 'modern-events-calendar-lite'); ?></h5>
1009
  <div class="content"><p><?php esc_attr_e('It applies only to the orders that are related to MEC.', 'modern-events-calendar-lite'); ?>
1010
- <a href="https://webnus.net/dox/modern-events-calendar/woocommerce/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1011
  </div>
1012
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1013
  </span>
1014
  </div>
1015
  </div>
1016
  <div class="mec-form-row">
1017
- <label class="mec-col-3" for="mec_gateways_wc_after_add"><?php _e('After Add to Cart', 'modern-events-calendar-lite'); ?></label>
1018
  <div class="mec-col-9">
1019
  <select id="mec_gateways_wc_after_add" name="mec[settings][wc_after_add]">
1020
- <option value="cart" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'cart') ? 'selected="selected"' : ''); ?>><?php _e('Redirect to Cart', 'modern-events-calendar-lite'); ?></option>
1021
- <option value="checkout" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'checkout') ? 'selected="selected"' : ''); ?>><?php _e('Redirect to Checkout', 'modern-events-calendar-lite'); ?></option>
1022
- <option value="optional_cart" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'optional_cart') ? 'selected="selected"' : ''); ?>><?php _e('Optional View Cart Button', 'modern-events-calendar-lite'); ?></option>
1023
- <option value="optional_chckout" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'optional_chckout') ? 'selected="selected"' : ''); ?>><?php _e('Optional Checkout Button', 'modern-events-calendar-lite'); ?></option>
1024
  </select>
1025
  </div>
1026
  </div>
1027
  <div class="mec-form-row">
1028
- <label class="mec-col-3" for="mec_gateways_wc_booking_form"><?php _e('MEC Booking Form', 'modern-events-calendar-lite'); ?></label>
1029
  <div class="mec-col-9">
1030
  <select id="mec_gateways_wc_booking_form" name="mec[settings][wc_booking_form]">
1031
- <option value="0" <?php echo((isset($settings['wc_booking_form']) and $settings['wc_booking_form'] == '0') ? 'selected="selected"' : ''); ?>><?php _e('Disabled', 'modern-events-calendar-lite'); ?></option>
1032
- <option value="1" <?php echo((isset($settings['wc_booking_form']) and $settings['wc_booking_form'] == '1') ? 'selected="selected"' : ''); ?>><?php _e('Enabled', 'modern-events-calendar-lite'); ?></option>
1033
  </select>
1034
  <span class="mec-tooltip">
1035
  <div class="box left">
1036
- <h5 class="title"><?php _e('Booking Form', 'modern-events-calendar-lite'); ?></h5>
1037
  <div class="content"><p><?php esc_attr_e('If enabled then users should fill the booking form in MEC and then they will be redirected to checkout.', 'modern-events-calendar-lite'); ?>
1038
- <a href="https://webnus.net/dox/modern-events-calendar/woocommerce/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1039
  </div>
1040
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1041
  </span>
@@ -1060,11 +1060,11 @@ $gateways_options = $this->main->get_gateways_options();
1060
  <div class="mec-col-12">
1061
  <label>
1062
  <input type="hidden" name="mec[gateways][op_status]" value="0" />
1063
- <input id="mec_gateways_op_status" value="1" type="checkbox" name="mec[gateways][op_status]" <?php if(isset($gateways_options['op_status']) and $gateways_options['op_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Organizer Payment Module', 'modern-events-calendar-lite'); ?>
1064
  </label>
1065
  <span class="mec-tooltip">
1066
  <div class="box">
1067
- <h5 class="title"><?php _e('Organizer Payment', 'modern-events-calendar-lite'); ?></h5>
1068
  <div class="content"><p><?php esc_attr_e("By enabling this module, organizers are able to insert their own payment credentials for enabled gateways per event and receive the payments directly!", 'modern-events-calendar-lite'); ?></p></div>
1069
  </div>
1070
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -1075,11 +1075,11 @@ $gateways_options = $this->main->get_gateways_options();
1075
  <div class="mec-col-12">
1076
  <label>
1077
  <input type="hidden" name="mec[gateways][gateways_per_event]" value="0" />
1078
- <input id="mec_gateways_gateways_per_event" value="1" type="checkbox" name="mec[gateways][gateways_per_event]" <?php if(isset($gateways_options['gateways_per_event']) and $gateways_options['gateways_per_event']) echo 'checked="checked"'; ?> /> <?php _e('Disable / Enable payment gateways per event', 'modern-events-calendar-lite'); ?>
1079
  </label>
1080
  <span class="mec-tooltip">
1081
  <div class="box">
1082
- <h5 class="title"><?php _e('Payment Gateways Per Event', 'modern-events-calendar-lite'); ?></h5>
1083
  <div class="content"><p><?php esc_attr_e("By enabling this module, users are able to disable / enable payment gateways per event", 'modern-events-calendar-lite'); ?></p></div>
1084
  </div>
1085
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -1090,11 +1090,11 @@ $gateways_options = $this->main->get_gateways_options();
1090
  <div class="mec-col-12">
1091
  <label>
1092
  <input type="hidden" name="mec[settings][booking_auto_refund]" value="0" />
1093
- <input id="mec_gateways_auto_refund" value="1" type="checkbox" name="mec[settings][booking_auto_refund]" <?php if(isset($settings['booking_auto_refund']) and $settings['booking_auto_refund']) echo 'checked="checked"'; ?> /> <?php _e('Automatically refund the payment', 'modern-events-calendar-lite'); ?>
1094
  </label>
1095
  <span class="mec-tooltip">
1096
  <div class="box">
1097
- <h5 class="title"><?php _e('Auto Refund', 'modern-events-calendar-lite'); ?></h5>
1098
  <div class="content"><p><?php esc_attr_e("Automatically refund the payment when a booking paid by applicable gateways (Stripe) got canceled.", 'modern-events-calendar-lite'); ?></p></div>
1099
  </div>
1100
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -1104,18 +1104,18 @@ $gateways_options = $this->main->get_gateways_options();
1104
  </div>
1105
  <div class="mec-form-row">
1106
  <?php wp_nonce_field('mec_options_form'); ?>
1107
- <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>
1108
  </div>
1109
  </div>
1110
  </div>
1111
 
1112
  <div id="cart_option" class="mec-options-fields">
1113
- <h4 class="mec-form-subtitle"><?php _e('MEC Cart', 'modern-events-calendar-lite'); ?></h4>
1114
  <div class="mec-form-row">
1115
  <div class="mec-col-12">
1116
  <label>
1117
  <input type="hidden" name="mec[settings][mec_cart_status]" value="0" />
1118
- <input id="mec_gateways_mec_cart_status" onchange="jQuery('#mec_gateways_mec_cart_status_guide, #mec_wc_status_mec_cart_error').toggleClass('w-hidden');" value="1" type="checkbox" name="mec[settings][mec_cart_status]" <?php if(isset($settings['mec_cart_status']) and $settings['mec_cart_status']) echo 'checked="checked"'; ?> /> <?php _e('Use MEC Cart System', 'modern-events-calendar-lite'); ?>
1119
  </label>
1120
  <p><?php esc_html_e("If you don't want to use WooCommerce for any reason you can use MEC Cart for adding a simple cart and checkout system to your website.", 'modern-events-calendar-lite'); ?></p>
1121
  <div id="mec_gateways_mec_cart_status_guide" class="<?php if(!isset($settings['mec_cart_status']) or (isset($settings['mec_cart_status']) and !$settings['mec_cart_status'])) echo 'w-hidden'; ?>">
@@ -1130,37 +1130,37 @@ $gateways_options = $this->main->get_gateways_options();
1130
  </ul>
1131
 
1132
  <div class="mec-form-row" style="margin-top: 40px;">
1133
- <label class="mec-col-3" for="mec_settings_cart_page"><?php _e('Cart Page', 'modern-events-calendar-lite'); ?></label>
1134
  <div class="mec-col-9">
1135
  <select id="mec_settings_cart_page" name="mec[settings][cart_page]">
1136
  <option value="">----</option>
1137
  <?php foreach($pages as $page): ?>
1138
- <option <?php echo ((isset($settings['cart_page']) and $settings['cart_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo $page->ID; ?>"><?php echo $page->post_title; ?></option>
1139
  <?php endforeach; ?>
1140
  </select>
1141
  <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[mec-cart]</code>'); ?></p>
1142
  </div>
1143
  </div>
1144
  <div class="mec-form-row">
1145
- <label class="mec-col-3" for="mec_settings_checkout_page"><?php _e('Checkout Page', 'modern-events-calendar-lite'); ?></label>
1146
  <div class="mec-col-9">
1147
  <select id="mec_settings_checkout_page" name="mec[settings][checkout_page]">
1148
  <option value="">----</option>
1149
  <?php foreach($pages as $page): ?>
1150
- <option <?php echo ((isset($settings['checkout_page']) and $settings['checkout_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo $page->ID; ?>"><?php echo $page->post_title; ?></option>
1151
  <?php endforeach; ?>
1152
  </select>
1153
  <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[mec-checkout]</code>'); ?></p>
1154
  </div>
1155
  </div>
1156
  <div class="mec-form-row">
1157
- <label class="mec-col-3" for="mec_settings_cart_after_add"><?php _e('After Add to Cart', 'modern-events-calendar-lite'); ?></label>
1158
  <div class="mec-col-9">
1159
  <select id="mec_settings_cart_after_add" name="mec[settings][cart_after_add]">
1160
- <option value="cart" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'cart') ? 'selected="selected"' : ''); ?>><?php _e('Redirect to Cart', 'modern-events-calendar-lite'); ?></option>
1161
- <option value="checkout" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'checkout') ? 'selected="selected"' : ''); ?>><?php _e('Redirect to Checkout', 'modern-events-calendar-lite'); ?></option>
1162
- <option value="optional_cart" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'optional_cart') ? 'selected="selected"' : ''); ?>><?php _e('Optional View Cart Button', 'modern-events-calendar-lite'); ?></option>
1163
- <option value="optional_chckout" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'optional_chckout') ? 'selected="selected"' : ''); ?>><?php _e('Optional Checkout Button', 'modern-events-calendar-lite'); ?></option>
1164
  </select>
1165
  </div>
1166
  </div>
@@ -1168,7 +1168,7 @@ $gateways_options = $this->main->get_gateways_options();
1168
  <div class="mec-col-12">
1169
  <label>
1170
  <input type="hidden" name="mec[settings][mec_cart_invoice]" value="0" />
1171
- <input id="mec_gateways_mec_cart_invoice" value="1" type="checkbox" name="mec[settings][mec_cart_invoice]" <?php if(isset($settings['mec_cart_invoice']) and $settings['mec_cart_invoice']) echo 'checked="checked"'; ?> /> <?php _e('Enable Cart Invoice', 'modern-events-calendar-lite'); ?>
1172
  </label>
1173
  </div>
1174
  </div>
@@ -1184,7 +1184,7 @@ $gateways_options = $this->main->get_gateways_options();
1184
  <?php if($multilingual): ?>
1185
  <input name="mec_locale" type="hidden" value="<?php echo esc_attr($locale); ?>" />
1186
  <?php endif; ?>
1187
- <button style="display: none;" id="mec_booking_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
1188
  </div>
1189
  </form>
1190
 
@@ -1194,48 +1194,48 @@ $gateways_options = $this->main->get_gateways_options();
1194
  </div>
1195
 
1196
  <div id="wns-be-footer">
1197
- <a id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
1198
  </div>
1199
 
1200
  </div>
1201
 
1202
- <script type="text/javascript">
1203
  jQuery(document).ready(function()
1204
  {
1205
- jQuery(".dpr-save-btn").on('click', function(event)
1206
  {
1207
  event.preventDefault();
1208
- jQuery("#mec_booking_form_button").trigger('click');
1209
  });
1210
  });
1211
 
1212
- jQuery('#mec_gateways_form_container .mec-required').on('change', function()
1213
  {
1214
  var val = jQuery(this).val();
1215
  if(val)
1216
  {
1217
  // Remove Focus Style
1218
- jQuery(this).removeClass('mec-mandatory');
1219
  }
1220
  });
1221
 
1222
- jQuery("#mec_booking_form").on('submit', function(event)
1223
  {
1224
  event.preventDefault();
1225
 
1226
  var validated = true;
1227
  var first_field;
1228
 
1229
- jQuery('#mec_gateways_form_container').find('.mec-required').each(function()
1230
  {
1231
  // Remove Focus Style
1232
- jQuery(this).removeClass('mec-mandatory');
1233
 
1234
  var val = jQuery(this).val();
1235
- if(jQuery(this).is(':visible') && !val)
1236
  {
1237
  // Add Focus Style
1238
- jQuery(this).addClass('mec-mandatory');
1239
 
1240
  validated = false;
1241
  if(!first_field) first_field = this;
@@ -1245,7 +1245,7 @@ jQuery("#mec_booking_form").on('submit', function(event)
1245
  if(!validated && first_field)
1246
  {
1247
  jQuery(first_field).focus();
1248
- jQuery('html, body').animate(
1249
  {
1250
  scrollTop: (jQuery(first_field).offset().top - 200)
1251
  }, 500);
@@ -1254,12 +1254,12 @@ jQuery("#mec_booking_form").on('submit', function(event)
1254
  }
1255
 
1256
  // Add loading Class to the button
1257
- jQuery(".dpr-save-btn").addClass('loading').text("<?php echo esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')); ?>");
1258
- jQuery('<div class="wns-saved-settings"><?php echo esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')); ?></div>').insertBefore('#wns-be-content');
1259
 
1260
- if(jQuery(".mec-purchase-verify").text() != '<?php echo esc_js(esc_attr__('Verified', 'modern-events-calendar-lite')); ?>')
1261
  {
1262
- jQuery(".mec-purchase-verify").text("<?php echo esc_js(esc_attr__('Checking ...', 'modern-events-calendar-lite')); ?>");
1263
  }
1264
 
1265
  var settings = jQuery("#mec_booking_form").serialize();
@@ -1269,19 +1269,19 @@ jQuery("#mec_booking_form").on('submit', function(event)
1269
  url: ajaxurl,
1270
  data: "action=mec_save_settings&"+settings,
1271
  beforeSend: function () {
1272
- jQuery('.wns-be-main').append('<div class="mec-loarder-wrap mec-settings-loader"><div class="mec-loarder"><div></div><div></div><div></div></div></div>');
1273
  },
1274
  success: function(data)
1275
  {
1276
  // Remove the loading Class to the button
1277
  setTimeout(function()
1278
  {
1279
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
1280
- jQuery('.wns-saved-settings').remove();
1281
- jQuery('.mec-loarder-wrap').remove();
1282
- if(jQuery(".mec-purchase-verify").text() != '<?php echo esc_js(esc_attr__('Verified', 'modern-events-calendar-lite')); ?>')
1283
  {
1284
- jQuery(".mec-purchase-verify").text("<?php echo esc_js(esc_attr__('Please Refresh Page', 'modern-events-calendar-lite')); ?>");
1285
  }
1286
  }, 1000);
1287
  },
@@ -1290,11 +1290,11 @@ jQuery("#mec_booking_form").on('submit', function(event)
1290
  // Remove the loading Class to the button
1291
  setTimeout(function()
1292
  {
1293
- jQuery(".dpr-save-btn").removeClass('loading').text("<?php echo esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')); ?>");
1294
- jQuery('.wns-saved-settings').remove();
1295
- jQuery('.mec-loarder-wrap').remove();
1296
  }, 1000);
1297
  }
1298
  });
1299
  });
1300
- </script>
73
  <i class="mec-sl-magnifier"></i>
74
  <input id="mec-search-settings" type="text" placeholder="<?php esc_html_e('Search...','modern-events-calendar-lite'); ?>">
75
  </div>
76
+ <a id="" class="dpr-btn dpr-save-btn"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></a>
77
  </div>
78
 
79
  <div class="wns-be-sidebar">
89
  <form id="mec_booking_form">
90
 
91
  <div id="booking_option" class="mec-options-fields active">
92
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Booking', 'modern-events-calendar-lite'); ?></h4>
93
 
94
  <?php if(!$this->main->getPRO()): ?>
95
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
96
  <?php else: ?>
97
  <div class="mec-form-row">
98
  <label>
99
  <input type="hidden" name="mec[settings][booking_status]" value="0" />
100
+ <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 esc_html_e('Enable booking module', 'modern-events-calendar-lite'); ?>
101
  <p><?php esc_attr_e("After enabling and saving the settings, reloading the page will add 'payment Gateways' to the settings and a new menu item on the Dashboard", 'modern-events-calendar-lite'); ?></p>
102
  </label>
103
  </div>
104
  <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'; ?>">
105
+ <h5 class="title"><?php esc_html_e('Date Options', 'modern-events-calendar-lite'); ?></h5>
106
  <div class="mec-form-row">
107
+ <label class="mec-col-3" for="mec_settings_booking_date_format1"><?php esc_html_e('Date Format', 'modern-events-calendar-lite'); ?></label>
108
  <div class="mec-col-9">
109
  <input type="text" id="mec_settings_booking_date_format1" name="mec[settings][booking_date_format1]" value="<?php echo ((isset($ml_settings['booking_date_format1']) and trim($ml_settings['booking_date_format1']) != '') ? $ml_settings['booking_date_format1'] : 'Y-m-d'); ?>" />
110
  <span class="mec-tooltip">
111
  <div class="box left">
112
+ <h5 class="title"><?php esc_html_e('Date Format', 'modern-events-calendar-lite'); ?></h5>
113
+ <div class="content"><p><?php esc_attr_e("Default is Y-m-d", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
114
  </div>
115
  <i title="" class="dashicons-before dashicons-editor-help"></i>
116
  </span>
117
  </div>
118
  </div>
119
  <div class="mec-form-row">
120
+ <label class="mec-col-3" for="mec_settings_booking_maximum_dates"><?php esc_html_e('Maximum Dates', 'modern-events-calendar-lite'); ?></label>
121
  <div class="mec-col-9">
122
  <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" />
123
  </div>
124
  </div>
125
  <div class="mec-form-row">
126
+ <label class="mec-col-3" for="mec_settings_booking_date_selection"><?php esc_html_e('Date Selection', 'modern-events-calendar-lite'); ?></label>
127
  <div class="mec-col-9">
128
  <select id="mec_settings_booking_date_selection" name="mec[settings][booking_date_selection]">
129
+ <option value="dropdown" <?php echo ((!isset($settings['booking_date_selection']) or (isset($settings['booking_date_selection']) and $settings['booking_date_selection'] == 'dropdown')) ? 'selected="selected"' : ''); ?>><?php esc_html_e('Dropdown', 'modern-events-calendar-lite'); ?></option>
130
+ <option value="calendar" <?php echo ((isset($settings['booking_date_selection']) and $settings['booking_date_selection'] == 'calendar') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Calendar', 'modern-events-calendar-lite'); ?></option>
131
+ <option value="checkboxes" <?php echo ((isset($settings['booking_date_selection']) and $settings['booking_date_selection'] == 'checkboxes') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Checkboxes', 'modern-events-calendar-lite'); ?></option>
132
  </select>
133
  </div>
134
  </div>
135
+ <h5 class="title"><?php esc_html_e('Interval Options', 'modern-events-calendar-lite'); ?></h5>
136
  <div class="mec-form-row">
137
+ <label class="mec-col-3" for="mec_settings_show_booking_form_interval"><?php esc_html_e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></label>
138
  <div class="mec-col-9">
139
  <input type="number" id="mec_settings_show_booking_form_interval" name="mec[settings][show_booking_form_interval]" value="<?php echo ((isset($settings['show_booking_form_interval']) and trim($settings['show_booking_form_interval']) != '0') ? $settings['show_booking_form_interval'] : '0'); ?>" placeholder="<?php esc_attr_e('Minutes (e.g 5)', 'modern-events-calendar-lite'); ?>" />
140
  <span class="mec-tooltip">
141
  <div class="box left">
142
+ <h5 class="title"><?php esc_html_e('Show Booking Form Interval', 'modern-events-calendar-lite'); ?></h5>
143
  <div class="content"><p><?php esc_attr_e("You can show booking form only at certain times before event start. If you set this option to 30 then booking form will open only 30 minutes before starting the event! One day is 1440 minutes.", 'modern-events-calendar-lite'); ?></p></div>
144
  </div>
145
  <i title="" class="dashicons-before dashicons-editor-help"></i>
146
  </span>
147
  </div>
148
  </div>
149
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Booking Cancellation', 'modern-events-calendar-lite'); ?></h5>
150
  <div class="mec-form-row">
151
+ <label class="mec-col-3" for="mec_settings_cancellation_period_from"><?php esc_html_e('Cancellation Period', 'modern-events-calendar-lite'); ?></label>
152
  <div class="mec-col-9">
153
  <div class="cancellation-period-box">
154
  <input type="number" id="mec_settings_cancellation_period_from" name="mec[settings][cancellation_period_from]" value="<?php echo ((isset($settings['cancellation_period_from']) and trim($settings['cancellation_period_from']) != '') ? $settings['cancellation_period_from'] : ''); ?>" placeholder="<?php esc_attr_e('From e.g 48', 'modern-events-calendar-lite'); ?>" />
166
  <?php esc_html_e('Event Start', 'modern-events-calendar-lite'); ?>
167
  <span class="mec-tooltip">
168
  <div class="box left">
169
+ <h5 class="title"><?php esc_html_e('Cancellation Period', 'modern-events-calendar-lite'); ?></h5>
170
  <div class="content"><p><?php esc_attr_e("You can restrict the ability to cancel bookings. Leave empty for cancellation at any time. For example if you insert 48 to 24 hours before event start then bookers are able to cancel their booking between this time and before or after that they're not able to do that.", 'modern-events-calendar-lite'); ?></p></div>
171
  </div>
172
  <i title="" class="dashicons-before dashicons-editor-help"></i>
175
  </div>
176
  </div>
177
  <div class="mec-form-row">
178
+ <label class="mec-col-3" for="mec_settings_booking_cancel_page"><?php esc_html_e('Cancellation Page', 'modern-events-calendar-lite'); ?></label>
179
  <div class="mec-col-9">
180
  <select id="mec_settings_booking_cancel_page" name="mec[settings][booking_cancel_page]">
181
  <option value="">----</option>
182
  <?php foreach($pages as $page): ?>
183
+ <option <?php echo ((isset($settings['booking_cancel_page']) and $settings['booking_cancel_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
184
  <?php endforeach; ?>
185
  </select>
186
  <span class="mec-tooltip">
187
  <div class="box left">
188
+ <h5 class="title"><?php esc_html_e('Cancellation Page', 'modern-events-calendar-lite'); ?></h5>
189
+ <div class="content"><p><?php esc_attr_e("User redirects to this page after booking cancellation. Leave it empty if you want to disable it.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
190
  </div>
191
  <i title="" class="dashicons-before dashicons-editor-help"></i>
192
  </span>
193
  </div>
194
  </div>
195
  <div class="mec-form-row">
196
+ <label class="mec-col-3" for="mec_settings_booking_cancel_page_time"><?php esc_html_e('Cancellation Page Time Interval', 'modern-events-calendar-lite'); ?></label>
197
  <div class="mec-col-9">
198
  <input type="number" id="mec_settings_booking_cancel_page_time" name="mec[settings][booking_cancel_page_time]" value="<?php echo ((isset($settings['booking_cancel_page_time']) and trim($settings['booking_cancel_page_time']) != '0') ? $settings['booking_cancel_page_time'] : '2000'); ?>" placeholder="<?php esc_attr_e('2000 means 2 seconds', 'modern-events-calendar-lite'); ?>" />
199
  <span class="mec-tooltip">
200
  <div class="box left">
201
+ <h5 class="title"><?php esc_html_e('Cancellation Page Time Interval', 'modern-events-calendar-lite'); ?></h5>
202
+ <div class="content"><p><?php esc_attr_e("Waiting time before redirecting to cancellation page. It's in miliseconds so 2000 means 2 seconds.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
203
  </div>
204
  <i title="" class="dashicons-before dashicons-editor-help"></i>
205
  </span>
206
  </div>
207
  </div>
208
+ <h5 class="title"><?php esc_html_e('User Registration', 'modern-events-calendar-lite'); ?></h5>
209
  <div class="mec-form-row">
210
+ <label class="mec-col-3" for="mec_settings_booking_registration"><?php esc_html_e('Registration', 'modern-events-calendar-lite'); ?></label>
211
  <div class="mec-col-9">
212
  <select id="mec_settings_booking_registration" name="mec[settings][booking_registration]" onchange="jQuery('#mec_settings_booking_registration_wrapper').toggleClass('w-hidden');">
213
  <option <?php echo ((isset($settings['booking_registration']) and $settings['booking_registration'] == '1') ? 'selected="selected"' : ''); ?> value="1"><?php echo esc_html__('Enabled', 'modern-events-calendar-lite'); ?></option>
215
  </select>
216
  <span class="mec-tooltip">
217
  <div class="box left">
218
+ <h5 class="title"><?php esc_html_e('Registration', 'modern-events-calendar-lite'); ?></h5>
219
  <div class="content"><p><?php esc_attr_e("If enabled MEC would create a WordPress User for main attendees. It's recommended to keep it enabled.", 'modern-events-calendar-lite'); ?></p></div>
220
  </div>
221
  <i title="" class="dashicons-before dashicons-editor-help"></i>
224
  </div>
225
  <div id="mec_settings_booking_registration_wrapper" class="<?php echo (!isset($settings['booking_registration']) or (isset($settings['booking_registration']) and $settings['booking_registration'])) ? "" : "w-hidden"; ?>">
226
  <div class="mec-form-row">
227
+ <label class="mec-col-3" for="mec_settings_booking_user_role"><?php esc_html_e('User Role', 'modern-events-calendar-lite'); ?></label>
228
  <div class="mec-col-9">
229
  <select id="mec_settings_booking_user_role" name="mec[settings][booking_user_role]">
230
  <option value="">----</option>
231
  <?php foreach($roles as $role => $r): ?>
232
+ <option <?php echo ((isset($settings['booking_user_role']) and $settings['booking_user_role'] == $role) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($role); ?>"><?php echo esc_html($r['name']); ?></option>
233
  <?php endforeach; ?>
234
  </select>
235
  <span class="mec-tooltip">
236
  <div class="box left">
237
+ <h5 class="title"><?php esc_html_e('User Role', 'modern-events-calendar-lite'); ?></h5>
238
+ <div class="content"><p><?php esc_attr_e("MEC creates a user for main attendee after each booking. Default role of the user is subscriber but you can change it if needed.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
239
  </div>
240
  <i title="" class="dashicons-before dashicons-editor-help"></i>
241
  </span>
242
  </div>
243
  </div>
244
  <div class="mec-form-row">
245
+ <label class="mec-col-3" for="mec_settings_booking_userpass"><?php esc_html_e('Username & Password', 'modern-events-calendar-lite'); ?></label>
246
  <div class="mec-col-9">
247
  <select id="mec_settings_booking_userpass" name="mec[settings][booking_userpass]">
248
  <option value="auto" <?php echo ((isset($settings['booking_userpass']) and trim($settings['booking_userpass']) == 'auto') ? 'selected="selected"' : ''); ?>><?php echo esc_html__('Auto', 'modern-events-calendar-lite'); ?></option>
250
  </select>
251
  <span class="mec-tooltip">
252
  <div class="box left">
253
+ <h5 class="title"><?php esc_html_e('Username & Password', 'modern-events-calendar-lite'); ?></h5>
254
  <div class="content"><p><?php esc_attr_e("If you set it to manual option then users can insert a username and password during the booking for registration otherwise MEC use their email and an auto generated password.", 'modern-events-calendar-lite'); ?></p></div>
255
  </div>
256
  <i title="" class="dashicons-before dashicons-editor-help"></i>
259
  </div>
260
  </div>
261
 
262
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Limitation', 'modern-events-calendar-lite'); ?></h5>
263
  <div class="mec-form-row">
264
+ <label class="mec-col-3" for="mec_settings_booking_limit"><?php esc_html_e('Limit', 'modern-events-calendar-lite'); ?></label>
265
  <div class="mec-col-9">
266
  <input type="number" id="mec_settings_booking_limit" name="mec[settings][booking_limit]" value="<?php echo ((isset($settings['booking_limit']) and trim($settings['booking_limit']) != '') ? $settings['booking_limit'] : ''); ?>" placeholder="<?php esc_attr_e('Default is empty', 'modern-events-calendar-lite'); ?>" />
267
  <span class="mec-tooltip">
268
  <div class="box left">
269
+ <h5 class="title"><?php esc_html_e('Booking Limit', 'modern-events-calendar-lite'); ?></h5>
270
  <div class="content"><p><?php esc_attr_e("Total tickets that a user can book. It is useful if you're providing free tickets. Leave it empty for unlimited booking.", 'modern-events-calendar-lite'); ?></p></div>
271
  </div>
272
  <i title="" class="dashicons-before dashicons-editor-help"></i>
274
  </div>
275
  </div>
276
  <div class="mec-form-row">
277
+ <label class="mec-col-3" for="mec_settings_booking_ip_restriction"><?php esc_html_e('IP restriction', 'modern-events-calendar-lite'); ?></label>
278
  <div class="mec-col-9">
279
  <select id="mec_settings_booking_ip_restriction" name="mec[settings][booking_ip_restriction]">
280
  <option value="1" <?php echo ((isset($settings['booking_ip_restriction']) and trim($settings['booking_ip_restriction']) == 1) ? 'selected="selected"' : ''); ?>><?php echo esc_html__('Enabled', 'modern-events-calendar-lite'); ?></option>
282
  </select>
283
  <span class="mec-tooltip">
284
  <div class="box left">
285
+ <h5 class="title"><?php esc_html_e('IP restriction', 'modern-events-calendar-lite'); ?></h5>
286
  <div class="content"><p><?php esc_attr_e("If you set limit for total tickets that users can book, MEC will use IP and email to prevent users to book high tickets. You can disable the IP restriction if you don't need it.", 'modern-events-calendar-lite'); ?></p></div>
287
  </div>
288
  <i title="" class="dashicons-before dashicons-editor-help"></i>
290
  </div>
291
  </div>
292
  <div class="mec-form-row">
293
+ <label class="mec-col-3" for="mec_settings_booking_lock_prefilled"><?php esc_html_e('Lock Pre-filled Fields', 'modern-events-calendar-lite'); ?></label>
294
  <div class="mec-col-9">
295
  <select id="mec_settings_booking_lock_prefilled" name="mec[settings][booking_lock_prefilled]">
296
  <option value="0" <?php echo (isset($settings['booking_lock_prefilled']) and $settings['booking_lock_prefilled'] == '0') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Disabled', 'modern-events-calendar-lite'); ?></option>
299
  </select>
300
  <span class="mec-tooltip">
301
  <div class="box left">
302
+ <h5 class="title"><?php esc_html_e('Lock Pre-filled Fields', 'modern-events-calendar-lite'); ?></h5>
303
+ <div class="content"><p><?php esc_attr_e("When users are logged in, name and email fields will be pre-filled but users can change them. If you enable the lock, then logged in users cannot change the pre-filled fields.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
304
  </div>
305
  <i title="" class="dashicons-before dashicons-editor-help"></i>
306
  </span>
307
  </div>
308
  </div>
309
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Last Few Tickets Flag', 'modern-events-calendar-lite'); ?></h5>
310
  <div class="mec-form-row">
311
+ <label class="mec-col-3" for="mec_settings_booking_last_few_tickets_percentage"><?php esc_html_e('Percentage', 'modern-events-calendar-lite'); ?></label>
312
  <div class="mec-col-9">
313
  <input type="number" id="mec_settings_booking_last_few_tickets_percentage" name="mec[settings][booking_last_few_tickets_percentage]" value="<?php echo ((isset($settings['booking_last_few_tickets_percentage']) and trim($settings['booking_last_few_tickets_percentage']) != '') ? max($settings['booking_last_few_tickets_percentage'], 1) : '15'); ?>" placeholder="<?php esc_attr_e('Default is 15', 'modern-events-calendar-lite'); ?>" min="1" max="100" step="1" />
314
  <span class="mec-tooltip">
315
  <div class="box left">
316
+ <h5 class="title"><?php esc_html_e('Last Few Tickets Percentage', 'modern-events-calendar-lite'); ?></h5>
317
  <div class="content"><p><?php esc_attr_e("We will show a \"Last Few Tickets\" flag on events when remained tickets are less than this percentage.", 'modern-events-calendar-lite'); ?></p></div>
318
  </div>
319
  <i title="" class="dashicons-before dashicons-editor-help"></i>
320
  </span>
321
  </div>
322
  </div>
323
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Thank You Page', 'modern-events-calendar-lite'); ?></h5>
324
  <div class="mec-form-row">
325
+ <label class="mec-col-3" for="mec_settings_booking_thankyou_page"><?php esc_html_e('Thank You Page', 'modern-events-calendar-lite'); ?></label>
326
  <div class="mec-col-9">
327
  <select id="mec_settings_booking_thankyou_page" name="mec[settings][booking_thankyou_page]">
328
  <option value="">----</option>
329
  <?php foreach($pages as $page): ?>
330
+ <option <?php echo ((isset($settings['booking_thankyou_page']) and $settings['booking_thankyou_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
331
  <?php endforeach; ?>
332
  </select>
333
  <span class="mec-tooltip">
334
  <div class="box left">
335
+ <h5 class="title"><?php esc_html_e('Thank You Page', 'modern-events-calendar-lite'); ?></h5>
336
+ <div class="content"><p><?php esc_attr_e("User redirects to this page after booking. Leave it empty if you want to disable it.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
337
  </div>
338
  <i title="" class="dashicons-before dashicons-editor-help"></i>
339
  </span>
340
  </div>
341
  </div>
342
  <div class="mec-form-row">
343
+ <label class="mec-col-3" for="mec_settings_booking_thankyou_page_time"><?php esc_html_e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></label>
344
  <div class="mec-col-9">
345
  <input type="number" id="mec_settings_booking_thankyou_page_time" name="mec[settings][booking_thankyou_page_time]" value="<?php echo ((isset($settings['booking_thankyou_page_time']) and trim($settings['booking_thankyou_page_time']) != '0') ? $settings['booking_thankyou_page_time'] : '2000'); ?>" placeholder="<?php esc_attr_e('2000 mean 2 seconds', 'modern-events-calendar-lite'); ?>" />
346
  <span class="mec-tooltip">
347
  <div class="box left">
348
+ <h5 class="title"><?php esc_html_e('Thank You Page Time Interval', 'modern-events-calendar-lite'); ?></h5>
349
+ <div class="content"><p><?php esc_attr_e("Waiting time before redirecting to thank you page. It's in miliseconds so 2000 means 2 seconds.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
350
  </div>
351
  <i title="" class="dashicons-before dashicons-editor-help"></i>
352
  </span>
353
  </div>
354
  </div>
355
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Transaction ID', 'modern-events-calendar-lite'); ?></h5>
356
  <div class="mec-form-row">
357
+ <label class="mec-col-3" for="mec_settings_booking_tid_generation_method"><?php esc_html_e('Generation Method', 'modern-events-calendar-lite'); ?></label>
358
  <div class="mec-col-9">
359
  <select id="mec_settings_booking_tid_generation_method" name="mec[settings][booking_tid_gen_method]" onchange="jQuery('#mec_settings_booking_tid_ordered_generation').toggleClass('mec-util-hidden');">
360
  <option <?php echo ((isset($settings['booking_tid_gen_method']) and $settings['booking_tid_gen_method'] == 'random') ? 'selected="selected"' : ''); ?> value="random"><?php echo esc_html__('Random', 'modern-events-calendar-lite'); ?></option>
364
  </div>
365
  <div id="mec_settings_booking_tid_ordered_generation" class="<?php echo (!isset($settings['booking_tid_gen_method']) or (isset($settings['booking_tid_gen_method']) and $settings['booking_tid_gen_method'] == 'random')) ? 'mec-util-hidden' : ''; ?>">
366
  <div class="mec-form-row">
367
+ <label class="mec-col-3" for="mec_settings_booking_tid_start_from"><?php esc_html_e('Start From', 'modern-events-calendar-lite'); ?></label>
368
  <div class="mec-col-9">
369
  <input type="number" id="mec_settings_booking_tid_start_from" name="mec[settings][booking_tid_start_from]" value="<?php echo (isset($settings['booking_tid_start_from']) ? $settings['booking_tid_start_from'] : 10000); ?>" min="1" step="1">
370
  </div>
371
  </div>
372
  </div>
373
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Simplify Booking Form', 'modern-events-calendar-lite'); ?></h5>
374
  <div class="mec-form-row">
375
+ <label class="mec-col-3" for="mec_settings_booking_skip_step1"><?php esc_html_e('Skip Step 1', 'modern-events-calendar-lite'); ?></label>
376
  <div class="mec-col-9">
377
  <select id="mec_settings_booking_skip_step1" name="mec[settings][booking_skip_step1]">
378
  <option <?php echo ((isset($settings['booking_skip_step1']) and $settings['booking_skip_step1'] == '0') ? 'selected="selected"' : ''); ?> value="0"><?php echo esc_html__('Disabled', 'modern-events-calendar-lite'); ?></option>
380
  </select>
381
  </div>
382
  </div>
383
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Who can book?', 'modern-events-calendar-lite'); ?></h5>
384
  <div class="mec-form-row">
385
  <label for="mec_settings_booking_wcb_all">
386
  <input type="hidden" name="mec[settings][booking_wcb_all]" value="0" />
387
  <input type="checkbox" name="mec[settings][booking_wcb_all]" id="mec_settings_booking_wcb_all" <?php echo ((!isset($settings['booking_wcb_all']) or (isset($settings['booking_wcb_all']) and $settings['booking_wcb_all'] == '1')) ? 'checked="checked"' : ''); ?> value="1" onchange="jQuery('#mec_settings_booking_booking_wcb_options').toggleClass('mec-util-hidden');" />
388
+ <?php esc_html_e('All Users', 'modern-events-calendar-lite'); ?>
389
  </label>
390
  </div>
391
  <div id="mec_settings_booking_booking_wcb_options" class="<?php echo (!isset($settings['booking_wcb_all']) or (isset($settings['booking_wcb_all']) and $settings['booking_wcb_all'] == '1')) ? 'mec-util-hidden' : ''; ?>" style="margin: 0 0 40px 0; padding: 20px 20px 4px; border: 1px solid #ddd;">
392
  <?php foreach($roles as $role_key => $role): $wcb_value = isset($settings['booking_wcb_'.$role_key]) ? $settings['booking_wcb_'.$role_key] : 1; ?>
393
  <div class="mec-form-row">
394
  <div class="mec-col-12">
395
+ <label for="mec_settings_booking_wcb_<?php echo esc_attr($role_key); ?>">
396
+ <input type="hidden" name="mec[settings][booking_wcb_<?php echo esc_attr($role_key); ?>]" value="0" />
397
+ <input type="checkbox" name="mec[settings][booking_wcb_<?php echo esc_attr($role_key); ?>]" id="mec_settings_booking_wcb_<?php echo esc_attr($role_key); ?>" <?php echo ((!isset($settings['booking_wcb_'.$role_key]) or (isset($settings['booking_wcb_'.$role_key]) and $settings['booking_wcb_'.$role_key] == '1')) ? 'checked="checked"' : ''); ?> value="1" />
398
+ <?php echo esc_html($role['name']); ?>
399
  </label>
400
  </div>
401
  </div>
402
  <?php endforeach; ?>
403
  </div>
404
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Booking Elements', 'modern-events-calendar-lite'); ?></h5>
405
  <div class="mec-form-row">
406
  <div class="mec-col-12">
407
  <label for="mec_settings_booking_first_for_all">
408
  <input type="hidden" name="mec[settings][booking_first_for_all]" value="0" />
409
  <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" />
410
+ <?php esc_html_e('Enable Express Attendees Form', 'modern-events-calendar-lite'); ?>
411
  </label>
412
  <span class="mec-tooltip">
413
  <div class="box">
414
+ <h5 class="title"><?php esc_html_e('Attendees Form', 'modern-events-calendar-lite'); ?></h5>
415
+ <div class="content"><p><?php esc_attr_e("Apply the info from the first attendee to all purchased ticket by that user. Uncheck if you want every ticket to have its own attendee’s info.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
416
  </div>
417
  <i title="" class="dashicons-before dashicons-editor-help"></i>
418
  </span>
425
  <input type="checkbox" name="mec[settings][attendee_counter]" id="mec_settings_attendee_counter"
426
  <?php echo ((isset($settings['attendee_counter']) and $settings['attendee_counter'] == '1') ? 'checked="checked"' : ''); ?>
427
  value="1" />
428
+ <?php esc_html_e('Attendee Counter', 'modern-events-calendar-lite'); ?>
429
  </label>
430
  </div>
431
  </div>
436
  <input type="checkbox" name="mec[settings][booking_invoice]" id="mec_settings_booking_invoice"
437
  <?php echo ((!isset($settings['booking_invoice']) or (isset($settings['booking_invoice']) and $settings['booking_invoice'] == '1')) ? 'checked="checked"' : ''); ?>
438
  value="1" />
439
+ <?php esc_html_e('Enable Invoice', 'modern-events-calendar-lite'); ?>
440
  </label>
441
  </div>
442
  </div>
447
  <input type="checkbox" name="mec[settings][booking_ongoing]" id="mec_settings_booking_ongoing"
448
  <?php echo ((isset($settings['booking_ongoing']) and $settings['booking_ongoing'] == '1') ? 'checked="checked"' : ''); ?>
449
  value="1" />
450
+ <?php esc_html_e('Enable Booking for Ongoing Events', 'modern-events-calendar-lite'); ?>
451
  </label>
452
  </div>
453
  </div>
458
  <input type="checkbox" name="mec[settings][downloadable_file_status]" id="mec_settings_booking_downloadable_file_status"
459
  <?php echo ((isset($settings['downloadable_file_status']) and $settings['downloadable_file_status'] == '1') ? 'checked="checked"' : ''); ?>
460
  value="1" />
461
+ <?php esc_html_e('Enable Downloadable File', 'modern-events-calendar-lite'); ?>
462
  </label>
463
  <span class="mec-tooltip">
464
  <div class="box">
465
+ <h5 class="title"><?php esc_html_e('Downloadable File', 'modern-events-calendar-lite'); ?></h5>
466
+ <div class="content"><p><?php esc_attr_e("By enabling this feature, You can upload a file for each event and bookers are able to download it after booking.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/booking/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
467
  </div>
468
  <i title="" class="dashicons-before dashicons-editor-help"></i>
469
  </span>
476
  <input type="checkbox" name="mec[settings][disable_ticket_times]" id="mec_settings_booking_disable_ticket_times"
477
  <?php echo ((isset($settings['disable_ticket_times']) and $settings['disable_ticket_times'] == '1') ? 'checked="checked"' : ''); ?>
478
  value="1" />
479
+ <?php esc_html_e('Disable Ticket Times', 'modern-events-calendar-lite'); ?>
480
  </label>
481
  </div>
482
  </div>
483
  <?php do_action('add_booking_variables', $settings); ?>
484
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Email verification', 'modern-events-calendar-lite'); ?></h5>
485
  <div class="mec-form-row">
486
  <div class="mec-col-12">
487
  <label for="mec_settings_booking_auto_verify_free">
488
  <input type="hidden" name="mec[settings][booking_auto_verify_free]" value="0" />
489
  <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" />
490
+ <?php esc_html_e('Auto verification for free bookings', 'modern-events-calendar-lite'); ?>
491
  </label>
492
  </div>
493
  </div>
496
  <label for="mec_settings_booking_auto_verify_paid">
497
  <input type="hidden" name="mec[settings][booking_auto_verify_paid]" value="0" />
498
  <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" />
499
+ <?php esc_html_e('Auto verification for paid bookings', 'modern-events-calendar-lite'); ?>
500
  </label>
501
  </div>
502
  </div>
503
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Booking Confirmation', 'modern-events-calendar-lite'); ?></h5>
504
  <div class="mec-form-row">
505
  <div class="mec-col-12">
506
  <label for="mec_settings_booking_auto_confirm_free">
507
  <input type="hidden" name="mec[settings][booking_auto_confirm_free]" value="0" />
508
  <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" />
509
+ <?php esc_html_e('Auto confirmation for free bookings', 'modern-events-calendar-lite'); ?>
510
  </label>
511
  </div>
512
  </div>
515
  <label for="mec_settings_booking_auto_confirm_paid">
516
  <input type="hidden" name="mec[settings][booking_auto_confirm_paid]" value="0" />
517
  <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" />
518
+ <?php esc_html_e('Auto confirmation for paid bookings', 'modern-events-calendar-lite'); ?>
519
  </label>
520
  </div>
521
  </div>
524
  <label for="mec_settings_booking_auto_confirm_send_email">
525
  <input type="hidden" name="mec[settings][booking_auto_confirm_send_email]" value="0" />
526
  <input type="checkbox" name="mec[settings][booking_auto_confirm_send_email]" id="mec_settings_booking_auto_confirm_send_email" <?php echo ((isset($settings['booking_auto_confirm_send_email']) and $settings['booking_auto_confirm_send_email'] == '1') ? 'checked="checked"' : ''); ?> value="1" />
527
+ <?php esc_html_e('Send confirmation email in auto confirmation mode', 'modern-events-calendar-lite'); ?>
528
  </label>
529
  </div>
530
  </div>
538
  <?php do_action('mec_reg_menu_start', $this->main, $this->settings); ?>
539
 
540
  <div id="booking_shortcode" class="mec-options-fields">
541
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Booking Shortcode', 'modern-events-calendar-lite'); ?></h4>
542
 
543
  <?php if(!$this->main->getPRO()): ?>
544
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
545
  <?php else: ?>
546
 
547
  <div class="mec-form-row">
554
  </div>
555
 
556
  <div id="coupon_option" class="mec-options-fields">
557
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Coupons', 'modern-events-calendar-lite'); ?></h4>
558
 
559
  <?php if(!$this->main->getPRO()): ?>
560
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
561
  <?php else: ?>
562
  <div class="mec-form-row">
563
  <label>
564
  <input type="hidden" name="mec[settings][coupons_status]" value="0" />
565
+ <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 esc_html_e('Enable coupons module', 'modern-events-calendar-lite'); ?>
566
  </label>
567
  <p><?php esc_attr_e("After enabling and saving the settings, you should reload the page to see a new menu on the Dashboard > Booking", 'modern-events-calendar-lite'); ?></p>
568
  </div>
572
  </div>
573
 
574
  <div id="taxes_option" class="mec-options-fields">
575
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Taxes / Fees', 'modern-events-calendar-lite'); ?></h4>
576
 
577
  <?php if(!$this->main->getPRO()): ?>
578
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
579
  <?php else: ?>
580
  <div class="mec-form-row">
581
  <label>
582
  <input type="hidden" name="mec[settings][taxes_fees_status]" value="0" />
583
+ <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 esc_html_e('Enable taxes / fees module', 'modern-events-calendar-lite'); ?>
584
  </label>
585
  </div>
586
  <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'; ?>">
587
  <div class="mec-form-row">
588
+ <button class="button" type="button" id="mec_add_fee_button"><?php esc_html_e('Add Fee', 'modern-events-calendar-lite'); ?></button>
589
  </div>
590
  <div class="mec-form-row" id="mec_fees_list">
591
  <?php $i = 0; foreach($fees as $key=>$fee): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
592
+ <div class="mec-box" id="mec_fee_row<?php echo esc_attr($i); ?>">
593
  <div class="mec-form-row">
594
+ <input class="mec-col-12" type="text" name="mec[settings][fees][<?php echo esc_attr($i); ?>][title]" placeholder="<?php esc_attr_e('Fee Title', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($fee['title']) ? $fee['title'] : ''); ?>" />
595
  </div>
596
  <div class="mec-form-row">
597
  <span class="mec-col-4">
598
+ <input type="text" name="mec[settings][fees][<?php echo esc_attr($i); ?>][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($fee['amount']) ? $fee['amount'] : ''); ?>" />
599
  <span class="mec-tooltip">
600
  <div class="box top">
601
+ <h5 class="title"><?php esc_html_e('Amount', 'modern-events-calendar-lite'); ?></h5>
602
+ <div class="content"><p><?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'); ?><a href="https://webnus.net/dox/modern-events-calendar/taxes-or-fees/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
603
  </div>
604
  <i title="" class="dashicons-before dashicons-editor-help"></i>
605
  </span>
606
  </span>
607
  <span class="mec-col-4">
608
+ <select name="mec[settings][fees][<?php echo esc_attr($i); ?>][type]">
609
+ <option value="percent" <?php echo ((isset($fee['type']) and $fee['type'] == 'percent') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Percent', 'modern-events-calendar-lite'); ?></option>
610
+ <option value="amount" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
611
+ <option value="amount_per_date" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_date') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
612
+ <option value="amount_per_booking" <?php echo ((isset($fee['type']) and $fee['type'] == 'amount_per_booking') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
613
  </select>
614
  </span>
615
+ <button class="button" type="button" id="mec_remove_fee_button<?php echo esc_attr($i); ?>" onclick="mec_remove_fee(<?php echo esc_attr($i); ?>);"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
616
  </div>
617
  </div>
618
  <?php endforeach; ?>
619
  </div>
620
+ <input type="hidden" id="mec_new_fee_key" value="<?php echo ($i+1); ?>" />
621
  <div class="mec-util-hidden" id="mec_new_fee_raw">
622
  <div class="mec-box" id="mec_fee_row:i:">
623
  <div class="mec-form-row">
628
  <input type="text" name="mec[settings][fees][:i:][amount]" placeholder="<?php esc_attr_e('Amount', 'modern-events-calendar-lite'); ?>" />
629
  <span class="mec-tooltip">
630
  <div class="box top">
631
+ <h5 class="title"><?php esc_html_e('Amount', 'modern-events-calendar-lite'); ?></h5>
632
+ <div class="content"><p><?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'); ?><a href="https://webnus.net/dox/modern-events-calendar/taxes-or-fees/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
633
  </div>
634
  <i title="" class="dashicons-before dashicons-editor-help"></i>
635
  </span>
636
  </span>
637
  <span class="mec-col-4">
638
  <select name="mec[settings][fees][:i:][type]">
639
+ <option value="percent"><?php esc_html_e('Percent', 'modern-events-calendar-lite'); ?></option>
640
+ <option value="amount"><?php esc_html_e('Amount (Per Ticket)', 'modern-events-calendar-lite'); ?></option>
641
+ <option value="amount_per_date"><?php esc_html_e('Amount (Per Date)', 'modern-events-calendar-lite'); ?></option>
642
+ <option value="amount_per_booking"><?php esc_html_e('Amount (Per Booking)', 'modern-events-calendar-lite'); ?></option>
643
  </select>
644
  </span>
645
+ <button class="button" type="button" id="mec_remove_fee_button:i:" onclick="mec_remove_fee(:i:);"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
646
  </div>
647
  </div>
648
  </div>
649
 
650
  <?php if(!isset($settings['wc_status']) or (isset($settings['wc_status']) and !$settings['wc_status'])): ?>
651
  <div class="mec-form-row">
652
+ <h4><?php echo esc_html__('Disable Fees per Gateways', 'modern-events-calendar-lite'); ?></h4>
653
  <?php foreach($gateways as $gateway): ?>
654
  <div class="mec-form-row">
655
  <span class="mec-col-12">
656
  <label>
657
  <input type="hidden" name="mec[settings][fees_disabled_gateways][<?php echo esc_attr($gateway->id()); ?>]" value="0">
658
  <input type="checkbox" name="mec[settings][fees_disabled_gateways][<?php echo esc_attr($gateway->id()); ?>]" value="1" <?php echo ((isset($settings['fees_disabled_gateways']) and isset($settings['fees_disabled_gateways'][$gateway->id()]) and $settings['fees_disabled_gateways'][$gateway->id()]) ? 'checked="checked"' : ''); ?>>
659
+ <?php echo esc_html($gateway->title()); ?>
660
  </label>
661
  </span>
662
  </div>
668
  </div>
669
 
670
  <div id="ticket_variations_option" class="mec-options-fields">
671
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Ticket Variations & Options', 'modern-events-calendar-lite'); ?></h4>
672
 
673
  <?php if(!$this->main->getPRO()): ?>
674
+ <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">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
675
  <?php else: ?>
676
  <div class="mec-form-row">
677
  <label>
678
  <input type="hidden" name="mec[settings][ticket_variations_status]" value="0" />
679
+ <input onchange="jQuery('#mec_ticket_variations_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][ticket_variations_status]" <?php if(isset($settings['ticket_variations_status']) and $settings['ticket_variations_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable ticket variations module', 'modern-events-calendar-lite'); ?>
680
  </label>
681
  </div>
682
  <div id="mec_ticket_variations_container_toggle" class="<?php if((isset($settings['ticket_variations_status']) and !$settings['ticket_variations_status']) or !isset($settings['ticket_variations_status'])) echo 'mec-util-hidden'; ?>">
683
  <div class="mec-form-row">
684
+ <button class="button" type="button" id="mec_add_ticket_variation_button"><?php esc_html_e('Add Variation / Option', 'modern-events-calendar-lite'); ?></button>
685
  </div>
686
  <div class="mec-form-row" id="mec_ticket_variations_list">
687
  <?php $i = 0; foreach($ticket_variations as $key=>$ticket_variation): if(!is_numeric($key)) continue; $i = max($i, $key); ?>
688
+ <div class="mec-box" id="mec_ticket_variation_row<?php echo esc_attr($i); ?>">
689
  <div class="mec-form-row">
690
+ <input class="mec-col-12" type="text" name="mec[settings][ticket_variations][<?php echo esc_attr($i); ?>][title]" placeholder="<?php esc_attr_e('Title', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket_variation['title']) ? $ticket_variation['title'] : ''); ?>" />
691
  </div>
692
  <div class="mec-form-row">
693
  <span class="mec-col-4">
694
+ <input type="text" name="mec[settings][ticket_variations][<?php echo esc_attr($i); ?>][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket_variation['price']) ? $ticket_variation['price'] : ''); ?>" />
695
  <span class="mec-tooltip">
696
  <div class="box top">
697
+ <h5 class="title"><?php esc_html_e('Price', 'modern-events-calendar-lite'); ?></h5>
698
+ <div class="content"><p><?php esc_attr_e("Option Price", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
699
  </div>
700
  <i title="" class="dashicons-before dashicons-editor-help"></i>
701
  </span>
702
  </span>
703
  <span class="mec-col-4">
704
+ <input type="number" min="0" name="mec[settings][ticket_variations][<?php echo esc_attr($i); ?>][max]" placeholder="<?php esc_attr_e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($ticket_variation['max']) ? $ticket_variation['max'] : ''); ?>" />
705
  <span class="mec-tooltip">
706
  <div class="box top">
707
+ <h5 class="title"><?php esc_html_e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?></h5>
708
+ <div class="content"><p><?php esc_attr_e("Maximum Per Ticket. Leave blank for unlimited.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
709
  </div>
710
  <i title="" class="dashicons-before dashicons-editor-help"></i>
711
  </span>
712
  </span>
713
+ <button class="button" type="button" id="mec_remove_ticket_variation_button<?php echo esc_attr($i); ?>" onclick="mec_remove_ticket_variation(<?php echo esc_attr($i); ?>, 'ticket_variation');"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
714
  </div>
715
  </div>
716
  <?php endforeach; ?>
717
  </div>
718
+ <input type="hidden" id="mec_new_ticket_variation_key" value="<?php echo ($i+1); ?>" />
719
  <div class="mec-util-hidden" id="mec_new_ticket_variation_raw">
720
  <div class="mec-box" id="mec_ticket_variation_row:i:">
721
  <div class="mec-form-row">
726
  <input type="text" name="mec[settings][ticket_variations][:i:][price]" placeholder="<?php esc_attr_e('Price', 'modern-events-calendar-lite'); ?>" />
727
  <span class="mec-tooltip">
728
  <div class="box top">
729
+ <h5 class="title"><?php esc_html_e('Price', 'modern-events-calendar-lite'); ?></h5>
730
+ <div class="content"><p><?php esc_attr_e("Option Price", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
731
  </div>
732
  <i title="" class="dashicons-before dashicons-editor-help"></i>
733
  </span>
736
  <input type="number" min="0" name="mec[settings][ticket_variations][:i:][max]" placeholder="<?php esc_attr_e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?>" value="1" />
737
  <span class="mec-tooltip">
738
  <div class="box top">
739
+ <h5 class="title"><?php esc_html_e('Maximum Per Ticket', 'modern-events-calendar-lite'); ?></h5>
740
+ <div class="content"><p><?php esc_attr_e("Maximum Per Ticket. Leave blank for unlimited.", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/ticket-variations/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
741
  </div>
742
  <i title="" class="dashicons-before dashicons-editor-help"></i>
743
  </span>
744
  </span>
745
+ <button class="button" type="button" id="mec_remove_ticket_variation_button:i:" onclick="mec_remove_ticket_variation(:i:, 'ticket_variation');"><?php esc_html_e('Remove', 'modern-events-calendar-lite'); ?></button>
746
  </div>
747
  </div>
748
  </div>
750
  <div class="mec-form-row">
751
  <label>
752
  <input type="hidden" name="mec[settings][ticket_variations_per_ticket]" value="0" />
753
+ <input value="1" type="checkbox" name="mec[settings][ticket_variations_per_ticket]" <?php if(isset($settings['ticket_variations_per_ticket']) and $settings['ticket_variations_per_ticket']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable variations per ticket', 'modern-events-calendar-lite'); ?>
754
  </label>
755
  </div>
756
  <?php endif; ?>
757
  </div>
758
 
759
  <div id="booking_form_option" class="mec-options-fields">
760
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Booking Form', 'modern-events-calendar-lite'); ?></h4>
761
  <div class="mec-booking-per-attendee-fields">
762
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Per Attendee Fields', 'modern-events-calendar-lite'); ?></h5>
763
  <div class="mec-container">
764
  <?php do_action('before_mec_reg_fields_form'); ?>
765
  <?php do_action('mec_reg_fields_form_start'); ?>
775
  if(!is_numeric($key)) continue;
776
  $i = max( $i, $key );
777
 
778
+ if($reg_field['type'] == 'text') echo MEC_kses::form($this->main->field_text($key, $reg_field));
779
+ elseif($reg_field['type'] == 'name') echo MEC_kses::form($this->main->field_name($key, $reg_field));
780
+ elseif($reg_field['type'] == 'mec_email') echo MEC_kses::form($this->main->field_mec_email($key, $reg_field));
781
+ elseif($reg_field['type'] == 'email') echo MEC_kses::form($this->main->field_email($key, $reg_field));
782
+ elseif($reg_field['type'] == 'date') echo MEC_kses::form($this->main->field_date($key, $reg_field));
783
+ elseif($reg_field['type'] == 'file') echo MEC_kses::form($this->main->field_file($key, $reg_field));
784
+ elseif($reg_field['type'] == 'tel') echo MEC_kses::form($this->main->field_tel($key, $reg_field));
785
+ elseif($reg_field['type'] == 'textarea') echo MEC_kses::form($this->main->field_textarea($key, $reg_field));
786
+ elseif($reg_field['type'] == 'p') echo MEC_kses::form($this->main->field_p($key, $reg_field));
787
+ elseif($reg_field['type'] == 'checkbox') echo MEC_kses::form($this->main->field_checkbox($key, $reg_field));
788
+ elseif($reg_field['type'] == 'radio') echo MEC_kses::form($this->main->field_radio($key, $reg_field));
789
+ elseif($reg_field['type'] == 'select') echo MEC_kses::form($this->main->field_select($key, $reg_field));
790
+ elseif($reg_field['type'] == 'agreement') echo MEC_kses::form($this->main->field_agreement($key, $reg_field));
791
  }
792
  ?>
793
  </ul>
794
  <div id="mec_reg_form_field_types">
795
+ <button type="button" class="button red" data-type="name"><?php esc_html_e( 'MEC Name', 'modern-events-calendar-lite' ); ?></button>
796
+ <button type="button" class="button red" data-type="mec_email"><?php esc_html_e( 'MEC Email', 'modern-events-calendar-lite' ); ?></button>
797
+ <button type="button" class="button" data-type="text"><?php esc_html_e( 'Text', 'modern-events-calendar-lite' ); ?></button>
798
+ <button type="button" class="button" data-type="email"><?php esc_html_e( 'Email', 'modern-events-calendar-lite' ); ?></button>
799
+ <button type="button" class="button" data-type="date"><?php esc_html_e( 'Date', 'modern-events-calendar-lite' ); ?></button>
800
+ <button type="button" class="button" data-type="tel"><?php esc_html_e( 'Tel', 'modern-events-calendar-lite' ); ?></button>
801
+ <button type="button" class="button" data-type="file"><?php esc_html_e( 'File', 'modern-events-calendar-lite' ); ?></button>
802
+ <button type="button" class="button" data-type="textarea"><?php esc_html_e( 'Textarea', 'modern-events-calendar-lite' ); ?></button>
803
+ <button type="button" class="button" data-type="checkbox"><?php esc_html_e( 'Checkboxes', 'modern-events-calendar-lite' ); ?></button>
804
+ <button type="button" class="button" data-type="radio"><?php esc_html_e( 'Radio Buttons', 'modern-events-calendar-lite' ); ?></button>
805
+ <button type="button" class="button" data-type="select"><?php esc_html_e( 'Dropdown', 'modern-events-calendar-lite' ); ?></button>
806
+ <button type="button" class="button" data-type="agreement"><?php esc_html_e( 'Agreement', 'modern-events-calendar-lite' ); ?></button>
807
+ <button type="button" class="button" data-type="p"><?php esc_html_e( 'Paragraph', 'modern-events-calendar-lite' ); ?></button>
808
  </div>
809
  <?php do_action('mec_reg_fields_form_end'); ?>
810
  </div>
811
  <?php do_action('after_mec_reg_fields_form'); ?>
812
  </div>
813
+ <input type="hidden" id="mec_new_reg_field_key" value="<?php echo ($i + 1); ?>" />
814
  <div class="mec-util-hidden">
815
  <div id="mec_reg_field_text">
816
+ <?php echo MEC_kses::form($this->main->field_text(':i:')); ?>
817
  </div>
818
  <div id="mec_reg_field_email">
819
+ <?php echo MEC_kses::form($this->main->field_email(':i:')); ?>
820
  </div>
821
  <div id="mec_reg_field_mec_email">
822
+ <?php echo MEC_kses::form($this->main->field_mec_email(':i:')); ?>
823
  </div>
824
  <div id="mec_reg_field_name">
825
+ <?php echo MEC_kses::form($this->main->field_name(':i:')); ?>
826
  </div>
827
  <div id="mec_reg_field_tel">
828
+ <?php echo MEC_kses::form($this->main->field_tel(':i:')); ?>
829
  </div>
830
  <div id="mec_reg_field_date">
831
+ <?php echo MEC_kses::form($this->main->field_date(':i:')); ?>
832
  </div>
833
  <div id="mec_reg_field_file">
834
+ <?php echo MEC_kses::form($this->main->field_file(':i:')); ?>
835
  </div>
836
  <div id="mec_reg_field_textarea">
837
+ <?php echo MEC_kses::form($this->main->field_textarea(':i:')); ?>
838
  </div>
839
  <div id="mec_reg_field_checkbox">
840
+ <?php echo MEC_kses::form($this->main->field_checkbox(':i:')); ?>
841
  </div>
842
  <div id="mec_reg_field_radio">
843
+ <?php echo MEC_kses::form($this->main->field_radio(':i:')); ?>
844
  </div>
845
  <div id="mec_reg_field_select">
846
+ <?php echo MEC_kses::form($this->main->field_select(':i:')); ?>
847
  </div>
848
  <div id="mec_reg_field_agreement">
849
+ <?php echo MEC_kses::form($this->main->field_agreement(':i:')); ?>
850
  </div>
851
  <div id="mec_reg_field_p">
852
+ <?php echo MEC_kses::form($this->main->field_p(':i:')); ?>
853
  </div>
854
  <div id="mec_reg_field_option">
855
+ <?php echo MEC_kses::form($this->main->field_option(':fi:', ':i:')); ?>
856
  </div>
857
  </div>
858
  </div>
859
  <div class="mec-booking-fixed-fields">
860
+ <h5 class="mec-form-subtitle"><?php esc_html_e('Fixed Fields', 'modern-events-calendar-lite'); ?></h5>
861
  <div class="mec-container">
862
  <?php do_action('before_mec_bfixed_fields_form'); ?>
863
  <?php do_action('mec_bfixed_fields_form_start'); ?>
875
 
876
  if( !isset($bfixed_field['type']) ) continue;
877
 
878
+ if($bfixed_field['type'] == 'text') echo MEC_kses::form($this->main->field_text($key, $bfixed_field, 'bfixed'));
879
+ elseif($bfixed_field['type'] == 'name') echo MEC_kses::form($this->main->field_name($key, $bfixed_field, 'bfixed'));
880
+ elseif($bfixed_field['type'] == 'mec_email') echo MEC_kses::form($this->main->field_mec_email($key, $bfixed_field, 'bfixed'));
881
+ elseif($bfixed_field['type'] == 'email') echo MEC_kses::form($this->main->field_email($key, $bfixed_field, 'bfixed'));
882
+ elseif($bfixed_field['type'] == 'date') echo MEC_kses::form($this->main->field_date($key, $bfixed_field, 'bfixed'));
883
+ elseif($bfixed_field['type'] == 'file') echo MEC_kses::form($this->main->field_file($key, $bfixed_field, 'bfixed'));
884
+ elseif($bfixed_field['type'] == 'tel') echo MEC_kses::form($this->main->field_tel($key, $bfixed_field, 'bfixed'));
885
+ elseif($bfixed_field['type'] == 'textarea') echo MEC_kses::form($this->main->field_textarea($key, $bfixed_field, 'bfixed'));
886
+ elseif($bfixed_field['type'] == 'p') echo MEC_kses::form($this->main->field_p($key, $bfixed_field, 'bfixed'));
887
+ elseif($bfixed_field['type'] == 'checkbox') echo MEC_kses::form($this->main->field_checkbox($key, $bfixed_field, 'bfixed'));
888
+ elseif($bfixed_field['type'] == 'radio') echo MEC_kses::form($this->main->field_radio($key, $bfixed_field, 'bfixed'));
889
+ elseif($bfixed_field['type'] == 'select') echo MEC_kses::form($this->main->field_select($key, $bfixed_field, 'bfixed'));
890
+ elseif($bfixed_field['type'] == 'agreement') echo MEC_kses::form($this->main->field_agreement($key, $bfixed_field, 'bfixed'));
891
  }
892
  ?>
893
  </ul>
894
  <div id="mec_bfixed_form_field_types">
895
+ <button type="button" class="button" data-type="text"><?php esc_html_e( 'Text', 'modern-events-calendar-lite' ); ?></button>
896
+ <button type="button" class="button" data-type="email"><?php esc_html_e( 'Email', 'modern-events-calendar-lite' ); ?></button>
897
+ <button type="button" class="button" data-type="date"><?php esc_html_e( 'Date', 'modern-events-calendar-lite' ); ?></button>
898
+ <button type="button" class="button" data-type="tel"><?php esc_html_e( 'Tel', 'modern-events-calendar-lite' ); ?></button>
899
+ <button type="button" class="button" data-type="textarea"><?php esc_html_e( 'Textarea', 'modern-events-calendar-lite' ); ?></button>
900
+ <button type="button" class="button" data-type="checkbox"><?php esc_html_e( 'Checkboxes', 'modern-events-calendar-lite' ); ?></button>
901
+ <button type="button" class="button" data-type="radio"><?php esc_html_e( 'Radio Buttons', 'modern-events-calendar-lite' ); ?></button>
902
+ <button type="button" class="button" data-type="select"><?php esc_html_e( 'Dropdown', 'modern-events-calendar-lite' ); ?></button>
903
+ <button type="button" class="button" data-type="agreement"><?php esc_html_e( 'Agreement', 'modern-events-calendar-lite' ); ?></button>
904
+ <button type="button" class="button" data-type="p"><?php esc_html_e( 'Paragraph', 'modern-events-calendar-lite' ); ?></button>
905
  </div>
906
  <?php do_action('mec_bfixed_fields_form_end'); ?>
907
  </div>
908
  <div class="mec-form-row">
909
  <?php wp_nonce_field('mec_options_form'); ?>
910
+ <button style="display: none;" id="mec_reg_fields_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e( 'Save Changes', 'modern-events-calendar-lite' ); ?></button>
911
  </div>
912
  <?php do_action('after_mec_bfixed_fields_form'); ?>
913
  </div>
914
+ <input type="hidden" id="mec_new_bfixed_field_key" value="<?php echo ($b + 1); ?>" />
915
  <div class="mec-util-hidden">
916
  <div id="mec_bfixed_field_text">
917
+ <?php echo MEC_kses::form($this->main->field_text(':i:', array(), 'bfixed')); ?>
918
  </div>
919
  <div id="mec_bfixed_field_email">
920
+ <?php echo MEC_kses::form($this->main->field_email(':i:', array(), 'bfixed')); ?>
921
  </div>
922
  <div id="mec_bfixed_field_tel">
923
+ <?php echo MEC_kses::form($this->main->field_tel(':i:', array(), 'bfixed')); ?>
924
  </div>
925
  <div id="mec_bfixed_field_date">
926
+ <?php echo MEC_kses::form($this->main->field_date(':i:', array(), 'bfixed')); ?>
927
  </div>
928
  <div id="mec_bfixed_field_textarea">
929
+ <?php echo MEC_kses::form($this->main->field_textarea(':i:', array(), 'bfixed')); ?>
930
  </div>
931
  <div id="mec_bfixed_field_checkbox">
932
+ <?php echo MEC_kses::form($this->main->field_checkbox(':i:', array(), 'bfixed')); ?>
933
  </div>
934
  <div id="mec_bfixed_field_radio">
935
+ <?php echo MEC_kses::form($this->main->field_radio(':i:', array(), 'bfixed')); ?>
936
  </div>
937
  <div id="mec_bfixed_field_select">
938
+ <?php echo MEC_kses::form($this->main->field_select(':i:', array(), 'bfixed')); ?>
939
  </div>
940
  <div id="mec_bfixed_field_agreement">
941
+ <?php echo MEC_kses::form($this->main->field_agreement(':i:', array(), 'bfixed')); ?>
942
  </div>
943
  <div id="mec_bfixed_field_p">
944
+ <?php echo MEC_kses::form($this->main->field_p(':i:', array(), 'bfixed')); ?>
945
  </div>
946
  <div id="mec_bfixed_field_option">
947
+ <?php echo MEC_kses::form($this->main->field_option(':fi:', ':i:', array(), 'bfixed')); ?>
948
  </div>
949
  </div>
950
  </div>
951
  </div>
952
 
953
  <div id="uploadfield_option" class="mec-options-fields">
954
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Upload Field', 'modern-events-calendar-lite'); ?></h4>
955
  <div class="mec-form-row">
956
+ <label class="mec-col-3" for="mec_booking_form_upload_field_mime_types"><?php esc_html_e('Mime types', 'modern-events-calendar-lite'); ?></label>
957
  <div class="mec-col-9">
958
  <input type="text" id="mec_booking_form_upload_field_mime_types" name="mec[settings][upload_field_mime_types]" placeholder="jpeg,jpg,png,pdf" value="<?php echo ((isset($settings['upload_field_mime_types']) and trim($settings['upload_field_mime_types']) != '') ? $settings['upload_field_mime_types'] : ''); ?>" />
959
  </div>
960
+ <p class="description"><?php echo esc_html__('Split mime types with ",".', 'modern-events-calendar-lite'); ?> <br /> <?php esc_attr_e("Default: jpeg,jpg,png,pdf", 'modern-events-calendar-lite'); ?></p>
961
  </div>
962
  <div class="mec-form-row">
963
+ <label class="mec-col-3" for="mec_booking_form_upload_field_max_upload_size"><?php esc_html_e('Maximum file size', 'modern-events-calendar-lite'); ?></label>
964
  <div class="mec-col-9">
965
  <input type="number" id="mec_booking_form_upload_field_max_upload_size" name="mec[settings][upload_field_max_upload_size]" value="<?php echo ((isset($settings['upload_field_max_upload_size']) and trim($settings['upload_field_max_upload_size']) != '') ? $settings['upload_field_max_upload_size'] : ''); ?>" />
966
  </div>
967
+ <p class="description"><?php echo esc_html__('The unit is Megabyte "MB"', 'modern-events-calendar-lite'); ?></p>
968
  </div>
969
  </div>
970
 
971
  <div id="payment_gateways_option" class="mec-options-fields">
972
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Payment Gateways', 'modern-events-calendar-lite'); ?></h4>
973
  <div class="mec-container">
974
 
975
  <?php if(class_exists('WooCommerce')): ?>
977
  <div class="mec-col-12">
978
  <label>
979
  <input type="hidden" name="mec[settings][wc_status]" value="0" />
980
+ <input id="mec_gateways_wc_status" onchange="jQuery('#mec_payment_options_wrapper, #mec_gateways_wc_status_guide').toggleClass('w-hidden');" value="1" type="checkbox" name="mec[settings][wc_status]" <?php if(isset($settings['wc_status']) and $settings['wc_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Use WooCommerce as Payment System', 'modern-events-calendar-lite'); ?>
981
  </label>
982
  <p><?php esc_html_e("By enabling this feature, tickets will be added to WooCommerce cart and all payment process would be done by WooCommerce so all of MEC payment related modules will be disabled. To configure your desired gateways and booking fields etc, you need to configure WooCommerce on your website.", 'modern-events-calendar-lite'); ?></p>
983
  <div id="mec_gateways_wc_status_guide" class="<?php if(!isset($settings['wc_status']) or (isset($settings['wc_status']) and !$settings['wc_status'])) echo 'w-hidden'; ?>">
997
  </ul>
998
 
999
  <div class="mec-form-row" style="margin-top: 40px;">
1000
+ <label class="mec-col-3" for="mec_gateways_wc_autoorder_complete"><?php esc_html_e('Automatically complete WooCommerce orders', 'modern-events-calendar-lite'); ?></label>
1001
  <div class="mec-col-9">
1002
  <select id="mec_gateways_wc_autoorder_complete" name="mec[settings][wc_autoorder_complete]">
1003
+ <option value="1" <?php echo((isset($settings['wc_autoorder_complete']) and $settings['wc_autoorder_complete'] == '1') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Enabled', 'modern-events-calendar-lite'); ?></option>
1004
+ <option value="0" <?php echo((isset($settings['wc_autoorder_complete']) and $settings['wc_autoorder_complete'] == '0') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Disabled', 'modern-events-calendar-lite'); ?></option>
1005
  </select>
1006
  <span class="mec-tooltip">
1007
  <div class="box left">
1008
+ <h5 class="title"><?php esc_html_e('Auto WooCommerce orders', 'modern-events-calendar-lite'); ?></h5>
1009
  <div class="content"><p><?php esc_attr_e('It applies only to the orders that are related to MEC.', 'modern-events-calendar-lite'); ?>
1010
+ <a href="https://webnus.net/dox/modern-events-calendar/woocommerce/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1011
  </div>
1012
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1013
  </span>
1014
  </div>
1015
  </div>
1016
  <div class="mec-form-row">
1017
+ <label class="mec-col-3" for="mec_gateways_wc_after_add"><?php esc_html_e('After Add to Cart', 'modern-events-calendar-lite'); ?></label>
1018
  <div class="mec-col-9">
1019
  <select id="mec_gateways_wc_after_add" name="mec[settings][wc_after_add]">
1020
+ <option value="cart" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'cart') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Redirect to Cart', 'modern-events-calendar-lite'); ?></option>
1021
+ <option value="checkout" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'checkout') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Redirect to Checkout', 'modern-events-calendar-lite'); ?></option>
1022
+ <option value="optional_cart" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'optional_cart') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Optional View Cart Button', 'modern-events-calendar-lite'); ?></option>
1023
+ <option value="optional_chckout" <?php echo((isset($settings['wc_after_add']) and $settings['wc_after_add'] == 'optional_chckout') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Optional Checkout Button', 'modern-events-calendar-lite'); ?></option>
1024
  </select>
1025
  </div>
1026
  </div>
1027
  <div class="mec-form-row">
1028
+ <label class="mec-col-3" for="mec_gateways_wc_booking_form"><?php esc_html_e('MEC Booking Form', 'modern-events-calendar-lite'); ?></label>
1029
  <div class="mec-col-9">
1030
  <select id="mec_gateways_wc_booking_form" name="mec[settings][wc_booking_form]">
1031
+ <option value="0" <?php echo((isset($settings['wc_booking_form']) and $settings['wc_booking_form'] == '0') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Disabled', 'modern-events-calendar-lite'); ?></option>
1032
+ <option value="1" <?php echo((isset($settings['wc_booking_form']) and $settings['wc_booking_form'] == '1') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Enabled', 'modern-events-calendar-lite'); ?></option>
1033
  </select>
1034
  <span class="mec-tooltip">
1035
  <div class="box left">
1036
+ <h5 class="title"><?php esc_html_e('Booking Form', 'modern-events-calendar-lite'); ?></h5>
1037
  <div class="content"><p><?php esc_attr_e('If enabled then users should fill the booking form in MEC and then they will be redirected to checkout.', 'modern-events-calendar-lite'); ?>
1038
+ <a href="https://webnus.net/dox/modern-events-calendar/woocommerce/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
1039
  </div>
1040
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1041
  </span>
1060
  <div class="mec-col-12">
1061
  <label>
1062
  <input type="hidden" name="mec[gateways][op_status]" value="0" />
1063
+ <input id="mec_gateways_op_status" value="1" type="checkbox" name="mec[gateways][op_status]" <?php if(isset($gateways_options['op_status']) and $gateways_options['op_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Organizer Payment Module', 'modern-events-calendar-lite'); ?>
1064
  </label>
1065
  <span class="mec-tooltip">
1066
  <div class="box">
1067
+ <h5 class="title"><?php esc_html_e('Organizer Payment', 'modern-events-calendar-lite'); ?></h5>
1068
  <div class="content"><p><?php esc_attr_e("By enabling this module, organizers are able to insert their own payment credentials for enabled gateways per event and receive the payments directly!", 'modern-events-calendar-lite'); ?></p></div>
1069
  </div>
1070
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1075
  <div class="mec-col-12">
1076
  <label>
1077
  <input type="hidden" name="mec[gateways][gateways_per_event]" value="0" />
1078
+ <input id="mec_gateways_gateways_per_event" value="1" type="checkbox" name="mec[gateways][gateways_per_event]" <?php if(isset($gateways_options['gateways_per_event']) and $gateways_options['gateways_per_event']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Disable / Enable payment gateways per event', 'modern-events-calendar-lite'); ?>
1079
  </label>
1080
  <span class="mec-tooltip">
1081
  <div class="box">
1082
+ <h5 class="title"><?php esc_html_e('Payment Gateways Per Event', 'modern-events-calendar-lite'); ?></h5>
1083
  <div class="content"><p><?php esc_attr_e("By enabling this module, users are able to disable / enable payment gateways per event", 'modern-events-calendar-lite'); ?></p></div>
1084
  </div>
1085
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1090
  <div class="mec-col-12">
1091
  <label>
1092
  <input type="hidden" name="mec[settings][booking_auto_refund]" value="0" />
1093
+ <input id="mec_gateways_auto_refund" value="1" type="checkbox" name="mec[settings][booking_auto_refund]" <?php if(isset($settings['booking_auto_refund']) and $settings['booking_auto_refund']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Automatically refund the payment', 'modern-events-calendar-lite'); ?>
1094
  </label>
1095
  <span class="mec-tooltip">
1096
  <div class="box">
1097
+ <h5 class="title"><?php esc_html_e('Auto Refund', 'modern-events-calendar-lite'); ?></h5>
1098
  <div class="content"><p><?php esc_attr_e("Automatically refund the payment when a booking paid by applicable gateways (Stripe) got canceled.", 'modern-events-calendar-lite'); ?></p></div>
1099
  </div>
1100
  <i title="" class="dashicons-before dashicons-editor-help"></i>
1104
  </div>
1105
  <div class="mec-form-row">
1106
  <?php wp_nonce_field('mec_options_form'); ?>
1107
+ <button style="display: none;" id="mec_gateways_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></button>
1108
  </div>
1109
  </div>
1110
  </div>
1111
 
1112
  <div id="cart_option" class="mec-options-fields">
1113
+ <h4 class="mec-form-subtitle"><?php esc_html_e('MEC Cart', 'modern-events-calendar-lite'); ?></h4>
1114
  <div class="mec-form-row">
1115
  <div class="mec-col-12">
1116
  <label>
1117
  <input type="hidden" name="mec[settings][mec_cart_status]" value="0" />
1118
+ <input id="mec_gateways_mec_cart_status" onchange="jQuery('#mec_gateways_mec_cart_status_guide, #mec_wc_status_mec_cart_error').toggleClass('w-hidden');" value="1" type="checkbox" name="mec[settings][mec_cart_status]" <?php if(isset($settings['mec_cart_status']) and $settings['mec_cart_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Use MEC Cart System', 'modern-events-calendar-lite'); ?>
1119
  </label>
1120
  <p><?php esc_html_e("If you don't want to use WooCommerce for any reason you can use MEC Cart for adding a simple cart and checkout system to your website.", 'modern-events-calendar-lite'); ?></p>
1121
  <div id="mec_gateways_mec_cart_status_guide" class="<?php if(!isset($settings['mec_cart_status']) or (isset($settings['mec_cart_status']) and !$settings['mec_cart_status'])) echo 'w-hidden'; ?>">
1130
  </ul>
1131
 
1132
  <div class="mec-form-row" style="margin-top: 40px;">
1133
+ <label class="mec-col-3" for="mec_settings_cart_page"><?php esc_html_e('Cart Page', 'modern-events-calendar-lite'); ?></label>
1134
  <div class="mec-col-9">
1135
  <select id="mec_settings_cart_page" name="mec[settings][cart_page]">
1136
  <option value="">----</option>
1137
  <?php foreach($pages as $page): ?>
1138
+ <option <?php echo ((isset($settings['cart_page']) and $settings['cart_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
1139
  <?php endforeach; ?>
1140
  </select>
1141
  <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[mec-cart]</code>'); ?></p>
1142
  </div>
1143
  </div>
1144
  <div class="mec-form-row">
1145
+ <label class="mec-col-3" for="mec_settings_checkout_page"><?php esc_html_e('Checkout Page', 'modern-events-calendar-lite'); ?></label>
1146
  <div class="mec-col-9">
1147
  <select id="mec_settings_checkout_page" name="mec[settings][checkout_page]">
1148
  <option value="">----</option>
1149
  <?php foreach($pages as $page): ?>
1150
+ <option <?php echo ((isset($settings['checkout_page']) and $settings['checkout_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
1151
  <?php endforeach; ?>
1152
  </select>
1153
  <p class="description"><?php echo sprintf(__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[mec-checkout]</code>'); ?></p>
1154
  </div>
1155
  </div>
1156
  <div class="mec-form-row">
1157
+ <label class="mec-col-3" for="mec_settings_cart_after_add"><?php esc_html_e('After Add to Cart', 'modern-events-calendar-lite'); ?></label>
1158
  <div class="mec-col-9">
1159
  <select id="mec_settings_cart_after_add" name="mec[settings][cart_after_add]">
1160
+ <option value="cart" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'cart') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Redirect to Cart', 'modern-events-calendar-lite'); ?></option>
1161
+ <option value="checkout" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'checkout') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Redirect to Checkout', 'modern-events-calendar-lite'); ?></option>
1162
+ <option value="optional_cart" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'optional_cart') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Optional View Cart Button', 'modern-events-calendar-lite'); ?></option>
1163
+ <option value="optional_chckout" <?php echo((isset($settings['cart_after_add']) and $settings['cart_after_add'] == 'optional_chckout') ? 'selected="selected"' : ''); ?>><?php esc_html_e('Optional Checkout Button', 'modern-events-calendar-lite'); ?></option>
1164
  </select>
1165
  </div>
1166
  </div>
1168
  <div class="mec-col-12">
1169
  <label>
1170
  <input type="hidden" name="mec[settings][mec_cart_invoice]" value="0" />
1171
+ <input id="mec_gateways_mec_cart_invoice" value="1" type="checkbox" name="mec[settings][mec_cart_invoice]" <?php if(isset($settings['mec_cart_invoice']) and $settings['mec_cart_invoice']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Cart Invoice', 'modern-events-calendar-lite'); ?>
1172
  </label>
1173
  </div>
1174
  </div>
1184
  <?php if($multilingual): ?>
1185
  <input name="mec_locale" type="hidden" value="<?php echo esc_attr($locale); ?>" />
1186
  <?php endif; ?>
1187
+ <button style="display: none;" id="mec_booking_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></button>
1188
  </div>
1189
  </form>
1190
 
1194
  </div>
1195
 
1196
  <div id="wns-be-footer">
1197
+ <a id="" class="dpr-btn dpr-save-btn"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></a>
1198
  </div>
1199
 
1200
  </div>
1201
 
1202
+ <?php $this->factory->params('footer', '<script type="text/javascript">
1203
  jQuery(document).ready(function()
1204
  {
1205
+ jQuery(".dpr-save-btn").on("click", function(event)
1206
  {
1207
  event.preventDefault();
1208
+ jQuery("#mec_booking_form_button").trigger("click");
1209
  });
1210
  });
1211
 
1212
+ jQuery("#mec_gateways_form_container .mec-required").on("change", function()
1213
  {
1214
  var val = jQuery(this).val();
1215
  if(val)
1216
  {
1217
  // Remove Focus Style
1218
+ jQuery(this).removeClass("mec-mandatory");
1219
  }
1220
  });
1221
 
1222
+ jQuery("#mec_booking_form").on("submit", function(event)
1223
  {
1224
  event.preventDefault();
1225
 
1226
  var validated = true;
1227
  var first_field;
1228
 
1229
+ jQuery("#mec_gateways_form_container").find(".mec-required").each(function()
1230
  {
1231
  // Remove Focus Style
1232
+ jQuery(this).removeClass("mec-mandatory");
1233
 
1234
  var val = jQuery(this).val();
1235
+ if(jQuery(this).is(":visible") && !val)
1236
  {
1237
  // Add Focus Style
1238
+ jQuery(this).addClass("mec-mandatory");
1239
 
1240
  validated = false;
1241
  if(!first_field) first_field = this;
1245
  if(!validated && first_field)
1246
  {
1247
  jQuery(first_field).focus();
1248
+ jQuery("html, body").animate(
1249
  {
1250
  scrollTop: (jQuery(first_field).offset().top - 200)
1251
  }, 500);
1254
  }
1255
 
1256
  // Add loading Class to the button
1257
+ jQuery(".dpr-save-btn").addClass("loading").text("'.esc_js(esc_attr__('Saved', 'modern-events-calendar-lite')).'");
1258
+ jQuery("<div class=\"wns-saved-settings\">'.esc_js(esc_attr__('Settings Saved!', 'modern-events-calendar-lite')).'</div>").insertBefore("#wns-be-content");
1259
 
1260
+ if(jQuery(".mec-purchase-verify").text() != "'.esc_js(esc_attr__('Verified', 'modern-events-calendar-lite')).'")
1261
  {
1262
+ jQuery(".mec-purchase-verify").text("'.esc_js(esc_attr__('Checking ...', 'modern-events-calendar-lite')).'");
1263
  }
1264
 
1265
  var settings = jQuery("#mec_booking_form").serialize();
1269
  url: ajaxurl,
1270
  data: "action=mec_save_settings&"+settings,
1271
  beforeSend: function () {
1272
+ jQuery(".wns-be-main").append("<div class=\"mec-loarder-wrap mec-settings-loader\"><div class=\"mec-loarder\"><div></div><div></div><div></div></div></div>");
1273
  },
1274
  success: function(data)
1275
  {
1276
  // Remove the loading Class to the button
1277
  setTimeout(function()
1278
  {
1279
+ jQuery(".dpr-save-btn").removeClass("loading").text("'.esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')).'");
1280
+ jQuery(".wns-saved-settings").remove();
1281
+ jQuery(".mec-loarder-wrap").remove();
1282
+ if(jQuery(".mec-purchase-verify").text() != "'.esc_js(esc_attr__('Verified', 'modern-events-calendar-lite')).'")
1283
  {
1284
+ jQuery(".mec-purchase-verify").text("'.esc_js(esc_attr__('Please Refresh Page', 'modern-events-calendar-lite')).'");
1285
  }
1286
  }, 1000);
1287
  },
1290
  // Remove the loading Class to the button
1291
  setTimeout(function()
1292
  {
1293
+ jQuery(".dpr-save-btn").removeClass("loading").text("'.esc_js(esc_attr__('Save Changes', 'modern-events-calendar-lite')).'");
1294
+ jQuery(".wns-saved-settings").remove();
1295
+ jQuery(".mec-loarder-wrap").remove();
1296
  }, 1000);
1297
  }
1298
  });
1299
  });
1300
+ </script>');
app/features/mec/dashboard.php CHANGED
@@ -51,70 +51,68 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
51
  <div class="w-col-sm-9">
52
  <h1> <?php echo sprintf(__('Welcome %s', 'modern-events-calendar-lite'), $current_user->user_firstname); ?> </h1>
53
  <div class="w-welcome">
54
- <!-- <p> -->
55
- <?php echo sprintf(__('%s - Most Powerful & Easy to Use Events Management System', 'modern-events-calendar-lite'), '<strong>'.($this->getPRO() ? __('Modern Events Calendar', 'modern-events-calendar-lite') : __('Modern Events Calendar (Lite)', 'modern-events-calendar-lite')).'</strong>'); ?>
56
- <!-- </p> -->
57
  </div>
58
  </div>
59
  <div class="w-col-sm-3">
60
  <?php $styling = $this->get_styling(); $darkadmin_mode = ( isset($styling['dark_mode']) ) ? $styling['dark_mode'] : ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; endif; ?>
61
- <img src="<?php echo $darklogo; ?>" />
62
- <span class="w-theme-version"><?php echo __('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
63
  </div>
64
  </div>
65
  </div>
66
  <div class="welcome-content w-clearfix extra">
67
- <div class="w-row">
68
  <div class="w-col-sm-12">
69
- <?php
70
- echo '<script>
71
- (function(){
72
- var version = parseInt(Math.random()*10000);
73
- var webformKey = "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc_"+version;
74
- var loaderHTML = "<div class=\"fs-webform-loader\" style=\"margin:auto\"> <style type=\"text/css\"> .loader-box{ width:100%; margin:auto; margin-top:50px; text-align:center; } .loader { border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; border: 3px solid #12344D; border-top: 3px solid #B3DFFF; display:block; margin: 25px auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } #loader-text{ vertical-align:middle; text-align:center; color: #333; display: inline-block; vertical-align: middle; margin-top:-20px; height:100%; } </style> <div class=\"loader-box\"> <div class=\"loader\"></div> <div id=\"loader-text\"> </div> </div></div>";
75
- var containerHTML = "<div id=\"fs-webform-container_";
76
- containerHTML += webformKey;
77
- containerHTML += "\" class=\"fs-webform-container fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc\" style=\"display:none;\"></div>";
78
- var scriptTag = document.currentScript || document.getElementById("fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc") || document.getElementById("fswebforms") || document.getElementById("formservjs");
79
- var docHook = scriptTag.parentElement;
80
- var content = document.createElement("div");
81
- scriptTag.id = webformKey;
82
- docHook.appendChild(content);
83
- content.innerHTML = loaderHTML+containerHTML;
84
-
85
- var webformOptions = {
86
- key: "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc",
87
- url: "https://webform.freshsales.io/assets/webforms/8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc/10",
88
- domainURL: "https://webnus.freshsales.io",
89
- format: "js",
90
- version: version,
91
- formVersion: 10
92
- };
93
-
94
- if(window.WebFormQueue){
95
- WebFormQueue.add(webformOptions);
96
- } else {
97
- var script = document.createElement("script");
98
- script.src = "https://assets.freshsales.io/assets/webform-6a8bd10d9118645b79d2d3b3a3112e0901bf1beb.js";
99
- script.onload = function(){
100
- WebFormQueue.add(webformOptions);
101
- };
102
- var webformContainer = document.getElementById("fs-webform-container_"+webformKey);
103
- webformContainer.appendChild(script);
104
- }
105
- })()
106
- </script>';
107
- ?>
108
  </div>
109
  </div>
110
  <?php if(!$this->getPRO()): ?>
111
- <div class="w-row mec-pro-notice">
112
  <div class="w-col-sm-12">
113
  <div class="info-msg">
114
  <p>
115
- <?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 upgrade to the Pro version.", 'modern-events-calendar-lite'), '<strong>'.__('lite', 'modern-events-calendar-lite').'</strong>'); ?>
116
  </p>
117
- <a class="info-msg-link" href="<?php echo $this->get_pro_link(); ?>" target="_blank">
118
  <?php esc_html_e('GO PREMIUM', 'modern-events-calendar-lite'); ?>
119
  </a>
120
  <div class="info-msg-coupon">
@@ -141,15 +139,14 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
141
  </div>
142
  </div>
143
  <?php endif; ?>
144
- <?php echo $this->mec_custom_msg_2('yes', 'yes'); ?>
145
- <?php echo $this->mec_custom_msg('yes', 'yes'); ?>
146
- <?php //echo $this->addons_msg(); ?>
147
  <div class="w-row">
148
  <div class="w-col-sm-12">
149
  <div class="w-box mec-intro-section">
150
  <div class="w-box-content mec-intro-section-welcome">
151
- <h3><?php _e('Getting started with Modern Events Calendar' , 'modern-events-calendar-lite'); ?></h3>
152
- <p><?php _e('In this short video, you can learn how to make an event and put a calendar on your website. Please watch this 2 minutes video to the end.' , 'modern-events-calendar-lite'); ?></p>
153
  </div>
154
  <div class="w-box-content mec-intro-section-ifarme">
155
  <iframe width="784" height="441" src="https://www.youtube.com/embed/FV_X341oyiw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
@@ -165,13 +162,13 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
165
  <div class="w-col-sm-12">
166
  <div class="w-box mec-activation">
167
  <div class="w-box-head">
168
- <?php _e('License Activation', 'modern-events-calendar-lite'); ?>
169
  </div>
170
  <?php if (current_user_can( 'administrator' )): ?>
171
  <div class="w-box-content">
172
  <div class="box-addons-activation">
173
  <?php $mec_options = get_option('mec_options'); ?>
174
- <div class="box-addon-activation-toggle-head"><i class="mec-sl-plus"></i><span><?php _e('Activate Addons', 'modern-events-calendar-lite'); ?></span></div>
175
  <div class="box-addon-activation-toggle-content">
176
  <?php do_action('addons_activation'); ?>
177
  </div>
@@ -189,7 +186,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
189
  <div class="w-col-sm-12">
190
  <div class="w-box mec-activation">
191
  <div class="w-box-head">
192
- <?php _e('License Activation', 'modern-events-calendar-lite'); ?>
193
  </div>
194
  <?php
195
  if (current_user_can( 'administrator' )):
@@ -226,7 +223,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
226
 
227
  <div class="box-addons-activation">
228
  <?php $mec_options = get_option('mec_options'); ?>
229
- <div class="box-addon-activation-toggle-head"><i class="mec-sl-plus"></i><span><?php _e('Activate Addons', 'modern-events-calendar-lite'); ?></span></div>
230
  <div class="box-addon-activation-toggle-content">
231
  <?php do_action('addons_activation'); ?>
232
  </div>
@@ -247,28 +244,28 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
247
  <div class="w-col-sm-3">
248
  <div class="w-box doc">
249
  <div class="w-box-child mec-count-child">
250
- <p><?php echo '<p class="mec_dash_count">'.$user_post_count.'</p> '.__('Events', 'modern-events-calendar-lite'); ?></p>
251
  </div>
252
  </div>
253
  </div>
254
  <div class="w-col-sm-3">
255
  <div class="w-box doc">
256
  <div class="w-box-child mec-count-child">
257
- <p><?php echo '<p class="mec_dash_count">'.$user_post_count_c.'</p> '.__('Shortcodes', 'modern-events-calendar-lite'); ?></p>
258
  </div>
259
  </div>
260
  </div>
261
  <div class="w-col-sm-3">
262
  <div class="w-box doc">
263
  <div class="w-box-child mec-count-child">
264
- <p><?php echo '<p class="mec_dash_count">'.$user_location_count_l.'</p> '.__('Locations', 'modern-events-calendar-lite'); ?></p>
265
  </div>
266
  </div>
267
  </div>
268
  <div class="w-col-sm-3">
269
  <div class="w-box doc">
270
  <div class="w-box-child mec-count-child">
271
- <p><?php echo '<p class="mec_dash_count">'.$user_organizer_count_l.'</p> '. __('Organizers', 'modern-events-calendar-lite'); ?></p>
272
  </div>
273
  </div>
274
  </div>
@@ -276,15 +273,15 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
276
  </div>
277
  <?php if($box_stats): ?>
278
  <div class="w-row">
279
- <div class="w-col-sm-<?php echo $booking_status ? 6 : 12; ?>">
280
  <div class="w-box upcoming-events">
281
  <div class="w-box-head">
282
- <?php _e('Upcoming Events', 'modern-events-calendar-lite'); ?>
283
  </div>
284
  <div class="w-box-content">
285
  <?php
286
  $render = $this->getRender();
287
- echo $render->skin('list', array
288
  (
289
  'sk-options'=>array('list'=>array
290
  (
@@ -292,9 +289,10 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
292
  'start_date_type'=>'today',
293
  'load_more_button'=>'0',
294
  'limit'=>'6',
295
- 'month_divider'=>'0'
 
296
  ))
297
- ));
298
  ?>
299
  </div>
300
  </div>
51
  <div class="w-col-sm-9">
52
  <h1> <?php echo sprintf(__('Welcome %s', 'modern-events-calendar-lite'), $current_user->user_firstname); ?> </h1>
53
  <div class="w-welcome">
54
+ <?php echo sprintf(__('%s - Most Powerful & Easy to Use Events Management System', 'modern-events-calendar-lite'), '<strong>'.($this->getPRO() ? esc_html__('Modern Events Calendar', 'modern-events-calendar-lite') : esc_html__('Modern Events Calendar (Lite)', 'modern-events-calendar-lite')).'</strong>'); ?>
 
 
55
  </div>
56
  </div>
57
  <div class="w-col-sm-3">
58
  <?php $styling = $this->get_styling(); $darkadmin_mode = ( isset($styling['dark_mode']) ) ? $styling['dark_mode'] : ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; endif; ?>
59
+ <img src="<?php echo esc_url($darklogo); ?>" />
60
+ <span class="w-theme-version"><?php echo esc_html__('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
61
  </div>
62
  </div>
63
  </div>
64
  <div class="welcome-content w-clearfix extra">
65
+ <div class="w-row" style="margin-bottom: 30px;">
66
  <div class="w-col-sm-12">
67
+ <script>
68
+ (function()
69
+ {
70
+ var version = parseInt(Math.random()*10000);
71
+ var webformKey = "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc_"+version;
72
+ var loaderHTML = '<div class="fs-webform-loader" style="margin:auto"> <style type="text/css"> .loader-box{ width:100%; margin:auto; margin-top:50px; text-align:center; } .loader { border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; border: 3px solid #12344D; border-top: 3px solid #B3DFFF; display:block; margin: 25px auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } #loader-text{ vertical-align:middle; text-align:center; color: #333; display: inline-block; vertical-align: middle; margin-top:-20px; height:100%; } </style> <div class="loader-box"> <div class="loader"></div> <div id="loader-text"> </div> </div></div>';
73
+ var containerHTML = '<div id="fs-webform-container_'+webformKey+'" class="fs-webform-container fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc" style="display:none;"></div>';
74
+ var scriptTag = document.currentScript || document.getElementById("fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc") || document.getElementById("fswebforms") || document.getElementById("formservjs");
75
+ var docHook = scriptTag.parentElement;
76
+ var content = document.createElement("div");
77
+ scriptTag.id = webformKey;
78
+ docHook.appendChild(content);
79
+ content.innerHTML = loaderHTML+containerHTML;
80
+
81
+ var webformOptions = {
82
+ key: "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc",
83
+ url: "https://webform.freshsales.io/assets/webforms/8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc/10",
84
+ domainURL: "https://webnus.freshsales.io",
85
+ format: "js",
86
+ version: version,
87
+ formVersion: 10
88
+ };
89
+
90
+ if(window.WebFormQueue)
91
+ {
92
+ WebFormQueue.add(webformOptions);
93
+ }
94
+ else
95
+ {
96
+ var script = document.createElement("script");
97
+ script.src = "https://assets.freshsales.io/assets/webform-6a8bd10d9118645b79d2d3b3a3112e0901bf1beb.js";
98
+ script.onload = function(){
99
+ WebFormQueue.add(webformOptions);
100
+ };
101
+ var webformContainer = document.getElementById("fs-webform-container_"+webformKey);
102
+ webformContainer.appendChild(script);
103
+ }
104
+ })()
105
+ </script>
106
  </div>
107
  </div>
108
  <?php if(!$this->getPRO()): ?>
109
+ <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
110
  <div class="w-col-sm-12">
111
  <div class="info-msg">
112
  <p>
113
+ <?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 upgrade to the Pro version.", 'modern-events-calendar-lite'), '<strong>'.esc_html__('lite', 'modern-events-calendar-lite').'</strong>'); ?>
114
  </p>
115
+ <a class="info-msg-link" href="<?php echo esc_url($this->get_pro_link()); ?>" target="_blank">
116
  <?php esc_html_e('GO PREMIUM', 'modern-events-calendar-lite'); ?>
117
  </a>
118
  <div class="info-msg-coupon">
139
  </div>
140
  </div>
141
  <?php endif; ?>
142
+ <?php echo MEC_kses::full($this->mec_custom_msg_2('yes', 'yes')); ?>
143
+ <?php echo MEC_kses::full($this->mec_custom_msg('yes', 'yes')); ?>
 
144
  <div class="w-row">
145
  <div class="w-col-sm-12">
146
  <div class="w-box mec-intro-section">
147
  <div class="w-box-content mec-intro-section-welcome">
148
+ <h3><?php esc_html_e('Getting started with Modern Events Calendar' , 'modern-events-calendar-lite'); ?></h3>
149
+ <p><?php esc_html_e('In this short video, you can learn how to make an event and put a calendar on your website. Please watch this 2 minutes video to the end.' , 'modern-events-calendar-lite'); ?></p>
150
  </div>
151
  <div class="w-box-content mec-intro-section-ifarme">
152
  <iframe width="784" height="441" src="https://www.youtube.com/embed/FV_X341oyiw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
162
  <div class="w-col-sm-12">
163
  <div class="w-box mec-activation">
164
  <div class="w-box-head">
165
+ <?php esc_html_e('License Activation', 'modern-events-calendar-lite'); ?>
166
  </div>
167
  <?php if (current_user_can( 'administrator' )): ?>
168
  <div class="w-box-content">
169
  <div class="box-addons-activation">
170
  <?php $mec_options = get_option('mec_options'); ?>
171
+ <div class="box-addon-activation-toggle-head"><i class="mec-sl-plus"></i><span><?php esc_html_e('Activate Addons', 'modern-events-calendar-lite'); ?></span></div>
172
  <div class="box-addon-activation-toggle-content">
173
  <?php do_action('addons_activation'); ?>
174
  </div>
186
  <div class="w-col-sm-12">
187
  <div class="w-box mec-activation">
188
  <div class="w-box-head">
189
+ <?php esc_html_e('License Activation', 'modern-events-calendar-lite'); ?>
190
  </div>
191
  <?php
192
  if (current_user_can( 'administrator' )):
223
 
224
  <div class="box-addons-activation">
225
  <?php $mec_options = get_option('mec_options'); ?>
226
+ <div class="box-addon-activation-toggle-head"><i class="mec-sl-plus"></i><span><?php esc_html_e('Activate Addons', 'modern-events-calendar-lite'); ?></span></div>
227
  <div class="box-addon-activation-toggle-content">
228
  <?php do_action('addons_activation'); ?>
229
  </div>
244
  <div class="w-col-sm-3">
245
  <div class="w-box doc">
246
  <div class="w-box-child mec-count-child">
247
+ <p><?php echo '<p class="mec_dash_count">'.$user_post_count.'</p> '.esc_html__('Events', 'modern-events-calendar-lite'); ?></p>
248
  </div>
249
  </div>
250
  </div>
251
  <div class="w-col-sm-3">
252
  <div class="w-box doc">
253
  <div class="w-box-child mec-count-child">
254
+ <p><?php echo '<p class="mec_dash_count">'.$user_post_count_c.'</p> '.esc_html__('Shortcodes', 'modern-events-calendar-lite'); ?></p>
255
  </div>
256
  </div>
257
  </div>
258
  <div class="w-col-sm-3">
259
  <div class="w-box doc">
260
  <div class="w-box-child mec-count-child">
261
+ <p><?php echo '<p class="mec_dash_count">'.$user_location_count_l.'</p> '.esc_html__('Locations', 'modern-events-calendar-lite'); ?></p>
262
  </div>
263
  </div>
264
  </div>
265
  <div class="w-col-sm-3">
266
  <div class="w-box doc">
267
  <div class="w-box-child mec-count-child">
268
+ <p><?php echo '<p class="mec_dash_count">'.$user_organizer_count_l.'</p> '. esc_html__('Organizers', 'modern-events-calendar-lite'); ?></p>
269
  </div>
270
  </div>
271
  </div>
273
  </div>
274
  <?php if($box_stats): ?>
275
  <div class="w-row">
276
+ <div class="w-col-sm-<?php echo ($booking_status ? 6 : 12); ?>">
277
  <div class="w-box upcoming-events">
278
  <div class="w-box-head">
279
+ <?php esc_html_e('Upcoming Events', 'modern-events-calendar-lite'); ?>
280
  </div>
281
  <div class="w-box-content">
282
  <?php
283
  $render = $this->getRender();
284
+ echo MEC_kses::full($render->skin('list', array
285
  (
286
  'sk-options'=>array('list'=>array
287
  (
289
  'start_date_type'=>'today',
290
  'load_more_button'=>'0',
291
  'limit'=>'6',
292
+ 'month_divider'=>'0',
293
+ 'ignore_js'=>true
294
  ))
295
+ )));
296
  ?>
297
  </div>
298
  </div>
app/features/mec/dyncss.php CHANGED
@@ -144,14 +144,14 @@ if($mec_h_fontfamily_arr): ?>
144
  /* == Custom Fonts For H Tag
145
  ---------------- */
146
  .mec-hourly-schedule-speaker-name, .mec-events-meta-group-countdown .countdown-w span, .mec-single-event .mec-event-meta dt, .mec-hourly-schedule-speaker-job-title, .post-type-archive-mec-events h1, .mec-ticket-available-spots .mec-event-ticket-name, .tax-mec_category h1, .mec-wrap h1, .mec-wrap h2, .mec-wrap h3, .mec-wrap h4, .mec-wrap h5, .mec-wrap h6,.entry-content .mec-wrap h1, .entry-content .mec-wrap h2, .entry-content .mec-wrap h3,.entry-content .mec-wrap h4, .entry-content .mec-wrap h5, .entry-content .mec-wrap h6
147
- { font-family: '<?php echo $mec_h_fontfamily_arr[0]; ?>', Helvetica, Arial, sans-serif;}
148
  <?php endif;
149
 
150
  // render paragraph font familty
151
  if($mec_p_fontfamily_arr): ?>
152
  /* == Custom Fonts For P Tag
153
  ---------------- */
154
- .mec-single-event .mec-event-meta .mec-events-event-cost, .mec-event-data-fields .mec-event-data-field-item .mec-event-data-field-value, .mec-event-data-fields .mec-event-data-field-item .mec-event-data-field-name, .mec-wrap .info-msg div, .mec-wrap .mec-error div, .mec-wrap .mec-success div, .mec-wrap .warning-msg div, .mec-breadcrumbs .mec-current, .mec-events-meta-group-tags, .mec-single-event .mec-events-meta-group-booking .mec-event-ticket-available, .mec-single-modern .mec-single-event-bar>div dd, .mec-single-event .mec-event-meta dd, .mec-single-event .mec-event-meta dd a, .mec-next-occ-booking span, .mec-hourly-schedule-speaker-description, .mec-single-event .mec-speakers-details ul li .mec-speaker-job-title, .mec-single-event .mec-speakers-details ul li .mec-speaker-name, .mec-event-data-field-items, .mec-load-more-button, .mec-events-meta-group-tags a, .mec-events-button, .mec-wrap abbr, .mec-event-schedule-content dl dt, .mec-breadcrumbs a, .mec-breadcrumbs span .mec-event-content p, .mec-wrap p { font-family: '<?php echo $mec_p_fontfamily_arr[0]; ?>',sans-serif; font-weight:300;}
155
  <?php endif;
156
 
157
  // render colorskin
@@ -159,67 +159,67 @@ if($color && $color != '#40d9f1'): ?>
159
  /* == TextColors
160
  ---------------- */
161
  .mec-event-grid-minimal .mec-modal-booking-button:hover, .mec-events-timeline-wrap .mec-organizer-item a, .mec-events-timeline-wrap .mec-organizer-item:after, .mec-events-timeline-wrap .mec-shortcode-organizers i, .mec-timeline-event .mec-modal-booking-button, .mec-wrap .mec-map-lightbox-wp.mec-event-list-classic .mec-event-date, .mec-timetable-t2-col .mec-modal-booking-button:hover, .mec-event-container-classic .mec-modal-booking-button:hover, .mec-calendar-events-side .mec-modal-booking-button:hover, .mec-event-grid-yearly .mec-modal-booking-button, .mec-events-agenda .mec-modal-booking-button, .mec-event-grid-simple .mec-modal-booking-button, .mec-event-list-minimal .mec-modal-booking-button:hover, .mec-timeline-month-divider, .mec-wrap.colorskin-custom .mec-totalcal-box .mec-totalcal-view span:hover,.mec-wrap.colorskin-custom .mec-calendar.mec-event-calendar-classic .mec-selected-day,.mec-wrap.colorskin-custom .mec-color, .mec-wrap.colorskin-custom .mec-event-sharing-wrap .mec-event-sharing > li:hover a, .mec-wrap.colorskin-custom .mec-color-hover:hover, .mec-wrap.colorskin-custom .mec-color-before *:before ,.mec-wrap.colorskin-custom .mec-widget .mec-event-grid-classic.owl-carousel .owl-nav i,.mec-wrap.colorskin-custom .mec-event-list-classic a.magicmore:hover,.mec-wrap.colorskin-custom .mec-event-grid-simple:hover .mec-event-title,.mec-wrap.colorskin-custom .mec-single-event .mec-event-meta dd.mec-events-event-categories:before,.mec-wrap.colorskin-custom .mec-single-event-date:before,.mec-wrap.colorskin-custom .mec-single-event-time:before,.mec-wrap.colorskin-custom .mec-events-meta-group.mec-events-meta-group-venue:before,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-previous-month i,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-next-month:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-previous-month:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-next-month:hover,.mec-wrap.colorskin-custom .mec-calendar.mec-event-calendar-classic dt.mec-selected-day:hover,.mec-wrap.colorskin-custom .mec-infowindow-wp h5 a:hover, .colorskin-custom .mec-events-meta-group-countdown .mec-end-counts h3,.mec-calendar .mec-calendar-side .mec-next-month i,.mec-wrap .mec-totalcal-box i,.mec-calendar .mec-event-article .mec-event-title a:hover,.mec-attendees-list-details .mec-attendee-profile-link a:hover,.mec-wrap.colorskin-custom .mec-next-event-details li i, .mec-next-event-details i:before, .mec-marker-infowindow-wp .mec-marker-infowindow-count, .mec-next-event-details a,.mec-wrap.colorskin-custom .mec-events-masonry-cats a.mec-masonry-cat-selected,.lity .mec-color,.lity .mec-color-before :before,.lity .mec-color-hover:hover,.lity .mec-wrap .mec-color,.lity .mec-wrap .mec-color-before :before,.lity .mec-wrap .mec-color-hover:hover,.leaflet-popup-content .mec-color,.leaflet-popup-content .mec-color-before :before,.leaflet-popup-content .mec-color-hover:hover,.leaflet-popup-content .mec-wrap .mec-color,.leaflet-popup-content .mec-wrap .mec-color-before :before,.leaflet-popup-content .mec-wrap .mec-color-hover:hover, .mec-calendar.mec-calendar-daily .mec-calendar-d-table .mec-daily-view-day.mec-daily-view-day-active.mec-color, .mec-map-boxshow div .mec-map-view-event-detail.mec-event-detail i,.mec-map-boxshow div .mec-map-view-event-detail.mec-event-detail:hover,.mec-map-boxshow .mec-color,.mec-map-boxshow .mec-color-before :before,.mec-map-boxshow .mec-color-hover:hover,.mec-map-boxshow .mec-wrap .mec-color,.mec-map-boxshow .mec-wrap .mec-color-before :before,.mec-map-boxshow .mec-wrap .mec-color-hover:hover, .mec-choosen-time-message, .mec-booking-calendar-month-navigation .mec-next-month:hover, .mec-booking-calendar-month-navigation .mec-previous-month:hover, .mec-yearly-view-wrap .mec-agenda-event-title a:hover, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-next-year i, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-previous-year i, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-next-year:hover, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-previous-year:hover, .mec-av-spot .mec-av-spot-head .mec-av-spot-box span, .mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-previous-month:hover .mec-load-month-link, .mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-next-month:hover .mec-load-month-link, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-previous-year:hover .mec-load-month-link, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-next-year:hover .mec-load-month-link, .mec-skin-list-events-container .mec-data-fields-tooltip .mec-data-fields-tooltip-box ul .mec-event-data-field-item a, .mec-booking-shortcode .mec-event-ticket-name, .mec-booking-shortcode .mec-event-ticket-price, .mec-booking-shortcode .mec-ticket-variation-name, .mec-booking-shortcode .mec-ticket-variation-price, .mec-booking-shortcode label, .mec-booking-shortcode .nice-select, .mec-booking-shortcode input, .mec-booking-shortcode span.mec-book-price-detail-description, .mec-booking-shortcode .mec-ticket-name, .mec-booking-shortcode label.wn-checkbox-label, .mec-wrap.mec-cart table tr td a
162
- {color: <?php echo $color; ?>}
163
 
164
  /* == Backgrounds
165
  ----------------- */
166
  .mec-skin-carousel-container .mec-event-footer-carousel-type3 .mec-modal-booking-button:hover, .mec-wrap.colorskin-custom .mec-event-sharing .mec-event-share:hover .event-sharing-icon,.mec-wrap.colorskin-custom .mec-event-grid-clean .mec-event-date,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing > li:hover a i,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing .mec-event-share:hover .mec-event-sharing-icon,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing li:hover a i,.mec-wrap.colorskin-custom .mec-calendar:not(.mec-event-calendar-classic) .mec-selected-day,.mec-wrap.colorskin-custom .mec-calendar .mec-selected-day:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-row dt.mec-has-event:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-has-event:after, .mec-wrap.colorskin-custom .mec-bg-color, .mec-wrap.colorskin-custom .mec-bg-color-hover:hover, .colorskin-custom .mec-event-sharing-wrap:hover > li, .mec-wrap.colorskin-custom .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.mec-wrap .flip-clock-wrapper ul li a div div.inn,.mec-wrap .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.event-carousel-type1-head .mec-event-date-carousel,.mec-event-countdown-style3 .mec-event-date,#wrap .mec-wrap article.mec-event-countdown-style1,.mec-event-countdown-style1 .mec-event-countdown-part3 a.mec-event-button,.mec-wrap .mec-event-countdown-style2,.mec-map-get-direction-btn-cnt input[type="submit"],.mec-booking button,span.mec-marker-wrap,.mec-wrap.colorskin-custom .mec-timeline-events-container .mec-timeline-event-date:before, .mec-has-event-for-booking.mec-active .mec-calendar-novel-selected-day, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-ongoing-normal-label, .mec-calendar .mec-has-event:after, .mec-event-list-modern .mec-event-sharing li:hover .telegram
167
- {background-color: <?php echo $color; ?>;}
168
 
169
  .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-calendar-day.mec-active .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active
170
- { background-color: <?php echo $color; ?>;}
171
 
172
  /* == BorderColors
173
  ------------------ */
174
  .mec-skin-carousel-container .mec-event-footer-carousel-type3 .mec-modal-booking-button:hover, .mec-timeline-month-divider, .mec-wrap.colorskin-custom .mec-single-event .mec-speakers-details ul li .mec-speaker-avatar a:hover img,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing > li:hover a i,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing .mec-event-share:hover .mec-event-sharing-icon,.mec-wrap.colorskin-custom .mec-event-list-standard .mec-month-divider span:before,.mec-wrap.colorskin-custom .mec-single-event .mec-social-single:before,.mec-wrap.colorskin-custom .mec-single-event .mec-frontbox-title:before,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-events-side .mec-table-side-day, .mec-wrap.colorskin-custom .mec-border-color, .mec-wrap.colorskin-custom .mec-border-color-hover:hover, .colorskin-custom .mec-single-event .mec-frontbox-title:before, .colorskin-custom .mec-single-event .mec-wrap-checkout h4:before, .colorskin-custom .mec-single-event .mec-events-meta-group-booking form > h4:before, .mec-wrap.colorskin-custom .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.mec-wrap .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.event-carousel-type1-head .mec-event-date-carousel:after,.mec-wrap.colorskin-custom .mec-events-masonry-cats a.mec-masonry-cat-selected, .mec-marker-infowindow-wp .mec-marker-infowindow-count, .mec-wrap.colorskin-custom .mec-events-masonry-cats a:hover, .mec-has-event-for-booking .mec-calendar-novel-selected-day, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-virtual-event-history h3:before, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-calendar-day.mec-active .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active, .mec-rsvp-form-box form > h4:before, .mec-wrap .mec-box-title::before, .mec-box-title::before
175
- {border-color: <?php echo $color; ?>;}
176
 
177
  .mec-wrap.colorskin-custom .mec-event-countdown-style3 .mec-event-date:after,.mec-wrap.colorskin-custom .mec-month-divider span:before, .mec-calendar.mec-event-container-simple dl dt.mec-selected-day, .mec-calendar.mec-event-container-simple dl dt.mec-selected-day:hover
178
- {border-bottom-color:<?php echo $color; ?>;}
179
 
180
  .mec-wrap.colorskin-custom article.mec-event-countdown-style1 .mec-event-countdown-part2:after
181
- {border-color: transparent transparent transparent <?php echo $color; ?>;}
182
 
183
  /* == BoxShadow
184
  ------------------ */
185
- .mec-wrap.colorskin-custom .mec-box-shadow-color { box-shadow: 0 4px 22px -7px <?php echo $color; ?>;}
186
 
187
 
188
  /* == Timeline View
189
  ------------------ */
190
- .mec-events-timeline-wrap .mec-shortcode-organizers, .mec-timeline-event .mec-modal-booking-button, .mec-events-timeline-wrap:before, .mec-wrap.colorskin-custom .mec-timeline-event-local-time, .mec-wrap.colorskin-custom .mec-timeline-event-time ,.mec-wrap.colorskin-custom .mec-timeline-event-location,.mec-choosen-time-message { background: rgba(<?php echo $rgb_color['red']; ?>,<?php echo $rgb_color['green']; ?>,<?php echo $rgb_color['blue']; ?>,.11);}
191
 
192
  .mec-wrap.colorskin-custom .mec-timeline-events-container .mec-timeline-event-date:after
193
- { background: rgba(<?php echo $rgb_color['red']; ?>,<?php echo $rgb_color['green']; ?>,<?php echo $rgb_color['blue']; ?>,.3);}
194
 
195
  /* == Booking Shortcode
196
  ------------------ */
197
  .mec-booking-shortcode button
198
- { box-shadow: 0 2px 2px rgba(<?php echo $rgb_color['red']; ?> <?php echo $rgb_color['green']; ?> <?php echo $rgb_color['blue']; ?> / 27%);}
199
 
200
  .mec-booking-shortcode button.mec-book-form-back-button
201
- { background-color: rgba(<?php echo $rgb_color['red']; ?> <?php echo $rgb_color['green']; ?> <?php echo $rgb_color['blue']; ?> / 40%);}
202
 
203
  .mec-events-meta-group-booking-shortcode
204
- { background: rgba(<?php echo $rgb_color['red']; ?>,<?php echo $rgb_color['green']; ?>,<?php echo $rgb_color['blue']; ?>,.14);}
205
 
206
  .mec-booking-shortcode label.wn-checkbox-label, .mec-booking-shortcode .nice-select,.mec-booking-shortcode input, .mec-booking-shortcode .mec-book-form-gateway-label input[type=radio]:before, .mec-booking-shortcode input[type=radio]:checked:before, .mec-booking-shortcode ul.mec-book-price-details li, .mec-booking-shortcode ul.mec-book-price-details
207
- { border-color: rgba(<?php echo $rgb_color['red']; ?> <?php echo $rgb_color['green']; ?> <?php echo $rgb_color['blue']; ?> / 27%) !important;}
208
 
209
  .mec-booking-shortcode input::-webkit-input-placeholder,.mec-booking-shortcode textarea::-webkit-input-placeholder
210
- {color: <?php echo $color; ?>}
211
 
212
  .mec-booking-shortcode input::-moz-placeholder,.mec-booking-shortcode textarea::-moz-placeholder
213
- {color: <?php echo $color; ?>}
214
 
215
  .mec-booking-shortcode input:-ms-input-placeholder,.mec-booking-shortcode textarea:-ms-input-placeholder
216
- {color: <?php echo $color; ?>}
217
 
218
  .mec-booking-shortcode input:-moz-placeholder,.mec-booking-shortcode textarea:-moz-placeholder
219
- {color: <?php echo $color; ?>}
220
 
221
  .mec-booking-shortcode label.wn-checkbox-label:after, .mec-booking-shortcode label.wn-checkbox-label:before, .mec-booking-shortcode input[type=radio]:checked:after
222
- {background-color: <?php echo $color; ?>}
223
 
224
 
225
  <?php endif;
@@ -229,8 +229,8 @@ if($mec_container_normal_width): ?>
229
  @media only screen and (min-width: 1281px) {
230
  .mec-container,
231
  body [id*="mec_skin_"].mec-fluent-wrap {
232
- width: <?php echo $mec_container_normal_width; ?> !important;
233
- max-width: <?php echo $mec_container_normal_width; ?> !important;
234
  }
235
  }
236
  <?php endif;
@@ -240,27 +240,27 @@ if($mec_container_large_width): ?>
240
  @media only screen and (min-width: 1600px) {
241
  .mec-container,
242
  body [id*="mec_skin_"].mec-fluent-wrap {
243
- width: <?php echo $mec_container_large_width; ?> !important;
244
- max-width: <?php echo $mec_container_large_width; ?> !important;
245
  }
246
  }
247
  <?php endif;
248
 
249
  if($title_color): ?>
250
  .mec-wrap h1 a, .mec-wrap h2 a, .mec-wrap h3 a, .mec-wrap h4 a, .mec-wrap h5 a, .mec-wrap h6 a,.entry-content .mec-wrap h1 a, .entry-content .mec-wrap h2 a, .entry-content .mec-wrap h3 a,.entry-content .mec-wrap h4 a, .entry-content .mec-wrap h5 a, .entry-content .mec-wrap h6 a {
251
- color: <?php echo $title_color; ?> !important;
252
  }
253
  <?php endif;
254
 
255
  if($title_color_hover): ?>
256
  .mec-wrap.colorskin-custom h1 a:hover, .mec-wrap.colorskin-custom h2 a:hover, .mec-wrap.colorskin-custom h3 a:hover, .mec-wrap.colorskin-custom h4 a:hover, .mec-wrap.colorskin-custom h5 a:hover, .mec-wrap.colorskin-custom h6 a:hover,.entry-content .mec-wrap.colorskin-custom h1 a:hover, .entry-content .mec-wrap.colorskin-custom h2 a:hover, .entry-content .mec-wrap.colorskin-custom h3 a:hover,.entry-content .mec-wrap.colorskin-custom h4 a:hover, .entry-content .mec-wrap.colorskin-custom h5 a:hover, .entry-content .mec-wrap.colorskin-custom h6 a:hover {
257
- color: <?php echo $title_color_hover; ?> !important;
258
  }
259
  <?php endif;
260
 
261
  if($content_color): ?>
262
  .mec-wrap.colorskin-custom .mec-event-description {
263
- color: <?php echo $content_color; ?>;
264
  }
265
  <?php endif;
266
 
@@ -293,7 +293,7 @@ if (isset($styling['fes_color']) && $styling['fes_color']) {
293
  ?>
294
  /* FES Main Color */
295
  .mec-fes-form #mec_bfixed_form_field_types .button:before, .mec-fes-form #mec_reg_form_field_types .button:before, .mec-fes-form #mec_bfixed_form_field_types .button, .mec-fes-form #mec_reg_form_field_types .button, .mec-fes-form #mec_meta_box_tickets_form [id^=mec_ticket_row] .mec_add_price_date_button, .mec-fes-form .mec-meta-box-fields h4, .mec-fes-form .html-active .switch-html, .mec-fes-form .tmce-active .switch-tmce, .mec-fes-form .wp-editor-tabs .wp-switch-editor:active, .mec-fes-form .mec-form-row .button:not(.wp-color-result), .mec-fes-form .mec-title span.mec-dashicons, .mec-fes-form .mec-form-row .quicktags-toolbar input.button.button-small, .mec-fes-list ul li a:hover, .mec-fes-form input[type=file], .mec-fes-form .mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip:before {
296
- color: <?php echo $fes_main_color; ?>;
297
  }
298
 
299
  .mec-fes-form #mec_reg_form_field_types .button.red:before, .mec-fes-form #mec_reg_form_field_types .button.red {
@@ -306,19 +306,19 @@ if (isset($styling['fes_color']) && $styling['fes_color']) {
306
  }
307
 
308
  .mec-fes-form #mec_reg_form_field_types .button.red:hover, .mec-fes-form #mec_reg_form_field_types .button:hover, .mec-fes-list ul li .mec-fes-event-export a:hover, .mec-fes-list ul li .mec-fes-event-view a:hover, .mec-fes-form button[type=submit].mec-fes-sub-button, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover {
309
- background: <?php echo $fes_main_color; ?>;
310
  }
311
 
312
  .mec-fes-form #mec_reg_form_field_types .button.red:hover, .mec-fes-form #mec_bfixed_form_fields input[type=checkbox]:hover, .mec-fes-form #mec_bfixed_form_fields input[type=radio]:hover, .mec-fes-form #mec_reg_form_fields input[type=checkbox]:hover, .mec-fes-form #mec_reg_form_fields input[type=radio]:hover, .mec-fes-form input[type=checkbox]:hover, .mec-fes-form input[type=radio]:hover, .mec-fes-form #mec_reg_form_field_types .button:hover, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover, .mec-fes-list ul li .mec-fes-event-export a:hover, .mec-fes-list ul li .mec-fes-event-view a:hover, .mec-fes-form input[type=file], .mec-fes-form .mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child {
313
- border-color: <?php echo $fes_main_color; ?>;
314
  }
315
 
316
  .mec-fes-form button[type=submit].mec-fes-sub-button {
317
- box-shadow: 0 2px 8px -4px <?php echo $fes_main_color; ?>;
318
  }
319
 
320
  .mec-fes-form button[type=submit].mec-fes-sub-button:hover {
321
- box-shadow: 0 2px 12px -2px <?php echo $fes_main_color; ?>;
322
  }
323
 
324
  .mec-fes-form, .mec-fes-list, .mec-fes-form .html-active .switch-html, .mec-fes-form .tmce-active .switch-tmce, .mec-fes-form .wp-editor-tabs .wp-switch-editor:active, .mec-fes-form .mec-attendees-wrapper .mec-attendees-list .w-clearfix {
@@ -350,7 +350,7 @@ if (isset($styling['fes_color']) && $styling['fes_color']) {
350
  }
351
 
352
  .mec-fes-form #mec_meta_box_tickets_form [id^=mec_ticket_row] .mec_add_price_date_button, .mec-fes-form .mce-tinymce.mce-container.mce-panel, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover {
353
- box-shadow: 0 2px 6px -3px <?php echo $fes_main_color; ?>;
354
  }
355
 
356
  .mec-fes-form .quicktags-toolbar, .mec-fes-form div.mce-toolbar-grp {
@@ -362,13 +362,13 @@ if (isset($styling['fes_color']) && $styling['fes_color']) {
362
  }
363
 
364
  .mec-fes-form #mec_bfixed_form_fields input[type=checkbox]:checked, .mec-fes-form #mec_bfixed_form_fields input[type=radio]:checked, .mec-fes-form #mec_reg_form_fields input[type=checkbox]:checked, .mec-fes-form #mec_reg_form_fields input[type=radio]:checked, .mec-fes-form .mec-form-row input[type=checkbox]:checked, .mec-fes-form .mec-form-row input[type=radio]:checked {
365
- box-shadow: 0 1px 6px -2px <?php echo $fes_main_color; ?>;
366
- border-color: <?php echo $fes_main_color; ?>;
367
- background: <?php echo $fes_main_color; ?> !important;
368
  }
369
 
370
  .mec-fes-form .mec-available-color-row span.color-selected {
371
- box-shadow: 0 0 0 2px <?php echo $fes_main_color; ?>, 0 2px 8px -1px <?php echo $fes_main_color; ?>;
372
  }
373
 
374
  <?php
@@ -388,19 +388,19 @@ if (isset($styling['fluent_main_color']) && $styling['fluent_main_color']) {
388
  ?>
389
  /* MAIN COLOR */
390
  .mec-more-events-icon, .mec-single-fluent-wrap .mec-next-event-details a, .mec-wrap.colorskin-custom .mec-color-before *:before, .mec-single-fluent-wrap .mec-marker-infowindow-wp .mec-marker-infowindow-count, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .nice-select .list li, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select .list li, .mec-single-fluent-wrap .mec-single-event-organizer dd i, .mec-single-fluent-wrap .mec-single-event-additional-organizers dd i, .mec-single-fluent-wrap .mec-next-event-details i:before, .mec-single-fluent-wrap .mec-next-event-details i:before, .mec-single-fluent-wrap .mec-single-event-location i, .mec-single-fluent-wrap .mec-single-event-organizer dd.mec-organizer-description:before, .mec-single-fluent-wrap .mec-single-event-additional-organizers dd.mec-organizer-description:before, .mec-single-fluent-wrap .mec-event-schedule-content dl dt.mec-schedule-time:before, .mec-single-fluent-wrap .mec-event-schedule-content dl dt.mec-schedule-time:before, .mec-single-fluent-wrap .mec-single-event-bar>div i, .mec-single-fluent-wrap .mec-single-event-category a, .mec-fluent-wrap .mec-daily-view-events-left-side .mec-daily-view-events-item>span.mec-time, .mec-fluent-wrap .mec-daily-view-events-left-side .mec-daily-view-events-item>span.mec-time-end, .mec-fluent-wrap .mec-calendar.mec-calendar-daily .mec-calendar-d-table.mec-date-labels-container span, .mec-fluent-wrap .mec-calendar .mec-week-events-container dl>span, .mec-fluent-current-time-text, .mec-fluent-wrap.mec-timetable-wrap .mec-cell .mec-time, .mec-fluent-wrap.mec-skin-masonry-container .mec-events-masonry-cats a:hover, .mec-fluent-wrap.mec-skin-masonry-container .mec-events-masonry-cats a.mec-masonry-cat-selected, .mec-fluent-wrap .mec-date-details i:before, .mec-fluent-wrap .mec-event-location i:before, .mec-fluent-wrap .mec-event-carousel-type2 .owl-next i, .mec-fluent-wrap .mec-event-carousel-type2 .owl-prev i, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-next i, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-prev i, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-next, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-prev, .mec-fluent-wrap .mec-date-wrap i, .mec-fluent-wrap .mec-calendar.mec-yearly-calendar .mec-calendar-table-head dl dt:first-letter, .mec-event-sharing-wrap .mec-event-sharing li:hover a, .mec-fluent-wrap .mec-agenda-event>i, .mec-fluent-wrap .mec-totalcal-box .nice-select:after, .mec-fluent-wrap .mec-totalcal-box .mec-totalcal-view span, .mec-fluent-wrap .mec-totalcal-box input, .mec-fluent-wrap .mec-totalcal-box select, .mec-fluent-wrap .mec-totalcal-box .nice-select, .mec-fluent-wrap .mec-totalcal-box .nice-select .list li, .mec-fluent-wrap .mec-text-input-search i, .mec-fluent-wrap .mec-event-location i, .mec-fluent-wrap .mec-event-article .mec-event-title a:hover, .mec-fluent-wrap .mec-date-details:before, .mec-fluent-wrap .mec-time-details:before, .mec-fluent-wrap .mec-venue-details:before, .mec-fluent-wrap .mec-price-details i:before, .mec-fluent-wrap .mec-available-tickets-details i:before, .mec-fluent-wrap .mec-booking-button, .mec-single-fluent-wrap .mec-local-time-details li:first-child:before, .mec-single-fluent-wrap .mec-local-time-details li:nth-of-type(2):before, .mec-single-fluent-wrap .mec-local-time-details li:last-child:before {
391
- color: <?php echo $fluent_main_color; ?> !important;
392
  }
393
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]::-webkit-input-placeholder {
394
- color: <?php echo $fluent_main_color; ?> !important;
395
  }
396
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]::-moz-placeholder {
397
- color: <?php echo $fluent_main_color; ?> !important;
398
  }
399
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]:-ms-input-placeholder {
400
- color: <?php echo $fluent_main_color; ?> !important;
401
  }
402
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]:-moz-placeholder {
403
- color: <?php echo $fluent_main_color; ?> !important;
404
  }
405
  .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl dt.mec-table-nullday, .mec-single-fluent-body .lity-content input::-moz-placeholder, .mec-single-fluent-body .lity-content textarea::-moz-placeholder, .mec-single-fluent-wrap input::-moz-placeholder, .mec-single-fluent-wrap textarea::-moz-placeholder {
406
  color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.3)'; ?> !important;
@@ -413,40 +413,40 @@ if (isset($styling['fluent_main_color']) && $styling['fluent_main_color']) {
413
  color: #fff !important;
414
  }
415
  .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button:hover {
416
- color: <?php echo $fluent_main_color; ?> !important;
417
  }
418
 
419
  /* BORDER COLOR */
420
  /* list view */
421
  .mec-fluent-wrap.mec-skin-list-wrap .mec-event-article {
422
- border-top-color: <?php echo $fluent_main_color; ?> !important;
423
- border-left-color: <?php echo $fluent_main_color; ?> !important;
424
- border-bottom-color: <?php echo $fluent_main_color; ?> !important;
425
  }
426
  /* list view */
427
  .mec-fluent-wrap.mec-skin-grid-wrap .mec-event-article .mec-event-content {
428
- border-right-color: <?php echo $fluent_main_color; ?> !important;
429
- border-left-color: <?php echo $fluent_main_color; ?> !important;
430
- border-bottom-color: <?php echo $fluent_main_color; ?> !important;
431
  }
432
  .mec-fluent-wrap.mec-skin-grid-wrap .mec-event-article .mec-event-image {
433
- border-right-color: <?php echo $fluent_main_color; ?> !important;
434
- border-left-color: <?php echo $fluent_main_color; ?> !important;
435
  }
436
  .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top, .mec-single-fluent-wrap .mec-next-event-details a:hover, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .nice-select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking textarea, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select, .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-wrap .mec-events-meta-group-booking select, .mec-single-fluent-wrap .mec-events-meta-group-booking textarea, .mec-single-fluent-wrap .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-event-schedule-content dl:before, .mec-single-fluent-wrap .mec-event-schedule-content dl:first-of-type:after, .mec-single-fluent-wrap .mec-event-schedule-content dl, .mec-single-fluent-wrap .mec-event-export-module.mec-frontbox .mec-event-exporting .mec-export-details ul li a:hover, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-current-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic .mec-calendar-table-head, .mec-fluent-wrap .mec-yearly-view-wrap .mec-year-container, .mec-fluent-wrap.mec-events-agenda-container .mec-events-agenda-wrap, .mec-fluent-wrap .mec-totalcal-box .mec-totalcal-view span, .mec-fluent-wrap .mec-totalcal-box input, .mec-fluent-wrap .mec-totalcal-box select, .mec-fluent-wrap .mec-totalcal-box .nice-select, .mec-fluent-wrap .mec-load-more-button:hover, .mec-fluent-wrap .mec-booking-button, .mec-fluent-wrap .mec-skin-monthly-view-month-navigator-container, .mec-fluent-wrap .mec-calendar-a-month, .mec-fluent-wrap .mec-yearly-title-sec, .mec-fluent-wrap .mec-filter-content, .mec-fluent-wrap i.mec-filter-icon, .mec-fluent-wrap .mec-text-input-search input[type="search"], .mec-fluent-wrap .mec-event-sharing-wrap .mec-event-sharing, .mec-fluent-wrap .mec-load-month, .mec-fluent-wrap .mec-load-year{
437
- border-color: <?php echo $fluent_main_color; ?> !important;
438
  }
439
  .mec-fluent-current-time-first, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-load-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl dt:first-of-type {
440
- border-left-color: <?php echo $fluent_main_color; ?> !important;
441
  }
442
  .mec-fluent-current-time-last, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-current-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl dt:last-of-type {
443
- border-right-color: <?php echo $fluent_main_color; ?> !important;
444
  }
445
  .mec-fluent-wrap .mec-more-events, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl:last-of-type dt, .mec-fluent-wrap.mec-skin-full-calendar-container>.mec-totalcal-box .mec-totalcal-view .mec-fluent-more-views-content:before, .mec-fluent-wrap .mec-filter-content:before {
446
- border-bottom-color: <?php echo $fluent_main_color; ?> !important;
447
  }
448
  .mec-event-sharing-wrap .mec-event-sharing:before {
449
- border-color: <?php echo $fluent_main_color; ?> transparent transparent transparent !important;
450
  }
451
  .mec-fluent-wrap.mec-timetable-wrap .mec-cell, .mec-fluent-wrap .mec-event-meta {
452
  border-left-color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.1)'; ?> !important;
@@ -468,8 +468,8 @@ if (isset($styling['fluent_main_color']) && $styling['fluent_main_color']) {
468
  border-color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.3)'; ?> !important;
469
  }
470
  .mec-fluent-wrap .mec-totalcal-box .nice-select:after {
471
- border-right-color: <?php echo $fluent_main_color; ?> !important;
472
- border-bottom-color: <?php echo $fluent_main_color; ?> !important;
473
  }
474
 
475
  /* BOXSHADOW */
@@ -495,7 +495,7 @@ if (isset($styling['fluent_main_color']) && $styling['fluent_main_color']) {
495
  background-color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.1)'; ?> !important;
496
  }
497
  .mec-fluent-wrap h5.mec-more-events-header, .mec-fluent-current-time, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking button, .mec-fluent-wrap.mec-single-fluent-wrap .mec-events-meta-group-booking button {
498
- background-color: <?php echo $fluent_main_color; ?> !important;
499
  }
500
  .mec-fluent-wrap .mec-yearly-view-wrap .mec-agenda-events-wrap {
501
  background-color: transparent !important;
@@ -518,7 +518,7 @@ if (isset($styling['fluent_bold_color']) && $styling['fluent_bold_color']) {
518
  ?>
519
  /* MAIN BOLD COLOR - SECOND COLOR */
520
  .mec-fluent-wrap .mec-daily-view-events-left-side h5.mec-daily-today-title span:first-child, .mec-single-fluent-wrap .mec-events-meta-group-tags .mec-event-footer a:hover, .mec-single-fluent-wrap .mec-event-social li.mec-event-social-icon a:hover, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="radio"]:checked:after, .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="radio"]:checked:after, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-book-ticket-container>h4 .mec-ticket-name, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-book-ticket-container>h4 .mec-ticket-name, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .nice-select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking textarea, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select, .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-wrap .mec-events-meta-group-booking select, .mec-single-fluent-wrap .mec-events-meta-group-booking textarea, .mec-single-fluent-wrap .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-events-meta-group-countdown, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking h5 span, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking label, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking label.wn-checkbox-label, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-event-ticket-name, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-event-ticket-available, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-book-reg-field-p p, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-gateway-comment, .mec-single-fluent-wrap .mec-events-meta-group-booking h5 span, .mec-single-fluent-wrap .mec-events-meta-group-booking label, .mec-single-fluent-wrap .mec-events-meta-group-booking label.wn-checkbox-label, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-event-ticket-name, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-event-ticket-available, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-book-reg-field-p p, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-gateway-comment, .mec-single-fluent-wrap .mec-related-event-post .mec-date-wrap span.mec-event-day-num, .mec-single-fluent-wrap .mec-single-event-category a:hover,.mec-fluent-wrap.mec-skin-available-spot-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-cover-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-countdown-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-carousel-container .event-carousel-type2-head .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-slider-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-masonry-container .mec-masonry .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top dt.active, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-current-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic .mec-calendar-table-head dt.active, .mec-fluent-wrap .mec-color, .mec-fluent-wrap a:hover, .mec-wrap .mec-color-hover:hover, .mec-fluent-wrap.mec-skin-full-calendar-container>.mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected, .mec-fluent-wrap .mec-booking-button, .mec-fluent-wrap .mec-load-more-button, .mec-fluent-wrap .mec-load-month i, .mec-fluent-wrap .mec-load-year i, .mec-fluent-wrap i.mec-filter-icon, .mec-fluent-wrap .mec-filter-content i, .mec-fluent-wrap .mec-event-sharing-wrap>li:first-of-type i, .mec-fluent-wrap .mec-available-tickets-details span.mec-available-tickets-number {
521
- color: <?php echo $fluent_bold_color; ?> !important;
522
  }
523
  .mec-fluent-wrap.mec-skin-cover-container .mec-event-sharing-wrap>li:first-of-type i, .mec-single-fluent-wrap .mec-single-event-bar .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 span.mec-event-day-num, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-event-sharing-wrap:hover li:first-child a {
524
  color: #fff !important;
@@ -526,10 +526,10 @@ if (isset($styling['fluent_bold_color']) && $styling['fluent_bold_color']) {
526
 
527
  /* BORDER BOLD COLOR - SECOND COLOR */
528
  .mec-fluent-wrap.mec-skin-carousel-container .mec-owl-theme .owl-dots .owl-dot.active span, .mec-single-fluent-wrap .mec-event-social li.mec-event-social-icon a:hover, .mec-fluent-wrap .mec-load-month, .mec-fluent-wrap .mec-load-year, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-book-available-tickets-details>.mec-book-available-tickets-details-header, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-book-available-tickets-details>.mec-book-available-tickets-details-header {
529
- border-color: <?php echo $fluent_bold_color; ?> !important;
530
  }
531
  .mec-fluent-wrap .mec-calendar .mec-daily-view-day.mec-has-event:after, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button, .mec-fluent-wrap .mec-event-cover-fluent-type2 .mec-event-sharing-wrap:hover>li:first-child, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-date-wrap, .mec-fluent-wrap.mec-skin-carousel-container .mec-owl-theme .owl-dots .owl-dot.active span {
532
- background-color: <?php echo $fluent_bold_color; ?> !important;
533
  }
534
  .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button:hover {
535
  background-color: #fff !important;
@@ -544,7 +544,7 @@ if (isset($styling['fluent_bg_hover_color']) && $styling['fluent_bg_hover_color'
544
  ?>
545
  /* BACKGROUND COLOR */
546
  .mec-fluent-wrap .mec-yearly-view-wrap .mec-calendar.mec-yearly-calendar .mec-has-event:after, .mec-fluent-wrap .mec-load-more-button:hover, .mec-fluent-wrap .mec-load-month:hover, .mec-fluent-wrap .mec-load-year:hover, .mec-fluent-wrap .mec-booking-button:hover {
547
- background-color: <?php echo $fluent_bg_hover_color; ?> !important;
548
  }
549
  <?php
550
  }
@@ -556,7 +556,7 @@ if (isset($styling['fluent_bg_color']) && $styling['fluent_bg_color']) {
556
  ?>
557
  /* BACKGROUND COLOR */
558
  .mec-fluent-wrap {
559
- background-color: <?php echo $fluent_bg_color; ?> !important;
560
  }
561
  <?php
562
  }
@@ -568,11 +568,11 @@ if (isset($styling['fluent_second_bg_color']) && $styling['fluent_second_bg_colo
568
  ?>
569
  /* BACKGROUND COLOR */
570
  .mec-fluent-wrap.mec-skin-masonry-container .mec-masonry .mec-date-wrap, .mec-single-fluent-wrap .mec-event-social li.mec-event-social-icon a:hover, .mec-fluent-wrap .mec-filter-content {
571
- background-color: <?php echo $fluent_second_bg_color; ?> !important;
572
  }
573
 
574
  .mec-fluent-wrap .mec-filter-content:after {
575
- border-bottom-color:<?php echo $fluent_second_bg_color; ?> !important;
576
  }
577
  <?php
578
  }
144
  /* == Custom Fonts For H Tag
145
  ---------------- */
146
  .mec-hourly-schedule-speaker-name, .mec-events-meta-group-countdown .countdown-w span, .mec-single-event .mec-event-meta dt, .mec-hourly-schedule-speaker-job-title, .post-type-archive-mec-events h1, .mec-ticket-available-spots .mec-event-ticket-name, .tax-mec_category h1, .mec-wrap h1, .mec-wrap h2, .mec-wrap h3, .mec-wrap h4, .mec-wrap h5, .mec-wrap h6,.entry-content .mec-wrap h1, .entry-content .mec-wrap h2, .entry-content .mec-wrap h3,.entry-content .mec-wrap h4, .entry-content .mec-wrap h5, .entry-content .mec-wrap h6
147
+ { font-family: '<?php echo esc_html($mec_h_fontfamily_arr[0]); ?>', Helvetica, Arial, sans-serif;}
148
  <?php endif;
149
 
150
  // render paragraph font familty
151
  if($mec_p_fontfamily_arr): ?>
152
  /* == Custom Fonts For P Tag
153
  ---------------- */
154
+ .mec-single-event .mec-event-meta .mec-events-event-cost, .mec-event-data-fields .mec-event-data-field-item .mec-event-data-field-value, .mec-event-data-fields .mec-event-data-field-item .mec-event-data-field-name, .mec-wrap .info-msg div, .mec-wrap .mec-error div, .mec-wrap .mec-success div, .mec-wrap .warning-msg div, .mec-breadcrumbs .mec-current, .mec-events-meta-group-tags, .mec-single-event .mec-events-meta-group-booking .mec-event-ticket-available, .mec-single-modern .mec-single-event-bar>div dd, .mec-single-event .mec-event-meta dd, .mec-single-event .mec-event-meta dd a, .mec-next-occ-booking span, .mec-hourly-schedule-speaker-description, .mec-single-event .mec-speakers-details ul li .mec-speaker-job-title, .mec-single-event .mec-speakers-details ul li .mec-speaker-name, .mec-event-data-field-items, .mec-load-more-button, .mec-events-meta-group-tags a, .mec-events-button, .mec-wrap abbr, .mec-event-schedule-content dl dt, .mec-breadcrumbs a, .mec-breadcrumbs span .mec-event-content p, .mec-wrap p { font-family: '<?php echo esc_html($mec_p_fontfamily_arr[0]); ?>',sans-serif; font-weight:300;}
155
  <?php endif;
156
 
157
  // render colorskin
159
  /* == TextColors
160
  ---------------- */
161
  .mec-event-grid-minimal .mec-modal-booking-button:hover, .mec-events-timeline-wrap .mec-organizer-item a, .mec-events-timeline-wrap .mec-organizer-item:after, .mec-events-timeline-wrap .mec-shortcode-organizers i, .mec-timeline-event .mec-modal-booking-button, .mec-wrap .mec-map-lightbox-wp.mec-event-list-classic .mec-event-date, .mec-timetable-t2-col .mec-modal-booking-button:hover, .mec-event-container-classic .mec-modal-booking-button:hover, .mec-calendar-events-side .mec-modal-booking-button:hover, .mec-event-grid-yearly .mec-modal-booking-button, .mec-events-agenda .mec-modal-booking-button, .mec-event-grid-simple .mec-modal-booking-button, .mec-event-list-minimal .mec-modal-booking-button:hover, .mec-timeline-month-divider, .mec-wrap.colorskin-custom .mec-totalcal-box .mec-totalcal-view span:hover,.mec-wrap.colorskin-custom .mec-calendar.mec-event-calendar-classic .mec-selected-day,.mec-wrap.colorskin-custom .mec-color, .mec-wrap.colorskin-custom .mec-event-sharing-wrap .mec-event-sharing > li:hover a, .mec-wrap.colorskin-custom .mec-color-hover:hover, .mec-wrap.colorskin-custom .mec-color-before *:before ,.mec-wrap.colorskin-custom .mec-widget .mec-event-grid-classic.owl-carousel .owl-nav i,.mec-wrap.colorskin-custom .mec-event-list-classic a.magicmore:hover,.mec-wrap.colorskin-custom .mec-event-grid-simple:hover .mec-event-title,.mec-wrap.colorskin-custom .mec-single-event .mec-event-meta dd.mec-events-event-categories:before,.mec-wrap.colorskin-custom .mec-single-event-date:before,.mec-wrap.colorskin-custom .mec-single-event-time:before,.mec-wrap.colorskin-custom .mec-events-meta-group.mec-events-meta-group-venue:before,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-previous-month i,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-next-month:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-previous-month:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-next-month:hover,.mec-wrap.colorskin-custom .mec-calendar.mec-event-calendar-classic dt.mec-selected-day:hover,.mec-wrap.colorskin-custom .mec-infowindow-wp h5 a:hover, .colorskin-custom .mec-events-meta-group-countdown .mec-end-counts h3,.mec-calendar .mec-calendar-side .mec-next-month i,.mec-wrap .mec-totalcal-box i,.mec-calendar .mec-event-article .mec-event-title a:hover,.mec-attendees-list-details .mec-attendee-profile-link a:hover,.mec-wrap.colorskin-custom .mec-next-event-details li i, .mec-next-event-details i:before, .mec-marker-infowindow-wp .mec-marker-infowindow-count, .mec-next-event-details a,.mec-wrap.colorskin-custom .mec-events-masonry-cats a.mec-masonry-cat-selected,.lity .mec-color,.lity .mec-color-before :before,.lity .mec-color-hover:hover,.lity .mec-wrap .mec-color,.lity .mec-wrap .mec-color-before :before,.lity .mec-wrap .mec-color-hover:hover,.leaflet-popup-content .mec-color,.leaflet-popup-content .mec-color-before :before,.leaflet-popup-content .mec-color-hover:hover,.leaflet-popup-content .mec-wrap .mec-color,.leaflet-popup-content .mec-wrap .mec-color-before :before,.leaflet-popup-content .mec-wrap .mec-color-hover:hover, .mec-calendar.mec-calendar-daily .mec-calendar-d-table .mec-daily-view-day.mec-daily-view-day-active.mec-color, .mec-map-boxshow div .mec-map-view-event-detail.mec-event-detail i,.mec-map-boxshow div .mec-map-view-event-detail.mec-event-detail:hover,.mec-map-boxshow .mec-color,.mec-map-boxshow .mec-color-before :before,.mec-map-boxshow .mec-color-hover:hover,.mec-map-boxshow .mec-wrap .mec-color,.mec-map-boxshow .mec-wrap .mec-color-before :before,.mec-map-boxshow .mec-wrap .mec-color-hover:hover, .mec-choosen-time-message, .mec-booking-calendar-month-navigation .mec-next-month:hover, .mec-booking-calendar-month-navigation .mec-previous-month:hover, .mec-yearly-view-wrap .mec-agenda-event-title a:hover, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-next-year i, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-previous-year i, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-next-year:hover, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-previous-year:hover, .mec-av-spot .mec-av-spot-head .mec-av-spot-box span, .mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-previous-month:hover .mec-load-month-link, .mec-wrap.colorskin-custom .mec-calendar .mec-calendar-side .mec-next-month:hover .mec-load-month-link, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-previous-year:hover .mec-load-month-link, .mec-yearly-view-wrap .mec-yearly-title-sec .mec-next-year:hover .mec-load-month-link, .mec-skin-list-events-container .mec-data-fields-tooltip .mec-data-fields-tooltip-box ul .mec-event-data-field-item a, .mec-booking-shortcode .mec-event-ticket-name, .mec-booking-shortcode .mec-event-ticket-price, .mec-booking-shortcode .mec-ticket-variation-name, .mec-booking-shortcode .mec-ticket-variation-price, .mec-booking-shortcode label, .mec-booking-shortcode .nice-select, .mec-booking-shortcode input, .mec-booking-shortcode span.mec-book-price-detail-description, .mec-booking-shortcode .mec-ticket-name, .mec-booking-shortcode label.wn-checkbox-label, .mec-wrap.mec-cart table tr td a
162
+ {color: <?php echo esc_html($color); ?>}
163
 
164
  /* == Backgrounds
165
  ----------------- */
166
  .mec-skin-carousel-container .mec-event-footer-carousel-type3 .mec-modal-booking-button:hover, .mec-wrap.colorskin-custom .mec-event-sharing .mec-event-share:hover .event-sharing-icon,.mec-wrap.colorskin-custom .mec-event-grid-clean .mec-event-date,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing > li:hover a i,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing .mec-event-share:hover .mec-event-sharing-icon,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing li:hover a i,.mec-wrap.colorskin-custom .mec-calendar:not(.mec-event-calendar-classic) .mec-selected-day,.mec-wrap.colorskin-custom .mec-calendar .mec-selected-day:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-row dt.mec-has-event:hover,.mec-wrap.colorskin-custom .mec-calendar .mec-has-event:after, .mec-wrap.colorskin-custom .mec-bg-color, .mec-wrap.colorskin-custom .mec-bg-color-hover:hover, .colorskin-custom .mec-event-sharing-wrap:hover > li, .mec-wrap.colorskin-custom .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.mec-wrap .flip-clock-wrapper ul li a div div.inn,.mec-wrap .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.event-carousel-type1-head .mec-event-date-carousel,.mec-event-countdown-style3 .mec-event-date,#wrap .mec-wrap article.mec-event-countdown-style1,.mec-event-countdown-style1 .mec-event-countdown-part3 a.mec-event-button,.mec-wrap .mec-event-countdown-style2,.mec-map-get-direction-btn-cnt input[type="submit"],.mec-booking button,span.mec-marker-wrap,.mec-wrap.colorskin-custom .mec-timeline-events-container .mec-timeline-event-date:before, .mec-has-event-for-booking.mec-active .mec-calendar-novel-selected-day, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-ongoing-normal-label, .mec-calendar .mec-has-event:after, .mec-event-list-modern .mec-event-sharing li:hover .telegram
167
+ {background-color: <?php echo esc_html($color); ?>;}
168
 
169
  .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-calendar-day.mec-active .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active
170
+ { background-color: <?php echo esc_html($color); ?>;}
171
 
172
  /* == BorderColors
173
  ------------------ */
174
  .mec-skin-carousel-container .mec-event-footer-carousel-type3 .mec-modal-booking-button:hover, .mec-timeline-month-divider, .mec-wrap.colorskin-custom .mec-single-event .mec-speakers-details ul li .mec-speaker-avatar a:hover img,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing > li:hover a i,.mec-wrap.colorskin-custom .mec-event-list-modern .mec-event-sharing .mec-event-share:hover .mec-event-sharing-icon,.mec-wrap.colorskin-custom .mec-event-list-standard .mec-month-divider span:before,.mec-wrap.colorskin-custom .mec-single-event .mec-social-single:before,.mec-wrap.colorskin-custom .mec-single-event .mec-frontbox-title:before,.mec-wrap.colorskin-custom .mec-calendar .mec-calendar-events-side .mec-table-side-day, .mec-wrap.colorskin-custom .mec-border-color, .mec-wrap.colorskin-custom .mec-border-color-hover:hover, .colorskin-custom .mec-single-event .mec-frontbox-title:before, .colorskin-custom .mec-single-event .mec-wrap-checkout h4:before, .colorskin-custom .mec-single-event .mec-events-meta-group-booking form > h4:before, .mec-wrap.colorskin-custom .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.mec-wrap .mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected,.event-carousel-type1-head .mec-event-date-carousel:after,.mec-wrap.colorskin-custom .mec-events-masonry-cats a.mec-masonry-cat-selected, .mec-marker-infowindow-wp .mec-marker-infowindow-count, .mec-wrap.colorskin-custom .mec-events-masonry-cats a:hover, .mec-has-event-for-booking .mec-calendar-novel-selected-day, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-virtual-event-history h3:before, .mec-booking-tooltip.multiple-time .mec-booking-calendar-date:hover, .mec-calendar-day.mec-active .mec-booking-tooltip.multiple-time .mec-booking-calendar-date.mec-active, .mec-rsvp-form-box form > h4:before, .mec-wrap .mec-box-title::before, .mec-box-title::before
175
+ {border-color: <?php echo esc_html($color); ?>;}
176
 
177
  .mec-wrap.colorskin-custom .mec-event-countdown-style3 .mec-event-date:after,.mec-wrap.colorskin-custom .mec-month-divider span:before, .mec-calendar.mec-event-container-simple dl dt.mec-selected-day, .mec-calendar.mec-event-container-simple dl dt.mec-selected-day:hover
178
+ {border-bottom-color:<?php echo esc_html($color); ?>;}
179
 
180
  .mec-wrap.colorskin-custom article.mec-event-countdown-style1 .mec-event-countdown-part2:after
181
+ {border-color: transparent transparent transparent <?php echo esc_html($color); ?>;}
182
 
183
  /* == BoxShadow
184
  ------------------ */
185
+ .mec-wrap.colorskin-custom .mec-box-shadow-color { box-shadow: 0 4px 22px -7px <?php echo esc_html($color); ?>;}
186
 
187
 
188
  /* == Timeline View
189
  ------------------ */
190
+ .mec-events-timeline-wrap .mec-shortcode-organizers, .mec-timeline-event .mec-modal-booking-button, .mec-events-timeline-wrap:before, .mec-wrap.colorskin-custom .mec-timeline-event-local-time, .mec-wrap.colorskin-custom .mec-timeline-event-time ,.mec-wrap.colorskin-custom .mec-timeline-event-location,.mec-choosen-time-message { background: rgba(<?php echo esc_html($rgb_color['red']); ?>,<?php echo esc_html($rgb_color['green']); ?>,<?php echo esc_html($rgb_color['blue']); ?>,.11);}
191
 
192
  .mec-wrap.colorskin-custom .mec-timeline-events-container .mec-timeline-event-date:after
193
+ { background: rgba(<?php echo esc_html($rgb_color['red']); ?>,<?php echo esc_html($rgb_color['green']); ?>,<?php echo esc_html($rgb_color['blue']); ?>,.3);}
194
 
195
  /* == Booking Shortcode
196
  ------------------ */
197
  .mec-booking-shortcode button
198
+ { box-shadow: 0 2px 2px rgba(<?php echo esc_html($rgb_color['red']); ?> <?php echo esc_html($rgb_color['green']); ?> <?php echo esc_html($rgb_color['blue']); ?> / 27%);}
199
 
200
  .mec-booking-shortcode button.mec-book-form-back-button
201
+ { background-color: rgba(<?php echo esc_html($rgb_color['red']); ?> <?php echo esc_html($rgb_color['green']); ?> <?php echo esc_html($rgb_color['blue']); ?> / 40%);}
202
 
203
  .mec-events-meta-group-booking-shortcode
204
+ { background: rgba(<?php echo esc_html($rgb_color['red']); ?>,<?php echo esc_html($rgb_color['green']); ?>,<?php echo esc_html($rgb_color['blue']); ?>,.14);}
205
 
206
  .mec-booking-shortcode label.wn-checkbox-label, .mec-booking-shortcode .nice-select,.mec-booking-shortcode input, .mec-booking-shortcode .mec-book-form-gateway-label input[type=radio]:before, .mec-booking-shortcode input[type=radio]:checked:before, .mec-booking-shortcode ul.mec-book-price-details li, .mec-booking-shortcode ul.mec-book-price-details
207
+ { border-color: rgba(<?php echo esc_html($rgb_color['red']); ?> <?php echo esc_html($rgb_color['green']); ?> <?php echo esc_html($rgb_color['blue']); ?> / 27%) !important;}
208
 
209
  .mec-booking-shortcode input::-webkit-input-placeholder,.mec-booking-shortcode textarea::-webkit-input-placeholder
210
+ {color: <?php echo esc_html($color); ?>}
211
 
212
  .mec-booking-shortcode input::-moz-placeholder,.mec-booking-shortcode textarea::-moz-placeholder
213
+ {color: <?php echo esc_html($color); ?>}
214
 
215
  .mec-booking-shortcode input:-ms-input-placeholder,.mec-booking-shortcode textarea:-ms-input-placeholder
216
+ {color: <?php echo esc_html($color); ?>}
217
 
218
  .mec-booking-shortcode input:-moz-placeholder,.mec-booking-shortcode textarea:-moz-placeholder
219
+ {color: <?php echo esc_html($color); ?>}
220
 
221
  .mec-booking-shortcode label.wn-checkbox-label:after, .mec-booking-shortcode label.wn-checkbox-label:before, .mec-booking-shortcode input[type=radio]:checked:after
222
+ {background-color: <?php echo esc_html($color); ?>}
223
 
224
 
225
  <?php endif;
229
  @media only screen and (min-width: 1281px) {
230
  .mec-container,
231
  body [id*="mec_skin_"].mec-fluent-wrap {
232
+ width: <?php echo esc_html($mec_container_normal_width); ?> !important;
233
+ max-width: <?php echo esc_html($mec_container_normal_width); ?> !important;
234
  }
235
  }
236
  <?php endif;
240
  @media only screen and (min-width: 1600px) {
241
  .mec-container,
242
  body [id*="mec_skin_"].mec-fluent-wrap {
243
+ width: <?php echo esc_html($mec_container_large_width); ?> !important;
244
+ max-width: <?php echo esc_html($mec_container_large_width); ?> !important;
245
  }
246
  }
247
  <?php endif;
248
 
249
  if($title_color): ?>
250
  .mec-wrap h1 a, .mec-wrap h2 a, .mec-wrap h3 a, .mec-wrap h4 a, .mec-wrap h5 a, .mec-wrap h6 a,.entry-content .mec-wrap h1 a, .entry-content .mec-wrap h2 a, .entry-content .mec-wrap h3 a,.entry-content .mec-wrap h4 a, .entry-content .mec-wrap h5 a, .entry-content .mec-wrap h6 a {
251
+ color: <?php echo esc_html($title_color); ?> !important;
252
  }
253
  <?php endif;
254
 
255
  if($title_color_hover): ?>
256
  .mec-wrap.colorskin-custom h1 a:hover, .mec-wrap.colorskin-custom h2 a:hover, .mec-wrap.colorskin-custom h3 a:hover, .mec-wrap.colorskin-custom h4 a:hover, .mec-wrap.colorskin-custom h5 a:hover, .mec-wrap.colorskin-custom h6 a:hover,.entry-content .mec-wrap.colorskin-custom h1 a:hover, .entry-content .mec-wrap.colorskin-custom h2 a:hover, .entry-content .mec-wrap.colorskin-custom h3 a:hover,.entry-content .mec-wrap.colorskin-custom h4 a:hover, .entry-content .mec-wrap.colorskin-custom h5 a:hover, .entry-content .mec-wrap.colorskin-custom h6 a:hover {
257
+ color: <?php echo esc_html($title_color_hover); ?> !important;
258
  }
259
  <?php endif;
260
 
261
  if($content_color): ?>
262
  .mec-wrap.colorskin-custom .mec-event-description {
263
+ color: <?php echo esc_html($content_color); ?>;
264
  }
265
  <?php endif;
266
 
293
  ?>
294
  /* FES Main Color */
295
  .mec-fes-form #mec_bfixed_form_field_types .button:before, .mec-fes-form #mec_reg_form_field_types .button:before, .mec-fes-form #mec_bfixed_form_field_types .button, .mec-fes-form #mec_reg_form_field_types .button, .mec-fes-form #mec_meta_box_tickets_form [id^=mec_ticket_row] .mec_add_price_date_button, .mec-fes-form .mec-meta-box-fields h4, .mec-fes-form .html-active .switch-html, .mec-fes-form .tmce-active .switch-tmce, .mec-fes-form .wp-editor-tabs .wp-switch-editor:active, .mec-fes-form .mec-form-row .button:not(.wp-color-result), .mec-fes-form .mec-title span.mec-dashicons, .mec-fes-form .mec-form-row .quicktags-toolbar input.button.button-small, .mec-fes-list ul li a:hover, .mec-fes-form input[type=file], .mec-fes-form .mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip:before {
296
+ color: <?php echo esc_html($fes_main_color); ?>;
297
  }
298
 
299
  .mec-fes-form #mec_reg_form_field_types .button.red:before, .mec-fes-form #mec_reg_form_field_types .button.red {
306
  }
307
 
308
  .mec-fes-form #mec_reg_form_field_types .button.red:hover, .mec-fes-form #mec_reg_form_field_types .button:hover, .mec-fes-list ul li .mec-fes-event-export a:hover, .mec-fes-list ul li .mec-fes-event-view a:hover, .mec-fes-form button[type=submit].mec-fes-sub-button, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover {
309
+ background: <?php echo esc_html($fes_main_color); ?>;
310
  }
311
 
312
  .mec-fes-form #mec_reg_form_field_types .button.red:hover, .mec-fes-form #mec_bfixed_form_fields input[type=checkbox]:hover, .mec-fes-form #mec_bfixed_form_fields input[type=radio]:hover, .mec-fes-form #mec_reg_form_fields input[type=checkbox]:hover, .mec-fes-form #mec_reg_form_fields input[type=radio]:hover, .mec-fes-form input[type=checkbox]:hover, .mec-fes-form input[type=radio]:hover, .mec-fes-form #mec_reg_form_field_types .button:hover, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover, .mec-fes-list ul li .mec-fes-event-export a:hover, .mec-fes-list ul li .mec-fes-event-view a:hover, .mec-fes-form input[type=file], .mec-fes-form .mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child {
313
+ border-color: <?php echo esc_html($fes_main_color); ?>;
314
  }
315
 
316
  .mec-fes-form button[type=submit].mec-fes-sub-button {
317
+ box-shadow: 0 2px 8px -4px <?php echo esc_html($fes_main_color); ?>;
318
  }
319
 
320
  .mec-fes-form button[type=submit].mec-fes-sub-button:hover {
321
+ box-shadow: 0 2px 12px -2px <?php echo esc_html($fes_main_color); ?>;
322
  }
323
 
324
  .mec-fes-form, .mec-fes-list, .mec-fes-form .html-active .switch-html, .mec-fes-form .tmce-active .switch-tmce, .mec-fes-form .wp-editor-tabs .wp-switch-editor:active, .mec-fes-form .mec-attendees-wrapper .mec-attendees-list .w-clearfix {
350
  }
351
 
352
  .mec-fes-form #mec_meta_box_tickets_form [id^=mec_ticket_row] .mec_add_price_date_button, .mec-fes-form .mce-tinymce.mce-container.mce-panel, .mec-fes-form .mec-form-row .button:not(.wp-color-result):hover {
353
+ box-shadow: 0 2px 6px -3px <?php echo esc_html($fes_main_color); ?>;
354
  }
355
 
356
  .mec-fes-form .quicktags-toolbar, .mec-fes-form div.mce-toolbar-grp {
362
  }
363
 
364
  .mec-fes-form #mec_bfixed_form_fields input[type=checkbox]:checked, .mec-fes-form #mec_bfixed_form_fields input[type=radio]:checked, .mec-fes-form #mec_reg_form_fields input[type=checkbox]:checked, .mec-fes-form #mec_reg_form_fields input[type=radio]:checked, .mec-fes-form .mec-form-row input[type=checkbox]:checked, .mec-fes-form .mec-form-row input[type=radio]:checked {
365
+ box-shadow: 0 1px 6px -2px <?php echo esc_html($fes_main_color); ?>;
366
+ border-color: <?php echo esc_html($fes_main_color); ?>;
367
+ background: <?php echo esc_html($fes_main_color); ?> !important;
368
  }
369
 
370
  .mec-fes-form .mec-available-color-row span.color-selected {
371
+ box-shadow: 0 0 0 2px <?php echo esc_html($fes_main_color); ?>, 0 2px 8px -1px <?php echo esc_html($fes_main_color); ?>;
372
  }
373
 
374
  <?php
388
  ?>
389
  /* MAIN COLOR */
390
  .mec-more-events-icon, .mec-single-fluent-wrap .mec-next-event-details a, .mec-wrap.colorskin-custom .mec-color-before *:before, .mec-single-fluent-wrap .mec-marker-infowindow-wp .mec-marker-infowindow-count, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .nice-select .list li, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select .list li, .mec-single-fluent-wrap .mec-single-event-organizer dd i, .mec-single-fluent-wrap .mec-single-event-additional-organizers dd i, .mec-single-fluent-wrap .mec-next-event-details i:before, .mec-single-fluent-wrap .mec-next-event-details i:before, .mec-single-fluent-wrap .mec-single-event-location i, .mec-single-fluent-wrap .mec-single-event-organizer dd.mec-organizer-description:before, .mec-single-fluent-wrap .mec-single-event-additional-organizers dd.mec-organizer-description:before, .mec-single-fluent-wrap .mec-event-schedule-content dl dt.mec-schedule-time:before, .mec-single-fluent-wrap .mec-event-schedule-content dl dt.mec-schedule-time:before, .mec-single-fluent-wrap .mec-single-event-bar>div i, .mec-single-fluent-wrap .mec-single-event-category a, .mec-fluent-wrap .mec-daily-view-events-left-side .mec-daily-view-events-item>span.mec-time, .mec-fluent-wrap .mec-daily-view-events-left-side .mec-daily-view-events-item>span.mec-time-end, .mec-fluent-wrap .mec-calendar.mec-calendar-daily .mec-calendar-d-table.mec-date-labels-container span, .mec-fluent-wrap .mec-calendar .mec-week-events-container dl>span, .mec-fluent-current-time-text, .mec-fluent-wrap.mec-timetable-wrap .mec-cell .mec-time, .mec-fluent-wrap.mec-skin-masonry-container .mec-events-masonry-cats a:hover, .mec-fluent-wrap.mec-skin-masonry-container .mec-events-masonry-cats a.mec-masonry-cat-selected, .mec-fluent-wrap .mec-date-details i:before, .mec-fluent-wrap .mec-event-location i:before, .mec-fluent-wrap .mec-event-carousel-type2 .owl-next i, .mec-fluent-wrap .mec-event-carousel-type2 .owl-prev i, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-next i, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-prev i, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-next, .mec-fluent-wrap .mec-slider-t1-wrap .mec-owl-theme .owl-nav .owl-prev, .mec-fluent-wrap .mec-date-wrap i, .mec-fluent-wrap .mec-calendar.mec-yearly-calendar .mec-calendar-table-head dl dt:first-letter, .mec-event-sharing-wrap .mec-event-sharing li:hover a, .mec-fluent-wrap .mec-agenda-event>i, .mec-fluent-wrap .mec-totalcal-box .nice-select:after, .mec-fluent-wrap .mec-totalcal-box .mec-totalcal-view span, .mec-fluent-wrap .mec-totalcal-box input, .mec-fluent-wrap .mec-totalcal-box select, .mec-fluent-wrap .mec-totalcal-box .nice-select, .mec-fluent-wrap .mec-totalcal-box .nice-select .list li, .mec-fluent-wrap .mec-text-input-search i, .mec-fluent-wrap .mec-event-location i, .mec-fluent-wrap .mec-event-article .mec-event-title a:hover, .mec-fluent-wrap .mec-date-details:before, .mec-fluent-wrap .mec-time-details:before, .mec-fluent-wrap .mec-venue-details:before, .mec-fluent-wrap .mec-price-details i:before, .mec-fluent-wrap .mec-available-tickets-details i:before, .mec-fluent-wrap .mec-booking-button, .mec-single-fluent-wrap .mec-local-time-details li:first-child:before, .mec-single-fluent-wrap .mec-local-time-details li:nth-of-type(2):before, .mec-single-fluent-wrap .mec-local-time-details li:last-child:before {
391
+ color: <?php echo esc_html($fluent_main_color); ?> !important;
392
  }
393
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]::-webkit-input-placeholder {
394
+ color: <?php echo esc_html($fluent_main_color); ?> !important;
395
  }
396
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]::-moz-placeholder {
397
+ color: <?php echo esc_html($fluent_main_color); ?> !important;
398
  }
399
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]:-ms-input-placeholder {
400
+ color: <?php echo esc_html($fluent_main_color); ?> !important;
401
  }
402
  .mec-fluent-wrap .mec-totalcal-box input[type="search"]:-moz-placeholder {
403
+ color: <?php echo esc_html($fluent_main_color); ?> !important;
404
  }
405
  .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl dt.mec-table-nullday, .mec-single-fluent-body .lity-content input::-moz-placeholder, .mec-single-fluent-body .lity-content textarea::-moz-placeholder, .mec-single-fluent-wrap input::-moz-placeholder, .mec-single-fluent-wrap textarea::-moz-placeholder {
406
  color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.3)'; ?> !important;
413
  color: #fff !important;
414
  }
415
  .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button:hover {
416
+ color: <?php echo esc_html($fluent_main_color); ?> !important;
417
  }
418
 
419
  /* BORDER COLOR */
420
  /* list view */
421
  .mec-fluent-wrap.mec-skin-list-wrap .mec-event-article {
422
+ border-top-color: <?php echo esc_html($fluent_main_color); ?> !important;
423
+ border-left-color: <?php echo esc_html($fluent_main_color); ?> !important;
424
+ border-bottom-color: <?php echo esc_html($fluent_main_color); ?> !important;
425
  }
426
  /* list view */
427
  .mec-fluent-wrap.mec-skin-grid-wrap .mec-event-article .mec-event-content {
428
+ border-right-color: <?php echo esc_html($fluent_main_color); ?> !important;
429
+ border-left-color: <?php echo esc_html($fluent_main_color); ?> !important;
430
+ border-bottom-color: <?php echo esc_html($fluent_main_color); ?> !important;
431
  }
432
  .mec-fluent-wrap.mec-skin-grid-wrap .mec-event-article .mec-event-image {
433
+ border-right-color: <?php echo esc_html($fluent_main_color); ?> !important;
434
+ border-left-color: <?php echo esc_html($fluent_main_color); ?> !important;
435
  }
436
  .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top, .mec-single-fluent-wrap .mec-next-event-details a:hover, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .nice-select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking textarea, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select, .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-wrap .mec-events-meta-group-booking select, .mec-single-fluent-wrap .mec-events-meta-group-booking textarea, .mec-single-fluent-wrap .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-event-schedule-content dl:before, .mec-single-fluent-wrap .mec-event-schedule-content dl:first-of-type:after, .mec-single-fluent-wrap .mec-event-schedule-content dl, .mec-single-fluent-wrap .mec-event-export-module.mec-frontbox .mec-event-exporting .mec-export-details ul li a:hover, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-current-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic .mec-calendar-table-head, .mec-fluent-wrap .mec-yearly-view-wrap .mec-year-container, .mec-fluent-wrap.mec-events-agenda-container .mec-events-agenda-wrap, .mec-fluent-wrap .mec-totalcal-box .mec-totalcal-view span, .mec-fluent-wrap .mec-totalcal-box input, .mec-fluent-wrap .mec-totalcal-box select, .mec-fluent-wrap .mec-totalcal-box .nice-select, .mec-fluent-wrap .mec-load-more-button:hover, .mec-fluent-wrap .mec-booking-button, .mec-fluent-wrap .mec-skin-monthly-view-month-navigator-container, .mec-fluent-wrap .mec-calendar-a-month, .mec-fluent-wrap .mec-yearly-title-sec, .mec-fluent-wrap .mec-filter-content, .mec-fluent-wrap i.mec-filter-icon, .mec-fluent-wrap .mec-text-input-search input[type="search"], .mec-fluent-wrap .mec-event-sharing-wrap .mec-event-sharing, .mec-fluent-wrap .mec-load-month, .mec-fluent-wrap .mec-load-year{
437
+ border-color: <?php echo esc_html($fluent_main_color); ?> !important;
438
  }
439
  .mec-fluent-current-time-first, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-load-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl dt:first-of-type {
440
+ border-left-color: <?php echo esc_html($fluent_main_color); ?> !important;
441
  }
442
  .mec-fluent-current-time-last, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-current-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl dt:last-of-type {
443
+ border-right-color: <?php echo esc_html($fluent_main_color); ?> !important;
444
  }
445
  .mec-fluent-wrap .mec-more-events, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic dl:last-of-type dt, .mec-fluent-wrap.mec-skin-full-calendar-container>.mec-totalcal-box .mec-totalcal-view .mec-fluent-more-views-content:before, .mec-fluent-wrap .mec-filter-content:before {
446
+ border-bottom-color: <?php echo esc_html($fluent_main_color); ?> !important;
447
  }
448
  .mec-event-sharing-wrap .mec-event-sharing:before {
449
+ border-color: <?php echo esc_html($fluent_main_color); ?> transparent transparent transparent !important;
450
  }
451
  .mec-fluent-wrap.mec-timetable-wrap .mec-cell, .mec-fluent-wrap .mec-event-meta {
452
  border-left-color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.1)'; ?> !important;
468
  border-color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.3)'; ?> !important;
469
  }
470
  .mec-fluent-wrap .mec-totalcal-box .nice-select:after {
471
+ border-right-color: <?php echo esc_html($fluent_main_color); ?> !important;
472
+ border-bottom-color: <?php echo esc_html($fluent_main_color); ?> !important;
473
  }
474
 
475
  /* BOXSHADOW */
495
  background-color: rgba<?php echo '(' . $fluent_main_color_r . ', ' . $fluent_main_color_g . ', ' . $fluent_main_color_b . ', ' . '0.1)'; ?> !important;
496
  }
497
  .mec-fluent-wrap h5.mec-more-events-header, .mec-fluent-current-time, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking button, .mec-fluent-wrap.mec-single-fluent-wrap .mec-events-meta-group-booking button {
498
+ background-color: <?php echo esc_html($fluent_main_color); ?> !important;
499
  }
500
  .mec-fluent-wrap .mec-yearly-view-wrap .mec-agenda-events-wrap {
501
  background-color: transparent !important;
518
  ?>
519
  /* MAIN BOLD COLOR - SECOND COLOR */
520
  .mec-fluent-wrap .mec-daily-view-events-left-side h5.mec-daily-today-title span:first-child, .mec-single-fluent-wrap .mec-events-meta-group-tags .mec-event-footer a:hover, .mec-single-fluent-wrap .mec-event-social li.mec-event-social-icon a:hover, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="radio"]:checked:after, .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="radio"]:checked:after, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-book-ticket-container>h4 .mec-ticket-name, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-book-ticket-container>h4 .mec-ticket-name, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .nice-select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-body .lity-content .mec-events-meta-group-booking select, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking textarea, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-events-meta-group-booking .nice-select, .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="date"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="email"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="number"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="password"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="tel"], .mec-single-fluent-wrap .mec-events-meta-group-booking input[type="text"], .mec-single-fluent-wrap .mec-events-meta-group-booking select, .mec-single-fluent-wrap .mec-events-meta-group-booking textarea, .mec-single-fluent-wrap .mec-events-meta-group-booking .StripeElement, .mec-single-fluent-wrap .mec-events-meta-group-countdown, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking h5 span, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking label, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking label.wn-checkbox-label, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-event-ticket-name, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-event-ticket-available, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-book-reg-field-p p, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-gateway-comment, .mec-single-fluent-wrap .mec-events-meta-group-booking h5 span, .mec-single-fluent-wrap .mec-events-meta-group-booking label, .mec-single-fluent-wrap .mec-events-meta-group-booking label.wn-checkbox-label, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-event-ticket-name, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-event-ticket-available, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-book-reg-field-p p, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-gateway-comment, .mec-single-fluent-wrap .mec-related-event-post .mec-date-wrap span.mec-event-day-num, .mec-single-fluent-wrap .mec-single-event-category a:hover,.mec-fluent-wrap.mec-skin-available-spot-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-cover-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-countdown-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-carousel-container .event-carousel-type2-head .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-slider-container .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap.mec-skin-masonry-container .mec-masonry .mec-date-wrap span.mec-event-day-num, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top dt.active, .mec-fluent-wrap .mec-calendar-weekly .mec-calendar-d-top .mec-current-week, .mec-fluent-wrap .mec-calendar.mec-event-calendar-classic .mec-calendar-table-head dt.active, .mec-fluent-wrap .mec-color, .mec-fluent-wrap a:hover, .mec-wrap .mec-color-hover:hover, .mec-fluent-wrap.mec-skin-full-calendar-container>.mec-totalcal-box .mec-totalcal-view span.mec-totalcalview-selected, .mec-fluent-wrap .mec-booking-button, .mec-fluent-wrap .mec-load-more-button, .mec-fluent-wrap .mec-load-month i, .mec-fluent-wrap .mec-load-year i, .mec-fluent-wrap i.mec-filter-icon, .mec-fluent-wrap .mec-filter-content i, .mec-fluent-wrap .mec-event-sharing-wrap>li:first-of-type i, .mec-fluent-wrap .mec-available-tickets-details span.mec-available-tickets-number {
521
+ color: <?php echo esc_html($fluent_bold_color); ?> !important;
522
  }
523
  .mec-fluent-wrap.mec-skin-cover-container .mec-event-sharing-wrap>li:first-of-type i, .mec-single-fluent-wrap .mec-single-event-bar .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 span.mec-event-day-num, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-event-sharing-wrap:hover li:first-child a {
524
  color: #fff !important;
526
 
527
  /* BORDER BOLD COLOR - SECOND COLOR */
528
  .mec-fluent-wrap.mec-skin-carousel-container .mec-owl-theme .owl-dots .owl-dot.active span, .mec-single-fluent-wrap .mec-event-social li.mec-event-social-icon a:hover, .mec-fluent-wrap .mec-load-month, .mec-fluent-wrap .mec-load-year, .mec-single-fluent-body .lity-content .mec-events-meta-group-booking .mec-book-available-tickets-details>.mec-book-available-tickets-details-header, .mec-single-fluent-wrap .mec-events-meta-group-booking .mec-book-available-tickets-details>.mec-book-available-tickets-details-header {
529
+ border-color: <?php echo esc_html($fluent_bold_color); ?> !important;
530
  }
531
  .mec-fluent-wrap .mec-calendar .mec-daily-view-day.mec-has-event:after, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button, .mec-fluent-wrap .mec-event-cover-fluent-type2 .mec-event-sharing-wrap:hover>li:first-child, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type2 .mec-date-wrap, .mec-fluent-wrap.mec-skin-carousel-container .mec-owl-theme .owl-dots .owl-dot.active span {
532
+ background-color: <?php echo esc_html($fluent_bold_color); ?> !important;
533
  }
534
  .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type1 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type4 .mec-booking-button:hover, .mec-fluent-wrap.mec-skin-cover-container .mec-event-cover-fluent-type3 .mec-booking-button:hover {
535
  background-color: #fff !important;
544
  ?>
545
  /* BACKGROUND COLOR */
546
  .mec-fluent-wrap .mec-yearly-view-wrap .mec-calendar.mec-yearly-calendar .mec-has-event:after, .mec-fluent-wrap .mec-load-more-button:hover, .mec-fluent-wrap .mec-load-month:hover, .mec-fluent-wrap .mec-load-year:hover, .mec-fluent-wrap .mec-booking-button:hover {
547
+ background-color: <?php echo esc_html($fluent_bg_hover_color); ?> !important;
548
  }
549
  <?php
550
  }
556
  ?>
557
  /* BACKGROUND COLOR */
558
  .mec-fluent-wrap {
559
+ background-color: <?php echo esc_html($fluent_bg_color); ?> !important;
560
  }
561
  <?php
562
  }
568
  ?>
569
  /* BACKGROUND COLOR */
570
  .mec-fluent-wrap.mec-skin-masonry-container .mec-masonry .mec-date-wrap, .mec-single-fluent-wrap .mec-event-social li.mec-event-social-icon a:hover, .mec-fluent-wrap .mec-filter-content {
571
+ background-color: <?php echo esc_html($fluent_second_bg_color); ?> !important;
572
  }
573
 
574
  .mec-fluent-wrap .mec-filter-content:after {
575
+ border-bottom-color:<?php echo esc_html($fluent_second_bg_color); ?> !important;
576
  }
577
  <?php
578
  }
app/features/mec/go-pro.php CHANGED
@@ -6,12 +6,12 @@ defined('MECEXEC') or die();
6
  <div class="welcome-head w-clearfix">
7
  <div class="w-row">
8
  <div class="w-col-sm-9">
9
- <h1> <?php echo __('Go Pro', 'modern-events-calendar-lite'); ?> </h1>
10
  </div>
11
  <div class="w-col-sm-3">
12
  <?php $styling = $this->main->get_styling(); $darkadmin_mode = ( isset($styling['dark_mode']) ) ? $styling['dark_mode'] : ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; endif; ?>
13
- <img src="<?php echo $darklogo; ?>" />
14
- <span class="w-theme-version"><?php echo __('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
15
  </div>
16
  </div>
17
  </div>
@@ -59,13 +59,13 @@ defined('MECEXEC') or die();
59
  </div>
60
  </div>
61
  <div class="welcome-content w-clearfix extra">
62
- <div class="w-row mec-pro-notice">
63
  <div class="w-col-sm-12">
64
  <div class="info-msg">
65
  <p>
66
- <?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 upgrade to the Pro version.", 'modern-events-calendar-lite'), '<strong>'.__('lite', 'modern-events-calendar-lite').'</strong>'); ?>
67
  </p>
68
- <a class="info-msg-link" href="<?php echo $this->main->get_pro_link(); ?>" target="_blank">
69
  <?php esc_html_e('GO PREMIUM', 'modern-events-calendar-lite'); ?>
70
  </a>
71
  <div class="info-msg-coupon">
6
  <div class="welcome-head w-clearfix">
7
  <div class="w-row">
8
  <div class="w-col-sm-9">
9
+ <h1> <?php echo esc_html__('Go Pro', 'modern-events-calendar-lite'); ?> </h1>
10
  </div>
11
  <div class="w-col-sm-3">
12
  <?php $styling = $this->main->get_styling(); $darkadmin_mode = ( isset($styling['dark_mode']) ) ? $styling['dark_mode'] : ''; if ($darkadmin_mode == 1): $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w2.png'; else: $darklogo = plugin_dir_url(__FILE__ ) . '../../../assets/img/mec-logo-w.png'; endif; ?>
13
+ <img src="<?php echo esc_url($darklogo); ?>" />
14
+ <span class="w-theme-version"><?php echo esc_html__('Version', 'modern-events-calendar-lite'); ?> <?php echo MEC_VERSION; ?></span>
15
  </div>
16
  </div>
17
  </div>
59
  </div>
60
  </div>
61
  <div class="welcome-content w-clearfix extra">
62
+ <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
63
  <div class="w-col-sm-12">
64
  <div class="info-msg">
65
  <p>
66
+ <?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 upgrade to the Pro version.", 'modern-events-calendar-lite'), '<strong>'.esc_html__('lite', 'modern-events-calendar-lite').'</strong>'); ?>
67
  </p>
68
+ <a class="info-msg-link" href="<?php echo esc_url($this->main->get_pro_link()); ?>" target="_blank">
69
  <?php esc_html_e('GO PREMIUM', 'modern-events-calendar-lite'); ?>
70
  </a>
71
  <div class="info-msg-coupon">
app/features/mec/ie.php CHANGED
@@ -17,21 +17,21 @@ defined('MECEXEC') or die();
17
 
18
  <div id="wns-be-content">
19
  <div class="wns-be-group-tab">
20
- <h2><?php _e('Import', 'modern-events-calendar-lite'); ?></h2>
21
- <p><?php _e('Insert your backup files below and press import to restore your site\'s options to the last backup.', 'modern-events-calendar-lite'); ?></p>
22
- <p style="color:#d80000; margin-bottom: 25px;"><?php _e('WARNING! Restoring backup will overwrite all of your current option values. Caution Indeed.', 'modern-events-calendar-lite'); ?></p>
23
  <div class="mec-import-settings-wrap">
24
  <textarea class="mec-import-settings-content" placeholder="<?php esc_html_e('Please paste your options here', 'modern-events-calendar-lite'); ?>"></textarea>
25
  </div>
26
- <a class="mec-import-settings" href="#"><?php _e("Import Settings", 'modern-events-calendar-lite'); ?></a>
27
  <div class="mec-import-options-notification"></div>
28
 
29
- <h2 style="margin-top: 40px;"><?php _e('Export', 'modern-events-calendar-lite'); ?></h2>
30
  <?php
31
  $nonce = wp_create_nonce("mec_settings_download");
32
  $export_link = admin_url('admin-ajax.php?action=download_settings&nonce='.$nonce);
33
  ?>
34
- <a class="mec-export-settings" href="<?php echo $export_link; ?>"><?php _e("Download Settings", 'modern-events-calendar-lite'); ?></a>
35
  </div>
36
  </div>
37
 
17
 
18
  <div id="wns-be-content">
19
  <div class="wns-be-group-tab">
20
+ <h2><?php esc_html_e('Import', 'modern-events-calendar-lite'); ?></h2>
21
+ <p><?php esc_html_e('Insert your backup files below and press import to restore your site\'s options to the last backup.', 'modern-events-calendar-lite'); ?></p>
22
+ <p style="color:#d80000; margin-bottom: 25px;"><?php esc_html_e('WARNING! Restoring backup will overwrite all of your current option values. Caution Indeed.', 'modern-events-calendar-lite'); ?></p>
23
  <div class="mec-import-settings-wrap">
24
  <textarea class="mec-import-settings-content" placeholder="<?php esc_html_e('Please paste your options here', 'modern-events-calendar-lite'); ?>"></textarea>
25
  </div>
26
+ <a class="mec-import-settings" href="#"><?php esc_html_e("Import Settings", 'modern-events-calendar-lite'); ?></a>
27
  <div class="mec-import-options-notification"></div>
28
 
29
+ <h2 style="margin-top: 40px;"><?php esc_html_e('Export', 'modern-events-calendar-lite'); ?></h2>
30
  <?php
31
  $nonce = wp_create_nonce("mec_settings_download");
32
  $export_link = admin_url('admin-ajax.php?action=download_settings&nonce='.$nonce);
33
  ?>
34
+ <a class="mec-export-settings" href="<?php echo esc_url($export_link); ?>"><?php esc_html_e("Download Settings", 'modern-events-calendar-lite'); ?></a>
35
  </div>
36
  </div>
37
 
app/features/mec/integrations.php CHANGED
@@ -21,7 +21,7 @@ if(!is_array($categories)) $categories = array();
21
  <i class="mec-sl-magnifier"></i>
22
  <input id="mec-search-settings" type="text" placeholder="<?php esc_html_e('Search...' ,'modern-events-calendar-lite'); ?>">
23
  </div>
24
- <a id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
25
  </div>
26
 
27
  <div class="wns-be-sidebar">
@@ -39,51 +39,51 @@ if(!is_array($categories)) $categories = array();
39
  <?php if($this->main->getPRO()): ?>
40
 
41
  <div id="mailchimp_option" class="mec-options-fields active">
42
- <h4 class="mec-form-subtitle"><?php _e('Mailchimp', 'modern-events-calendar-lite'); ?></h4>
43
  <div class="mec-form-row">
44
  <label>
45
  <input type="hidden" name="mec[settings][mchimp_status]" value="0" />
46
- <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'); ?>
47
  </label>
48
  </div>
49
  <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'; ?>">
50
  <div class="mec-form-row">
51
- <label class="mec-col-3" for="mec_settings_mchimp_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
52
  <div class="mec-col-9">
53
  <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'] : ''); ?>" />
54
  <span class="mec-tooltip">
55
  <div class="box left">
56
- <h5 class="title"><?php _e('API Key', 'modern-events-calendar-lite'); ?></h5>
57
- <div class="content"><p><?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/mailchimp-integration/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
58
  </div>
59
  <i title="" class="dashicons-before dashicons-editor-help"></i>
60
  </span>
61
  </div>
62
  </div>
63
  <div class="mec-form-row">
64
- <label class="mec-col-3" for="mec_settings_mchimp_list_id"><?php _e('List ID', 'modern-events-calendar-lite'); ?></label>
65
  <div class="mec-col-9">
66
  <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'] : ''); ?>" />
67
  <span class="mec-tooltip">
68
  <div class="box left">
69
- <h5 class="title"><?php _e('List ID', 'modern-events-calendar-lite'); ?></h5>
70
- <div class="content"><p><?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/mailchimp-integration/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
71
  </div>
72
  <i title="" class="dashicons-before dashicons-editor-help"></i>
73
  </span>
74
  </div>
75
  </div>
76
  <div class="mec-form-row">
77
- <label class="mec-col-3" for="mec_settings_mchimp_subscription_status"><?php _e('Subscription Status', 'modern-events-calendar-lite'); ?></label>
78
  <div class="mec-col-9">
79
  <select name="mec[settings][mchimp_subscription_status]" id="mec_settings_mchimp_subscription_status">
80
- <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>
81
- <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>
82
  </select>
83
  <span class="mec-tooltip">
84
  <div class="box left">
85
- <h5 class="title"><?php _e('Subscription Status', 'modern-events-calendar-lite'); ?></h5>
86
- <div class="content"><p><?php esc_attr_e('If you choose "Subscribe by verification" then an email will be send to the user by mailchimp for subscription verification.', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/mailchimp-integration/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
87
  </div>
88
  <i title="" class="dashicons-before dashicons-editor-help"></i>
89
  </span>
@@ -92,29 +92,29 @@ if(!is_array($categories)) $categories = array();
92
  <div class="mec-form-row">
93
  <label>
94
  <input type="hidden" name="mec[settings][mchimp_segment_status]" value="0" />
95
- <input value="1" type="checkbox" name="mec[settings][mchimp_segment_status]" <?php if(isset($settings['mchimp_segment_status']) and $settings['mchimp_segment_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Segment Creation by Event Title and Booking Date', 'modern-events-calendar-lite'); ?>
96
  </label>
97
  </div>
98
  </div>
99
  </div>
100
 
101
  <div id="campaign_monitor_option" class="mec-options-fields">
102
- <h4 class="mec-form-subtitle"><?php _e('Campaign Monitor', 'modern-events-calendar-lite'); ?></h4>
103
  <div class="mec-form-row">
104
  <label>
105
  <input type="hidden" name="mec[settings][campm_status]" value="0" />
106
- <input onchange="jQuery('#mec_campm_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][campm_status]" <?php if(isset($settings['campm_status']) and $settings['campm_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Campaign Monitor Integration', 'modern-events-calendar-lite'); ?>
107
  </label>
108
  </div>
109
  <div id="mec_campm_status_container_toggle" class="<?php if((isset($settings['campm_status']) and !$settings['campm_status']) or !isset($settings['campm_status'])) echo 'mec-util-hidden'; ?>">
110
  <div class="mec-form-row">
111
- <label class="mec-col-3" for="mec_settings_campm_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
112
  <div class="mec-col-9">
113
  <input type="text" id="mec_settings_campm_api_key" name="mec[settings][campm_api_key]" value="<?php echo ((isset($settings['campm_api_key']) and trim($settings['campm_api_key']) != '') ? $settings['campm_api_key'] : ''); ?>" />
114
  </div>
115
  </div>
116
  <div class="mec-form-row">
117
- <label class="mec-col-3" for="mec_settings_campm_list_id"><?php _e('List ID', 'modern-events-calendar-lite'); ?></label>
118
  <div class="mec-col-9">
119
  <input type="text" id="mec_settings_campm_list_id" name="mec[settings][campm_list_id]" value="<?php echo ((isset($settings['campm_list_id']) and trim($settings['campm_list_id']) != '') ? $settings['campm_list_id'] : ''); ?>" />
120
  </div>
@@ -123,22 +123,22 @@ if(!is_array($categories)) $categories = array();
123
  </div>
124
 
125
  <div id="mailerlite_option" class="mec-options-fields">
126
- <h4 class="mec-form-subtitle"><?php _e('MailerLite', 'modern-events-calendar-lite'); ?></h4>
127
  <div class="mec-form-row">
128
  <label>
129
  <input type="hidden" name="mec[settings][mailerlite_status]" value="0" />
130
- <input onchange="jQuery('#mec_mailerlite_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][mailerlite_status]" <?php if(isset($settings['mailerlite_status']) and $settings['mailerlite_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable MailerLite Integration', 'modern-events-calendar-lite'); ?>
131
  </label>
132
  </div>
133
  <div id="mec_mailerlite_status_container_toggle" class="<?php if((isset($settings['mailerlite_status']) and !$settings['mailerlite_status']) or !isset($settings['mailerlite_status'])) echo 'mec-util-hidden'; ?>">
134
  <div class="mec-form-row">
135
- <label class="mec-col-3" for="mec_settings_mailerlite_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
136
  <div class="mec-col-9">
137
  <input type="text" id="mec_settings_mailerlite_api_key" name="mec[settings][mailerlite_api_key]" value="<?php echo ((isset($settings['mailerlite_api_key']) and trim($settings['mailerlite_api_key']) != '') ? $settings['mailerlite_api_key'] : ''); ?>" />
138
  </div>
139
  </div>
140
  <div class="mec-form-row">
141
- <label class="mec-col-3" for="mec_settings_mailerlite_list_id"><?php _e('Group ID', 'modern-events-calendar-lite'); ?></label>
142
  <div class="mec-col-9">
143
  <input type="text" id="mec_settings_mailerlite_list_id" name="mec[settings][mailerlite_list_id]" value="<?php echo ((isset($settings['mailerlite_list_id']) and trim($settings['mailerlite_list_id']) != '') ? $settings['mailerlite_list_id'] : ''); ?>" />
144
  </div>
@@ -147,22 +147,22 @@ if(!is_array($categories)) $categories = array();
147
  </div>
148
 
149
  <div id="constantcontact_option" class="mec-options-fields">
150
- <h4 class="mec-form-subtitle"><?php _e('Constant Contact', 'modern-events-calendar-lite'); ?></h4>
151
  <div class="mec-form-row">
152
  <label>
153
  <input type="hidden" name="mec[settings][constantcontact_status]" value="0" />
154
- <input onchange="jQuery('#mec_constantcontact_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][constantcontact_status]" <?php if(isset($settings['constantcontact_status']) and $settings['constantcontact_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable constantcontact Integration', 'modern-events-calendar-lite'); ?>
155
  </label>
156
  </div>
157
  <div id="mec_constantcontact_status_container_toggle" class="<?php if((isset($settings['constantcontact_status']) and !$settings['constantcontact_status']) or !isset($settings['constantcontact_status'])) echo 'mec-util-hidden'; ?>">
158
  <div class="mec-form-row">
159
- <label class="mec-col-3" for="mec_settings_constantcontact_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
160
  <div class="mec-col-9">
161
  <input type="text" id="mec_settings_constantcontact_api_key" name="mec[settings][constantcontact_api_key]" value="<?php echo ((isset($settings['constantcontact_api_key']) and trim($settings['constantcontact_api_key']) != '') ? $settings['constantcontact_api_key'] : ''); ?>" />
162
  </div>
163
  </div>
164
  <div class="mec-form-row">
165
- <label class="mec-col-3" for="mec_settings_constantcontact_access_token"><?php _e('Access Token', 'modern-events-calendar-lite'); ?></label>
166
  <div class="mec-col-9">
167
  <input type="text" id="mec_settings_constantcontact_access_token" name="mec[settings][constantcontact_access_token]" value="<?php echo ((isset($settings['constantcontact_access_token']) and trim($settings['constantcontact_access_token']) != '') ? $settings['constantcontact_access_token'] : ''); ?>" />
168
  </div>
@@ -182,14 +182,14 @@ if(!is_array($categories)) $categories = array();
182
  ?>
183
 
184
  <div class="mec-form-row">
185
- <label class="mec-col-3" for="mec_settings_constantcontact_list_id"><?php _e('Select List', 'modern-events-calendar-lite'); ?></label>
186
  <div class="mec-col-9">
187
  <select name="mec[settings][constantcontact_list_id]" id="mec_settings_constantcontact_list_id">
188
  <?php
189
  if ( isset($lists) and !empty($lists)) {
190
  foreach (json_decode($lists) as $list) {
191
  ?>
192
- <option <?php if(isset($settings['constantcontact_list_id']) and $list->id == $settings['constantcontact_list_id']) echo 'selected="selected"'; ?> value="<?php echo $list->id ; ?>"><?php echo $list->name ; ?></option>
193
  <?php
194
  }
195
  }
@@ -197,7 +197,7 @@ if(!is_array($categories)) $categories = array();
197
  </select>
198
  <span class="mec-tooltip">
199
  <div class="box left">
200
- <h5 class="title"><?php _e('Select List', 'modern-events-calendar-lite'); ?></h5>
201
  <div class="content"><p><?php esc_attr_e("Please fill in the API key and Access Token field and save settings. after that, please refresh the page and select a list.", 'modern-events-calendar-lite'); ?></p></div>
202
  </div>
203
  <i title="" class="dashicons-before dashicons-editor-help"></i>
@@ -208,28 +208,28 @@ if(!is_array($categories)) $categories = array();
208
  </div>
209
 
210
  <div id="active_campaign_option" class="mec-options-fields">
211
- <h4 class="mec-form-subtitle"><?php _e('Active Campaign', 'modern-events-calendar-lite'); ?></h4>
212
  <div class="mec-form-row">
213
  <label>
214
  <input type="hidden" name="mec[settings][active_campaign_status]" value="0" />
215
- <input onchange="jQuery('#mec_active_campaign_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][active_campaign_status]" <?php if(isset($settings['active_campaign_status']) and $settings['active_campaign_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Active Campaign Integration', 'modern-events-calendar-lite'); ?>
216
  </label>
217
  </div>
218
  <div id="mec_active_campaign_status_container_toggle" class="<?php if((isset($settings['active_campaign_status']) and !$settings['active_campaign_status']) or !isset($settings['active_campaign_status'])) echo 'mec-util-hidden'; ?>">
219
  <div class="mec-form-row">
220
- <label class="mec-col-3" for="mec_settings_active_campaign_api_url"><?php _e('API URL', 'modern-events-calendar-lite'); ?></label>
221
  <div class="mec-col-9">
222
  <input type="text" id="mec_settings_active_campaign_api_url" name="mec[settings][active_campaign_api_url]" value="<?php echo ((isset($settings['active_campaign_api_url']) and trim($settings['active_campaign_api_url']) != '') ? $settings['active_campaign_api_url'] : ''); ?>" />
223
  </div>
224
  </div>
225
  <div class="mec-form-row">
226
- <label class="mec-col-3" for="mec_settings_active_campaign_api_key"><?php _e('API Key', 'modern-events-calendar-lite'); ?></label>
227
  <div class="mec-col-9">
228
  <input type="text" id="mec_settings_active_campaign_api_key" name="mec[settings][active_campaign_api_key]" value="<?php echo ((isset($settings['active_campaign_api_key']) and trim($settings['active_campaign_api_key']) != '') ? $settings['active_campaign_api_key'] : ''); ?>" />
229
  </div>
230
  </div>
231
  <div class="mec-form-row">
232
- <label class="mec-col-3" for="mec_settings_active_campaign_list_id"><?php _e('List ID', 'modern-events-calendar-lite'); ?></label>
233
  <div class="mec-col-9">
234
  <input type="text" id="mec_settings_active_campaign_list_id" name="mec[settings][active_campaign_list_id]" value="<?php echo ((isset($settings['active_campaign_list_id']) and trim($settings['active_campaign_list_id']) != '') ? $settings['active_campaign_list_id'] : ''); ?>" />
235
  </div>
@@ -238,42 +238,42 @@ if(!is_array($categories)) $categories = array();
238
  </div>
239
 
240
  <div id="aweber_option" class="mec-options-fields">
241
- <h4 class="mec-form-subtitle"><?php _e('AWeber', 'modern-events-calendar-lite'); ?></h4>
242
  <div class="mec-form-row">
243
  <label>
244
  <input type="hidden" name="mec[settings][aweber_status]" value="0" />
245
- <input onchange="jQuery('#mec_aweber_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][aweber_status]" <?php if(isset($settings['aweber_status']) and $settings['aweber_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable AWeber Integration', 'modern-events-calendar-lite'); ?>
246
  </label>
247
  </div>
248
  <div id="mec_aweber_status_container_toggle" class="<?php if((isset($settings['aweber_status']) and !$settings['aweber_status']) or !isset($settings['aweber_status'])) echo 'mec-util-hidden'; ?>">
249
  <div class="mec-form-row">
250
- <label class="mec-col-2" for="mec_settings_aweber_list_id"><?php _e('List ID', 'modern-events-calendar-lite'); ?></label>
251
  <div class="mec-col-7">
252
  <input type="text" id="mec_settings_aweber_list_id" name="mec[settings][aweber_list_id]" value="<?php echo ((isset($settings['aweber_list_id']) and trim($settings['aweber_list_id']) != '') ? $settings['aweber_list_id'] : ''); ?>" />
253
  </div>
254
  </div>
255
  <p class="description"><?php echo sprintf(__("%s plugin should be installed and connected to your AWeber account.", 'modern-events-calendar-lite'), '<a href="https://wordpress.org/plugins/aweber-web-form-widget/" target="_blank">AWeber for WordPress</a>'); ?></p>
256
- <p class="description"><?php echo sprintf(__('More information about the list ID can be found %s.', 'modern-events-calendar-lite'), '<a href="https://help.aweber.com/hc/en-us/articles/204028426" target="_blank">'.__('here', 'modern-events-calendar-lite').'</a>'); ?></p>
257
  </div>
258
  </div>
259
 
260
  <div id="mailpoet_option" class="mec-options-fields">
261
- <h4 class="mec-form-subtitle"><?php _e('MailPoet', 'modern-events-calendar-lite'); ?></h4>
262
  <div class="mec-form-row">
263
  <label>
264
  <input type="hidden" name="mec[settings][mailpoet_status]" value="0" />
265
- <input onchange="jQuery('#mec_mailpoet_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][mailpoet_status]" <?php if(isset($settings['mailpoet_status']) and $settings['mailpoet_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable MailPoet Integration', 'modern-events-calendar-lite'); ?>
266
  </label>
267
  </div>
268
  <div id="mec_mailpoet_status_container_toggle" class="<?php if((isset($settings['mailpoet_status']) and !$settings['mailpoet_status']) or !isset($settings['mailpoet_status'])) echo 'mec-util-hidden'; ?>">
269
  <?php if(class_exists(\MailPoet\API\API::class)): $mailpoet_api = \MailPoet\API\API::MP('v1'); $mailpoets_lists = $mailpoet_api->getLists(); ?>
270
  <div class="mec-form-row">
271
- <label class="mec-col-3" for="mec_settings_mailpoet_list_id"><?php _e('List', 'modern-events-calendar-lite'); ?></label>
272
  <div class="mec-col-9">
273
  <select name="mec[settings][mailpoet_list_id]" id="mec_settings_mailpoet_list_id">
274
  <option value="">-----</option>
275
  <?php foreach($mailpoets_lists as $mailpoets_list): ?>
276
- <option value="<?php echo $mailpoets_list['id']; ?>" <?php echo ((isset($settings['mailpoet_list_id']) and trim($settings['mailpoet_list_id']) == $mailpoets_list['id']) ? 'selected="selected"' : ''); ?>><?php echo $mailpoets_list['name']; ?></option>
277
  <?php endforeach; ?>
278
  </select>
279
  </div>
@@ -284,22 +284,22 @@ if(!is_array($categories)) $categories = array();
284
  </div>
285
 
286
  <div id="sendfox_option" class="mec-options-fields">
287
- <h4 class="mec-form-subtitle"><?php _e('Sendfox', 'modern-events-calendar-lite'); ?></h4>
288
  <div class="mec-form-row">
289
  <label>
290
  <input type="hidden" name="mec[settings][sendfox_status]" value="0" />
291
- <input onchange="jQuery('#mec_sendfox_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][sendfox_status]" <?php if(isset($settings['sendfox_status']) and $settings['sendfox_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Sendfox Integration', 'modern-events-calendar-lite'); ?>
292
  </label>
293
  </div>
294
  <div id="mec_sendfox_status_container_toggle" class="<?php if((isset($settings['sendfox_status']) and !$settings['sendfox_status']) or !isset($settings['sendfox_status'])) echo 'mec-util-hidden'; ?>">
295
 
296
  <?php if(function_exists('gb_sf4wp_get_lists')): $sendfox_lists = gb_sf4wp_get_lists(); ?>
297
  <div class="mec-form-row">
298
- <label class="mec-col-3" for="mec_settings_sendfox_list_id"><?php _e('List ID', 'modern-events-calendar-lite'); ?></label>
299
  <div class="mec-col-9">
300
  <select name="mec[settings][sendfox_list_id]" id="mec_settings_sendfox_list_id">
301
  <?php foreach($sendfox_lists['result']['data'] as $sendfox_list): ?>
302
- <option value="<?php echo $sendfox_list['id']; ?>" <?php echo ((isset($settings['sendfox_list_id']) and trim($settings['sendfox_list_id']) == $sendfox_list['id']) ? 'selected="selected"' : ''); ?>><?php echo $sendfox_list['name']; ?></option>
303
  <?php endforeach; ?>
304
  </select>
305
  </div>
@@ -310,22 +310,22 @@ if(!is_array($categories)) $categories = array();
310
  </div>
311
 
312
  <div id="buddy_option" class="mec-options-fields">
313
- <h4 class="mec-form-subtitle"><?php _e('BuddyPress', 'modern-events-calendar-lite'); ?></h4>
314
  <div class="mec-form-row">
315
  <label>
316
  <input type="hidden" name="mec[settings][bp_status]" value="0" />
317
- <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'); ?>
318
  </label>
319
  </div>
320
  <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'; ?>">
321
  <div class="mec-form-row">
322
  <label>
323
  <input type="hidden" name="mec[settings][bp_show_]" value="0" />
324
- <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'); ?>
325
  </label>
326
  </div>
327
  <div class="mec-form-row">
328
- <label class="mec-col-3" for="mec_settings_bp_attendees_module_limit"><?php _e('Attendee Limit', 'modern-events-calendar-lite'); ?></label>
329
  <div class="mec-col-9">
330
  <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'); ?>" />
331
  </div>
@@ -333,39 +333,39 @@ if(!is_array($categories)) $categories = array();
333
  <div class="mec-form-row">
334
  <label>
335
  <input type="hidden" name="mec[settings][bp_add_activity]" value="0" />
336
- <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'); ?>
337
  </label>
338
  </div>
339
  <div class="mec-form-row">
340
  <label>
341
  <input type="hidden" name="mec[settings][bp_profile_menu]" value="0" />
342
- <input value="1" type="checkbox" name="mec[settings][bp_profile_menu]" <?php if(isset($settings['bp_profile_menu']) and $settings['bp_profile_menu']) echo 'checked="checked"'; ?> /> <?php _e('Add events menu to user profile', 'modern-events-calendar-lite'); ?>
343
  </label>
344
  </div>
345
  </div>
346
  </div>
347
  <div id="learndash_options" class="mec-options-fields">
348
- <h4 class="mec-form-subtitle"><?php _e('LearnDash', 'modern-events-calendar-lite'); ?></h4>
349
  <div class="mec-form-row">
350
  <label>
351
  <input type="hidden" name="mec[settings][ld_status]" value="0" />
352
- <input value="1" type="checkbox" name="mec[settings][ld_status]" <?php if(isset($settings['ld_status']) and $settings['ld_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable LearnDash Integration', 'modern-events-calendar-lite'); ?>
353
  </label>
354
  </div>
355
  <p class="description"><?php esc_html_e('LearnDash plugin should be installed and activated.'); ?></p>
356
  </div>
357
  <div id="pmp_options" class="mec-options-fields">
358
- <h4 class="mec-form-subtitle"><?php _e('PaidMembership Pro', 'modern-events-calendar-lite'); ?></h4>
359
  <div class="mec-form-row">
360
  <label>
361
  <input type="hidden" name="mec[settings][pmp_status]" value="0" />
362
- <input value="1" type="checkbox" name="mec[settings][pmp_status]" <?php if(isset($settings['pmp_status']) and $settings['pmp_status']) echo 'checked="checked"'; ?> /> <?php _e('Enable Event Restriction', 'modern-events-calendar-lite'); ?>
363
  </label>
364
  </div>
365
  <div class="mec-form-row">
366
  <label>
367
  <input type="hidden" name="mec[settings][pmp_booking_restriction]" value="0" />
368
- <input value="1" type="checkbox" name="mec[settings][pmp_booking_restriction]" <?php if(isset($settings['pmp_booking_restriction']) and $settings['pmp_booking_restriction']) echo 'checked="checked"'; ?> onchange="jQuery('#mec_integration_pmp_booking_restriction').toggleClass('mec-util-hidden');" /> <?php _e('Enable Booking Restriction', 'modern-events-calendar-lite'); ?>
369
  </label>
370
  </div>
371
  <div class="mec-form-row <?php if(!isset($settings['pmp_booking_restriction']) or (isset($settings['pmp_booking_restriction']) and !$settings['pmp_booking_restriction'])) echo 'mec-util-hidden'; ?>" id="mec_integration_pmp_booking_restriction">
@@ -373,12 +373,12 @@ if(!is_array($categories)) $categories = array();
373
  <ul>
374
  <?php foreach($levels as $level): $level_options = ((isset($pmp_booking[$level->id]) and is_array($pmp_booking[$level->id])) ? $pmp_booking[$level->id] : array()); ?>
375
  <li>
376
- <h5><?php echo $level->name; ?></h5>
377
  <ul>
378
  <?php foreach($categories as $category): ?>
379
  <li>
380
  <label>
381
- <input value="<?php echo $category->term_id; ?>" type="checkbox" name="mec[settings][pmp_booking][<?php echo $level->id; ?>][]" <?php if(in_array($category->term_id, $level_options)) echo 'checked="checked"'; ?> /> <?php echo $category->name; ?>
382
  </label>
383
  </li>
384
  <?php endforeach; ?>
@@ -397,7 +397,7 @@ if(!is_array($categories)) $categories = array();
397
 
398
  <div class="mec-options-fields">
399
  <?php wp_nonce_field('mec_options_form'); ?>
400
- <button style="display: none;" id="mec_integrations_form_button" class="button button-primary mec-button-primary" type="submit"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></button>
401
  </div>
402
  </form>
403
 
@@ -407,7 +407,7 @@ if(!is_array($categories)) $categories = array();
407
  </div>
408
 
409
  <div id="wns-be-footer">
410
- <a id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
411
  </div>
412
 
413
  </div>
21
  <i class="mec-sl-magnifier"></i>
22
  <input id="mec-search-settings" type="text" placeholder="<?php esc_html_e('Search...' ,'modern-events-calendar-lite'); ?>">
23
  </div>
24
+ <a id="" class="dpr-btn dpr-save-btn"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></a>
25
  </div>
26
 
27
  <div class="wns-be-sidebar">
39
  <?php if($this->main->getPRO()): ?>
40
 
41
  <div id="mailchimp_option" class="mec-options-fields active">
42
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Mailchimp', 'modern-events-calendar-lite'); ?></h4>
43
  <div class="mec-form-row">
44
  <label>
45
  <input type="hidden" name="mec[settings][mchimp_status]" value="0" />
46
+ <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 esc_html_e('Enable Mailchimp Integration', 'modern-events-calendar-lite'); ?>
47
  </label>
48
  </div>
49
  <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'; ?>">
50
  <div class="mec-form-row">
51
+ <label class="mec-col-3" for="mec_settings_mchimp_api_key"><?php esc_html_e('API Key', 'modern-events-calendar-lite'); ?></label>
52
  <div class="mec-col-9">
53
  <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'] : ''); ?>" />
54
  <span class="mec-tooltip">
55
  <div class="box left">
56
+ <h5 class="title"><?php esc_html_e('API Key', 'modern-events-calendar-lite'); ?></h5>
57
+ <div class="content"><p><?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/mailchimp-integration/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
58
  </div>
59
  <i title="" class="dashicons-before dashicons-editor-help"></i>
60
  </span>
61
  </div>
62
  </div>
63
  <div class="mec-form-row">
64
+ <label class="mec-col-3" for="mec_settings_mchimp_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
65
  <div class="mec-col-9">
66
  <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'] : ''); ?>" />
67
  <span class="mec-tooltip">
68
  <div class="box left">
69
+ <h5 class="title"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></h5>
70
+ <div class="content"><p><?php esc_attr_e("Required!", 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/mailchimp-integration/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
71
  </div>
72
  <i title="" class="dashicons-before dashicons-editor-help"></i>
73
  </span>
74
  </div>
75
  </div>
76
  <div class="mec-form-row">
77
+ <label class="mec-col-3" for="mec_settings_mchimp_subscription_status"><?php esc_html_e('Subscription Status', 'modern-events-calendar-lite'); ?></label>
78
  <div class="mec-col-9">
79
  <select name="mec[settings][mchimp_subscription_status]" id="mec_settings_mchimp_subscription_status">
80
+ <option value="subscribed" <?php if(isset($settings['mchimp_subscription_status']) and $settings['mchimp_subscription_status'] == 'subscribed') echo 'selected="selected"'; ?>><?php esc_html_e('Subscribe automatically', 'modern-events-calendar-lite'); ?></option>
81
+ <option value="pending" <?php if(isset($settings['mchimp_subscription_status']) and $settings['mchimp_subscription_status'] == 'pending') echo 'selected="selected"'; ?>><?php esc_html_e('Subscribe by verification', 'modern-events-calendar-lite'); ?></option>
82
  </select>
83
  <span class="mec-tooltip">
84
  <div class="box left">
85
+ <h5 class="title"><?php esc_html_e('Subscription Status', 'modern-events-calendar-lite'); ?></h5>
86
+ <div class="content"><p><?php esc_attr_e('If you choose "Subscribe by verification" then an email will be send to the user by mailchimp for subscription verification.', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/mailchimp-integration/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
87
  </div>
88
  <i title="" class="dashicons-before dashicons-editor-help"></i>
89
  </span>
92
  <div class="mec-form-row">
93
  <label>
94
  <input type="hidden" name="mec[settings][mchimp_segment_status]" value="0" />
95
+ <input value="1" type="checkbox" name="mec[settings][mchimp_segment_status]" <?php if(isset($settings['mchimp_segment_status']) and $settings['mchimp_segment_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Segment Creation by Event Title and Booking Date', 'modern-events-calendar-lite'); ?>
96
  </label>
97
  </div>
98
  </div>
99
  </div>
100
 
101
  <div id="campaign_monitor_option" class="mec-options-fields">
102
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Campaign Monitor', 'modern-events-calendar-lite'); ?></h4>
103
  <div class="mec-form-row">
104
  <label>
105
  <input type="hidden" name="mec[settings][campm_status]" value="0" />
106
+ <input onchange="jQuery('#mec_campm_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][campm_status]" <?php if(isset($settings['campm_status']) and $settings['campm_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Campaign Monitor Integration', 'modern-events-calendar-lite'); ?>
107
  </label>
108
  </div>
109
  <div id="mec_campm_status_container_toggle" class="<?php if((isset($settings['campm_status']) and !$settings['campm_status']) or !isset($settings['campm_status'])) echo 'mec-util-hidden'; ?>">
110
  <div class="mec-form-row">
111
+ <label class="mec-col-3" for="mec_settings_campm_api_key"><?php esc_html_e('API Key', 'modern-events-calendar-lite'); ?></label>
112
  <div class="mec-col-9">
113
  <input type="text" id="mec_settings_campm_api_key" name="mec[settings][campm_api_key]" value="<?php echo ((isset($settings['campm_api_key']) and trim($settings['campm_api_key']) != '') ? $settings['campm_api_key'] : ''); ?>" />
114
  </div>
115
  </div>
116
  <div class="mec-form-row">
117
+ <label class="mec-col-3" for="mec_settings_campm_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
118
  <div class="mec-col-9">
119
  <input type="text" id="mec_settings_campm_list_id" name="mec[settings][campm_list_id]" value="<?php echo ((isset($settings['campm_list_id']) and trim($settings['campm_list_id']) != '') ? $settings['campm_list_id'] : ''); ?>" />
120
  </div>
123
  </div>
124
 
125
  <div id="mailerlite_option" class="mec-options-fields">
126
+ <h4 class="mec-form-subtitle"><?php esc_html_e('MailerLite', 'modern-events-calendar-lite'); ?></h4>
127
  <div class="mec-form-row">
128
  <label>
129
  <input type="hidden" name="mec[settings][mailerlite_status]" value="0" />
130
+ <input onchange="jQuery('#mec_mailerlite_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][mailerlite_status]" <?php if(isset($settings['mailerlite_status']) and $settings['mailerlite_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable MailerLite Integration', 'modern-events-calendar-lite'); ?>
131
  </label>
132
  </div>
133
  <div id="mec_mailerlite_status_container_toggle" class="<?php if((isset($settings['mailerlite_status']) and !$settings['mailerlite_status']) or !isset($settings['mailerlite_status'])) echo 'mec-util-hidden'; ?>">
134
  <div class="mec-form-row">
135
+ <label class="mec-col-3" for="mec_settings_mailerlite_api_key"><?php esc_html_e('API Key', 'modern-events-calendar-lite'); ?></label>
136
  <div class="mec-col-9">
137
  <input type="text" id="mec_settings_mailerlite_api_key" name="mec[settings][mailerlite_api_key]" value="<?php echo ((isset($settings['mailerlite_api_key']) and trim($settings['mailerlite_api_key']) != '') ? $settings['mailerlite_api_key'] : ''); ?>" />
138
  </div>
139
  </div>
140
  <div class="mec-form-row">
141
+ <label class="mec-col-3" for="mec_settings_mailerlite_list_id"><?php esc_html_e('Group ID', 'modern-events-calendar-lite'); ?></label>
142
  <div class="mec-col-9">
143
  <input type="text" id="mec_settings_mailerlite_list_id" name="mec[settings][mailerlite_list_id]" value="<?php echo ((isset($settings['mailerlite_list_id']) and trim($settings['mailerlite_list_id']) != '') ? $settings['mailerlite_list_id'] : ''); ?>" />
144
  </div>
147
  </div>
148
 
149
  <div id="constantcontact_option" class="mec-options-fields">
150
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Constant Contact', 'modern-events-calendar-lite'); ?></h4>
151
  <div class="mec-form-row">
152
  <label>
153
  <input type="hidden" name="mec[settings][constantcontact_status]" value="0" />
154
+ <input onchange="jQuery('#mec_constantcontact_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][constantcontact_status]" <?php if(isset($settings['constantcontact_status']) and $settings['constantcontact_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable constantcontact Integration', 'modern-events-calendar-lite'); ?>
155
  </label>
156
  </div>
157
  <div id="mec_constantcontact_status_container_toggle" class="<?php if((isset($settings['constantcontact_status']) and !$settings['constantcontact_status']) or !isset($settings['constantcontact_status'])) echo 'mec-util-hidden'; ?>">
158
  <div class="mec-form-row">
159
+ <label class="mec-col-3" for="mec_settings_constantcontact_api_key"><?php esc_html_e('API Key', 'modern-events-calendar-lite'); ?></label>
160
  <div class="mec-col-9">
161
  <input type="text" id="mec_settings_constantcontact_api_key" name="mec[settings][constantcontact_api_key]" value="<?php echo ((isset($settings['constantcontact_api_key']) and trim($settings['constantcontact_api_key']) != '') ? $settings['constantcontact_api_key'] : ''); ?>" />
162
  </div>
163
  </div>
164
  <div class="mec-form-row">
165
+ <label class="mec-col-3" for="mec_settings_constantcontact_access_token"><?php esc_html_e('Access Token', 'modern-events-calendar-lite'); ?></label>
166
  <div class="mec-col-9">
167
  <input type="text" id="mec_settings_constantcontact_access_token" name="mec[settings][constantcontact_access_token]" value="<?php echo ((isset($settings['constantcontact_access_token']) and trim($settings['constantcontact_access_token']) != '') ? $settings['constantcontact_access_token'] : ''); ?>" />
168
  </div>
182
  ?>
183
 
184
  <div class="mec-form-row">
185
+ <label class="mec-col-3" for="mec_settings_constantcontact_list_id"><?php esc_html_e('Select List', 'modern-events-calendar-lite'); ?></label>
186
  <div class="mec-col-9">
187
  <select name="mec[settings][constantcontact_list_id]" id="mec_settings_constantcontact_list_id">
188
  <?php
189
  if ( isset($lists) and !empty($lists)) {
190
  foreach (json_decode($lists) as $list) {
191
  ?>
192
+ <option <?php if(isset($settings['constantcontact_list_id']) and $list->id == $settings['constantcontact_list_id']) echo 'selected="selected"'; ?> value="<?php echo esc_attr($list->id); ?>"><?php echo esc_html($list->name); ?></option>
193
  <?php
194
  }
195
  }
197
  </select>
198
  <span class="mec-tooltip">
199
  <div class="box left">
200
+ <h5 class="title"><?php esc_html_e('Select List', 'modern-events-calendar-lite'); ?></h5>
201
  <div class="content"><p><?php esc_attr_e("Please fill in the API key and Access Token field and save settings. after that, please refresh the page and select a list.", 'modern-events-calendar-lite'); ?></p></div>
202
  </div>
203
  <i title="" class="dashicons-before dashicons-editor-help"></i>
208
  </div>
209
 
210
  <div id="active_campaign_option" class="mec-options-fields">
211
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Active Campaign', 'modern-events-calendar-lite'); ?></h4>
212
  <div class="mec-form-row">
213
  <label>
214
  <input type="hidden" name="mec[settings][active_campaign_status]" value="0" />
215
+ <input onchange="jQuery('#mec_active_campaign_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][active_campaign_status]" <?php if(isset($settings['active_campaign_status']) and $settings['active_campaign_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Active Campaign Integration', 'modern-events-calendar-lite'); ?>
216
  </label>
217
  </div>
218
  <div id="mec_active_campaign_status_container_toggle" class="<?php if((isset($settings['active_campaign_status']) and !$settings['active_campaign_status']) or !isset($settings['active_campaign_status'])) echo 'mec-util-hidden'; ?>">
219
  <div class="mec-form-row">
220
+ <label class="mec-col-3" for="mec_settings_active_campaign_api_url"><?php esc_html_e('API URL', 'modern-events-calendar-lite'); ?></label>
221
  <div class="mec-col-9">
222
  <input type="text" id="mec_settings_active_campaign_api_url" name="mec[settings][active_campaign_api_url]" value="<?php echo ((isset($settings['active_campaign_api_url']) and trim($settings['active_campaign_api_url']) != '') ? $settings['active_campaign_api_url'] : ''); ?>" />
223
  </div>
224
  </div>
225
  <div class="mec-form-row">
226
+ <label class="mec-col-3" for="mec_settings_active_campaign_api_key"><?php esc_html_e('API Key', 'modern-events-calendar-lite'); ?></label>
227
  <div class="mec-col-9">
228
  <input type="text" id="mec_settings_active_campaign_api_key" name="mec[settings][active_campaign_api_key]" value="<?php echo ((isset($settings['active_campaign_api_key']) and trim($settings['active_campaign_api_key']) != '') ? $settings['active_campaign_api_key'] : ''); ?>" />
229
  </div>
230
  </div>
231
  <div class="mec-form-row">
232
+ <label class="mec-col-3" for="mec_settings_active_campaign_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
233
  <div class="mec-col-9">
234
  <input type="text" id="mec_settings_active_campaign_list_id" name="mec[settings][active_campaign_list_id]" value="<?php echo ((isset($settings['active_campaign_list_id']) and trim($settings['active_campaign_list_id']) != '') ? $settings['active_campaign_list_id'] : ''); ?>" />
235
  </div>
238
  </div>
239
 
240
  <div id="aweber_option" class="mec-options-fields">
241
+ <h4 class="mec-form-subtitle"><?php esc_html_e('AWeber', 'modern-events-calendar-lite'); ?></h4>
242
  <div class="mec-form-row">
243
  <label>
244
  <input type="hidden" name="mec[settings][aweber_status]" value="0" />
245
+ <input onchange="jQuery('#mec_aweber_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][aweber_status]" <?php if(isset($settings['aweber_status']) and $settings['aweber_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable AWeber Integration', 'modern-events-calendar-lite'); ?>
246
  </label>
247
  </div>
248
  <div id="mec_aweber_status_container_toggle" class="<?php if((isset($settings['aweber_status']) and !$settings['aweber_status']) or !isset($settings['aweber_status'])) echo 'mec-util-hidden'; ?>">
249
  <div class="mec-form-row">
250
+ <label class="mec-col-2" for="mec_settings_aweber_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
251
  <div class="mec-col-7">
252
  <input type="text" id="mec_settings_aweber_list_id" name="mec[settings][aweber_list_id]" value="<?php echo ((isset($settings['aweber_list_id']) and trim($settings['aweber_list_id']) != '') ? $settings['aweber_list_id'] : ''); ?>" />
253
  </div>
254
  </div>
255
  <p class="description"><?php echo sprintf(__("%s plugin should be installed and connected to your AWeber account.", 'modern-events-calendar-lite'), '<a href="https://wordpress.org/plugins/aweber-web-form-widget/" target="_blank">AWeber for WordPress</a>'); ?></p>
256
+ <p class="description"><?php echo sprintf(__('More information about the list ID can be found %s.', 'modern-events-calendar-lite'), '<a href="https://help.aweber.com/hc/en-us/articles/204028426" target="_blank">'.esc_html__('here', 'modern-events-calendar-lite').'</a>'); ?></p>
257
  </div>
258
  </div>
259
 
260
  <div id="mailpoet_option" class="mec-options-fields">
261
+ <h4 class="mec-form-subtitle"><?php esc_html_e('MailPoet', 'modern-events-calendar-lite'); ?></h4>
262
  <div class="mec-form-row">
263
  <label>
264
  <input type="hidden" name="mec[settings][mailpoet_status]" value="0" />
265
+ <input onchange="jQuery('#mec_mailpoet_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][mailpoet_status]" <?php if(isset($settings['mailpoet_status']) and $settings['mailpoet_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable MailPoet Integration', 'modern-events-calendar-lite'); ?>
266
  </label>
267
  </div>
268
  <div id="mec_mailpoet_status_container_toggle" class="<?php if((isset($settings['mailpoet_status']) and !$settings['mailpoet_status']) or !isset($settings['mailpoet_status'])) echo 'mec-util-hidden'; ?>">
269
  <?php if(class_exists(\MailPoet\API\API::class)): $mailpoet_api = \MailPoet\API\API::MP('v1'); $mailpoets_lists = $mailpoet_api->getLists(); ?>
270
  <div class="mec-form-row">
271
+ <label class="mec-col-3" for="mec_settings_mailpoet_list_id"><?php esc_html_e('List', 'modern-events-calendar-lite'); ?></label>
272
  <div class="mec-col-9">
273
  <select name="mec[settings][mailpoet_list_id]" id="mec_settings_mailpoet_list_id">
274
  <option value="">-----</option>
275
  <?php foreach($mailpoets_lists as $mailpoets_list): ?>
276
+ <option value="<?php echo esc_attr($mailpoets_list['id']); ?>" <?php echo ((isset($settings['mailpoet_list_id']) and trim($settings['mailpoet_list_id']) == $mailpoets_list['id']) ? 'selected="selected"' : ''); ?>><?php echo esc_html($mailpoets_list['name']); ?></option>
277
  <?php endforeach; ?>
278
  </select>
279
  </div>
284
  </div>
285
 
286
  <div id="sendfox_option" class="mec-options-fields">
287
+ <h4 class="mec-form-subtitle"><?php esc_html_e('Sendfox', 'modern-events-calendar-lite'); ?></h4>
288
  <div class="mec-form-row">
289
  <label>
290
  <input type="hidden" name="mec[settings][sendfox_status]" value="0" />
291
+ <input onchange="jQuery('#mec_sendfox_status_container_toggle').toggle();" value="1" type="checkbox" name="mec[settings][sendfox_status]" <?php if(isset($settings['sendfox_status']) and $settings['sendfox_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Sendfox Integration', 'modern-events-calendar-lite'); ?>
292
  </label>
293
  </div>
294
  <div id="mec_sendfox_status_container_toggle" class="<?php if((isset($settings['sendfox_status']) and !$settings['sendfox_status']) or !isset($settings['sendfox_status'])) echo 'mec-util-hidden'; ?>">
295
 
296
  <?php if(function_exists('gb_sf4wp_get_lists')): $sendfox_lists = gb_sf4wp_get_lists(); ?>
297
  <div class="mec-form-row">
298
+ <label class="mec-col-3" for="mec_settings_sendfox_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
299
  <div class="mec-col-9">
300
  <select name="mec[settings][sendfox_list_id]" id="mec_settings_sendfox_list_id">
301
  <?php foreach($sendfox_lists['result']['data'] as $sendfox_list): ?>
302
+ <option value="<?php echo esc_attr($sendfox_list['id']); ?>" <?php echo ((isset($settings['sendfox_list_id']) and trim($settings['sendfox_list_id']) == $sendfox_list['id']) ? 'selected="selected"' : ''); ?>><?php echo esc_html($sendfox_list['name']); ?></option>
303
  <?php endforeach; ?>
304
  </select>
305
  </div>
310
  </div>
311
 
312
  <div id="buddy_option" class="mec-options-fields">
313
+ <h4 class="mec-form-subtitle"><?php esc_html_e('BuddyPress', 'modern-events-calendar-lite'); ?></h4>
314
  <div class="mec-form-row">
315
  <label>
316
  <input type="hidden" name="mec[settings][bp_status]" value="0" />
317
+ <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 esc_html_e('Enable BuddyPress Integration', 'modern-events-calendar-lite'); ?>
318
  </label>
319
  </div>
320
  <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'; ?>">
321
  <div class="mec-form-row">
322
  <label>
323
  <input type="hidden" name="mec[settings][bp_show_]" value="0" />
324
+ <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 esc_html_e('Show "Attendees Module" in event details page', 'modern-events-calendar-lite'); ?>
325
  </label>
326
  </div>
327
  <div class="mec-form-row">
328
+ <label class="mec-col-3" for="mec_settings_bp_attendees_module_limit"><?php esc_html_e('Attendee Limit', 'modern-events-calendar-lite'); ?></label>
329
  <div class="mec-col-9">
330
  <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'); ?>" />
331
  </div>
333
  <div class="mec-form-row">
334
  <label>
335
  <input type="hidden" name="mec[settings][bp_add_activity]" value="0" />
336
+ <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 esc_html_e('Add booking activity to user profile', 'modern-events-calendar-lite'); ?>
337
  </label>
338
  </div>
339
  <div class="mec-form-row">
340
  <label>
341
  <input type="hidden" name="mec[settings][bp_profile_menu]" value="0" />
342
+ <input value="1" type="checkbox" name="mec[settings][bp_profile_menu]" <?php if(isset($settings['bp_profile_menu']) and $settings['bp_profile_menu']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Add events menu to user profile', 'modern-events-calendar-lite'); ?>
343
  </label>
344
  </div>
345
  </div>
346
  </div>
347
  <div id="learndash_options" class="mec-options-fields">
348
+ <h4 class="mec-form-subtitle"><?php esc_html_e('LearnDash', 'modern-events-calendar-lite'); ?></h4>
349
  <div class="mec-form-row">
350
  <label>
351
  <input type="hidden" name="mec[settings][ld_status]" value="0" />
352
+ <input value="1" type="checkbox" name="mec[settings][ld_status]" <?php if(isset($settings['ld_status']) and $settings['ld_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable LearnDash Integration', 'modern-events-calendar-lite'); ?>
353
  </label>
354
  </div>
355
  <p class="description"><?php esc_html_e('LearnDash plugin should be installed and activated.'); ?></p>
356
  </div>
357
  <div id="pmp_options" class="mec-options-fields">
358
+ <h4 class="mec-form-subtitle"><?php esc_html_e('PaidMembership Pro', 'modern-events-calendar-lite'); ?></h4>
359
  <div class="mec-form-row">
360
  <label>
361
  <input type="hidden" name="mec[settings][pmp_status]" value="0" />
362
+ <input value="1" type="checkbox" name="mec[settings][pmp_status]" <?php if(isset($settings['pmp_status']) and $settings['pmp_status']) echo 'checked="checked"'; ?> /> <?php esc_html_e('Enable Event Restriction', 'modern-events-calendar-lite'); ?>
363
  </label>
364
  </div>
365
  <div class="mec-form-row">
366
  <label>
367
  <input type="hidden" name="mec[settings][pmp_booking_restriction]" value="0" />
368
+ <input value="1" type="checkbox" name="mec[settings][pmp_booking_restriction]" <?php if(isset($settings['pmp_booking_restriction']) and $settings['pmp_booking_restriction']) echo 'checked="checked"'; ?> onchange="jQuery('#mec_integration_pmp_booking_restriction').toggleClass('mec-util-hidden');" /> <?php esc_html_e('Enable Booking Restriction', 'modern-events-calendar-lite'); ?>
369
  </label>
370
  </div>
371
  <div class="mec-form-row <?php if(!isset($settings['pmp_booking_restriction']) or (isset($settings['pmp_booking_restriction']) and !$settings['pmp_booking_restriction'])) echo 'mec-util-hidden'; ?>" id="mec_integration_pmp_booking_restriction">
373
  <ul>
374
  <?php foreach($levels as $level): $level_options = ((isset($pmp_booking[$level->id]) and is_array($pmp_booking[$level->id])) ? $pmp_booking[$level->id] : array()); ?>
375
  <li>
376
+ <h5><?php echo esc_html($level->name); ?></h5>
377
  <ul>
378
  <?php foreach($categories as $category): ?>
379
  <li>
380
  <label>
381
+ <input value="<?php echo esc_attr($category->term_id); ?>" type="checkbox" name="mec[settings][pmp_booking][<?php echo esc_attr($level->id); ?>][]" <?php if(in_array($category->term_id, $level_options)) echo 'checked="checked"'; ?> /> <?php echo esc_html($category->name); ?>
382
  </label>
383
  </li>
384
  <?php endforeach; ?>
397
 
398
  <div class="mec-options-fields">
399
  <?php wp_nonce_field('mec_options_form'); ?>
400
+ <button style="display: none;" id="mec_integrations_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></button>
401
  </div>
402
  </form>
403
 
407
  </div>
408
 
409
  <div id="wns-be-footer">
410
+ <a id="" class="dpr-btn dpr-save-btn"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></a>
411
  </div>
412
 
413
  </div>
app/features/mec/messages.php CHANGED
@@ -17,7 +17,7 @@ $values = $this->main->get_messages_options(($multilingual ? $locale : NULL));
17
  <i class="mec-sl-magnifier"></i>
18
  <input id="mec-search-settings" type="text" placeholder="<?php esc_html_e('Search...' ,'modern-events-calendar-lite'); ?>">
19
  </div>
20
- <a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
21
  </div>
22
 
23
  <div class="wns-be-sidebar">
@@ -33,18 +33,18 @@ $values = $this->main->get_messages_options(($multilingual ? $locale : NULL));
33
  <div class="mec-container">
34
  <form id="mec_messages_form">
35
  <div class="mec-options-fields active">
36
- <h2><?php _e('Messages', 'modern-events-calendar-lite'); ?></h2>
37
- <p><?php _e("You can change some MEC messages here. 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>
38
  <div class="mec-form-row" id="mec_messages_form_container">
39
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
40
  <?php foreach($messages as $cat_key=>$category): ?>
41
- <li class="mec-acc-label" data-key="<?php echo $cat_key; ?>" data-status="close">
42
- <div class="mec-acc-cat-name"><?php echo $category['category']['name']; ?></div>
43
- <ul id="mec-acc-<?php echo $cat_key; ?>">
44
  <?php foreach($category['messages'] as $key=>$message): ?>
45
  <li>
46
- <label for="<?php echo 'mec_m_'.$key; ?>"><?php echo $message['label']; ?></label>
47
- <input id="<?php echo 'mec_m_'.$key; ?>" name="mec[messages][<?php echo $key; ?>]" type="text" placeholder="<?php echo esc_attr($message['default']); ?>" value="<?php echo (isset($values[$key]) and trim($values[$key])) ? esc_attr(stripslashes($values[$key])) : ''; ?>" />
48
  </li>
49
  <?php endforeach; ?>
50
  </ul>
@@ -57,7 +57,7 @@ $values = $this->main->get_messages_options(($multilingual ? $locale : NULL));
57
  <?php if($multilingual): ?>
58
  <input name="mec_locale" type="hidden" value="<?php echo esc_attr($locale); ?>" />
59
  <?php endif; ?>
60
- <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>
61
  </div>
62
  </div>
63
  </form>
@@ -67,7 +67,7 @@ $values = $this->main->get_messages_options(($multilingual ? $locale : NULL));
67
  </div>
68
 
69
  <div id="wns-be-footer">
70
- <a href="" id="" class="dpr-btn dpr-save-btn"><?php _e('Save Changes', 'modern-events-calendar-lite'); ?></a>
71
  </div>
72
 
73
  </div>
17
  <i class="mec-sl-magnifier"></i>
18
  <input id="mec-search-settings" type="text" placeholder="<?php esc_html_e('Search...' ,'modern-events-calendar-lite'); ?>">
19
  </div>
20
+ <a href="" id="" class="dpr-btn dpr-save-btn"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></a>
21
  </div>
22
 
23
  <div class="wns-be-sidebar">
33
  <div class="mec-container">
34
  <form id="mec_messages_form">
35
  <div class="mec-options-fields active">
36
+ <h2><?php esc_html_e('Messages', 'modern-events-calendar-lite'); ?></h2>
37
+ <p><?php esc_html_e("You can change some MEC messages here. 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>
38
  <div class="mec-form-row" id="mec_messages_form_container">
39
  <ul class="mec-accordion mec-message-categories" id="mec_message_categories_wp">
40
  <?php foreach($messages as $cat_key=>$category): ?>
41
+ <li class="mec-acc-label" data-key="<?php echo esc_attr($cat_key); ?>" data-status="close">
42
+ <div class="mec-acc-cat-name"><?php echo esc_html($category['category']['name']); ?></div>
43
+ <ul id="mec-acc-<?php echo esc_attr($cat_key); ?>">
44
  <?php foreach($category['messages'] as $key=>$message): ?>
45
  <li>
46
+ <label for="<?php echo 'mec_m_'.esc_attr($key); ?>"><?php echo esc_html($message['label']); ?></label>
47
+ <input id="<?php echo 'mec_m_'.esc_attr($key); ?>" name="mec[messages][<?php echo esc_attr($key); ?>]" type="text" placeholder="<?php echo esc_attr($message['default']); ?>" value="<?php echo (isset($values[$key]) and trim($values[$key])) ? esc_attr(stripslashes($values[$key])) : ''; ?>" />
48
  </li>
49
  <?php endforeach; ?>
50
  </ul>
57
  <?php if($multilingual): ?>
58
  <input name="mec_locale" type="hidden" value="<?php echo esc_attr($locale); ?>" />
59
  <?php endif; ?>
60
+ <button style="display: none;" id="mec_messages_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></button>
61
  </div>
62
  </div>
63
  </form>
67
  </div>
68
 
69
  <div id="wns-be-footer">
70
+ <a href="" id="" class="dpr-btn dpr-save-btn"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></a>
71
  </div>
72
 
73
  </div>
app/features/mec/meta_boxes/display_options.php CHANGED
@@ -27,11 +27,11 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
27
  <!-- SKIN OPTIONS -->
28
  <div class="mec-meta-box-fields" id="mec_meta_box_calendar_skin_options">
29
  <div class="mec-form-row">
30
- <label class="mec-col-4" for="mec_skin"><?php _e('Skin', 'modern-events-calendar-lite'); ?></label>
31
  <select class="mec-col-4 wn-mec-select mec-custom-nice-select" name="mec[skin]" id="mec_skin" onchange="if(jQuery('#mec_skin').val() != 'carousel' ){ jQuery('.mec-carousel-archive-link').hide();jQuery('.mec-carousel-head-text').hide();}">
32
  <?php foreach($skins as $skin=>$name): ?>
33
- <option value="<?php echo $skin; ?>" <?php if($selected_skin == $skin) echo 'selected="selected"'; ?>>
34
- <?php echo $name; ?>
35
  </option>
36
  <?php endforeach; ?>
37
  </select>
@@ -43,120 +43,120 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
43
  <div class="mec-skin-options-container mec-util-hidden" id="mec_list_skin_options_container">
44
  <?php $sk_options_list = isset($sk_options['list']) ? $sk_options['list'] : array(); ?>
45
  <div class="mec-form-row">
46
- <label class="mec-col-4" for="mec_skin_list_style"><?php _e('Style', 'modern-events-calendar-lite'); ?></label>
47
  <select class="mec-col-4 wn-mec-select" name="mec[sk-options][list][style]" id="mec_skin_list_style" onchange="mec_skin_style_changed('list', this.value, this); if(this.value == 'accordion'){ jQuery('.mec-sed-methode-container').hide();jQuery('.mec-toggle-month-divider').show(); }else{ jQuery('.mec-sed-methode-container').show();jQuery('.mec-toggle-month-divider').hide()}">
48
- <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>
49
- <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>
50
- <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>
51
- <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>
52
- <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>
53
  <?php do_action('mec_list_fluent', (isset($sk_options_list['style']) ? $sk_options_list['style'] : NULL)); ?>
54
  </select>
55
  </div>
56
  <div class="mec-form-row">
57
- <label class="mec-col-4" for="mec_skin_list_start_date_type"><?php _e('Start Date', 'modern-events-calendar-lite'); ?></label>
58
  <select class="mec-col-4 wn-mec-select" 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();">
59
- <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>
60
- <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>
61
- <option value="yesterday" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'yesterday') echo 'selected="selected"'; ?>><?php _e('Yesterday', 'modern-events-calendar-lite'); ?></option>
62
- <option value="start_last_month" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'start_last_month') echo 'selected="selected"'; ?>><?php _e('Start of Last Month', 'modern-events-calendar-lite'); ?></option>
63
- <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>
64
- <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>
65
- <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>
66
  </select>
67
  <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">
68
- <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']; ?>" />
69
  </div>
70
  </div>
71
  <!-- Start Maximum Date -->
72
  <div class="mec-form-row">
73
- <label class="mec-col-4" for="mec_skin_list_end_date_type"><?php _e('End Date', 'modern-events-calendar-lite'); ?></label>
74
  <select class="mec-col-4 wn-mec-select" name="mec[sk-options][list][end_date_type]" id="mec_skin_list_end_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_list_end_date_container').show(); else jQuery('#mec_skin_list_end_date_container').hide();">
75
- <option value="date" <?php if(isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'date') echo 'selected="selected"'; ?>><?php _e('On a certain date', 'modern-events-calendar-lite'); ?></option>
76
- <option value="today" <?php if(isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'today') echo 'selected="selected"'; ?>><?php _e('Today', 'modern-events-calendar-lite'); ?></option>
77
- <option value="tomorrow" <?php if(isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php _e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
78
  </select>
79
  <div class="mec-col-4 <?php echo (!isset($sk_options_list['end_date_type']) or (isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'date')) ? '' : 'mec-util-hidden'; ?>" id="mec_skin_list_end_date_container">
80
- <input type="text" class="mec_date_picker" name="mec[sk-options][list][maximum_date_range]" value="<?php echo isset($sk_options_list['maximum_date_range']) ? esc_attr($sk_options_list['maximum_date_range']) : ''; ?>" placeholder="<?php _e('Maximum Date', 'modern-events-calendar-lite'); ?>" autocomplete="off" />
81
  <span class="mec-tooltip">
82
  <div class="box top">
83
- <h5 class="title"><?php _e('Maximum Date', 'modern-events-calendar-lite'); ?></h5>
84
- <div class="content"><p><?php _e('Show events before the specified date.', 'modern-events-calendar-lite'); ?></p></div>
85
  </div>
86
  <i title="" class="dashicons-before dashicons-editor-help"></i>
87
  </span>
88
  </div>
89
  </div>
90
  <!-- End Maximum Date -->
91
- <?php echo $this->order_method_field('list', (isset($sk_options_list['order_method']) ? $sk_options_list['order_method'] : 'ASC')); ?>
92
  <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">
93
- <label class="mec-col-4" for="mec_skin_list_classic_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
94
  <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'); ?>" />
95
  <span class="mec-tooltip">
96
  <div class="box top">
97
- <h5 class="title"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
98
- <div class="content"><p><?php esc_attr_e('Default value is "M d Y"', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
99
  </div>
100
  <i title="" class="dashicons-before dashicons-editor-help"></i>
101
  </span>
102
  </div>
103
  <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">
104
- <label class="mec-col-4" for="mec_skin_list_minimal_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
105
  <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'); ?>" />
106
  <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'); ?>" />
107
  <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'); ?>" />
108
  <span class="mec-tooltip">
109
  <div class="box top">
110
- <h5 class="title"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
111
- <div class="content"><p><?php esc_attr_e('Default values are d, M and l', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
112
  </div>
113
  <i title="" class="dashicons-before dashicons-editor-help"></i>
114
  </span>
115
  </div>
116
  <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">
117
- <label class="mec-col-4" for="mec_skin_list_modern_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
118
  <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'); ?>" />
119
  <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'); ?>" />
120
  <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'); ?>" />
121
  <span class="mec-tooltip">
122
  <div class="box top">
123
- <h5 class="title"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
124
- <div class="content"><p><?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
125
  </div>
126
  <i title="" class="dashicons-before dashicons-editor-help"></i>
127
  </span>
128
  </div>
129
  <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">
130
- <label class="mec-col-4" for="mec_skin_list_standard_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
131
  <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'); ?>" />
132
  <span class="mec-tooltip">
133
  <div class="box top">
134
- <h5 class="title"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
135
- <div class="content"><p><?php esc_attr_e('Default value is "M d"', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
136
  </div>
137
  <i title="" class="dashicons-before dashicons-editor-help"></i>
138
  </span>
139
  </div>
140
  <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">
141
- <label class="mec-col-4" for="mec_skin_list_accordion_date_format1"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></label>
142
  <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'); ?>" />
143
  <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'); ?>" />
144
  <span class="mec-tooltip">
145
  <div class="box top">
146
- <h5 class="title"><?php _e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
147
- <div class="content"><p><?php esc_attr_e('TDefault values are d and F', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php _e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
148
  </div>
149
  <i title="" class="dashicons-before dashicons-editor-help"></i>
150
  </span>
151
  </div>
152
  <div class="mec-form-row">
153
- <label class="mec-col-4" for="mec_skin_list_limit"><?php _e('Limit', 'modern-events-calendar-lite'); ?></label>
154
- <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']; ?>" />
155
  </div>
156
  <!-- Start LocalTime -->
157
  <div class="mec-form-row mec-switcher mec-include-events-local-times" id="mec_skin_list_localtime">
158
  <div class="mec-col-4">
159
- <label for="mec_skin_list_include_local_time"><?php _e('Include Local Time', 'modern-events-calendar-lite'); ?></label>
160
  </div>
161
  <div class="mec-col-4">
162
  <input type="hidden" name="mec[sk-options][list][include_local_time]" value="0" />
@@ -168,7 +168,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
168
  <!-- Start Include Events Times -->
169
  <div class="mec-form-row mec-switcher mec-include-events-times">
170
  <div class="mec-col-4">
171
- <label for="mec_skin_list_include_events_times"><?php _e('Include Events Times', 'modern-events-calendar-lite'); ?></label>
172
  </div>
173
  <div class="mec-col-4">
174
  <input type="hidden" name="mec[sk-options][list][include_events_times]" value="0" />
@@ -179,7 +179,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
179
  <!-- End Include Events Times -->
180
  <div class="mec-form-row mec-switcher">
181
  <div class="mec-col-4">
182
- <label for="mec_skin_list_load_more_button"><?php _e('Load More Button', 'modern-events-calendar-lite'); ?></label>
183
  </div>
184
  <div class="mec-col-4">
185
  <input type="hidden" name="mec[sk-options][list][load_more_button]" value="0" />
@@ -189,7 +189,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
189
  </div>
190
  <div class="mec-form-row mec-switcher mec-not-list-fluent">
191
  <div class="mec-col-4">
192
- <label for="mec_skin_list_month_divider"><?php _e('Show Month Divider', 'modern-events-calendar-lite'); ?></label>
193
  </div>
194
  <div class="mec-col-4">
195
  <input type="hidden" name="mec[sk-options][list][month_divider]" value="0" />
@@ -200,7 +200,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
200
  <!-- Start Display Label -->
201
  <div class="mec-form-row mec-switcher" id="mec_skin_list_display_normal_label">
202
  <div class="mec-col-4">
203
- <label for="mec_skin_list_display_label"><?php _e('Display Normal Labels', 'modern-events-calendar-lite'); ?></label>
204
  </div>
205
  <div class="mec-col-4">
206
  <input type="hidden" name="mec[sk-options][list][display_label]" value="0" />
@@ -212,7 +212,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
212
  <!-- Start Reason for Cancellation -->
213
  <div class="mec-form-row mec-switcher" id="mec_skin_list_display_reason_for_cancellation">
214
  <div class="mec-col-4">
215
- <label for="mec_skin_list_reason_for_cancellation"><?php _e('Display Reason for Cancellation', 'modern-events-calendar-lite'); ?></label>
216
  </div>
217
  <div class="mec-col-4">
218
  <input type="hidden" name="mec[sk-options][list][reason_for_cancellation]" value="0" />
@@ -224,7 +224,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
224
  <!-- Start Display Categories -->
225
  <div class="mec-form-row mec-switcher" id="mec_skin_list_display_categories_wp">
226
  <div class="mec-col-4">
227
- <label for="mec_skin_list_d
27
  <!-- SKIN OPTIONS -->
28
  <div class="mec-meta-box-fields" id="mec_meta_box_calendar_skin_options">
29
  <div class="mec-form-row">
30
+ <label class="mec-col-4" for="mec_skin"><?php esc_html_e('Skin', 'modern-events-calendar-lite'); ?></label>
31
  <select class="mec-col-4 wn-mec-select mec-custom-nice-select" name="mec[skin]" id="mec_skin" onchange="if(jQuery('#mec_skin').val() != 'carousel' ){ jQuery('.mec-carousel-archive-link').hide();jQuery('.mec-carousel-head-text').hide();}">
32
  <?php foreach($skins as $skin=>$name): ?>
33
+ <option value="<?php echo esc_attr($skin); ?>" <?php if($selected_skin == $skin) echo 'selected="selected"'; ?>>
34
+ <?php echo esc_html($name); ?>
35
  </option>
36
  <?php endforeach; ?>
37
  </select>
43
  <div class="mec-skin-options-container mec-util-hidden" id="mec_list_skin_options_container">
44
  <?php $sk_options_list = isset($sk_options['list']) ? $sk_options['list'] : array(); ?>
45
  <div class="mec-form-row">
46
+ <label class="mec-col-4" for="mec_skin_list_style"><?php esc_html_e('Style', 'modern-events-calendar-lite'); ?></label>
47
  <select class="mec-col-4 wn-mec-select" name="mec[sk-options][list][style]" id="mec_skin_list_style" onchange="mec_skin_style_changed('list', this.value, this); if(this.value == 'accordion'){ jQuery('.mec-sed-methode-container').hide();jQuery('.mec-toggle-month-divider').show(); }else{ jQuery('.mec-sed-methode-container').show();jQuery('.mec-toggle-month-divider').hide()}">
48
+ <option value="classic" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'classic') echo 'selected="selected"'; ?>><?php esc_html_e('Classic', 'modern-events-calendar-lite'); ?></option>
49
+ <option value="minimal" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'minimal') echo 'selected="selected"'; ?>><?php esc_html_e('Minimal', 'modern-events-calendar-lite'); ?></option>
50
+ <option value="modern" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'modern') echo 'selected="selected"'; ?>><?php esc_html_e('Modern', 'modern-events-calendar-lite'); ?></option>
51
+ <option value="standard" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'standard') echo 'selected="selected"'; ?>><?php esc_html_e('Standard', 'modern-events-calendar-lite'); ?></option>
52
+ <option value="accordion" <?php if(isset($sk_options_list['style']) and $sk_options_list['style'] == 'accordion') echo 'selected="selected"'; ?>><?php esc_html_e('Accordion', 'modern-events-calendar-lite'); ?></option>
53
  <?php do_action('mec_list_fluent', (isset($sk_options_list['style']) ? $sk_options_list['style'] : NULL)); ?>
54
  </select>
55
  </div>
56
  <div class="mec-form-row">
57
+ <label class="mec-col-4" for="mec_skin_list_start_date_type"><?php esc_html_e('Start Date', 'modern-events-calendar-lite'); ?></label>
58
  <select class="mec-col-4 wn-mec-select" 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();">
59
+ <option value="today" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'today') echo 'selected="selected"'; ?>><?php esc_html_e('Today', 'modern-events-calendar-lite'); ?></option>
60
+ <option value="tomorrow" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php esc_html_e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
61
+ <option value="yesterday" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'yesterday') echo 'selected="selected"'; ?>><?php esc_html_e('Yesterday', 'modern-events-calendar-lite'); ?></option>
62
+ <option value="start_last_month" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'start_last_month') echo 'selected="selected"'; ?>><?php esc_html_e('Start of Last Month', 'modern-events-calendar-lite'); ?></option>
63
+ <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 esc_html_e('Start of Current Month', 'modern-events-calendar-lite'); ?></option>
64
+ <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 esc_html_e('Start of Next Month', 'modern-events-calendar-lite'); ?></option>
65
+ <option value="date" <?php if(isset($sk_options_list['start_date_type']) and $sk_options_list['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
66
  </select>
67
  <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">
68
+ <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 esc_attr($sk_options_list['start_date']); ?>" />
69
  </div>
70
  </div>
71
  <!-- Start Maximum Date -->
72
  <div class="mec-form-row">
73
+ <label class="mec-col-4" for="mec_skin_list_end_date_type"><?php esc_html_e('End Date', 'modern-events-calendar-lite'); ?></label>
74
  <select class="mec-col-4 wn-mec-select" name="mec[sk-options][list][end_date_type]" id="mec_skin_list_end_date_type" onchange="if(this.value === 'date') jQuery('#mec_skin_list_end_date_container').show(); else jQuery('#mec_skin_list_end_date_container').hide();">
75
+ <option value="date" <?php if(isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
76
+ <option value="today" <?php if(isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'today') echo 'selected="selected"'; ?>><?php esc_html_e('Today', 'modern-events-calendar-lite'); ?></option>
77
+ <option value="tomorrow" <?php if(isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'tomorrow') echo 'selected="selected"'; ?>><?php esc_html_e('Tomorrow', 'modern-events-calendar-lite'); ?></option>
78
  </select>
79
  <div class="mec-col-4 <?php echo (!isset($sk_options_list['end_date_type']) or (isset($sk_options_list['end_date_type']) and $sk_options_list['end_date_type'] == 'date')) ? '' : 'mec-util-hidden'; ?>" id="mec_skin_list_end_date_container">
80
+ <input type="text" class="mec_date_picker" name="mec[sk-options][list][maximum_date_range]" value="<?php echo isset($sk_options_list['maximum_date_range']) ? esc_attr($sk_options_list['maximum_date_range']) : ''; ?>" placeholder="<?php esc_html_e('Maximum Date', 'modern-events-calendar-lite'); ?>" autocomplete="off" />
81
  <span class="mec-tooltip">
82
  <div class="box top">
83
+ <h5 class="title"><?php esc_html_e('Maximum Date', 'modern-events-calendar-lite'); ?></h5>
84
+ <div class="content"><p><?php esc_html_e('Show events before the specified date.', 'modern-events-calendar-lite'); ?></p></div>
85
  </div>
86
  <i title="" class="dashicons-before dashicons-editor-help"></i>
87
  </span>
88
  </div>
89
  </div>
90
  <!-- End Maximum Date -->
91
+ <?php echo MEC_kses::form($this->order_method_field('list', (isset($sk_options_list['order_method']) ? $sk_options_list['order_method'] : 'ASC'))); ?>
92
  <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">
93
+ <label class="mec-col-4" for="mec_skin_list_classic_date_format1"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></label>
94
  <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'); ?>" />
95
  <span class="mec-tooltip">
96
  <div class="box top">
97
+ <h5 class="title"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
98
+ <div class="content"><p><?php esc_attr_e('Default value is "M d Y"', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
99
  </div>
100
  <i title="" class="dashicons-before dashicons-editor-help"></i>
101
  </span>
102
  </div>
103
  <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">
104
+ <label class="mec-col-4" for="mec_skin_list_minimal_date_format1"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></label>
105
  <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'); ?>" />
106
  <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'); ?>" />
107
  <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'); ?>" />
108
  <span class="mec-tooltip">
109
  <div class="box top">
110
+ <h5 class="title"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
111
+ <div class="content"><p><?php esc_attr_e('Default values are d, M and l', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
112
  </div>
113
  <i title="" class="dashicons-before dashicons-editor-help"></i>
114
  </span>
115
  </div>
116
  <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">
117
+ <label class="mec-col-4" for="mec_skin_list_modern_date_format1"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></label>
118
  <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'); ?>" />
119
  <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'); ?>" />
120
  <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'); ?>" />
121
  <span class="mec-tooltip">
122
  <div class="box top">
123
+ <h5 class="title"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
124
+ <div class="content"><p><?php esc_attr_e('Default values are d, F and l', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
125
  </div>
126
  <i title="" class="dashicons-before dashicons-editor-help"></i>
127
  </span>
128
  </div>
129
  <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">
130
+ <label class="mec-col-4" for="mec_skin_list_standard_date_format1"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></label>
131
  <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'); ?>" />
132
  <span class="mec-tooltip">
133
  <div class="box top">
134
+ <h5 class="title"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
135
+ <div class="content"><p><?php esc_attr_e('Default value is "M d"', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
136
  </div>
137
  <i title="" class="dashicons-before dashicons-editor-help"></i>
138
  </span>
139
  </div>
140
  <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">
141
+ <label class="mec-col-4" for="mec_skin_list_accordion_date_format1"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></label>
142
  <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'); ?>" />
143
  <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'); ?>" />
144
  <span class="mec-tooltip">
145
  <div class="box top">
146
+ <h5 class="title"><?php esc_html_e('Date Formats', 'modern-events-calendar-lite'); ?></h5>
147
+ <div class="content"><p><?php esc_attr_e('TDefault values are d and F', 'modern-events-calendar-lite'); ?><a href="https://webnus.net/dox/modern-events-calendar/list-view-skin/" target="_blank"><?php esc_html_e('Read More', 'modern-events-calendar-lite'); ?></a></p></div>
148
  </div>
149
  <i title="" class="dashicons-before dashicons-editor-help"></i>
150
  </span>
151
  </div>
152
  <div class="mec-form-row">
153
+ <label class="mec-col-4" for="mec_skin_list_limit"><?php esc_html_e('Limit', 'modern-events-calendar-lite'); ?></label>
154
+ <input class="mec-col-4" type="number" name="mec[sk-options][list][limit]" id="mec_skin_list_limit" placeholder="<?php esc_html_e('eg. 6', 'modern-events-calendar-lite'); ?>" value="<?php if(isset($sk_options_list['limit'])) echo esc_attr($sk_options_list['limit']); ?>" />
155
  </div>
156
  <!-- Start LocalTime -->
157
  <div class="mec-form-row mec-switcher mec-include-events-local-times" id="mec_skin_list_localtime">
158
  <div class="mec-col-4">
159
+ <label for="mec_skin_list_include_local_time"><?php esc_html_e('Include Local Time', 'modern-events-calendar-lite'); ?></label>
160
  </div>
161
  <div class="mec-col-4">
162
  <input type="hidden" name="mec[sk-options][list][include_local_time]" value="0" />
168
  <!-- Start Include Events Times -->
169
  <div class="mec-form-row mec-switcher mec-include-events-times">
170
  <div class="mec-col-4">
171
+ <label for="mec_skin_list_include_events_times"><?php esc_html_e('Include Events Times', 'modern-events-calendar-lite'); ?></label>
172
  </div>
173
  <div class="mec-col-4">
174
  <input type="hidden" name="mec[sk-options][list][include_events_times]" value="0" />
179
  <!-- End Include Events Times -->
180
  <div class="mec-form-row mec-switcher">
181
  <div class="mec-col-4">
182
+ <label for="mec_skin_list_load_more_button"><?php esc_html_e('Load More Button', 'modern-events-calendar-lite'); ?></label>
183
  </div>
184
  <div class="mec-col-4">
185
  <input type="hidden" name="mec[sk-options][list][load_more_button]" value="0" />
189
  </div>
190
  <div class="mec-form-row mec-switcher mec-not-list-fluent">
191
  <div class="mec-col-4">
192
+ <label for="mec_skin_list_month_divider"><?php esc_html_e('Show Month Divider', 'modern-events-calendar-lite'); ?></label>
193
  </div>
194
  <div class="mec-col-4">
195
  <input type="hidden" name="mec[sk-options][list][month_divider]" value="0" />
200
  <!-- Start Display Label -->
201
  <div class="mec-form-row mec-switcher" id="mec_skin_list_display_normal_label">
202
  <div class="mec-col-4">
203
+ <label for="mec_skin_list_display_label"><?php esc_html_e('Display Normal Labels', 'modern-events-calendar-lite'); ?></label>
204
  </div>
205
  <div class="mec-col-4">
206
  <input type="hidden" name="mec[sk-options][list][display_label]" value="0" />
212
  <!-- Start Reason for Cancellation -->
213
  <div class="mec-form-row mec-switcher" id="mec_skin_list_display_reason_for_cancellation">
214
  <div class="mec-col-4">
215
+ <label for="mec_skin_list_reason_for_cancellation"><?php esc_html_e('Display Reason for Cancellation', 'modern-events-calendar-lite'); ?></label>
216
  </div>
217
  <div class="mec-col-4">
218
  <input type="hidden" name="mec[sk-options][list][reason_for_cancellation]" value="0" />
224
  <!-- Start Display Categories -->
225
  <div class="mec-form-row mec-switcher" id="mec_skin_list_display_categories_wp">
226
  <div class="mec-col-4">