Version Description
12 April 2022 = - Fixed: An issue on event bulk edit and saving locations, organizers - Fixed: A security issue - Fixed: HTML support of gateway comment - Fixed: An issue on block themes - Fixed: An issue on notification placeholders - Fixed: An issue on calculating end date of some certain events in rare cases - Escaped: Many parameters to improve the security
Download this release
Release Info
Developer | webnus |
Plugin | Modern Events Calendar Lite |
Version | 6.5.2 |
Comparing to | |
See all releases |
Code changes from version 6.5.1 to 6.5.2
- app/addons/PMP.php +1 -1
- app/core/src/Events/Event.php +36 -0
- app/core/src/Forms/DisplayFields.php +2 -2
- app/core/src/Forms/FormFields.php +1 -1
- app/core/src/Notifications/SendEmail.php +2 -2
- app/core/src/Notifications/template-notification-settings.php +4 -4
- app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php +1 -1
- app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php +1 -1
- app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php +3 -3
- app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php +1 -1
- app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php +2 -2
- app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php +1 -1
- app/core/src/SingleBuilder/Widgets/EventTime/EventTime.php +1 -1
- app/features/autoemails.php +6 -6
- app/features/booking/calendar_novel.php +11 -11
- app/features/cart.php +1 -1
- app/features/cart/cart.php +1 -1
- app/features/cart/checkout.php +1 -1
- app/features/colors.php +2 -2
- app/features/dc.php +1 -1
- app/features/dlfile.php +2 -2
- app/features/events.php +64 -57
- app/features/fes.php +6 -6
- app/features/fes/form.php +7 -7
- app/features/fes/list.php +1 -1
- app/features/ix.php +5 -5
- app/features/ix/export.php +2 -2
- app/features/ix/export_g_calendar.php +4 -4
- app/features/ix/import.php +5 -5
- app/features/ix/import_f_calendar.php +7 -7
- app/features/ix/import_g_calendar.php +9 -9
- app/features/ix/import_meetup.php +8 -8
- app/features/ix/sync.php +5 -5
- app/features/ix/thirdparty.php +4 -4
- app/features/labels.php +12 -12
- app/features/locations.php +12 -12
- app/features/mec.php +34 -12
- app/features/mec/booking.php +15 -15
- app/features/mec/dashboard.php +45 -35
- app/features/mec/go-pro.php +1 -1
- app/features/mec/integrations.php +6 -6
- app/features/mec/meta_boxes/display_options.php +26 -26
- app/features/mec/meta_boxes/filter.php +4 -8
- app/features/mec/modules.php +8 -8
- app/features/mec/notifications.php +22 -22
- app/features/mec/report.php +2 -2
- app/features/mec/settings.php +15 -15
- app/features/mec/single.php +2 -2
- app/features/mec/styles.php +1 -1
- app/features/mec/styling.php +6 -6
- app/features/mec/support-page.php +83 -80
- app/features/notifications.php +1 -1
- app/features/occurrences.php +8 -8
- app/features/organizers.php +12 -12
- app/features/popup.php +3 -3
- app/features/popup/settings.php +4 -4
- app/features/popup/shortcode.php +1 -1
- app/features/profile.php +2 -2
- app/features/profile/profile.php +6 -6
- app/features/schema.php +1 -1
- app/features/search.php +1 -1
- app/features/search_bar/search_bar.php +1 -1
- app/features/search_bar/search_result.php +1 -1
- app/features/speakers.php +20 -20
- app/features/tag.php +10 -10
- app/features/userevents.php +2 -2
- app/features/wc.php +6 -6
- app/libraries/book.php +3 -3
- app/libraries/db.php +1 -1
- app/libraries/eventFields.php +1 -1
- app/libraries/factory.php +3 -3
- app/libraries/feed.php +1 -1
- app/libraries/hourlyschedule.php +1 -1
- app/libraries/kses.php +16 -4
- app/libraries/main.php +61 -34
- app/libraries/notifications.php +19 -15
- app/libraries/parser.php +17 -38
- app/libraries/qrcode.php +0 -30
- app/libraries/render.php +4 -2
- app/libraries/search.php +20 -20
- app/libraries/skins.php +37 -37
- app/libraries/transaction.php +6 -6
- app/modules/attendees-list/details.php +1 -1
- app/modules/booking/default.php +151 -154
- app/modules/booking/steps/checkout.php +1 -1
- app/modules/booking/steps/form.php +5 -5
- app/modules/booking/steps/message.php +2 -2
- app/modules/booking/steps/tickets.php +7 -7
- app/modules/googlemap/details.php +17 -17
- app/modules/local-time/details.php +3 -3
- app/modules/local-time/type1.php +2 -2
- app/modules/local-time/type2.php +2 -2
- app/modules/local-time/type3.php +2 -2
- app/modules/next-event/details.php +1 -1
- app/skins/agenda/render.php +3 -3
- app/skins/agenda/tpl.php +11 -11
- app/skins/available_spot/tpl.php +3 -3
- app/skins/carousel/render.php +4 -4
- app/skins/carousel/tpl.php +11 -11
- app/skins/countdown/tpl.php +7 -7
- app/skins/cover/tpl.php +4 -4
- app/skins/custom/render.php +7 -7
- app/skins/custom/tpl.php +9 -9
- app/skins/daily_view.php +2 -2
- app/skins/daily_view/render.php +2 -2
- app/skins/daily_view/tpl.php +9 -9
- app/skins/default_full_calendar/tpl.php +6 -6
- app/skins/full_calendar/tpl.php +6 -6
- app/skins/general_calendar.php +1 -1
- app/skins/general_calendar/tpl.php +223 -195
- app/skins/grid/render.php +21 -21
- app/skins/grid/tpl.php +9 -9
- app/skins/list/render.php +15 -15
- app/skins/list/tpl.php +12 -12
- app/skins/map/tpl.php +7 -7
- app/skins/masonry.php +1 -1
- app/skins/masonry/render.php +3 -3
- app/skins/masonry/tpl.php +10 -10
- app/skins/monthly_view.php +2 -2
- app/skins/monthly_view/calendar.php +2 -2
- app/skins/monthly_view/calendar_admin.php +0 -1
- app/skins/monthly_view/calendar_clean.php +2 -2
- app/skins/monthly_view/calendar_novel.php +1 -1
- app/skins/monthly_view/calendar_simple.php +12 -12
- app/skins/monthly_view/tpl.php +17 -15
- app/skins/single.php +23 -25
- app/skins/single/default.php +10 -10
- app/skins/single/m1.php +9 -9
- app/skins/single/m2.php +6 -6
- app/skins/single/modern.php +3 -3
- app/skins/slider/render.php +11 -11
- app/skins/slider/tpl.php +5 -5
- app/skins/tile/render.php +2 -2
- app/skins/tile/tpl.php +13 -13
- app/skins/timeline/render.php +3 -3
- app/skins/timeline/tpl.php +9 -9
- app/skins/timetable/classic.php +5 -5
- app/skins/timetable/clean.php +5 -5
- app/skins/timetable/modern.php +15 -15
- app/skins/timetable/render.php +7 -7
- app/skins/weekly_view/render.php +2 -2
- app/skins/weekly_view/tpl.php +15 -15
- app/skins/yearly_view/calendar.php +4 -4
- app/skins/yearly_view/render.php +3 -3
- app/skins/yearly_view/tpl.php +8 -8
- app/widgets/MEC.php +15 -15
- app/widgets/single/default.php +9 -9
- app/widgets/single/modern.php +6 -6
- assets/css/backend.css +16 -1
- assets/css/backend.min.css +1 -1
app/addons/PMP.php
CHANGED
@@ -91,7 +91,7 @@ class MEC_addon_PMP extends MEC_base
|
|
91 |
$post_membership_levels_names = $response[2];
|
92 |
|
93 |
$content = pmpro_get_no_access_message('', $post_membership_levels_ids, $post_membership_levels_names);
|
94 |
-
$status = '<div class="mec-wrap mec-no-access-error"><h1>'.get_the_title($event_id).'</h1>'
|
95 |
}
|
96 |
}
|
97 |
|
91 |
$post_membership_levels_names = $response[2];
|
92 |
|
93 |
$content = pmpro_get_no_access_message('', $post_membership_levels_ids, $post_membership_levels_names);
|
94 |
+
$status = '<div class="mec-wrap mec-no-access-error"><h1>'.get_the_title($event_id).'</h1>'.MEC_kses::page($content).'</div>';
|
95 |
}
|
96 |
}
|
97 |
|
app/core/src/Events/Event.php
CHANGED
@@ -256,4 +256,40 @@ class Event extends PostBase {
|
|
256 |
|
257 |
return $ids;
|
258 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
}
|
256 |
|
257 |
return $ids;
|
258 |
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Return event custom data
|
262 |
+
*
|
263 |
+
* @return array
|
264 |
+
*/
|
265 |
+
public function get_custom_data(){
|
266 |
+
|
267 |
+
$data = array();
|
268 |
+
$event_fields_data = $this->get_meta( 'mec_fields' );
|
269 |
+
if(!is_array($event_fields_data)) $event_fields_data = array();
|
270 |
+
|
271 |
+
$event_fields = \MEC\Base::get_main()->get_event_fields();
|
272 |
+
foreach($event_fields as $f => $event_field){
|
273 |
+
|
274 |
+
if(!is_numeric($f)) {
|
275 |
+
|
276 |
+
continue;
|
277 |
+
}
|
278 |
+
|
279 |
+
$label = isset($event_field['label']) ? $event_field['label'] : '';
|
280 |
+
$value = isset($event_fields_data[$f]) ? $event_fields_data[$f] : NULL;
|
281 |
+
|
282 |
+
if(is_array($value)) {
|
283 |
+
|
284 |
+
$value = implode(', ', $value);
|
285 |
+
}
|
286 |
+
|
287 |
+
$data[ $f ] = array(
|
288 |
+
'label' => $label,
|
289 |
+
'value' => $value,
|
290 |
+
);
|
291 |
+
}
|
292 |
+
|
293 |
+
return $data;
|
294 |
+
}
|
295 |
}
|
app/core/src/Forms/DisplayFields.php
CHANGED
@@ -156,10 +156,10 @@ class DisplayFields {
|
|
156 |
|
157 |
if('reg' === $form_type){
|
158 |
|
159 |
-
$field_name = 'rsvp[attendees][' . esc_attr($j) . '][' . $form_type . '][' . $field_id . ']';
|
160 |
}else{
|
161 |
|
162 |
-
$field_name = 'rsvp[' . $form_type . '][' . $field_id . ']';
|
163 |
}
|
164 |
// Display Label
|
165 |
if ( isset( $field['label'] ) && !empty( $field['label'] ) ) {
|
156 |
|
157 |
if('reg' === $form_type){
|
158 |
|
159 |
+
$field_name = 'rsvp[attendees][' . esc_attr($j) . '][' . esc_attr($form_type) . '][' . esc_attr($field_id) . ']';
|
160 |
}else{
|
161 |
|
162 |
+
$field_name = 'rsvp[' . esc_attr($form_type) . '][' . esc_attr($field_id) . ']';
|
163 |
}
|
164 |
// Display Label
|
165 |
if ( isset( $field['label'] ) && !empty( $field['label'] ) ) {
|
app/core/src/Forms/FormFields.php
CHANGED
@@ -29,7 +29,7 @@ class FormFields extends Singleton {
|
|
29 |
}
|
30 |
|
31 |
$html .= '<div>
|
32 |
-
<input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][key]" placeholder="' . esc_attr__( 'Insert a key for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['key'] ) ? stripslashes( $values['key'] ) : '' ) . '" />
|
33 |
</div>';
|
34 |
|
35 |
|
29 |
}
|
30 |
|
31 |
$html .= '<div>
|
32 |
+
<input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][key]" placeholder="' . esc_attr__( 'Insert a key for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['key'] ) ? esc_attr(stripslashes( $values['key'] )) : '' ) . '" />
|
33 |
</div>';
|
34 |
|
35 |
|
app/core/src/Notifications/SendEmail.php
CHANGED
@@ -429,11 +429,11 @@ class SendEmail{
|
|
429 |
$style = \MEC\Base::get_main()->get_styling();
|
430 |
$bgnotifications = isset($style['notification_bg']) ? $style['notification_bg'] : '#f6f6f6';
|
431 |
|
432 |
-
return '<table border="0" cellpadding="0" cellspacing="0" class="wn-body" style="background-color: '
|
433 |
<tr>
|
434 |
<td class="wn-container" style="display: block; margin: 0 auto !important; max-width: 680px; padding: 10px;font-family: sans-serif; font-size: 14px; vertical-align: top;">
|
435 |
<div class="wn-wrapper" style="box-sizing: border-box; padding: 38px 9% 50px; width: 100%; height: auto; background: #fff; background-size: contain; margin-bottom: 25px; margin-top: 30px; border-radius: 4px; box-shadow: 0 3px 55px -18px rgba(0,0,0,0.1);">
|
436 |
-
'
|
437 |
</div>
|
438 |
</td>
|
439 |
</tr>
|
429 |
$style = \MEC\Base::get_main()->get_styling();
|
430 |
$bgnotifications = isset($style['notification_bg']) ? $style['notification_bg'] : '#f6f6f6';
|
431 |
|
432 |
+
return '<table border="0" cellpadding="0" cellspacing="0" class="wn-body" style="background-color: '.esc_attr($bgnotifications).'; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Open Sans, sans-serif;border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">
|
433 |
<tr>
|
434 |
<td class="wn-container" style="display: block; margin: 0 auto !important; max-width: 680px; padding: 10px;font-family: sans-serif; font-size: 14px; vertical-align: top;">
|
435 |
<div class="wn-wrapper" style="box-sizing: border-box; padding: 38px 9% 50px; width: 100%; height: auto; background: #fff; background-size: contain; margin-bottom: 25px; margin-top: 30px; border-radius: 4px; box-shadow: 0 3px 55px -18px rgba(0,0,0,0.1);">
|
436 |
+
'.\MEC_kses::page($content).'
|
437 |
</div>
|
438 |
</td>
|
439 |
</tr>
|
app/core/src/Notifications/template-notification-settings.php
CHANGED
@@ -36,7 +36,7 @@ $options = $atts['options'];
|
|
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']) ?
|
40 |
</div>
|
41 |
</div>
|
42 |
|
@@ -87,7 +87,7 @@ $options = $atts['options'];
|
|
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>
|
@@ -106,9 +106,9 @@ $options = $atts['options'];
|
|
106 |
$content = isset($options['content']) ? stripslashes($options['content']) : '';
|
107 |
wp_editor(
|
108 |
$content,
|
109 |
-
'mec_notifications_' . $group_id . '_notification_content',
|
110 |
array(
|
111 |
-
'textarea_name'=> $base_field_name.'['. $group_id.'_notification][content]'
|
112 |
)
|
113 |
);
|
114 |
?>
|
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']) ? esc_attr($options['subject']) : ''); ?>" />
|
40 |
</div>
|
41 |
</div>
|
42 |
|
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']) ? esc_attr($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>
|
106 |
$content = isset($options['content']) ? stripslashes($options['content']) : '';
|
107 |
wp_editor(
|
108 |
$content,
|
109 |
+
'mec_notifications_' . esc_attr($group_id) . '_notification_content',
|
110 |
array(
|
111 |
+
'textarea_name'=> esc_attr($base_field_name.'['. $group_id.'_notification][content]')
|
112 |
)
|
113 |
);
|
114 |
?>
|
app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php
CHANGED
@@ -50,7 +50,7 @@ class EventCategories extends WidgetBase {
|
|
50 |
$icon = get_metadata('term', $category['id'], 'mec_cat_icon', true);
|
51 |
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr( $icon ) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
52 |
echo '<dd class="mec-events-event-categories">
|
53 |
-
<a href="' . esc_attr( get_term_link($category['id'], 'mec_category') ) . '" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . '</a></dd>';
|
54 |
}
|
55 |
echo '</div>';
|
56 |
$html = ob_get_clean();
|
50 |
$icon = get_metadata('term', $category['id'], 'mec_cat_icon', true);
|
51 |
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr( $icon ) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
52 |
echo '<dd class="mec-events-event-categories">
|
53 |
+
<a href="' . esc_attr( get_term_link($category['id'], 'mec_category') ) . '" class="mec-color-hover" rel="tag">' . $icon . esc_html($category['name']) . '</a></dd>';
|
54 |
}
|
55 |
echo '</div>';
|
56 |
$html = ob_get_clean();
|
app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php
CHANGED
@@ -48,7 +48,7 @@ class EventLabels extends WidgetBase {
|
|
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>';
|
52 |
endforeach; ?>
|
53 |
</div>
|
54 |
<?php
|
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'] ) . '">' . esc_html($label["name"] . $seperator) . '</dd>';
|
52 |
endforeach; ?>
|
53 |
</div>
|
54 |
<?php
|
app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php
CHANGED
@@ -48,13 +48,13 @@ class EventLocations extends WidgetBase {
|
|
48 |
?>
|
49 |
<div class="mec-single-event-location">
|
50 |
<?php if ($location['thumbnail']) : ?>
|
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>
|
58 |
</dd>
|
59 |
|
60 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
48 |
?>
|
49 |
<div class="mec-single-event-location">
|
50 |
<?php if ($location['thumbnail']) : ?>
|
51 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail']); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($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']) ? esc_html($location['name']) : ''); ?></dd>
|
56 |
<dd class="location">
|
57 |
+
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address>
|
58 |
</dd>
|
59 |
|
60 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php
CHANGED
@@ -46,7 +46,7 @@ class EventMoreInfo extends WidgetBase {
|
|
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
|
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']) ? esc_attr($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'])) ? esc_html($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/EventOrganizers/EventOrganizers.php
CHANGED
@@ -48,13 +48,13 @@ class EventOrganizers extends WidgetBase {
|
|
48 |
?>
|
49 |
<div class="mec-single-event-organizer">
|
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>
|
57 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
58 |
</dd>
|
59 |
<?php endif;
|
60 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
48 |
?>
|
49 |
<div class="mec-single-event-organizer">
|
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']) ? esc_attr($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>
|
57 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
58 |
</dd>
|
59 |
<?php endif;
|
60 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php
CHANGED
@@ -49,7 +49,7 @@ class EventTags extends WidgetBase {
|
|
49 |
', ',
|
50 |
array_map(
|
51 |
function($tag) {
|
52 |
-
return '<a href="' .
|
53 |
}, $tags
|
54 |
)
|
55 |
);
|
49 |
', ',
|
50 |
array_map(
|
51 |
function($tag) {
|
52 |
+
return '<a href="' . esc_url( get_tag_link($tag->term_id) ) . '">' . esc_html($tag->name) . ' </a>';
|
53 |
}, $tags
|
54 |
)
|
55 |
);
|
app/core/src/SingleBuilder/Widgets/EventTime/EventTime.php
CHANGED
@@ -41,7 +41,7 @@ class EventTime extends WidgetBase {
|
|
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 ?>
|
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) ? esc_html($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 ?>
|
app/features/autoemails.php
CHANGED
@@ -67,12 +67,12 @@ class MEC_feature_autoemails extends MEC_base
|
|
67 |
(
|
68 |
'name'=>$plural_label,
|
69 |
'singular_name'=>$singular_label,
|
70 |
-
'add_new'=>sprintf(
|
71 |
-
'add_new_item'=>sprintf(
|
72 |
-
'not_found'=>sprintf(
|
73 |
'all_items'=>$plural_label,
|
74 |
-
'edit_item'=>sprintf(
|
75 |
-
'not_found_in_trash'=>sprintf(
|
76 |
),
|
77 |
'public'=>false,
|
78 |
'show_ui'=>(current_user_can($capability) ? true : false),
|
@@ -142,7 +142,7 @@ class MEC_feature_autoemails extends MEC_base
|
|
142 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
143 |
|
144 |
// MEC Data
|
145 |
-
$mec = (isset($_POST['mec']) and is_array($_POST['mec'])) ? $_POST['mec'] : array();
|
146 |
|
147 |
// All Options
|
148 |
update_post_meta($post_id, 'mec', $mec);
|
67 |
(
|
68 |
'name'=>$plural_label,
|
69 |
'singular_name'=>$singular_label,
|
70 |
+
'add_new'=>sprintf(esc_html__('Add %s', 'modern-events-calendar-lite'), $singular_label),
|
71 |
+
'add_new_item'=>sprintf(esc_html__('Add %s', 'modern-events-calendar-lite'), $singular_label),
|
72 |
+
'not_found'=>sprintf(esc_html__('No %s found!', 'modern-events-calendar-lite'), strtolower($plural_label)),
|
73 |
'all_items'=>$plural_label,
|
74 |
+
'edit_item'=>sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $plural_label),
|
75 |
+
'not_found_in_trash'=>sprintf(esc_html__('No %s found in Trash!', 'modern-events-calendar-lite'), strtolower($singular_label))
|
76 |
),
|
77 |
'public'=>false,
|
78 |
'show_ui'=>(current_user_can($capability) ? true : false),
|
142 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
143 |
|
144 |
// MEC Data
|
145 |
+
$mec = (isset($_POST['mec']) and is_array($_POST['mec'])) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
146 |
|
147 |
// All Options
|
148 |
update_post_meta($post_id, 'mec', $mec);
|
app/features/booking/calendar_novel.php
CHANGED
@@ -70,28 +70,28 @@ $navigator_html = '';
|
|
70 |
// Show previous navigation
|
71 |
if(strtotime(date('Y-m-t', $_1month_before)) >= time())
|
72 |
{
|
73 |
-
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-previous-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '
|
74 |
}
|
75 |
|
76 |
-
$navigator_html .= '<div class="mec-calendar-header"><h2>'
|
77 |
|
78 |
// Show next navigation
|
79 |
if(strtotime(date('Y-m-01', $_1month_after)) >= time())
|
80 |
{
|
81 |
-
$navigator_html .= '<div class="mec-next-month mec-load-month mec-next-month" data-mec-year="'.date('Y', $_1month_after).'" data-mec-month="'.date('m', $_1month_after).'"><a href="#" class="mec-load-month-link">'
|
82 |
}
|
83 |
|
84 |
// Generating javascript code tpl
|
85 |
$javascript = '<script type="text/javascript">
|
86 |
jQuery(document).ready(function()
|
87 |
{
|
88 |
-
jQuery("#mec_booking_calendar_'
|
89 |
{
|
90 |
active_month: {year: "'.date('Y', $current_month_time).'", month: "'.date('m', $current_month_time).'"},
|
91 |
next_month: {year: "'.date('Y', $_1month_after).'", month: "'.date('m', $_1month_after).'"},
|
92 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
93 |
-
id: "'
|
94 |
-
event_id: "'
|
95 |
});
|
96 |
});
|
97 |
</script>';
|
@@ -142,7 +142,7 @@ echo MEC_kses::full($javascript);
|
|
142 |
$soldout = $this->main->is_soldout($event->ID, $start_datetime);
|
143 |
if($is_soldout and !$soldout) $is_soldout = false;
|
144 |
|
145 |
-
$render .='<div class="mec-booking-calendar-date '.($soldout ? 'mec-booking-calendar-date-soldout' : '').'" data-timestamp="'
|
146 |
$first_day = strtotime($date['start']['date']) == $time ? ' first-day' : null;
|
147 |
$middle_day = (strtotime($date['end']['date']) != $time && strtotime($date['start']['date']) != $time) ? ' middle-day' : null;
|
148 |
$last_day = strtotime($date['end']['date']) == $time ? ' last-day' : null;
|
@@ -151,13 +151,13 @@ echo MEC_kses::full($javascript);
|
|
151 |
}
|
152 |
|
153 |
$repeat_class = $repeat > 1 ? ' mec-has-time-repeat' : '';
|
154 |
-
$date_for_wrap = $repeat == 1 ? 'data-timestamp="'
|
155 |
$custom_class1 = $repeat == 1 ? ' mec-has-one-repeat-in-day' : '';
|
156 |
$custom_class2 = $repeat >= 1 ? ' mec-has-event-for-booking' : '';
|
157 |
$soldout_class = ($is_soldout ? ' mec-booking-calendar-date-soldout' : '');
|
158 |
|
159 |
-
echo '<dt class="mec-calendar-day'.$default_day.$repeat_class.$custom_class1.$custom_class2.$first_day.$last_day.$middle_day.$soldout_class.'" '.$date_for_wrap.'><div class="mec-calendar-novel-selected-day"><span>'.$list_day.'</span></div>';
|
160 |
-
echo '<div class="mec-booking-tooltip">'
|
161 |
echo '</dt>';
|
162 |
|
163 |
if($running_day == 6)
|
@@ -181,7 +181,7 @@ echo MEC_kses::full($javascript);
|
|
181 |
{
|
182 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
183 |
{
|
184 |
-
echo '<dt class="mec-table-nullday">'
|
185 |
}
|
186 |
}
|
187 |
?>
|
70 |
// Show previous navigation
|
71 |
if(strtotime(date('Y-m-t', $_1month_before)) >= time())
|
72 |
{
|
73 |
+
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-previous-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '.esc_html($this->main->date_i18n('F', $_1month_before)).'</a></div>';
|
74 |
}
|
75 |
|
76 |
+
$navigator_html .= '<div class="mec-calendar-header"><h2>'.esc_html($this->main->date_i18n('F Y', $current_month_time)).'</h2></div>';
|
77 |
|
78 |
// Show next navigation
|
79 |
if(strtotime(date('Y-m-01', $_1month_after)) >= time())
|
80 |
{
|
81 |
+
$navigator_html .= '<div class="mec-next-month mec-load-month mec-next-month" data-mec-year="'.date('Y', $_1month_after).'" data-mec-month="'.date('m', $_1month_after).'"><a href="#" class="mec-load-month-link">'.esc_html($this->main->date_i18n('F', $_1month_after)).' <i class="mec-sl-angle-right"></i></a></div>';
|
82 |
}
|
83 |
|
84 |
// Generating javascript code tpl
|
85 |
$javascript = '<script type="text/javascript">
|
86 |
jQuery(document).ready(function()
|
87 |
{
|
88 |
+
jQuery("#mec_booking_calendar_'.esc_js($uniqueid).'").mecBookingCalendar(
|
89 |
{
|
90 |
active_month: {year: "'.date('Y', $current_month_time).'", month: "'.date('m', $current_month_time).'"},
|
91 |
next_month: {year: "'.date('Y', $_1month_after).'", month: "'.date('m', $_1month_after).'"},
|
92 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
93 |
+
id: "'.esc_js($uniqueid).'",
|
94 |
+
event_id: "'.esc_js($event->ID).'",
|
95 |
});
|
96 |
});
|
97 |
</script>';
|
142 |
$soldout = $this->main->is_soldout($event->ID, $start_datetime);
|
143 |
if($is_soldout and !$soldout) $is_soldout = false;
|
144 |
|
145 |
+
$render .='<div class="mec-booking-calendar-date '.($soldout ? 'mec-booking-calendar-date-soldout' : '').'" data-timestamp="'.esc_attr($this->book->timestamp($date['start'], $date['end'])).'">' .(($date['start']['date'] !== $date['end']['date']) ? '<div class="mec-booking-calendar-date-hover">'.strip_tags($this->main->date_label($date['start'], $date['end'], $date_format, ' - ', false, (isset($date['allday']) ? $date['allday'] : 0), $event)).'</div><div class="mec-booking-calendar-time-hover">' : ($allday != 0 ? esc_html__('All Day' , 'modern-events-calendar-lite') : '')).strip_tags($this->main->date_label($date['start'], $date['end'], $time_format, ' - ', false, (isset($date['allday']) ? $date['allday'] : 0))).(($date['start']['date'] !== $date['end']['date']) ?'</div>' : '') .'</div>';
|
146 |
$first_day = strtotime($date['start']['date']) == $time ? ' first-day' : null;
|
147 |
$middle_day = (strtotime($date['end']['date']) != $time && strtotime($date['start']['date']) != $time) ? ' middle-day' : null;
|
148 |
$last_day = strtotime($date['end']['date']) == $time ? ' last-day' : null;
|
151 |
}
|
152 |
|
153 |
$repeat_class = $repeat > 1 ? ' mec-has-time-repeat' : '';
|
154 |
+
$date_for_wrap = $repeat == 1 ? 'data-timestamp="'.esc_attr($date_timestamp).'"' : '';
|
155 |
$custom_class1 = $repeat == 1 ? ' mec-has-one-repeat-in-day' : '';
|
156 |
$custom_class2 = $repeat >= 1 ? ' mec-has-event-for-booking' : '';
|
157 |
$soldout_class = ($is_soldout ? ' mec-booking-calendar-date-soldout' : '');
|
158 |
|
159 |
+
echo '<dt class="mec-calendar-day '.$default_day.$repeat_class.$custom_class1.$custom_class2.$first_day.$last_day.$middle_day.$soldout_class.'" '.$date_for_wrap.'><div class="mec-calendar-novel-selected-day"><span>'.$list_day.'</span></div>';
|
160 |
+
echo '<div class="mec-booking-tooltip">'.MEC_kses::full($render).'</div>';
|
161 |
echo '</dt>';
|
162 |
|
163 |
if($running_day == 6)
|
181 |
{
|
182 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
183 |
{
|
184 |
+
echo '<dt class="mec-table-nullday">'.esc_html($x).'</dt>';
|
185 |
}
|
186 |
}
|
187 |
?>
|
app/features/cart.php
CHANGED
@@ -190,7 +190,7 @@ class MEC_feature_cart extends MEC_base
|
|
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>';
|
195 |
|
196 |
wp_send_json($results);
|
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') . '">' . MEC_kses::element($results['message']) . '</div>
|
194 |
</div>';
|
195 |
|
196 |
wp_send_json($results);
|
app/features/cart/cart.php
CHANGED
@@ -53,7 +53,7 @@ $archive_url = $this->main->get_archive_url();
|
|
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').'">'
|
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>
|
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').'">'.esc_html($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>
|
app/features/cart/checkout.php
CHANGED
@@ -93,7 +93,7 @@ $this->factory->params('footer', $javascript);
|
|
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(
|
97 |
</div>
|
98 |
</form>
|
99 |
</div>
|
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(esc_html__('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
@@ -87,7 +87,7 @@ class MEC_feature_colors extends MEC_base
|
|
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('
|
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; ?>
|
@@ -114,7 +114,7 @@ class MEC_feature_colors extends MEC_base
|
|
114 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
115 |
|
116 |
// Get Modern Events Calendar Data
|
117 |
-
$_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
118 |
|
119 |
$color = isset($_mec['color']) ? trim(sanitize_text_field($_mec['color']), '# ') : '';
|
120 |
update_post_meta($post_id, 'mec_color', $color);
|
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('.esc_attr($rgba_array[0]).','.esc_attr($rgba_array[1]).','.esc_attr($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; ?>
|
114 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
115 |
|
116 |
// Get Modern Events Calendar Data
|
117 |
+
$_mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
118 |
|
119 |
$color = isset($_mec['color']) ? trim(sanitize_text_field($_mec['color']), '# ') : '';
|
120 |
update_post_meta($post_id, 'mec_color', $color);
|
app/features/dc.php
CHANGED
@@ -214,7 +214,7 @@ class MEC_feature_dc extends MEC_base
|
|
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="'
|
218 |
}
|
219 |
else return '';
|
220 |
}
|
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="'.esc_attr($more_info_target).'" href="'.esc_url($more_info_url).'">'.esc_html($more_info_title).'</a>';
|
218 |
}
|
219 |
else return '';
|
220 |
}
|
app/features/dlfile.php
CHANGED
@@ -140,7 +140,7 @@ class MEC_feature_dlfile extends MEC_base
|
|
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="'
|
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>
|
@@ -289,7 +289,7 @@ class MEC_feature_dlfile extends MEC_base
|
|
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="'
|
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>
|
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="'.esc_url($file_url).'" target="_blank">'.esc_html($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>
|
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="'.esc_url($file_url).'" target="_blank">'.esc_html($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>
|
app/features/events.php
CHANGED
@@ -226,14 +226,14 @@ class MEC_feature_events extends MEC_base
|
|
226 |
'labels' => array(
|
227 |
'name' => $plural_label,
|
228 |
'singular_name' => $singular_label,
|
229 |
-
'all_items' => sprintf(
|
230 |
-
'edit_item' => sprintf(
|
231 |
-
'view_item' => sprintf(
|
232 |
-
'update_item' => sprintf(
|
233 |
-
'add_new_item' => sprintf(
|
234 |
-
'new_item_name' => sprintf(
|
235 |
-
'popular_items' => sprintf(
|
236 |
-
'search_items' => sprintf(
|
237 |
),
|
238 |
'public' => true,
|
239 |
'show_ui' => true,
|
@@ -331,7 +331,7 @@ class MEC_feature_events extends MEC_base
|
|
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="'
|
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>
|
@@ -440,27 +440,27 @@ class MEC_feature_events extends MEC_base
|
|
440 |
{
|
441 |
if($link_address == 'mec_meta_box_fes_form')
|
442 |
{
|
443 |
-
if(($note_visibility and trim($note)) || (trim($fes_guest_email) and trim($fes_guest_name))) echo '<a class="mec-add-event-tabs-link" data-href="'
|
444 |
}
|
445 |
elseif($link_address == 'mec-exceptional-days')
|
446 |
{
|
447 |
-
if(isset($this->settings['exceptional_days']) and $this->settings['exceptional_days']) echo '<a class="mec-add-event-tabs-link" data-href="'
|
448 |
}
|
449 |
elseif($link_address == 'mec-event-data')
|
450 |
{
|
451 |
-
if(count($event_fields) and isset($this->settings['display_event_fields_backend']) and $this->settings['display_event_fields_backend'] == 1) echo '<a class="mec-add-event-tabs-link" data-href="'
|
452 |
}
|
453 |
elseif($link_address == 'mec-notifications')
|
454 |
{
|
455 |
-
if(isset($this->settings['notif_per_event']) and $this->settings['notif_per_event']) echo '<a class="mec-add-event-tabs-link" data-href="'
|
456 |
}
|
457 |
elseif($link_address == 'mec-public-download-module-file')
|
458 |
{
|
459 |
-
if(isset($this->settings['public_download_module']) and $this->settings['public_download_module']) echo '<a class="mec-add-event-tabs-link" data-href="'
|
460 |
}
|
461 |
else
|
462 |
{
|
463 |
-
echo '<a class="mec-add-event-tabs-link" data-href="'
|
464 |
}
|
465 |
}
|
466 |
?>
|
@@ -943,7 +943,7 @@ class MEC_feature_events extends MEC_base
|
|
943 |
}
|
944 |
|
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' : '').'">'
|
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); ?>"/>
|
@@ -1309,7 +1309,7 @@ class MEC_feature_events extends MEC_base
|
|
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>
|
@@ -1333,13 +1333,13 @@ class MEC_feature_events extends MEC_base
|
|
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>
|
1344 |
</div>
|
1345 |
<div class="mec-form-row">
|
@@ -1959,7 +1959,7 @@ class MEC_feature_events extends MEC_base
|
|
1959 |
'time_hour' => (isset($ticket['ticket_start_time_hour']) ? $ticket['ticket_start_time_hour'] : 8),
|
1960 |
'time_minutes' => (isset($ticket['ticket_start_time_minute']) ? $ticket['ticket_start_time_minute'] : 0),
|
1961 |
'time_ampm' => (isset($ticket['ticket_start_time_ampm']) ? $ticket['ticket_start_time_ampm'] : 'AM'),
|
1962 |
-
'name' => 'mec[tickets]['
|
1963 |
'hour_key' => 'ticket_start_time_hour',
|
1964 |
'minutes_key' => 'ticket_start_time_minute',
|
1965 |
'ampm_key' => 'ticket_start_time_ampm',
|
@@ -1973,7 +1973,7 @@ class MEC_feature_events extends MEC_base
|
|
1973 |
'time_hour' => (isset($ticket['ticket_end_time_hour']) ? $ticket['ticket_end_time_hour'] : 6),
|
1974 |
'time_minutes' => (isset($ticket['ticket_end_time_minute']) ? $ticket['ticket_end_time_minute'] : 0),
|
1975 |
'time_ampm' => (isset($ticket['ticket_end_time_ampm']) ? $ticket['ticket_end_time_ampm'] : 'PM'),
|
1976 |
-
'name' => 'mec[tickets]['
|
1977 |
'hour_key' => 'ticket_end_time_hour',
|
1978 |
'minutes_key' => 'ticket_end_time_minute',
|
1979 |
'ampm_key' => 'ticket_end_time_ampm',
|
@@ -2073,7 +2073,7 @@ class MEC_feature_events extends MEC_base
|
|
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(
|
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>
|
@@ -2097,19 +2097,19 @@ class MEC_feature_events extends MEC_base
|
|
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>
|
@@ -2175,8 +2175,8 @@ class MEC_feature_events extends MEC_base
|
|
2175 |
|
2176 |
$tvi = max($tvi, $tvk);
|
2177 |
$TicketVariations->item(array(
|
2178 |
-
'name_prefix' => 'mec[tickets]['
|
2179 |
-
'id_prefix' => 'variation_per_ticket'
|
2180 |
'i' => $tvi,
|
2181 |
'value' => $ticket_variation,
|
2182 |
));
|
@@ -2188,8 +2188,8 @@ class MEC_feature_events extends MEC_base
|
|
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]['
|
2192 |
-
'id_prefix' => 'variation_per_ticket'
|
2193 |
'i' => ':v:',
|
2194 |
'value' => array(),
|
2195 |
));
|
@@ -2320,7 +2320,7 @@ class MEC_feature_events extends MEC_base
|
|
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(
|
2324 |
<button class="button remove" type="button"
|
2325 |
onclick="mec_ticket_remove(:i:)"><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>
|
2326 |
</div>
|
@@ -2890,7 +2890,7 @@ class MEC_feature_events extends MEC_base
|
|
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>
|
@@ -2998,7 +2998,7 @@ class MEC_feature_events extends MEC_base
|
|
2998 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
2999 |
|
3000 |
// Get Modern Events Calendar Data
|
3001 |
-
$_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
3002 |
|
3003 |
$start_date = (isset($_mec['date']['start']['date']) and trim($_mec['date']['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($_mec['date']['start']['date'])) : date('Y-m-d');
|
3004 |
$end_date = (isset($_mec['date']['end']['date']) and trim($_mec['date']['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($_mec['date']['end']['date'])) : date('Y-m-d');
|
@@ -3753,8 +3753,8 @@ class MEC_feature_events extends MEC_base
|
|
3753 |
$screen = get_current_screen();
|
3754 |
if($which === 'top' and $screen->post_type === $this->PT)
|
3755 |
{
|
3756 |
-
echo '<a href="'.admin_url('edit.php?post_type='.$this->PT.'&mec-expired=1').'" class="button">'.esc_html__('Expired Events', 'modern-events-calendar-lite').'</a>';
|
3757 |
-
echo ' <a href="'.admin_url('edit.php?post_type='.$this->PT.'&mec-upcoming=1').'" class="button">'.esc_html__('Upcoming Events', 'modern-events-calendar-lite').'</a>';
|
3758 |
}
|
3759 |
}
|
3760 |
|
@@ -3774,7 +3774,7 @@ class MEC_feature_events extends MEC_base
|
|
3774 |
{
|
3775 |
wp_dropdown_categories(
|
3776 |
array(
|
3777 |
-
'show_option_all' => sprintf(
|
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(
|
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(
|
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(
|
3832 |
'taxonomy' => $taxonomy,
|
3833 |
'name' => $taxonomy,
|
3834 |
'value_field' => 'slug',
|
@@ -4190,8 +4190,8 @@ class MEC_feature_events extends MEC_base
|
|
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(
|
4194 |
-
sprintf(
|
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'),
|
@@ -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="'
|
4297 |
|
4298 |
// Booking Button
|
4299 |
-
if($this->getPRO() and isset($this->settings['booking_status']) and $this->settings['booking_status']) $actions['mec-bookings'] = '<a href="'
|
4300 |
|
4301 |
return $actions;
|
4302 |
}
|
@@ -4330,8 +4330,15 @@ class MEC_feature_events extends MEC_base
|
|
4330 |
|
4331 |
$mec_locations = (isset($_GET['tax_input']['mec_location']) and trim($_GET['tax_input']['mec_location'])) ? array_filter(explode(',', sanitize_text_field($_GET['tax_input']['mec_location']))) : NULL;
|
4332 |
$mec_organizers = (isset($_GET['tax_input']['mec_organizer']) and trim($_GET['tax_input']['mec_organizer'])) ? array_filter(explode(',', sanitize_text_field($_GET['tax_input']['mec_organizer']))) : NULL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4333 |
$terms = get_terms(array(
|
4334 |
-
'taxonomy' =>
|
4335 |
));
|
4336 |
|
4337 |
foreach($post_ids as $post_id)
|
@@ -4449,7 +4456,7 @@ class MEC_feature_events extends MEC_base
|
|
4449 |
<span>'.esc_html__('Email', 'modern-events-calendar-lite').'</span>
|
4450 |
</div>
|
4451 |
<div class="w-col-xs-3 ticket">
|
4452 |
-
<span>'
|
4453 |
</div>
|
4454 |
<div class="w-col-xs-2">
|
4455 |
<span>'.esc_html__('Variations', 'modern-events-calendar-lite').'</span>
|
@@ -4464,9 +4471,9 @@ class MEC_feature_events extends MEC_base
|
|
4464 |
$key++;
|
4465 |
|
4466 |
$html .= '<div class="w-clearfix mec-attendees-content">';
|
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">'
|
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">'
|
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">';
|
@@ -4481,8 +4488,8 @@ class MEC_feature_events extends MEC_base
|
|
4481 |
$variation_title = (isset($ticket_variations[$variation_id]) and isset($ticket_variations[$variation_id]['title'])) ? $ticket_variations[$variation_id]['title'] : '';
|
4482 |
if(!trim($variation_title)) continue;
|
4483 |
|
4484 |
-
$variations .= '<span>+ '
|
4485 |
-
<span>('
|
4486 |
}
|
4487 |
}
|
4488 |
|
@@ -4495,7 +4502,7 @@ class MEC_feature_events extends MEC_base
|
|
4495 |
$index++;
|
4496 |
}
|
4497 |
|
4498 |
-
$email_button = '<p>'.esc_html__('If you want to send an email, first select your attendees and then click in the button below, please.', 'modern-events-calendar-lite').'</p><button data-id="'
|
4499 |
}
|
4500 |
else
|
4501 |
{
|
@@ -4516,7 +4523,7 @@ class MEC_feature_events extends MEC_base
|
|
4516 |
|
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));
|
@@ -4773,8 +4780,8 @@ class MEC_feature_events extends MEC_base
|
|
4773 |
foreach($unique_attendees as $unique_attendee)
|
4774 |
{
|
4775 |
$attendees_html .= '<li>';
|
4776 |
-
$attendees_html .= '<div class="mec-booking-attendees-tooltip-name">'
|
4777 |
-
$attendees_html .= '<div class="mec-booking-attendees-tooltip-email"><a href="mailto:'.esc_attr($unique_attendee['email']).'">'
|
4778 |
$attendees_html .= '</li>';
|
4779 |
}
|
4780 |
|
@@ -4790,10 +4797,10 @@ class MEC_feature_events extends MEC_base
|
|
4790 |
$price_html .= ' '.get_post_meta($booking->ID, 'mec_gateway_label', true);
|
4791 |
|
4792 |
$html .= '<div class="w-clearfix">';
|
4793 |
-
$html .= '<div class="w-col-xs-3">'.($backend ? '<a href="'.get_edit_post_link($booking->ID).'" target="_blank">'
|
4794 |
-
$html .= '<div class="w-col-xs-3">'
|
4795 |
-
$html .= '<div class="w-col-xs-3">'
|
4796 |
-
$html .= '<div class="w-col-xs-3">'
|
4797 |
$html .= '</div>';
|
4798 |
|
4799 |
$index++;
|
226 |
'labels' => array(
|
227 |
'name' => $plural_label,
|
228 |
'singular_name' => $singular_label,
|
229 |
+
'all_items' => sprintf(esc_html__('All %s', 'modern-events-calendar-lite'), $plural_label),
|
230 |
+
'edit_item' => sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
|
231 |
+
'view_item' => sprintf(esc_html__('View %s', 'modern-events-calendar-lite'), $singular_label),
|
232 |
+
'update_item' => sprintf(esc_html__('Update %s', 'modern-events-calendar-lite'), $singular_label),
|
233 |
+
'add_new_item' => sprintf(esc_html__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
|
234 |
+
'new_item_name' => sprintf(esc_html__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
|
235 |
+
'popular_items' => sprintf(esc_html__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
|
236 |
+
'search_items' => sprintf(esc_html__('Search %s', 'modern-events-calendar-lite'), $plural_label),
|
237 |
),
|
238 |
'public' => true,
|
239 |
'show_ui' => true,
|
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="'.esc_url($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>
|
440 |
{
|
441 |
if($link_address == 'mec_meta_box_fes_form')
|
442 |
{
|
443 |
+
if(($note_visibility and trim($note)) || (trim($fes_guest_email) and trim($fes_guest_name))) echo '<a class="mec-add-event-tabs-link" data-href="'.esc_attr($link_address).'" href="#">'.esc_html($link_name).'</a>';
|
444 |
}
|
445 |
elseif($link_address == 'mec-exceptional-days')
|
446 |
{
|
447 |
+
if(isset($this->settings['exceptional_days']) and $this->settings['exceptional_days']) echo '<a class="mec-add-event-tabs-link" data-href="'.esc_attr($link_address).'" href="#">'.esc_html($link_name).'</a>';
|
448 |
}
|
449 |
elseif($link_address == 'mec-event-data')
|
450 |
{
|
451 |
+
if(count($event_fields) and isset($this->settings['display_event_fields_backend']) and $this->settings['display_event_fields_backend'] == 1) echo '<a class="mec-add-event-tabs-link" data-href="'.esc_attr($link_address).'" href="#">'.esc_html($link_name).'</a>';
|
452 |
}
|
453 |
elseif($link_address == 'mec-notifications')
|
454 |
{
|
455 |
+
if(isset($this->settings['notif_per_event']) and $this->settings['notif_per_event']) echo '<a class="mec-add-event-tabs-link" data-href="'.esc_attr($link_address).'" href="#">'.esc_html($link_name).'</a>';
|
456 |
}
|
457 |
elseif($link_address == 'mec-public-download-module-file')
|
458 |
{
|
459 |
+
if(isset($this->settings['public_download_module']) and $this->settings['public_download_module']) echo '<a class="mec-add-event-tabs-link" data-href="'.esc_attr($link_address).'" href="#">'.esc_html($link_name).'</a>';
|
460 |
}
|
461 |
else
|
462 |
{
|
463 |
+
echo '<a class="mec-add-event-tabs-link" data-href="'.esc_attr($link_address).'" href="#">'.esc_html($link_name).'</a>';
|
464 |
}
|
465 |
}
|
466 |
?>
|
943 |
}
|
944 |
|
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' : '').'">'.esc_html($in_day_start_time_label).'</span>' : '') . ' - ' . $second_date. (trim($in_day_end_time_label) ? ' <span class="mec-time-picker-label '.($allday ? 'mec-util-hidden' : '').'">'.esc_html($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); ?>"/>
|
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']) ? esc_attr($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>
|
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']) ? esc_attr($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']) ? esc_attr($currency['decimal_separator']) : '.'); ?>" />
|
1343 |
</div>
|
1344 |
</div>
|
1345 |
<div class="mec-form-row">
|
1959 |
'time_hour' => (isset($ticket['ticket_start_time_hour']) ? $ticket['ticket_start_time_hour'] : 8),
|
1960 |
'time_minutes' => (isset($ticket['ticket_start_time_minute']) ? $ticket['ticket_start_time_minute'] : 0),
|
1961 |
'time_ampm' => (isset($ticket['ticket_start_time_ampm']) ? $ticket['ticket_start_time_ampm'] : 'AM'),
|
1962 |
+
'name' => 'mec[tickets]['.esc_attr($key).']',
|
1963 |
'hour_key' => 'ticket_start_time_hour',
|
1964 |
'minutes_key' => 'ticket_start_time_minute',
|
1965 |
'ampm_key' => 'ticket_start_time_ampm',
|
1973 |
'time_hour' => (isset($ticket['ticket_end_time_hour']) ? $ticket['ticket_end_time_hour'] : 6),
|
1974 |
'time_minutes' => (isset($ticket['ticket_end_time_minute']) ? $ticket['ticket_end_time_minute'] : 0),
|
1975 |
'time_ampm' => (isset($ticket['ticket_end_time_ampm']) ? $ticket['ticket_end_time_ampm'] : 'PM'),
|
1976 |
+
'name' => 'mec[tickets]['.esc_attr($key).']',
|
1977 |
'hour_key' => 'ticket_end_time_hour',
|
1978 |
'minutes_key' => 'ticket_end_time_minute',
|
1979 |
'ampm_key' => 'ticket_end_time_ampm',
|
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(esc_html__('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>
|
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']) ? esc_attr($this->main->standardize_format($price_date['start'], $datepicker_format)) : esc_attr($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']) ? esc_attr($this->main->standardize_format($price_date['end'], $datepicker_format)) : esc_attr($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']) ? esc_attr($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']) ? esc_attr($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>
|
2175 |
|
2176 |
$tvi = max($tvi, $tvk);
|
2177 |
$TicketVariations->item(array(
|
2178 |
+
'name_prefix' => 'mec[tickets]['.esc_attr($key).'][variations]',
|
2179 |
+
'id_prefix' => 'variation_per_ticket'.esc_attr($key),
|
2180 |
'i' => $tvi,
|
2181 |
'value' => $ticket_variation,
|
2182 |
));
|
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]['.esc_attr($key).'][variations]',
|
2192 |
+
'id_prefix' => 'variation_per_ticket'.esc_attr($key),
|
2193 |
'i' => ':v:',
|
2194 |
'value' => array(),
|
2195 |
));
|
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(esc_html__('Stop selling ticket %s before event start.', 'modern-events-calendar-lite'), ob_get_clean()); ?>
|
2324 |
<button class="button remove" type="button"
|
2325 |
onclick="mec_ticket_remove(:i:)"><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>
|
2326 |
</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 esc_html(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>
|
2998 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
2999 |
|
3000 |
// Get Modern Events Calendar Data
|
3001 |
+
$_mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
3002 |
|
3003 |
$start_date = (isset($_mec['date']['start']['date']) and trim($_mec['date']['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($_mec['date']['start']['date'])) : date('Y-m-d');
|
3004 |
$end_date = (isset($_mec['date']['end']['date']) and trim($_mec['date']['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($_mec['date']['end']['date'])) : date('Y-m-d');
|
3753 |
$screen = get_current_screen();
|
3754 |
if($which === 'top' and $screen->post_type === $this->PT)
|
3755 |
{
|
3756 |
+
echo '<a href="'.esc_url(admin_url('edit.php?post_type='.$this->PT.'&mec-expired=1')).'" class="button">'.esc_html__('Expired Events', 'modern-events-calendar-lite').'</a>';
|
3757 |
+
echo ' <a href="'.esc_url(admin_url('edit.php?post_type='.$this->PT.'&mec-upcoming=1')).'" class="button">'.esc_html__('Upcoming Events', 'modern-events-calendar-lite').'</a>';
|
3758 |
}
|
3759 |
}
|
3760 |
|
3774 |
{
|
3775 |
wp_dropdown_categories(
|
3776 |
array(
|
3777 |
+
'show_option_all' => sprintf(esc_html__('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(esc_html__('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(esc_html__('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(esc_html__('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',
|
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(esc_html__('%s Tel', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))),
|
4194 |
+
sprintf(esc_html__('%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'),
|
4293 |
if($post->post_type != $this->PT) return $actions;
|
4294 |
|
4295 |
// Duplicate Button
|
4296 |
+
$actions['mec-duplicate'] = '<a href="'.esc_url($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="'.esc_url($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 |
}
|
4330 |
|
4331 |
$mec_locations = (isset($_GET['tax_input']['mec_location']) and trim($_GET['tax_input']['mec_location'])) ? array_filter(explode(',', sanitize_text_field($_GET['tax_input']['mec_location']))) : NULL;
|
4332 |
$mec_organizers = (isset($_GET['tax_input']['mec_organizer']) and trim($_GET['tax_input']['mec_organizer'])) ? array_filter(explode(',', sanitize_text_field($_GET['tax_input']['mec_organizer']))) : NULL;
|
4333 |
+
|
4334 |
+
if(!$mec_locations and !$mec_organizers) return;
|
4335 |
+
|
4336 |
+
$taxonomies = array();
|
4337 |
+
if(is_array($mec_locations)) $taxonomies[] = 'mec_location';
|
4338 |
+
if(is_array($mec_organizers)) $taxonomies[] = 'mec_organizer';
|
4339 |
+
|
4340 |
$terms = get_terms(array(
|
4341 |
+
'taxonomy' => $taxonomies,
|
4342 |
));
|
4343 |
|
4344 |
foreach($post_ids as $post_id)
|
4456 |
<span>'.esc_html__('Email', 'modern-events-calendar-lite').'</span>
|
4457 |
</div>
|
4458 |
<div class="w-col-xs-3 ticket">
|
4459 |
+
<span>'.esc_html($this->main->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite'))).'</span>
|
4460 |
</div>
|
4461 |
<div class="w-col-xs-2">
|
4462 |
<span>'.esc_html__('Variations', 'modern-events-calendar-lite').'</span>
|
4471 |
$key++;
|
4472 |
|
4473 |
$html .= '<div class="w-clearfix mec-attendees-content">';
|
4474 |
+
$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">'.esc_html($attendee['name'].':.:'.$attendee['email']).',</span></div>';
|
4475 |
$html .= '<div class="w-col-xs-3 name">' . get_avatar($attendee['email']) .$attendee['name'].'</div>';
|
4476 |
+
$html .= '<div class="w-col-xs-3 email">'.esc_html($attendee['email']).'</div>';
|
4477 |
$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>';
|
4478 |
|
4479 |
$variations = '<div class="w-col-xs-2">';
|
4488 |
$variation_title = (isset($ticket_variations[$variation_id]) and isset($ticket_variations[$variation_id]['title'])) ? $ticket_variations[$variation_id]['title'] : '';
|
4489 |
if(!trim($variation_title)) continue;
|
4490 |
|
4491 |
+
$variations .= '<span>+ '.esc_html($variation_title).'</span>
|
4492 |
+
<span>('.esc_html($variation_count).')</span>';
|
4493 |
}
|
4494 |
}
|
4495 |
|
4502 |
$index++;
|
4503 |
}
|
4504 |
|
4505 |
+
$email_button = '<p>'.esc_html__('If you want to send an email, first select your attendees and then click in the button below, please.', 'modern-events-calendar-lite').'</p><button data-id="'.esc_attr($id).'" onclick="mec_submit_event_email('.esc_attr($id).');">'.esc_html__('Send Email', 'modern-events-calendar-lite').'</button>';
|
4506 |
}
|
4507 |
else
|
4508 |
{
|
4523 |
|
4524 |
$mail_recipients_info = isset($_POST['mail_recipients_info']) ? trim(sanitize_text_field($_POST['mail_recipients_info']), ', ') : '';
|
4525 |
$mail_subject = isset($_POST['mail_subject']) ? sanitize_text_field($_POST['mail_subject']) : '';
|
4526 |
+
$mail_content = isset($_POST['mail_content']) ? MEC_kses::page($_POST['mail_content']) : '';
|
4527 |
$mail_copy = isset($_POST['mail_copy']) ? sanitize_text_field($_POST['mail_copy']) : 0;
|
4528 |
|
4529 |
$render_recipients = array_unique(explode(',', $mail_recipients_info));
|
4780 |
foreach($unique_attendees as $unique_attendee)
|
4781 |
{
|
4782 |
$attendees_html .= '<li>';
|
4783 |
+
$attendees_html .= '<div class="mec-booking-attendees-tooltip-name">'.esc_html($unique_attendee['name']).((isset($unique_attendee['count']) and $unique_attendee['count'] > 1) ? ' ('.esc_html($unique_attendee['count']).')' : '').'</div>';
|
4784 |
+
$attendees_html .= '<div class="mec-booking-attendees-tooltip-email"><a href="mailto:'.esc_attr($unique_attendee['email']).'">'.esc_html($unique_attendee['email']).'</a></div>';
|
4785 |
$attendees_html .= '</li>';
|
4786 |
}
|
4787 |
|
4797 |
$price_html .= ' '.get_post_meta($booking->ID, 'mec_gateway_label', true);
|
4798 |
|
4799 |
$html .= '<div class="w-clearfix">';
|
4800 |
+
$html .= '<div class="w-col-xs-3">'.($backend ? '<a href="'.get_edit_post_link($booking->ID).'" target="_blank">'.esc_html($booking->post_title).'</a>' : esc_html($booking->post_title)).'</div>';
|
4801 |
+
$html .= '<div class="w-col-xs-3">'.MEC_kses::form($attendees_html).'</div>';
|
4802 |
+
$html .= '<div class="w-col-xs-3">'.esc_html($transaction_id).'</div>';
|
4803 |
+
$html .= '<div class="w-col-xs-3">'.MEC_kses::element($price_html).'</div>';
|
4804 |
$html .= '</div>';
|
4805 |
|
4806 |
$index++;
|
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(
|
103 |
|
104 |
ob_start();
|
105 |
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(
|
191 |
|
192 |
ob_start();
|
193 |
include MEC::import('app.features.fes.message', true, true);
|
@@ -451,7 +451,7 @@ class MEC_feature_fes extends MEC_base
|
|
451 |
// Verify that the nonce is valid.
|
452 |
if(!wp_verify_nonce(sanitize_text_field($_POST['_wpnonce']), 'mec_fes_form')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
|
453 |
|
454 |
-
$mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
455 |
|
456 |
// Google recaptcha
|
457 |
if($this->main->get_recaptcha_status('fes'))
|
@@ -1516,9 +1516,9 @@ class FES_Custom_Walker extends Walker_Category
|
|
1516 |
$categories = array();
|
1517 |
if($post_categories) foreach($post_categories as $post_category) $categories[] = $post_category->term_id;
|
1518 |
|
1519 |
-
$output .= '<label for="mec_fes_categories' . $category->term_id . '">
|
1520 |
-
<input type="checkbox" name="mec[categories][' . $category->term_id . ']"
|
1521 |
-
id="mec_fes_categories' . $category->term_id .'" value="1"' . (in_array($category->term_id, $categories) ? 'checked="checked"' : '') . '/>' . $category->name;
|
1522 |
}
|
1523 |
|
1524 |
function end_el(&$output, $page, $depth = 0, $args = array())
|
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(esc_html__('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);
|
187 |
if(!is_user_logged_in())
|
188 |
{
|
189 |
// Show message
|
190 |
+
$message = sprintf(esc_html__('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);
|
451 |
// Verify that the nonce is valid.
|
452 |
if(!wp_verify_nonce(sanitize_text_field($_POST['_wpnonce']), 'mec_fes_form')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
|
453 |
|
454 |
+
$mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
455 |
|
456 |
// Google recaptcha
|
457 |
if($this->main->get_recaptcha_status('fes'))
|
1516 |
$categories = array();
|
1517 |
if($post_categories) foreach($post_categories as $post_category) $categories[] = $post_category->term_id;
|
1518 |
|
1519 |
+
$output .= '<label for="mec_fes_categories' . esc_attr($category->term_id) . '">
|
1520 |
+
<input type="checkbox" name="mec[categories][' . esc_attr($category->term_id) . ']"
|
1521 |
+
id="mec_fes_categories' . esc_attr($category->term_id) .'" value="1"' . (in_array($category->term_id, $categories) ? 'checked="checked"' : '') . '/>' . esc_html($category->name);
|
1522 |
}
|
1523 |
|
1524 |
function end_el(&$output, $page, $depth = 0, $args = array())
|
app/features/fes/form.php
CHANGED
@@ -260,7 +260,7 @@ $this->factory->params('footer', $javascript);
|
|
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">
|
266 |
<?php wp_editor((isset($post->post_content) ? $post->post_content : ''), 'mec_fes_content', array('textarea_name'=>'mec[content]')); ?>
|
@@ -270,7 +270,7 @@ $this->factory->params('footer', $javascript);
|
|
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>
|
274 |
</div>
|
275 |
</div>
|
276 |
</div>
|
@@ -511,7 +511,7 @@ $this->factory->params('footer', $javascript);
|
|
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
|
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; ?>
|
@@ -896,7 +896,7 @@ $this->factory->params('footer', $javascript);
|
|
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>
|
@@ -920,13 +920,13 @@ $this->factory->params('footer', $javascript);
|
|
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>
|
931 |
</div>
|
932 |
<div class="mec-form-row">
|
@@ -952,7 +952,7 @@ $this->factory->params('footer', $javascript);
|
|
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="'
|
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>
|
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) ? esc_attr($post->post_title) : ''); ?>" required="required" />
|
264 |
</div>
|
265 |
<div class="mec-form-row mec-fes-editor">
|
266 |
<?php wp_editor((isset($post->post_content) ? $post->post_content : ''), 'mec_fes_content', array('textarea_name'=>'mec[content]')); ?>
|
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) ? esc_textarea($post->post_excerpt) : ''); ?></textarea>
|
274 |
</div>
|
275 |
</div>
|
276 |
</div>
|
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 MEC_kses::element($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; ?>
|
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']) ? esc_attr($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>
|
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']) ? esc_attr($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']) ? esc_attr($currency['decimal_separator']) : '.'); ?>" />
|
930 |
</div>
|
931 |
</div>
|
932 |
<div class="mec-form-row">
|
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="'.esc_attr($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>
|
app/features/fes/list.php
CHANGED
@@ -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(
|
146 |
<?php endif; ?>
|
147 |
</div>
|
142 |
<?php endwhile; wp_reset_postdata(); // Restore original Post Data ?>
|
143 |
</ul>
|
144 |
<?php else: ?>
|
145 |
+
<p><?php echo sprintf(esc_html__('No events found! %s', 'modern-events-calendar-lite'), '<a href="'.esc_url($this->link_add_event()).'">'.esc_html__('Add new', 'modern-events-calendar-lite').'</a>'); ?></p>
|
146 |
<?php endif; ?>
|
147 |
</div>
|
app/features/ix.php
CHANGED
@@ -4329,7 +4329,7 @@ class MEC_feature_ix extends MEC_base
|
|
4329 |
$this->main->response(array('success'=>0, 'message'=>$ex->getMessage()));
|
4330 |
}
|
4331 |
|
4332 |
-
$this->main->response(array('success'=>1, 'message'=>sprintf(
|
4333 |
}
|
4334 |
|
4335 |
public function g_calendar_export_get_token()
|
@@ -4543,12 +4543,12 @@ class MEC_feature_ix extends MEC_base
|
|
4543 |
}
|
4544 |
|
4545 |
$results = '<ul>';
|
4546 |
-
foreach($g_events_not_inserted as $g_event_not_inserted) $results .= '<li><strong>'
|
4547 |
$results .= '<ul>';
|
4548 |
|
4549 |
-
$message = (count($g_events_inserted) ? sprintf(
|
4550 |
-
$message .= (count($g_events_updated) ? ' '.sprintf(
|
4551 |
-
$message .= (count($g_events_not_inserted) ? ' '.sprintf(
|
4552 |
|
4553 |
$this->main->response(array('success'=>((count($g_events_inserted) or count($g_events_updated)) ? 1 : 0), 'message'=>trim($message)));
|
4554 |
}
|
4329 |
$this->main->response(array('success'=>0, 'message'=>$ex->getMessage()));
|
4330 |
}
|
4331 |
|
4332 |
+
$this->main->response(array('success'=>1, 'message'=>sprintf(esc_html__('All seems good! Please click %s to authenticate your app.', 'modern-events-calendar-lite'), '<a href="'.esc_url($auth_url).'">'.esc_html__('here', 'modern-events-calendar-lite').'</a>')));
|
4333 |
}
|
4334 |
|
4335 |
public function g_calendar_export_get_token()
|
4543 |
}
|
4544 |
|
4545 |
$results = '<ul>';
|
4546 |
+
foreach($g_events_not_inserted as $g_event_not_inserted) $results .= '<li><strong>'.MEC_kses::element($g_event_not_inserted['title']).'</strong>: '.MEC_kses::element($g_event_not_inserted['message']).'</li>';
|
4547 |
$results .= '<ul>';
|
4548 |
|
4549 |
+
$message = (count($g_events_inserted) ? sprintf(esc_html__('%s events added to Google Calendar with success.', 'modern-events-calendar-lite'), '<strong>'.count($g_events_inserted).'</strong>') : '');
|
4550 |
+
$message .= (count($g_events_updated) ? ' '.sprintf(esc_html__('%s Updated previously added events.', 'modern-events-calendar-lite'), '<strong>'.count($g_events_updated).'</strong>') : '');
|
4551 |
+
$message .= (count($g_events_not_inserted) ? ' '.sprintf(esc_html__('%s events failed to add for following reasons: %s', 'modern-events-calendar-lite'), '<strong>'.count($g_events_not_inserted).'</strong>', $results) : '');
|
4552 |
|
4553 |
$this->main->response(array('success'=>((count($g_events_inserted) or count($g_events_updated)) ? 1 : 0), 'message'=>trim($message)));
|
4554 |
}
|
app/features/ix/export.php
CHANGED
@@ -34,7 +34,7 @@ $settings = $this->main->get_settings();
|
|
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(
|
38 |
</div>
|
39 |
|
40 |
<?php if(isset($settings['ical_feed']) and $settings['ical_feed']): ?>
|
@@ -55,7 +55,7 @@ $settings = $this->main->get_settings();
|
|
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(
|
59 |
</div>
|
60 |
|
61 |
<?php
|
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(esc_html__("For exporting filtered events, you can use bulk actions in %s page.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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']): ?>
|
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(esc_html__("For exporting bookings, you can use bulk actions in %s page.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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
@@ -26,24 +26,24 @@ if(isset($ix_options['google_export_token']) && $ix_options['google_export_token
|
|
26 |
<div class="export-content w-clearfix extra">
|
27 |
<div class="mec-export-events-g-calendar">
|
28 |
<h3><?php esc_html_e('Add events to Google Calendar', 'modern-events-calendar-lite'); ?></h3>
|
29 |
-
<p class="description"><?php esc_html_e("Add your desired website events to your Google Calendar.", 'modern-events-calendar-lite'); ?> <?php echo sprintf(
|
30 |
<form id="mec_g_calendar_export_form_authenticate" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
|
31 |
<div class="mec-form-row">
|
32 |
<label class="mec-col-3" for="mec_ix_google_export_client_id"><?php esc_html_e('App Client ID', 'modern-events-calendar-lite'); ?></label>
|
33 |
<div class="mec-col-4">
|
34 |
-
<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'] : ''); ?>" />
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="mec-form-row">
|
38 |
<label class="mec-col-3" for="mec_ix_google_export_client_secret"><?php esc_html_e('App Client Secret', 'modern-events-calendar-lite'); ?></label>
|
39 |
<div class="mec-col-4">
|
40 |
-
<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'] : ''); ?>" />
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="mec-form-row">
|
44 |
<label class="mec-col-3" for="mec_ix_google_export_calendar_id"><?php esc_html_e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
|
45 |
<div class="mec-col-4">
|
46 |
-
<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'] : ''); ?>" />
|
47 |
</div>
|
48 |
</div>
|
49 |
<div class="mec-options-fields">
|
26 |
<div class="export-content w-clearfix extra">
|
27 |
<div class="mec-export-events-g-calendar">
|
28 |
<h3><?php esc_html_e('Add events to Google Calendar', 'modern-events-calendar-lite'); ?></h3>
|
29 |
+
<p class="description"><?php esc_html_e("Add your desired website events to your Google Calendar.", 'modern-events-calendar-lite'); ?> <?php echo sprintf(esc_html__('You should set %s as redirect page in Google App Console.', 'modern-events-calendar-lite'), '<code>'.esc_url($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>
|
30 |
<form id="mec_g_calendar_export_form_authenticate" action="<?php echo esc_url($this->main->get_full_url()); ?>" method="POST">
|
31 |
<div class="mec-form-row">
|
32 |
<label class="mec-col-3" for="mec_ix_google_export_client_id"><?php esc_html_e('App Client ID', 'modern-events-calendar-lite'); ?></label>
|
33 |
<div class="mec-col-4">
|
34 |
+
<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']) ? esc_attr($ix_options['google_export_client_id']) : ''); ?>" />
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="mec-form-row">
|
38 |
<label class="mec-col-3" for="mec_ix_google_export_client_secret"><?php esc_html_e('App Client Secret', 'modern-events-calendar-lite'); ?></label>
|
39 |
<div class="mec-col-4">
|
40 |
+
<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']) ? esc_attr($ix_options['google_export_client_secret']) : ''); ?>" />
|
41 |
</div>
|
42 |
</div>
|
43 |
<div class="mec-form-row">
|
44 |
<label class="mec-col-3" for="mec_ix_google_export_calendar_id"><?php esc_html_e('Calendar ID', 'modern-events-calendar-lite'); ?></label>
|
45 |
<div class="mec-col-4">
|
46 |
+
<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']) ? esc_attr($ix_options['google_export_calendar_id']) : ''); ?>" />
|
47 |
</div>
|
48 |
</div>
|
49 |
<div class="mec-options-fields">
|
app/features/ix/import.php
CHANGED
@@ -21,7 +21,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
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(
|
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'); ?>">
|
@@ -45,7 +45,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
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(
|
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'); ?>">
|
@@ -55,7 +55,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
55 |
</div>
|
56 |
</form>
|
57 |
<?php else: ?>
|
58 |
-
<div class="info-msg"><?php echo sprintf(
|
59 |
<?php endif; ?>
|
60 |
|
61 |
<?php if($this->action == 'import-start-ics'): ?>
|
@@ -74,7 +74,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
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(
|
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">
|
@@ -85,7 +85,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
85 |
</div>
|
86 |
</form>
|
87 |
<?php else: ?>
|
88 |
-
<div class="info-msg"><?php echo sprintf(
|
89 |
<?php endif; ?>
|
90 |
|
91 |
<?php if($this->action == 'import-start-bookings'): ?>
|
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(esc_html__("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'); ?>">
|
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(esc_html__("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'); ?>">
|
55 |
</div>
|
56 |
</form>
|
57 |
<?php else: ?>
|
58 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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'): ?>
|
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(esc_html__("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">
|
85 |
</div>
|
86 |
</form>
|
87 |
<?php else: ?>
|
88 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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'): ?>
|
app/features/ix/import_f_calendar.php
CHANGED
@@ -28,13 +28,13 @@ $ix_options = $this->main->get_ix_options();
|
|
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">
|
@@ -51,7 +51,7 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
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>
|
@@ -62,7 +62,7 @@ $ix_options = $this->main->get_ix_options();
|
|
62 |
<li>
|
63 |
<label>
|
64 |
<input type="checkbox" name="f-events[]" value="<?php echo esc_attr($event['id']); ?>" checked="checked" />
|
65 |
-
<span><?php echo sprintf(
|
66 |
</label>
|
67 |
</li>
|
68 |
<?php endforeach; ?>
|
@@ -89,8 +89,8 @@ $ix_options = $this->main->get_ix_options();
|
|
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>
|
@@ -101,7 +101,7 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
105 |
<?php endif; ?>
|
106 |
</div>
|
107 |
<?php endif; ?>
|
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']) ? esc_attr($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']) ? esc_attr($ix_options['facebook_import_page_link']) : ''); ?>" />
|
38 |
</div>
|
39 |
</div>
|
40 |
<div class="mec-options-fields">
|
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(esc_html__('We found %s events for %s page. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.esc_html($this->response['data']['count']).'</strong>', '<strong>'.esc_html($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>
|
62 |
<li>
|
63 |
<label>
|
64 |
<input type="checkbox" name="f-events[]" value="<?php echo esc_attr($event['id']); ?>" checked="checked" />
|
65 |
+
<span><?php echo sprintf(esc_html__('Event Title: %s', 'modern-events-calendar-lite'), '<strong>'.esc_html($event['name']).'</strong>'); ?></span>
|
66 |
</label>
|
67 |
</li>
|
68 |
<?php endforeach; ?>
|
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']) ? esc_attr($this->ix['facebook_import_page_link']) : ''); ?>" />
|
93 |
+
<input type="hidden" name="ix[facebook_app_token]" value="<?php echo (isset($this->ix['facebook_app_token']) ? esc_attr($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>
|
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(esc_html__('%s events successfully imported to your website from Facebook Calendar.', 'modern-events-calendar-lite'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
|
105 |
<?php endif; ?>
|
106 |
</div>
|
107 |
<?php endif; ?>
|
app/features/ix/import_g_calendar.php
CHANGED
@@ -25,25 +25,25 @@ $ix_options = $this->main->get_ix_options();
|
|
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">
|
@@ -59,7 +59,7 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
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>
|
@@ -77,7 +77,7 @@ $ix_options = $this->main->get_ix_options();
|
|
77 |
<li>
|
78 |
<label>
|
79 |
<input type="checkbox" name="g-events[]" value="<?php echo esc_attr($event['id']); ?>" checked="checked" />
|
80 |
-
<span><?php echo sprintf(
|
81 |
</label>
|
82 |
</li>
|
83 |
<?php endforeach; ?>
|
@@ -98,8 +98,8 @@ $ix_options = $this->main->get_ix_options();
|
|
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>
|
@@ -110,7 +110,7 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
114 |
<?php endif; ?>
|
115 |
</div>
|
116 |
<?php endif; ?>
|
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']) ? esc_attr($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']) ? esc_attr($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']) ? esc_attr($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']) ? esc_attr($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">
|
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(esc_html__('We found %s events for %s calendar. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.esc_html($this->response['data']['count']).'</strong>', '<strong>'.esc_html($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>
|
77 |
<li>
|
78 |
<label>
|
79 |
<input type="checkbox" name="g-events[]" value="<?php echo esc_attr($event['id']); ?>" checked="checked" />
|
80 |
+
<span><?php echo sprintf(esc_html__('Event Title: %s Event Date: %s - %s', 'modern-events-calendar-lite'), '<strong>'.esc_html($event['title']).'</strong>', '<strong title="'.esc_attr('First Date of Event', 'modern-events-calendar-lite').'">'.($date_start->format('Y-m-d H:i:s')).'</strong>', '<strong title="'.esc_attr('First Date of Event', 'modern-events-calendar-lite').'">'.($date_end->format('Y-m-d H:i:s')).'</strong>'); ?></span>
|
81 |
</label>
|
82 |
</li>
|
83 |
<?php endforeach; ?>
|
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']) ? esc_attr($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']) ? esc_attr($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>
|
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(esc_html__('%s events successfully imported to your website from Google Calendar.', 'modern-events-calendar-lite'), '<strong>'.count($this->response['data']).'</strong>'); ?></div>
|
114 |
<?php endif; ?>
|
115 |
</div>
|
116 |
<?php endif; ?>
|
app/features/ix/import_meetup.php
CHANGED
@@ -25,14 +25,14 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
36 |
</div>
|
37 |
</div>
|
38 |
<div class="mec-options-fields">
|
@@ -48,7 +48,7 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
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>
|
@@ -59,7 +59,7 @@ $ix_options = $this->main->get_ix_options();
|
|
59 |
<li>
|
60 |
<label>
|
61 |
<input type="checkbox" name="m-events[]" value="<?php echo esc_attr($event['id']); ?>" checked="checked" />
|
62 |
-
<span><?php echo sprintf(
|
63 |
</label>
|
64 |
</li>
|
65 |
<?php endforeach; ?>
|
@@ -80,8 +80,8 @@ $ix_options = $this->main->get_ix_options();
|
|
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>
|
@@ -92,7 +92,7 @@ $ix_options = $this->main->get_ix_options();
|
|
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(
|
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>
|
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']) ? esc_attr($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']) ? esc_attr($ix_options['meetup_group_url']) : ''); ?>" />
|
35 |
+
<p><?php echo sprintf(esc_html__('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>
|
36 |
</div>
|
37 |
</div>
|
38 |
<div class="mec-options-fields">
|
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(esc_html__('We found %s events for %s group. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.esc_html($this->response['data']['count']).'</strong>', '<strong>'.esc_html($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>
|
59 |
<li>
|
60 |
<label>
|
61 |
<input type="checkbox" name="m-events[]" value="<?php echo esc_attr($event['id']); ?>" checked="checked" />
|
62 |
+
<span><?php echo sprintf(esc_html__('Event Title: %s Event Date: %s - %s', 'modern-events-calendar-lite'), '<strong>'.esc_html($event['title']).'</strong>', '<strong>'.esc_html($event['start']).'</strong>', '<strong>'.esc_html($event['end']).'</strong>'); ?></span>
|
63 |
</label>
|
64 |
</li>
|
65 |
<?php endforeach; ?>
|
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']) ? esc_attr($this->ix['meetup_api_key']) : ''); ?>" />
|
84 |
+
<input type="hidden" name="ix[meetup_group_url]" value="<?php echo (isset($this->ix['meetup_group_url']) ? esc_attr($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>
|
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(esc_html__('%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>
|
app/features/ix/sync.php
CHANGED
@@ -19,7 +19,7 @@ $ix = $this->main->get_ix_options();
|
|
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(
|
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">
|
@@ -31,7 +31,7 @@ $ix = $this->main->get_ix_options();
|
|
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(
|
35 |
</div>
|
36 |
<div class="mec-form-row mec-syn-schedule">
|
37 |
<input type="hidden" name="ix[sync_g_export]" value="0" />
|
@@ -53,7 +53,7 @@ $ix = $this->main->get_ix_options();
|
|
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(
|
57 |
</div>
|
58 |
</div>
|
59 |
</div>
|
@@ -68,7 +68,7 @@ $ix = $this->main->get_ix_options();
|
|
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(
|
72 |
</div>
|
73 |
<?php endif; ?>
|
74 |
|
@@ -81,7 +81,7 @@ $ix = $this->main->get_ix_options();
|
|
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(
|
85 |
</div>
|
86 |
|
87 |
<div class="mec-form-row mec-syn-schedule">
|
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(esc_html__("%s is required to use synchronization feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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">
|
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(esc_html__("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>'.esc_html($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" />
|
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(esc_html__("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>'.esc_html($cron).'</code>'); ?>
|
57 |
</div>
|
58 |
</div>
|
59 |
</div>
|
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(esc_html__("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>'.esc_html($cron).'</code>'); ?></p>
|
72 |
</div>
|
73 |
<?php endif; ?>
|
74 |
|
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(esc_html__("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>'.esc_html($cron).'</code>'); ?></p>
|
85 |
</div>
|
86 |
|
87 |
<div class="mec-form-row mec-syn-schedule">
|
app/features/ix/thirdparty.php
CHANGED
@@ -23,7 +23,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
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(
|
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') ?>">
|
@@ -46,7 +46,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
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(
|
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>
|
@@ -57,7 +57,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
57 |
<li>
|
58 |
<label>
|
59 |
<input type="checkbox" name="tp-events[]" value="<?php echo esc_attr($event->ID); ?>" checked="checked" />
|
60 |
-
<span><?php echo sprintf(
|
61 |
</label>
|
62 |
</li>
|
63 |
<?php endforeach; ?>
|
@@ -111,7 +111,7 @@ $third_parties = $this->main->get_integrated_plugins_for_import();
|
|
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(
|
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>
|
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(esc_html__("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') ?>">
|
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(esc_html__('We found %s events. Please select your desired events to import.', 'modern-events-calendar-lite'), '<strong>'.esc_html($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>
|
57 |
<li>
|
58 |
<label>
|
59 |
<input type="checkbox" name="tp-events[]" value="<?php echo esc_attr($event->ID); ?>" checked="checked" />
|
60 |
+
<span><?php echo sprintf(esc_html__('Event Title: %s', 'modern-events-calendar-lite'), '<strong>'.esc_html($event->post_title).'</strong>'); ?></span>
|
61 |
</label>
|
62 |
</li>
|
63 |
<?php endforeach; ?>
|
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(esc_html__('%s events successfully imported to your website.', 'modern-events-calendar-lite'), '<strong>'.esc_html($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>
|
app/features/labels.php
CHANGED
@@ -68,16 +68,16 @@ class MEC_feature_labels extends MEC_base
|
|
68 |
'labels'=>array(
|
69 |
'name'=>$plural_label,
|
70 |
'singular_name'=>$singular_label,
|
71 |
-
'all_items'=>sprintf(
|
72 |
-
'edit_item'=>sprintf(
|
73 |
-
'view_item'=>sprintf(
|
74 |
-
'update_item'=>sprintf(
|
75 |
-
'add_new_item'=>sprintf(
|
76 |
-
'new_item_name'=>sprintf(
|
77 |
-
'popular_items'=>sprintf(
|
78 |
-
'search_items'=>sprintf(
|
79 |
-
'back_to_items'=>sprintf(
|
80 |
-
'not_found'=>sprintf(
|
81 |
),
|
82 |
'rewrite'=>array('slug'=>'events-label'),
|
83 |
'public'=>false,
|
@@ -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(
|
228 |
}
|
229 |
|
230 |
/**
|
@@ -270,7 +270,7 @@ class MEC_feature_labels extends MEC_base
|
|
270 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
271 |
|
272 |
// Get Modern Events Calendar Data
|
273 |
-
$_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
274 |
|
275 |
$_labels = isset($_mec['labels']) ? (array) $_mec['labels'] : array();
|
276 |
|
68 |
'labels'=>array(
|
69 |
'name'=>$plural_label,
|
70 |
'singular_name'=>$singular_label,
|
71 |
+
'all_items'=>sprintf(esc_html__('All %s', 'modern-events-calendar-lite'), $plural_label),
|
72 |
+
'edit_item'=>sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
|
73 |
+
'view_item'=>sprintf(esc_html__('View %s', 'modern-events-calendar-lite'), $singular_label),
|
74 |
+
'update_item'=>sprintf(esc_html__('Update %s', 'modern-events-calendar-lite'), $singular_label),
|
75 |
+
'add_new_item'=>sprintf(esc_html__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
|
76 |
+
'new_item_name'=>sprintf(esc_html__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
|
77 |
+
'popular_items'=>sprintf(esc_html__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
|
78 |
+
'search_items'=>sprintf(esc_html__('Search %s', 'modern-events-calendar-lite'), $plural_label),
|
79 |
+
'back_to_items'=>sprintf(esc_html__('← Back to %s', 'modern-events-calendar-lite'), $plural_label),
|
80 |
+
'not_found'=>sprintf(esc_html__('no %s found.', 'modern-events-calendar-lite'), strtolower($plural_label)),
|
81 |
),
|
82 |
'rewrite'=>array('slug'=>'events-label'),
|
83 |
'public'=>false,
|
224 |
*/
|
225 |
public function register_meta_boxes()
|
226 |
{
|
227 |
+
add_meta_box('mec_metabox_label', sprintf(esc_html__('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 |
/**
|
270 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
271 |
|
272 |
// Get Modern Events Calendar Data
|
273 |
+
$_mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
274 |
|
275 |
$_labels = isset($_mec['labels']) ? (array) $_mec['labels'] : array();
|
276 |
|
app/features/locations.php
CHANGED
@@ -66,16 +66,16 @@ class MEC_feature_locations extends MEC_base
|
|
66 |
'labels'=>array(
|
67 |
'name'=>$plural_label,
|
68 |
'singular_name'=>$singular_label,
|
69 |
-
'all_items'=>sprintf(
|
70 |
-
'edit_item'=>sprintf(
|
71 |
-
'view_item'=>sprintf(
|
72 |
-
'update_item'=>sprintf(
|
73 |
-
'add_new_item'=>sprintf(
|
74 |
-
'new_item_name'=>sprintf(
|
75 |
-
'popular_items'=>sprintf(
|
76 |
-
'search_items'=>sprintf(
|
77 |
-
'back_to_items'=>sprintf(
|
78 |
-
'not_found'=>sprintf(
|
79 |
),
|
80 |
'rewrite'=>array('slug'=>'events-location'),
|
81 |
'public'=>false,
|
@@ -326,7 +326,7 @@ 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(
|
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>
|
@@ -447,7 +447,7 @@ class MEC_feature_locations extends MEC_base
|
|
447 |
if($action === 'mec_fes_form') return false;
|
448 |
|
449 |
// Get Modern Events Calendar Data
|
450 |
-
$_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
451 |
|
452 |
// Selected a saved location
|
453 |
if(isset($_mec['location_id']) and $_mec['location_id'])
|
66 |
'labels'=>array(
|
67 |
'name'=>$plural_label,
|
68 |
'singular_name'=>$singular_label,
|
69 |
+
'all_items'=>sprintf(esc_html__('All %s', 'modern-events-calendar-lite'), $plural_label),
|
70 |
+
'edit_item'=>sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
|
71 |
+
'view_item'=>sprintf(esc_html__('View %s', 'modern-events-calendar-lite'), $singular_label),
|
72 |
+
'update_item'=>sprintf(esc_html__('Update %s', 'modern-events-calendar-lite'), $singular_label),
|
73 |
+
'add_new_item'=>sprintf(esc_html__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
|
74 |
+
'new_item_name'=>sprintf(esc_html__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
|
75 |
+
'popular_items'=>sprintf(esc_html__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
|
76 |
+
'search_items'=>sprintf(esc_html__('Search %s', 'modern-events-calendar-lite'), $plural_label),
|
77 |
+
'back_to_items'=>sprintf(esc_html__('← Back to %s', 'modern-events-calendar-lite'), $plural_label),
|
78 |
+
'not_found'=>sprintf(esc_html__('no %s found.', 'modern-events-calendar-lite'), strtolower($plural_label)),
|
79 |
),
|
80 |
'rewrite'=>array('slug'=>'events-location'),
|
81 |
'public'=>false,
|
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(esc_html__('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>
|
447 |
if($action === 'mec_fes_form') return false;
|
448 |
|
449 |
// Get Modern Events Calendar Data
|
450 |
+
$_mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
451 |
|
452 |
// Selected a saved location
|
453 |
if(isset($_mec['location_id']) and $_mec['location_id'])
|
app/features/mec.php
CHANGED
@@ -148,6 +148,7 @@ class MEC_feature_mec extends MEC_base
|
|
148 |
|
149 |
// License Activation
|
150 |
$this->factory->action('wp_ajax_activate_license', array($this, 'activate_license'));
|
|
|
151 |
|
152 |
// Close Notification
|
153 |
$this->factory->action('wp_ajax_close_notification', array($this, 'close_notification'));
|
@@ -221,25 +222,46 @@ class MEC_feature_mec extends MEC_base
|
|
221 |
$options = get_option('mec_options');
|
222 |
$options['product_name'] = sanitize_text_field($_REQUEST['content']['LicenseTypeJson']);
|
223 |
$options['purchase_code'] = sanitize_text_field($_REQUEST['content']['PurchaseCodeJson']);
|
|
|
224 |
|
225 |
$verify = NULL;
|
226 |
$verify = $this->plugin_activation_request($options);
|
227 |
|
228 |
if($verify and !is_null($verify) and isset($verify->item_link) and !is_null($verify->item_link))
|
229 |
{
|
230 |
-
$
|
|
|
|
|
231 |
update_option('mec_license_status', 'active');
|
232 |
$options['product_id'] = $verify->item_id;
|
233 |
}
|
234 |
else
|
235 |
{
|
236 |
-
$
|
|
|
|
|
237 |
update_option('mec_license_status', 'faild');
|
238 |
}
|
239 |
-
|
240 |
|
241 |
update_option('mec_options', $options);
|
242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
wp_die();
|
244 |
}
|
245 |
}
|
@@ -347,7 +369,7 @@ class MEC_feature_mec extends MEC_base
|
|
347 |
$date_format = (isset($this->ml_settings['booking_date_format1']) and trim($this->ml_settings['booking_date_format1'])) ? $this->ml_settings['booking_date_format1'] : 'Y-m-d';
|
348 |
if(get_post_meta($event_id, 'mec_repeat_type', true) === 'custom_days') $date_format .= ' '.get_option('time_format');
|
349 |
|
350 |
-
echo '<select name="mec-report-event-dates" class="mec-reports-selectbox mec-reports-selectbox-dates" onchange="mec_event_attendees('
|
351 |
echo '<option value="none">'.esc_html__( "Select Date" , "mec").'</option>';
|
352 |
|
353 |
if($bookings_all_occurrences)
|
@@ -371,7 +393,7 @@ class MEC_feature_mec extends MEC_base
|
|
371 |
'ampm' => date('A', $date->tend),
|
372 |
);
|
373 |
|
374 |
-
echo '<option value="'
|
375 |
}
|
376 |
|
377 |
echo '</select>';
|
@@ -391,7 +413,7 @@ class MEC_feature_mec extends MEC_base
|
|
391 |
if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
|
392 |
if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
|
393 |
|
394 |
-
$options = $_REQUEST['content'];
|
395 |
if($options == 'No-JSON')
|
396 |
{
|
397 |
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>';
|
@@ -685,7 +707,7 @@ class MEC_feature_mec extends MEC_base
|
|
685 |
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
|
686 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
687 |
|
688 |
-
$terms = isset($_POST['mec_tax_input']) ? $_POST['mec_tax_input'] : array();
|
689 |
|
690 |
$categories = (isset($terms['mec_category']) and is_array($terms['mec_category'])) ? sanitize_text_field(implode(',', $terms['mec_category'])) : '';
|
691 |
$locations = (isset($terms['mec_location']) and is_array($terms['mec_location'])) ? sanitize_text_field(implode(',', $terms['mec_location'])) : '';
|
@@ -711,7 +733,7 @@ class MEC_feature_mec extends MEC_base
|
|
711 |
|
712 |
do_action('mec_shortcode_filters_save', $post_id, $terms );
|
713 |
|
714 |
-
$mec = (isset($_POST['mec']) ? $_POST['mec'] : array());
|
715 |
|
716 |
$skin = (isset($mec['skin']) ? sanitize_text_field($mec['skin']) : '');
|
717 |
$start_date_type = ((isset($mec['sk-options'][$skin]) and isset($mec['sk-options'][$skin]['start_date_type'])) ? sanitize_text_field($mec['sk-options'][$skin]['start_date_type']) : 'today');
|
@@ -1499,13 +1521,13 @@ class MEC_feature_mec extends MEC_base
|
|
1499 |
var ctx = document.getElementById("mec_total_bookings_chart");
|
1500 |
var mecSellsChart = new Chart(ctx,
|
1501 |
{
|
1502 |
-
type: "'
|
1503 |
data:
|
1504 |
{
|
1505 |
labels: ['.trim($labels, ', ').'],
|
1506 |
datasets: [
|
1507 |
{
|
1508 |
-
label: "'.esc_js(sprintf(
|
1509 |
data: ['.trim($stats, ', ').'],
|
1510 |
backgroundColor: "rgba(159, 216, 255, 0.3)",
|
1511 |
borderColor: "#36A2EB",
|
@@ -1617,7 +1639,7 @@ class MEC_feature_mec extends MEC_base
|
|
1617 |
</select>
|
1618 |
<select name="mec-month" title="<?php esc_attr('Month', 'modern-events-calendar-lite'); ?>">
|
1619 |
<?php for($i = 1; $i <= 12; $i++): ?>
|
1620 |
-
<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>
|
1621 |
<?php endfor; ?>
|
1622 |
</select>
|
1623 |
<button type="submit"><?php esc_html_e('Display Events', 'modern-events-calendar-lite'); ?></button>
|
148 |
|
149 |
// License Activation
|
150 |
$this->factory->action('wp_ajax_activate_license', array($this, 'activate_license'));
|
151 |
+
$this->factory->action('wp_ajax_revoke_license', array($this, 'revoke_license'));
|
152 |
|
153 |
// Close Notification
|
154 |
$this->factory->action('wp_ajax_close_notification', array($this, 'close_notification'));
|
222 |
$options = get_option('mec_options');
|
223 |
$options['product_name'] = sanitize_text_field($_REQUEST['content']['LicenseTypeJson']);
|
224 |
$options['purchase_code'] = sanitize_text_field($_REQUEST['content']['PurchaseCodeJson']);
|
225 |
+
$payload = array('message'=> '' , 'status'=> '', 'button_text' => '');
|
226 |
|
227 |
$verify = NULL;
|
228 |
$verify = $this->plugin_activation_request($options);
|
229 |
|
230 |
if($verify and !is_null($verify) and isset($verify->item_link) and !is_null($verify->item_link))
|
231 |
{
|
232 |
+
$payload['message'] = esc_html__('success');
|
233 |
+
$payload['status'] = true;
|
234 |
+
$payload['button_text'] = esc_html__('revoke' , 'modern-events-calendar-lite');
|
235 |
update_option('mec_license_status', 'active');
|
236 |
$options['product_id'] = $verify->item_id;
|
237 |
}
|
238 |
else
|
239 |
{
|
240 |
+
$payload['message'] = esc_html__('Activation failed');
|
241 |
+
$payload['status'] = false;
|
242 |
+
$payload['button_text'] = esc_html__('submit' , 'modern-events-calendar-lite');
|
243 |
update_option('mec_license_status', 'faild');
|
244 |
}
|
|
|
245 |
|
246 |
update_option('mec_options', $options);
|
247 |
+
$payload = json_encode($payload);
|
248 |
+
echo MEC_kses::element($payload);
|
249 |
+
wp_die();
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
+
public function revoke_license()
|
254 |
+
{
|
255 |
+
if($this->getPRO())
|
256 |
+
{
|
257 |
+
$options = get_option('mec_options');
|
258 |
+
$options['product_name'] = '';
|
259 |
+
$options['purchase_code'] = '';
|
260 |
+
$options['product_id'] = '';
|
261 |
+
update_option('mec_options', $options);
|
262 |
+
|
263 |
+
$payload = json_encode(array('message'=> 'revoked' , 'status'=> true, 'button_text' => esc_html__('submit' , 'modern-events-calendar-lite') ));
|
264 |
+
echo MEC_kses::element($payload);
|
265 |
wp_die();
|
266 |
}
|
267 |
}
|
369 |
$date_format = (isset($this->ml_settings['booking_date_format1']) and trim($this->ml_settings['booking_date_format1'])) ? $this->ml_settings['booking_date_format1'] : 'Y-m-d';
|
370 |
if(get_post_meta($event_id, 'mec_repeat_type', true) === 'custom_days') $date_format .= ' '.get_option('time_format');
|
371 |
|
372 |
+
echo '<select name="mec-report-event-dates" class="mec-reports-selectbox mec-reports-selectbox-dates" onchange="mec_event_attendees('.esc_attr($event_id).', this.value);">';
|
373 |
echo '<option value="none">'.esc_html__( "Select Date" , "mec").'</option>';
|
374 |
|
375 |
if($bookings_all_occurrences)
|
393 |
'ampm' => date('A', $date->tend),
|
394 |
);
|
395 |
|
396 |
+
echo '<option value="'.esc_attr($date->tstart).'" '.($occurrence == $date->tstart ? 'class="selected-day"' : '').'>'.strip_tags($this->main->date_label($start, $end, $date_format, ' - ', false)).'</option>';
|
397 |
}
|
398 |
|
399 |
echo '</select>';
|
413 |
if(!current_user_can('mec_settings') and !current_user_can('administrator')) $this->main->response(array('success'=>0, 'code'=>'ADMIN_ONLY'));
|
414 |
if(!wp_verify_nonce(sanitize_text_field($_REQUEST['nonce']), 'mec_settings_nonce')) exit();
|
415 |
|
416 |
+
$options = $this->main->sanitize_deep_array($_REQUEST['content']);
|
417 |
if($options == 'No-JSON')
|
418 |
{
|
419 |
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>';
|
707 |
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
|
708 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return;
|
709 |
|
710 |
+
$terms = isset($_POST['mec_tax_input']) ? $this->main->sanitize_deep_array($_POST['mec_tax_input']) : array();
|
711 |
|
712 |
$categories = (isset($terms['mec_category']) and is_array($terms['mec_category'])) ? sanitize_text_field(implode(',', $terms['mec_category'])) : '';
|
713 |
$locations = (isset($terms['mec_location']) and is_array($terms['mec_location'])) ? sanitize_text_field(implode(',', $terms['mec_location'])) : '';
|
733 |
|
734 |
do_action('mec_shortcode_filters_save', $post_id, $terms );
|
735 |
|
736 |
+
$mec = (isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array());
|
737 |
|
738 |
$skin = (isset($mec['skin']) ? sanitize_text_field($mec['skin']) : '');
|
739 |
$start_date_type = ((isset($mec['sk-options'][$skin]) and isset($mec['sk-options'][$skin]['start_date_type'])) ? sanitize_text_field($mec['sk-options'][$skin]['start_date_type']) : 'today');
|
1521 |
var ctx = document.getElementById("mec_total_bookings_chart");
|
1522 |
var mecSellsChart = new Chart(ctx,
|
1523 |
{
|
1524 |
+
type: "'.esc_js($chart).'",
|
1525 |
data:
|
1526 |
{
|
1527 |
labels: ['.trim($labels, ', ').'],
|
1528 |
datasets: [
|
1529 |
{
|
1530 |
+
label: "'.esc_js(sprintf(esc_html__('Total Sales (%s)', 'modern-events-calendar-lite'), $currency)).'",
|
1531 |
data: ['.trim($stats, ', ').'],
|
1532 |
backgroundColor: "rgba(159, 216, 255, 0.3)",
|
1533 |
borderColor: "#36A2EB",
|
1639 |
</select>
|
1640 |
<select name="mec-month" title="<?php esc_attr('Month', 'modern-events-calendar-lite'); ?>">
|
1641 |
<?php for($i = 1; $i <= 12; $i++): ?>
|
1642 |
+
<option value="<?php echo ($i < 10 ? esc_attr('0'.$i) : esc_attr($i)); ?>" <?php echo ($current_month == $i ? 'selected="selected"' : ''); ?>><?php echo esc_html($this->main->date_i18n('F', mktime(0, 0, 0, $i, 10))); ?></option>
|
1643 |
<?php endfor; ?>
|
1644 |
</select>
|
1645 |
<button type="submit"><?php esc_html_e('Display Events', 'modern-events-calendar-lite'); ?></button>
|
app/features/mec/booking.php
CHANGED
@@ -92,7 +92,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
96 |
<?php else: ?>
|
97 |
<div class="mec-form-row">
|
98 |
<label>
|
@@ -366,7 +366,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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>
|
@@ -541,13 +541,13 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
545 |
<?php else: ?>
|
546 |
|
547 |
<div class="mec-form-row">
|
548 |
<div class="mec-col-12">
|
549 |
-
<p><?php echo sprintf(
|
550 |
-
<p><?php echo sprintf(
|
551 |
</div>
|
552 |
</div>
|
553 |
<?php endif; ?>
|
@@ -557,7 +557,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
561 |
<?php else: ?>
|
562 |
<div class="mec-form-row">
|
563 |
<label>
|
@@ -575,7 +575,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
579 |
<?php else: ?>
|
580 |
<div class="mec-form-row">
|
581 |
<label>
|
@@ -591,11 +591,11 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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>
|
@@ -671,7 +671,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
675 |
<?php else: ?>
|
676 |
<div class="mec-form-row">
|
677 |
<label>
|
@@ -687,11 +687,11 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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>
|
@@ -701,7 +701,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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>
|
@@ -1138,7 +1138,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
1142 |
</div>
|
1143 |
</div>
|
1144 |
<div class="mec-form-row">
|
@@ -1150,7 +1150,7 @@ $gateways_options = $this->main->get_gateways_options();
|
|
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(
|
1154 |
</div>
|
1155 |
</div>
|
1156 |
<div class="mec-form-row">
|
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(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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>
|
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']) ? esc_attr($settings['booking_tid_start_from']) : 10000); ?>" min="1" step="1">
|
370 |
</div>
|
371 |
</div>
|
372 |
</div>
|
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(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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">
|
548 |
<div class="mec-col-12">
|
549 |
+
<p><?php echo sprintf(esc_html__("Booking module is available in the event details page but if you like to embed booking module of certain event into a custom WP page or post or any shortcode compatible widgets, all you need to do is to insert %s shortcode into the page content and place the event id instead of 1.", 'modern-events-calendar-lite'), '<code>[mec-booking event-id="1"]</code>'); ?></p>
|
550 |
+
<p><?php echo sprintf(esc_html__('Also, you can insert %s if you like to show only one of the available tickets in booking module. Instead of 1 you should insert the ticket ID. This parameter is optional.', 'modern-events-calendar-lite'), '<strong>ticket-id="1"</strong>'); ?></p>
|
551 |
</div>
|
552 |
</div>
|
553 |
<?php endif; ?>
|
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(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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>
|
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(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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>
|
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']) ? esc_attr($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']) ? esc_attr($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>
|
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(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($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>
|
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']) ? esc_attr($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']) ? esc_attr($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>
|
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']) ? esc_attr($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>
|
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(esc_html__('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">
|
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(esc_html__('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">
|
app/features/mec/dashboard.php
CHANGED
@@ -50,9 +50,9 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
|
|
50 |
<div class="welcome-head w-clearfix">
|
51 |
<div class="w-row">
|
52 |
<div class="w-col-sm-9">
|
53 |
-
<h1> <?php echo sprintf(
|
54 |
<div class="w-welcome">
|
55 |
-
<?php echo sprintf(
|
56 |
</div>
|
57 |
</div>
|
58 |
<div class="w-col-sm-3">
|
@@ -111,7 +111,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
|
|
111 |
<div class="w-col-sm-12">
|
112 |
<div class="info-msg">
|
113 |
<p>
|
114 |
-
<?php echo sprintf(
|
115 |
</p>
|
116 |
<a class="info-msg-link" href="<?php echo esc_url($this->get_pro_link()); ?>" target="_blank">
|
117 |
<?php esc_html_e('GO PREMIUM', 'modern-events-calendar-lite'); ?>
|
@@ -198,27 +198,36 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
|
|
198 |
<?php
|
199 |
$mec_options = get_option('mec_options');
|
200 |
$product_license = '';
|
|
|
|
|
|
|
201 |
|
202 |
if(!empty($mec_options) and is_array($mec_options) and isset($mec_options['purchase_code'])) $product_license = $mec_options['purchase_code'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
?>
|
204 |
<form id="MECActivation" action="#" method="post">
|
205 |
<div class="LicenseField">
|
206 |
<input type="password" placeholder="Put your purchase code here" name="MECPurchaseCode" value="<?php echo esc_html($product_license); ?>">
|
207 |
-
<input type="submit">
|
|
|
|
|
|
|
208 |
<?php
|
209 |
-
|
210 |
-
if(!empty($mec_options['purchase_code']) && $mec_license_status == 'active')
|
211 |
-
{
|
212 |
-
$license_status = 'PurchaseSuccess';
|
213 |
-
}
|
214 |
-
elseif(!empty($mec_options['purchase_code']) && $mec_license_status == 'faild')
|
215 |
-
{
|
216 |
-
$license_status = 'PurchaseError';
|
217 |
-
}
|
218 |
?>
|
219 |
-
<div class="MECPurchaseStatus <?php echo esc_html($license_status); ?>"></div>
|
220 |
</div>
|
221 |
-
<div class="MECLicenseMessage"></div>
|
222 |
</form>
|
223 |
</div>
|
224 |
|
@@ -245,28 +254,28 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
|
|
245 |
<div class="w-col-sm-3">
|
246 |
<div class="w-box doc">
|
247 |
<div class="w-box-child mec-count-child">
|
248 |
-
<p><?php echo '<p class="mec_dash_count">'
|
249 |
</div>
|
250 |
</div>
|
251 |
</div>
|
252 |
<div class="w-col-sm-3">
|
253 |
<div class="w-box doc">
|
254 |
<div class="w-box-child mec-count-child">
|
255 |
-
<p><?php echo '<p class="mec_dash_count">'
|
256 |
</div>
|
257 |
</div>
|
258 |
</div>
|
259 |
<div class="w-col-sm-3">
|
260 |
<div class="w-box doc">
|
261 |
<div class="w-box-child mec-count-child">
|
262 |
-
<p><?php echo '<p class="mec_dash_count">'
|
263 |
</div>
|
264 |
</div>
|
265 |
</div>
|
266 |
<div class="w-col-sm-3">
|
267 |
<div class="w-box doc">
|
268 |
<div class="w-box-child mec-count-child">
|
269 |
-
<p><?php echo '<p class="mec_dash_count">'
|
270 |
</div>
|
271 |
</div>
|
272 |
</div>
|
@@ -321,30 +330,31 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
|
|
321 |
$gateway = new $result['gateway'];
|
322 |
$stats[] = array('label'=>$gateway->title(), 'count'=>$result['count']);
|
323 |
|
324 |
-
$labels .= '"'
|
325 |
$data .= ((int) $result['count']).',';
|
326 |
$bg_colors .= "'".$gateway->color()."',";
|
327 |
}
|
328 |
echo '<canvas id="mec_gateways_chart" width="300" height="300"></canvas>';
|
329 |
-
|
330 |
-
|
|
|
|
|
|
|
|
|
331 |
{
|
332 |
-
|
333 |
-
|
334 |
{
|
335 |
-
|
336 |
-
|
337 |
{
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
backgroundColor: ['.trim($bg_colors, ', ').']
|
343 |
-
}]
|
344 |
-
}
|
345 |
-
});
|
346 |
});
|
347 |
-
|
|
|
348 |
?>
|
349 |
</div>
|
350 |
</div>
|
50 |
<div class="welcome-head w-clearfix">
|
51 |
<div class="w-row">
|
52 |
<div class="w-col-sm-9">
|
53 |
+
<h1> <?php echo sprintf(esc_html__('Welcome %s', 'modern-events-calendar-lite'), $current_user->user_firstname); ?> </h1>
|
54 |
<div class="w-welcome">
|
55 |
+
<?php echo sprintf(esc_html__('%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>'); ?>
|
56 |
</div>
|
57 |
</div>
|
58 |
<div class="w-col-sm-3">
|
111 |
<div class="w-col-sm-12">
|
112 |
<div class="info-msg">
|
113 |
<p>
|
114 |
+
<?php echo sprintf(esc_html__("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>'); ?>
|
115 |
</p>
|
116 |
<a class="info-msg-link" href="<?php echo esc_url($this->get_pro_link()); ?>" target="_blank">
|
117 |
<?php esc_html_e('GO PREMIUM', 'modern-events-calendar-lite'); ?>
|
198 |
<?php
|
199 |
$mec_options = get_option('mec_options');
|
200 |
$product_license = '';
|
201 |
+
$license_status = '';
|
202 |
+
$class_name = 'mec_activate';
|
203 |
+
$button_value = esc_html__('submit' , 'modern-events-calendar-lite');
|
204 |
|
205 |
if(!empty($mec_options) and is_array($mec_options) and isset($mec_options['purchase_code'])) $product_license = $mec_options['purchase_code'];
|
206 |
+
|
207 |
+
if(!empty($mec_options['purchase_code']) && $mec_license_status == 'active')
|
208 |
+
{
|
209 |
+
$license_status = 'PurchaseSuccess';
|
210 |
+
$revoke = true;
|
211 |
+
$class_name = 'mec_revoke';
|
212 |
+
$button_value = esc_html__('revoke' , 'modern-events-calendar-lite');
|
213 |
+
}
|
214 |
+
elseif(!empty($mec_options['purchase_code']) && $mec_license_status == 'faild')
|
215 |
+
{
|
216 |
+
$license_status = 'PurchaseError';
|
217 |
+
$revoke = false;
|
218 |
+
}
|
219 |
?>
|
220 |
<form id="MECActivation" action="#" method="post">
|
221 |
<div class="LicenseField">
|
222 |
<input type="password" placeholder="Put your purchase code here" name="MECPurchaseCode" value="<?php echo esc_html($product_license); ?>">
|
223 |
+
<input type="submit" class="<?php echo esc_html($class_name); ?>" value="<?php echo esc_html($button_value); ?>">
|
224 |
+
<div class="MECPurchaseStatus <?php echo esc_html($license_status); ?>"></div>
|
225 |
+
</div>
|
226 |
+
<div class="MECLicenseMessage mec-message-hidden">
|
227 |
<?php
|
228 |
+
echo 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>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
?>
|
|
|
230 |
</div>
|
|
|
231 |
</form>
|
232 |
</div>
|
233 |
|
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">'.esc_html($user_post_count).'</p> '.esc_html__('Events', '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">'.esc_html($user_post_count_c).'</p> '.esc_html__('Shortcodes', '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">'.esc_html($user_location_count_l).'</p> '.esc_html__('Locations', 'modern-events-calendar-lite'); ?></p>
|
272 |
</div>
|
273 |
</div>
|
274 |
</div>
|
275 |
<div class="w-col-sm-3">
|
276 |
<div class="w-box doc">
|
277 |
<div class="w-box-child mec-count-child">
|
278 |
+
<p><?php echo '<p class="mec_dash_count">'.esc_html($user_organizer_count_l).'</p> '. esc_html__('Organizers', 'modern-events-calendar-lite'); ?></p>
|
279 |
</div>
|
280 |
</div>
|
281 |
</div>
|
330 |
$gateway = new $result['gateway'];
|
331 |
$stats[] = array('label'=>$gateway->title(), 'count'=>$result['count']);
|
332 |
|
333 |
+
$labels .= '"'.esc_html($gateway->title()).'",';
|
334 |
$data .= ((int) $result['count']).',';
|
335 |
$bg_colors .= "'".$gateway->color()."',";
|
336 |
}
|
337 |
echo '<canvas id="mec_gateways_chart" width="300" height="300"></canvas>';
|
338 |
+
|
339 |
+
$this->getFactory()->params('footer', '<script type="text/javascript">
|
340 |
+
jQuery(document).ready(function()
|
341 |
+
{
|
342 |
+
var ctx = document.getElementById("mec_gateways_chart");
|
343 |
+
var mecGatewaysChart = new Chart(ctx,
|
344 |
{
|
345 |
+
type: "doughnut",
|
346 |
+
data:
|
347 |
{
|
348 |
+
labels: ['.trim($labels, ', ').'],
|
349 |
+
datasets: [
|
350 |
{
|
351 |
+
data: ['.trim($data, ', ').'],
|
352 |
+
backgroundColor: ['.trim($bg_colors, ', ').']
|
353 |
+
}]
|
354 |
+
}
|
|
|
|
|
|
|
|
|
355 |
});
|
356 |
+
});
|
357 |
+
</script>');
|
358 |
?>
|
359 |
</div>
|
360 |
</div>
|
app/features/mec/go-pro.php
CHANGED
@@ -63,7 +63,7 @@ defined('MECEXEC') or die();
|
|
63 |
<div class="w-col-sm-12">
|
64 |
<div class="info-msg">
|
65 |
<p>
|
66 |
-
<?php echo sprintf(
|
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'); ?>
|
63 |
<div class="w-col-sm-12">
|
64 |
<div class="info-msg">
|
65 |
<p>
|
66 |
+
<?php echo sprintf(esc_html__("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'); ?>
|
app/features/mec/integrations.php
CHANGED
@@ -169,7 +169,8 @@ if(!is_array($categories)) $categories = array();
|
|
169 |
</div>
|
170 |
<?php
|
171 |
$lists = '';
|
172 |
-
if
|
|
|
173 |
$api_key = $settings['constantcontact_api_key'];
|
174 |
$lists = wp_remote_retrieve_body(wp_remote_get("https://api.constantcontact.com/v2/lists?api_key=".$api_key, array(
|
175 |
'body' => null,
|
@@ -178,7 +179,6 @@ if(!is_array($categories)) $categories = array();
|
|
178 |
'headers' => array('Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $settings['constantcontact_access_token']),
|
179 |
)));
|
180 |
}
|
181 |
-
|
182 |
?>
|
183 |
|
184 |
<div class="mec-form-row">
|
@@ -252,8 +252,8 @@ if(!is_array($categories)) $categories = array();
|
|
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(
|
256 |
-
<p class="description"><?php echo sprintf(
|
257 |
</div>
|
258 |
</div>
|
259 |
|
@@ -279,7 +279,7 @@ if(!is_array($categories)) $categories = array();
|
|
279 |
</div>
|
280 |
</div>
|
281 |
<?php endif; ?>
|
282 |
-
<p class="description"><?php echo sprintf(
|
283 |
</div>
|
284 |
</div>
|
285 |
|
@@ -305,7 +305,7 @@ if(!is_array($categories)) $categories = array();
|
|
305 |
</div>
|
306 |
</div>
|
307 |
<?php endif; ?>
|
308 |
-
<p class="description"><?php echo sprintf(
|
309 |
</div>
|
310 |
</div>
|
311 |
|
169 |
</div>
|
170 |
<?php
|
171 |
$lists = '';
|
172 |
+
if(isset($settings['constantcontact_access_token']) and trim($settings['constantcontact_access_token']) != '' and isset($settings['constantcontact_api_key']) and trim($settings['constantcontact_api_key']) != '')
|
173 |
+
{
|
174 |
$api_key = $settings['constantcontact_api_key'];
|
175 |
$lists = wp_remote_retrieve_body(wp_remote_get("https://api.constantcontact.com/v2/lists?api_key=".$api_key, array(
|
176 |
'body' => null,
|
179 |
'headers' => array('Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $settings['constantcontact_access_token']),
|
180 |
)));
|
181 |
}
|
|
|
182 |
?>
|
183 |
|
184 |
<div class="mec-form-row">
|
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(esc_html__("%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(esc_html__('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 |
|
279 |
</div>
|
280 |
</div>
|
281 |
<?php endif; ?>
|
282 |
+
<p class="description"><?php echo sprintf(esc_html__("%s plugin should be installed and activated.", 'modern-events-calendar-lite'), '<a href="https://wordpress.org/plugins/mailpoet/" target="_blank">MailPoet</a>'); ?></p>
|
283 |
</div>
|
284 |
</div>
|
285 |
|
305 |
</div>
|
306 |
</div>
|
307 |
<?php endif; ?>
|
308 |
+
<p class="description"><?php echo sprintf(esc_html__("%s plugin should be installed and connected to your Sendfox account.", 'modern-events-calendar-lite'), '<a href="https://wordpress.org/plugins/wp-sendfox/" target="_blank">WP Sendfox</a>'); ?></p>
|
309 |
</div>
|
310 |
</div>
|
311 |
|
app/features/mec/meta_boxes/display_options.php
CHANGED
@@ -65,7 +65,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
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(
|
69 |
</div>
|
70 |
</div>
|
71 |
<!-- Start Maximum Date -->
|
@@ -242,7 +242,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
242 |
</div>
|
243 |
<div class="mec-col-4">
|
244 |
<?php if(!$this->main->getPRO()): ?>
|
245 |
-
<div class="info-msg"><?php echo sprintf(
|
246 |
<?php else: ?>
|
247 |
<input type="hidden" name="mec[sk-options][list][map_on_top]" value="0" />
|
248 |
<input type="checkbox" name="mec[sk-options][list][map_on_top]" id="mec_skin_list_map_on_top" value="1" onchange="mec_skin_map_toggle(this);" <?php if(isset($sk_options_list['map_on_top']) and $sk_options_list['map_on_top']) echo 'checked="checked"'; ?> />
|
@@ -320,7 +320,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
320 |
<option value="date" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
321 |
</select>
|
322 |
<div class="mec-col-4 <?php if(!isset($sk_options_grid['start_date_type']) or (isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_grid_start_date_container">
|
323 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][grid][start_date]" id="mec_skin_grid_start_date" placeholder="<?php echo sprintf(
|
324 |
</div>
|
325 |
</div>
|
326 |
<!-- Start Maximum Date -->
|
@@ -521,7 +521,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
521 |
</div>
|
522 |
<div class="mec-col-4">
|
523 |
<?php if(!$this->main->getPRO()): ?>
|
524 |
-
<div class="info-msg"><?php echo sprintf(
|
525 |
<?php else: ?>
|
526 |
<input type="hidden" name="mec[sk-options][grid][map_on_top]" value="0" />
|
527 |
<input type="checkbox" name="mec[sk-options][grid][map_on_top]" id="mec_skin_grid_map_on_top" value="1" onchange="mec_skin_map_toggle(this);" <?php if(isset($sk_options_grid['map_on_top']) and $sk_options_grid['map_on_top']) echo 'checked="checked"'; ?> />
|
@@ -563,7 +563,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
563 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_agenda_skin_options_container">
|
564 |
|
565 |
<?php if(!$this->main->getPRO()): ?>
|
566 |
-
<div class="info-msg"><?php echo sprintf(
|
567 |
<?php endif; ?>
|
568 |
|
569 |
<?php $sk_options_agenda = isset($sk_options['agenda']) ? $sk_options['agenda'] : array(); ?>
|
@@ -586,7 +586,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
586 |
<option value="date" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
587 |
</select>
|
588 |
<div class="mec-col-4 <?php if(!isset($sk_options_agenda['start_date_type']) or (isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_agenda_start_date_container">
|
589 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][agenda][start_date]" id="mec_skin_agenda_start_date" placeholder="<?php echo sprintf(
|
590 |
</div>
|
591 |
</div>
|
592 |
<!-- Start Maximum Date -->
|
@@ -702,7 +702,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
702 |
<option value="date" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
703 |
</select>
|
704 |
<div class="mec-col-4 <?php if(!isset($sk_options_full_calendar['start_date_type']) or (isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_full_calendar_start_date_container">
|
705 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][full_calendar][start_date]" id="mec_skin_full_calendar_start_date" placeholder="<?php echo sprintf(
|
706 |
</div>
|
707 |
</div>
|
708 |
<div class="mec-form-row">
|
@@ -855,7 +855,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
855 |
</div>
|
856 |
<div class="mec-form-row">
|
857 |
<?php if(!$this->main->getPRO()): ?>
|
858 |
-
<div class="info-msg"><?php echo sprintf(
|
859 |
<?php endif; ?>
|
860 |
</div>
|
861 |
<div class="mec-form-row mec-switcher">
|
@@ -967,7 +967,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
967 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_yearly_view_skin_options_container">
|
968 |
|
969 |
<?php if(!$this->main->getPRO()): ?>
|
970 |
-
<div class="info-msg"><?php echo sprintf(
|
971 |
<?php endif; ?>
|
972 |
|
973 |
<?php $sk_options_yearly_view = isset($sk_options['yearly_view']) ? $sk_options['yearly_view'] : array(); ?>
|
@@ -987,7 +987,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
987 |
<option value="date" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
988 |
</select>
|
989 |
<div class="mec-col-4 <?php if(!isset($sk_options_yearly_view['start_date_type']) or (isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_start_date_container">
|
990 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][yearly_view][start_date]" id="mec_skin_yearly_view_start_date" placeholder="<?php echo sprintf(
|
991 |
</div>
|
992 |
</div>
|
993 |
<div class="mec-form-row mec-skin-yearly-view-date-format-container mec-not-yearly_view-fluent <?php if(isset($sk_options_yearly_view['style']) and $sk_options_yearly_view['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_date_format_modern_container">
|
@@ -1094,7 +1094,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1094 |
<option value="date" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1095 |
</select>
|
1096 |
<div class="mec-col-4 <?php if(!isset($sk_options_monthly_view['start_date_type']) or (isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_monthly_view_start_date_container">
|
1097 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][monthly_view][start_date]" id="mec_skin_monthly_view_start_date" placeholder="<?php echo sprintf(
|
1098 |
</div>
|
1099 |
</div>
|
1100 |
<div class="mec-form-row">
|
@@ -1189,7 +1189,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1189 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_map_skin_options_container">
|
1190 |
|
1191 |
<?php if(!$this->main->getPRO()): ?>
|
1192 |
-
<div class="info-msg"><?php echo sprintf(
|
1193 |
<?php endif; ?>
|
1194 |
|
1195 |
<?php $sk_options_map = isset($sk_options['map']) ? $sk_options['map'] : array(); ?>
|
@@ -1205,12 +1205,12 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1205 |
<option value="date" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1206 |
</select>
|
1207 |
<div class="mec-col-4 <?php if(!isset($sk_options_map['start_date_type']) or (isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_map_start_date_container">
|
1208 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][map][start_date]" id="mec_skin_map_start_date" placeholder="<?php echo sprintf(
|
1209 |
</div>
|
1210 |
</div>
|
1211 |
<div class="mec-form-row">
|
1212 |
<label class="mec-col-4" for="mec_skin_map_limit"><?php esc_html_e('Maximum events', 'modern-events-calendar-lite'); ?></label>
|
1213 |
-
<input class="mec-col-4" type="number" name="mec[sk-options][map][limit]" id="mec_skin_map_limit" placeholder="<?php esc_html_e('eg. 200', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($sk_options_map['limit']) ? $sk_options_map['limit'] : 200); ?>" />
|
1214 |
</div>
|
1215 |
<div class="mec-form-row mec-switcher">
|
1216 |
<div class="mec-col-4">
|
@@ -1253,7 +1253,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1253 |
</select>
|
1254 |
|
1255 |
<div class="mec-col-4 <?php if(!isset($sk_options_daily_view['start_date_type']) or (isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_daily_view_start_date_container">
|
1256 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][daily_view][start_date]" id="mec_skin_daily_view_start_date" placeholder="<?php echo sprintf(
|
1257 |
</div>
|
1258 |
</div>
|
1259 |
<div class="mec-form-row">
|
@@ -1345,7 +1345,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1345 |
<option value="date" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1346 |
</select>
|
1347 |
<div class="mec-col-4 <?php if(!isset($sk_options_weekly_view['start_date_type']) or (isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_weekly_view_start_date_container">
|
1348 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][weekly_view][start_date]" id="mec_skin_weekly_view_start_date" placeholder="<?php echo sprintf(
|
1349 |
</div>
|
1350 |
</div>
|
1351 |
<div class="mec-form-row">
|
@@ -1425,7 +1425,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1425 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_timetable_skin_options_container">
|
1426 |
|
1427 |
<?php if(!$this->main->getPRO()): ?>
|
1428 |
-
<div class="info-msg"><?php echo sprintf(
|
1429 |
<?php endif; ?>
|
1430 |
|
1431 |
<?php $sk_options_timetable = isset($sk_options['timetable']) ? $sk_options['timetable'] : array(); ?>
|
@@ -1449,7 +1449,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1449 |
<option value="date" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1450 |
</select>
|
1451 |
<div class="mec-col-4 <?php if(!isset($sk_options_timetable['start_date_type']) or (isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_timetable_start_date_container">
|
1452 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][timetable][start_date]" id="mec_skin_timetable_start_date" placeholder="<?php echo sprintf(
|
1453 |
</div>
|
1454 |
</div>
|
1455 |
<div class="mec-form-row">
|
@@ -1582,7 +1582,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1582 |
<!-- Masonry View -->
|
1583 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_masonry_skin_options_container">
|
1584 |
<?php if(!$this->main->getPRO()): ?>
|
1585 |
-
<div class="info-msg"><?php echo sprintf(
|
1586 |
<?php endif; ?>
|
1587 |
|
1588 |
<?php $sk_options_masonry = isset($sk_options['masonry']) ? $sk_options['masonry'] : array(); ?>
|
@@ -1599,7 +1599,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1599 |
<option value="date" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1600 |
</select>
|
1601 |
<div class="mec-col-4 <?php if(!isset($sk_options_masonry['start_date_type']) or (isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_masonry_start_date_container">
|
1602 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][masonry][start_date]" id="mec_skin_masonry_start_date" placeholder="<?php echo sprintf(
|
1603 |
</div>
|
1604 |
</div>
|
1605 |
<!-- Start Maximum Date -->
|
@@ -1936,7 +1936,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
1936 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_available_spot_skin_options_container">
|
1937 |
|
1938 |
<?php if(!$this->main->getPRO()): ?>
|
1939 |
-
<div class="info-msg"><?php echo sprintf(
|
1940 |
<?php endif; ?>
|
1941 |
|
1942 |
<?php $sk_options_available_spot = isset($sk_options['available_spot']) ? $sk_options['available_spot'] : array(); ?>
|
@@ -2026,7 +2026,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
2026 |
<option value="date" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2027 |
</select>
|
2028 |
<div class="mec-col-4 <?php if(!isset($sk_options_carousel['start_date_type']) or (isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_start_date_container">
|
2029 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][carousel][start_date]" id="mec_skin_carousel_start_date" placeholder="<?php echo sprintf(
|
2030 |
</div>
|
2031 |
</div>
|
2032 |
<div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type1') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type1_container">
|
@@ -2208,7 +2208,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
2208 |
<option value="date" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2209 |
</select>
|
2210 |
<div class="mec-col-4 <?php if(!isset($sk_options_slider['start_date_type']) or (isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_slider_start_date_container">
|
2211 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][slider][start_date]" id="mec_skin_slider_start_date" placeholder="<?php echo sprintf(
|
2212 |
</div>
|
2213 |
</div>
|
2214 |
<div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't1') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t1_container">
|
@@ -2344,7 +2344,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
2344 |
<option value="date" <?php if(isset($sk_options_timeline['start_date_type']) and $sk_options_timeline['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2345 |
</select>
|
2346 |
<div class="mec-col-4 <?php if(!isset($sk_options_timeline['start_date_type']) or (isset($sk_options_timeline['start_date_type']) and $sk_options_timeline['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_timeline_start_date_container">
|
2347 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][timeline][start_date]" id="mec_skin_timeline_start_date" placeholder="<?php echo sprintf(
|
2348 |
</div>
|
2349 |
</div>
|
2350 |
<!-- Start Maximum Date -->
|
@@ -2472,7 +2472,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
2472 |
<option value="date" <?php if(isset($sk_options_tile['start_date_type']) and $sk_options_tile['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2473 |
</select>
|
2474 |
<div class="mec-col-4 <?php if(!isset($sk_options_tile['start_date_type']) or (isset($sk_options_tile['start_date_type']) and $sk_options_tile['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_tile_start_date_container">
|
2475 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][tile][start_date]" id="mec_skin_tile_start_date" placeholder="<?php echo sprintf(
|
2476 |
</div>
|
2477 |
</div>
|
2478 |
<div class="mec-form-row mec-skin-tile-date-format-container <?php if(isset($sk_options_tile['style']) and $sk_options_tile['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_tile_date_format_clean_container">
|
@@ -2578,7 +2578,7 @@ $upcoming_event_ids = $this->main->get_upcoming_event_ids();
|
|
2578 |
<option value="date" <?php if(isset($sk_options_general_calendar['start_date_type']) and $sk_options_general_calendar['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2579 |
</select>
|
2580 |
<div class="mec-col-4 <?php if(!isset($sk_options_general_calendar['start_date_type']) or (isset($sk_options_general_calendar['start_date_type']) and $sk_options_general_calendar['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_general_calendar_start_date_container">
|
2581 |
-
<input class="mec_date_picker" type="text" name="mec[sk-options][general_calendar][start_date]" id="mec_skin_general_calendar_start_date" placeholder="<?php echo sprintf(
|
2582 |
</div>
|
2583 |
</div>
|
2584 |
<div class="mec-form-row">
|
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(esc_html__('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 -->
|
242 |
</div>
|
243 |
<div class="mec-col-4">
|
244 |
<?php if(!$this->main->getPRO()): ?>
|
245 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
246 |
<?php else: ?>
|
247 |
<input type="hidden" name="mec[sk-options][list][map_on_top]" value="0" />
|
248 |
<input type="checkbox" name="mec[sk-options][list][map_on_top]" id="mec_skin_list_map_on_top" value="1" onchange="mec_skin_map_toggle(this);" <?php if(isset($sk_options_list['map_on_top']) and $sk_options_list['map_on_top']) echo 'checked="checked"'; ?> />
|
320 |
<option value="date" <?php if(isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
321 |
</select>
|
322 |
<div class="mec-col-4 <?php if(!isset($sk_options_grid['start_date_type']) or (isset($sk_options_grid['start_date_type']) and $sk_options_grid['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_grid_start_date_container">
|
323 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][grid][start_date]" id="mec_skin_grid_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_grid['start_date'])) echo esc_attr($sk_options_grid['start_date']); ?>" />
|
324 |
</div>
|
325 |
</div>
|
326 |
<!-- Start Maximum Date -->
|
521 |
</div>
|
522 |
<div class="mec-col-4">
|
523 |
<?php if(!$this->main->getPRO()): ?>
|
524 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
525 |
<?php else: ?>
|
526 |
<input type="hidden" name="mec[sk-options][grid][map_on_top]" value="0" />
|
527 |
<input type="checkbox" name="mec[sk-options][grid][map_on_top]" id="mec_skin_grid_map_on_top" value="1" onchange="mec_skin_map_toggle(this);" <?php if(isset($sk_options_grid['map_on_top']) and $sk_options_grid['map_on_top']) echo 'checked="checked"'; ?> />
|
563 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_agenda_skin_options_container">
|
564 |
|
565 |
<?php if(!$this->main->getPRO()): ?>
|
566 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
567 |
<?php endif; ?>
|
568 |
|
569 |
<?php $sk_options_agenda = isset($sk_options['agenda']) ? $sk_options['agenda'] : array(); ?>
|
586 |
<option value="date" <?php if(isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
587 |
</select>
|
588 |
<div class="mec-col-4 <?php if(!isset($sk_options_agenda['start_date_type']) or (isset($sk_options_agenda['start_date_type']) and $sk_options_agenda['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_agenda_start_date_container">
|
589 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][agenda][start_date]" id="mec_skin_agenda_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_agenda['start_date'])) echo esc_attr($sk_options_agenda['start_date']); ?>" />
|
590 |
</div>
|
591 |
</div>
|
592 |
<!-- Start Maximum Date -->
|
702 |
<option value="date" <?php if(isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
703 |
</select>
|
704 |
<div class="mec-col-4 <?php if(!isset($sk_options_full_calendar['start_date_type']) or (isset($sk_options_full_calendar['start_date_type']) and $sk_options_full_calendar['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_full_calendar_start_date_container">
|
705 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][full_calendar][start_date]" id="mec_skin_full_calendar_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_full_calendar['start_date'])) echo esc_attr($sk_options_full_calendar['start_date']); ?>" />
|
706 |
</div>
|
707 |
</div>
|
708 |
<div class="mec-form-row">
|
855 |
</div>
|
856 |
<div class="mec-form-row">
|
857 |
<?php if(!$this->main->getPRO()): ?>
|
858 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use <b>Yearly View</b> skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
859 |
<?php endif; ?>
|
860 |
</div>
|
861 |
<div class="mec-form-row mec-switcher">
|
967 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_yearly_view_skin_options_container">
|
968 |
|
969 |
<?php if(!$this->main->getPRO()): ?>
|
970 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
971 |
<?php endif; ?>
|
972 |
|
973 |
<?php $sk_options_yearly_view = isset($sk_options['yearly_view']) ? $sk_options['yearly_view'] : array(); ?>
|
987 |
<option value="date" <?php if(isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
988 |
</select>
|
989 |
<div class="mec-col-4 <?php if(!isset($sk_options_yearly_view['start_date_type']) or (isset($sk_options_yearly_view['start_date_type']) and $sk_options_yearly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_start_date_container">
|
990 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][yearly_view][start_date]" id="mec_skin_yearly_view_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_yearly_view['start_date'])) echo esc_attr($sk_options_yearly_view['start_date']); ?>" />
|
991 |
</div>
|
992 |
</div>
|
993 |
<div class="mec-form-row mec-skin-yearly-view-date-format-container mec-not-yearly_view-fluent <?php if(isset($sk_options_yearly_view['style']) and $sk_options_yearly_view['style'] != 'modern') echo 'mec-util-hidden'; ?>" id="mec_skin_yearly_view_date_format_modern_container">
|
1094 |
<option value="date" <?php if(isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1095 |
</select>
|
1096 |
<div class="mec-col-4 <?php if(!isset($sk_options_monthly_view['start_date_type']) or (isset($sk_options_monthly_view['start_date_type']) and $sk_options_monthly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_monthly_view_start_date_container">
|
1097 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][monthly_view][start_date]" id="mec_skin_monthly_view_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_monthly_view['start_date'])) echo esc_attr($sk_options_monthly_view['start_date']); ?>" />
|
1098 |
</div>
|
1099 |
</div>
|
1100 |
<div class="mec-form-row">
|
1189 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_map_skin_options_container">
|
1190 |
|
1191 |
<?php if(!$this->main->getPRO()): ?>
|
1192 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
1193 |
<?php endif; ?>
|
1194 |
|
1195 |
<?php $sk_options_map = isset($sk_options['map']) ? $sk_options['map'] : array(); ?>
|
1205 |
<option value="date" <?php if(isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1206 |
</select>
|
1207 |
<div class="mec-col-4 <?php if(!isset($sk_options_map['start_date_type']) or (isset($sk_options_map['start_date_type']) and $sk_options_map['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_map_start_date_container">
|
1208 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][map][start_date]" id="mec_skin_map_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_map['start_date'])) echo esc_attr($sk_options_map['start_date']); ?>" />
|
1209 |
</div>
|
1210 |
</div>
|
1211 |
<div class="mec-form-row">
|
1212 |
<label class="mec-col-4" for="mec_skin_map_limit"><?php esc_html_e('Maximum events', 'modern-events-calendar-lite'); ?></label>
|
1213 |
+
<input class="mec-col-4" type="number" name="mec[sk-options][map][limit]" id="mec_skin_map_limit" placeholder="<?php esc_html_e('eg. 200', 'modern-events-calendar-lite'); ?>" value="<?php echo (isset($sk_options_map['limit']) ? esc_attr($sk_options_map['limit']) : 200); ?>" />
|
1214 |
</div>
|
1215 |
<div class="mec-form-row mec-switcher">
|
1216 |
<div class="mec-col-4">
|
1253 |
</select>
|
1254 |
|
1255 |
<div class="mec-col-4 <?php if(!isset($sk_options_daily_view['start_date_type']) or (isset($sk_options_daily_view['start_date_type']) and $sk_options_daily_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_daily_view_start_date_container">
|
1256 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][daily_view][start_date]" id="mec_skin_daily_view_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_daily_view['start_date'])) echo esc_attr($sk_options_daily_view['start_date']); ?>" />
|
1257 |
</div>
|
1258 |
</div>
|
1259 |
<div class="mec-form-row">
|
1345 |
<option value="date" <?php if(isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1346 |
</select>
|
1347 |
<div class="mec-col-4 <?php if(!isset($sk_options_weekly_view['start_date_type']) or (isset($sk_options_weekly_view['start_date_type']) and $sk_options_weekly_view['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_weekly_view_start_date_container">
|
1348 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][weekly_view][start_date]" id="mec_skin_weekly_view_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_weekly_view['start_date'])) echo esc_attr($sk_options_weekly_view['start_date']); ?>" />
|
1349 |
</div>
|
1350 |
</div>
|
1351 |
<div class="mec-form-row">
|
1425 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_timetable_skin_options_container">
|
1426 |
|
1427 |
<?php if(!$this->main->getPRO()): ?>
|
1428 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
1429 |
<?php endif; ?>
|
1430 |
|
1431 |
<?php $sk_options_timetable = isset($sk_options['timetable']) ? $sk_options['timetable'] : array(); ?>
|
1449 |
<option value="date" <?php if(isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1450 |
</select>
|
1451 |
<div class="mec-col-4 <?php if(!isset($sk_options_timetable['start_date_type']) or (isset($sk_options_timetable['start_date_type']) and $sk_options_timetable['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_timetable_start_date_container">
|
1452 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][timetable][start_date]" id="mec_skin_timetable_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_timetable['start_date'])) echo esc_attr($sk_options_timetable['start_date']); ?>" />
|
1453 |
</div>
|
1454 |
</div>
|
1455 |
<div class="mec-form-row">
|
1582 |
<!-- Masonry View -->
|
1583 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_masonry_skin_options_container">
|
1584 |
<?php if(!$this->main->getPRO()): ?>
|
1585 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
1586 |
<?php endif; ?>
|
1587 |
|
1588 |
<?php $sk_options_masonry = isset($sk_options['masonry']) ? $sk_options['masonry'] : array(); ?>
|
1599 |
<option value="date" <?php if(isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
1600 |
</select>
|
1601 |
<div class="mec-col-4 <?php if(!isset($sk_options_masonry['start_date_type']) or (isset($sk_options_masonry['start_date_type']) and $sk_options_masonry['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_masonry_start_date_container">
|
1602 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][masonry][start_date]" id="mec_skin_masonry_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_masonry['start_date'])) echo esc_attr($sk_options_masonry['start_date']); ?>" />
|
1603 |
</div>
|
1604 |
</div>
|
1605 |
<!-- Start Maximum Date -->
|
1936 |
<div class="mec-skin-options-container mec-util-hidden" id="mec_available_spot_skin_options_container">
|
1937 |
|
1938 |
<?php if(!$this->main->getPRO()): ?>
|
1939 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this skin.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
1940 |
<?php endif; ?>
|
1941 |
|
1942 |
<?php $sk_options_available_spot = isset($sk_options['available_spot']) ? $sk_options['available_spot'] : array(); ?>
|
2026 |
<option value="date" <?php if(isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2027 |
</select>
|
2028 |
<div class="mec-col-4 <?php if(!isset($sk_options_carousel['start_date_type']) or (isset($sk_options_carousel['start_date_type']) and $sk_options_carousel['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_start_date_container">
|
2029 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][carousel][start_date]" id="mec_skin_carousel_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_carousel['start_date'])) echo esc_attr($sk_options_carousel['start_date']); ?>" />
|
2030 |
</div>
|
2031 |
</div>
|
2032 |
<div class="mec-form-row mec-skin-carousel-date-format-container <?php if(isset($sk_options_carousel['style']) and $sk_options_carousel['style'] != 'type1') echo 'mec-util-hidden'; ?>" id="mec_skin_carousel_date_format_type1_container">
|
2208 |
<option value="date" <?php if(isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2209 |
</select>
|
2210 |
<div class="mec-col-4 <?php if(!isset($sk_options_slider['start_date_type']) or (isset($sk_options_slider['start_date_type']) and $sk_options_slider['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_slider_start_date_container">
|
2211 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][slider][start_date]" id="mec_skin_slider_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_slider['start_date'])) echo esc_attr($sk_options_slider['start_date']); ?>" />
|
2212 |
</div>
|
2213 |
</div>
|
2214 |
<div class="mec-form-row mec-skin-slider-date-format-container <?php if(isset($sk_options_slider['style']) and $sk_options_slider['style'] != 't1') echo 'mec-util-hidden'; ?>" id="mec_skin_slider_date_format_t1_container">
|
2344 |
<option value="date" <?php if(isset($sk_options_timeline['start_date_type']) and $sk_options_timeline['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2345 |
</select>
|
2346 |
<div class="mec-col-4 <?php if(!isset($sk_options_timeline['start_date_type']) or (isset($sk_options_timeline['start_date_type']) and $sk_options_timeline['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_timeline_start_date_container">
|
2347 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][timeline][start_date]" id="mec_skin_timeline_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_timeline['start_date'])) echo esc_attr($sk_options_timeline['start_date']); ?>" />
|
2348 |
</div>
|
2349 |
</div>
|
2350 |
<!-- Start Maximum Date -->
|
2472 |
<option value="date" <?php if(isset($sk_options_tile['start_date_type']) and $sk_options_tile['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2473 |
</select>
|
2474 |
<div class="mec-col-4 <?php if(!isset($sk_options_tile['start_date_type']) or (isset($sk_options_tile['start_date_type']) and $sk_options_tile['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_tile_start_date_container">
|
2475 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][tile][start_date]" id="mec_skin_tile_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_tile['start_date'])) echo esc_attr($sk_options_tile['start_date']); ?>" />
|
2476 |
</div>
|
2477 |
</div>
|
2478 |
<div class="mec-form-row mec-skin-tile-date-format-container <?php if(isset($sk_options_tile['style']) and $sk_options_tile['style'] != 'clean') echo 'mec-util-hidden'; ?>" id="mec_skin_tile_date_format_clean_container">
|
2578 |
<option value="date" <?php if(isset($sk_options_general_calendar['start_date_type']) and $sk_options_general_calendar['start_date_type'] == 'date') echo 'selected="selected"'; ?>><?php esc_html_e('On a certain date', 'modern-events-calendar-lite'); ?></option>
|
2579 |
</select>
|
2580 |
<div class="mec-col-4 <?php if(!isset($sk_options_general_calendar['start_date_type']) or (isset($sk_options_general_calendar['start_date_type']) and $sk_options_general_calendar['start_date_type'] != 'date')) echo 'mec-util-hidden'; ?>" id="mec_skin_general_calendar_start_date_container">
|
2581 |
+
<input class="mec_date_picker" type="text" name="mec[sk-options][general_calendar][start_date]" id="mec_skin_general_calendar_start_date" placeholder="<?php echo sprintf(esc_html__('eg. %s', 'modern-events-calendar-lite'), date('Y-n-d')); ?>" value="<?php if(isset($sk_options_general_calendar['start_date'])) echo esc_attr($sk_options_general_calendar['start_date']); ?>" />
|
2582 |
</div>
|
2583 |
</div>
|
2584 |
<div class="mec-form-row">
|
app/features/mec/meta_boxes/filter.php
CHANGED
@@ -13,9 +13,6 @@ class MEC_tax_walker extends Walker_Category_Checklist
|
|
13 |
if(empty($args['taxonomy'])) $taxonomy = 'category';
|
14 |
else $taxonomy = $args['taxonomy'];
|
15 |
|
16 |
-
if($taxonomy == 'category') $name = 'post_category';
|
17 |
-
else $name = 'mec_tax_input['.$taxonomy.']';
|
18 |
-
|
19 |
$args['popular_cats'] = empty($args['popular_cats']) ? array() : $args['popular_cats'];
|
20 |
$class = in_array($category->term_id, $args['popular_cats']) ? ' class="popular-category"' : '';
|
21 |
|
@@ -34,9 +31,8 @@ class MEC_tax_walker extends Walker_Category_Checklist
|
|
34 |
// Show only Terms with Posts
|
35 |
if($category->count)
|
36 |
{
|
37 |
-
$output .= "\n".'<li'.$class.'>'.
|
38 |
-
'<div class="'
|
39 |
-
' tabindex="0" role="checkbox" aria-checked="'.$aria_cheched.'">'.
|
40 |
esc_html(apply_filters('the_category', $category->name)).'</div>';
|
41 |
}
|
42 |
}
|
@@ -45,7 +41,7 @@ class MEC_tax_walker extends Walker_Category_Checklist
|
|
45 |
// Show only Terms with Posts
|
46 |
if($category->count)
|
47 |
{
|
48 |
-
$output .= "\n<option value='
|
49 |
if(in_array($category->term_id, $args['selected_cats'])) $output .= " selected='selected'";
|
50 |
$output .= ">".esc_html(apply_filters('the_category', $category->name)).'';
|
51 |
}
|
@@ -218,7 +214,7 @@ $MEC_tax_walker = new MEC_tax_walker();
|
|
218 |
<input type="checkbox" name="mec[show_only_past_events]" class="mec-checkbox-toggle" id="mec_show_only_past_events" value="1" <?php if($show_only_past_events == 1) echo 'checked="checked"'; ?> />
|
219 |
<label for="mec_show_only_past_events"></label>
|
220 |
</div>
|
221 |
-
<p class="description" style="color: red;"><?php echo sprintf(
|
222 |
</div>
|
223 |
</div>
|
224 |
<div id="mec_date_ongoing_filter">
|
13 |
if(empty($args['taxonomy'])) $taxonomy = 'category';
|
14 |
else $taxonomy = $args['taxonomy'];
|
15 |
|
|
|
|
|
|
|
16 |
$args['popular_cats'] = empty($args['popular_cats']) ? array() : $args['popular_cats'];
|
17 |
$class = in_array($category->term_id, $args['popular_cats']) ? ' class="popular-category"' : '';
|
18 |
|
31 |
// Show only Terms with Posts
|
32 |
if($category->count)
|
33 |
{
|
34 |
+
$output .= "\n".'<li '.$class.'>'.
|
35 |
+
'<div class="'.esc_attr($inner_class).'" data-term-id='.esc_attr($category->term_id).' tabindex="0" role="checkbox" aria-checked="'.esc_attr($aria_cheched).'">'.
|
|
|
36 |
esc_html(apply_filters('the_category', $category->name)).'</div>';
|
37 |
}
|
38 |
}
|
41 |
// Show only Terms with Posts
|
42 |
if($category->count)
|
43 |
{
|
44 |
+
$output .= "\n<option value='".esc_attr($category->term_id)."'";
|
45 |
if(in_array($category->term_id, $args['selected_cats'])) $output .= " selected='selected'";
|
46 |
$output .= ">".esc_html(apply_filters('the_category', $category->name)).'';
|
47 |
}
|
214 |
<input type="checkbox" name="mec[show_only_past_events]" class="mec-checkbox-toggle" id="mec_show_only_past_events" value="1" <?php if($show_only_past_events == 1) echo 'checked="checked"'; ?> />
|
215 |
<label for="mec_show_only_past_events"></label>
|
216 |
</div>
|
217 |
+
<p class="description" style="color: red;"><?php echo sprintf(esc_html__('It shows %s expired/past events. It will use the selected start date as first day and then go to %s dates.', 'modern-events-calendar-lite'), '<strong>'.esc_html__('only', 'modern-events-calendar-lite').'</strong>', '<strong>'.esc_html__('older', 'modern-events-calendar-lite').'</strong>'); ?></p>
|
218 |
</div>
|
219 |
</div>
|
220 |
<div id="mec_date_ongoing_filter">
|
app/features/mec/modules.php
CHANGED
@@ -57,7 +57,7 @@ $pages = get_pages();
|
|
57 |
<div id="googlemap_option" class="mec-options-fields">
|
58 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Map', 'modern-events-calendar-lite'); ?></h4>
|
59 |
<?php if(!$this->main->getPRO()): ?>
|
60 |
-
<div class="info-msg"><?php echo sprintf(
|
61 |
<?php else: ?>
|
62 |
<div class="mec-form-row">
|
63 |
<label>
|
@@ -180,7 +180,7 @@ $pages = get_pages();
|
|
180 |
<li id="mec_sn_<?php echo esc_attr($event_key); ?>" data-id="<?php echo esc_attr($event_key); ?>" class="mec-form-row mec-switcher <?php echo ((isset($settings['sn'][$event_key]) and $settings['sn'][$event_key]) ? 'mec-enabled' : 'mec-disabled'); ?>">
|
181 |
<label class="mec-col-3"><?php echo esc_html($event_option); ?></label>
|
182 |
<div class="mec-col-9">
|
183 |
-
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($event_key); ?>]" value="<?php echo (isset($settings['sn'][$event_key]) ? $settings['sn'][$event_key] : '1'); ?>" />
|
184 |
<label for="mec[settings][sn][<?php echo esc_attr($event_key); ?>]"></label>
|
185 |
</div>
|
186 |
</li>
|
@@ -214,7 +214,7 @@ $pages = get_pages();
|
|
214 |
<h4 class="mec-form-subtitle"><?php esc_html_e('QR Code', 'modern-events-calendar-lite'); ?></h4>
|
215 |
|
216 |
<?php if(!$this->main->getPRO()): ?>
|
217 |
-
<div class="info-msg"><?php echo sprintf(
|
218 |
<?php else: ?>
|
219 |
<div class="mec-form-row">
|
220 |
<label>
|
@@ -231,7 +231,7 @@ $pages = get_pages();
|
|
231 |
<div id="weather_module_option" class="mec-options-fields">
|
232 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Weather', 'modern-events-calendar-lite'); ?></h4>
|
233 |
<?php if(!$this->main->getPRO()): ?>
|
234 |
-
<div class="info-msg"><?php echo sprintf(
|
235 |
<?php else: ?>
|
236 |
<div class="mec-form-row">
|
237 |
<label>
|
@@ -244,7 +244,7 @@ $pages = get_pages();
|
|
244 |
<label class="mec-col-3" for="mec_settings_weather_module_wa_api_key"><?php esc_html_e('weatherapi.com API Key', 'modern-events-calendar-lite'); ?></label>
|
245 |
<div class="mec-col-9">
|
246 |
<input type="text" name="mec[settings][weather_module_wa_api_key]" id="mec_settings_weather_module_wa_api_key" value="<?php echo ((isset($settings['weather_module_wa_api_key']) and trim($settings['weather_module_wa_api_key']) != '') ? $settings['weather_module_wa_api_key'] : ''); ?>">
|
247 |
-
<p><?php echo sprintf(
|
248 |
</div>
|
249 |
</div>
|
250 |
<div class="mec-form-row">
|
@@ -287,10 +287,10 @@ $pages = get_pages();
|
|
287 |
<label class="mec-col-3"><?php echo esc_html($social['name']); ?></label>
|
288 |
<div class="mec-col-9">
|
289 |
<?php if ($social['id'] == 'vk' || $social['id'] == 'tumblr' || $social['id'] == 'pinterest' || $social['id'] == 'flipboard' || $social['id'] == 'pocket' || $social['id'] == 'reddit' || $social['id'] == 'whatsapp' || $social['id'] == 'telegram') : ?>
|
290 |
-
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]" value="<?php echo (isset($settings['sn'][$social['id']]) ? $settings['sn'][$social['id']] : '0'); ?>" />
|
291 |
<label for="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]"></label>
|
292 |
<?php else : ?>
|
293 |
-
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]" value="<?php echo (isset($settings['sn'][$social['id']]) ? $settings['sn'][$social['id']] : '1'); ?>" />
|
294 |
<label for="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]"></label>
|
295 |
<?php endif; ?>
|
296 |
</div>
|
@@ -354,7 +354,7 @@ $pages = get_pages();
|
|
354 |
</div>
|
355 |
<div id="mec_auto_emails_module_container_toggle" class="<?php if((isset($settings['auto_emails_module_status']) and !$settings['auto_emails_module_status']) or !isset($settings['auto_emails_module_status'])) echo 'mec-util-hidden'; ?>">
|
356 |
<?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'auto-emails.php'; ?>
|
357 |
-
<p id="mec_auto_emails_cron" class="mec-col-12"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(
|
358 |
</div>
|
359 |
</div>
|
360 |
<?php endif; ?>
|
57 |
<div id="googlemap_option" class="mec-options-fields">
|
58 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Map', 'modern-events-calendar-lite'); ?></h4>
|
59 |
<?php if(!$this->main->getPRO()): ?>
|
60 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
61 |
<?php else: ?>
|
62 |
<div class="mec-form-row">
|
63 |
<label>
|
180 |
<li id="mec_sn_<?php echo esc_attr($event_key); ?>" data-id="<?php echo esc_attr($event_key); ?>" class="mec-form-row mec-switcher <?php echo ((isset($settings['sn'][$event_key]) and $settings['sn'][$event_key]) ? 'mec-enabled' : 'mec-disabled'); ?>">
|
181 |
<label class="mec-col-3"><?php echo esc_html($event_option); ?></label>
|
182 |
<div class="mec-col-9">
|
183 |
+
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($event_key); ?>]" value="<?php echo (isset($settings['sn'][$event_key]) ? esc_attr($settings['sn'][$event_key]) : '1'); ?>" />
|
184 |
<label for="mec[settings][sn][<?php echo esc_attr($event_key); ?>]"></label>
|
185 |
</div>
|
186 |
</li>
|
214 |
<h4 class="mec-form-subtitle"><?php esc_html_e('QR Code', 'modern-events-calendar-lite'); ?></h4>
|
215 |
|
216 |
<?php if(!$this->main->getPRO()): ?>
|
217 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
218 |
<?php else: ?>
|
219 |
<div class="mec-form-row">
|
220 |
<label>
|
231 |
<div id="weather_module_option" class="mec-options-fields">
|
232 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Weather', 'modern-events-calendar-lite'); ?></h4>
|
233 |
<?php if(!$this->main->getPRO()): ?>
|
234 |
+
<div class="info-msg"><?php echo sprintf(esc_html__("%s is required to use this feature.", 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('Pro version of Modern Events Calendar', 'modern-events-calendar-lite').'</a>'); ?></div>
|
235 |
<?php else: ?>
|
236 |
<div class="mec-form-row">
|
237 |
<label>
|
244 |
<label class="mec-col-3" for="mec_settings_weather_module_wa_api_key"><?php esc_html_e('weatherapi.com API Key', 'modern-events-calendar-lite'); ?></label>
|
245 |
<div class="mec-col-9">
|
246 |
<input type="text" name="mec[settings][weather_module_wa_api_key]" id="mec_settings_weather_module_wa_api_key" value="<?php echo ((isset($settings['weather_module_wa_api_key']) and trim($settings['weather_module_wa_api_key']) != '') ? $settings['weather_module_wa_api_key'] : ''); ?>">
|
247 |
+
<p><?php echo sprintf(esc_html__('You can get a free one at %s', 'modern-events-calendar-lite'), '<a href="https://www.weatherapi.com/signup.aspx" target="_blank">weatherapi.com</a>'); ?></p>
|
248 |
</div>
|
249 |
</div>
|
250 |
<div class="mec-form-row">
|
287 |
<label class="mec-col-3"><?php echo esc_html($social['name']); ?></label>
|
288 |
<div class="mec-col-9">
|
289 |
<?php if ($social['id'] == 'vk' || $social['id'] == 'tumblr' || $social['id'] == 'pinterest' || $social['id'] == 'flipboard' || $social['id'] == 'pocket' || $social['id'] == 'reddit' || $social['id'] == 'whatsapp' || $social['id'] == 'telegram') : ?>
|
290 |
+
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]" value="<?php echo (isset($settings['sn'][$social['id']]) ? esc_attr($settings['sn'][$social['id']]) : '0'); ?>" />
|
291 |
<label for="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]"></label>
|
292 |
<?php else : ?>
|
293 |
+
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]" value="<?php echo (isset($settings['sn'][$social['id']]) ? esc_attr($settings['sn'][$social['id']]) : '1'); ?>" />
|
294 |
<label for="mec[settings][sn][<?php echo esc_attr($social['id']); ?>]"></label>
|
295 |
<?php endif; ?>
|
296 |
</div>
|
354 |
</div>
|
355 |
<div id="mec_auto_emails_module_container_toggle" class="<?php if((isset($settings['auto_emails_module_status']) and !$settings['auto_emails_module_status']) or !isset($settings['auto_emails_module_status'])) echo 'mec-util-hidden'; ?>">
|
356 |
<?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'auto-emails.php'; ?>
|
357 |
+
<p id="mec_auto_emails_cron" class="mec-col-12"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(esc_html__("Set a cronjob to call %s file by php once per minute otherwise it won't send the emails.", 'modern-events-calendar-lite'), '<code>'.esc_html($cron).'</code>'); ?></p>
|
358 |
</div>
|
359 |
</div>
|
360 |
<?php endif; ?>
|
app/features/mec/notifications.php
CHANGED
@@ -58,7 +58,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
58 |
<label for="mec_notifications_booking_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
59 |
</div>
|
60 |
<div class="mec-col-9">
|
61 |
-
<input type="text" name="mec[notifications][booking_notification][subject]" id="mec_notifications_booking_notification_subject" value="<?php echo (isset($notifications['booking_notification']['subject']) ? stripslashes($notifications['booking_notification']['subject']) : ''); ?>" />
|
62 |
</div>
|
63 |
</div>
|
64 |
|
@@ -109,7 +109,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
109 |
<label for="mec_notifications_booking_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
110 |
</div>
|
111 |
<div class="mec-col-9">
|
112 |
-
<input type="text" name="mec[notifications][booking_notification][recipients]" id="mec_notifications_booking_notification_recipients" value="<?php echo (isset($notifications['booking_notification']['recipients']) ? $notifications['booking_notification']['recipients'] : ''); ?>" />
|
113 |
<span class="mec-tooltip">
|
114 |
<div class="box left">
|
115 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -225,7 +225,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
225 |
<label for="mec_notifications_email_verification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
226 |
</div>
|
227 |
<div class="mec-col-9">
|
228 |
-
<input type="text" name="mec[notifications][email_verification][subject]" id="mec_notifications_email_verification_subject" value="<?php echo (isset($notifications['email_verification']['subject']) ? stripslashes($notifications['email_verification']['subject']) : ''); ?>" />
|
229 |
</div>
|
230 |
</div>
|
231 |
|
@@ -276,7 +276,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
276 |
<label for="mec_notifications_email_verification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
277 |
</div>
|
278 |
<div class="mec-col-9">
|
279 |
-
<input type="text" name="mec[notifications][email_verification][recipients]" id="mec_notifications_email_verification_recipients" value="<?php echo (isset($notifications['email_verification']['recipients']) ? $notifications['email_verification']['recipients'] : ''); ?>" />
|
280 |
<span class="mec-tooltip">
|
281 |
<div class="box left">
|
282 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -383,7 +383,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
383 |
<label for="mec_notifications_booking_confirmation_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
384 |
</div>
|
385 |
<div class="mec-col-9">
|
386 |
-
<input type="text" name="mec[notifications][booking_confirmation][subject]" id="mec_notifications_booking_confirmation_subject" value="<?php echo (isset($notifications['booking_confirmation']['subject']) ? stripslashes($notifications['booking_confirmation']['subject']) : ''); ?>" />
|
387 |
</div>
|
388 |
</div>
|
389 |
|
@@ -434,7 +434,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
434 |
<label for="mec_notifications_booking_confirmation_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
435 |
</div>
|
436 |
<div class="mec-col-9">
|
437 |
-
<input type="text" name="mec[notifications][booking_confirmation][recipients]" id="mec_notifications_booking_confirmation_recipients" value="<?php echo (isset($notifications['booking_confirmation']['recipients']) ? $notifications['booking_confirmation']['recipients'] : ''); ?>" />
|
438 |
<span class="mec-tooltip">
|
439 |
<div class="box left">
|
440 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -551,7 +551,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
551 |
<label for="mec_notifications_booking_rejection_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
552 |
</div>
|
553 |
<div class="mec-col-9">
|
554 |
-
<input type="text" name="mec[notifications][booking_rejection][subject]" id="mec_notifications_booking_rejection_subject" value="<?php echo (isset($notifications['booking_rejection']['subject']) ? stripslashes($notifications['booking_rejection']['subject']) : ''); ?>" />
|
555 |
</div>
|
556 |
</div>
|
557 |
|
@@ -602,7 +602,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
602 |
<label for="mec_notifications_booking_rejection_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
603 |
</div>
|
604 |
<div class="mec-col-9">
|
605 |
-
<input type="text" name="mec[notifications][booking_rejection][recipients]" id="mec_notifications_booking_rejection_recipients" value="<?php echo (isset($notifications['booking_rejection']['recipients']) ? $notifications['booking_rejection']['recipients'] : ''); ?>" />
|
606 |
<span class="mec-tooltip">
|
607 |
<div class="box left">
|
608 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -740,7 +740,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
740 |
<label for="mec_notifications_cancellation_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
741 |
</div>
|
742 |
<div class="mec-col-9">
|
743 |
-
<input type="text" name="mec[notifications][cancellation_notification][subject]" id="mec_notifications_cancellation_notification_subject" value="<?php echo (isset($notifications['cancellation_notification']['subject']) ? stripslashes($notifications['cancellation_notification']['subject']) : 'Your booking is canceled.'); ?>" />
|
744 |
</div>
|
745 |
</div>
|
746 |
|
@@ -791,7 +791,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
791 |
<label for="mec_notifications_cancellation_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
792 |
</div>
|
793 |
<div class="mec-col-9">
|
794 |
-
<input type="text" name="mec[notifications][cancellation_notification][recipients]" id="mec_notifications_cancellation_notification_recipients" value="<?php echo (isset($notifications['cancellation_notification']['recipients']) ? $notifications['cancellation_notification']['recipients'] : ''); ?>" />
|
795 |
<span class="mec-tooltip">
|
796 |
<div class="box left">
|
797 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -915,7 +915,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
915 |
<label for="mec_notifications_admin_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
916 |
</div>
|
917 |
<div class="mec-col-9">
|
918 |
-
<input type="text" name="mec[notifications][admin_notification][subject]" id="mec_notifications_admin_notification_subject" value="<?php echo (isset($notifications['admin_notification']['subject']) ? stripslashes($notifications['admin_notification']['subject']) : ''); ?>" />
|
919 |
</div>
|
920 |
</div>
|
921 |
|
@@ -966,7 +966,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
966 |
<label for="mec_notifications_admin_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
967 |
</div>
|
968 |
<div class="mec-col-9">
|
969 |
-
<input type="text" name="mec[notifications][admin_notification][recipients]" id="mec_notifications_admin_notification_recipients" value="<?php echo (isset($notifications['admin_notification']['recipients']) ? $notifications['admin_notification']['recipients'] : ''); ?>" />
|
970 |
<span class="mec-tooltip">
|
971 |
<div class="box left">
|
972 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -1087,7 +1087,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1087 |
<label for="mec_notifications_event_soldout_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1088 |
</div>
|
1089 |
<div class="mec-col-9">
|
1090 |
-
<input type="text" name="mec[notifications][event_soldout][subject]" id="mec_notifications_event_soldout_subject" value="<?php echo (isset($notifications['event_soldout']['subject']) ? stripslashes($notifications['event_soldout']['subject']) : ''); ?>" />
|
1091 |
</div>
|
1092 |
</div>
|
1093 |
|
@@ -1138,7 +1138,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1138 |
<label for="mec_notifications_event_soldout_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1139 |
</div>
|
1140 |
<div class="mec-col-9">
|
1141 |
-
<input type="text" name="mec[notifications][event_soldout][recipients]" id="mec_notifications_event_soldout_recipients" value="<?php echo (isset($notifications['event_soldout']['recipients']) ? $notifications['event_soldout']['recipients'] : ''); ?>" />
|
1142 |
<span class="mec-tooltip">
|
1143 |
<div class="box left">
|
1144 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -1241,7 +1241,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1241 |
<div id="mec_notification_booking_reminder_container_toggle" class="<?php if((isset($notifications['booking_reminder']) and !$notifications['booking_reminder']['status']) or !isset($notifications['booking_reminder'])) echo 'mec-util-hidden'; ?>">
|
1242 |
<div class="mec-form-row">
|
1243 |
<?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'booking-reminder.php'; ?>
|
1244 |
-
<p class="mec-col-12 description"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(
|
1245 |
</div>
|
1246 |
<div class="mec-form-row">
|
1247 |
<div class="mec-col-3">
|
@@ -1429,7 +1429,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1429 |
<label for="mec_notifications_new_event_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1430 |
</div>
|
1431 |
<div class="mec-col-9">
|
1432 |
-
<input type="text" name="mec[notifications][new_event][subject]" id="mec_notifications_new_event_subject" value="<?php echo (isset($notifications['new_event']['subject']) ? stripslashes($notifications['new_event']['subject']) : ''); ?>" />
|
1433 |
</div>
|
1434 |
</div>
|
1435 |
|
@@ -1480,7 +1480,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1480 |
<label for="mec_notifications_new_event_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1481 |
</div>
|
1482 |
<div class="mec-col-9">
|
1483 |
-
<input type="text" name="mec[notifications][new_event][recipients]" id="mec_notifications_new_event_recipients" value="<?php echo (isset($notifications['new_event']['recipients']) ? $notifications['new_event']['recipients'] : ''); ?>" />
|
1484 |
<span class="mec-tooltip">
|
1485 |
<div class="box left">
|
1486 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -1546,7 +1546,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1546 |
<label for="mec_notifications_user_event_publishing_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1547 |
</div>
|
1548 |
<div class="mec-col-9">
|
1549 |
-
<input type="text" name="mec[notifications][user_event_publishing][subject]" id="mec_notifications_user_event_publishing_subject" value="<?php echo (isset($notifications['user_event_publishing']['subject']) ? stripslashes($notifications['user_event_publishing']['subject']) : ''); ?>" />
|
1550 |
</div>
|
1551 |
</div>
|
1552 |
|
@@ -1597,7 +1597,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1597 |
<label for="mec_notifications_user_event_publishing_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1598 |
</div>
|
1599 |
<div class="mec-col-9">
|
1600 |
-
<input type="text" name="mec[notifications][user_event_publishing][recipients]" id="mec_notifications_user_event_publishing_recipients" value="<?php echo (isset($notifications['user_event_publishing']['recipients']) ? $notifications['user_event_publishing']['recipients'] : ''); ?>" />
|
1601 |
<span class="mec-tooltip">
|
1602 |
<div class="box left">
|
1603 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
@@ -1661,14 +1661,14 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1661 |
|
1662 |
<div class="mec-form-row">
|
1663 |
<?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'event-finished.php'; ?>
|
1664 |
-
<p class="mec-col-12 description"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(
|
1665 |
</div>
|
1666 |
<div class="mec-form-row">
|
1667 |
<div class="mec-col-3">
|
1668 |
<label for="mec_notifications_event_finished_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1669 |
</div>
|
1670 |
<div class="mec-col-9">
|
1671 |
-
<input type="text" name="mec[notifications][event_finished][subject]" id="mec_notifications_event_finished_subject" value="<?php echo (isset($notifications['event_finished']['subject']) ? stripslashes($notifications['event_finished']['subject']) : ''); ?>" />
|
1672 |
</div>
|
1673 |
</div>
|
1674 |
|
@@ -1719,7 +1719,7 @@ $additional_organizers = (isset($settings['additional_organizers']) and $setting
|
|
1719 |
<label for="mec_notifications_event_finished_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1720 |
</div>
|
1721 |
<div class="mec-col-9">
|
1722 |
-
<input type="text" name="mec[notifications][event_finished][recipients]" id="mec_notifications_event_finished_recipients" value="<?php echo (isset($notifications['event_finished']['recipients']) ? $notifications['event_finished']['recipients'] : ''); ?>" />
|
1723 |
<span class="mec-tooltip">
|
1724 |
<div class="box left">
|
1725 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
58 |
<label for="mec_notifications_booking_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
59 |
</div>
|
60 |
<div class="mec-col-9">
|
61 |
+
<input type="text" name="mec[notifications][booking_notification][subject]" id="mec_notifications_booking_notification_subject" value="<?php echo (isset($notifications['booking_notification']['subject']) ? esc_attr(stripslashes($notifications['booking_notification']['subject'])) : ''); ?>" />
|
62 |
</div>
|
63 |
</div>
|
64 |
|
109 |
<label for="mec_notifications_booking_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
110 |
</div>
|
111 |
<div class="mec-col-9">
|
112 |
+
<input type="text" name="mec[notifications][booking_notification][recipients]" id="mec_notifications_booking_notification_recipients" value="<?php echo (isset($notifications['booking_notification']['recipients']) ? esc_attr($notifications['booking_notification']['recipients']) : ''); ?>" />
|
113 |
<span class="mec-tooltip">
|
114 |
<div class="box left">
|
115 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
225 |
<label for="mec_notifications_email_verification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
226 |
</div>
|
227 |
<div class="mec-col-9">
|
228 |
+
<input type="text" name="mec[notifications][email_verification][subject]" id="mec_notifications_email_verification_subject" value="<?php echo (isset($notifications['email_verification']['subject']) ? esc_attr(stripslashes($notifications['email_verification']['subject'])) : ''); ?>" />
|
229 |
</div>
|
230 |
</div>
|
231 |
|
276 |
<label for="mec_notifications_email_verification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
277 |
</div>
|
278 |
<div class="mec-col-9">
|
279 |
+
<input type="text" name="mec[notifications][email_verification][recipients]" id="mec_notifications_email_verification_recipients" value="<?php echo (isset($notifications['email_verification']['recipients']) ? esc_attr($notifications['email_verification']['recipients']) : ''); ?>" />
|
280 |
<span class="mec-tooltip">
|
281 |
<div class="box left">
|
282 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
383 |
<label for="mec_notifications_booking_confirmation_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
384 |
</div>
|
385 |
<div class="mec-col-9">
|
386 |
+
<input type="text" name="mec[notifications][booking_confirmation][subject]" id="mec_notifications_booking_confirmation_subject" value="<?php echo (isset($notifications['booking_confirmation']['subject']) ? esc_attr(stripslashes($notifications['booking_confirmation']['subject'])) : ''); ?>" />
|
387 |
</div>
|
388 |
</div>
|
389 |
|
434 |
<label for="mec_notifications_booking_confirmation_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
435 |
</div>
|
436 |
<div class="mec-col-9">
|
437 |
+
<input type="text" name="mec[notifications][booking_confirmation][recipients]" id="mec_notifications_booking_confirmation_recipients" value="<?php echo (isset($notifications['booking_confirmation']['recipients']) ? esc_attr($notifications['booking_confirmation']['recipients']) : ''); ?>" />
|
438 |
<span class="mec-tooltip">
|
439 |
<div class="box left">
|
440 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
551 |
<label for="mec_notifications_booking_rejection_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
552 |
</div>
|
553 |
<div class="mec-col-9">
|
554 |
+
<input type="text" name="mec[notifications][booking_rejection][subject]" id="mec_notifications_booking_rejection_subject" value="<?php echo (isset($notifications['booking_rejection']['subject']) ? esc_attr(stripslashes($notifications['booking_rejection']['subject'])) : ''); ?>" />
|
555 |
</div>
|
556 |
</div>
|
557 |
|
602 |
<label for="mec_notifications_booking_rejection_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
603 |
</div>
|
604 |
<div class="mec-col-9">
|
605 |
+
<input type="text" name="mec[notifications][booking_rejection][recipients]" id="mec_notifications_booking_rejection_recipients" value="<?php echo (isset($notifications['booking_rejection']['recipients']) ? esc_attr($notifications['booking_rejection']['recipients']) : ''); ?>" />
|
606 |
<span class="mec-tooltip">
|
607 |
<div class="box left">
|
608 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
740 |
<label for="mec_notifications_cancellation_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
741 |
</div>
|
742 |
<div class="mec-col-9">
|
743 |
+
<input type="text" name="mec[notifications][cancellation_notification][subject]" id="mec_notifications_cancellation_notification_subject" value="<?php echo (isset($notifications['cancellation_notification']['subject']) ? esc_attr(stripslashes($notifications['cancellation_notification']['subject'])) : 'Your booking is canceled.'); ?>" />
|
744 |
</div>
|
745 |
</div>
|
746 |
|
791 |
<label for="mec_notifications_cancellation_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
792 |
</div>
|
793 |
<div class="mec-col-9">
|
794 |
+
<input type="text" name="mec[notifications][cancellation_notification][recipients]" id="mec_notifications_cancellation_notification_recipients" value="<?php echo (isset($notifications['cancellation_notification']['recipients']) ? esc_attr($notifications['cancellation_notification']['recipients']) : ''); ?>" />
|
795 |
<span class="mec-tooltip">
|
796 |
<div class="box left">
|
797 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
915 |
<label for="mec_notifications_admin_notification_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
916 |
</div>
|
917 |
<div class="mec-col-9">
|
918 |
+
<input type="text" name="mec[notifications][admin_notification][subject]" id="mec_notifications_admin_notification_subject" value="<?php echo (isset($notifications['admin_notification']['subject']) ? esc_attr(stripslashes($notifications['admin_notification']['subject'])) : ''); ?>" />
|
919 |
</div>
|
920 |
</div>
|
921 |
|
966 |
<label for="mec_notifications_admin_notification_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
967 |
</div>
|
968 |
<div class="mec-col-9">
|
969 |
+
<input type="text" name="mec[notifications][admin_notification][recipients]" id="mec_notifications_admin_notification_recipients" value="<?php echo (isset($notifications['admin_notification']['recipients']) ? esc_attr($notifications['admin_notification']['recipients']) : ''); ?>" />
|
970 |
<span class="mec-tooltip">
|
971 |
<div class="box left">
|
972 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
1087 |
<label for="mec_notifications_event_soldout_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1088 |
</div>
|
1089 |
<div class="mec-col-9">
|
1090 |
+
<input type="text" name="mec[notifications][event_soldout][subject]" id="mec_notifications_event_soldout_subject" value="<?php echo (isset($notifications['event_soldout']['subject']) ? esc_attr(stripslashes($notifications['event_soldout']['subject'])) : ''); ?>" />
|
1091 |
</div>
|
1092 |
</div>
|
1093 |
|
1138 |
<label for="mec_notifications_event_soldout_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1139 |
</div>
|
1140 |
<div class="mec-col-9">
|
1141 |
+
<input type="text" name="mec[notifications][event_soldout][recipients]" id="mec_notifications_event_soldout_recipients" value="<?php echo (isset($notifications['event_soldout']['recipients']) ? esc_attr($notifications['event_soldout']['recipients']) : ''); ?>" />
|
1142 |
<span class="mec-tooltip">
|
1143 |
<div class="box left">
|
1144 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
1241 |
<div id="mec_notification_booking_reminder_container_toggle" class="<?php if((isset($notifications['booking_reminder']) and !$notifications['booking_reminder']['status']) or !isset($notifications['booking_reminder'])) echo 'mec-util-hidden'; ?>">
|
1242 |
<div class="mec-form-row">
|
1243 |
<?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'booking-reminder.php'; ?>
|
1244 |
+
<p class="mec-col-12 description"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(esc_html__("Set a cronjob to call %s file once per hour otherwise it won't send the reminders. Please note that you should call this file %s otherwise it may send the reminders multiple times.", 'modern-events-calendar-lite'), '<code>'.esc_html($cron).'</code>', '<strong>'.esc_html__('only once per hour', 'modern-events-calendar-lite').'</strong>'); ?></p>
|
1245 |
</div>
|
1246 |
<div class="mec-form-row">
|
1247 |
<div class="mec-col-3">
|
1429 |
<label for="mec_notifications_new_event_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1430 |
</div>
|
1431 |
<div class="mec-col-9">
|
1432 |
+
<input type="text" name="mec[notifications][new_event][subject]" id="mec_notifications_new_event_subject" value="<?php echo (isset($notifications['new_event']['subject']) ? esc_attr(stripslashes($notifications['new_event']['subject'])) : ''); ?>" />
|
1433 |
</div>
|
1434 |
</div>
|
1435 |
|
1480 |
<label for="mec_notifications_new_event_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1481 |
</div>
|
1482 |
<div class="mec-col-9">
|
1483 |
+
<input type="text" name="mec[notifications][new_event][recipients]" id="mec_notifications_new_event_recipients" value="<?php echo (isset($notifications['new_event']['recipients']) ? esc_attr($notifications['new_event']['recipients']) : ''); ?>" />
|
1484 |
<span class="mec-tooltip">
|
1485 |
<div class="box left">
|
1486 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
1546 |
<label for="mec_notifications_user_event_publishing_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1547 |
</div>
|
1548 |
<div class="mec-col-9">
|
1549 |
+
<input type="text" name="mec[notifications][user_event_publishing][subject]" id="mec_notifications_user_event_publishing_subject" value="<?php echo (isset($notifications['user_event_publishing']['subject']) ? esc_attr(stripslashes($notifications['user_event_publishing']['subject'])) : ''); ?>" />
|
1550 |
</div>
|
1551 |
</div>
|
1552 |
|
1597 |
<label for="mec_notifications_user_event_publishing_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1598 |
</div>
|
1599 |
<div class="mec-col-9">
|
1600 |
+
<input type="text" name="mec[notifications][user_event_publishing][recipients]" id="mec_notifications_user_event_publishing_recipients" value="<?php echo (isset($notifications['user_event_publishing']['recipients']) ? esc_attr($notifications['user_event_publishing']['recipients']) : ''); ?>" />
|
1601 |
<span class="mec-tooltip">
|
1602 |
<div class="box left">
|
1603 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
1661 |
|
1662 |
<div class="mec-form-row">
|
1663 |
<?php $cron = MEC_ABSPATH.'app'.DS.'crons'.DS.'event-finished.php'; ?>
|
1664 |
+
<p class="mec-col-12 description"><strong><?php esc_html_e('Important Note', 'modern-events-calendar-lite'); ?>: </strong><?php echo sprintf(esc_html__("Set a cronjob to call %s file once per hour otherwise it won't send the notifications. Please note that you should call this file %s otherwise it may send the notifications multiple times.", 'modern-events-calendar-lite'), '<code>'.esc_html($cron).'</code>', '<strong>'.esc_html__('only once per hour', 'modern-events-calendar-lite').'</strong>'); ?></p>
|
1665 |
</div>
|
1666 |
<div class="mec-form-row">
|
1667 |
<div class="mec-col-3">
|
1668 |
<label for="mec_notifications_event_finished_subject"><?php esc_html_e('Email Subject', 'modern-events-calendar-lite'); ?></label>
|
1669 |
</div>
|
1670 |
<div class="mec-col-9">
|
1671 |
+
<input type="text" name="mec[notifications][event_finished][subject]" id="mec_notifications_event_finished_subject" value="<?php echo (isset($notifications['event_finished']['subject']) ? esc_attr(stripslashes($notifications['event_finished']['subject'])) : ''); ?>" />
|
1672 |
</div>
|
1673 |
</div>
|
1674 |
|
1719 |
<label for="mec_notifications_event_finished_recipients"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></label>
|
1720 |
</div>
|
1721 |
<div class="mec-col-9">
|
1722 |
+
<input type="text" name="mec[notifications][event_finished][recipients]" id="mec_notifications_event_finished_recipients" value="<?php echo (isset($notifications['event_finished']['recipients']) ? esc_attr($notifications['event_finished']['recipients']) : ''); ?>" />
|
1723 |
<span class="mec-tooltip">
|
1724 |
<div class="box left">
|
1725 |
<h5 class="title"><?php esc_html_e('Custom Recipients', 'modern-events-calendar-lite'); ?></h5>
|
app/features/mec/report.php
CHANGED
@@ -42,7 +42,7 @@ $query = new WP_Query(array(
|
|
42 |
|
43 |
$start_date = get_post_meta($ID, 'mec_start_date', true);
|
44 |
|
45 |
-
echo '<option value="'
|
46 |
}
|
47 |
}
|
48 |
?>
|
@@ -57,7 +57,7 @@ $query = new WP_Query(array(
|
|
57 |
<?php $send_email_label = esc_html__('Send Email', 'modern-events-calendar-lite'); ?>
|
58 |
<div class="mec-send-email-form-wrap">
|
59 |
<h2><?php echo esc_html__('Bulk Email', 'modern-events-calendar-lite'); ?></h2>
|
60 |
-
<h4 class="mec-send-email-count"><?php echo sprintf(
|
61 |
<input type="text" class="widefat" id="mec-send-email-subject" placeholder="<?php echo esc_html__('Email Subject', 'modern-events-calendar-lite'); ?>"/><br><br>
|
62 |
<div id="mec-send-email-editor-wrap"></div>
|
63 |
<br>
|
42 |
|
43 |
$start_date = get_post_meta($ID, 'mec_start_date', true);
|
44 |
|
45 |
+
echo '<option value="'.esc_attr($ID).'">' . sprintf(esc_html__('%s (from %s)', 'modern-events-calendar-lite'), get_the_title(), date($date_format, strtotime($start_date))) . '</option>';
|
46 |
}
|
47 |
}
|
48 |
?>
|
57 |
<?php $send_email_label = esc_html__('Send Email', 'modern-events-calendar-lite'); ?>
|
58 |
<div class="mec-send-email-form-wrap">
|
59 |
<h2><?php echo esc_html__('Bulk Email', 'modern-events-calendar-lite'); ?></h2>
|
60 |
+
<h4 class="mec-send-email-count"><?php echo sprintf(esc_html__('You are sending email to %s attendees', 'modern-events-calendar-lite'), '<span>0</span>'); ?></h4>
|
61 |
<input type="text" class="widefat" id="mec-send-email-subject" placeholder="<?php echo esc_html__('Email Subject', 'modern-events-calendar-lite'); ?>"/><br><br>
|
62 |
<div id="mec-send-email-editor-wrap"></div>
|
63 |
<br>
|
app/features/mec/settings.php
CHANGED
@@ -320,7 +320,7 @@ $shortcodes = get_posts(array(
|
|
320 |
<label class="mec-col-3" for="mec_settings_booking_sender_email"><?php esc_html_e('Sender Email', 'modern-events-calendar-lite'); ?></label>
|
321 |
<div class="mec-col-9">
|
322 |
<input type="text" id="mec_settings_booking_sender_email" name="mec[settings][booking_sender_email]"
|
323 |
-
value="<?php echo (isset($settings['booking_sender_email']) and trim($settings['booking_sender_email'])) ? $settings['booking_sender_email'] : ''; ?>" placeholder="<?php esc_html_e('e.g. info@webnus.biz', 'modern-events-calendar-lite'); ?>"/>
|
324 |
</div>
|
325 |
</div>
|
326 |
<div class="mec-form-row">
|
@@ -608,7 +608,7 @@ $shortcodes = get_posts(array(
|
|
608 |
<div class="mec-form-row">
|
609 |
<label class="mec-col-3" for="mec_settings_currency_symptom"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
|
610 |
<div class="mec-col-9">
|
611 |
-
<input type="text" name="mec[settings][currency_symptom]" id="mec_settings_currency_symptom" value="<?php echo (isset($settings['currency_symptom']) ? $settings['currency_symptom'] : ''); ?>" />
|
612 |
<span class="mec-tooltip">
|
613 |
<div class="box left">
|
614 |
<h5 class="title"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></h5>
|
@@ -632,13 +632,13 @@ $shortcodes = get_posts(array(
|
|
632 |
<div class="mec-form-row">
|
633 |
<label class="mec-col-3" for="mec_settings_thousand_separator"><?php esc_html_e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
|
634 |
<div class="mec-col-9">
|
635 |
-
<input type="text" name="mec[settings][thousand_separator]" id="mec_settings_thousand_separator" value="<?php echo (isset($settings['thousand_separator']) ? $settings['thousand_separator'] : ','); ?>" />
|
636 |
</div>
|
637 |
</div>
|
638 |
<div class="mec-form-row">
|
639 |
<label class="mec-col-3" for="mec_settings_decimal_separator"><?php esc_html_e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
|
640 |
<div class="mec-col-9">
|
641 |
-
<input type="text" name="mec[settings][decimal_separator]" id="mec_settings_decimal_separator" value="<?php echo (isset($settings['decimal_separator']) ? $settings['decimal_separator'] : '.'); ?>" />
|
642 |
</div>
|
643 |
</div>
|
644 |
<div class="mec-form-row">
|
@@ -744,7 +744,7 @@ $shortcodes = get_posts(array(
|
|
744 |
<option <?php echo ((isset($settings['fes_list_page']) and $settings['fes_list_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
|
745 |
<?php endforeach; ?>
|
746 |
</select>
|
747 |
-
<p class="description"><?php echo sprintf(
|
748 |
</div>
|
749 |
</div>
|
750 |
<div class="mec-form-row">
|
@@ -756,7 +756,7 @@ $shortcodes = get_posts(array(
|
|
756 |
<option <?php echo ((isset($settings['fes_form_page']) and $settings['fes_form_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
|
757 |
<?php endforeach; ?>
|
758 |
</select>
|
759 |
-
<p class="description"><?php echo sprintf(
|
760 |
</div>
|
761 |
</div>
|
762 |
<div class="mec-form-row">
|
@@ -1201,16 +1201,16 @@ $shortcodes = get_posts(array(
|
|
1201 |
<div id="user_profile_options" class="mec-options-fields">
|
1202 |
<h4 class="mec-form-subtitle"><?php esc_html_e('User Profile', 'modern-events-calendar-lite'); ?></h4>
|
1203 |
<div class="mec-form-row">
|
1204 |
-
<p><?php echo sprintf(
|
1205 |
-
<p><?php echo sprintf(
|
1206 |
-
<p><?php echo sprintf(
|
1207 |
</div>
|
1208 |
</div>
|
1209 |
|
1210 |
<div id="user_events_options" class="mec-options-fields">
|
1211 |
<h4 class="mec-form-subtitle"><?php esc_html_e('User Events', 'modern-events-calendar-lite'); ?></h4>
|
1212 |
<div class="mec-form-row">
|
1213 |
-
<p><?php echo sprintf(
|
1214 |
</div>
|
1215 |
<div class="mec-form-row">
|
1216 |
<select name="mec[settings][userevents_shortcode]" id="mec_settings_userevents_shortcode">
|
@@ -1224,7 +1224,7 @@ $shortcodes = get_posts(array(
|
|
1224 |
<div id="search_bar_options" class="mec-options-fields">
|
1225 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Search Bar', 'modern-events-calendar-lite'); ?></h4>
|
1226 |
<div class="mec-form-row">
|
1227 |
-
<p><?php echo sprintf(
|
1228 |
</div>
|
1229 |
<div class="mec-form-row">
|
1230 |
<label>
|
@@ -1507,8 +1507,8 @@ $shortcodes = get_posts(array(
|
|
1507 |
<label class="mec-col-3" for="mec_settings_aweber_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
|
1508 |
<div class="mec-col-9">
|
1509 |
<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'] : ''); ?>" />
|
1510 |
-
<p class="description"><?php echo sprintf(
|
1511 |
-
<p class="description"><?php echo sprintf(
|
1512 |
</div>
|
1513 |
</div>
|
1514 |
</div>
|
@@ -1536,7 +1536,7 @@ $shortcodes = get_posts(array(
|
|
1536 |
</div>
|
1537 |
</div>
|
1538 |
<?php endif; ?>
|
1539 |
-
<p class="description"><?php echo sprintf(
|
1540 |
</div>
|
1541 |
</div>
|
1542 |
|
@@ -1562,7 +1562,7 @@ $shortcodes = get_posts(array(
|
|
1562 |
</div>
|
1563 |
</div>
|
1564 |
<?php endif; ?>
|
1565 |
-
<p class="description"><?php echo sprintf(
|
1566 |
</div>
|
1567 |
</div>
|
1568 |
|
320 |
<label class="mec-col-3" for="mec_settings_booking_sender_email"><?php esc_html_e('Sender Email', 'modern-events-calendar-lite'); ?></label>
|
321 |
<div class="mec-col-9">
|
322 |
<input type="text" id="mec_settings_booking_sender_email" name="mec[settings][booking_sender_email]"
|
323 |
+
value="<?php echo (isset($settings['booking_sender_email']) and trim($settings['booking_sender_email'])) ? esc_attr($settings['booking_sender_email']) : ''; ?>" placeholder="<?php esc_html_e('e.g. info@webnus.biz', 'modern-events-calendar-lite'); ?>"/>
|
324 |
</div>
|
325 |
</div>
|
326 |
<div class="mec-form-row">
|
608 |
<div class="mec-form-row">
|
609 |
<label class="mec-col-3" for="mec_settings_currency_symptom"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></label>
|
610 |
<div class="mec-col-9">
|
611 |
+
<input type="text" name="mec[settings][currency_symptom]" id="mec_settings_currency_symptom" value="<?php echo (isset($settings['currency_symptom']) ? esc_attr($settings['currency_symptom']) : ''); ?>" />
|
612 |
<span class="mec-tooltip">
|
613 |
<div class="box left">
|
614 |
<h5 class="title"><?php esc_html_e('Currency Sign', 'modern-events-calendar-lite'); ?></h5>
|
632 |
<div class="mec-form-row">
|
633 |
<label class="mec-col-3" for="mec_settings_thousand_separator"><?php esc_html_e('Thousand Separator', 'modern-events-calendar-lite'); ?></label>
|
634 |
<div class="mec-col-9">
|
635 |
+
<input type="text" name="mec[settings][thousand_separator]" id="mec_settings_thousand_separator" value="<?php echo (isset($settings['thousand_separator']) ? esc_attr($settings['thousand_separator']) : ','); ?>" />
|
636 |
</div>
|
637 |
</div>
|
638 |
<div class="mec-form-row">
|
639 |
<label class="mec-col-3" for="mec_settings_decimal_separator"><?php esc_html_e('Decimal Separator', 'modern-events-calendar-lite'); ?></label>
|
640 |
<div class="mec-col-9">
|
641 |
+
<input type="text" name="mec[settings][decimal_separator]" id="mec_settings_decimal_separator" value="<?php echo (isset($settings['decimal_separator']) ? esc_attr($settings['decimal_separator']) : '.'); ?>" />
|
642 |
</div>
|
643 |
</div>
|
644 |
<div class="mec-form-row">
|
744 |
<option <?php echo ((isset($settings['fes_list_page']) and $settings['fes_list_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
|
745 |
<?php endforeach; ?>
|
746 |
</select>
|
747 |
+
<p class="description"><?php echo sprintf(esc_html__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[MEC_fes_list]</code>'); ?></p>
|
748 |
</div>
|
749 |
</div>
|
750 |
<div class="mec-form-row">
|
756 |
<option <?php echo ((isset($settings['fes_form_page']) and $settings['fes_form_page'] == $page->ID) ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr($page->ID); ?>"><?php echo esc_html($page->post_title); ?></option>
|
757 |
<?php endforeach; ?>
|
758 |
</select>
|
759 |
+
<p class="description"><?php echo sprintf(esc_html__('Put %s shortcode into the page.', 'modern-events-calendar-lite'), '<code>[MEC_fes_form]</code>'); ?></p>
|
760 |
</div>
|
761 |
</div>
|
762 |
<div class="mec-form-row">
|
1201 |
<div id="user_profile_options" class="mec-options-fields">
|
1202 |
<h4 class="mec-form-subtitle"><?php esc_html_e('User Profile', 'modern-events-calendar-lite'); ?></h4>
|
1203 |
<div class="mec-form-row">
|
1204 |
+
<p><?php echo sprintf(esc_html__('Put %s shortcode into your desired page. Then users are able to see the history of their bookings.', 'modern-events-calendar-lite'), '<code>[MEC_profile]</code>'); ?></p>
|
1205 |
+
<p><?php echo sprintf(esc_html__('Use %s attribute to hide canceled bookings. Like %s', 'modern-events-calendar-lite'), '<code>hide-canceleds="1"</code>', '<code>[MEC_profile hide-canceleds="1"]</code>'); ?></p>
|
1206 |
+
<p><?php echo sprintf(esc_html__('Use %s attribute to show upcoming bookings. Like %s', 'modern-events-calendar-lite'), '<code>show-upcomings="1"</code>', '<code>[MEC_profile show-upcomings="1"]</code>'); ?></p>
|
1207 |
</div>
|
1208 |
</div>
|
1209 |
|
1210 |
<div id="user_events_options" class="mec-options-fields">
|
1211 |
<h4 class="mec-form-subtitle"><?php esc_html_e('User Events', 'modern-events-calendar-lite'); ?></h4>
|
1212 |
<div class="mec-form-row">
|
1213 |
+
<p><?php echo sprintf(esc_html__('Put %s shortcode into your desired page. Then users are able to see the their own events.', 'modern-events-calendar-lite'), '<code>[MEC_userevents]</code>'); ?></p>
|
1214 |
</div>
|
1215 |
<div class="mec-form-row">
|
1216 |
<select name="mec[settings][userevents_shortcode]" id="mec_settings_userevents_shortcode">
|
1224 |
<div id="search_bar_options" class="mec-options-fields">
|
1225 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Search Bar', 'modern-events-calendar-lite'); ?></h4>
|
1226 |
<div class="mec-form-row">
|
1227 |
+
<p><?php echo sprintf(esc_html__('Put %s shortcode into your desired page. Then users are able to search events', 'modern-events-calendar-lite'), '<code>[MEC_search_bar]</code>'); ?></p>
|
1228 |
</div>
|
1229 |
<div class="mec-form-row">
|
1230 |
<label>
|
1507 |
<label class="mec-col-3" for="mec_settings_aweber_list_id"><?php esc_html_e('List ID', 'modern-events-calendar-lite'); ?></label>
|
1508 |
<div class="mec-col-9">
|
1509 |
<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'] : ''); ?>" />
|
1510 |
+
<p class="description"><?php echo sprintf(esc_html__("%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>
|
1511 |
+
<p class="description"><?php echo sprintf(esc_html__('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>
|
1512 |
</div>
|
1513 |
</div>
|
1514 |
</div>
|
1536 |
</div>
|
1537 |
</div>
|
1538 |
<?php endif; ?>
|
1539 |
+
<p class="description"><?php echo sprintf(esc_html__("%s plugin should be installed and activated.", 'modern-events-calendar-lite'), '<a href="https://wordpress.org/plugins/mailpoet/" target="_blank">MailPoet</a>'); ?></p>
|
1540 |
</div>
|
1541 |
</div>
|
1542 |
|
1562 |
</div>
|
1563 |
</div>
|
1564 |
<?php endif; ?>
|
1565 |
+
<p class="description"><?php echo sprintf(esc_html__("%s plugin should be installed and connected to your Sendfox account.", 'modern-events-calendar-lite'), '<a href="https://wordpress.org/plugins/wp-sendfox/" target="_blank">WP Sendfox</a>'); ?></p>
|
1566 |
</div>
|
1567 |
</div>
|
1568 |
|
app/features/mec/single.php
CHANGED
@@ -76,7 +76,7 @@ $event_fields = $this->main->get_event_fields();
|
|
76 |
<option value="default" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Default Style', 'modern-events-calendar-lite'); ?></option>
|
77 |
<option value="modern" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'modern') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Modern Style', 'modern-events-calendar-lite'); ?></option>
|
78 |
<?php do_action('mec_single_style', $settings); ?>
|
79 |
-
<?php if
|
80 |
<option value="builder" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'builder') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Elementor Single Builder', 'modern-events-calendar-lite'); ?></option>
|
81 |
<?php endif; ?>
|
82 |
</select>
|
@@ -556,7 +556,7 @@ $event_fields = $this->main->get_event_fields();
|
|
556 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Content only for bookers', 'modern-events-calendar-lite'); ?></h4>
|
557 |
<div class="mec-form-row">
|
558 |
<div class="mec-col-12">
|
559 |
-
<p><?php echo sprintf(
|
560 |
</div>
|
561 |
</div>
|
562 |
</div>
|
76 |
<option value="default" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Default Style', 'modern-events-calendar-lite'); ?></option>
|
77 |
<option value="modern" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'modern') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Modern Style', 'modern-events-calendar-lite'); ?></option>
|
78 |
<?php do_action('mec_single_style', $settings); ?>
|
79 |
+
<?php if(is_plugin_active( 'mec-single-builder/mec-single-builder.php')): ?>
|
80 |
<option value="builder" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'builder') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Elementor Single Builder', 'modern-events-calendar-lite'); ?></option>
|
81 |
<?php endif; ?>
|
82 |
</select>
|
556 |
<h4 class="mec-form-subtitle"><?php esc_html_e('Content only for bookers', 'modern-events-calendar-lite'); ?></h4>
|
557 |
<div class="mec-form-row">
|
558 |
<div class="mec-col-12">
|
559 |
+
<p><?php echo sprintf(esc_html__('if you need to show a certain content only for booker users, you can enclose your content using %s shortcode. For example you can use %s code to say "Hi" to bookers.', 'modern-events-calendar-lite'), '<code>[mec-only-booked-users]</code>', '<code>[mec-only-booked-users]Hi[/mec-only-booked-users]</code>'); ?></p>
|
560 |
</div>
|
561 |
</div>
|
562 |
</div>
|
app/features/mec/styles.php
CHANGED
@@ -26,7 +26,7 @@ $styles = $this->main->get_styles();
|
|
26 |
<div class="mec-options-fields">
|
27 |
<h2><?php esc_html_e('Custom Styles', 'modern-events-calendar-lite'); ?></h2>
|
28 |
<div class="mec-form-row">
|
29 |
-
<textarea id="mec_styles_CSS" name="mec[styles][CSS]"><?php echo (isset($styles['CSS']) ? stripslashes($styles['CSS']) : ''); ?></textarea>
|
30 |
<p class="mec-col-12 description"><?php esc_html_e("If you're a developer or you have knowledge of CSS codes, you can place your style codes here. These codes will be included in your theme frontend after all styles so they will override MEC default (or theme) styles.", 'modern-events-calendar-lite'); ?></p>
|
31 |
<?php wp_nonce_field('mec_options_form'); ?>
|
32 |
<button style="display: none;" id="mec_styles_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></button>
|
26 |
<div class="mec-options-fields">
|
27 |
<h2><?php esc_html_e('Custom Styles', 'modern-events-calendar-lite'); ?></h2>
|
28 |
<div class="mec-form-row">
|
29 |
+
<textarea id="mec_styles_CSS" name="mec[styles][CSS]"><?php echo (isset($styles['CSS']) ? esc_textarea(stripslashes($styles['CSS'])) : ''); ?></textarea>
|
30 |
<p class="mec-col-12 description"><?php esc_html_e("If you're a developer or you have knowledge of CSS codes, you can place your style codes here. These codes will be included in your theme frontend after all styles so they will override MEC default (or theme) styles.", 'modern-events-calendar-lite'); ?></p>
|
31 |
<?php wp_nonce_field('mec_options_form'); ?>
|
32 |
<button style="display: none;" id="mec_styles_form_button" class="button button-primary mec-button-primary" type="submit"><?php esc_html_e('Save Changes', 'modern-events-calendar-lite'); ?></button>
|
app/features/mec/styling.php
CHANGED
@@ -105,7 +105,7 @@ if(is_array($fonts))
|
|
105 |
<span><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></span>
|
106 |
</div>
|
107 |
<div class="mec-col-9">
|
108 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" />
|
109 |
</div>
|
110 |
<div class="mec-col-12">
|
111 |
<p><?php esc_attr_e("If you want to select a predefined color skin, you must clear the color of this item", 'modern-events-calendar-lite'); ?></p>
|
@@ -134,7 +134,7 @@ if(is_array($fonts))
|
|
134 |
<span><?php esc_html_e('Title', 'modern-events-calendar-lite' ); ?></span>
|
135 |
</div>
|
136 |
<div class="mec-col-9">
|
137 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_title_color" name="mec[styling][title_color]" value="<?php echo (isset($styling['title_color']) ? $styling['title_color'] : ''); ?>" data-default-color="" />
|
138 |
</div>
|
139 |
</div>
|
140 |
|
@@ -143,7 +143,7 @@ if(is_array($fonts))
|
|
143 |
<span><?php esc_html_e('Title Hover', 'modern-events-calendar-lite' ); ?></span>
|
144 |
</div>
|
145 |
<div class="mec-col-9">
|
146 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_title_color_hover" name="mec[styling][title_color_hover]" value="<?php echo (isset($styling['title_color_hover']) ? $styling['title_color_hover'] : ''); ?>" data-default-color="" />
|
147 |
</div>
|
148 |
</div>
|
149 |
|
@@ -152,7 +152,7 @@ if(is_array($fonts))
|
|
152 |
<span><?php esc_html_e('Content', 'modern-events-calendar-lite' ); ?></span>
|
153 |
</div>
|
154 |
<div class="mec-col-9">
|
155 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_content_color" name="mec[styling][content_color]" value="<?php echo (isset($styling['content_color']) ? $styling['content_color'] : ''); ?>" data-default-color="" />
|
156 |
</div>
|
157 |
</div>
|
158 |
|
@@ -284,7 +284,7 @@ if(is_array($fonts))
|
|
284 |
<span><?php esc_html_e('Frontend Event Submission Color', 'modern-events-calendar-lite' ); ?></span>
|
285 |
</div>
|
286 |
<div class="mec-col-9">
|
287 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_fes_color" name="mec[styling][fes_color]" value="<?php echo (isset($styling['fes_color']) ? $styling['fes_color'] : ''); ?>" data-default-color="" />
|
288 |
</div>
|
289 |
</div>
|
290 |
|
@@ -293,7 +293,7 @@ if(is_array($fonts))
|
|
293 |
<span><?php esc_html_e('Notifications Background', 'modern-events-calendar-lite' ); ?></span>
|
294 |
</div>
|
295 |
<div class="mec-col-9">
|
296 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_notification_bg" name="mec[styling][notification_bg]" value="<?php echo (isset($styling['notification_bg']) ? $styling['notification_bg'] : ''); ?>" data-default-color="" />
|
297 |
</div>
|
298 |
</div>
|
299 |
|
105 |
<span><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></span>
|
106 |
</div>
|
107 |
<div class="mec-col-9">
|
108 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? esc_attr($styling['color']) : ''); ?>" data-default-color="" />
|
109 |
</div>
|
110 |
<div class="mec-col-12">
|
111 |
<p><?php esc_attr_e("If you want to select a predefined color skin, you must clear the color of this item", 'modern-events-calendar-lite'); ?></p>
|
134 |
<span><?php esc_html_e('Title', 'modern-events-calendar-lite' ); ?></span>
|
135 |
</div>
|
136 |
<div class="mec-col-9">
|
137 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_title_color" name="mec[styling][title_color]" value="<?php echo (isset($styling['title_color']) ? esc_attr($styling['title_color']) : ''); ?>" data-default-color="" />
|
138 |
</div>
|
139 |
</div>
|
140 |
|
143 |
<span><?php esc_html_e('Title Hover', 'modern-events-calendar-lite' ); ?></span>
|
144 |
</div>
|
145 |
<div class="mec-col-9">
|
146 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_title_color_hover" name="mec[styling][title_color_hover]" value="<?php echo (isset($styling['title_color_hover']) ? esc_attr($styling['title_color_hover']) : ''); ?>" data-default-color="" />
|
147 |
</div>
|
148 |
</div>
|
149 |
|
152 |
<span><?php esc_html_e('Content', 'modern-events-calendar-lite' ); ?></span>
|
153 |
</div>
|
154 |
<div class="mec-col-9">
|
155 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_content_color" name="mec[styling][content_color]" value="<?php echo (isset($styling['content_color']) ? esc_attr($styling['content_color']) : ''); ?>" data-default-color="" />
|
156 |
</div>
|
157 |
</div>
|
158 |
|
284 |
<span><?php esc_html_e('Frontend Event Submission Color', 'modern-events-calendar-lite' ); ?></span>
|
285 |
</div>
|
286 |
<div class="mec-col-9">
|
287 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_fes_color" name="mec[styling][fes_color]" value="<?php echo (isset($styling['fes_color']) ? esc_attr($styling['fes_color']) : ''); ?>" data-default-color="" />
|
288 |
</div>
|
289 |
</div>
|
290 |
|
293 |
<span><?php esc_html_e('Notifications Background', 'modern-events-calendar-lite' ); ?></span>
|
294 |
</div>
|
295 |
<div class="mec-col-9">
|
296 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_notification_bg" name="mec[styling][notification_bg]" value="<?php echo (isset($styling['notification_bg']) ? esc_attr($styling['notification_bg']) : ''); ?>" data-default-color="" />
|
297 |
</div>
|
298 |
</div>
|
299 |
|
app/features/mec/support-page.php
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
<?php
|
|
|
|
|
|
|
2 |
wp_enqueue_style('mec-lity-style', $this->main->asset('packages/lity/lity.min.css'));
|
3 |
wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.js'));
|
4 |
?>
|
@@ -28,7 +31,7 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
|
|
28 |
<div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
|
29 |
<div class="w-col-sm-12">
|
30 |
<div class="info-msg support-box">
|
31 |
-
<p><?php echo sprintf(
|
32 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960896"> Get 12 Month Premium Support </a>
|
33 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960724"> Get 6 Month Premium Support </a>
|
34 |
</div>
|
@@ -40,7 +43,7 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
|
|
40 |
<div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
|
41 |
<div class="w-col-sm-12">
|
42 |
<div class="info-msg support-box">
|
43 |
-
<p><?php echo sprintf(
|
44 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960896"> Get 12 Month Premium Support </a>
|
45 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960724"> Get 6 Month Premium Support </a>
|
46 |
</div>
|
@@ -49,46 +52,41 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
|
|
49 |
<?php endif; ?>
|
50 |
|
51 |
<?php if(current_user_can('read')): ?>
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
} else {
|
81 |
-
var script = document.createElement("script");
|
82 |
-
script.src = "https://assets.freshsales.io/assets/webform-6a8bd10d9118645b79d2d3b3a3112e0901bf1beb.js";
|
83 |
-
script.onload = function(){
|
84 |
WebFormQueue.add(webformOptions);
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
?>
|
92 |
<div class="w-row">
|
93 |
<div class="w-col-sm-12">
|
94 |
<div class="w-box support-page searchbox">
|
@@ -386,7 +384,7 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
|
|
386 |
<div class="w-box support-page mec-ticksy">
|
387 |
<div class="w-box-content">
|
388 |
<center><img src="<?php echo plugin_dir_url(__FILE__ ) . '../../../assets/img/wn-ms-icon-17-n.svg'; ?>" style="width:100px; margin-top:30px;" /></center>
|
389 |
-
<p style="margin-top:20px;"><?php esc_html_e('You don’t need to register anywhere for support anymore.You can click the following button, and the chat box will open up to ask all your different questions using our various channels.' , 'modern-events-calendar-lite');
|
390 |
<a href="#" class="support-button"><?php esc_html_e('Create a Support Ticket','modern-events-calendar-lite'); ?></a>
|
391 |
</div>
|
392 |
</div>
|
@@ -396,44 +394,49 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
|
|
396 |
<?php endif; ?>
|
397 |
</div>
|
398 |
</div>
|
399 |
-
<script>
|
400 |
-
(function($) {
|
401 |
|
402 |
-
|
403 |
-
|
|
|
|
|
|
|
404 |
|
405 |
-
|
406 |
-
$
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
$target.addClass('active').slideDown();
|
412 |
-
$('.mec-faq-accordion > .mec-faq-accordion-trigger > a').removeClass('active')
|
413 |
-
$this.addClass('active');
|
414 |
-
} else {
|
415 |
-
$this.removeClass('active');
|
416 |
-
$target.removeClass('active').slideUp();
|
417 |
-
}
|
418 |
-
return false;
|
419 |
-
});
|
420 |
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
|
|
|
|
|
|
|
|
435 |
});
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/** @var MEC_feature_mec $this */
|
4 |
+
|
5 |
wp_enqueue_style('mec-lity-style', $this->main->asset('packages/lity/lity.min.css'));
|
6 |
wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.js'));
|
7 |
?>
|
31 |
<div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
|
32 |
<div class="w-col-sm-12">
|
33 |
<div class="info-msg support-box">
|
34 |
+
<p><?php echo sprintf(esc_html__("%s, if you need support, you can purchase our Extra Support feature through links below:", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Dear user', 'modern-events-calendar-lite').'</strong>'); ?></p>
|
35 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960896"> Get 12 Month Premium Support </a>
|
36 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960724"> Get 6 Month Premium Support </a>
|
37 |
</div>
|
43 |
<div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
|
44 |
<div class="w-col-sm-12">
|
45 |
<div class="info-msg support-box">
|
46 |
+
<p><?php echo sprintf(esc_html__("%s, we won't charge you for any extra price after a year for using MEC or receiving updates, but you will need to renew your license if you needed support by then. You can use links below in order to do that:", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Dear user', 'modern-events-calendar-lite').'</strong>'); ?></p>
|
47 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960896"> Get 12 Month Premium Support </a>
|
48 |
<a target="_blank" href="https://webnus.net/checkout?edd_action=add_to_cart&download_id=960724"> Get 6 Month Premium Support </a>
|
49 |
</div>
|
52 |
<?php endif; ?>
|
53 |
|
54 |
<?php if(current_user_can('read')): ?>
|
55 |
+
<script>
|
56 |
+
(function(){
|
57 |
+
var version = parseInt(Math.random()*10000);
|
58 |
+
var webformKey = "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc_"+version;
|
59 |
+
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>';
|
60 |
+
var containerHTML = '<div id="fs-webform-container_'+webformKey+'" class="fs-webform-container fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc" style="display:none;"></div>';
|
61 |
+
var scriptTag = document.currentScript || document.getElementById("fs_8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc") || document.getElementById("fswebforms") || document.getElementById("formservjs");
|
62 |
+
var docHook = scriptTag.parentElement;
|
63 |
+
var content = document.createElement("div");
|
64 |
+
scriptTag.id = webformKey;
|
65 |
+
docHook.appendChild(content);
|
66 |
+
content.innerHTML = loaderHTML+containerHTML;
|
67 |
+
|
68 |
+
var webformOptions = {
|
69 |
+
key: "8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc",
|
70 |
+
url: "https://webform.freshsales.io/assets/webforms/8dd552ab6041bd25d23d8a8467819f701f9196106be0e25edc6870c9cc922bdc/10",
|
71 |
+
domainURL: "https://webnus.freshsales.io",
|
72 |
+
format: "js",
|
73 |
+
version: version,
|
74 |
+
formVersion: 10
|
75 |
+
};
|
76 |
+
|
77 |
+
if(window.WebFormQueue){
|
78 |
+
WebFormQueue.add(webformOptions);
|
79 |
+
} else {
|
80 |
+
var script = document.createElement("script");
|
81 |
+
script.src = "https://assets.freshsales.io/assets/webform-6a8bd10d9118645b79d2d3b3a3112e0901bf1beb.js";
|
82 |
+
script.onload = function(){
|
|
|
|
|
|
|
|
|
83 |
WebFormQueue.add(webformOptions);
|
84 |
+
};
|
85 |
+
var webformContainer = document.getElementById("fs-webform-container_"+webformKey);
|
86 |
+
webformContainer.appendChild(script);
|
87 |
+
}
|
88 |
+
})();
|
89 |
+
</script>
|
|
|
90 |
<div class="w-row">
|
91 |
<div class="w-col-sm-12">
|
92 |
<div class="w-box support-page searchbox">
|
384 |
<div class="w-box support-page mec-ticksy">
|
385 |
<div class="w-box-content">
|
386 |
<center><img src="<?php echo plugin_dir_url(__FILE__ ) . '../../../assets/img/wn-ms-icon-17-n.svg'; ?>" style="width:100px; margin-top:30px;" /></center>
|
387 |
+
<p style="margin-top:20px;"><?php esc_html_e('You don’t need to register anywhere for support anymore.You can click the following button, and the chat box will open up to ask all your different questions using our various channels.' , 'modern-events-calendar-lite'); ?><br><small style="color: #8a8a8a;"><?php echo esc_html__("Only enter your email address and the answers will be sent over to your mail box.", 'modern-events-calendar-lite');?></small></p>
|
388 |
<a href="#" class="support-button"><?php esc_html_e('Create a Support Ticket','modern-events-calendar-lite'); ?></a>
|
389 |
</div>
|
390 |
</div>
|
394 |
<?php endif; ?>
|
395 |
</div>
|
396 |
</div>
|
|
|
|
|
397 |
|
398 |
+
<?php $this->factory->params('footer', function()
|
399 |
+
{
|
400 |
+
?>
|
401 |
+
<script>
|
402 |
+
(function($) {
|
403 |
|
404 |
+
var allPanels = $('.mec-faq-accordion > .mec-faq-accordion-content');
|
405 |
+
$('.mec-faq-accordion>.mec-faq-accordion-content.active').show();
|
406 |
+
|
407 |
+
$('.mec-faq-accordion > .mec-faq-accordion-trigger > a').click(function() {
|
408 |
+
$this = $(this);
|
409 |
+
$target = $this.parent().next();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
|
411 |
+
if(!$target.hasClass('active')){
|
412 |
+
allPanels.removeClass('active').slideUp();
|
413 |
+
$target.addClass('active').slideDown();
|
414 |
+
$('.mec-faq-accordion > .mec-faq-accordion-trigger > a').removeClass('active')
|
415 |
+
$this.addClass('active');
|
416 |
+
} else {
|
417 |
+
$this.removeClass('active');
|
418 |
+
$target.removeClass('active').slideUp();
|
419 |
+
}
|
420 |
+
return false;
|
421 |
+
});
|
422 |
+
|
423 |
+
})(jQuery);
|
424 |
+
jQuery('.support-button').on('click',function(event, data) {
|
425 |
+
event.preventDefault();
|
426 |
+
if (window.fcWidget.isOpen() != true) {
|
427 |
+
window.fcWidget.open();
|
428 |
+
}
|
429 |
});
|
430 |
+
</script>
|
431 |
+
<?php if($this->getPRO()): ?>
|
432 |
+
<script>
|
433 |
+
function initFreshChat() {
|
434 |
+
window.fcWidget.init({
|
435 |
+
token: "1be9e2ea-febf-4835-b290-5bd097dc2e02",
|
436 |
+
host: "https://wchat.freshchat.com"
|
437 |
+
});
|
438 |
+
}
|
439 |
+
function initialize(i,t){var e;i.getElementById(t)?initFreshChat():((e=i.createElement("script")).id=t,e.async=!0,e.src="https://wchat.freshchat.com/js/widget.js",e.onload=initFreshChat,i.head.appendChild(e))}function initiateCall(){initialize(document,"freshchat-js-sdk")}window.addEventListener?window.addEventListener("load",initiateCall,!1):window.attachEvent("load",initiateCall,!1);
|
440 |
+
</script>
|
441 |
+
<?php endif;
|
442 |
+
});
|
app/features/notifications.php
CHANGED
@@ -80,7 +80,7 @@ class MEC_feature_notifications extends MEC_base
|
|
80 |
<label for="mec_notifications_<?php echo esc_attr($key); ?>_content"><?php esc_html_e('Email Content', 'modern-events-calendar-lite'); ?></label>
|
81 |
</div>
|
82 |
<div class="mec-col-10">
|
83 |
-
<?php wp_editor(((isset($values[$key]) and isset($values[$key]['content']) and trim($values[$key]['content'])) ? stripslashes($values[$key]['content']) : ((isset($this->notif_settings[$key]) and isset($this->notif_settings[$key]['content']) and trim($this->notif_settings[$key]['content'])) ? stripslashes($this->notif_settings[$key]['content']) : '')), 'mec_notifications_'
|
84 |
</div>
|
85 |
</div>
|
86 |
|
80 |
<label for="mec_notifications_<?php echo esc_attr($key); ?>_content"><?php esc_html_e('Email Content', 'modern-events-calendar-lite'); ?></label>
|
81 |
</div>
|
82 |
<div class="mec-col-10">
|
83 |
+
<?php wp_editor(((isset($values[$key]) and isset($values[$key]['content']) and trim($values[$key]['content'])) ? stripslashes($values[$key]['content']) : ((isset($this->notif_settings[$key]) and isset($this->notif_settings[$key]['content']) and trim($this->notif_settings[$key]['content'])) ? stripslashes($this->notif_settings[$key]['content']) : '')), 'mec_notifications_'.esc_attr($key).'_content', array('textarea_name'=>'mec[notifications]['.$key.'][content]')); ?>
|
84 |
</div>
|
85 |
</div>
|
86 |
|
app/features/occurrences.php
CHANGED
@@ -104,7 +104,7 @@ class MEC_feature_occurrences extends MEC_base
|
|
104 |
<select id="mec_occurrences_dropdown" title="<?php esc_attr_e('Occurrence', 'modern-events-calendar-lite'); ?>">
|
105 |
<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>
|
106 |
<?php $i = 1; foreach($occurrences as $occurrence): ?>
|
107 |
-
<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>
|
108 |
<?php $i++; endforeach; ?>
|
109 |
<?php if(count($occurrences) >= $limit and isset($occurrence)): ?>
|
110 |
<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>
|
@@ -433,8 +433,8 @@ class MEC_feature_occurrences extends MEC_base
|
|
433 |
'speakers_status' => $speakers_status,
|
434 |
'speakers' => $speakers,
|
435 |
'wrapper_class' => '',
|
436 |
-
'prefix' => 'mec_occurrences_'
|
437 |
-
'name_prefix' => 'mec[occurrences]['
|
438 |
));
|
439 |
?>
|
440 |
</div>
|
@@ -444,12 +444,12 @@ class MEC_feature_occurrences extends MEC_base
|
|
444 |
<?php
|
445 |
$fields = $this->getEventFields();
|
446 |
$fields->form(array(
|
447 |
-
'id' => 'mec_occurrences_event_fields_'
|
448 |
'class' => 'no',
|
449 |
'post' => $post,
|
450 |
'data' => $fields_data,
|
451 |
-
'id_prefix' => 'mec_occurrences_'
|
452 |
-
'name_prefix' => 'mec[occurrences]['
|
453 |
'mandatory_status' => false,
|
454 |
));
|
455 |
?>
|
@@ -457,7 +457,7 @@ class MEC_feature_occurrences extends MEC_base
|
|
457 |
</div>
|
458 |
<div class="mec-form-row">
|
459 |
<div class="mec-col-12">
|
460 |
-
<h4><?php echo sprintf(
|
461 |
<div class="mec-form-row">
|
462 |
<select name="mec[occurrences][<?php echo esc_attr($occurrence_id); ?>][location_id]" id="mec_occurrences_<?php echo esc_attr($occurrence_id); ?>_location_id" title="<?php echo esc_attr__($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
|
463 |
<option value="">-----</option>
|
@@ -487,7 +487,7 @@ class MEC_feature_occurrences extends MEC_base
|
|
487 |
</div>
|
488 |
<div class="mec-form-row">
|
489 |
<div class="mec-col-12">
|
490 |
-
<h4><?php echo sprintf(
|
491 |
<div class="mec-form-row">
|
492 |
<select name="mec[occurrences][<?php echo esc_attr($occurrence_id); ?>][organizer_id]" id="mec_occurrences_<?php echo esc_attr($occurrence_id); ?>_organizer_id" title="<?php echo esc_attr__($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
|
493 |
<option value="">-----</option>
|
104 |
<select id="mec_occurrences_dropdown" title="<?php esc_attr_e('Occurrence', 'modern-events-calendar-lite'); ?>">
|
105 |
<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>
|
106 |
<?php $i = 1; foreach($occurrences as $occurrence): ?>
|
107 |
+
<option value="<?php echo esc_attr($occurrence->tstart.':'.$occurrence->tend); ?>" <?php echo ($i === 1 ? 'selected="selected"' : ''); ?>><?php echo esc_html(date_i18n($datetime_format, $occurrence->tstart)); ?></option>
|
108 |
<?php $i++; endforeach; ?>
|
109 |
<?php if(count($occurrences) >= $limit and isset($occurrence)): ?>
|
110 |
<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>
|
433 |
'speakers_status' => $speakers_status,
|
434 |
'speakers' => $speakers,
|
435 |
'wrapper_class' => '',
|
436 |
+
'prefix' => 'mec_occurrences_'.esc_attr($occurrence_id).'_',
|
437 |
+
'name_prefix' => 'mec[occurrences]['.esc_attr($occurrence_id).']',
|
438 |
));
|
439 |
?>
|
440 |
</div>
|
444 |
<?php
|
445 |
$fields = $this->getEventFields();
|
446 |
$fields->form(array(
|
447 |
+
'id' => 'mec_occurrences_event_fields_'.esc_attr($occurrence_id),
|
448 |
'class' => 'no',
|
449 |
'post' => $post,
|
450 |
'data' => $fields_data,
|
451 |
+
'id_prefix' => 'mec_occurrences_'.esc_attr($occurrence_id).'_',
|
452 |
+
'name_prefix' => 'mec[occurrences]['.esc_attr($occurrence_id).']',
|
453 |
'mandatory_status' => false,
|
454 |
));
|
455 |
?>
|
457 |
</div>
|
458 |
<div class="mec-form-row">
|
459 |
<div class="mec-col-12">
|
460 |
+
<h4><?php echo sprintf(esc_html__('Event Main %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h4>
|
461 |
<div class="mec-form-row">
|
462 |
<select name="mec[occurrences][<?php echo esc_attr($occurrence_id); ?>][location_id]" id="mec_occurrences_<?php echo esc_attr($occurrence_id); ?>_location_id" title="<?php echo esc_attr__($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
|
463 |
<option value="">-----</option>
|
487 |
</div>
|
488 |
<div class="mec-form-row">
|
489 |
<div class="mec-col-12">
|
490 |
+
<h4><?php echo sprintf(esc_html__('Event Main %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h4>
|
491 |
<div class="mec-form-row">
|
492 |
<select name="mec[occurrences][<?php echo esc_attr($occurrence_id); ?>][organizer_id]" id="mec_occurrences_<?php echo esc_attr($occurrence_id); ?>_organizer_id" title="<?php echo esc_attr__($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
|
493 |
<option value="">-----</option>
|
app/features/organizers.php
CHANGED
@@ -66,16 +66,16 @@ class MEC_feature_organizers extends MEC_base
|
|
66 |
'labels'=>array(
|
67 |
'name'=>$plural_label,
|
68 |
'singular_name'=>$singular_label,
|
69 |
-
'all_items'=>sprintf(
|
70 |
-
'edit_item'=>sprintf(
|
71 |
-
'view_item'=>sprintf(
|
72 |
-
'update_item'=>sprintf(
|
73 |
-
'add_new_item'=>sprintf(
|
74 |
-
'new_item_name'=>sprintf(
|
75 |
-
'popular_items'=>sprintf(
|
76 |
-
'search_items'=>sprintf(
|
77 |
-
'back_to_items'=>sprintf(
|
78 |
-
'not_found'=>sprintf(
|
79 |
),
|
80 |
'rewrite'=>array('slug'=>'events-organizer'),
|
81 |
'public'=>false,
|
@@ -274,7 +274,7 @@ class MEC_feature_organizers extends MEC_base
|
|
274 |
}
|
275 |
?>
|
276 |
<div class="mec-meta-box-fields mec-event-tab-content" id="mec-organizer">
|
277 |
-
<h4><?php echo sprintf(
|
278 |
<div class="mec-form-row">
|
279 |
<select name="mec[organizer_id]" id="mec_organizer_id" title="<?php echo esc_attr__($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
|
280 |
<option value="1"><?php esc_html_e('Hide organizer', 'modern-events-calendar-lite'); ?></option>
|
@@ -379,7 +379,7 @@ class MEC_feature_organizers extends MEC_base
|
|
379 |
if($action === 'mec_fes_form') return false;
|
380 |
|
381 |
// Get Modern Events Calendar Data
|
382 |
-
$_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
383 |
|
384 |
// Selected a saved organizer
|
385 |
if(isset($_mec['organizer_id']) and $_mec['organizer_id'])
|
66 |
'labels'=>array(
|
67 |
'name'=>$plural_label,
|
68 |
'singular_name'=>$singular_label,
|
69 |
+
'all_items'=>sprintf(esc_html__('All %s', 'modern-events-calendar-lite'), $plural_label),
|
70 |
+
'edit_item'=>sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
|
71 |
+
'view_item'=>sprintf(esc_html__('View %s', 'modern-events-calendar-lite'), $singular_label),
|
72 |
+
'update_item'=>sprintf(esc_html__('Update %s', 'modern-events-calendar-lite'), $singular_label),
|
73 |
+
'add_new_item'=>sprintf(esc_html__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
|
74 |
+
'new_item_name'=>sprintf(esc_html__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
|
75 |
+
'popular_items'=>sprintf(esc_html__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
|
76 |
+
'search_items'=>sprintf(esc_html__('Search %s', 'modern-events-calendar-lite'), $plural_label),
|
77 |
+
'back_to_items'=>sprintf(esc_html__('← Back to %s', 'modern-events-calendar-lite'), $plural_label),
|
78 |
+
'not_found'=>sprintf(esc_html__('no %s found.', 'modern-events-calendar-lite'), strtolower($plural_label)),
|
79 |
),
|
80 |
'rewrite'=>array('slug'=>'events-organizer'),
|
81 |
'public'=>false,
|
274 |
}
|
275 |
?>
|
276 |
<div class="mec-meta-box-fields mec-event-tab-content" id="mec-organizer">
|
277 |
+
<h4><?php echo sprintf(esc_html__('Event Main %s', 'modern-events-calendar-lite'), $this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h4>
|
278 |
<div class="mec-form-row">
|
279 |
<select name="mec[organizer_id]" id="mec_organizer_id" title="<?php echo esc_attr__($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite')), 'modern-events-calendar-lite'); ?>">
|
280 |
<option value="1"><?php esc_html_e('Hide organizer', 'modern-events-calendar-lite'); ?></option>
|
379 |
if($action === 'mec_fes_form') return false;
|
380 |
|
381 |
// Get Modern Events Calendar Data
|
382 |
+
$_mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
383 |
|
384 |
// Selected a saved organizer
|
385 |
if(isset($_mec['organizer_id']) and $_mec['organizer_id'])
|
app/features/popup.php
CHANGED
@@ -71,7 +71,7 @@ class MEC_feature_popup extends MEC_base
|
|
71 |
// Verify that the nonce is valid.
|
72 |
if(!wp_verify_nonce($wpnonce, 'mec_shortcode_popup')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
|
73 |
|
74 |
-
$params = (isset($_POST['shortcode']) and is_array($_POST['shortcode'])) ? $_POST['shortcode'] : array();
|
75 |
|
76 |
$skin = isset($params['skin']) ? sanitize_text_field($params['skin']) : 'list';
|
77 |
$title = isset($params['name']) ? sanitize_text_field($params['name']) : ucwords(str_replace('_', ' ', $skin));
|
@@ -270,7 +270,7 @@ class MEC_feature_popup extends MEC_base
|
|
270 |
// Verify that the nonce is valid.
|
271 |
if(!wp_verify_nonce($wpnonce, 'mec_event_popup')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
|
272 |
|
273 |
-
$mec = (isset($_POST['mec']) and is_array($_POST['mec'])) ? $_POST['mec'] : array();
|
274 |
|
275 |
$post_title = isset($mec['title']) ? sanitize_text_field($mec['title']) : '';
|
276 |
$post_content = isset($mec['content']) ? MEC_kses::page($mec['content']) : '';
|
@@ -284,7 +284,7 @@ class MEC_feature_popup extends MEC_base
|
|
284 |
$post_id = wp_insert_post($post);
|
285 |
|
286 |
// Categories
|
287 |
-
$categories = (isset($_POST['tax_input']) and isset($_POST['tax_input']['mec_category']) and is_array($_POST['tax_input']['mec_category'])) ? $_POST['tax_input']['mec_category'] : array();
|
288 |
wp_set_post_terms($post_id, $categories, 'mec_category');
|
289 |
|
290 |
// Color
|
71 |
// Verify that the nonce is valid.
|
72 |
if(!wp_verify_nonce($wpnonce, 'mec_shortcode_popup')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
|
73 |
|
74 |
+
$params = (isset($_POST['shortcode']) and is_array($_POST['shortcode'])) ? $this->main->sanitize_deep_array($_POST['shortcode']) : array();
|
75 |
|
76 |
$skin = isset($params['skin']) ? sanitize_text_field($params['skin']) : 'list';
|
77 |
$title = isset($params['name']) ? sanitize_text_field($params['name']) : ucwords(str_replace('_', ' ', $skin));
|
270 |
// Verify that the nonce is valid.
|
271 |
if(!wp_verify_nonce($wpnonce, 'mec_event_popup')) $this->main->response(array('success'=>0, 'code'=>'NONCE_IS_INVALID'));
|
272 |
|
273 |
+
$mec = (isset($_POST['mec']) and is_array($_POST['mec'])) ? $this->main->sanitize_deep_array($_POST['mec'], 'text', array('content', 'excerpt')) : array();
|
274 |
|
275 |
$post_title = isset($mec['title']) ? sanitize_text_field($mec['title']) : '';
|
276 |
$post_content = isset($mec['content']) ? MEC_kses::page($mec['content']) : '';
|
284 |
$post_id = wp_insert_post($post);
|
285 |
|
286 |
// Categories
|
287 |
+
$categories = (isset($_POST['tax_input']) and isset($_POST['tax_input']['mec_category']) and is_array($_POST['tax_input']['mec_category'])) ? $this->main->sanitize_deep_array($_POST['tax_input']['mec_category']) : array();
|
288 |
wp_set_post_terms($post_id, $categories, 'mec_category');
|
289 |
|
290 |
// Color
|
app/features/popup/settings.php
CHANGED
@@ -169,7 +169,7 @@
|
|
169 |
<option value="default" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Default Style', 'modern-events-calendar-lite'); ?></option>
|
170 |
<option value="modern" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'modern') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Modern Style', 'modern-events-calendar-lite'); ?></option>
|
171 |
<?php do_action('mec_single_style', $settings); ?>
|
172 |
-
<?php if
|
173 |
<option value="builder" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'builder') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Elementor Single Builder', 'modern-events-calendar-lite'); ?></option>
|
174 |
<?php endif; ?>
|
175 |
</select>
|
@@ -317,7 +317,7 @@
|
|
317 |
<li id="mec_sn_<?php echo esc_attr($event_key); ?>" data-id="<?php echo esc_attr($event_key); ?>" class="mec-form-row mec-switcher <?php echo ((isset($settings['sn'][$event_key]) and $settings['sn'][$event_key]) ? 'mec-enabled' : 'mec-disabled'); ?>">
|
318 |
<label class="mec-col-3"><?php echo esc_html($event_option); ?></label>
|
319 |
<div class="mec-col-9">
|
320 |
-
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($event_key); ?>]" value="<?php echo (isset($settings['sn'][$event_key]) ? $settings['sn'][$event_key] : '1'); ?>" />
|
321 |
<label for="mec[settings][sn][<?php echo esc_attr($event_key); ?>]"></label>
|
322 |
</div>
|
323 |
</li>
|
@@ -410,7 +410,7 @@
|
|
410 |
<span><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></span>
|
411 |
</div>
|
412 |
<div class="mec-col-6">
|
413 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" />
|
414 |
</div>
|
415 |
<div class="mec-col-12">
|
416 |
<p><?php esc_attr_e("If you want to select a predefined color skin, you must clear the color of this item", 'modern-events-calendar-lite'); ?></p>
|
@@ -472,7 +472,7 @@
|
|
472 |
<span><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></span>
|
473 |
</div>
|
474 |
<div class="mec-col-6">
|
475 |
-
<input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? $styling['color'] : ''); ?>" data-default-color="" />
|
476 |
</div>
|
477 |
<div class="mec-col-6">
|
478 |
<p><?php esc_attr_e("If you want to select a predefined color skin, you must clear the color of this item", 'modern-events-calendar-lite'); ?></p>
|
169 |
<option value="default" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Default Style', 'modern-events-calendar-lite'); ?></option>
|
170 |
<option value="modern" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'modern') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Modern Style', 'modern-events-calendar-lite'); ?></option>
|
171 |
<?php do_action('mec_single_style', $settings); ?>
|
172 |
+
<?php if(is_plugin_active('mec-single-builder/mec-single-builder.php')): ?>
|
173 |
<option value="builder" <?php echo (isset($settings['single_single_style']) and $settings['single_single_style'] == 'builder') ? 'selected="selected"' : ''; ?>><?php esc_html_e('Elementor Single Builder', 'modern-events-calendar-lite'); ?></option>
|
174 |
<?php endif; ?>
|
175 |
</select>
|
317 |
<li id="mec_sn_<?php echo esc_attr($event_key); ?>" data-id="<?php echo esc_attr($event_key); ?>" class="mec-form-row mec-switcher <?php echo ((isset($settings['sn'][$event_key]) and $settings['sn'][$event_key]) ? 'mec-enabled' : 'mec-disabled'); ?>">
|
318 |
<label class="mec-col-3"><?php echo esc_html($event_option); ?></label>
|
319 |
<div class="mec-col-9">
|
320 |
+
<input class="mec-status" type="hidden" name="mec[settings][sn][<?php echo esc_attr($event_key); ?>]" value="<?php echo (isset($settings['sn'][$event_key]) ? esc_attr($settings['sn'][$event_key]) : '1'); ?>" />
|
321 |
<label for="mec[settings][sn][<?php echo esc_attr($event_key); ?>]"></label>
|
322 |
</div>
|
323 |
</li>
|
410 |
<span><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></span>
|
411 |
</div>
|
412 |
<div class="mec-col-6">
|
413 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? esc_attr($styling['color']) : ''); ?>" data-default-color="" />
|
414 |
</div>
|
415 |
<div class="mec-col-12">
|
416 |
<p><?php esc_attr_e("If you want to select a predefined color skin, you must clear the color of this item", 'modern-events-calendar-lite'); ?></p>
|
472 |
<span><?php esc_html_e('Custom Color Skin', 'modern-events-calendar-lite' ); ?></span>
|
473 |
</div>
|
474 |
<div class="mec-col-6">
|
475 |
+
<input type="text" class="wp-color-picker-field" id="mec_settings_color" name="mec[styling][color]" value="<?php echo (isset($styling['color']) ? esc_attr($styling['color']) : ''); ?>" data-default-color="" />
|
476 |
</div>
|
477 |
<div class="mec-col-6">
|
478 |
<p><?php esc_attr_e("If you want to select a predefined color skin, you must clear the color of this item", 'modern-events-calendar-lite'); ?></p>
|
app/features/popup/shortcode.php
CHANGED
@@ -516,7 +516,7 @@ if(!isset($post_type)) $post_type = NULL;
|
|
516 |
<div class="mec-switcher" id="mec_show_only_past_events_wrapper">
|
517 |
<div>
|
518 |
<label for="mec_show_only_past_events"><?php esc_html_e('Show Only Expired Events', 'modern-events-calendar-lite'); ?></label>
|
519 |
-
<p class="description" style="color: red;"><?php echo sprintf(
|
520 |
</div>
|
521 |
<div>
|
522 |
<input type="hidden" name="shortcode[show_only_past_events]" value="0" />
|
516 |
<div class="mec-switcher" id="mec_show_only_past_events_wrapper">
|
517 |
<div>
|
518 |
<label for="mec_show_only_past_events"><?php esc_html_e('Show Only Expired Events', 'modern-events-calendar-lite'); ?></label>
|
519 |
+
<p class="description" style="color: red;"><?php echo sprintf(esc_html__('It shows %s expired/past events.', 'modern-events-calendar-lite'), '<strong>'.esc_html__('only', 'modern-events-calendar-lite').'</strong>'); ?></p>
|
520 |
</div>
|
521 |
<div>
|
522 |
<input type="hidden" name="shortcode[show_only_past_events]" value="0" />
|
app/features/profile.php
CHANGED
@@ -71,7 +71,7 @@ class MEC_feature_profile extends MEC_base
|
|
71 |
if(!is_user_logged_in())
|
72 |
{
|
73 |
// Show message
|
74 |
-
$message = sprintf(
|
75 |
|
76 |
ob_start();
|
77 |
include MEC::import('app.features.profile.message', true, true);
|
@@ -82,7 +82,7 @@ class MEC_feature_profile extends MEC_base
|
|
82 |
if(!$this->getPRO())
|
83 |
{
|
84 |
// Show message
|
85 |
-
$message = sprintf(
|
86 |
|
87 |
ob_start();
|
88 |
include MEC::import('app.features.profile.message', true, true);
|
71 |
if(!is_user_logged_in())
|
72 |
{
|
73 |
// Show message
|
74 |
+
$message = sprintf(esc_html__('Please %s/%s in order to see your bookings / profile.', '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>');
|
75 |
|
76 |
ob_start();
|
77 |
include MEC::import('app.features.profile.message', true, true);
|
82 |
if(!$this->getPRO())
|
83 |
{
|
84 |
// Show message
|
85 |
+
$message = sprintf(esc_html__('To use this feature you should upgrade to %s first.', 'modern-events-calendar-lite'), '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank">'.esc_html__('MEC Pro', 'modern-events-calendar-lite').'</a>');
|
86 |
|
87 |
ob_start();
|
88 |
include MEC::import('app.features.profile.message', true, true);
|
app/features/profile/profile.php
CHANGED
@@ -158,7 +158,7 @@ $id = 1;
|
|
158 |
</td>
|
159 |
<td>
|
160 |
<a class="mec-booking-number-of-attendees" href="#mec_profile_booking_<?php echo esc_attr($ID); ?>">
|
161 |
-
|
162 |
</a>
|
163 |
</td>
|
164 |
<td>
|
@@ -222,10 +222,10 @@ $id = 1;
|
|
222 |
if(!is_numeric($attendee_i)) continue;
|
223 |
|
224 |
echo '<div class="mec-booking-attendees-head-content">';
|
225 |
-
echo '<span class="mec-booking-attendee-id">'
|
226 |
-
echo '<span class="mec-booking-attendee-name">'.
|
227 |
-
echo '<span class="mec-booking-attendee-email">'
|
228 |
-
echo '<span class="mec-booking-attendee-ticket">'.((isset($event->tickets[$attendee['id']]) ? $event->tickets[$attendee['id']]['name'] : '').' '.(isset($event->tickets[$attendee['id']]) ? $event->tickets[$attendee['id']]['price_label'] : '')).'</span>';
|
229 |
|
230 |
// Ticket Variations
|
231 |
echo '<span class="mec-booking-attendee-ticket-variations">';
|
@@ -239,7 +239,7 @@ $id = 1;
|
|
239 |
$variation_title = (isset($ticket_variations[$variation_id]) and isset($ticket_variations[$variation_id]['title'])) ? $ticket_variations[$variation_id]['title'] : '';
|
240 |
if(!trim($variation_title)) continue;
|
241 |
|
242 |
-
echo '<span class="mec-booking-attendee-ticket-variations-title">'.' + '
|
243 |
}
|
244 |
}
|
245 |
else
|
158 |
</td>
|
159 |
<td>
|
160 |
<a class="mec-booking-number-of-attendees" href="#mec_profile_booking_<?php echo esc_attr($ID); ?>">
|
161 |
+
<i class="mec-sl-eye"></i> <?php echo ((is_array($transaction) and isset($transaction['tickets'])) ? count($transaction['tickets']) : 0); ?>
|
162 |
</a>
|
163 |
</td>
|
164 |
<td>
|
222 |
if(!is_numeric($attendee_i)) continue;
|
223 |
|
224 |
echo '<div class="mec-booking-attendees-head-content">';
|
225 |
+
echo '<span class="mec-booking-attendee-id">'.esc_html($person_id).'</span>';
|
226 |
+
echo '<span class="mec-booking-attendee-name">'.(isset($attendee['_name']) ? esc_html($attendee['_name']) : esc_html($attendee['name'])).'</span>';
|
227 |
+
echo '<span class="mec-booking-attendee-email">'.esc_html($attendee['email']).'</span>';
|
228 |
+
echo '<span class="mec-booking-attendee-ticket">'.((isset($event->tickets[$attendee['id']]) ? esc_html($event->tickets[$attendee['id']]['name']) : '').' '.(isset($event->tickets[$attendee['id']]) ? esc_html($event->tickets[$attendee['id']]['price_label']) : '')).'</span>';
|
229 |
|
230 |
// Ticket Variations
|
231 |
echo '<span class="mec-booking-attendee-ticket-variations">';
|
239 |
$variation_title = (isset($ticket_variations[$variation_id]) and isset($ticket_variations[$variation_id]['title'])) ? $ticket_variations[$variation_id]['title'] : '';
|
240 |
if(!trim($variation_title)) continue;
|
241 |
|
242 |
+
echo '<span class="mec-booking-attendee-ticket-variations-title">'.' + '.esc_html($variation_title).' ('.esc_html($variation_count).')'.'</span>';
|
243 |
}
|
244 |
}
|
245 |
else
|
app/features/schema.php
CHANGED
@@ -169,7 +169,7 @@ class MEC_feature_schema extends MEC_base
|
|
169 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return false;
|
170 |
|
171 |
// Get Modern Events Calendar Data
|
172 |
-
$_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
173 |
|
174 |
$event_status = isset($_mec['event_status']) ? sanitize_text_field($_mec['event_status']) : 'EventScheduled';
|
175 |
if(!in_array($event_status, array('EventScheduled', 'EventPostponed', 'EventCancelled', 'EventMovedOnline'))) $event_status = 'EventScheduled';
|
169 |
if(defined('DOING_AUTOSAVE') and DOING_AUTOSAVE) return false;
|
170 |
|
171 |
// Get Modern Events Calendar Data
|
172 |
+
$_mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
173 |
|
174 |
$event_status = isset($_mec['event_status']) ? sanitize_text_field($_mec['event_status']) : 'EventScheduled';
|
175 |
if(!in_array($event_status, array('EventScheduled', 'EventPostponed', 'EventCancelled', 'EventMovedOnline'))) $event_status = 'EventScheduled';
|
app/features/search.php
CHANGED
@@ -129,7 +129,7 @@ class MEC_feature_search extends MEC_base
|
|
129 |
break;
|
130 |
}
|
131 |
|
132 |
-
$out .= '<div class="mec-dropdown-search"><i class="mec-sl-'
|
133 |
$args = array(
|
134 |
'show_option_none' => $taxonomy_name,
|
135 |
'option_none_value' => '',
|
129 |
break;
|
130 |
}
|
131 |
|
132 |
+
$out .= '<div class="mec-dropdown-search"><i class="mec-sl-'.esc_attr($icon).'"></i>';
|
133 |
$args = array(
|
134 |
'show_option_none' => $taxonomy_name,
|
135 |
'option_none_value' => '',
|
app/features/search_bar/search_bar.php
CHANGED
@@ -7,7 +7,7 @@ $settings = $this->main->get_settings();
|
|
7 |
$modern_type = '';
|
8 |
if(isset($settings['search_bar_modern_type']) && $settings['search_bar_modern_type'] == '1') $modern_type = 'mec-modern-search-bar ';
|
9 |
|
10 |
-
$output = '<div class="'
|
11 |
if((isset($settings['search_bar_category']) && $settings['search_bar_category'] == '1') || (isset($settings['search_bar_location']) && $settings['search_bar_location'] == '1') || (isset($settings['search_bar_organizer']) && $settings['search_bar_organizer'] == '1') || (isset($settings['search_bar_speaker']) && $settings['search_bar_speaker'] == '1') || (isset($settings['search_bar_tag']) && $settings['search_bar_tag'] == '1') || (isset($settings['search_bar_label']) && $settings['search_bar_label'] == '1'))
|
12 |
{
|
13 |
$output .= '<div class="mec-dropdown-wrap">';
|
7 |
$modern_type = '';
|
8 |
if(isset($settings['search_bar_modern_type']) && $settings['search_bar_modern_type'] == '1') $modern_type = 'mec-modern-search-bar ';
|
9 |
|
10 |
+
$output = '<div class="'.sanitize_html_class($modern_type).' mec-wrap mec-search-bar-wrap"><form class="mec-search-form mec-totalcal-box" role="search" method="get" id="searchform" action="'.get_bloginfo('url').'">';
|
11 |
if((isset($settings['search_bar_category']) && $settings['search_bar_category'] == '1') || (isset($settings['search_bar_location']) && $settings['search_bar_location'] == '1') || (isset($settings['search_bar_organizer']) && $settings['search_bar_organizer'] == '1') || (isset($settings['search_bar_speaker']) && $settings['search_bar_speaker'] == '1') || (isset($settings['search_bar_tag']) && $settings['search_bar_tag'] == '1') || (isset($settings['search_bar_label']) && $settings['search_bar_label'] == '1'))
|
12 |
{
|
13 |
$output .= '<div class="mec-dropdown-wrap">';
|
app/features/search_bar/search_result.php
CHANGED
@@ -9,7 +9,7 @@ $start_ampm = get_post_meta(get_the_ID(), 'mec_start_time_ampm', true);
|
|
9 |
$end_hour = get_post_meta(get_the_ID(), 'mec_end_time_hour', true);
|
10 |
$end_min = (get_post_meta(get_the_ID(), 'mec_end_time_minutes', true) < '10') ? '0' . get_post_meta(get_the_ID(), 'mec_end_time_minutes', true) : get_post_meta(get_the_ID(), 'mec_end_time_minutes', true);
|
11 |
$end_ampm = get_post_meta(get_the_ID(), 'mec_end_time_ampm', true);
|
12 |
-
$time = (get_post_meta(get_the_ID(), 'mec_allday', true) == '1' ) ? $this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : $start_hour . ':' .
|
13 |
?>
|
14 |
<article class="mec-search-bar-result">
|
15 |
<div class="mec-event-list-search-bar-date mec-color">
|
9 |
$end_hour = get_post_meta(get_the_ID(), 'mec_end_time_hour', true);
|
10 |
$end_min = (get_post_meta(get_the_ID(), 'mec_end_time_minutes', true) < '10') ? '0' . get_post_meta(get_the_ID(), 'mec_end_time_minutes', true) : get_post_meta(get_the_ID(), 'mec_end_time_minutes', true);
|
11 |
$end_ampm = get_post_meta(get_the_ID(), 'mec_end_time_ampm', true);
|
12 |
+
$time = (get_post_meta(get_the_ID(), 'mec_allday', true) == '1' ) ? $this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : $start_hour . ':' . $start_min . ' ' . $start_ampm . ' - ' . $end_hour . ':' . $end_min . ' ' . $end_ampm;
|
13 |
?>
|
14 |
<article class="mec-search-bar-result">
|
15 |
<div class="mec-event-list-search-bar-date mec-color">
|
app/features/speakers.php
CHANGED
@@ -74,16 +74,16 @@ class MEC_feature_speakers extends MEC_base
|
|
74 |
'labels'=>array(
|
75 |
'name'=>$plural_label,
|
76 |
'singular_name'=>$singular_label,
|
77 |
-
'all_items'=>sprintf(
|
78 |
-
'edit_item'=>sprintf(
|
79 |
-
'view_item'=>sprintf(
|
80 |
-
'update_item'=>sprintf(
|
81 |
-
'add_new_item'=>sprintf(
|
82 |
-
'new_item_name'=>sprintf(
|
83 |
-
'popular_items'=>sprintf(
|
84 |
-
'search_items'=>sprintf(
|
85 |
-
'back_to_items'=>sprintf(
|
86 |
-
'not_found'=>sprintf(
|
87 |
),
|
88 |
'rewrite'=>array('slug'=>'events-speaker'),
|
89 |
'public'=>false,
|
@@ -255,11 +255,11 @@ class MEC_feature_speakers extends MEC_base
|
|
255 |
$job_title = isset($_POST['job_title']) ? sanitize_text_field($_POST['job_title']) : '';
|
256 |
$tel = isset($_POST['tel']) ? sanitize_text_field($_POST['tel']) : '';
|
257 |
$email = isset($_POST['email']) ? sanitize_text_field($_POST['email']) : '';
|
258 |
-
$website
|
259 |
-
$facebook = (isset($_POST['facebook']) and trim($_POST['facebook'])) ? (
|
260 |
-
$twitter = (isset($_POST['twitter']) and trim($_POST['twitter'])) ? (
|
261 |
-
$instagram = (isset($_POST['instagram']) and trim($_POST['instagram'])) ? (
|
262 |
-
$linkedin = (isset($_POST['linkedin']) and trim($_POST['linkedin'])) ? (
|
263 |
$thumbnail = isset($_POST['thumbnail']) ? sanitize_text_field($_POST['thumbnail']) : '';
|
264 |
|
265 |
update_term_meta($term_id, 'job_title', $job_title);
|
@@ -350,7 +350,7 @@ class MEC_feature_speakers extends MEC_base
|
|
350 |
|
351 |
if(!trim($content))
|
352 |
{
|
353 |
-
echo '<p class="mec-error" id="mec-speaker-error-' . $key . '">' . esc_html__('Sorry, You must insert speaker name!', 'modern-events-calendar-lite') . '</p>';
|
354 |
exit;
|
355 |
}
|
356 |
|
@@ -360,7 +360,7 @@ class MEC_feature_speakers extends MEC_base
|
|
360 |
{
|
361 |
if(term_exists($term, 'mec_speaker'))
|
362 |
{
|
363 |
-
echo '<p class="mec-error" id="mec-speaker-error-' . $key . '">' . esc_html__("Sorry, {$term} already exists!", 'modern-events-calendar-lite') . '</p>';
|
364 |
exit;
|
365 |
}
|
366 |
}
|
@@ -371,9 +371,9 @@ class MEC_feature_speakers extends MEC_base
|
|
371 |
$speaker_terms = get_terms(array('taxonomy'=>'mec_speaker', 'hide_empty'=>false));
|
372 |
foreach($speaker_terms as $speaker_term)
|
373 |
{
|
374 |
-
$speakers .= '<label for="mec_fes_speakers'
|
375 |
-
<input type="checkbox" name="mec[speakers]['
|
376 |
-
'
|
377 |
</label>';
|
378 |
}
|
379 |
|
74 |
'labels'=>array(
|
75 |
'name'=>$plural_label,
|
76 |
'singular_name'=>$singular_label,
|
77 |
+
'all_items'=>sprintf(esc_html__('All %s', 'modern-events-calendar-lite'), $plural_label),
|
78 |
+
'edit_item'=>sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
|
79 |
+
'view_item'=>sprintf(esc_html__('View %s', 'modern-events-calendar-lite'), $singular_label),
|
80 |
+
'update_item'=>sprintf(esc_html__('Update %s', 'modern-events-calendar-lite'), $singular_label),
|
81 |
+
'add_new_item'=>sprintf(esc_html__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
|
82 |
+
'new_item_name'=>sprintf(esc_html__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
|
83 |
+
'popular_items'=>sprintf(esc_html__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
|
84 |
+
'search_items'=>sprintf(esc_html__('Search %s', 'modern-events-calendar-lite'), $plural_label),
|
85 |
+
'back_to_items'=>sprintf(esc_html__('← Back to %s', 'modern-events-calendar-lite'), $plural_label),
|
86 |
+
'not_found'=>sprintf(esc_html__('no %s found.', 'modern-events-calendar-lite'), strtolower($plural_label)),
|
87 |
),
|
88 |
'rewrite'=>array('slug'=>'events-speaker'),
|
89 |
'public'=>false,
|
255 |
$job_title = isset($_POST['job_title']) ? sanitize_text_field($_POST['job_title']) : '';
|
256 |
$tel = isset($_POST['tel']) ? sanitize_text_field($_POST['tel']) : '';
|
257 |
$email = isset($_POST['email']) ? sanitize_text_field($_POST['email']) : '';
|
258 |
+
$website = (isset($_POST['website']) and trim($_POST['website'])) ? esc_url($_POST['website']) : '';
|
259 |
+
$facebook = (isset($_POST['facebook']) and trim($_POST['facebook'])) ? esc_url($_POST['facebook']) : '';
|
260 |
+
$twitter = (isset($_POST['twitter']) and trim($_POST['twitter'])) ? esc_url($_POST['twitter']) : '';
|
261 |
+
$instagram = (isset($_POST['instagram']) and trim($_POST['instagram'])) ? esc_url($_POST['instagram']) : '';
|
262 |
+
$linkedin = (isset($_POST['linkedin']) and trim($_POST['linkedin'])) ? esc_url($_POST['linkedin']) : '';
|
263 |
$thumbnail = isset($_POST['thumbnail']) ? sanitize_text_field($_POST['thumbnail']) : '';
|
264 |
|
265 |
update_term_meta($term_id, 'job_title', $job_title);
|
350 |
|
351 |
if(!trim($content))
|
352 |
{
|
353 |
+
echo '<p class="mec-error" id="mec-speaker-error-' . esc_attr($key) . '">' . esc_html__('Sorry, You must insert speaker name!', 'modern-events-calendar-lite') . '</p>';
|
354 |
exit;
|
355 |
}
|
356 |
|
360 |
{
|
361 |
if(term_exists($term, 'mec_speaker'))
|
362 |
{
|
363 |
+
echo '<p class="mec-error" id="mec-speaker-error-' . esc_attr($key) . '">' . esc_html__("Sorry, {$term} already exists!", 'modern-events-calendar-lite') . '</p>';
|
364 |
exit;
|
365 |
}
|
366 |
}
|
371 |
$speaker_terms = get_terms(array('taxonomy'=>'mec_speaker', 'hide_empty'=>false));
|
372 |
foreach($speaker_terms as $speaker_term)
|
373 |
{
|
374 |
+
$speakers .= '<label for="mec_fes_speakers'.esc_attr($speaker_term->term_id).'">
|
375 |
+
<input type="checkbox" name="mec[speakers]['.esc_attr($speaker_term->term_id).']" id="mec_fes_speakers'.esc_attr($speaker_term->term_id).'" value="1">
|
376 |
+
'.esc_html($speaker_term->name).'
|
377 |
</label>';
|
378 |
}
|
379 |
|
app/features/tag.php
CHANGED
@@ -66,16 +66,16 @@ class MEC_feature_tag extends MEC_base
|
|
66 |
'labels'=>array(
|
67 |
'name'=>$plural_label,
|
68 |
'singular_name'=>$singular_label,
|
69 |
-
'all_items'=>sprintf(
|
70 |
-
'edit_item'=>sprintf(
|
71 |
-
'view_item'=>sprintf(
|
72 |
-
'update_item'=>sprintf(
|
73 |
-
'add_new_item'=>sprintf(
|
74 |
-
'new_item_name'=>sprintf(
|
75 |
-
'popular_items'=>sprintf(
|
76 |
-
'search_items'=>sprintf(
|
77 |
-
'back_to_items'=>sprintf(
|
78 |
-
'not_found'=>sprintf(
|
79 |
),
|
80 |
'rewrite'=>array('slug'=>'events-tag'),
|
81 |
'public'=>true,
|
66 |
'labels'=>array(
|
67 |
'name'=>$plural_label,
|
68 |
'singular_name'=>$singular_label,
|
69 |
+
'all_items'=>sprintf(esc_html__('All %s', 'modern-events-calendar-lite'), $plural_label),
|
70 |
+
'edit_item'=>sprintf(esc_html__('Edit %s', 'modern-events-calendar-lite'), $singular_label),
|
71 |
+
'view_item'=>sprintf(esc_html__('View %s', 'modern-events-calendar-lite'), $singular_label),
|
72 |
+
'update_item'=>sprintf(esc_html__('Update %s', 'modern-events-calendar-lite'), $singular_label),
|
73 |
+
'add_new_item'=>sprintf(esc_html__('Add New %s', 'modern-events-calendar-lite'), $singular_label),
|
74 |
+
'new_item_name'=>sprintf(esc_html__('New %s Name', 'modern-events-calendar-lite'), $singular_label),
|
75 |
+
'popular_items'=>sprintf(esc_html__('Popular %s', 'modern-events-calendar-lite'), $plural_label),
|
76 |
+
'search_items'=>sprintf(esc_html__('Search %s', 'modern-events-calendar-lite'), $plural_label),
|
77 |
+
'back_to_items'=>sprintf(esc_html__('← Back to %s', 'modern-events-calendar-lite'), $plural_label),
|
78 |
+
'not_found'=>sprintf(esc_html__('no %s found.', 'modern-events-calendar-lite'), strtolower($plural_label)),
|
79 |
),
|
80 |
'rewrite'=>array('slug'=>'events-tag'),
|
81 |
'public'=>true,
|
app/features/userevents.php
CHANGED
@@ -55,10 +55,10 @@ class MEC_feature_userevents extends MEC_base
|
|
55 |
if(!is_user_logged_in())
|
56 |
{
|
57 |
// Show message
|
58 |
-
$message = sprintf(
|
59 |
|
60 |
return '<div class="mec-userevents-message">
|
61 |
-
<p>'
|
62 |
</div>';
|
63 |
}
|
64 |
|
55 |
if(!is_user_logged_in())
|
56 |
{
|
57 |
// Show message
|
58 |
+
$message = sprintf(esc_html__('Please %s/%s in order to see your own 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>');
|
59 |
|
60 |
return '<div class="mec-userevents-message">
|
61 |
+
<p>'.MEC_kses::element($message).'</p>
|
62 |
</div>';
|
63 |
}
|
64 |
|
app/features/wc.php
CHANGED
@@ -110,7 +110,7 @@ class MEC_feature_wc extends MEC_base
|
|
110 |
$start_datetime = date_i18n($datetime_format, $dates[0]);
|
111 |
$end_datetime = date_i18n($datetime_format, $dates[1]);
|
112 |
|
113 |
-
$display_value = sprintf(
|
114 |
}
|
115 |
elseif($meta->key == 'mec_other_dates')
|
116 |
{
|
@@ -133,7 +133,7 @@ class MEC_feature_wc extends MEC_base
|
|
133 |
$start_datetime = date_i18n($datetime_format, $timestamps[0]);
|
134 |
$end_datetime = date_i18n($datetime_format, $timestamps[1]);
|
135 |
|
136 |
-
$date_values[] = sprintf(
|
137 |
}
|
138 |
|
139 |
$display_value = implode('<br>', $date_values);
|
@@ -218,8 +218,8 @@ class MEC_feature_wc extends MEC_base
|
|
218 |
if(!isset($availability[$ticket_id]) or (isset($availability[$ticket_id]) and $availability[$ticket_id] != -1 and $availability[$ticket_id] < $quantity))
|
219 |
{
|
220 |
$printed = true;
|
221 |
-
if($availability[$ticket_id] == '0') $errors->add('validation', sprintf(
|
222 |
-
else $errors->add('validation', sprintf(
|
223 |
}
|
224 |
}
|
225 |
|
@@ -244,8 +244,8 @@ class MEC_feature_wc extends MEC_base
|
|
244 |
// Ticket is not available
|
245 |
if(!isset($availability[$ticket_id]) or (isset($availability[$ticket_id]) and $availability[$ticket_id] != -1 and $availability[$ticket_id] < $quantity))
|
246 |
{
|
247 |
-
if($availability[$ticket_id] == '0') $errors->add('validation', sprintf(
|
248 |
-
else $errors->add('validation', sprintf(
|
249 |
}
|
250 |
}
|
251 |
}
|
110 |
$start_datetime = date_i18n($datetime_format, $dates[0]);
|
111 |
$end_datetime = date_i18n($datetime_format, $dates[1]);
|
112 |
|
113 |
+
$display_value = sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $start_datetime, $end_datetime);
|
114 |
}
|
115 |
elseif($meta->key == 'mec_other_dates')
|
116 |
{
|
133 |
$start_datetime = date_i18n($datetime_format, $timestamps[0]);
|
134 |
$end_datetime = date_i18n($datetime_format, $timestamps[1]);
|
135 |
|
136 |
+
$date_values[] = sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $start_datetime, $end_datetime);
|
137 |
}
|
138 |
|
139 |
$display_value = implode('<br>', $date_values);
|
218 |
if(!isset($availability[$ticket_id]) or (isset($availability[$ticket_id]) and $availability[$ticket_id] != -1 and $availability[$ticket_id] < $quantity))
|
219 |
{
|
220 |
$printed = true;
|
221 |
+
if($availability[$ticket_id] == '0') $errors->add('validation', sprintf(esc_html__('%s ticket is sold out!', 'modern-events-calendar-lite'), $tickets[$ticket_id]['name']));
|
222 |
+
else $errors->add('validation', sprintf(esc_html__('Only %s slots remained for %s ticket so you cannot book %s ones.', 'modern-events-calendar-lite'), $availability[$ticket_id], $tickets[$ticket_id]['name'], $quantity));
|
223 |
}
|
224 |
}
|
225 |
|
244 |
// Ticket is not available
|
245 |
if(!isset($availability[$ticket_id]) or (isset($availability[$ticket_id]) and $availability[$ticket_id] != -1 and $availability[$ticket_id] < $quantity))
|
246 |
{
|
247 |
+
if($availability[$ticket_id] == '0') $errors->add('validation', sprintf(esc_html__('%s ticket is sold out!', 'modern-events-calendar-lite'), $tickets[$ticket_id]['name']));
|
248 |
+
else $errors->add('validation', sprintf(esc_html__('Only %s slots remained for %s ticket so you cannot book %s ones.', 'modern-events-calendar-lite'), $availability[$ticket_id], $tickets[$ticket_id]['name'], $quantity));
|
249 |
}
|
250 |
}
|
251 |
}
|
app/libraries/book.php
CHANGED
@@ -92,7 +92,7 @@ class MEC_book extends MEC_base
|
|
92 |
$v_price = (isset($ticket_variation['price']) and trim($ticket_variation['price']) != '') ? $ticket_variation['price'] : 0;
|
93 |
|
94 |
$variation_amount = $v_price*$variation_count;
|
95 |
-
$variation_title = $ticket_variation['title'].' ('
|
96 |
|
97 |
// Add To Total
|
98 |
$date_variations_amount += $variation_amount;
|
@@ -169,7 +169,7 @@ class MEC_book extends MEC_base
|
|
169 |
}
|
170 |
|
171 |
// Ticket Details
|
172 |
-
$details[] = array('amount'=>$total_tickets_amount, 'description'=>sprintf(
|
173 |
|
174 |
// Variation Details
|
175 |
foreach($variation_details as $variation_detail) $details[] = $variation_detail;
|
@@ -1111,7 +1111,7 @@ class MEC_book extends MEC_base
|
|
1111 |
if(!$transaction) return NULL;
|
1112 |
|
1113 |
$book = $this->getBook();
|
1114 |
-
return '<a href="'
|
1115 |
}
|
1116 |
|
1117 |
public function get_total_attendees($book_id)
|
92 |
$v_price = (isset($ticket_variation['price']) and trim($ticket_variation['price']) != '') ? $ticket_variation['price'] : 0;
|
93 |
|
94 |
$variation_amount = $v_price*$variation_count;
|
95 |
+
$variation_title = $ticket_variation['title'].' ('.esc_html($variation_count).')';
|
96 |
|
97 |
// Add To Total
|
98 |
$date_variations_amount += $variation_amount;
|
169 |
}
|
170 |
|
171 |
// Ticket Details
|
172 |
+
$details[] = array('amount'=>$total_tickets_amount, 'description'=>sprintf(esc_html__('%s Price', 'modern-events-calendar-lite'), $this->main->m('tickets', esc_html__('Tickets', 'modern-events-calendar-lite'))), 'type'=>'tickets');
|
173 |
|
174 |
// Variation Details
|
175 |
foreach($variation_details as $variation_detail) $details[] = $variation_detail;
|
1111 |
if(!$transaction) return NULL;
|
1112 |
|
1113 |
$book = $this->getBook();
|
1114 |
+
return '<a href="'.esc_url($book->get_invoice_link($transaction)).'" target="_blank">'.esc_html__('Download Invoice', 'modern-events-calendar-lite').'</a>';
|
1115 |
}
|
1116 |
|
1117 |
public function get_total_attendees($book_id)
|
app/libraries/db.php
CHANGED
@@ -119,7 +119,7 @@ class MEC_db extends MEC_base
|
|
119 |
}
|
120 |
|
121 |
// Generate the condition
|
122 |
-
if(trim($condition) == '') $condition = "`$field`='$value'";
|
123 |
|
124 |
// Generate the query
|
125 |
$query = "SELECT $fields FROM `#__$table` WHERE $condition";
|
119 |
}
|
120 |
|
121 |
// Generate the condition
|
122 |
+
if(trim($condition) == '') $condition = "`$field`='".esc_sql($value)."'";
|
123 |
|
124 |
// Generate the query
|
125 |
$query = "SELECT $fields FROM `#__$table` WHERE $condition";
|
app/libraries/eventFields.php
CHANGED
@@ -75,7 +75,7 @@ class MEC_eventFields extends MEC_base
|
|
75 |
<textarea id="<?php echo esc_attr($id_prefix); ?><?php echo esc_attr($j); ?>" name="<?php echo esc_attr($name_prefix); ?>[fields][<?php echo esc_attr($j); ?>]" placeholder="<?php esc_attr($event_field_name); ?>" <?php if($mandatory_status and isset($event_field['mandatory']) and $event_field['mandatory']) echo 'required'; ?>><?php echo esc_textarea($value); ?></textarea>
|
76 |
|
77 |
<?php /** Textarea (Editor) **/ elseif($event_field['type'] == 'textarea' and (isset($event_field['editor']) and $event_field['editor'])): wp_editor($value, $id_prefix.$j, array(
|
78 |
-
'textarea_name' => $name_prefix.'[fields]['
|
79 |
'teeny' => true,
|
80 |
'media_buttons' => false,
|
81 |
)); ?>
|
75 |
<textarea id="<?php echo esc_attr($id_prefix); ?><?php echo esc_attr($j); ?>" name="<?php echo esc_attr($name_prefix); ?>[fields][<?php echo esc_attr($j); ?>]" placeholder="<?php esc_attr($event_field_name); ?>" <?php if($mandatory_status and isset($event_field['mandatory']) and $event_field['mandatory']) echo 'required'; ?>><?php echo esc_textarea($value); ?></textarea>
|
76 |
|
77 |
<?php /** Textarea (Editor) **/ elseif($event_field['type'] == 'textarea' and (isset($event_field['editor']) and $event_field['editor'])): wp_editor($value, $id_prefix.$j, array(
|
78 |
+
'textarea_name' => $name_prefix.'[fields]['.esc_attr($j).']',
|
79 |
'teeny' => true,
|
80 |
'media_buttons' => false,
|
81 |
)); ?>
|
app/libraries/factory.php
CHANGED
@@ -214,7 +214,7 @@ class MEC_factory extends MEC_base
|
|
214 |
{
|
215 |
if(!$this->getPRO())
|
216 |
{
|
217 |
-
$upgrade = '<a href="'
|
218 |
$links[] = $upgrade;
|
219 |
}
|
220 |
}
|
@@ -230,12 +230,12 @@ class MEC_factory extends MEC_base
|
|
230 |
*/
|
231 |
public function load_plugin_action_links($links)
|
232 |
{
|
233 |
-
$settings = '<a href="'
|
234 |
array_unshift($links, $settings);
|
235 |
|
236 |
if(!$this->getPRO())
|
237 |
{
|
238 |
-
$upgrade = '<a href="'
|
239 |
array_unshift($links, $upgrade);
|
240 |
}
|
241 |
|
214 |
{
|
215 |
if(!$this->getPRO())
|
216 |
{
|
217 |
+
$upgrade = '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank"><b>'._x('Upgrade to Pro Version', 'plugin link', 'modern-events-calendar-lite').'</b></a>';
|
218 |
$links[] = $upgrade;
|
219 |
}
|
220 |
}
|
230 |
*/
|
231 |
public function load_plugin_action_links($links)
|
232 |
{
|
233 |
+
$settings = '<a href="'.esc_url($this->main->add_qs_vars(array('page'=>'MEC-settings'), $this->main->URL('admin').'admin.php')).'">'._x('Settings', 'plugin link', 'modern-events-calendar-lite').'</a>';
|
234 |
array_unshift($links, $settings);
|
235 |
|
236 |
if(!$this->getPRO())
|
237 |
{
|
238 |
+
$upgrade = '<a href="'.esc_url($this->main->get_pro_link()).'" target="_blank"><b>'._x('Upgrade', 'plugin link', 'modern-events-calendar-lite').'</b></a>';
|
239 |
array_unshift($links, $upgrade);
|
240 |
}
|
241 |
|
app/libraries/feed.php
CHANGED
@@ -124,7 +124,7 @@ class MEC_feed extends MEC_base
|
|
124 |
$t = preg_split('/[ \t]/', trim($enc[2]));
|
125 |
$type = $t[0];
|
126 |
|
127 |
-
$enclosure .= apply_filters('rss_enclosure', '<enclosure url="'.trim(htmlspecialchars($enc[0])).'" length="'.trim($enc[1]).'" type="'
|
128 |
}
|
129 |
}
|
130 |
|
124 |
$t = preg_split('/[ \t]/', trim($enc[2]));
|
125 |
$type = $t[0];
|
126 |
|
127 |
+
$enclosure .= apply_filters('rss_enclosure', '<enclosure url="'.trim(htmlspecialchars($enc[0])).'" length="'.esc_attr(trim($enc[1])).'" type="'.esc_attr($type).'" />'."\n");
|
128 |
}
|
129 |
}
|
130 |
|
app/libraries/hourlyschedule.php
CHANGED
@@ -43,7 +43,7 @@ class MEC_hourlyschedule extends MEC_base
|
|
43 |
<div id="<?php echo esc_attr($prefix); ?>mec_meta_box_hourly_schedule_days">
|
44 |
<?php $d = 0; foreach($hourly_schedules as $day): ?>
|
45 |
<div id="<?php echo esc_attr($prefix); ?>mec_meta_box_hourly_schedule_day_<?php echo esc_attr($d); ?>">
|
46 |
-
<h4><?php echo isset($day['title']) ? esc_html($day['title']) : sprintf(
|
47 |
<div id="<?php echo esc_attr($prefix); ?>mec_meta_box_hourly_schedule_form<?php echo esc_attr($d); ?>">
|
48 |
<div class="mec-form-row">
|
49 |
<div class="mec-col-1"><label for="<?php echo esc_attr($prefix); ?>mec_add_hourly_schedule_day<?php echo esc_attr($d); ?>_title"><?php echo esc_html__('Title', 'modern-events-calendar-lite'); ?></label>
|
43 |
<div id="<?php echo esc_attr($prefix); ?>mec_meta_box_hourly_schedule_days">
|
44 |
<?php $d = 0; foreach($hourly_schedules as $day): ?>
|
45 |
<div id="<?php echo esc_attr($prefix); ?>mec_meta_box_hourly_schedule_day_<?php echo esc_attr($d); ?>">
|
46 |
+
<h4><?php echo isset($day['title']) ? esc_html($day['title']) : sprintf(esc_html__('Day %s', 'modern-events-calendar-lite'), $d + 1); ?></h4>
|
47 |
<div id="<?php echo esc_attr($prefix); ?>mec_meta_box_hourly_schedule_form<?php echo esc_attr($d); ?>">
|
48 |
<div class="mec-form-row">
|
49 |
<div class="mec-col-1"><label for="<?php echo esc_attr($prefix); ?>mec_add_hourly_schedule_day<?php echo esc_attr($d); ?>_title"><?php echo esc_html__('Title', 'modern-events-calendar-lite'); ?></label>
|
app/libraries/kses.php
CHANGED
@@ -74,6 +74,7 @@ class MEC_kses extends MEC_base
|
|
74 |
'version' => 1,
|
75 |
'xml:space' => 1,
|
76 |
'xmlns:xlink' => 1,
|
|
|
77 |
);
|
78 |
|
79 |
public function __construct()
|
@@ -158,10 +159,21 @@ class MEC_kses extends MEC_base
|
|
158 |
|
159 |
public static function tags($tags, $context)
|
160 |
{
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
if(in_array($context, array('form', 'page', 'full')))
|
167 |
{
|
74 |
'version' => 1,
|
75 |
'xml:space' => 1,
|
76 |
'xmlns:xlink' => 1,
|
77 |
+
'onkeydown' => 1,
|
78 |
);
|
79 |
|
80 |
public function __construct()
|
159 |
|
160 |
public static function tags($tags, $context)
|
161 |
{
|
162 |
+
foreach(array(
|
163 |
+
'svg',
|
164 |
+
'path',
|
165 |
+
'div',
|
166 |
+
'span',
|
167 |
+
'ul',
|
168 |
+
'li',
|
169 |
+
'a',
|
170 |
+
'button',
|
171 |
+
'dt',
|
172 |
+
'dl',
|
173 |
+
) as $tag)
|
174 |
+
{
|
175 |
+
$tags[$tag] = self::$allowed_attrs;
|
176 |
+
}
|
177 |
|
178 |
if(in_array($context, array('form', 'page', 'full')))
|
179 |
{
|
app/libraries/main.php
CHANGED
@@ -680,11 +680,11 @@ class MEC_main extends MEC_base
|
|
680 |
|
681 |
$booking = apply_filters('mec-settings-item-booking', array(
|
682 |
$this->m('booking', esc_html__('Booking', 'modern-events-calendar-lite')) => 'booking_option',
|
683 |
-
sprintf(
|
684 |
esc_html__('Coupons', 'modern-events-calendar-lite') => 'coupon_option',
|
685 |
esc_html__('Taxes / Fees', 'modern-events-calendar-lite') => 'taxes_option',
|
686 |
esc_html__('Ticket Variations & Options', 'modern-events-calendar-lite') => 'ticket_variations_option',
|
687 |
-
sprintf(
|
688 |
esc_html__('Upload Field', 'modern-events-calendar-lite') => 'uploadfield_option',
|
689 |
esc_html__('MEC Cart', 'modern-events-calendar-lite') => 'cart_option',
|
690 |
esc_html__('Payment Gateways', 'modern-events-calendar-lite') => 'payment_gateways_option',
|
@@ -747,7 +747,7 @@ class MEC_main extends MEC_base
|
|
747 |
<?php if($active_menu == 'settings'): ?>
|
748 |
data-id="<?php echo esc_attr($settings_link); ?>" class="wns-be-group-tab-link-a WnTabLinks"
|
749 |
<?php else: ?>
|
750 |
-
href="<?php echo
|
751 |
<?php endif; ?>
|
752 |
>
|
753 |
<span class="pr-be-group-menu-title"><?php echo esc_html($settings_name); ?></span>
|
@@ -2372,8 +2372,7 @@ class MEC_main extends MEC_base
|
|
2372 |
// Database Object
|
2373 |
$db = $this->getDB();
|
2374 |
|
2375 |
-
|
2376 |
-
return $ids;
|
2377 |
}
|
2378 |
|
2379 |
/**
|
@@ -2931,7 +2930,7 @@ class MEC_main extends MEC_base
|
|
2931 |
$pdf->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
|
2932 |
$pdf->AddFont('DejaVuBold', '', 'DejaVuSansCondensed-Bold.ttf', true);
|
2933 |
|
2934 |
-
$pdf->SetTitle(sprintf(
|
2935 |
$pdf->SetAuthor(get_bloginfo('name'), true);
|
2936 |
|
2937 |
// Event Information
|
@@ -2977,7 +2976,7 @@ class MEC_main extends MEC_base
|
|
2977 |
$other_timestamps = explode(':', $one_date);
|
2978 |
if(isset($other_timestamps[0]) and isset($other_timestamps[1]))
|
2979 |
{
|
2980 |
-
$pdf->Write(6, sprintf(
|
2981 |
$pdf->Ln();
|
2982 |
}
|
2983 |
}
|
@@ -3003,7 +3002,7 @@ class MEC_main extends MEC_base
|
|
3003 |
if(is_array($bfixed_fields) and count($bfixed_fields) and isset($transaction['fields']) and is_array($transaction['fields']) and count($transaction['fields']))
|
3004 |
{
|
3005 |
$pdf->SetFont('DejaVuBold', '', 16);
|
3006 |
-
$pdf->Write(20, sprintf(
|
3007 |
$pdf->Ln();
|
3008 |
|
3009 |
foreach($bfixed_fields as $bfixed_field_id => $bfixed_field)
|
@@ -3045,7 +3044,7 @@ class MEC_main extends MEC_base
|
|
3045 |
$pdf->Write(6, $attendee['email']);
|
3046 |
$pdf->Ln();
|
3047 |
|
3048 |
-
$pdf->Write(6, ((isset($event->tickets[$attendee['id']]) ? esc_html__($this->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite'))).': '
|
3049 |
|
3050 |
// Ticket Variations
|
3051 |
if(isset($attendee['variations']) and is_array($attendee['variations']) and count($attendee['variations']))
|
@@ -3174,7 +3173,7 @@ class MEC_main extends MEC_base
|
|
3174 |
$pdf->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
|
3175 |
$pdf->AddFont('DejaVuBold', '', 'DejaVuSansCondensed-Bold.ttf', true);
|
3176 |
|
3177 |
-
$pdf->SetTitle(sprintf(
|
3178 |
$pdf->SetAuthor(get_bloginfo('name'), true);
|
3179 |
|
3180 |
foreach($cart as $transaction_id)
|
@@ -3256,7 +3255,7 @@ class MEC_main extends MEC_base
|
|
3256 |
$other_timestamps = explode(':', $one_date);
|
3257 |
if(isset($other_timestamps[0]) and isset($other_timestamps[1]))
|
3258 |
{
|
3259 |
-
$pdf->Write(5, sprintf(
|
3260 |
$pdf->Ln();
|
3261 |
}
|
3262 |
}
|
@@ -3293,7 +3292,7 @@ class MEC_main extends MEC_base
|
|
3293 |
$pdf->Write(5, $attendee['email']);
|
3294 |
$pdf->Ln();
|
3295 |
|
3296 |
-
$pdf->Write(5, ((isset($event->tickets[$attendee['id']]) ? esc_html__($this->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite'))).': '
|
3297 |
|
3298 |
// Ticket Variations
|
3299 |
if(isset($attendee['variations']) and is_array($attendee['variations']) and count($attendee['variations']))
|
@@ -3961,7 +3960,7 @@ class MEC_main extends MEC_base
|
|
3961 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
3962 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
3963 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Text', 'modern-events-calendar-lite').'</span>
|
3964 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
3965 |
'. apply_filters('mec_form_field_description', '', $key, $values, $prefix) .'
|
3966 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
3967 |
<label>
|
@@ -3992,7 +3991,7 @@ class MEC_main extends MEC_base
|
|
3992 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
3993 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
3994 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('MEC Name', 'modern-events-calendar-lite').'</span>
|
3995 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
3996 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
3997 |
<p class="mec_'.esc_attr($prefix).'_field_options" style="display:none">
|
3998 |
<label>
|
@@ -4022,7 +4021,7 @@ class MEC_main extends MEC_base
|
|
4022 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4023 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4024 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('MEC Email', 'modern-events-calendar-lite').'</span>
|
4025 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4026 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4027 |
<p class="mec_'.esc_attr($prefix).'_field_options" style="display:none">
|
4028 |
<label>
|
@@ -4052,7 +4051,7 @@ class MEC_main extends MEC_base
|
|
4052 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4053 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4054 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Email', 'modern-events-calendar-lite').'</span>
|
4055 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4056 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4057 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4058 |
<label>
|
@@ -4083,7 +4082,7 @@ class MEC_main extends MEC_base
|
|
4083 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4084 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4085 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('URL', 'modern-events-calendar-lite').'</span>
|
4086 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4087 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4088 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4089 |
<label>
|
@@ -4114,7 +4113,7 @@ class MEC_main extends MEC_base
|
|
4114 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4115 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4116 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('File', 'modern-events-calendar-lite').'</span>
|
4117 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4118 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4119 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4120 |
<label>
|
@@ -4144,7 +4143,7 @@ class MEC_main extends MEC_base
|
|
4144 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4145 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4146 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Date', 'modern-events-calendar-lite').'</span>
|
4147 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4148 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4149 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4150 |
<label>
|
@@ -4175,7 +4174,7 @@ class MEC_main extends MEC_base
|
|
4175 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4176 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4177 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Tel', 'modern-events-calendar-lite').'</span>
|
4178 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4179 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4180 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4181 |
<label>
|
@@ -4206,7 +4205,7 @@ class MEC_main extends MEC_base
|
|
4206 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4207 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4208 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Textarea', 'modern-events-calendar-lite').'</span>
|
4209 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4210 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4211 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4212 |
<div id="mec_'.esc_attr($prefix).'_field_options_'.esc_attr($key).'_mandatory_wrapper" class="'.((isset($values['editor']) and $values['editor']) ? 'mec-util-hidden' : '').'">
|
@@ -4268,7 +4267,7 @@ class MEC_main extends MEC_base
|
|
4268 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4269 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4270 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Checkboxes', 'modern-events-calendar-lite').'</span>
|
4271 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4272 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4273 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4274 |
<label>
|
@@ -4316,7 +4315,7 @@ class MEC_main extends MEC_base
|
|
4316 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4317 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4318 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Radio Buttons', 'modern-events-calendar-lite').'</span>
|
4319 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4320 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4321 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4322 |
<label>
|
@@ -4364,7 +4363,7 @@ class MEC_main extends MEC_base
|
|
4364 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4365 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4366 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Dropdown', 'modern-events-calendar-lite').'</span>
|
4367 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4368 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4369 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4370 |
<label>
|
@@ -4422,7 +4421,7 @@ class MEC_main extends MEC_base
|
|
4422 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4423 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4424 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Agreement', 'modern-events-calendar-lite').'</span>
|
4425 |
-
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'
|
4426 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4427 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4428 |
<label>
|
@@ -4440,7 +4439,7 @@ class MEC_main extends MEC_base
|
|
4440 |
<select id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'_page" name="mec['.esc_attr($prefix).'_fields]['.esc_attr($key).'][page]">';
|
4441 |
|
4442 |
$page_options = '';
|
4443 |
-
foreach($pages as $page) $page_options .= '<option '.((isset($values['page']) and $values['page'] == $page->ID) ? 'selected="selected"' : '').' value="'
|
4444 |
|
4445 |
$field .= $page_options.'</select>
|
4446 |
</div>
|
@@ -4469,10 +4468,10 @@ class MEC_main extends MEC_base
|
|
4469 |
*/
|
4470 |
public function field_option($field_key, $key, $values = array(), $prefix = 'reg')
|
4471 |
{
|
4472 |
-
return '<li id="mec_'.esc_attr($prefix).'_fields_option_'
|
4473 |
<span class="mec_'.esc_attr($prefix).'_field_option_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4474 |
-
<span onclick="mec_'.esc_attr($prefix).'_fields_option_remove('
|
4475 |
-
<input type="text" name="mec['.esc_attr($prefix).'_fields]['
|
4476 |
</li>';
|
4477 |
}
|
4478 |
|
@@ -5420,7 +5419,7 @@ class MEC_main extends MEC_base
|
|
5420 |
'post_parent'=>$post->post_parent,
|
5421 |
'post_password'=>$post->post_password,
|
5422 |
'post_status'=>'draft',
|
5423 |
-
'post_title'=>sprintf(
|
5424 |
'post_type'=>$post->post_type,
|
5425 |
'to_ping'=>$post->to_ping,
|
5426 |
'menu_order'=>$post->menu_order
|
@@ -6445,7 +6444,7 @@ class MEC_main extends MEC_base
|
|
6445 |
$activity_id = bp_activity_add(array
|
6446 |
(
|
6447 |
'id'=>$bp_activity_id,
|
6448 |
-
'action'=>sprintf(
|
6449 |
'component'=>'mec',
|
6450 |
'type'=>'booked_event',
|
6451 |
'primary_link'=>$event_link,
|
@@ -6656,7 +6655,7 @@ class MEC_main extends MEC_base
|
|
6656 |
$wrap = new CS_REST_Subscribers($list_id, $api_key);
|
6657 |
$wrap->add(array(
|
6658 |
'EmailAddress' => $booker->user_email,
|
6659 |
-
'Name' => $booker->first_name . ' '
|
6660 |
'ConsentToTrack' => 'yes',
|
6661 |
'Resubscribe' => true
|
6662 |
));
|
@@ -6690,7 +6689,7 @@ class MEC_main extends MEC_base
|
|
6690 |
$json = json_encode(array
|
6691 |
(
|
6692 |
'email'=>$booker->user_email,
|
6693 |
-
'name'=>$booker->first_name . ' '
|
6694 |
));
|
6695 |
|
6696 |
// Execute the Request and Return the Response Code
|
@@ -8600,7 +8599,7 @@ class MEC_main extends MEC_base
|
|
8600 |
foreach($users as $user)
|
8601 |
{
|
8602 |
?>
|
8603 |
-
<option value="<?php echo isset($user->data->ID) ?
|
8604 |
<?php
|
8605 |
}
|
8606 |
?>
|
@@ -9557,4 +9556,32 @@ class MEC_main extends MEC_base
|
|
9557 |
return $db->select("SELECT * FROM `#__mec_events` WHERE `post_id`='$post_id'", "loadObject");
|
9558 |
});
|
9559 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9560 |
}
|
680 |
|
681 |
$booking = apply_filters('mec-settings-item-booking', array(
|
682 |
$this->m('booking', esc_html__('Booking', 'modern-events-calendar-lite')) => 'booking_option',
|
683 |
+
sprintf(esc_html__('%s Shortcode', 'modern-events-calendar-lite'), $this->m('booking', esc_html__('Booking', 'modern-events-calendar-lite'))) => 'booking_shortcode',
|
684 |
esc_html__('Coupons', 'modern-events-calendar-lite') => 'coupon_option',
|
685 |
esc_html__('Taxes / Fees', 'modern-events-calendar-lite') => 'taxes_option',
|
686 |
esc_html__('Ticket Variations & Options', 'modern-events-calendar-lite') => 'ticket_variations_option',
|
687 |
+
sprintf(esc_html__('%s Form', 'modern-events-calendar-lite'), $this->m('booking', esc_html__('Booking', 'modern-events-calendar-lite'))) => 'booking_form_option',
|
688 |
esc_html__('Upload Field', 'modern-events-calendar-lite') => 'uploadfield_option',
|
689 |
esc_html__('MEC Cart', 'modern-events-calendar-lite') => 'cart_option',
|
690 |
esc_html__('Payment Gateways', 'modern-events-calendar-lite') => 'payment_gateways_option',
|
747 |
<?php if($active_menu == 'settings'): ?>
|
748 |
data-id="<?php echo esc_attr($settings_link); ?>" class="wns-be-group-tab-link-a WnTabLinks"
|
749 |
<?php else: ?>
|
750 |
+
href="<?php echo esc_url($this->remove_qs_var('tab') . '#' . $settings_link); ?>"
|
751 |
<?php endif; ?>
|
752 |
>
|
753 |
<span class="pr-be-group-menu-title"><?php echo esc_html($settings_name); ?></span>
|
2372 |
// Database Object
|
2373 |
$db = $this->getDB();
|
2374 |
|
2375 |
+
return $db->select("SELECT `post_id` FROM `#__mec_dates` WHERE (`tstart` <= ".$start." AND `tend` >= ".$end.") OR (`tstart` > ".$start." AND `tend` < ".$end.") OR (`tstart` > ".$start." AND `tstart` < ".$end." AND `tend` >= ".$end.") OR (`tstart` <= ".$start." AND `tend` > ".$start." AND `tend` < ".$end.")", 'loadColumn');
|
|
|
2376 |
}
|
2377 |
|
2378 |
/**
|
2930 |
$pdf->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
|
2931 |
$pdf->AddFont('DejaVuBold', '', 'DejaVuSansCondensed-Bold.ttf', true);
|
2932 |
|
2933 |
+
$pdf->SetTitle(sprintf(esc_html__('%s Invoice', 'modern-events-calendar-lite'), $transaction_id));
|
2934 |
$pdf->SetAuthor(get_bloginfo('name'), true);
|
2935 |
|
2936 |
// Event Information
|
2976 |
$other_timestamps = explode(':', $one_date);
|
2977 |
if(isset($other_timestamps[0]) and isset($other_timestamps[1]))
|
2978 |
{
|
2979 |
+
$pdf->Write(6, sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->date_i18n($date_format.' '.$time_format, $other_timestamps[0]), $this->date_i18n($date_format.' '.$time_format, $other_timestamps[1])));
|
2980 |
$pdf->Ln();
|
2981 |
}
|
2982 |
}
|
3002 |
if(is_array($bfixed_fields) and count($bfixed_fields) and isset($transaction['fields']) and is_array($transaction['fields']) and count($transaction['fields']))
|
3003 |
{
|
3004 |
$pdf->SetFont('DejaVuBold', '', 16);
|
3005 |
+
$pdf->Write(20, sprintf(esc_html__('%s Fields', 'modern-events-calendar-lite'), $this->m('booking', esc_html__('Booking', 'modern-events-calendar-lite'))));
|
3006 |
$pdf->Ln();
|
3007 |
|
3008 |
foreach($bfixed_fields as $bfixed_field_id => $bfixed_field)
|
3044 |
$pdf->Write(6, $attendee['email']);
|
3045 |
$pdf->Ln();
|
3046 |
|
3047 |
+
$pdf->Write(6, ((isset($event->tickets[$attendee['id']]) ? esc_html__($this->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite'))).': '.esc_html($event->tickets[$attendee['id']]['name']) : '').' '.(isset($event->tickets[$attendee['id']]) ? $book->get_ticket_price_label($event->tickets[$attendee['id']], $booking_time, $event_id) : '')));
|
3048 |
|
3049 |
// Ticket Variations
|
3050 |
if(isset($attendee['variations']) and is_array($attendee['variations']) and count($attendee['variations']))
|
3173 |
$pdf->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
|
3174 |
$pdf->AddFont('DejaVuBold', '', 'DejaVuSansCondensed-Bold.ttf', true);
|
3175 |
|
3176 |
+
$pdf->SetTitle(sprintf(esc_html__('%s Invoice', 'modern-events-calendar-lite'), $cart_id));
|
3177 |
$pdf->SetAuthor(get_bloginfo('name'), true);
|
3178 |
|
3179 |
foreach($cart as $transaction_id)
|
3255 |
$other_timestamps = explode(':', $one_date);
|
3256 |
if(isset($other_timestamps[0]) and isset($other_timestamps[1]))
|
3257 |
{
|
3258 |
+
$pdf->Write(5, sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->date_i18n($date_format.' '.$time_format, $other_timestamps[0]), $this->date_i18n($date_format.' '.$time_format, $other_timestamps[1])));
|
3259 |
$pdf->Ln();
|
3260 |
}
|
3261 |
}
|
3292 |
$pdf->Write(5, $attendee['email']);
|
3293 |
$pdf->Ln();
|
3294 |
|
3295 |
+
$pdf->Write(5, ((isset($event->tickets[$attendee['id']]) ? esc_html__($this->m('ticket', esc_html__('Ticket', 'modern-events-calendar-lite'))).': '.esc_html($event->tickets[$attendee['id']]['name']) : '').' '.(isset($event->tickets[$attendee['id']]) ? esc_html($book->get_ticket_price_label($event->tickets[$attendee['id']], $booking_time, $event_id)) : '')));
|
3296 |
|
3297 |
// Ticket Variations
|
3298 |
if(isset($attendee['variations']) and is_array($attendee['variations']) and count($attendee['variations']))
|
3960 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
3961 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
3962 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Text', 'modern-events-calendar-lite').'</span>
|
3963 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
3964 |
'. apply_filters('mec_form_field_description', '', $key, $values, $prefix) .'
|
3965 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
3966 |
<label>
|
3991 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
3992 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
3993 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('MEC Name', 'modern-events-calendar-lite').'</span>
|
3994 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
3995 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
3996 |
<p class="mec_'.esc_attr($prefix).'_field_options" style="display:none">
|
3997 |
<label>
|
4021 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4022 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4023 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('MEC Email', 'modern-events-calendar-lite').'</span>
|
4024 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4025 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4026 |
<p class="mec_'.esc_attr($prefix).'_field_options" style="display:none">
|
4027 |
<label>
|
4051 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4052 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4053 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Email', 'modern-events-calendar-lite').'</span>
|
4054 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4055 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4056 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4057 |
<label>
|
4082 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4083 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4084 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('URL', 'modern-events-calendar-lite').'</span>
|
4085 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4086 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4087 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4088 |
<label>
|
4113 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4114 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4115 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('File', 'modern-events-calendar-lite').'</span>
|
4116 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4117 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4118 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4119 |
<label>
|
4143 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4144 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4145 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Date', 'modern-events-calendar-lite').'</span>
|
4146 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4147 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4148 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4149 |
<label>
|
4174 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4175 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4176 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Tel', 'modern-events-calendar-lite').'</span>
|
4177 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4178 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4179 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4180 |
<label>
|
4205 |
return '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4206 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4207 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Textarea', 'modern-events-calendar-lite').'</span>
|
4208 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4209 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4210 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4211 |
<div id="mec_'.esc_attr($prefix).'_field_options_'.esc_attr($key).'_mandatory_wrapper" class="'.((isset($values['editor']) and $values['editor']) ? 'mec-util-hidden' : '').'">
|
4267 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4268 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4269 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Checkboxes', 'modern-events-calendar-lite').'</span>
|
4270 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4271 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4272 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4273 |
<label>
|
4315 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4316 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4317 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Radio Buttons', 'modern-events-calendar-lite').'</span>
|
4318 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4319 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4320 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4321 |
<label>
|
4363 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4364 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4365 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Dropdown', 'modern-events-calendar-lite').'</span>
|
4366 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4367 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4368 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4369 |
<label>
|
4421 |
$field = '<li id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'">
|
4422 |
<span class="mec_'.esc_attr($prefix).'_field_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4423 |
<span class="mec_'.esc_attr($prefix).'_field_type">'.esc_html__('Agreement', 'modern-events-calendar-lite').'</span>
|
4424 |
+
'.($prefix == 'event' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%event_field_'.esc_html($key).'%%</span>' : ($prefix == 'bfixed' ? '<span class="mec_'.esc_attr($prefix).'_notification_placeholder">%%booking_field_'.esc_html($key).'%%</span>' : '')).'
|
4425 |
'. apply_filters( 'mec_form_field_description', '', $key, $values, $prefix ) .'
|
4426 |
<p class="mec_'.esc_attr($prefix).'_field_options">
|
4427 |
<label>
|
4439 |
<select id="mec_'.esc_attr($prefix).'_fields_'.esc_attr($key).'_page" name="mec['.esc_attr($prefix).'_fields]['.esc_attr($key).'][page]">';
|
4440 |
|
4441 |
$page_options = '';
|
4442 |
+
foreach($pages as $page) $page_options .= '<option '.((isset($values['page']) and $values['page'] == $page->ID) ? 'selected="selected"' : '').' value="'.esc_attr($page->ID).'">'.esc_html($page->post_title).'</option>';
|
4443 |
|
4444 |
$field .= $page_options.'</select>
|
4445 |
</div>
|
4468 |
*/
|
4469 |
public function field_option($field_key, $key, $values = array(), $prefix = 'reg')
|
4470 |
{
|
4471 |
+
return '<li id="mec_'.esc_attr($prefix).'_fields_option_'.esc_attr($field_key).'_'.esc_attr($key).'">
|
4472 |
<span class="mec_'.esc_attr($prefix).'_field_option_sort">'.esc_html__('Sort', 'modern-events-calendar-lite').'</span>
|
4473 |
+
<span onclick="mec_'.esc_attr($prefix).'_fields_option_remove('.esc_attr($field_key).','.esc_attr($key).');" class="mec_'.esc_attr($prefix).'_field_remove">'.esc_html__('Remove', 'modern-events-calendar-lite').'</span>
|
4474 |
+
<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'])) : '').'" />
|
4475 |
</li>';
|
4476 |
}
|
4477 |
|
5419 |
'post_parent'=>$post->post_parent,
|
5420 |
'post_password'=>$post->post_password,
|
5421 |
'post_status'=>'draft',
|
5422 |
+
'post_title'=>sprintf(esc_html__('Copy of %s', 'modern-events-calendar-lite'), $post->post_title),
|
5423 |
'post_type'=>$post->post_type,
|
5424 |
'to_ping'=>$post->to_ping,
|
5425 |
'menu_order'=>$post->menu_order
|
6444 |
$activity_id = bp_activity_add(array
|
6445 |
(
|
6446 |
'id'=>$bp_activity_id,
|
6447 |
+
'action'=>sprintf(esc_html__('%s booked %s event.', 'modern-events-calendar-lite'), $profile_link, '<a href="'.esc_url($event_link).'">'.esc_html($event_title).'</a>'),
|
6448 |
'component'=>'mec',
|
6449 |
'type'=>'booked_event',
|
6450 |
'primary_link'=>$event_link,
|
6655 |
$wrap = new CS_REST_Subscribers($list_id, $api_key);
|
6656 |
$wrap->add(array(
|
6657 |
'EmailAddress' => $booker->user_email,
|
6658 |
+
'Name' => $booker->first_name . ' ' . $booker->last_name,
|
6659 |
'ConsentToTrack' => 'yes',
|
6660 |
'Resubscribe' => true
|
6661 |
));
|
6689 |
$json = json_encode(array
|
6690 |
(
|
6691 |
'email'=>$booker->user_email,
|
6692 |
+
'name'=>$booker->first_name . ' ' . $booker->last_name,
|
6693 |
));
|
6694 |
|
6695 |
// Execute the Request and Return the Response Code
|
8599 |
foreach($users as $user)
|
8600 |
{
|
8601 |
?>
|
8602 |
+
<option value="<?php echo isset($user->data->ID) ? esc_attr($user->data->ID) : 0; ?>" <?php echo (is_array($current) and in_array(intval($user->data->ID), $current)) ? 'selected="selected"' : ''; ?>><?php echo (isset($user->data->display_name) and trim($user->data->display_name)) ? esc_html(trim($user->data->display_name)) : '(' . esc_html(trim($user->data->user_login)) . ')'; ?></option>
|
8603 |
<?php
|
8604 |
}
|
8605 |
?>
|
9556 |
return $db->select("SELECT * FROM `#__mec_events` WHERE `post_id`='$post_id'", "loadObject");
|
9557 |
});
|
9558 |
}
|
9559 |
+
|
9560 |
+
public function sanitize_deep_array($inputs, $type = 'text', $excludes = array(), $path = '')
|
9561 |
+
{
|
9562 |
+
if(!is_array($inputs)) return $inputs;
|
9563 |
+
|
9564 |
+
$sanitized = array();
|
9565 |
+
foreach($inputs as $key => $val)
|
9566 |
+
{
|
9567 |
+
$p = $path.$key.'.';
|
9568 |
+
if((is_array($excludes) and in_array(trim($p, '. '), $excludes)) or (is_array($excludes) and !count($excludes)))
|
9569 |
+
{
|
9570 |
+
$sanitized[$key] = $val;
|
9571 |
+
continue;
|
9572 |
+
}
|
9573 |
+
|
9574 |
+
if(is_array($val)) $sanitized[$key] = $this->sanitize_deep_array($val, $type, $excludes, $p);
|
9575 |
+
elseif($type == 'int') $sanitized[$key] = (int) $val;
|
9576 |
+
elseif($type == 'url') $sanitized[$key] = esc_url($val);
|
9577 |
+
elseif($type == 'email') $sanitized[$key] = sanitize_email($val);
|
9578 |
+
elseif($type == 'page') $sanitized[$key] = MEC_kses::page($val);
|
9579 |
+
else
|
9580 |
+
{
|
9581 |
+
$sanitized[$key] = sanitize_text_field($val);
|
9582 |
+
}
|
9583 |
+
}
|
9584 |
+
|
9585 |
+
return $sanitized;
|
9586 |
+
}
|
9587 |
}
|
app/libraries/notifications.php
CHANGED
@@ -1181,7 +1181,7 @@ class MEC_notifications extends MEC_base
|
|
1181 |
|
1182 |
if(!$mec_start_date and !$mec_end_date)
|
1183 |
{
|
1184 |
-
$mec = isset($_POST['mec']) ? $_POST['mec'] : array();
|
1185 |
|
1186 |
$mec_start_date = (isset($mec['date']) and isset($mec['date']['start']) and isset($mec['date']['start']['date']) and trim($mec['date']['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($mec['date']['start']['date'])) : NULL;
|
1187 |
$mec_end_date = (isset($mec['date']) and isset($mec['date']['end']) and isset($mec['date']['end']['date']) and trim($mec['date']['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($mec['date']['end']['date'])) : NULL;
|
@@ -1614,7 +1614,7 @@ class MEC_notifications extends MEC_base
|
|
1614 |
{
|
1615 |
if(trim($start_timestamp) != trim($end_timestamp) and date('Y-m-d', $start_timestamp) != date('Y-m-d', $end_timestamp))
|
1616 |
{
|
1617 |
-
$book_date = sprintf(
|
1618 |
}
|
1619 |
else $book_date = get_the_date($date_format, $book_id);
|
1620 |
}
|
@@ -1629,7 +1629,7 @@ class MEC_notifications extends MEC_base
|
|
1629 |
$allday = get_post_meta($event_id, 'mec_allday', true);
|
1630 |
$hide_time = get_post_meta($event_id, 'mec_hide_time', true);
|
1631 |
$hide_end_time = get_post_meta($event_id, 'mec_hide_end_time', true);
|
1632 |
-
$event_time = $allday ? $this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : (!$hide_end_time ? sprintf(
|
1633 |
|
1634 |
// Condition for check some parameter simple hide event time
|
1635 |
if(!$hide_time) $message = str_replace('%%book_time%%', $event_time, $message);
|
@@ -1640,7 +1640,7 @@ class MEC_notifications extends MEC_base
|
|
1640 |
{
|
1641 |
if(trim($start_timestamp) != trim($end_timestamp))
|
1642 |
{
|
1643 |
-
$book_datetime = sprintf(
|
1644 |
}
|
1645 |
else $book_datetime = get_the_date($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $book_id);
|
1646 |
}
|
@@ -1656,7 +1656,7 @@ class MEC_notifications extends MEC_base
|
|
1656 |
{
|
1657 |
list($other_start_timestamp, $other_end_timestamp) = explode(':', $other_date);
|
1658 |
|
1659 |
-
if(trim($other_start_timestamp) != trim($other_end_timestamp)) $other_dates_datetime .= sprintf(
|
1660 |
else $other_dates_datetime .= $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $other_start_timestamp)."<br>";
|
1661 |
}
|
1662 |
|
@@ -1689,7 +1689,11 @@ class MEC_notifications extends MEC_base
|
|
1689 |
$mec_date = explode(':', get_post_meta($book_id, 'mec_date', true));
|
1690 |
|
1691 |
// Booked Tickets
|
1692 |
-
if(count($mec_date) == 2 and isset($mec_date[0]))
|
|
|
|
|
|
|
|
|
1693 |
|
1694 |
// Attendee Full Information
|
1695 |
if(strpos($message, '%%attendee_full_info%%') !== false or strpos($message, '%%attendees_full_info%%') !== false)
|
@@ -1903,7 +1907,7 @@ class MEC_notifications extends MEC_base
|
|
1903 |
$ticket_start_seconds = $this->main->time_to_seconds($this->main->to_24hours($ticket_start_hour, $ticket_start_ampm), $ticket_start_minute_s);
|
1904 |
$ticket_end_seconds = $this->main->time_to_seconds($this->main->to_24hours($ticket_end_hour, $ticket_end_ampm), $ticket_end_minute_s);
|
1905 |
|
1906 |
-
$ticket_times[] = $this->main->get_time($ticket_start_seconds).' ' . esc_html__('to' , 'modern-events-calendar-lite') . ' '
|
1907 |
}
|
1908 |
}
|
1909 |
|
@@ -1954,8 +1958,8 @@ class MEC_notifications extends MEC_base
|
|
1954 |
// Recurring Rules
|
1955 |
$rrule = $this->main->get_ical_rrules($event_id, true);
|
1956 |
|
1957 |
-
$google_calendar_link = '<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&text=' . $event_title . '&dates='. gmdate('Ymd\\THi00\\Z', ($start_timestamp - $gmt_offset_seconds)) . '/' . gmdate('Ymd\\THi00\\Z', ($end_timestamp - $gmt_offset_seconds)) . '&details=' . urlencode($event_content) . (trim($google_calendar_location) ? '&location=' . urlencode($google_calendar_location) : ''). ((trim($rrule) ? '&recur='.urlencode($rrule) : '')). '" target="_blank">' . esc_html__('+ Add to Google Calendar', 'modern-events-calendar-lite') . '</a>';
|
1958 |
-
$ical_export_link = '<a href="' . $this->main->ical_URL_email($event_id, $book_id, get_the_date('Y-m-d', $book_id)) . '">'. esc_html__('+ iCal / Outlook export', 'modern-events-calendar-lite') . '</a>';
|
1959 |
|
1960 |
$message = str_replace('%%google_calendar_link%%', $google_calendar_link, $message);
|
1961 |
$message = str_replace('%%ics_link%%', $ical_export_link, $message);
|
@@ -1984,8 +1988,8 @@ class MEC_notifications extends MEC_base
|
|
1984 |
{
|
1985 |
if(trim($next_occurrence['tstart']) != trim($next_occurrence['tend']))
|
1986 |
{
|
1987 |
-
$book_date_next_occurrences .= sprintf(
|
1988 |
-
$book_datetime_next_occurrences .= sprintf(
|
1989 |
}
|
1990 |
else
|
1991 |
{
|
@@ -1999,7 +2003,7 @@ class MEC_notifications extends MEC_base
|
|
1999 |
$book_datetime_next_occurrences .= $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $next_occurrence['tstart']).'<br>';
|
2000 |
}
|
2001 |
|
2002 |
-
$google_calendar_links .= '<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&text=' . $event_title . '&dates='. gmdate('Ymd\\THi00\\Z', ($next_occurrence['tstart'] - $gmt_offset_seconds)) . '/' . gmdate('Ymd\\THi00\\Z', ($next_occurrence['tend'] - $gmt_offset_seconds)) . '&details=' . urlencode($event_content) . (trim($google_calendar_location) ? '&location=' . urlencode($google_calendar_location) : ''). '" target="_blank">' . sprintf(
|
2003 |
}
|
2004 |
|
2005 |
$message = str_replace('%%google_calendar_link_next_occurrences%%', $google_calendar_links, $message);
|
@@ -2106,7 +2110,7 @@ class MEC_notifications extends MEC_base
|
|
2106 |
|
2107 |
if($type == 'agreement')
|
2108 |
{
|
2109 |
-
$label = sprintf(
|
2110 |
$attendees_full_info .= $label.': '.($value == '1' ? esc_html__('Yes', 'modern-events-calendar-lite') : esc_html__('No', 'modern-events-calendar-lite'))."\r\n";
|
2111 |
}
|
2112 |
else
|
@@ -2173,11 +2177,11 @@ class MEC_notifications extends MEC_base
|
|
2173 |
$style = $this->main->get_styling();
|
2174 |
$bgnotifications = isset($style['notification_bg']) ? $style['notification_bg'] : '#f6f6f6';
|
2175 |
|
2176 |
-
return '<table border="0" cellpadding="0" cellspacing="0" class="wn-body" style="background-color: '
|
2177 |
<tr>
|
2178 |
<td class="wn-container" style="display: block; margin: 0 auto !important; max-width: 680px; padding: 10px;font-family: sans-serif; font-size: 14px; vertical-align: top;">
|
2179 |
<div class="wn-wrapper" style="box-sizing: border-box; padding: 38px 9% 50px; width: 100%; height: auto; background: #fff; background-size: contain; margin-bottom: 25px; margin-top: 30px; border-radius: 4px; box-shadow: 0 3px 55px -18px rgba(0,0,0,0.1);">
|
2180 |
-
'
|
2181 |
</div>
|
2182 |
</td>
|
2183 |
</tr>
|
1181 |
|
1182 |
if(!$mec_start_date and !$mec_end_date)
|
1183 |
{
|
1184 |
+
$mec = isset($_POST['mec']) ? $this->main->sanitize_deep_array($_POST['mec']) : array();
|
1185 |
|
1186 |
$mec_start_date = (isset($mec['date']) and isset($mec['date']['start']) and isset($mec['date']['start']['date']) and trim($mec['date']['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($mec['date']['start']['date'])) : NULL;
|
1187 |
$mec_end_date = (isset($mec['date']) and isset($mec['date']['end']) and isset($mec['date']['end']['date']) and trim($mec['date']['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($mec['date']['end']['date'])) : NULL;
|
1614 |
{
|
1615 |
if(trim($start_timestamp) != trim($end_timestamp) and date('Y-m-d', $start_timestamp) != date('Y-m-d', $end_timestamp))
|
1616 |
{
|
1617 |
+
$book_date = sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->main->date_i18n($date_format, $start_timestamp), $this->main->date_i18n($date_format, $end_timestamp));
|
1618 |
}
|
1619 |
else $book_date = get_the_date($date_format, $book_id);
|
1620 |
}
|
1629 |
$allday = get_post_meta($event_id, 'mec_allday', true);
|
1630 |
$hide_time = get_post_meta($event_id, 'mec_hide_time', true);
|
1631 |
$hide_end_time = get_post_meta($event_id, 'mec_hide_end_time', true);
|
1632 |
+
$event_time = $allday ? $this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : (!$hide_end_time ? sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $event_start_time, $event_end_time) : $event_start_time);
|
1633 |
|
1634 |
// Condition for check some parameter simple hide event time
|
1635 |
if(!$hide_time) $message = str_replace('%%book_time%%', $event_time, $message);
|
1640 |
{
|
1641 |
if(trim($start_timestamp) != trim($end_timestamp))
|
1642 |
{
|
1643 |
+
$book_datetime = sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $start_timestamp), $this->main->date_i18n($date_format.((!$allday and !$hide_time and !$hide_end_time) ? ' '.$time_format : ''), $end_timestamp));
|
1644 |
}
|
1645 |
else $book_datetime = get_the_date($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $book_id);
|
1646 |
}
|
1656 |
{
|
1657 |
list($other_start_timestamp, $other_end_timestamp) = explode(':', $other_date);
|
1658 |
|
1659 |
+
if(trim($other_start_timestamp) != trim($other_end_timestamp)) $other_dates_datetime .= sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $other_start_timestamp), $this->main->date_i18n($date_format.((!$allday and !$hide_time and !$hide_end_time) ? ' '.$time_format : ''), $other_end_timestamp))."<br>";
|
1660 |
else $other_dates_datetime .= $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $other_start_timestamp)."<br>";
|
1661 |
}
|
1662 |
|
1689 |
$mec_date = explode(':', get_post_meta($book_id, 'mec_date', true));
|
1690 |
|
1691 |
// Booked Tickets
|
1692 |
+
if(count($mec_date) == 2 and isset($mec_date[0]))
|
1693 |
+
{
|
1694 |
+
$booked_tickets = ($this->book->get_tickets_availability($event_id, $mec_date[0], 'reservation') + $this->book->get_total_attendees($book_id));
|
1695 |
+
$message = str_replace('%%amount_tickets%%', $booked_tickets, $message);
|
1696 |
+
}
|
1697 |
|
1698 |
// Attendee Full Information
|
1699 |
if(strpos($message, '%%attendee_full_info%%') !== false or strpos($message, '%%attendees_full_info%%') !== false)
|
1907 |
$ticket_start_seconds = $this->main->time_to_seconds($this->main->to_24hours($ticket_start_hour, $ticket_start_ampm), $ticket_start_minute_s);
|
1908 |
$ticket_end_seconds = $this->main->time_to_seconds($this->main->to_24hours($ticket_end_hour, $ticket_end_ampm), $ticket_end_minute_s);
|
1909 |
|
1910 |
+
$ticket_times[] = $this->main->get_time($ticket_start_seconds).' ' . esc_html__('to' , 'modern-events-calendar-lite') . ' ' . $this->main->get_time($ticket_end_seconds);
|
1911 |
}
|
1912 |
}
|
1913 |
|
1958 |
// Recurring Rules
|
1959 |
$rrule = $this->main->get_ical_rrules($event_id, true);
|
1960 |
|
1961 |
+
$google_calendar_link = '<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&text=' . urlencode($event_title) . '&dates='. gmdate('Ymd\\THi00\\Z', ($start_timestamp - $gmt_offset_seconds)) . '/' . gmdate('Ymd\\THi00\\Z', ($end_timestamp - $gmt_offset_seconds)) . '&details=' . urlencode($event_content) . (trim($google_calendar_location) ? '&location=' . urlencode($google_calendar_location) : ''). ((trim($rrule) ? '&recur='.urlencode($rrule) : '')). '" target="_blank">' . esc_html__('+ Add to Google Calendar', 'modern-events-calendar-lite') . '</a>';
|
1962 |
+
$ical_export_link = '<a href="' . esc_url($this->main->ical_URL_email($event_id, $book_id, get_the_date('Y-m-d', $book_id))) . '">'. esc_html__('+ iCal / Outlook export', 'modern-events-calendar-lite') . '</a>';
|
1963 |
|
1964 |
$message = str_replace('%%google_calendar_link%%', $google_calendar_link, $message);
|
1965 |
$message = str_replace('%%ics_link%%', $ical_export_link, $message);
|
1988 |
{
|
1989 |
if(trim($next_occurrence['tstart']) != trim($next_occurrence['tend']))
|
1990 |
{
|
1991 |
+
$book_date_next_occurrences .= sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->main->date_i18n($date_format, $next_occurrence['tstart']), $this->main->date_i18n($date_format, $next_occurrence['tend'])).'<br>';
|
1992 |
+
$book_datetime_next_occurrences .= sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $next_occurrence['tstart']), $this->main->date_i18n($date_format.((!$allday and !$hide_time and !$hide_end_time) ? ' '.$time_format : ''), $next_occurrence['tend'])).'<br>';
|
1993 |
}
|
1994 |
else
|
1995 |
{
|
2003 |
$book_datetime_next_occurrences .= $this->main->date_i18n($date_format.((!$allday and !$hide_time) ? ' '.$time_format : ''), $next_occurrence['tstart']).'<br>';
|
2004 |
}
|
2005 |
|
2006 |
+
$google_calendar_links .= '<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&text=' . urlencode($event_title) . '&dates='. gmdate('Ymd\\THi00\\Z', ($next_occurrence['tstart'] - $gmt_offset_seconds)) . '/' . gmdate('Ymd\\THi00\\Z', ($next_occurrence['tend'] - $gmt_offset_seconds)) . '&details=' . urlencode($event_content) . (trim($google_calendar_location) ? '&location=' . urlencode($google_calendar_location) : ''). '" target="_blank">' . sprintf(esc_html__('+ %s to Google Calendar', 'modern-events-calendar-lite'), date($date_format .' '.$time_format, $next_occurrence['tstart'])) . '</a><br>';
|
2007 |
}
|
2008 |
|
2009 |
$message = str_replace('%%google_calendar_link_next_occurrences%%', $google_calendar_links, $message);
|
2110 |
|
2111 |
if($type == 'agreement')
|
2112 |
{
|
2113 |
+
$label = sprintf(esc_html__($label, 'modern-events-calendar-lite'), '<a href="'.get_the_permalink($reg_fields[$field_id]['page']).'">'.get_the_title($reg_fields[$field_id]['page']).'</a>');
|
2114 |
$attendees_full_info .= $label.': '.($value == '1' ? esc_html__('Yes', 'modern-events-calendar-lite') : esc_html__('No', 'modern-events-calendar-lite'))."\r\n";
|
2115 |
}
|
2116 |
else
|
2177 |
$style = $this->main->get_styling();
|
2178 |
$bgnotifications = isset($style['notification_bg']) ? $style['notification_bg'] : '#f6f6f6';
|
2179 |
|
2180 |
+
return '<table border="0" cellpadding="0" cellspacing="0" class="wn-body" style="background-color: '.esc_attr($bgnotifications).'; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Open Sans, sans-serif;border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">
|
2181 |
<tr>
|
2182 |
<td class="wn-container" style="display: block; margin: 0 auto !important; max-width: 680px; padding: 10px;font-family: sans-serif; font-size: 14px; vertical-align: top;">
|
2183 |
<div class="wn-wrapper" style="box-sizing: border-box; padding: 38px 9% 50px; width: 100%; height: auto; background: #fff; background-size: contain; margin-bottom: 25px; margin-top: 30px; border-radius: 4px; box-shadow: 0 3px 55px -18px rgba(0,0,0,0.1);">
|
2184 |
+
'.MEC_kses::page($content).'
|
2185 |
</div>
|
2186 |
</td>
|
2187 |
</tr>
|
app/libraries/parser.php
CHANGED
@@ -124,41 +124,25 @@ class MEC_parser extends MEC_base
|
|
124 |
{
|
125 |
// We're in an embed post
|
126 |
if(is_embed()) return $template;
|
127 |
-
|
128 |
$PT = $this->main->get_main_post_type();
|
129 |
-
$file = $this->getFile();
|
130 |
-
|
131 |
if(is_single() and get_post_type() == $PT)
|
132 |
{
|
133 |
-
|
134 |
-
if(
|
135 |
{
|
136 |
-
$
|
137 |
-
|
138 |
-
|
139 |
-
$wp_template_file = MEC_ABSPATH.'templates'.DS.'themes'.DS.$wp_template.DS.'single-mec-events.php';
|
140 |
-
$wp_stylesheet_file = MEC_ABSPATH.'templates'.DS.'themes'.DS.$wp_template.DS.'childs'.DS.$wp_stylesheet.DS.'single-mec-events.php';
|
141 |
-
|
142 |
-
if($file->exists($wp_stylesheet_file)) $template = $wp_stylesheet_file;
|
143 |
-
elseif($file->exists($wp_template_file)) $template = $wp_template_file;
|
144 |
-
else $template = MEC_ABSPATH.'templates'.DS.'single-mec-events.php';
|
145 |
}
|
|
|
|
|
|
|
146 |
}
|
147 |
elseif(is_post_type_archive($PT) && !is_search())
|
148 |
{
|
149 |
$template = locate_template('archive-'.$PT.'.php');
|
150 |
-
if($template == '')
|
151 |
-
{
|
152 |
-
$wp_template = get_template();
|
153 |
-
$wp_stylesheet = get_stylesheet();
|
154 |
-
|
155 |
-
$wp_template_file = MEC_ABSPATH.'templates'.DS.'themes'.DS.$wp_template.DS.'archive-mec-events.php';
|
156 |
-
$wp_stylesheet_file = MEC_ABSPATH.'templates'.DS.'themes'.DS.$wp_template.DS.'childs'.DS.$wp_stylesheet.DS.'archive-mec-events.php';
|
157 |
-
|
158 |
-
if($file->exists($wp_stylesheet_file)) $template = $wp_stylesheet_file;
|
159 |
-
elseif($file->exists($wp_template_file)) $template = $wp_template_file;
|
160 |
-
else $template = MEC_ABSPATH.'templates'.DS.'archive-mec-events.php';
|
161 |
-
}
|
162 |
|
163 |
add_action('mec_before_main_content', function()
|
164 |
{
|
@@ -173,18 +157,7 @@ class MEC_parser extends MEC_base
|
|
173 |
elseif(is_tax('mec_category'))
|
174 |
{
|
175 |
$template = locate_template('taxonomy-mec-category.php');
|
176 |
-
if($template == '')
|
177 |
-
{
|
178 |
-
$wp_template = get_template();
|
179 |
-
$wp_stylesheet = get_stylesheet();
|
180 |
-
|
181 |
-
$wp_template_file = MEC_ABSPATH.'templates'.DS.'themes'.DS.$wp_template.DS.'taxonomy-mec-category.php';
|
182 |
-
$wp_stylesheet_file = MEC_ABSPATH.'templates'.DS.'themes'.DS.$wp_template.DS.'childs'.DS.$wp_stylesheet.DS.'taxonomy-mec-category.php';
|
183 |
-
|
184 |
-
if($file->exists($wp_stylesheet_file)) $template = $wp_stylesheet_file;
|
185 |
-
elseif($file->exists($wp_template_file)) $template = $wp_template_file;
|
186 |
-
else $template = MEC_ABSPATH.'templates'.DS.'taxonomy-mec-category.php';
|
187 |
-
}
|
188 |
}
|
189 |
|
190 |
return $template;
|
@@ -267,4 +240,10 @@ class MEC_parser extends MEC_base
|
|
267 |
|
268 |
return $title;
|
269 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
}
|
124 |
{
|
125 |
// We're in an embed post
|
126 |
if(is_embed()) return $template;
|
127 |
+
|
128 |
$PT = $this->main->get_main_post_type();
|
|
|
|
|
129 |
if(is_single() and get_post_type() == $PT)
|
130 |
{
|
131 |
+
// Block Themes
|
132 |
+
if(function_exists('wp_is_block_theme') and wp_is_block_theme())
|
133 |
{
|
134 |
+
add_filter('the_content', array($this, 'block_theme_single_content'));
|
135 |
+
|
136 |
+
return $template;
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
138 |
+
|
139 |
+
$template = locate_template('single-'.$PT.'.php');
|
140 |
+
if($template == '') $template = MEC_ABSPATH.'templates'.DS.'single-mec-events.php';
|
141 |
}
|
142 |
elseif(is_post_type_archive($PT) && !is_search())
|
143 |
{
|
144 |
$template = locate_template('archive-'.$PT.'.php');
|
145 |
+
if($template == '') $template = MEC_ABSPATH.'templates'.DS.'archive-mec-events.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
add_action('mec_before_main_content', function()
|
148 |
{
|
157 |
elseif(is_tax('mec_category'))
|
158 |
{
|
159 |
$template = locate_template('taxonomy-mec-category.php');
|
160 |
+
if($template == '') $template = MEC_ABSPATH.'templates'.DS.'taxonomy-mec-category.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
}
|
162 |
|
163 |
return $template;
|
240 |
|
241 |
return $title;
|
242 |
}
|
243 |
+
|
244 |
+
public function block_theme_single_content($content)
|
245 |
+
{
|
246 |
+
remove_filter('the_content', array($this, 'block_theme_single_content'));
|
247 |
+
return $this->single_content($content);
|
248 |
+
}
|
249 |
}
|
app/libraries/qrcode.php
CHANGED
@@ -247,36 +247,6 @@ class QRtools {
|
|
247 |
$GLOBALS['qr_time_bench'][$markerId] = $time;
|
248 |
}
|
249 |
|
250 |
-
//----------------------------------------------------------------------
|
251 |
-
public function timeBenchmark()
|
252 |
-
{
|
253 |
-
self::markTime('finish');
|
254 |
-
|
255 |
-
$lastTime = 0;
|
256 |
-
$startTime = 0;
|
257 |
-
$p = 0;
|
258 |
-
|
259 |
-
echo '<table cellpadding="3" cellspacing="1">
|
260 |
-
<thead><tr style="border-bottom:1px solid silver"><td colspan="2" style="text-align:center">BENCHMARK</td></tr></thead>
|
261 |
-
<tbody>';
|
262 |
-
|
263 |
-
foreach($GLOBALS['qr_time_bench'] as $markerId=>$thisTime) {
|
264 |
-
if ($p > 0) {
|
265 |
-
echo '<tr><th style="text-align:right">till '.$markerId.': </th><td>'.number_format($thisTime-$lastTime, 6).'s</td></tr>';
|
266 |
-
} else {
|
267 |
-
$startTime = $thisTime;
|
268 |
-
}
|
269 |
-
|
270 |
-
$p++;
|
271 |
-
$lastTime = $thisTime;
|
272 |
-
}
|
273 |
-
|
274 |
-
echo '</tbody><tfoot>
|
275 |
-
<tr style="border-top:2px solid black"><th style="text-align:right">TOTAL: </th><td>'.number_format($lastTime-$startTime, 6).'s</td></tr>
|
276 |
-
</tfoot>
|
277 |
-
</table>';
|
278 |
-
}
|
279 |
-
|
280 |
}
|
281 |
|
282 |
//##########################################################################
|
247 |
$GLOBALS['qr_time_bench'][$markerId] = $time;
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
//##########################################################################
|
app/libraries/render.php
CHANGED
@@ -50,7 +50,9 @@ class MEC_render extends MEC_base
|
|
50 |
*/
|
51 |
public function shortcode($atts)
|
52 |
{
|
53 |
-
$calendar_id = isset($atts['id']) ? $atts['id'] : 0;
|
|
|
|
|
54 |
global $MEC_Shortcode_id;
|
55 |
$MEC_Shortcode_id = $calendar_id;
|
56 |
$atts = apply_filters('mec_calendar_atts', $this->parse($calendar_id, $atts));
|
@@ -1611,7 +1613,7 @@ class MEC_render extends MEC_base
|
|
1611 |
{
|
1612 |
$points[$key] = $marker;
|
1613 |
|
1614 |
-
$points[$key]['lightbox'] = '<div><div class="mec-event-detail mec-map-view-event-detail"><i class="mec-sl-map-marker"></i> '.(trim($marker['address']) ? $marker['address'] : $marker['name']).'</div><div>'
|
1615 |
$points[$key]['count'] = count($marker['event_ids']);
|
1616 |
$points[$key]['infowindow'] = $this->main->get_marker_infowindow($marker);
|
1617 |
}
|
50 |
*/
|
51 |
public function shortcode($atts)
|
52 |
{
|
53 |
+
$calendar_id = isset($atts['id']) ? (int) $atts['id'] : 0;
|
54 |
+
$atts['id'] = $calendar_id;
|
55 |
+
|
56 |
global $MEC_Shortcode_id;
|
57 |
$MEC_Shortcode_id = $calendar_id;
|
58 |
$atts = apply_filters('mec_calendar_atts', $this->parse($calendar_id, $atts));
|
1613 |
{
|
1614 |
$points[$key] = $marker;
|
1615 |
|
1616 |
+
$points[$key]['lightbox'] = '<div><div class="mec-event-detail mec-map-view-event-detail"><i class="mec-sl-map-marker"></i> '.(trim($marker['address']) ? esc_html($marker['address']) : esc_html($marker['name'])).'</div><div>'.MEC_kses::element($marker['lightbox']).'</div></div>';
|
1617 |
$points[$key]['count'] = count($marker['event_ids']);
|
1618 |
$points[$key]['infowindow'] = $this->main->get_marker_infowindow($marker);
|
1619 |
}
|
app/libraries/search.php
CHANGED
@@ -22,7 +22,7 @@ class MEC_search extends MEC_base
|
|
22 |
public function refine()
|
23 |
{
|
24 |
// Variables
|
25 |
-
$sf = (isset($_POST['sf']) ? $_POST['sf'] : array());
|
26 |
$id = (isset($_POST['id']) ? sanitize_text_field($_POST['id']) : '');
|
27 |
$current_field = (isset($_POST['last_field']) ? sanitize_text_field($_POST['last_field']) : '');
|
28 |
$category_type = (isset($_POST['category_type']) ? sanitize_text_field($_POST['category_type']) : 'dropdown');
|
@@ -43,7 +43,7 @@ class MEC_search extends MEC_base
|
|
43 |
$tax_query[] = array(
|
44 |
'taxonomy'=>'mec_label',
|
45 |
'field'=>'term_id',
|
46 |
-
'terms'=>explode(',', trim($sf['label'], ', '))
|
47 |
);
|
48 |
}
|
49 |
|
@@ -53,7 +53,7 @@ class MEC_search extends MEC_base
|
|
53 |
$tax_query[] = array(
|
54 |
'taxonomy'=>'mec_category',
|
55 |
'field'=>'term_id',
|
56 |
-
'terms'=>explode(',', trim($sf['category'], ', '))
|
57 |
);
|
58 |
}
|
59 |
|
@@ -63,14 +63,14 @@ class MEC_search extends MEC_base
|
|
63 |
$tax_query[] = array(
|
64 |
'taxonomy'=>'mec_location',
|
65 |
'field'=>'term_id',
|
66 |
-
'terms'=>explode(',', trim($sf['location'], ', '))
|
67 |
);
|
68 |
}
|
69 |
|
70 |
// Add event address to filter
|
71 |
if(isset($sf['address']) and trim($sf['address'], ', ') != '')
|
72 |
{
|
73 |
-
$get_locations_id = $this->get_locations_id($sf['address']);
|
74 |
$tax_query[] = array(
|
75 |
'taxonomy'=>'mec_location',
|
76 |
'field'=>'term_id',
|
@@ -84,7 +84,7 @@ class MEC_search extends MEC_base
|
|
84 |
$tax_query[] = array(
|
85 |
'taxonomy'=>'mec_organizer',
|
86 |
'field'=>'term_id',
|
87 |
-
'terms'=>explode(',', trim($sf['organizer'], ', '))
|
88 |
);
|
89 |
}
|
90 |
|
@@ -94,7 +94,7 @@ class MEC_search extends MEC_base
|
|
94 |
$tax_query[] = array(
|
95 |
'taxonomy'=>'mec_speaker',
|
96 |
'field'=>'term_id',
|
97 |
-
'terms'=>explode(',', trim($sf['speaker'], ', '))
|
98 |
);
|
99 |
}
|
100 |
|
@@ -104,7 +104,7 @@ class MEC_search extends MEC_base
|
|
104 |
$tax_query[] = array(
|
105 |
'taxonomy'=>'mec_event_type',
|
106 |
'field'=>'term_id',
|
107 |
-
'terms'=>explode(',', trim($sf['event_type'], ', '))
|
108 |
);
|
109 |
}
|
110 |
|
@@ -114,7 +114,7 @@ class MEC_search extends MEC_base
|
|
114 |
$tax_query[] = array(
|
115 |
'taxonomy'=>'mec_event_type_2',
|
116 |
'field'=>'term_id',
|
117 |
-
'terms'=>explode(',', trim($sf['event_type_2'], ', '))
|
118 |
);
|
119 |
}
|
120 |
|
@@ -126,7 +126,7 @@ class MEC_search extends MEC_base
|
|
126 |
$tax_query[] = array(
|
127 |
'taxonomy'=>'mec_tag',
|
128 |
'field'=>'term_id',
|
129 |
-
'terms'=>explode(',', trim($sf['tag'], ', '))
|
130 |
);
|
131 |
}
|
132 |
else
|
@@ -134,7 +134,7 @@ class MEC_search extends MEC_base
|
|
134 |
$tax_query[] = array(
|
135 |
'taxonomy'=>'mec_tag',
|
136 |
'field'=>'name',
|
137 |
-
'terms'=>explode(',', trim($sf['tag'], ', '))
|
138 |
);
|
139 |
}
|
140 |
}
|
@@ -151,7 +151,7 @@ class MEC_search extends MEC_base
|
|
151 |
{
|
152 |
$meta_query[] = array(
|
153 |
'key' => 'mec_cost',
|
154 |
-
'value' => $sf['cost-min'],
|
155 |
'type' => 'numeric',
|
156 |
'compare' => '>=',
|
157 |
);
|
@@ -162,7 +162,7 @@ class MEC_search extends MEC_base
|
|
162 |
{
|
163 |
$meta_query[] = array(
|
164 |
'key' => 'mec_cost',
|
165 |
-
'value' => $sf['cost-max'],
|
166 |
'type' => 'numeric',
|
167 |
'compare' => '<=',
|
168 |
);
|
@@ -175,7 +175,7 @@ class MEC_search extends MEC_base
|
|
175 |
'post_type' => $this->main->get_main_post_type(),
|
176 |
'post_status' => 'publish',
|
177 |
'posts_per_page' => '-1',
|
178 |
-
's' => ((isset($sf['s']) and trim($sf['s'])) ? $sf['s'] : NULL),
|
179 |
'tax_query' => $tax_query,
|
180 |
'meta_query' => $meta_query,
|
181 |
);
|
@@ -265,7 +265,7 @@ class MEC_search extends MEC_base
|
|
265 |
'hierarchical'=>true,
|
266 |
'show_option_none'=>$label,
|
267 |
'option_none_value'=>'',
|
268 |
-
'selected'=>(isset($sf['category']) ? $sf['category'] : ''),
|
269 |
'orderby'=>'name',
|
270 |
'order'=>'ASC',
|
271 |
'show_count'=>0,
|
@@ -274,7 +274,7 @@ class MEC_search extends MEC_base
|
|
274 |
}
|
275 |
elseif($category_type == 'checkboxes' and wp_count_terms(array('taxonomy' => 'mec_category')))
|
276 |
{
|
277 |
-
$selected = ((isset($sf['category']) and trim($sf['category'], ', ')) ? explode(',', trim($sf['category'], ', ')) : array());
|
278 |
|
279 |
$categories_html .= wp_terms_checklist(0, array
|
280 |
(
|
@@ -323,7 +323,7 @@ class MEC_search extends MEC_base
|
|
323 |
'hierarchical'=>true,
|
324 |
'show_option_none'=>$label,
|
325 |
'option_none_value'=>'',
|
326 |
-
'selected'=>(isset($sf['organizer']) ? $sf['organizer'] : ''),
|
327 |
'orderby'=>'name',
|
328 |
'order'=>'ASC',
|
329 |
'show_count'=>0,
|
@@ -343,7 +343,7 @@ class MEC_search extends MEC_base
|
|
343 |
'hierarchical'=>true,
|
344 |
'show_option_none'=>$label,
|
345 |
'option_none_value'=>'',
|
346 |
-
'selected'=>(isset($sf['speaker']) ? $sf['speaker'] : ''),
|
347 |
'orderby'=>'name',
|
348 |
'order'=>'ASC',
|
349 |
'show_count'=>0,
|
@@ -363,7 +363,7 @@ class MEC_search extends MEC_base
|
|
363 |
'hierarchical'=>true,
|
364 |
'show_option_none'=>$label,
|
365 |
'option_none_value'=>'',
|
366 |
-
'selected'=>(isset($sf['tag']) ? $sf['tag'] : ''),
|
367 |
'orderby'=>'name',
|
368 |
'order'=>'ASC',
|
369 |
'show_count'=>0,
|
@@ -383,7 +383,7 @@ class MEC_search extends MEC_base
|
|
383 |
'hierarchical'=>true,
|
384 |
'show_option_none'=>$label,
|
385 |
'option_none_value'=>'',
|
386 |
-
'selected'=>(isset($sf['label']) ? $sf['label'] : ''),
|
387 |
'orderby'=>'name',
|
388 |
'order'=>'ASC',
|
389 |
'show_count'=>0,
|
22 |
public function refine()
|
23 |
{
|
24 |
// Variables
|
25 |
+
$sf = (isset($_POST['sf']) ? $this->main->sanitize_deep_array($_POST['sf']) : array());
|
26 |
$id = (isset($_POST['id']) ? sanitize_text_field($_POST['id']) : '');
|
27 |
$current_field = (isset($_POST['last_field']) ? sanitize_text_field($_POST['last_field']) : '');
|
28 |
$category_type = (isset($_POST['category_type']) ? sanitize_text_field($_POST['category_type']) : 'dropdown');
|
43 |
$tax_query[] = array(
|
44 |
'taxonomy'=>'mec_label',
|
45 |
'field'=>'term_id',
|
46 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['label']), ', '))
|
47 |
);
|
48 |
}
|
49 |
|
53 |
$tax_query[] = array(
|
54 |
'taxonomy'=>'mec_category',
|
55 |
'field'=>'term_id',
|
56 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['category']), ', '))
|
57 |
);
|
58 |
}
|
59 |
|
63 |
$tax_query[] = array(
|
64 |
'taxonomy'=>'mec_location',
|
65 |
'field'=>'term_id',
|
66 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['location']), ', '))
|
67 |
);
|
68 |
}
|
69 |
|
70 |
// Add event address to filter
|
71 |
if(isset($sf['address']) and trim($sf['address'], ', ') != '')
|
72 |
{
|
73 |
+
$get_locations_id = $this->get_locations_id(sanitize_text_field($sf['address']));
|
74 |
$tax_query[] = array(
|
75 |
'taxonomy'=>'mec_location',
|
76 |
'field'=>'term_id',
|
84 |
$tax_query[] = array(
|
85 |
'taxonomy'=>'mec_organizer',
|
86 |
'field'=>'term_id',
|
87 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['organizer']), ', '))
|
88 |
);
|
89 |
}
|
90 |
|
94 |
$tax_query[] = array(
|
95 |
'taxonomy'=>'mec_speaker',
|
96 |
'field'=>'term_id',
|
97 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['speaker']), ', '))
|
98 |
);
|
99 |
}
|
100 |
|
104 |
$tax_query[] = array(
|
105 |
'taxonomy'=>'mec_event_type',
|
106 |
'field'=>'term_id',
|
107 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['event_type']), ', '))
|
108 |
);
|
109 |
}
|
110 |
|
114 |
$tax_query[] = array(
|
115 |
'taxonomy'=>'mec_event_type_2',
|
116 |
'field'=>'term_id',
|
117 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['event_type_2']), ', '))
|
118 |
);
|
119 |
}
|
120 |
|
126 |
$tax_query[] = array(
|
127 |
'taxonomy'=>'mec_tag',
|
128 |
'field'=>'term_id',
|
129 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['tag']), ', '))
|
130 |
);
|
131 |
}
|
132 |
else
|
134 |
$tax_query[] = array(
|
135 |
'taxonomy'=>'mec_tag',
|
136 |
'field'=>'name',
|
137 |
+
'terms'=>explode(',', trim(sanitize_text_field($sf['tag']), ', '))
|
138 |
);
|
139 |
}
|
140 |
}
|
151 |
{
|
152 |
$meta_query[] = array(
|
153 |
'key' => 'mec_cost',
|
154 |
+
'value' => sanitize_text_field($sf['cost-min']),
|
155 |
'type' => 'numeric',
|
156 |
'compare' => '>=',
|
157 |
);
|
162 |
{
|
163 |
$meta_query[] = array(
|
164 |
'key' => 'mec_cost',
|
165 |
+
'value' => sanitize_text_field($sf['cost-max']),
|
166 |
'type' => 'numeric',
|
167 |
'compare' => '<=',
|
168 |
);
|
175 |
'post_type' => $this->main->get_main_post_type(),
|
176 |
'post_status' => 'publish',
|
177 |
'posts_per_page' => '-1',
|
178 |
+
's' => ((isset($sf['s']) and trim($sf['s'])) ? sanitize_text_field($sf['s']) : NULL),
|
179 |
'tax_query' => $tax_query,
|
180 |
'meta_query' => $meta_query,
|
181 |
);
|
265 |
'hierarchical'=>true,
|
266 |
'show_option_none'=>$label,
|
267 |
'option_none_value'=>'',
|
268 |
+
'selected'=>(isset($sf['category']) ? sanitize_text_field($sf['category']) : ''),
|
269 |
'orderby'=>'name',
|
270 |
'order'=>'ASC',
|
271 |
'show_count'=>0,
|
274 |
}
|
275 |
elseif($category_type == 'checkboxes' and wp_count_terms(array('taxonomy' => 'mec_category')))
|
276 |
{
|
277 |
+
$selected = ((isset($sf['category']) and trim($sf['category'], ', ')) ? explode(',', trim(sanitize_text_field($sf['category']), ', ')) : array());
|
278 |
|
279 |
$categories_html .= wp_terms_checklist(0, array
|
280 |
(
|
323 |
'hierarchical'=>true,
|
324 |
'show_option_none'=>$label,
|
325 |
'option_none_value'=>'',
|
326 |
+
'selected'=>(isset($sf['organizer']) ? sanitize_text_field($sf['organizer']) : ''),
|
327 |
'orderby'=>'name',
|
328 |
'order'=>'ASC',
|
329 |
'show_count'=>0,
|
343 |
'hierarchical'=>true,
|
344 |
'show_option_none'=>$label,
|
345 |
'option_none_value'=>'',
|
346 |
+
'selected'=>(isset($sf['speaker']) ? sanitize_text_field($sf['speaker']) : ''),
|
347 |
'orderby'=>'name',
|
348 |
'order'=>'ASC',
|
349 |
'show_count'=>0,
|
363 |
'hierarchical'=>true,
|
364 |
'show_option_none'=>$label,
|
365 |
'option_none_value'=>'',
|
366 |
+
'selected'=>(isset($sf['tag']) ? sanitize_text_field($sf['tag']) : ''),
|
367 |
'orderby'=>'name',
|
368 |
'order'=>'ASC',
|
369 |
'show_count'=>0,
|
383 |
'hierarchical'=>true,
|
384 |
'show_option_none'=>$label,
|
385 |
'option_none_value'=>'',
|
386 |
+
'selected'=>(isset($sf['label']) ? sanitize_text_field($sf['label']) : ''),
|
387 |
'orderby'=>'name',
|
388 |
'order'=>'ASC',
|
389 |
'show_count'=>0,
|
app/libraries/skins.php
CHANGED
@@ -1128,7 +1128,7 @@ class MEC_skins extends MEC_base
|
|
1128 |
if($type == 'dropdown')
|
1129 |
{
|
1130 |
$output .='<div class="mec-dropdown-search">';
|
1131 |
-
$display_label == 1 ? $output .= '<label for="mec_sf_category_'
|
1132 |
|
1133 |
$output .='<i class="mec-sl-folder"></i>';
|
1134 |
$output .= wp_dropdown_categories(array
|
@@ -1152,13 +1152,13 @@ class MEC_skins extends MEC_base
|
|
1152 |
elseif($type == 'checkboxes' and wp_count_terms(array('taxonomy' => 'mec_category')))
|
1153 |
{
|
1154 |
$output .= '<div class="mec-checkboxes-search">';
|
1155 |
-
$display_label == 1 ? $output .='<label for="mec_sf_category_'
|
1156 |
$output .='<i class="mec-sl-folder"></i>';
|
1157 |
|
1158 |
$selected = ((isset($this->atts['category']) and trim($this->atts['category'])) ? explode(',', trim($this->atts['category'], ', ')) : array());
|
1159 |
|
1160 |
$output .= '<div class="mec-searchbar-category-wrap">';
|
1161 |
-
$output .= '<div id="mec_sf_category_'
|
1162 |
$output .= wp_terms_checklist(0, array
|
1163 |
(
|
1164 |
'echo'=>false,
|
@@ -1183,7 +1183,7 @@ class MEC_skins extends MEC_base
|
|
1183 |
if($type == 'dropdown')
|
1184 |
{
|
1185 |
$output .= '<div class="mec-dropdown-search">';
|
1186 |
-
$display_label == 1 ? $output .='<label for="mec_sf_location_'
|
1187 |
|
1188 |
$output .= '<i class="mec-sl-location-pin"></i>';
|
1189 |
$output .= wp_dropdown_categories(array
|
@@ -1212,7 +1212,7 @@ class MEC_skins extends MEC_base
|
|
1212 |
if($type == 'dropdown')
|
1213 |
{
|
1214 |
$output .= '<div class="mec-dropdown-search">';
|
1215 |
-
$display_label == 1 ? $output .='<label for="mec_sf_organizer_'
|
1216 |
$output .= '<i class="mec-sl-user"></i>';
|
1217 |
|
1218 |
$output .= wp_dropdown_categories(array
|
@@ -1241,7 +1241,7 @@ class MEC_skins extends MEC_base
|
|
1241 |
if($type == 'dropdown')
|
1242 |
{
|
1243 |
$output .= '<div class="mec-dropdown-search">';
|
1244 |
-
$display_label == 1 ? $output .='<label for="mec_sf_speaker_'
|
1245 |
$output .= '<i class="mec-sl-microphone"></i>';
|
1246 |
|
1247 |
$output .= wp_dropdown_categories(array
|
@@ -1270,7 +1270,7 @@ class MEC_skins extends MEC_base
|
|
1270 |
if($type == 'dropdown')
|
1271 |
{
|
1272 |
$output .= '<div class="mec-dropdown-search">';
|
1273 |
-
$display_label == 1 ? $output .='<label for="mec_sf_tag_'
|
1274 |
$output .= '<i class="mec-sl-tag"></i>';
|
1275 |
|
1276 |
$output .= wp_dropdown_categories(array
|
@@ -1298,7 +1298,7 @@ class MEC_skins extends MEC_base
|
|
1298 |
if($type == 'dropdown')
|
1299 |
{
|
1300 |
$output .= '<div class="mec-dropdown-search">';
|
1301 |
-
$display_label == 1 ? $output .='<label for="mec_sf_label_'
|
1302 |
$output .= '<i class="mec-sl-pin"></i>';
|
1303 |
|
1304 |
$output .= wp_dropdown_categories(array
|
@@ -1332,12 +1332,12 @@ class MEC_skins extends MEC_base
|
|
1332 |
if(isset($this->skin_options['default_view']) and $this->skin_options['default_view'] == 'list') array_push($skins, 'full_calendar');
|
1333 |
|
1334 |
$item = esc_html__('Select', 'modern-events-calendar-lite');
|
1335 |
-
$option = in_array($this->skin, $skins) ? '<option class="mec-none-item" value="none" selected="selected">'
|
1336 |
|
1337 |
-
$output .= '<div class="mec-date-search"><input type="hidden" id="mec-filter-none" value="'
|
1338 |
-
$display_label == 1 ? $output .='<label for="mec_sf_month_'
|
1339 |
$output .= '<i class="mec-sl-calendar"></i>
|
1340 |
-
<select id="mec_sf_month_'
|
1341 |
<option value="">'.esc_html__('Select Month','modern-events-calendar-lite').'</option>';
|
1342 |
|
1343 |
$output .= $option;
|
@@ -1345,11 +1345,11 @@ class MEC_skins extends MEC_base
|
|
1345 |
|
1346 |
for($i = 1; $i <= 12; $i++)
|
1347 |
{
|
1348 |
-
$output .= '<option value="'.($i < 10 ? '0'.$i : $i).'">'
|
1349 |
}
|
1350 |
|
1351 |
$output .= '</select>';
|
1352 |
-
$output .= '<select id="mec_sf_year_'
|
1353 |
|
1354 |
$start_year = $min_start_year = $this->db->select("SELECT MIN(cast(meta_value as unsigned)) AS date FROM `#__postmeta` WHERE `meta_key`='mec_start_date'", 'loadResult');
|
1355 |
$end_year = $max_end_year = $this->db->select("SELECT MAX(cast(meta_value as unsigned)) AS date FROM `#__postmeta` WHERE `meta_key`='mec_end_date'", 'loadResult');
|
@@ -1371,8 +1371,8 @@ class MEC_skins extends MEC_base
|
|
1371 |
|
1372 |
for($i = $start_year; $i <= $end_year; $i++)
|
1373 |
{
|
1374 |
-
$selected = (!in_array($this->skin, $skins) and $i == date('Y', $now)) ? 'selected
|
1375 |
-
$output .= '<option value="'
|
1376 |
}
|
1377 |
|
1378 |
$output .= '</select></div>';
|
@@ -1382,13 +1382,13 @@ class MEC_skins extends MEC_base
|
|
1382 |
$min_date = (isset($this->start_date) ? $this->start_date : NULL);
|
1383 |
|
1384 |
$output .= '<div class="mec-date-search">';
|
1385 |
-
$display_label == 1 ? $output .='<label for="mec_sf_date_start_'
|
1386 |
$output .= '<i class="mec-sl-calendar"></i>
|
1387 |
-
<input class="mec-col-3 mec_date_picker_dynamic_format_start" data-min="'
|
1388 |
-
id="mec_sf_date_start_'
|
1389 |
placeholder="'.esc_attr__('Start', 'modern-events-calendar-lite').'" autocomplete="off">
|
1390 |
<input class="mec-col-3 mec_date_picker_dynamic_format_end" type="text"
|
1391 |
-
id="mec_sf_date_end_'
|
1392 |
placeholder="'.esc_attr__('End', 'modern-events-calendar-lite').'" autocomplete="off">
|
1393 |
</div>';
|
1394 |
}
|
@@ -1401,10 +1401,10 @@ class MEC_skins extends MEC_base
|
|
1401 |
$this->main->load_time_picker_assets();
|
1402 |
|
1403 |
$output .= '<div class="mec-time-picker-search">';
|
1404 |
-
$display_label == 1 ? $output .='<label for="mec_sf_timepicker_start_'
|
1405 |
$output .= '<i class="mec-sl-clock"></i>
|
1406 |
-
<input type="text" class="mec-timepicker-start" id="mec_sf_timepicker_start_'
|
1407 |
-
<input type="text" class="mec-timepicker-end" id="mec_sf_timepicker_end_'
|
1408 |
</div>';
|
1409 |
}
|
1410 |
}
|
@@ -1416,9 +1416,9 @@ class MEC_skins extends MEC_base
|
|
1416 |
$placeholder = (isset($options['placeholder']) ? $options['placeholder'] : '');
|
1417 |
|
1418 |
$output .= '<div class="mec-text-input-search">';
|
1419 |
-
$display_label == 1 ? $output .='<label for="mec_sf_s_'
|
1420 |
$output .= '<i class="mec-sl-magnifier"></i>
|
1421 |
-
<input type="search" value="'.(isset($this->atts['s']) ? $this->atts['s'] : '').'" id="mec_sf_s_'
|
1422 |
</div>';
|
1423 |
}
|
1424 |
}
|
@@ -1430,9 +1430,9 @@ class MEC_skins extends MEC_base
|
|
1430 |
$placeholder = (isset($options['placeholder']) ? $options['placeholder'] : '');
|
1431 |
|
1432 |
$output .= '<div class="mec-text-address-search">';
|
1433 |
-
$display_label == 1 ? $output .='<label for="mec_sf_address_s_'
|
1434 |
$output .= '<i class="mec-sl-map"></i>
|
1435 |
-
<input type="search" value="'.(isset($this->atts['address']) ? $this->atts['address'] : '').'" id="mec_sf_address_s_'
|
1436 |
</div>';
|
1437 |
}
|
1438 |
}
|
@@ -1442,10 +1442,10 @@ class MEC_skins extends MEC_base
|
|
1442 |
if($type == 'minmax')
|
1443 |
{
|
1444 |
$output .= '<div class="mec-minmax-event-cost">';
|
1445 |
-
$display_label == 1 ? $output .='<label for="mec_sf_event_cost_min_'
|
1446 |
$output .= '<i class="mec-sl-credit-card"></i>
|
1447 |
-
<input type="number" min="0" step="0.01" value="'.(isset($this->atts['event-cost-min']) ? $this->atts['event-cost-min'] : '').'" id="mec_sf_event_cost_min_'
|
1448 |
-
<input type="number" min="0" step="0.01" value="'.(isset($this->atts['event-cost-max']) ? $this->atts['event-cost-max'] : '').'" id="mec_sf_event_cost_max_'
|
1449 |
</div>';
|
1450 |
}
|
1451 |
}
|
@@ -1650,8 +1650,8 @@ class MEC_skins extends MEC_base
|
|
1650 |
$time_format = get_option('time_format');
|
1651 |
|
1652 |
$output = '<div class="mec-detailed-time-wrapper">';
|
1653 |
-
$output .= '<div class="mec-detailed-time-start">'.sprintf(
|
1654 |
-
$output .= '<div class="mec-detailed-time-end">'.sprintf(
|
1655 |
$output .= '</div>';
|
1656 |
|
1657 |
return $output;
|
@@ -1691,7 +1691,7 @@ class MEC_skins extends MEC_base
|
|
1691 |
foreach($event->data->organizers as $organizer)
|
1692 |
{
|
1693 |
$organizer_url = !empty($organizer['url']) ? 'href="'. esc_url($organizer['url']) .'" target="_blank"' : 'href="#"';
|
1694 |
-
if(isset($organizer['name']) and trim($organizer['name'])) $output .= '<li class="mec-organizer-item"><a class="mec-color-hover" '.$organizer_url.'>' . trim($organizer['name']) . '</a></li>';
|
1695 |
}
|
1696 |
}
|
1697 |
|
@@ -1781,7 +1781,7 @@ class MEC_skins extends MEC_base
|
|
1781 |
|
1782 |
// Link is disabled
|
1783 |
if($method == 'no' and in_array($class, array('mec-booking-button', 'mec-detail-button', 'mec-booking-button mec-bg-color-hover mec-border-color-hover', 'mec-event-link'))) return '';
|
1784 |
-
elseif($method == 'no') return $title.$repeat_label;
|
1785 |
else
|
1786 |
{
|
1787 |
$sed_method = (isset($this->skin_options['sed_method']) ? $this->skin_options['sed_method'] : '');
|
@@ -1800,10 +1800,10 @@ class MEC_skins extends MEC_base
|
|
1800 |
$sed_method = ($sed_method ? $sed_method : '_self');
|
1801 |
}
|
1802 |
|
1803 |
-
$target = (!empty($sed_method) ? 'target="'
|
1804 |
$target = apply_filters('mec_event_link_change_target', $target, $event->data->ID);
|
1805 |
|
1806 |
-
return '<a '.($class ? 'class="'
|
1807 |
}
|
1808 |
|
1809 |
public function get_end_date()
|
@@ -1826,7 +1826,7 @@ class MEC_skins extends MEC_base
|
|
1826 |
{
|
1827 |
if(!isset($label['style']) or (isset($label['style']) and !trim($label['style']))) continue;
|
1828 |
|
1829 |
-
$captions .= '<span class="mec-event-label-captions '
|
1830 |
if($label['style'] == 'mec-label-featured') $captions .= esc_html__($label['name'], 'modern-events-calendar-lite');
|
1831 |
elseif($label['style'] == 'mec-label-canceled') $captions .= esc_html__($label['name'], 'modern-events-calendar-lite');
|
1832 |
elseif($label['style'] == 'mec-label-custom' and isset($label['name']) and trim($label['name'])) $captions .= esc_html__($label['name'], 'modern-events-calendar-lite');
|
1128 |
if($type == 'dropdown')
|
1129 |
{
|
1130 |
$output .='<div class="mec-dropdown-search">';
|
1131 |
+
$display_label == 1 ? $output .= '<label for="mec_sf_category_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1132 |
|
1133 |
$output .='<i class="mec-sl-folder"></i>';
|
1134 |
$output .= wp_dropdown_categories(array
|
1152 |
elseif($type == 'checkboxes' and wp_count_terms(array('taxonomy' => 'mec_category')))
|
1153 |
{
|
1154 |
$output .= '<div class="mec-checkboxes-search">';
|
1155 |
+
$display_label == 1 ? $output .='<label for="mec_sf_category_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1156 |
$output .='<i class="mec-sl-folder"></i>';
|
1157 |
|
1158 |
$selected = ((isset($this->atts['category']) and trim($this->atts['category'])) ? explode(',', trim($this->atts['category'], ', ')) : array());
|
1159 |
|
1160 |
$output .= '<div class="mec-searchbar-category-wrap">';
|
1161 |
+
$output .= '<div id="mec_sf_category_'.esc_attr($this->id).'">';
|
1162 |
$output .= wp_terms_checklist(0, array
|
1163 |
(
|
1164 |
'echo'=>false,
|
1183 |
if($type == 'dropdown')
|
1184 |
{
|
1185 |
$output .= '<div class="mec-dropdown-search">';
|
1186 |
+
$display_label == 1 ? $output .='<label for="mec_sf_location_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1187 |
|
1188 |
$output .= '<i class="mec-sl-location-pin"></i>';
|
1189 |
$output .= wp_dropdown_categories(array
|
1212 |
if($type == 'dropdown')
|
1213 |
{
|
1214 |
$output .= '<div class="mec-dropdown-search">';
|
1215 |
+
$display_label == 1 ? $output .='<label for="mec_sf_organizer_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1216 |
$output .= '<i class="mec-sl-user"></i>';
|
1217 |
|
1218 |
$output .= wp_dropdown_categories(array
|
1241 |
if($type == 'dropdown')
|
1242 |
{
|
1243 |
$output .= '<div class="mec-dropdown-search">';
|
1244 |
+
$display_label == 1 ? $output .='<label for="mec_sf_speaker_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1245 |
$output .= '<i class="mec-sl-microphone"></i>';
|
1246 |
|
1247 |
$output .= wp_dropdown_categories(array
|
1270 |
if($type == 'dropdown')
|
1271 |
{
|
1272 |
$output .= '<div class="mec-dropdown-search">';
|
1273 |
+
$display_label == 1 ? $output .='<label for="mec_sf_tag_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1274 |
$output .= '<i class="mec-sl-tag"></i>';
|
1275 |
|
1276 |
$output .= wp_dropdown_categories(array
|
1298 |
if($type == 'dropdown')
|
1299 |
{
|
1300 |
$output .= '<div class="mec-dropdown-search">';
|
1301 |
+
$display_label == 1 ? $output .='<label for="mec_sf_label_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1302 |
$output .= '<i class="mec-sl-pin"></i>';
|
1303 |
|
1304 |
$output .= wp_dropdown_categories(array
|
1332 |
if(isset($this->skin_options['default_view']) and $this->skin_options['default_view'] == 'list') array_push($skins, 'full_calendar');
|
1333 |
|
1334 |
$item = esc_html__('Select', 'modern-events-calendar-lite');
|
1335 |
+
$option = in_array($this->skin, $skins) ? '<option class="mec-none-item" value="none" selected="selected">'.esc_html($item).'</option>' : '';
|
1336 |
|
1337 |
+
$output .= '<div class="mec-date-search"><input type="hidden" id="mec-filter-none" value="'.esc_attr($item).'">';
|
1338 |
+
$display_label == 1 ? $output .='<label for="mec_sf_month_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1339 |
$output .= '<i class="mec-sl-calendar"></i>
|
1340 |
+
<select id="mec_sf_month_'.esc_attr($this->id).'">
|
1341 |
<option value="">'.esc_html__('Select Month','modern-events-calendar-lite').'</option>';
|
1342 |
|
1343 |
$output .= $option;
|
1345 |
|
1346 |
for($i = 1; $i <= 12; $i++)
|
1347 |
{
|
1348 |
+
$output .= '<option value="'.($i < 10 ? esc_attr('0'.$i) : esc_attr($i)).'">'.esc_html($this->main->date_i18n('F', mktime(0, 0, 0, $i, 10))).'</option>';
|
1349 |
}
|
1350 |
|
1351 |
$output .= '</select>';
|
1352 |
+
$output .= '<select id="mec_sf_year_'.esc_attr($this->id).'">'.$option;
|
1353 |
|
1354 |
$start_year = $min_start_year = $this->db->select("SELECT MIN(cast(meta_value as unsigned)) AS date FROM `#__postmeta` WHERE `meta_key`='mec_start_date'", 'loadResult');
|
1355 |
$end_year = $max_end_year = $this->db->select("SELECT MAX(cast(meta_value as unsigned)) AS date FROM `#__postmeta` WHERE `meta_key`='mec_end_date'", 'loadResult');
|
1371 |
|
1372 |
for($i = $start_year; $i <= $end_year; $i++)
|
1373 |
{
|
1374 |
+
$selected = (!in_array($this->skin, $skins) and $i == date('Y', $now)) ? 'selected' : '';
|
1375 |
+
$output .= '<option value="'.esc_attr($i).'" '.esc_attr($selected).'>'.esc_html($i).'</option>';
|
1376 |
}
|
1377 |
|
1378 |
$output .= '</select></div>';
|
1382 |
$min_date = (isset($this->start_date) ? $this->start_date : NULL);
|
1383 |
|
1384 |
$output .= '<div class="mec-date-search">';
|
1385 |
+
$display_label == 1 ? $output .='<label for="mec_sf_date_start_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1386 |
$output .= '<i class="mec-sl-calendar"></i>
|
1387 |
+
<input class="mec-col-3 mec_date_picker_dynamic_format_start" data-min="'.esc_attr($min_date).'" type="text"
|
1388 |
+
id="mec_sf_date_start_'.esc_attr($this->id).'"
|
1389 |
placeholder="'.esc_attr__('Start', 'modern-events-calendar-lite').'" autocomplete="off">
|
1390 |
<input class="mec-col-3 mec_date_picker_dynamic_format_end" type="text"
|
1391 |
+
id="mec_sf_date_end_'.esc_attr($this->id).'"
|
1392 |
placeholder="'.esc_attr__('End', 'modern-events-calendar-lite').'" autocomplete="off">
|
1393 |
</div>';
|
1394 |
}
|
1401 |
$this->main->load_time_picker_assets();
|
1402 |
|
1403 |
$output .= '<div class="mec-time-picker-search">';
|
1404 |
+
$display_label == 1 ? $output .='<label for="mec_sf_timepicker_start_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1405 |
$output .= '<i class="mec-sl-clock"></i>
|
1406 |
+
<input type="text" class="mec-timepicker-start" id="mec_sf_timepicker_start_'.esc_attr($this->id).'" placeholder="'.esc_html__('Start Time', 'modern-events-calendar-lite').'" data-format="'.esc_attr($this->main->get_hour_format()).'" />
|
1407 |
+
<input type="text" class="mec-timepicker-end" id="mec_sf_timepicker_end_'.esc_attr($this->id).'" placeholder="'.esc_html__('End Time', 'modern-events-calendar-lite').'" data-format="'.esc_attr($this->main->get_hour_format()).'" />
|
1408 |
</div>';
|
1409 |
}
|
1410 |
}
|
1416 |
$placeholder = (isset($options['placeholder']) ? $options['placeholder'] : '');
|
1417 |
|
1418 |
$output .= '<div class="mec-text-input-search">';
|
1419 |
+
$display_label == 1 ? $output .='<label for="mec_sf_s_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1420 |
$output .= '<i class="mec-sl-magnifier"></i>
|
1421 |
+
<input type="search" value="'.(isset($this->atts['s']) ? $this->atts['s'] : '').'" id="mec_sf_s_'.esc_attr($this->id).'" placeholder="'.esc_attr($placeholder).'" />
|
1422 |
</div>';
|
1423 |
}
|
1424 |
}
|
1430 |
$placeholder = (isset($options['placeholder']) ? $options['placeholder'] : '');
|
1431 |
|
1432 |
$output .= '<div class="mec-text-address-search">';
|
1433 |
+
$display_label == 1 ? $output .='<label for="mec_sf_address_s_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1434 |
$output .= '<i class="mec-sl-map"></i>
|
1435 |
+
<input type="search" value="'.(isset($this->atts['address']) ? $this->atts['address'] : '').'" id="mec_sf_address_s_'.esc_attr($this->id).'" placeholder="'.esc_attr($placeholder).'" />
|
1436 |
</div>';
|
1437 |
}
|
1438 |
}
|
1442 |
if($type == 'minmax')
|
1443 |
{
|
1444 |
$output .= '<div class="mec-minmax-event-cost">';
|
1445 |
+
$display_label == 1 ? $output .='<label for="mec_sf_event_cost_min_'.esc_attr($this->id).'">'.esc_html($label).': </label>' : null;
|
1446 |
$output .= '<i class="mec-sl-credit-card"></i>
|
1447 |
+
<input type="number" min="0" step="0.01" value="'.(isset($this->atts['event-cost-min']) ? $this->atts['event-cost-min'] : '').'" id="mec_sf_event_cost_min_'.esc_attr($this->id).'" class="mec-minmax-price" placeholder="'.esc_attr__('Min Price', 'modern-events-calendar-lite').'" />
|
1448 |
+
<input type="number" min="0" step="0.01" value="'.(isset($this->atts['event-cost-max']) ? $this->atts['event-cost-max'] : '').'" id="mec_sf_event_cost_max_'.esc_attr($this->id).'" class="mec-minmax-price" placeholder="'.esc_attr__('Max Price', 'modern-events-calendar-lite').'" />
|
1449 |
</div>';
|
1450 |
}
|
1451 |
}
|
1650 |
$time_format = get_option('time_format');
|
1651 |
|
1652 |
$output = '<div class="mec-detailed-time-wrapper">';
|
1653 |
+
$output .= '<div class="mec-detailed-time-start">'.sprintf(esc_html__('Start from: %s - %s', 'modern-events-calendar-lite'), date_i18n($date_format, strtotime($from)), date_i18n($time_format, strtotime($from.' '.$start_time))).'</div>';
|
1654 |
+
$output .= '<div class="mec-detailed-time-end">'.sprintf(esc_html__('End at: %s - %s', 'modern-events-calendar-lite'), date_i18n($date_format, strtotime($to)), date_i18n($time_format, strtotime($to.' '.$end_time))).'</div>';
|
1655 |
$output .= '</div>';
|
1656 |
|
1657 |
return $output;
|
1691 |
foreach($event->data->organizers as $organizer)
|
1692 |
{
|
1693 |
$organizer_url = !empty($organizer['url']) ? 'href="'. esc_url($organizer['url']) .'" target="_blank"' : 'href="#"';
|
1694 |
+
if(isset($organizer['name']) and trim($organizer['name'])) $output .= '<li class="mec-organizer-item"><a class="mec-color-hover" '.$organizer_url.'>' . esc_html(trim($organizer['name'])) . '</a></li>';
|
1695 |
}
|
1696 |
}
|
1697 |
|
1781 |
|
1782 |
// Link is disabled
|
1783 |
if($method == 'no' and in_array($class, array('mec-booking-button', 'mec-detail-button', 'mec-booking-button mec-bg-color-hover mec-border-color-hover', 'mec-event-link'))) return '';
|
1784 |
+
elseif($method == 'no') return MEC_kses::form($title.$repeat_label);
|
1785 |
else
|
1786 |
{
|
1787 |
$sed_method = (isset($this->skin_options['sed_method']) ? $this->skin_options['sed_method'] : '');
|
1800 |
$sed_method = ($sed_method ? $sed_method : '_self');
|
1801 |
}
|
1802 |
|
1803 |
+
$target = (!empty($sed_method) ? 'target="'.esc_attr($sed_method).'" rel="noopener"' : '');
|
1804 |
$target = apply_filters('mec_event_link_change_target', $target, $event->data->ID);
|
1805 |
|
1806 |
+
return '<a '.($class ? 'class="'.esc_attr($class).'"' : '').' '.($attributes ? $attributes : '').' data-event-id="'.esc_attr($event->data->ID).'" href="'.esc_url($this->main->get_event_date_permalink($event, $event->date['start']['date'])).'" '.$target.'>'.MEC_kses::form($title).'</a>'.MEC_kses::element($repeat_label);
|
1807 |
}
|
1808 |
|
1809 |
public function get_end_date()
|
1826 |
{
|
1827 |
if(!isset($label['style']) or (isset($label['style']) and !trim($label['style']))) continue;
|
1828 |
|
1829 |
+
$captions .= '<span class="mec-event-label-captions '.esc_attr($extra_class).'" style="--background-color: '.esc_attr($label['color']).';background-color: '.esc_attr($label['color']).'">';
|
1830 |
if($label['style'] == 'mec-label-featured') $captions .= esc_html__($label['name'], 'modern-events-calendar-lite');
|
1831 |
elseif($label['style'] == 'mec-label-canceled') $captions .= esc_html__($label['name'], 'modern-events-calendar-lite');
|
1832 |
elseif($label['style'] == 'mec-label-custom' and isset($label['name']) and trim($label['name'])) $captions .= esc_html__($label['name'], 'modern-events-calendar-lite');
|
app/libraries/transaction.php
CHANGED
@@ -59,8 +59,8 @@ class MEC_transaction extends MEC_base
|
|
59 |
$total = $this->get_total();
|
60 |
$payable = $this->get_payable();
|
61 |
|
62 |
-
if($total == $payable) return '<span class="mec-transaction-price">'
|
63 |
-
else return '<span class="mec-transaction-price"><span class="mec-line-through">'
|
64 |
}
|
65 |
|
66 |
public function render_price($amount)
|
@@ -94,7 +94,7 @@ class MEC_transaction extends MEC_base
|
|
94 |
public function get_event_link()
|
95 |
{
|
96 |
$event = $this->get_event();
|
97 |
-
return '<a href="'.esc_url(get_permalink($event)).'" target="_blank">'
|
98 |
}
|
99 |
|
100 |
public function get_event_featured_image()
|
@@ -148,9 +148,9 @@ class MEC_transaction extends MEC_base
|
|
148 |
$names = array_unique($row['names']);
|
149 |
|
150 |
$names_html = '';
|
151 |
-
foreach($names as $name) $names_html .= '<h6>'
|
152 |
|
153 |
-
$html .= '<li><h5>'
|
154 |
}
|
155 |
|
156 |
$html .= '</ul>';
|
@@ -177,7 +177,7 @@ class MEC_transaction extends MEC_base
|
|
177 |
{
|
178 |
$times = explode(':', $timestamp);
|
179 |
|
180 |
-
$html .= '<li>'.sprintf(
|
181 |
}
|
182 |
|
183 |
$html .= '</ul>';
|
59 |
$total = $this->get_total();
|
60 |
$payable = $this->get_payable();
|
61 |
|
62 |
+
if($total == $payable) return '<span class="mec-transaction-price">'.esc_html($this->render_price($payable)).'</span>';
|
63 |
+
else return '<span class="mec-transaction-price"><span class="mec-line-through">'.esc_html($this->render_price($total)).'</span><br>'.esc_html($this->render_price($payable)).'</span>';
|
64 |
}
|
65 |
|
66 |
public function render_price($amount)
|
94 |
public function get_event_link()
|
95 |
{
|
96 |
$event = $this->get_event();
|
97 |
+
return '<a href="'.esc_url(get_permalink($event)).'" target="_blank">'.esc_html($event->post_title).'</a>';
|
98 |
}
|
99 |
|
100 |
public function get_event_featured_image()
|
148 |
$names = array_unique($row['names']);
|
149 |
|
150 |
$names_html = '';
|
151 |
+
foreach($names as $name) $names_html .= '<h6>'.esc_html($name).'</h6>';
|
152 |
|
153 |
+
$html .= '<li><h5>'.esc_html($row['name']).($row['count'] > 1 ? esc_html(' ('.$row['count'].')') : '').'</h5>'.$names_html.'</li>';
|
154 |
}
|
155 |
|
156 |
$html .= '</ul>';
|
177 |
{
|
178 |
$times = explode(':', $timestamp);
|
179 |
|
180 |
+
$html .= '<li>'.sprintf(esc_html__('%s to %s', 'modern-events-calendar-lite'), $this->main->date_i18n($date_format.' '.$time_format, $times[0]), $this->main->date_i18n($date_format.' '.$time_format, $times[1])).'</li>';
|
181 |
}
|
182 |
|
183 |
$html .= '</ul>';
|
app/modules/attendees-list/details.php
CHANGED
@@ -62,7 +62,7 @@ $u = $this->getUser();
|
|
62 |
foreach($attendee_bookings as $booking_id) $total_attendees += $book->get_total_attendees($booking_id);
|
63 |
?>
|
64 |
<div class="mec-attendee-profile-link">
|
65 |
-
<?php echo '<a href="'
|
66 |
</div>
|
67 |
|
68 |
<!-- MEC BuddyPress Integration Attendees Modules -->
|
62 |
foreach($attendee_bookings as $booking_id) $total_attendees += $book->get_total_attendees($booking_id);
|
63 |
?>
|
64 |
<div class="mec-attendee-profile-link">
|
65 |
+
<?php echo '<a href="'.esc_url($link).'">'.esc_html($name).'</a>' . '<span class="mec-attendee-profile-ticket-number mec-bg-color">'. esc_html($total_attendees) .'</span>' . '<span class="mec-color-hover"> ' . esc_html__( 'tickets' , 'modern-events-calendar-lite' ) . '<i class="mec-sl-arrow-down"></i></span>' ; ?>
|
66 |
</div>
|
67 |
|
68 |
<!-- MEC BuddyPress Integration Attendees Modules -->
|
app/modules/booking/default.php
CHANGED
@@ -17,11 +17,8 @@ if(!isset($settings['booking_status']) or (isset($settings['booking_status']) an
|
|
17 |
// Skip First Step
|
18 |
$skip_step1 = (isset($settings['booking_skip_step1']) and $settings['booking_skip_step1']) ? true : false;
|
19 |
|
20 |
-
$uniqueid = '';
|
21 |
-
$uniqueid = apply_filters('mec_booking_uniqueid_value', $uniqueid);
|
22 |
-
|
23 |
$event = $event[0];
|
24 |
-
$uniqueid = (isset($uniqueid) && !empty($uniqueid) ? $uniqueid : $event->data->ID);
|
25 |
|
26 |
$tickets = isset($event->data->tickets) ? $event->data->tickets : array();
|
27 |
$dates = isset($event->dates) ? $event->dates : $event->date;
|
@@ -51,23 +48,23 @@ list($user_ticket_limit, $user_ticket_unlimited) = $book->get_user_booking_limit
|
|
51 |
|
52 |
// Generate JavaScript code of Booking Module
|
53 |
$javascript = '<script type="text/javascript">
|
54 |
-
var mec_tickets_availability_ajax'
|
55 |
-
function mec_get_tickets_availability'
|
56 |
{
|
57 |
if(!date) return;
|
58 |
|
59 |
// Add loading Class to the ticket list
|
60 |
jQuery(".mec-event-tickets-list").addClass("loading");
|
61 |
-
jQuery("#mec_booking'
|
62 |
|
63 |
// Abort previous request
|
64 |
-
if(mec_tickets_availability_ajax'
|
65 |
|
66 |
// Start Preloader
|
67 |
jQuery(".mec-event-tickets-list").addClass("mec-cover-loader");
|
68 |
jQuery(".mec-event-tickets-list").append("<div class=\"mec-loader\"></div>");
|
69 |
|
70 |
-
mec_tickets_availability_ajax'
|
71 |
{
|
72 |
type: "GET",
|
73 |
url: "'.admin_url('admin-ajax.php', NULL).'",
|
@@ -76,11 +73,11 @@ function mec_get_tickets_availability'.$uniqueid.'(event_id, date)
|
|
76 |
success: function(data)
|
77 |
{
|
78 |
// Remove the loading Class to the ticket list
|
79 |
-
jQuery("#mec_booking'
|
80 |
-
jQuery("#mec_booking'
|
81 |
|
82 |
// Set Total Booking Limit
|
83 |
-
if(typeof data.availability.total != "undefined") jQuery("#mec_booking'
|
84 |
|
85 |
var available_spots = 0;
|
86 |
for(ticket_id in data.availability)
|
@@ -93,36 +90,36 @@ function mec_get_tickets_availability'.$uniqueid.'(event_id, date)
|
|
93 |
else available_spots = "-1";
|
94 |
}
|
95 |
|
96 |
-
jQuery("#mec_booking'
|
97 |
|
98 |
-
if(data.availability["stop_selling_"+ticket_id]) jQuery("#mec_booking'
|
99 |
-
else jQuery("#mec_booking'
|
100 |
|
101 |
// There are some available spots
|
102 |
if(limit != "0")
|
103 |
{
|
104 |
-
jQuery("#mec_booking'
|
105 |
-
jQuery("#mec_booking'
|
106 |
}
|
107 |
// All spots are sold.
|
108 |
else
|
109 |
{
|
110 |
-
jQuery("#mec_booking'
|
111 |
-
jQuery("#mec_booking'
|
112 |
}
|
113 |
|
114 |
if(limit == "-1")
|
115 |
{
|
116 |
-
jQuery("#mec_booking'
|
117 |
-
jQuery("#mec_booking'
|
118 |
}
|
119 |
else
|
120 |
{
|
121 |
-
var cur_count = jQuery("#mec_booking'
|
122 |
-
if(cur_count > limit) jQuery("#mec_booking'
|
123 |
|
124 |
-
jQuery("#mec_booking'
|
125 |
-
jQuery("#mec_booking'
|
126 |
}
|
127 |
}
|
128 |
|
@@ -130,7 +127,7 @@ function mec_get_tickets_availability'.$uniqueid.'(event_id, date)
|
|
130 |
{
|
131 |
var price_label = data.prices[ticket_id];
|
132 |
|
133 |
-
jQuery("#mec_booking'
|
134 |
}
|
135 |
|
136 |
// Remove Preloader
|
@@ -138,41 +135,41 @@ function mec_get_tickets_availability'.$uniqueid.'(event_id, date)
|
|
138 |
jQuery(".mec-event-tickets-list").removeClass("mec-cover-loader");
|
139 |
|
140 |
// Disable or Enable Button
|
141 |
-
if(available_spots == "0") jQuery("#mec_booking'
|
142 |
-
else jQuery("#mec_booking'
|
143 |
},
|
144 |
error: function(jqXHR, textStatus, errorThrown)
|
145 |
{
|
146 |
// Remove the loading Class to the ticket list
|
147 |
-
jQuery("#mec_booking'
|
148 |
}
|
149 |
});
|
150 |
}
|
151 |
|
152 |
-
function mec_get_tickets_availability_multiple'
|
153 |
{
|
154 |
-
var $ticket_list = jQuery("#mec_booking'
|
155 |
|
156 |
// Add loading Class to the ticket list
|
157 |
$ticket_list.addClass("loading");
|
158 |
-
jQuery("#mec_booking'
|
159 |
|
160 |
// Abort previous request
|
161 |
-
if(mec_tickets_availability_ajax'
|
162 |
|
163 |
// Start Preloader
|
164 |
$ticket_list.addClass("mec-cover-loader");
|
165 |
$ticket_list.append("<div class=\"mec-loader\"></div>");
|
166 |
|
167 |
var date = "";
|
168 |
-
jQuery("#mec_booking'
|
169 |
{
|
170 |
date += "date[]="+jQuery(this).val()+"&";
|
171 |
});
|
172 |
|
173 |
date = date.slice(0, -1);
|
174 |
|
175 |
-
mec_tickets_availability_ajax'
|
176 |
{
|
177 |
type: "GET",
|
178 |
url: "'.admin_url('admin-ajax.php', NULL).'",
|
@@ -182,10 +179,10 @@ function mec_get_tickets_availability_multiple'.$uniqueid.'(event_id)
|
|
182 |
{
|
183 |
// Remove the loading Class to the ticket list
|
184 |
$ticket_list.removeClass("loading");
|
185 |
-
jQuery("#mec_booking'
|
186 |
|
187 |
// Set Total Booking Limit
|
188 |
-
if(typeof data.availability.total != "undefined") jQuery("#mec_booking'
|
189 |
|
190 |
var available_spots = 0;
|
191 |
for(ticket_id in data.availability)
|
@@ -198,42 +195,42 @@ function mec_get_tickets_availability_multiple'.$uniqueid.'(event_id)
|
|
198 |
else available_spots = "-1";
|
199 |
}
|
200 |
|
201 |
-
jQuery("#mec_booking'
|
202 |
|
203 |
-
if(data.availability["stop_selling_"+ticket_id]) jQuery("#mec_booking'
|
204 |
-
else jQuery("#mec_booking'
|
205 |
|
206 |
// There are some available spots
|
207 |
if(limit != "0")
|
208 |
{
|
209 |
-
jQuery("#mec_booking'
|
210 |
-
jQuery("#mec_booking'
|
211 |
}
|
212 |
// All spots are sold.
|
213 |
else
|
214 |
{
|
215 |
-
jQuery("#mec_booking'
|
216 |
-
jQuery("#mec_booking'
|
217 |
}
|
218 |
|
219 |
if(limit == "-1")
|
220 |
{
|
221 |
-
jQuery("#mec_booking'
|
222 |
-
jQuery("#mec_booking'
|
223 |
}
|
224 |
else
|
225 |
{
|
226 |
-
var cur_count = jQuery("#mec_booking'
|
227 |
-
if(cur_count > limit) jQuery("#mec_booking'
|
228 |
|
229 |
-
jQuery("#mec_booking'
|
230 |
-
jQuery("#mec_booking'
|
231 |
}
|
232 |
}
|
233 |
|
234 |
// Disable or Enable Button
|
235 |
-
if(available_spots == "0") jQuery("#mec_booking'
|
236 |
-
else jQuery("#mec_booking'
|
237 |
|
238 |
// Remove Preloader
|
239 |
jQuery(".mec-loader").remove();
|
@@ -247,67 +244,67 @@ function mec_get_tickets_availability_multiple'.$uniqueid.'(event_id)
|
|
247 |
});
|
248 |
}
|
249 |
|
250 |
-
function mec_check_tickets_availability'
|
251 |
{
|
252 |
-
var total = jQuery("#mec_book_form_tickets_container'
|
253 |
-
var max = jQuery("#mec_booking'
|
254 |
|
255 |
var sum = 0;
|
256 |
-
jQuery("#mec_booking'
|
257 |
{
|
258 |
sum += parseInt(jQuery(this).val(), 10);
|
259 |
});
|
260 |
|
261 |
if(total != "-1" && max > (total - (sum - count))) max = (total - (sum - count));
|
262 |
|
263 |
-
if(parseInt(count) > parseInt(max)) jQuery("#mec_booking'
|
264 |
}
|
265 |
|
266 |
-
function mec_toggle_first_for_all'
|
267 |
{
|
268 |
-
var status = jQuery("#mec_book_first_for_all'
|
269 |
|
270 |
if(status)
|
271 |
{
|
272 |
-
jQuery("#mec_booking'
|
273 |
jQuery(context).parent().find("input[type=\"checkbox\"]").attr("checked", "checked");
|
274 |
}
|
275 |
else
|
276 |
{
|
277 |
-
jQuery("#mec_booking'
|
278 |
jQuery(context).parent().find("input[type=\"checkbox\"]").removeAttr("checked");
|
279 |
}
|
280 |
}
|
281 |
|
282 |
-
function mec_label_first_for_all'
|
283 |
{
|
284 |
-
var input = jQuery("#mec_book_first_for_all'
|
285 |
if(!input.is(":checked"))
|
286 |
{
|
287 |
input.prop("checked", true);
|
288 |
-
mec_toggle_first_for_all'
|
289 |
}
|
290 |
else
|
291 |
{
|
292 |
input.prop("checked", false);
|
293 |
-
mec_toggle_first_for_all'
|
294 |
}
|
295 |
}
|
296 |
|
297 |
-
function mec_book_form_submit'
|
298 |
{
|
299 |
-
var step = jQuery("#mec_book_form'
|
300 |
|
301 |
// Validate Checkboxes and Radio Buttons on Booking Form
|
302 |
if(step == 2)
|
303 |
{
|
304 |
var valid = true;
|
305 |
|
306 |
-
jQuery("#mec_book_form'
|
307 |
{
|
308 |
var ticket_id = jQuery(this).data("ticket-id");
|
309 |
|
310 |
-
if(!jQuery("#mec_book_form'
|
311 |
{
|
312 |
valid = false;
|
313 |
jQuery(this).addClass("mec-red-notification");
|
@@ -322,11 +319,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
322 |
}
|
323 |
});
|
324 |
|
325 |
-
jQuery("#mec_book_form'
|
326 |
{
|
327 |
var ticket_id = jQuery(this).data("ticket-id");
|
328 |
|
329 |
-
if(!jQuery("#mec_book_form'
|
330 |
{
|
331 |
valid = false;
|
332 |
jQuery(this).addClass("mec-red-notification");
|
@@ -341,12 +338,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
341 |
}
|
342 |
});
|
343 |
|
344 |
-
jQuery("#mec_book_form'
|
345 |
{
|
346 |
var ticket_id = jQuery(this).data("ticket-id");
|
347 |
var field_id = jQuery(this).data("field-id");
|
348 |
|
349 |
-
if(!jQuery("#mec_book_form'
|
350 |
{
|
351 |
valid = false;
|
352 |
jQuery(this).addClass("mec-red-notification");
|
@@ -361,12 +358,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
361 |
}
|
362 |
});
|
363 |
|
364 |
-
jQuery("#mec_book_form'
|
365 |
{
|
366 |
var ticket_id = jQuery(this).data("ticket-id");
|
367 |
var field_id = jQuery(this).data("field-id");
|
368 |
|
369 |
-
if(!jQuery("#mec_book_form'
|
370 |
{
|
371 |
valid = false;
|
372 |
jQuery(this).addClass("mec-red-notification");
|
@@ -381,12 +378,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
381 |
}
|
382 |
});
|
383 |
|
384 |
-
jQuery("#mec_book_form'
|
385 |
{
|
386 |
var ticket_id = jQuery(this).data("ticket-id");
|
387 |
var field_id = jQuery(this).data("field-id");
|
388 |
|
389 |
-
if(!jQuery("#mec_book_form'
|
390 |
{
|
391 |
valid = false;
|
392 |
jQuery(this).addClass("mec-red-notification");
|
@@ -401,12 +398,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
401 |
}
|
402 |
});
|
403 |
|
404 |
-
jQuery("#mec_book_form'
|
405 |
{
|
406 |
var ticket_id = jQuery(this).data("ticket-id");
|
407 |
var field_id = jQuery(this).data("field-id");
|
408 |
|
409 |
-
if(!jQuery("#mec_book_form'
|
410 |
{
|
411 |
valid = false;
|
412 |
jQuery(this).addClass("mec-red-notification");
|
@@ -421,12 +418,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
421 |
}
|
422 |
});
|
423 |
|
424 |
-
jQuery("#mec_book_form'
|
425 |
{
|
426 |
var ticket_id = jQuery(this).data("ticket-id");
|
427 |
var field_id = jQuery(this).data("field-id");
|
428 |
|
429 |
-
if(!jQuery("#mec_book_form'
|
430 |
{
|
431 |
valid = false;
|
432 |
jQuery(this).addClass("mec-red-notification");
|
@@ -441,12 +438,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
441 |
}
|
442 |
});
|
443 |
|
444 |
-
jQuery("#mec_book_form'
|
445 |
{
|
446 |
var ticket_id = jQuery(this).data("ticket-id");
|
447 |
var field_id = jQuery(this).data("field-id");
|
448 |
|
449 |
-
if(!jQuery("#mec_book_form'
|
450 |
{
|
451 |
valid = false;
|
452 |
jQuery(this).addClass("mec-red-notification");
|
@@ -461,12 +458,12 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
461 |
}
|
462 |
});
|
463 |
|
464 |
-
jQuery("#mec_book_form'
|
465 |
{
|
466 |
var ticket_id = jQuery(this).data("ticket-id");
|
467 |
var field_id = jQuery(this).data("field-id");
|
468 |
|
469 |
-
if(!jQuery("#mec_book_form'
|
470 |
{
|
471 |
valid = false;
|
472 |
jQuery(this).addClass("mec-red-notification");
|
@@ -482,11 +479,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
482 |
});
|
483 |
|
484 |
// Fixed Fields
|
485 |
-
jQuery("#mec_book_form'
|
486 |
{
|
487 |
var field_id = jQuery(this).data("field-id");
|
488 |
|
489 |
-
if(!jQuery("#mec_book_form'
|
490 |
{
|
491 |
valid = false;
|
492 |
jQuery(this).addClass("mec-red-notification");
|
@@ -501,11 +498,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
501 |
}
|
502 |
});
|
503 |
|
504 |
-
jQuery("#mec_book_form'
|
505 |
{
|
506 |
var field_id = jQuery(this).data("field-id");
|
507 |
|
508 |
-
if(!jQuery("#mec_book_form'
|
509 |
{
|
510 |
valid = false;
|
511 |
jQuery(this).addClass("mec-red-notification");
|
@@ -520,11 +517,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
520 |
}
|
521 |
});
|
522 |
|
523 |
-
jQuery("#mec_book_form'
|
524 |
{
|
525 |
var field_id = jQuery(this).data("field-id");
|
526 |
|
527 |
-
if(!jQuery("#mec_book_form'
|
528 |
{
|
529 |
valid = false;
|
530 |
jQuery(this).addClass("mec-red-notification");
|
@@ -539,11 +536,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
539 |
}
|
540 |
});
|
541 |
|
542 |
-
jQuery("#mec_book_form'
|
543 |
{
|
544 |
var field_id = jQuery(this).data("field-id");
|
545 |
|
546 |
-
if(!jQuery("#mec_book_form'
|
547 |
{
|
548 |
valid = false;
|
549 |
jQuery(this).addClass("mec-red-notification");
|
@@ -558,11 +555,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
558 |
}
|
559 |
});
|
560 |
|
561 |
-
jQuery("#mec_book_form'
|
562 |
{
|
563 |
var field_id = jQuery(this).data("field-id");
|
564 |
|
565 |
-
if(!jQuery("#mec_book_form'
|
566 |
{
|
567 |
valid = false;
|
568 |
jQuery(this).addClass("mec-red-notification");
|
@@ -577,11 +574,11 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
577 |
}
|
578 |
});
|
579 |
|
580 |
-
jQuery("#mec_book_form'
|
581 |
{
|
582 |
var field_id = jQuery(this).data("field-id");
|
583 |
|
584 |
-
if(!jQuery("#mec_book_form'
|
585 |
{
|
586 |
valid = false;
|
587 |
jQuery(this).addClass("mec-red-notification");
|
@@ -597,7 +594,7 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
597 |
});
|
598 |
|
599 |
// Manual Username and Password
|
600 |
-
jQuery("#mec_book_form'
|
601 |
{
|
602 |
if(!jQuery(this).val())
|
603 |
{
|
@@ -618,28 +615,28 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
618 |
}
|
619 |
|
620 |
// Add loading Class to the button
|
621 |
-
jQuery("#mec_book_form'
|
622 |
-
jQuery("#mec_booking_message'
|
623 |
|
624 |
var fileToUpload = false;
|
625 |
|
626 |
-
var data = jQuery("#mec_book_form'
|
627 |
jQuery.ajax(
|
628 |
{
|
629 |
type: "POST",
|
630 |
url: "'.admin_url('admin-ajax.php', NULL).'",
|
631 |
-
data: new FormData(jQuery("#mec_book_form'
|
632 |
dataType: "JSON",
|
633 |
processData: false,
|
634 |
contentType: false,
|
635 |
cache: false,
|
636 |
headers: {
|
637 |
-
"Accept-Language": "'
|
638 |
},
|
639 |
success: function(data)
|
640 |
{
|
641 |
// Remove the loading Class to the button
|
642 |
-
jQuery("#mec_book_form'
|
643 |
|
644 |
if(data.success)
|
645 |
{
|
@@ -653,17 +650,17 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
653 |
}
|
654 |
else
|
655 |
{
|
656 |
-
jQuery("#mec_booking'
|
657 |
return;
|
658 |
}
|
659 |
}
|
660 |
|
661 |
-
jQuery("#mec_booking'
|
662 |
|
663 |
// Show Invoice Link
|
664 |
if(typeof data.data.invoice_link != "undefined" && data.data.invoice_link != "")
|
665 |
{
|
666 |
-
jQuery("#mec_booking'
|
667 |
}
|
668 |
|
669 |
// Redirect to thank you page
|
@@ -672,14 +669,14 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
672 |
setTimeout(function(){window.location.href = data.data.redirect_to;}, 2000);
|
673 |
}
|
674 |
|
675 |
-
if(!jQuery("#mec_booking'
|
676 |
{
|
677 |
jQuery("html,body").animate({
|
678 |
-
scrollTop: jQuery("#mec_booking'
|
679 |
}, "slow");
|
680 |
}
|
681 |
|
682 |
-
jQuery("#mec_booking'
|
683 |
|
684 |
if(jQuery(".mec-single-fluent-wrap").length>0 && typeof jQuery.fn.niceSelect !== "undefined")
|
685 |
{
|
@@ -688,26 +685,26 @@ function mec_book_form_submit'.$uniqueid.'()
|
|
688 |
}
|
689 |
else
|
690 |
{
|
691 |
-
jQuery("#mec_booking'
|
692 |
-
jQuery("#mec_booking_message'
|
693 |
}
|
694 |
},
|
695 |
error: function(jqXHR, textStatus, errorThrown)
|
696 |
{
|
697 |
// Remove the loading Class to the button
|
698 |
-
jQuery("#mec_book_form'
|
699 |
-
jQuery("#mec_booking'
|
700 |
}
|
701 |
});
|
702 |
}
|
703 |
|
704 |
-
function mec_book_apply_coupon'
|
705 |
{
|
706 |
// Add loading Class to the button
|
707 |
-
jQuery("#mec_book_form_coupon'
|
708 |
-
jQuery("#mec_booking'
|
709 |
|
710 |
-
var data = jQuery("#mec_book_form_coupon'
|
711 |
jQuery.ajax(
|
712 |
{
|
713 |
type: "POST",
|
@@ -717,48 +714,48 @@ function mec_book_apply_coupon'.$uniqueid.'()
|
|
717 |
success: function(data)
|
718 |
{
|
719 |
// Remove the loading Class to the button
|
720 |
-
jQuery("#mec_book_form_coupon'
|
721 |
|
722 |
if(data.success)
|
723 |
{
|
724 |
// It converts to free booking because of applied coupon
|
725 |
if(data.data.price_raw === 0)
|
726 |
{
|
727 |
-
jQuery("#mec_booking'
|
728 |
-
jQuery("#mec_book_form_free_booking'
|
729 |
}
|
730 |
|
731 |
-
jQuery("#mec_booking'
|
732 |
|
733 |
-
jQuery("#mec_booking'
|
734 |
-
jQuery("#mec_booking'
|
735 |
|
736 |
-
jQuery("#mec_booking'
|
737 |
-
jQuery("#mec_booking'
|
738 |
-
jQuery("#mec_booking'
|
739 |
-
jQuery("#mec_booking'
|
740 |
}
|
741 |
else
|
742 |
{
|
743 |
-
jQuery("#mec_booking'
|
744 |
}
|
745 |
},
|
746 |
error: function(jqXHR, textStatus, errorThrown)
|
747 |
{
|
748 |
// Remove the loading Class to the button
|
749 |
-
jQuery("#mec_book_form_coupon'
|
750 |
}
|
751 |
});
|
752 |
}
|
753 |
|
754 |
-
function mec_book_free'
|
755 |
{
|
756 |
// Add loading Class to the button
|
757 |
-
jQuery("#mec_book_form_free_booking'
|
758 |
-
jQuery("#mec_book_form_free_booking'
|
759 |
-
jQuery("#mec_booking_message'
|
760 |
|
761 |
-
var data = jQuery("#mec_book_form_free_booking'
|
762 |
jQuery.ajax(
|
763 |
{
|
764 |
type: "POST",
|
@@ -768,16 +765,16 @@ function mec_book_free'.$uniqueid.'()
|
|
768 |
success: function(data)
|
769 |
{
|
770 |
// Remove the loading Class to the button
|
771 |
-
jQuery("#mec_book_form_free_booking'
|
772 |
|
773 |
if(data.success)
|
774 |
{
|
775 |
-
jQuery("#mec_booking'
|
776 |
|
777 |
// Show Invoice Link
|
778 |
if(typeof data.data.invoice_link != "undefined" && data.data.invoice_link != "")
|
779 |
{
|
780 |
-
jQuery("#mec_booking'
|
781 |
}
|
782 |
|
783 |
// Redirect to thank you page
|
@@ -788,20 +785,20 @@ function mec_book_free'.$uniqueid.'()
|
|
788 |
}
|
789 |
else
|
790 |
{
|
791 |
-
jQuery("#mec_booking_message'
|
792 |
-
jQuery("#mec_book_form_free_booking'
|
793 |
}
|
794 |
},
|
795 |
error: function(jqXHR, textStatus, errorThrown)
|
796 |
{
|
797 |
// Remove the loading Class to the button
|
798 |
-
jQuery("#mec_book_form_free_booking'
|
799 |
-
jQuery("#mec_book_form_free_booking'
|
800 |
}
|
801 |
});
|
802 |
}
|
803 |
|
804 |
-
function mec_check_variation_min_max'
|
805 |
{
|
806 |
var value = parseInt(jQuery(variation).val());
|
807 |
var max = parseInt(jQuery(variation).prop("max"));
|
@@ -811,10 +808,10 @@ function mec_check_variation_min_max'.$uniqueid.'(variation)
|
|
811 |
if(value < min) jQuery(variation).val(min);
|
812 |
}
|
813 |
|
814 |
-
function mec_adjust_booking_fees'
|
815 |
{
|
816 |
// Add loading class to the wrapper
|
817 |
-
jQuery("#mec_booking'
|
818 |
|
819 |
jQuery.ajax(
|
820 |
{
|
@@ -825,29 +822,29 @@ function mec_adjust_booking_fees'.$uniqueid.'(gateway_id, transaction_id)
|
|
825 |
success: function(data)
|
826 |
{
|
827 |
// Remove the loading Class to the wrapper
|
828 |
-
jQuery("#mec_booking'
|
829 |
|
830 |
if(data.success)
|
831 |
{
|
832 |
-
jQuery("#mec_booking'
|
833 |
-
jQuery("#mec_booking'
|
834 |
|
835 |
-
jQuery("#mec_booking'
|
836 |
-
jQuery("#mec_booking'
|
837 |
-
jQuery("#mec_booking'
|
838 |
}
|
839 |
},
|
840 |
error: function(jqXHR, textStatus, errorThrown)
|
841 |
{
|
842 |
// Remove the loading Class to the wrapper
|
843 |
-
jQuery("#mec_booking'
|
844 |
}
|
845 |
});
|
846 |
}
|
847 |
|
848 |
'.((defined('DOING_AJAX') and DOING_AJAX) ? 'jQuery(document).ready(function()
|
849 |
{
|
850 |
-
mec_get_tickets_availability'
|
851 |
});' : '').'
|
852 |
</script>';
|
853 |
|
@@ -860,7 +857,7 @@ if($skip_step1 and count($tickets) === 1 and count($dates) === 1 and $user_ticke
|
|
860 |
{
|
861 |
setTimeout(function()
|
862 |
{
|
863 |
-
jQuery("#mec_book_form'
|
864 |
}, 500);
|
865 |
});
|
866 |
</script>';
|
17 |
// Skip First Step
|
18 |
$skip_step1 = (isset($settings['booking_skip_step1']) and $settings['booking_skip_step1']) ? true : false;
|
19 |
|
|
|
|
|
|
|
20 |
$event = $event[0];
|
21 |
+
$uniqueid = (isset($uniqueid) && !empty($uniqueid) ? apply_filters('mec_booking_uniqueid_value', $uniqueid) : $event->data->ID);
|
22 |
|
23 |
$tickets = isset($event->data->tickets) ? $event->data->tickets : array();
|
24 |
$dates = isset($event->dates) ? $event->dates : $event->date;
|
48 |
|
49 |
// Generate JavaScript code of Booking Module
|
50 |
$javascript = '<script type="text/javascript">
|
51 |
+
var mec_tickets_availability_ajax'.esc_js($uniqueid).' = false;
|
52 |
+
function mec_get_tickets_availability'.esc_js($uniqueid).'(event_id, date)
|
53 |
{
|
54 |
if(!date) return;
|
55 |
|
56 |
// Add loading Class to the ticket list
|
57 |
jQuery(".mec-event-tickets-list").addClass("loading");
|
58 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list input").prop("disabled", true);
|
59 |
|
60 |
// Abort previous request
|
61 |
+
if(mec_tickets_availability_ajax'.esc_js($uniqueid).') mec_tickets_availability_ajax'.esc_js($uniqueid).'.abort();
|
62 |
|
63 |
// Start Preloader
|
64 |
jQuery(".mec-event-tickets-list").addClass("mec-cover-loader");
|
65 |
jQuery(".mec-event-tickets-list").append("<div class=\"mec-loader\"></div>");
|
66 |
|
67 |
+
mec_tickets_availability_ajax'.esc_js($uniqueid).' = jQuery.ajax(
|
68 |
{
|
69 |
type: "GET",
|
70 |
url: "'.admin_url('admin-ajax.php', NULL).'",
|
73 |
success: function(data)
|
74 |
{
|
75 |
// Remove the loading Class to the ticket list
|
76 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list").removeClass("loading");
|
77 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list input").prop("disabled", false);
|
78 |
|
79 |
// Set Total Booking Limit
|
80 |
+
if(typeof data.availability.total != "undefined") jQuery("#mec_booking'.esc_js($uniqueid).' #mec_book_form_tickets_container'.esc_js($uniqueid).'").data("total-booking-limit", data.availability.total);
|
81 |
|
82 |
var available_spots = 0;
|
83 |
for(ticket_id in data.availability)
|
90 |
else available_spots = "-1";
|
91 |
}
|
92 |
|
93 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id).addClass(".mec-event-ticket"+limit);
|
94 |
|
95 |
+
if(data.availability["stop_selling_"+ticket_id]) jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-"+ticket_id).attr("class", "mec-ticket-unavailable-spots mec-error").find("div").html(jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-sales-"+ticket_id).val());
|
96 |
+
else jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-"+ticket_id).attr("class", "mec-ticket-unavailable-spots info-msg").find("div").html(jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-sold-out-"+ticket_id).val());
|
97 |
|
98 |
// There are some available spots
|
99 |
if(limit != "0")
|
100 |
{
|
101 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-available-spots").removeClass("mec-util-hidden");
|
102 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-unavailable-spots").addClass("mec-util-hidden");
|
103 |
}
|
104 |
// All spots are sold.
|
105 |
else
|
106 |
{
|
107 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-available-spots").addClass("mec-util-hidden");
|
108 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-unavailable-spots").removeClass("mec-util-hidden");
|
109 |
}
|
110 |
|
111 |
if(limit == "-1")
|
112 |
{
|
113 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").attr("max", "");
|
114 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-event-ticket-available span").html("'.esc_html__("Unlimited", 'modern-events-calendar-lite').'");
|
115 |
}
|
116 |
else
|
117 |
{
|
118 |
+
var cur_count = jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").val();
|
119 |
+
if(cur_count > limit) jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").val(limit);
|
120 |
|
121 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").attr("max", limit);
|
122 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-event-ticket-available span").html(limit);
|
123 |
}
|
124 |
}
|
125 |
|
127 |
{
|
128 |
var price_label = data.prices[ticket_id];
|
129 |
|
130 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-event-ticket-price").html(price_label);
|
131 |
}
|
132 |
|
133 |
// Remove Preloader
|
135 |
jQuery(".mec-event-tickets-list").removeClass("mec-cover-loader");
|
136 |
|
137 |
// Disable or Enable Button
|
138 |
+
if(available_spots == "0") jQuery("#mec_booking'.esc_js($uniqueid).' #mec-book-form-btn-step-1").hide();
|
139 |
+
else jQuery("#mec_booking'.esc_js($uniqueid).' #mec-book-form-btn-step-1").show();
|
140 |
},
|
141 |
error: function(jqXHR, textStatus, errorThrown)
|
142 |
{
|
143 |
// Remove the loading Class to the ticket list
|
144 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list").removeClass("loading");
|
145 |
}
|
146 |
});
|
147 |
}
|
148 |
|
149 |
+
function mec_get_tickets_availability_multiple'.esc_js($uniqueid).'(event_id)
|
150 |
{
|
151 |
+
var $ticket_list = jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list");
|
152 |
|
153 |
// Add loading Class to the ticket list
|
154 |
$ticket_list.addClass("loading");
|
155 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list input").prop("disabled", true);
|
156 |
|
157 |
// Abort previous request
|
158 |
+
if(mec_tickets_availability_ajax'.esc_js($uniqueid).') mec_tickets_availability_ajax'.esc_js($uniqueid).'.abort();
|
159 |
|
160 |
// Start Preloader
|
161 |
$ticket_list.addClass("mec-cover-loader");
|
162 |
$ticket_list.append("<div class=\"mec-loader\"></div>");
|
163 |
|
164 |
var date = "";
|
165 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-booking-dates-checkboxes input[type=checkbox]:checked").each(function()
|
166 |
{
|
167 |
date += "date[]="+jQuery(this).val()+"&";
|
168 |
});
|
169 |
|
170 |
date = date.slice(0, -1);
|
171 |
|
172 |
+
mec_tickets_availability_ajax'.esc_js($uniqueid).' = jQuery.ajax(
|
173 |
{
|
174 |
type: "GET",
|
175 |
url: "'.admin_url('admin-ajax.php', NULL).'",
|
179 |
{
|
180 |
// Remove the loading Class to the ticket list
|
181 |
$ticket_list.removeClass("loading");
|
182 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-event-tickets-list input").prop("disabled", false);
|
183 |
|
184 |
// Set Total Booking Limit
|
185 |
+
if(typeof data.availability.total != "undefined") jQuery("#mec_booking'.esc_js($uniqueid).' #mec_book_form_tickets_container'.esc_js($uniqueid).'").data("total-booking-limit", data.availability.total);
|
186 |
|
187 |
var available_spots = 0;
|
188 |
for(ticket_id in data.availability)
|
195 |
else available_spots = "-1";
|
196 |
}
|
197 |
|
198 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id).addClass(".mec-event-ticket"+limit);
|
199 |
|
200 |
+
if(data.availability["stop_selling_"+ticket_id]) jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-"+ticket_id).attr("class", "mec-ticket-unavailable-spots mec-error").find("div").html(jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-sales-"+ticket_id).val());
|
201 |
+
else jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-"+ticket_id).attr("class", "mec-ticket-unavailable-spots info-msg").find("div").html(jQuery("#mec_booking'.esc_js($uniqueid).' #mec-ticket-message-sold-out-"+ticket_id).val());
|
202 |
|
203 |
// There are some available spots
|
204 |
if(limit != "0")
|
205 |
{
|
206 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-available-spots").removeClass("mec-util-hidden");
|
207 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-unavailable-spots").addClass("mec-util-hidden");
|
208 |
}
|
209 |
// All spots are sold.
|
210 |
else
|
211 |
{
|
212 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-available-spots").addClass("mec-util-hidden");
|
213 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-ticket-unavailable-spots").removeClass("mec-util-hidden");
|
214 |
}
|
215 |
|
216 |
if(limit == "-1")
|
217 |
{
|
218 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").attr("max", "");
|
219 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-event-ticket-available span").html("'.esc_html__("Unlimited", 'modern-events-calendar-lite').'");
|
220 |
}
|
221 |
else
|
222 |
{
|
223 |
+
var cur_count = jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").val();
|
224 |
+
if(cur_count > limit) jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").val(limit);
|
225 |
|
226 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").attr("max", limit);
|
227 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-event-ticket-available span").html(limit);
|
228 |
}
|
229 |
}
|
230 |
|
231 |
// Disable or Enable Button
|
232 |
+
if(available_spots == "0") jQuery("#mec_booking'.esc_js($uniqueid).' #mec-book-form-btn-step-1").hide();
|
233 |
+
else jQuery("#mec_booking'.esc_js($uniqueid).' #mec-book-form-btn-step-1").show();
|
234 |
|
235 |
// Remove Preloader
|
236 |
jQuery(".mec-loader").remove();
|
244 |
});
|
245 |
}
|
246 |
|
247 |
+
function mec_check_tickets_availability'.esc_js($uniqueid).'(ticket_id, count)
|
248 |
{
|
249 |
+
var total = jQuery("#mec_book_form_tickets_container'.esc_js($uniqueid).'").data("total-booking-limit");
|
250 |
+
var max = jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").attr("max");
|
251 |
|
252 |
var sum = 0;
|
253 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-ticket-limit").each(function()
|
254 |
{
|
255 |
sum += parseInt(jQuery(this).val(), 10);
|
256 |
});
|
257 |
|
258 |
if(total != "-1" && max > (total - (sum - count))) max = (total - (sum - count));
|
259 |
|
260 |
+
if(parseInt(count) > parseInt(max)) jQuery("#mec_booking'.esc_js($uniqueid).' #mec_event_ticket"+ticket_id+" .mec-book-ticket-limit").val(max);
|
261 |
}
|
262 |
|
263 |
+
function mec_toggle_first_for_all'.esc_js($uniqueid).'(context)
|
264 |
{
|
265 |
+
var status = jQuery("#mec_book_first_for_all'.esc_js($uniqueid).'").is(":checked") ? true : false;
|
266 |
|
267 |
if(status)
|
268 |
{
|
269 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-ticket-container:not(:first-child)").addClass("mec-util-hidden");
|
270 |
jQuery(context).parent().find("input[type=\"checkbox\"]").attr("checked", "checked");
|
271 |
}
|
272 |
else
|
273 |
{
|
274 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-ticket-container").removeClass("mec-util-hidden");
|
275 |
jQuery(context).parent().find("input[type=\"checkbox\"]").removeAttr("checked");
|
276 |
}
|
277 |
}
|
278 |
|
279 |
+
function mec_label_first_for_all'.esc_js($uniqueid).'(context)
|
280 |
{
|
281 |
+
var input = jQuery("#mec_book_first_for_all'.esc_js($uniqueid).'");
|
282 |
if(!input.is(":checked"))
|
283 |
{
|
284 |
input.prop("checked", true);
|
285 |
+
mec_toggle_first_for_all'.esc_js($uniqueid).'(context);
|
286 |
}
|
287 |
else
|
288 |
{
|
289 |
input.prop("checked", false);
|
290 |
+
mec_toggle_first_for_all'.esc_js($uniqueid).'(context);
|
291 |
}
|
292 |
}
|
293 |
|
294 |
+
function mec_book_form_submit'.esc_js($uniqueid).'()
|
295 |
{
|
296 |
+
var step = jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=step]").val();
|
297 |
|
298 |
// Validate Checkboxes and Radio Buttons on Booking Form
|
299 |
if(step == 2)
|
300 |
{
|
301 |
var valid = true;
|
302 |
|
303 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-mec_email.mec-reg-mandatory").filter(":visible").each(function(i)
|
304 |
{
|
305 |
var ticket_id = jQuery(this).data("ticket-id");
|
306 |
|
307 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][email]\']").val())
|
308 |
{
|
309 |
valid = false;
|
310 |
jQuery(this).addClass("mec-red-notification");
|
319 |
}
|
320 |
});
|
321 |
|
322 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-name.mec-reg-mandatory").filter(":visible").each(function(i)
|
323 |
{
|
324 |
var ticket_id = jQuery(this).data("ticket-id");
|
325 |
|
326 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][name]\']").val())
|
327 |
{
|
328 |
valid = false;
|
329 |
jQuery(this).addClass("mec-red-notification");
|
338 |
}
|
339 |
});
|
340 |
|
341 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-checkbox.mec-reg-mandatory").filter(":visible").each(function(i)
|
342 |
{
|
343 |
var ticket_id = jQuery(this).data("ticket-id");
|
344 |
var field_id = jQuery(this).data("field-id");
|
345 |
|
346 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"][]\']").is(":checked"))
|
347 |
{
|
348 |
valid = false;
|
349 |
jQuery(this).addClass("mec-red-notification");
|
358 |
}
|
359 |
});
|
360 |
|
361 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-file.mec-reg-mandatory").filter(":visible").each(function(i)
|
362 |
{
|
363 |
var ticket_id = jQuery(this).data("ticket-id");
|
364 |
var field_id = jQuery(this).data("field-id");
|
365 |
|
366 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"]\']").val())
|
367 |
{
|
368 |
valid = false;
|
369 |
jQuery(this).addClass("mec-red-notification");
|
378 |
}
|
379 |
});
|
380 |
|
381 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-radio.mec-reg-mandatory").filter(":visible").each(function(i)
|
382 |
{
|
383 |
var ticket_id = jQuery(this).data("ticket-id");
|
384 |
var field_id = jQuery(this).data("field-id");
|
385 |
|
386 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"]\']:checked").val())
|
387 |
{
|
388 |
valid = false;
|
389 |
jQuery(this).addClass("mec-red-notification");
|
398 |
}
|
399 |
});
|
400 |
|
401 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-agreement.mec-reg-mandatory").filter(":visible").each(function(i)
|
402 |
{
|
403 |
var ticket_id = jQuery(this).data("ticket-id");
|
404 |
var field_id = jQuery(this).data("field-id");
|
405 |
|
406 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"]\']:checked").val())
|
407 |
{
|
408 |
valid = false;
|
409 |
jQuery(this).addClass("mec-red-notification");
|
418 |
}
|
419 |
});
|
420 |
|
421 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-tel.mec-reg-mandatory, .mec-book-ticket-container .mec-book-reg-field-email.mec-reg-mandatory, .mec-book-ticket-container .mec-book-reg-field-date.mec-reg-mandatory, .mec-book-ticket-container .mec-book-reg-field-text.mec-reg-mandatory").filter(":visible").each(function(i)
|
422 |
{
|
423 |
var ticket_id = jQuery(this).data("ticket-id");
|
424 |
var field_id = jQuery(this).data("field-id");
|
425 |
|
426 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"]\']").val())
|
427 |
{
|
428 |
valid = false;
|
429 |
jQuery(this).addClass("mec-red-notification");
|
438 |
}
|
439 |
});
|
440 |
|
441 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-select.mec-reg-mandatory").filter(":visible").each(function(i)
|
442 |
{
|
443 |
var ticket_id = jQuery(this).data("ticket-id");
|
444 |
var field_id = jQuery(this).data("field-id");
|
445 |
|
446 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' select[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"]\']").val())
|
447 |
{
|
448 |
valid = false;
|
449 |
jQuery(this).addClass("mec-red-notification");
|
458 |
}
|
459 |
});
|
460 |
|
461 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-ticket-container .mec-book-reg-field-textarea.mec-reg-mandatory").filter(":visible").each(function(i)
|
462 |
{
|
463 |
var ticket_id = jQuery(this).data("ticket-id");
|
464 |
var field_id = jQuery(this).data("field-id");
|
465 |
|
466 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' textarea[name=\'book[tickets]["+ticket_id+"][reg]["+field_id+"]\']").val())
|
467 |
{
|
468 |
valid = false;
|
469 |
jQuery(this).addClass("mec-red-notification");
|
479 |
});
|
480 |
|
481 |
// Fixed Fields
|
482 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-text.mec-reg-mandatory, #mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-date.mec-reg-mandatory, #mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-email.mec-reg-mandatory, #mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-tel.mec-reg-mandatory").filter(":visible").each(function(i)
|
483 |
{
|
484 |
var field_id = jQuery(this).data("field-id");
|
485 |
|
486 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[fields]["+field_id+"]\']").val())
|
487 |
{
|
488 |
valid = false;
|
489 |
jQuery(this).addClass("mec-red-notification");
|
498 |
}
|
499 |
});
|
500 |
|
501 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-checkbox.mec-reg-mandatory").filter(":visible").each(function(i)
|
502 |
{
|
503 |
var field_id = jQuery(this).data("field-id");
|
504 |
|
505 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[fields]["+field_id+"][]\']").is(":checked"))
|
506 |
{
|
507 |
valid = false;
|
508 |
jQuery(this).addClass("mec-red-notification");
|
517 |
}
|
518 |
});
|
519 |
|
520 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-radio.mec-reg-mandatory").filter(":visible").each(function(i)
|
521 |
{
|
522 |
var field_id = jQuery(this).data("field-id");
|
523 |
|
524 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[fields]["+field_id+"]\']:checked").val())
|
525 |
{
|
526 |
valid = false;
|
527 |
jQuery(this).addClass("mec-red-notification");
|
536 |
}
|
537 |
});
|
538 |
|
539 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-agreement.mec-reg-mandatory").filter(":visible").each(function(i)
|
540 |
{
|
541 |
var field_id = jQuery(this).data("field-id");
|
542 |
|
543 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' input[name=\'book[fields]["+field_id+"]\']:checked").val())
|
544 |
{
|
545 |
valid = false;
|
546 |
jQuery(this).addClass("mec-red-notification");
|
555 |
}
|
556 |
});
|
557 |
|
558 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-select.mec-reg-mandatory").filter(":visible").each(function(i)
|
559 |
{
|
560 |
var field_id = jQuery(this).data("field-id");
|
561 |
|
562 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' select[name=\'book[fields]["+field_id+"]\']").val())
|
563 |
{
|
564 |
valid = false;
|
565 |
jQuery(this).addClass("mec-red-notification");
|
574 |
}
|
575 |
});
|
576 |
|
577 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' .mec-book-bfixed-fields-container .mec-book-bfixed-field-textarea.mec-reg-mandatory").filter(":visible").each(function(i)
|
578 |
{
|
579 |
var field_id = jQuery(this).data("field-id");
|
580 |
|
581 |
+
if(!jQuery("#mec_book_form'.esc_js($uniqueid).' textarea[name=\'book[fields]["+field_id+"]\']").val())
|
582 |
{
|
583 |
valid = false;
|
584 |
jQuery(this).addClass("mec-red-notification");
|
594 |
});
|
595 |
|
596 |
// Manual Username and Password
|
597 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' #mec_book_form_username, #mec_book_form'.esc_js($uniqueid).' #mec_book_form_password").filter(":visible").each(function(i)
|
598 |
{
|
599 |
if(!jQuery(this).val())
|
600 |
{
|
615 |
}
|
616 |
|
617 |
// Add loading Class to the button
|
618 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' button[type=submit]").addClass("loading").attr("disabled" , "true");
|
619 |
+
jQuery("#mec_booking_message'.esc_js($uniqueid).'").removeClass("mec-success mec-error").hide();
|
620 |
|
621 |
var fileToUpload = false;
|
622 |
|
623 |
+
var data = jQuery("#mec_book_form'.esc_js($uniqueid).'").serialize();
|
624 |
jQuery.ajax(
|
625 |
{
|
626 |
type: "POST",
|
627 |
url: "'.admin_url('admin-ajax.php', NULL).'",
|
628 |
+
data: new FormData(jQuery("#mec_book_form'.esc_js($uniqueid).'")[0]),
|
629 |
dataType: "JSON",
|
630 |
processData: false,
|
631 |
contentType: false,
|
632 |
cache: false,
|
633 |
headers: {
|
634 |
+
"Accept-Language": "'.esc_js($this->get_current_lang_code()).'"
|
635 |
},
|
636 |
success: function(data)
|
637 |
{
|
638 |
// Remove the loading Class to the button
|
639 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' button[type=submit]").removeClass("loading").removeAttr("disabled");
|
640 |
|
641 |
if(data.success)
|
642 |
{
|
650 |
}
|
651 |
else
|
652 |
{
|
653 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").html(data.data.next.message);
|
654 |
return;
|
655 |
}
|
656 |
}
|
657 |
|
658 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").html(data.output);
|
659 |
|
660 |
// Show Invoice Link
|
661 |
if(typeof data.data.invoice_link != "undefined" && data.data.invoice_link != "")
|
662 |
{
|
663 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").append("<a class=\"mec-invoice-download\" href=\""+data.data.invoice_link+"\">'.esc_js(__('Download Invoice', 'modern-events-calendar-lite')).'</a>");
|
664 |
}
|
665 |
|
666 |
// Redirect to thank you page
|
669 |
setTimeout(function(){window.location.href = data.data.redirect_to;}, 2000);
|
670 |
}
|
671 |
|
672 |
+
if(!jQuery("#mec_booking'.esc_js($uniqueid).'").hasClass("mec-util-hidden"))
|
673 |
{
|
674 |
jQuery("html,body").animate({
|
675 |
+
scrollTop: jQuery("#mec_booking'.esc_js($uniqueid).'").offset().top - 100
|
676 |
}, "slow");
|
677 |
}
|
678 |
|
679 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").removeClass("loading");
|
680 |
|
681 |
if(jQuery(".mec-single-fluent-wrap").length>0 && typeof jQuery.fn.niceSelect !== "undefined")
|
682 |
{
|
685 |
}
|
686 |
else
|
687 |
{
|
688 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").removeClass("loading");
|
689 |
+
jQuery("#mec_booking_message'.esc_js($uniqueid).'").addClass("mec-error").html(data.message).show();
|
690 |
}
|
691 |
},
|
692 |
error: function(jqXHR, textStatus, errorThrown)
|
693 |
{
|
694 |
// Remove the loading Class to the button
|
695 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).' button[type=submit]").removeClass("loading");
|
696 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").removeClass("loading");
|
697 |
}
|
698 |
});
|
699 |
}
|
700 |
|
701 |
+
function mec_book_apply_coupon'.esc_js($uniqueid).'()
|
702 |
{
|
703 |
// Add loading Class to the button
|
704 |
+
jQuery("#mec_book_form_coupon'.esc_js($uniqueid).' button[type=submit]").addClass("loading");
|
705 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-coupon .mec-coupon-message").removeClass("mec-success mec-error").hide();
|
706 |
|
707 |
+
var data = jQuery("#mec_book_form_coupon'.esc_js($uniqueid).'").serialize();
|
708 |
jQuery.ajax(
|
709 |
{
|
710 |
type: "POST",
|
714 |
success: function(data)
|
715 |
{
|
716 |
// Remove the loading Class to the button
|
717 |
+
jQuery("#mec_book_form_coupon'.esc_js($uniqueid).' button[type=submit]").removeClass("loading");
|
718 |
|
719 |
if(data.success)
|
720 |
{
|
721 |
// It converts to free booking because of applied coupon
|
722 |
if(data.data.price_raw === 0)
|
723 |
{
|
724 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-gateways").hide();
|
725 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).'").show();
|
726 |
}
|
727 |
|
728 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-coupon .mec-coupon-message").addClass("mec-success").html(data.message).show();
|
729 |
|
730 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-price-details li").remove();
|
731 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-price-details").html(data.data.price_details);
|
732 |
|
733 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-price-total").html(data.data.price);
|
734 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_do_transaction_paypal_express_form"+data.data.transaction_id+" input[name=amount]").val(data.data.price_raw);
|
735 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_do_transaction_paypal_standard_amount_"+data.data.transaction_id+"").val(data.data.price_raw);
|
736 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_ideal_stripe_amount").val(data.data.price_raw * 100);
|
737 |
}
|
738 |
else
|
739 |
{
|
740 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-coupon .mec-coupon-message").addClass("mec-error").html(data.message).show();
|
741 |
}
|
742 |
},
|
743 |
error: function(jqXHR, textStatus, errorThrown)
|
744 |
{
|
745 |
// Remove the loading Class to the button
|
746 |
+
jQuery("#mec_book_form_coupon'.esc_js($uniqueid).' button[type=submit]").removeClass("loading");
|
747 |
}
|
748 |
});
|
749 |
}
|
750 |
|
751 |
+
function mec_book_free'.esc_js($uniqueid).'()
|
752 |
{
|
753 |
// Add loading Class to the button
|
754 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).'").find("button").prop("disabled", true);
|
755 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).' button[type=submit]").addClass("loading");
|
756 |
+
jQuery("#mec_booking_message'.esc_js($uniqueid).'").removeClass("mec-success mec-error").hide();
|
757 |
|
758 |
+
var data = jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).'").serialize();
|
759 |
jQuery.ajax(
|
760 |
{
|
761 |
type: "POST",
|
765 |
success: function(data)
|
766 |
{
|
767 |
// Remove the loading Class to the button
|
768 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).' button[type=submit]").removeClass("loading");
|
769 |
|
770 |
if(data.success)
|
771 |
{
|
772 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").html(data.output);
|
773 |
|
774 |
// Show Invoice Link
|
775 |
if(typeof data.data.invoice_link != "undefined" && data.data.invoice_link != "")
|
776 |
{
|
777 |
+
jQuery("#mec_booking'.esc_js($uniqueid).'").append("<a class=\"mec-invoice-download\" href=\""+data.data.invoice_link+"\">'.esc_js(__('Download Invoice', 'modern-events-calendar-lite')).'</a>");
|
778 |
}
|
779 |
|
780 |
// Redirect to thank you page
|
785 |
}
|
786 |
else
|
787 |
{
|
788 |
+
jQuery("#mec_booking_message'.esc_js($uniqueid).'").addClass("mec-error").html(data.message).show();
|
789 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).'").find("button").prop("disabled", false);
|
790 |
}
|
791 |
},
|
792 |
error: function(jqXHR, textStatus, errorThrown)
|
793 |
{
|
794 |
// Remove the loading Class to the button
|
795 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).' button[type=submit]").removeClass("loading");
|
796 |
+
jQuery("#mec_book_form_free_booking'.esc_js($uniqueid).'").find("button").prop("disabled", false);
|
797 |
}
|
798 |
});
|
799 |
}
|
800 |
|
801 |
+
function mec_check_variation_min_max'.esc_js($uniqueid).'(variation)
|
802 |
{
|
803 |
var value = parseInt(jQuery(variation).val());
|
804 |
var max = parseInt(jQuery(variation).prop("max"));
|
808 |
if(value < min) jQuery(variation).val(min);
|
809 |
}
|
810 |
|
811 |
+
function mec_adjust_booking_fees'.esc_js($uniqueid).'(gateway_id, transaction_id)
|
812 |
{
|
813 |
// Add loading class to the wrapper
|
814 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-price").addClass("loading");
|
815 |
|
816 |
jQuery.ajax(
|
817 |
{
|
822 |
success: function(data)
|
823 |
{
|
824 |
// Remove the loading Class to the wrapper
|
825 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-price").removeClass("loading");
|
826 |
|
827 |
if(data.success)
|
828 |
{
|
829 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-price-details li").remove();
|
830 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-price-details").html(data.data.price_details);
|
831 |
|
832 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-price-total").html(data.data.price);
|
833 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_do_transaction_paypal_express_form"+data.data.transaction_id+" input[name=amount]").val(data.data.price_raw);
|
834 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' #mec_ideal_stripe_amount").val(data.data.price_raw * 100);
|
835 |
}
|
836 |
},
|
837 |
error: function(jqXHR, textStatus, errorThrown)
|
838 |
{
|
839 |
// Remove the loading Class to the wrapper
|
840 |
+
jQuery("#mec_booking'.esc_js($uniqueid).' .mec-book-form-price").removeClass("loading");
|
841 |
}
|
842 |
});
|
843 |
}
|
844 |
|
845 |
'.((defined('DOING_AJAX') and DOING_AJAX) ? 'jQuery(document).ready(function()
|
846 |
{
|
847 |
+
mec_get_tickets_availability'.esc_js($uniqueid).'('.esc_js($event->ID).', jQuery("#mec_book_form_date'.esc_js($uniqueid).'").val());
|
848 |
});' : '').'
|
849 |
</script>';
|
850 |
|
857 |
{
|
858 |
setTimeout(function()
|
859 |
{
|
860 |
+
jQuery("#mec_book_form'.esc_js($uniqueid).'").trigger("submit");
|
861 |
}, 500);
|
862 |
});
|
863 |
</script>';
|
app/modules/booking/steps/checkout.php
CHANGED
@@ -143,7 +143,7 @@ if($mecFluentEnable)
|
|
143 |
<input type="hidden" name="gateway_id" value="4" />
|
144 |
<input type="hidden" name="uniqueid" value="<?php echo esc_attr($uniqueid); ?>" />
|
145 |
<?php wp_nonce_field('mec_transaction_form_'.$transaction_id); ?>
|
146 |
-
<button class="mec-book-form-next-button" type="submit"><?php echo sprintf(
|
147 |
</div>
|
148 |
</form>
|
149 |
|
143 |
<input type="hidden" name="gateway_id" value="4" />
|
144 |
<input type="hidden" name="uniqueid" value="<?php echo esc_attr($uniqueid); ?>" />
|
145 |
<?php wp_nonce_field('mec_transaction_form_'.$transaction_id); ?>
|
146 |
+
<button class="mec-book-form-next-button" type="submit"><?php echo sprintf(esc_html__('Free %s', 'modern-events-calendar-lite'), $this->main->m('booking', esc_html__('Booking', 'modern-events-calendar-lite'))); ?></button>
|
147 |
</div>
|
148 |
</form>
|
149 |
|
app/modules/booking/steps/form.php
CHANGED
@@ -92,7 +92,7 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
92 |
esc_html_e($bfixed_field['placeholder'], 'modern-events-calendar-lite');
|
93 |
} else {
|
94 |
esc_html_e($bfixed_field['label'], 'modern-events-calendar-lite');
|
95 |
-
}; ?>" <?php if (isset($bfixed_field['placeholder']) and $bfixed_field['placeholder']) echo 'placeholder="' . $bfixed_field['placeholder'] . '" '; ?> <?php if (isset($bfixed_field['mandatory']) and $bfixed_field['mandatory']) echo 'required'; ?> />
|
96 |
|
97 |
<?php /** Date **/ elseif ($bfixed_field['type'] == 'date') : ?>
|
98 |
<input id="mec_book_bfixed_field_reg<?php echo esc_attr($bfixed_field_id); ?>" type="date" name="book[fields][<?php echo esc_attr($bfixed_field_id); ?>]" value="" placeholder="<?php if (isset($bfixed_field['placeholder']) and $bfixed_field['placeholder']) {
|
@@ -153,7 +153,7 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
153 |
<label for="mec_book_bfixed_field_reg<?php echo esc_attr($bfixed_field_id); ?>">
|
154 |
<input type="checkbox" id="mec_book_bfixed_field_reg<?php echo esc_attr($bfixed_field_id); ?>" name="book[fields][<?php echo esc_attr($bfixed_field_id); ?>]" value="1" <?php echo (!isset($bfixed_field['status']) or (isset($bfixed_field['status']) and $bfixed_field['status'] == 'checked')) ? 'checked="checked"' : ''; ?> onchange="mec_agreement_change(this);" />
|
155 |
<?php echo ((isset($bfixed_field['mandatory']) and $bfixed_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?>
|
156 |
-
<?php echo sprintf(
|
157 |
</label>
|
158 |
|
159 |
<?php /** Paragraph **/ elseif ($bfixed_field['type'] == 'p') : ?>
|
@@ -220,14 +220,14 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
220 |
<?php /** MEC Email **/ elseif ($reg_field['type'] == 'mec_email') : ?>
|
221 |
<?php $reg_field['label'] = ($reg_field['label']) ? $reg_field['label'] : 'Email'; ?>
|
222 |
<label for="mec_book_reg_field_email<?php echo esc_attr($reg_field_id); ?>"><?php esc_html_e($reg_field['label'], 'modern-events-calendar-lite'); ?><span class="wbmec-mandatory">*</span></label>
|
223 |
-
<input id="mec_book_reg_field_email<?php echo esc_attr($reg_field_id); ?>" type="email" name="book[tickets][<?php echo esc_attr($j); ?>][email]" value="<?php echo isset($current_user->user_email) ? $current_user->user_email : ''; ?>" placeholder="<?php esc_html_e('Email', 'modern-events-calendar-lite'); ?>" required <?php echo ((isset($current_user->user_email) and trim($current_user->user_email) and ($lock_prefilled == 1 or ($lock_prefilled == 2 and $j == 1))) ? 'readonly' : ''); ?> />
|
224 |
|
225 |
<?php /** Text **/ elseif ($reg_field['type'] == 'text') : ?>
|
226 |
<input id="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>" type="text" name="book[tickets][<?php echo esc_attr($j); ?>][reg][<?php echo esc_attr($reg_field_id); ?>]" value="<?php echo esc_attr($this->main->get_from_mapped_field($reg_field)); ?>" placeholder="<?php if (isset($reg_field['placeholder']) and $reg_field['placeholder']) {
|
227 |
esc_html_e($reg_field['placeholder'], 'modern-events-calendar-lite');
|
228 |
} else {
|
229 |
esc_html_e($reg_field['label'], 'modern-events-calendar-lite');
|
230 |
-
}; ?>" <?php if (isset($reg_field['placeholder']) and $reg_field['placeholder']) echo 'placeholder="' . $reg_field['placeholder'] . '" '; ?> <?php if (isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
|
231 |
|
232 |
<?php /** Date **/ elseif ($reg_field['type'] == 'date') : ?>
|
233 |
<input class="mec-date-picker" id="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>" type="date" onload="mec_add_datepicker()" name="book[tickets][<?php echo esc_attr($j); ?>][reg][<?php echo esc_attr($reg_field_id); ?>]" value="<?php echo esc_attr($this->main->get_from_mapped_field($reg_field)); ?>" placeholder="<?php if (isset($reg_field['placeholder']) and $reg_field['placeholder']) {
|
@@ -295,7 +295,7 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
295 |
<label for="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>">
|
296 |
<input type="checkbox" id="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>" name="book[tickets][<?php echo esc_attr($j); ?>][reg][<?php echo esc_attr($reg_field_id); ?>]" value="1" <?php echo (!isset($reg_field['status']) or (isset($reg_field['status']) and $reg_field['status'] == 'checked')) ? 'checked="checked"' : ''; ?> onchange="mec_agreement_change(this);" />
|
297 |
<?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?>
|
298 |
-
<?php echo sprintf(
|
299 |
</label>
|
300 |
|
301 |
<?php /** Paragraph **/ elseif ($reg_field['type'] == 'p') : ?>
|
92 |
esc_html_e($bfixed_field['placeholder'], 'modern-events-calendar-lite');
|
93 |
} else {
|
94 |
esc_html_e($bfixed_field['label'], 'modern-events-calendar-lite');
|
95 |
+
}; ?>" <?php if (isset($bfixed_field['placeholder']) and $bfixed_field['placeholder']) echo 'placeholder="' . esc_attr($bfixed_field['placeholder']) . '" '; ?> <?php if (isset($bfixed_field['mandatory']) and $bfixed_field['mandatory']) echo 'required'; ?> />
|
96 |
|
97 |
<?php /** Date **/ elseif ($bfixed_field['type'] == 'date') : ?>
|
98 |
<input id="mec_book_bfixed_field_reg<?php echo esc_attr($bfixed_field_id); ?>" type="date" name="book[fields][<?php echo esc_attr($bfixed_field_id); ?>]" value="" placeholder="<?php if (isset($bfixed_field['placeholder']) and $bfixed_field['placeholder']) {
|
153 |
<label for="mec_book_bfixed_field_reg<?php echo esc_attr($bfixed_field_id); ?>">
|
154 |
<input type="checkbox" id="mec_book_bfixed_field_reg<?php echo esc_attr($bfixed_field_id); ?>" name="book[fields][<?php echo esc_attr($bfixed_field_id); ?>]" value="1" <?php echo (!isset($bfixed_field['status']) or (isset($bfixed_field['status']) and $bfixed_field['status'] == 'checked')) ? 'checked="checked"' : ''; ?> onchange="mec_agreement_change(this);" />
|
155 |
<?php echo ((isset($bfixed_field['mandatory']) and $bfixed_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?>
|
156 |
+
<?php echo sprintf(esc_html__(stripslashes($bfixed_field['label']), 'modern-events-calendar-lite'), '<a href="' . get_the_permalink($bfixed_field['page']) . '" target="_blank">' . get_the_title($bfixed_field['page']) . '</a>'); ?>
|
157 |
</label>
|
158 |
|
159 |
<?php /** Paragraph **/ elseif ($bfixed_field['type'] == 'p') : ?>
|
220 |
<?php /** MEC Email **/ elseif ($reg_field['type'] == 'mec_email') : ?>
|
221 |
<?php $reg_field['label'] = ($reg_field['label']) ? $reg_field['label'] : 'Email'; ?>
|
222 |
<label for="mec_book_reg_field_email<?php echo esc_attr($reg_field_id); ?>"><?php esc_html_e($reg_field['label'], 'modern-events-calendar-lite'); ?><span class="wbmec-mandatory">*</span></label>
|
223 |
+
<input id="mec_book_reg_field_email<?php echo esc_attr($reg_field_id); ?>" type="email" name="book[tickets][<?php echo esc_attr($j); ?>][email]" value="<?php echo isset($current_user->user_email) ? esc_attr($current_user->user_email) : ''; ?>" placeholder="<?php esc_html_e('Email', 'modern-events-calendar-lite'); ?>" required <?php echo ((isset($current_user->user_email) and trim($current_user->user_email) and ($lock_prefilled == 1 or ($lock_prefilled == 2 and $j == 1))) ? 'readonly' : ''); ?> />
|
224 |
|
225 |
<?php /** Text **/ elseif ($reg_field['type'] == 'text') : ?>
|
226 |
<input id="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>" type="text" name="book[tickets][<?php echo esc_attr($j); ?>][reg][<?php echo esc_attr($reg_field_id); ?>]" value="<?php echo esc_attr($this->main->get_from_mapped_field($reg_field)); ?>" placeholder="<?php if (isset($reg_field['placeholder']) and $reg_field['placeholder']) {
|
227 |
esc_html_e($reg_field['placeholder'], 'modern-events-calendar-lite');
|
228 |
} else {
|
229 |
esc_html_e($reg_field['label'], 'modern-events-calendar-lite');
|
230 |
+
}; ?>" <?php if (isset($reg_field['placeholder']) and $reg_field['placeholder']) echo 'placeholder="' . esc_attr($reg_field['placeholder']) . '" '; ?> <?php if (isset($reg_field['mandatory']) and $reg_field['mandatory']) echo 'required'; ?> />
|
231 |
|
232 |
<?php /** Date **/ elseif ($reg_field['type'] == 'date') : ?>
|
233 |
<input class="mec-date-picker" id="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>" type="date" onload="mec_add_datepicker()" name="book[tickets][<?php echo esc_attr($j); ?>][reg][<?php echo esc_attr($reg_field_id); ?>]" value="<?php echo esc_attr($this->main->get_from_mapped_field($reg_field)); ?>" placeholder="<?php if (isset($reg_field['placeholder']) and $reg_field['placeholder']) {
|
295 |
<label for="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>">
|
296 |
<input type="checkbox" id="mec_book_reg_field_reg<?php echo esc_attr($j . '_' . $reg_field_id); ?>" name="book[tickets][<?php echo esc_attr($j); ?>][reg][<?php echo esc_attr($reg_field_id); ?>]" value="1" <?php echo (!isset($reg_field['status']) or (isset($reg_field['status']) and $reg_field['status'] == 'checked')) ? 'checked="checked"' : ''; ?> onchange="mec_agreement_change(this);" />
|
297 |
<?php echo ((isset($reg_field['mandatory']) and $reg_field['mandatory']) ? '<span class="wbmec-mandatory">*</span>' : ''); ?>
|
298 |
+
<?php echo sprintf(esc_html__(stripslashes($reg_field['label']), 'modern-events-calendar-lite'), '<a href="' . get_the_permalink($reg_field['page']) . '" target="_blank">' . get_the_title($reg_field['page']) . '</a>'); ?>
|
299 |
</label>
|
300 |
|
301 |
<?php /** Paragraph **/ elseif ($reg_field['type'] == 'p') : ?>
|
app/modules/booking/steps/message.php
CHANGED
@@ -6,8 +6,8 @@ $event_id = $event->ID;
|
|
6 |
?>
|
7 |
<?php if(isset($message)): ?>
|
8 |
<div class="mec-event-book-message mec-gateway-message mec-success">
|
9 |
-
<div class="<?php echo (isset($message_class) ? $message_class : ''); ?>">
|
10 |
-
<?php echo stripslashes($message); ?>
|
11 |
</div>
|
12 |
</div>
|
13 |
<?php endif;
|
6 |
?>
|
7 |
<?php if(isset($message)): ?>
|
8 |
<div class="mec-event-book-message mec-gateway-message mec-success">
|
9 |
+
<div class="<?php echo (isset($message_class) ? esc_attr($message_class) : ''); ?>">
|
10 |
+
<?php echo MEC_kses::element(stripslashes($message)); ?>
|
11 |
</div>
|
12 |
</div>
|
13 |
<?php endif;
|
app/modules/booking/steps/tickets.php
CHANGED
@@ -154,7 +154,7 @@ wp_enqueue_script('mec-nice-select', $this->asset('js/jquery.nice-select.min.js'
|
|
154 |
<input type="hidden" name="book[date]" id="mec_book_form_date<?php echo esc_attr($uniqueid); ?>" value="<?php echo esc_attr($book->timestamp($dates[0]['start'], $dates[0]['end'])); ?>">
|
155 |
<?php endif; ?>
|
156 |
|
157 |
-
<div class="mec-event-tickets-list <?php echo (!$book_all_occurrences and count($dates) > 1) ? '' : 'mec-sell-all-occurrences'; ?>" id="mec_book_form_tickets_container<?php echo esc_attr($uniqueid); ?>" data-total-booking-limit="<?php echo isset($availability['total']) ? $availability['total'] : '-1'; ?>">
|
158 |
<?php foreach($tickets as $ticket_id=>$ticket): $stop_selling = isset($availability['stop_selling_'.$ticket_id]) ? $availability['stop_selling_'.$ticket_id] : false; $ticket_limit = isset($availability[$ticket_id]) ? $availability[$ticket_id] : -1; if($ticket_limit === '0' and count($dates) <= 1) continue; ?>
|
159 |
<div class="mec-event-ticket mec-event-ticket<?php echo sanitize_html_class($ticket_limit); ?>" id="mec_event_ticket<?php echo esc_attr($ticket_id); ?>">
|
160 |
<div class="mec-ticket-available-spots <?php echo ($ticket_limit == '0' ? 'mec-util-hidden' : ''); ?>">
|
@@ -170,20 +170,20 @@ wp_enqueue_script('mec-nice-select', $this->asset('js/jquery.nice-select.min.js'
|
|
170 |
<input type="hidden" name="book[tickets][<?php echo esc_attr($ticket_id); ?>]" value="1" />
|
171 |
<p>
|
172 |
<?php esc_html_e('1 Ticket selected.', 'modern-events-calendar-lite'); ?>
|
173 |
-
<div class="mec-event-ticket-available"><?php echo sprintf(
|
174 |
</p>
|
175 |
<?php else: ?>
|
176 |
<div>
|
177 |
<input onkeydown="return event.keyCode !== 69" type="number" class="mec-book-ticket-limit" name="book[tickets][<?php echo esc_attr($ticket_id); ?>]" title="<?php esc_attr_e('Count', 'modern-events-calendar-lite'); ?>" placeholder="<?php esc_attr_e('Count', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($default_ticket_number); ?>" min="0" max="<?php echo ($ticket_limit != '-1' ? $ticket_limit : ''); ?>" onchange="mec_check_tickets_availability<?php echo esc_attr($uniqueid); ?>(<?php echo esc_attr($ticket_id); ?>, this.value);" />
|
178 |
</div>
|
179 |
-
<span class="mec-event-ticket-available"><?php echo sprintf(
|
180 |
<?php endif; ?>
|
181 |
</div>
|
182 |
<?php
|
183 |
-
$str_replace = isset($ticket['name']) ? '<strong>'
|
184 |
-
$ticket_message_sales = sprintf(
|
185 |
-
$ticket_message_sold_out = sprintf(
|
186 |
-
$ticket_message_sold_out_multiple = sprintf(
|
187 |
?>
|
188 |
<?php if(isset($stop_selling) and $stop_selling): ?>
|
189 |
<div id="mec-ticket-message-<?php echo esc_attr($ticket_id); ?>" class="mec-ticket-unavailable-spots mec-error <?php echo (($ticket_limit != '0' or ($date_selection == 'calendar' and !$modal_booking)) ? 'mec-util-hidden' : ''); ?>">
|
154 |
<input type="hidden" name="book[date]" id="mec_book_form_date<?php echo esc_attr($uniqueid); ?>" value="<?php echo esc_attr($book->timestamp($dates[0]['start'], $dates[0]['end'])); ?>">
|
155 |
<?php endif; ?>
|
156 |
|
157 |
+
<div class="mec-event-tickets-list <?php echo (!$book_all_occurrences and count($dates) > 1) ? '' : 'mec-sell-all-occurrences'; ?>" id="mec_book_form_tickets_container<?php echo esc_attr($uniqueid); ?>" data-total-booking-limit="<?php echo isset($availability['total']) ? esc_attr($availability['total']) : '-1'; ?>">
|
158 |
<?php foreach($tickets as $ticket_id=>$ticket): $stop_selling = isset($availability['stop_selling_'.$ticket_id]) ? $availability['stop_selling_'.$ticket_id] : false; $ticket_limit = isset($availability[$ticket_id]) ? $availability[$ticket_id] : -1; if($ticket_limit === '0' and count($dates) <= 1) continue; ?>
|
159 |
<div class="mec-event-ticket mec-event-ticket<?php echo sanitize_html_class($ticket_limit); ?>" id="mec_event_ticket<?php echo esc_attr($ticket_id); ?>">
|
160 |
<div class="mec-ticket-available-spots <?php echo ($ticket_limit == '0' ? 'mec-util-hidden' : ''); ?>">
|
170 |
<input type="hidden" name="book[tickets][<?php echo esc_attr($ticket_id); ?>]" value="1" />
|
171 |
<p>
|
172 |
<?php esc_html_e('1 Ticket selected.', 'modern-events-calendar-lite'); ?>
|
173 |
+
<div class="mec-event-ticket-available"><?php echo sprintf(esc_html__('Available %s: <span>%s</span>', 'modern-events-calendar-lite'), $this->m('tickets', esc_html__('Tickets', 'modern-events-calendar-lite')), (($ticket['unlimited'] and $ticket_limit == '-1') ? esc_html__('Unlimited', 'modern-events-calendar-lite') : ($ticket_limit != '-1' ? $ticket_limit : esc_html__('Unlimited', 'modern-events-calendar-lite')))); ?></div>
|
174 |
</p>
|
175 |
<?php else: ?>
|
176 |
<div>
|
177 |
<input onkeydown="return event.keyCode !== 69" type="number" class="mec-book-ticket-limit" name="book[tickets][<?php echo esc_attr($ticket_id); ?>]" title="<?php esc_attr_e('Count', 'modern-events-calendar-lite'); ?>" placeholder="<?php esc_attr_e('Count', 'modern-events-calendar-lite'); ?>" value="<?php echo esc_attr($default_ticket_number); ?>" min="0" max="<?php echo ($ticket_limit != '-1' ? $ticket_limit : ''); ?>" onchange="mec_check_tickets_availability<?php echo esc_attr($uniqueid); ?>(<?php echo esc_attr($ticket_id); ?>, this.value);" />
|
178 |
</div>
|
179 |
+
<span class="mec-event-ticket-available"><?php echo sprintf(esc_html__('Available %s: %s', 'modern-events-calendar-lite'), $this->m('tickets', esc_html__('Tickets', 'modern-events-calendar-lite')), (($ticket['unlimited'] and $ticket_limit == '-1') ? '<span>'.esc_html__('Unlimited', 'modern-events-calendar-lite').'</span>' : ($ticket_limit != '-1' ? '<span>'.$ticket_limit.'</span>' : '<span>'.esc_html__('Unlimited', 'modern-events-calendar-lite').'</span>'))); ?></span>
|
180 |
<?php endif; ?>
|
181 |
</div>
|
182 |
<?php
|
183 |
+
$str_replace = isset($ticket['name']) ? '<strong>'.esc_html($ticket['name']).'</strong>' : '';
|
184 |
+
$ticket_message_sales = sprintf(esc_html__('The %s ticket sales has ended!', 'modern-events-calendar-lite'), $str_replace);
|
185 |
+
$ticket_message_sold_out = sprintf(esc_html__('The %s ticket is sold out. You can try another ticket or another date.', 'modern-events-calendar-lite'), $str_replace);
|
186 |
+
$ticket_message_sold_out_multiple = sprintf(esc_html__('The %s ticket is sold out for some of dates. You can try another ticket or another date.', 'modern-events-calendar-lite'), $str_replace);
|
187 |
?>
|
188 |
<?php if(isset($stop_selling) and $stop_selling): ?>
|
189 |
<div id="mec-ticket-message-<?php echo esc_attr($ticket_id); ?>" class="mec-ticket-unavailable-spots mec-error <?php echo (($ticket_limit != '0' or ($date_selection == 'calendar' and !$modal_booking)) ? 'mec-util-hidden' : ''); ?>">
|
app/modules/googlemap/details.php
CHANGED
@@ -81,41 +81,41 @@ $scrollwheel = apply_filters( 'mec_google_map_scroll_wheel', false );
|
|
81 |
|
82 |
// Initialize MEC Google Maps jQuery plugin
|
83 |
$javascript = '<script type="text/javascript">
|
84 |
-
var p'
|
85 |
jQuery(document).ready(function()
|
86 |
{
|
87 |
-
p'
|
88 |
{
|
89 |
scrollwheel: '. json_encode( $scrollwheel ? true : false ) .',
|
90 |
-
latitude: "'
|
91 |
-
longitude: "'
|
92 |
autoinit: '.((!isset($auto_init) or (isset($auto_init) and $auto_init)) ? 'true' : 'false').',
|
93 |
-
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
94 |
-
icon: "'.apply_filters('mec_marker_icon', $this->asset('img/m-04.png')).'",
|
95 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->get_googlemap_style($settings['google_maps_style']) : "''").',
|
96 |
fullscreen_button: '.((isset($settings['google_maps_fullscreen_button']) and trim($settings['google_maps_fullscreen_button'])) ? 'true' : 'false').',
|
97 |
markers: '.json_encode($render->markers($map_data->events)).',
|
98 |
-
clustering_images: "'
|
99 |
-
getDirection: '
|
100 |
directionOptions:
|
101 |
{
|
102 |
-
form: "#mec_get_direction_form'
|
103 |
-
reset: "#mec_map_get_direction_reset'
|
104 |
-
addr: "#mec_get_direction_addr'
|
105 |
destination:
|
106 |
{
|
107 |
-
latitude: "'
|
108 |
-
longitude: "'
|
109 |
},
|
110 |
-
startMarker: "'.apply_filters('mec_start_marker_icon', $this->asset('img/m-03.png')).'",
|
111 |
-
endMarker: "'.apply_filters('mec_end_marker_icon', $this->asset('img/m-04.png')).'"
|
112 |
}
|
113 |
});
|
114 |
});
|
115 |
|
116 |
-
function mec_init_gmap'
|
117 |
{
|
118 |
-
p'
|
119 |
}
|
120 |
</script>';
|
121 |
$javascript = apply_filters('mec_map_load_script', $javascript, $map_data, $settings);
|
81 |
|
82 |
// Initialize MEC Google Maps jQuery plugin
|
83 |
$javascript = '<script type="text/javascript">
|
84 |
+
var p'.esc_js($uniqueid).';
|
85 |
jQuery(document).ready(function()
|
86 |
{
|
87 |
+
p'.esc_js($uniqueid).' = jQuery("#mec_map_canvas'.esc_js($uniqueid).'").mecGoogleMaps(
|
88 |
{
|
89 |
scrollwheel: '. json_encode( $scrollwheel ? true : false ) .',
|
90 |
+
latitude: "'.esc_js($latitude).'",
|
91 |
+
longitude: "'.esc_js($longitude).'",
|
92 |
autoinit: '.((!isset($auto_init) or (isset($auto_init) and $auto_init)) ? 'true' : 'false').',
|
93 |
+
zoom: '.(isset($settings['google_maps_zoomlevel']) ? esc_js($settings['google_maps_zoomlevel']) : 14).',
|
94 |
+
icon: "'.esc_js(apply_filters('mec_marker_icon', $this->asset('img/m-04.png'))).'",
|
95 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->get_googlemap_style($settings['google_maps_style']) : "''").',
|
96 |
fullscreen_button: '.((isset($settings['google_maps_fullscreen_button']) and trim($settings['google_maps_fullscreen_button'])) ? 'true' : 'false').',
|
97 |
markers: '.json_encode($render->markers($map_data->events)).',
|
98 |
+
clustering_images: "'.esc_js($this->asset('img/cluster1/m')).'",
|
99 |
+
getDirection: '.esc_js($get_direction).',
|
100 |
directionOptions:
|
101 |
{
|
102 |
+
form: "#mec_get_direction_form'.esc_js($uniqueid).'",
|
103 |
+
reset: "#mec_map_get_direction_reset'.esc_js($uniqueid).'",
|
104 |
+
addr: "#mec_get_direction_addr'.esc_js($uniqueid).'",
|
105 |
destination:
|
106 |
{
|
107 |
+
latitude: "'.esc_js($latitude).'",
|
108 |
+
longitude: "'.esc_js($longitude).'",
|
109 |
},
|
110 |
+
startMarker: "'.esc_js(apply_filters('mec_start_marker_icon', $this->asset('img/m-03.png'))).'",
|
111 |
+
endMarker: "'.esc_js(apply_filters('mec_end_marker_icon', $this->asset('img/m-04.png'))).'"
|
112 |
}
|
113 |
});
|
114 |
});
|
115 |
|
116 |
+
function mec_init_gmap'.esc_js($uniqueid).'()
|
117 |
{
|
118 |
+
p'.esc_js($uniqueid).'.init();
|
119 |
}
|
120 |
</script>';
|
121 |
$javascript = apply_filters('mec_map_load_script', $javascript, $map_data, $settings);
|
app/modules/local-time/details.php
CHANGED
@@ -47,10 +47,10 @@ $hide_end_time = isset($event->data->meta['mec_hide_end_time']) ? $event->data->
|
|
47 |
<div class="mec-local-time-details mec-frontbox" id="mec_local_time_details">
|
48 |
<i class="mec-sl-clock"></i><h3 class="mec-local-time mec-frontbox-title"><?php esc_html_e('Local Time', 'modern-events-calendar-lite'); ?></h3>
|
49 |
<ul>
|
50 |
-
<li><?php echo sprintf(
|
51 |
-
<li><?php echo sprintf(
|
52 |
<?php if(!$hide_time and trim($time_format)): ?>
|
53 |
-
<li><?php echo sprintf(
|
54 |
<?php endif; ?>
|
55 |
</ul>
|
56 |
</div>
|
47 |
<div class="mec-local-time-details mec-frontbox" id="mec_local_time_details">
|
48 |
<i class="mec-sl-clock"></i><h3 class="mec-local-time mec-frontbox-title"><?php esc_html_e('Local Time', 'modern-events-calendar-lite'); ?></h3>
|
49 |
<ul>
|
50 |
+
<li><?php echo sprintf(esc_html__('Timezone: %s', 'modern-events-calendar-lite'), '<span>'.esc_html($timezone).'</span>'); ?></li>
|
51 |
+
<li><?php echo sprintf(esc_html__('Date: %s', 'modern-events-calendar-lite'), $this->date_label(array('date'=>date('Y-m-d', $user_start_time)), array('date'=>date('Y-m-d', $user_end_time)), $date_format1)); ?></li>
|
52 |
<?php if(!$hide_time and trim($time_format)): ?>
|
53 |
+
<li><?php echo sprintf(esc_html__('Time: %s', 'modern-events-calendar-lite'), '<span>'.($allday ? $this->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : ($hide_end_time ? date($time_format, $user_start_time) : date($time_format, $user_start_time).' - '.date($time_format, $user_end_time))).'</span>'); ?></li>
|
54 |
<?php endif; ?>
|
55 |
</ul>
|
56 |
</div>
|
app/modules/local-time/type1.php
CHANGED
@@ -43,8 +43,8 @@ $hide_end_time = isset($event->data->meta['mec_hide_end_time']) ? $event->data->
|
|
43 |
?>
|
44 |
<div class="mec-local-time-details" id="mec_local_time_details">
|
45 |
<span class="mec-local-title"><?php esc_html_e('Local Time', 'modern-events-calendar-lite'); ?></span>
|
46 |
-
<div class="mec-local-date"><?php echo sprintf(
|
47 |
<?php if(!$hide_time and trim($time_format)): ?>
|
48 |
-
<div class="mec-local-time"><?php echo sprintf(
|
49 |
<?php endif; ?>
|
50 |
</div>
|
43 |
?>
|
44 |
<div class="mec-local-time-details" id="mec_local_time_details">
|
45 |
<span class="mec-local-title"><?php esc_html_e('Local Time', 'modern-events-calendar-lite'); ?></span>
|
46 |
+
<div class="mec-local-date"><?php echo sprintf(esc_html__('Date: %s', 'modern-events-calendar-lite'), $this->date_label(array('date'=>date('Y-m-d', $user_start_time)), array('date'=>date('Y-m-d', $user_end_time)), $date_format1)); ?></div>
|
47 |
<?php if(!$hide_time and trim($time_format)): ?>
|
48 |
+
<div class="mec-local-time"><?php echo sprintf(esc_html__('Time: %s', 'modern-events-calendar-lite'), '<span>'.($allday ? $this->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : ($hide_end_time ? date($time_format, $user_start_time) : date($time_format, $user_start_time).' - '.date($time_format, $user_end_time))).'</span>'); ?></div>
|
49 |
<?php endif; ?>
|
50 |
</div>
|
app/modules/local-time/type2.php
CHANGED
@@ -79,9 +79,9 @@ $user_end_time = $gmt_end_time + $offset;
|
|
79 |
<div class="mec-localtime-wrap">
|
80 |
<i class="mec-sl-clock"></i>
|
81 |
<span class="mec-localtitle"><?php esc_html_e('Local Time:', 'modern-events-calendar-lite'); ?></span>
|
82 |
-
<div class="mec-localdate"><?php echo sprintf(
|
83 |
<?php if(!$hide_time and trim($time_format)): ?>
|
84 |
-
<div class="mec-localtime"><?php echo sprintf(
|
85 |
<?php endif; ?>
|
86 |
</div>
|
87 |
</div>
|
79 |
<div class="mec-localtime-wrap">
|
80 |
<i class="mec-sl-clock"></i>
|
81 |
<span class="mec-localtitle"><?php esc_html_e('Local Time:', 'modern-events-calendar-lite'); ?></span>
|
82 |
+
<div class="mec-localdate"><?php echo sprintf(esc_html__('%s |', 'modern-events-calendar-lite'), $this->date_label(array('date'=>date('Y-m-d', $user_start_time)), array('date'=>date('Y-m-d', $user_end_time)), $date_format1)); ?></div>
|
83 |
<?php if(!$hide_time and trim($time_format)): ?>
|
84 |
+
<div class="mec-localtime"><?php echo sprintf(esc_html__('%s', 'modern-events-calendar-lite'), '<span>'.($allday ? $this->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : ($hide_end_time ? date($time_format, $user_start_time) : date($time_format, $user_start_time).' - '.date($time_format, $user_end_time))).'</span>'); ?></div>
|
85 |
<?php endif; ?>
|
86 |
</div>
|
87 |
</div>
|
app/modules/local-time/type3.php
CHANGED
@@ -43,9 +43,9 @@ $hide_end_time = isset($event->data->meta['mec_hide_end_time']) ? $event->data->
|
|
43 |
?>
|
44 |
<div class="mec-localtime-details" id="mec_localtime_details">
|
45 |
<div class="mec-localtime-wrap">
|
46 |
-
<div class="mec-localdate"><?php echo sprintf(
|
47 |
<?php if(!$hide_time and trim($time_format)): ?>
|
48 |
-
<div class="mec-localtime"><?php echo sprintf(
|
49 |
<?php endif; ?>
|
50 |
</div>
|
51 |
</div>
|
43 |
?>
|
44 |
<div class="mec-localtime-details" id="mec_localtime_details">
|
45 |
<div class="mec-localtime-wrap">
|
46 |
+
<div class="mec-localdate"><?php echo sprintf(esc_html__('Local Date: %s |', 'modern-events-calendar-lite'), $this->date_label(array('date'=>date('Y-m-d', $user_start_time)), array('date'=>date('Y-m-d', $user_end_time)), $date_format1)); ?></div>
|
47 |
<?php if(!$hide_time and trim($time_format)): ?>
|
48 |
+
<div class="mec-localtime"><?php echo sprintf(esc_html__('Local Time: %s', 'modern-events-calendar-lite'), '<span>'.($allday ? $this->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite')) : ($hide_end_time ? date($time_format, $user_start_time) : date($time_format, $user_start_time).' - '.date($time_format, $user_end_time))).'</span>'); ?></div>
|
49 |
<?php endif; ?>
|
50 |
</div>
|
51 |
</div>
|
app/modules/next-event/details.php
CHANGED
@@ -149,7 +149,7 @@ if($midnight_event) $next_date['end']['date'] = date('Y-m-d', strtotime('-1 Day'
|
|
149 |
<li>
|
150 |
<i class="mec-sl-clock"></i>
|
151 |
<h6><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h6>
|
152 |
-
<i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
|
153 |
<dl>
|
154 |
<?php if($allday == '0' and isset($next->data->time) and trim($next->data->time['start'])): ?>
|
155 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($next_time['start']); ?><?php echo (trim($next_time['end']) ? ' - '.esc_html($next_time['end']) : ''); ?></abbr></dd>
|
149 |
<li>
|
150 |
<i class="mec-sl-clock"></i>
|
151 |
<h6><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h6>
|
152 |
+
<i class="mec-time-comment"><?php echo (isset($time_comment) ? esc_html($time_comment) : ''); ?></i>
|
153 |
<dl>
|
154 |
<?php if($allday == '0' and isset($next->data->time) and trim($next->data->time['start'])): ?>
|
155 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($next_time['start']); ?><?php echo (trim($next_time['end']) ? ' - '.esc_html($next_time['end']) : ''); ?></abbr></dd>
|
app/skins/agenda/render.php
CHANGED
@@ -35,7 +35,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
35 |
|
36 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
37 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
38 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
39 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
40 |
|
41 |
// MEC Schema
|
@@ -48,8 +48,8 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
48 |
<?php
|
49 |
if(trim($start_time))
|
50 |
{
|
51 |
-
echo '<span class="mec-start-time">'
|
52 |
-
if(trim($end_time)) echo ' - <span class="mec-end-time">'
|
53 |
}
|
54 |
?>
|
55 |
</span>
|
35 |
|
36 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
37 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
38 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
39 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
40 |
|
41 |
// MEC Schema
|
48 |
<?php
|
49 |
if(trim($start_time))
|
50 |
{
|
51 |
+
echo '<span class="mec-start-time">'.esc_html($start_time).'</span>';
|
52 |
+
if(trim($end_time)) echo ' - <span class="mec-end-time">'.esc_html($end_time).'</span>';
|
53 |
}
|
54 |
?>
|
55 |
</span>
|
app/skins/agenda/tpl.php
CHANGED
@@ -24,21 +24,21 @@ if($sed_method == 'new') $sed_method = '0';
|
|
24 |
$javascript = '<script type="text/javascript">
|
25 |
jQuery(document).ready(function()
|
26 |
{
|
27 |
-
jQuery("#mec_skin_'
|
28 |
{
|
29 |
-
id: "'
|
30 |
-
start_date: "'
|
31 |
-
end_date: "'
|
32 |
-
offset: "'
|
33 |
-
limit: "'
|
34 |
-
current_month_divider: "'
|
35 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
36 |
-
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
37 |
-
sed_method: "'
|
38 |
-
image_popup: "'
|
39 |
sf:
|
40 |
{
|
41 |
-
container: "'.($this->sf_status ? '#mec_search_form_'.$this->id : '').'",
|
42 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
43 |
refine: '.($this->sf_refine ? 1 : 0).',
|
44 |
},
|
24 |
$javascript = '<script type="text/javascript">
|
25 |
jQuery(document).ready(function()
|
26 |
{
|
27 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecAgendaView(
|
28 |
{
|
29 |
+
id: "'.esc_js($this->id).'",
|
30 |
+
start_date: "'.esc_js($this->start_date).'",
|
31 |
+
end_date: "'.esc_js($this->end_date).'",
|
32 |
+
offset: "'.esc_js($this->next_offset).'",
|
33 |
+
limit: "'.esc_js($this->limit).'",
|
34 |
+
current_month_divider: "'.esc_js($current_month_divider).'",
|
35 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
36 |
+
ajax_url: "'.esc_js(admin_url('admin-ajax.php', NULL)).'",
|
37 |
+
sed_method: "'.esc_js($sed_method).'",
|
38 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
39 |
sf:
|
40 |
{
|
41 |
+
container: "'.esc_js(($this->sf_status ? '#mec_search_form_'.$this->id : '')).'",
|
42 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
43 |
refine: '.($this->sf_refine ? 1 : 0).',
|
44 |
},
|
app/skins/available_spot/tpl.php
CHANGED
@@ -72,7 +72,7 @@ if(isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'], 'E
|
|
72 |
$javascript = '<script type="text/javascript">
|
73 |
jQuery(document).ready(function()
|
74 |
{
|
75 |
-
jQuery("#mec_skin_available_spot'
|
76 |
{
|
77 |
date: "'.($ongoing ? $end_time : $start_time).$gmt_offset.'",
|
78 |
format: "off"
|
@@ -91,7 +91,7 @@ $occurrence_time = isset($event->date['start']['timestamp']) ? $event->date['sta
|
|
91 |
|
92 |
$book = $this->getBook();
|
93 |
$availability = $book->get_tickets_availability($event->data->ID, $occurrence_time);
|
94 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
95 |
|
96 |
$spots = 0;
|
97 |
$total_spots = -1;
|
@@ -165,7 +165,7 @@ do_action('mec_available_spot_skin_head');
|
|
165 |
<div class="mec-av-spot-col6">
|
166 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format1, strtotime($event_date))); ?></div>
|
167 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format2, strtotime($event_date))); ?></div>
|
168 |
-
<div class="mec-event-detail"><?php echo (isset($event->data->time) and isset($event->data->time['start'])) ? $event->data->time['start'] : ''; ?><?php echo (isset($event->data->time) and isset($event->data->time['end']) and trim($event->data->time['end'])) ? ' - '.$event->data->time['end'] : ''; ?></div>
|
169 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
170 |
</div>
|
171 |
<div class="mec-av-spot-col6">
|
72 |
$javascript = '<script type="text/javascript">
|
73 |
jQuery(document).ready(function()
|
74 |
{
|
75 |
+
jQuery("#mec_skin_available_spot'.esc_js($this->id).'").mecCountDown(
|
76 |
{
|
77 |
date: "'.($ongoing ? $end_time : $start_time).$gmt_offset.'",
|
78 |
format: "off"
|
91 |
|
92 |
$book = $this->getBook();
|
93 |
$availability = $book->get_tickets_availability($event->data->ID, $occurrence_time);
|
94 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
95 |
|
96 |
$spots = 0;
|
97 |
$total_spots = -1;
|
165 |
<div class="mec-av-spot-col6">
|
166 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format1, strtotime($event_date))); ?></div>
|
167 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format2, strtotime($event_date))); ?></div>
|
168 |
+
<div class="mec-event-detail"><?php echo (isset($event->data->time) and isset($event->data->time['start'])) ? esc_html($event->data->time['start']) : ''; ?><?php echo (isset($event->data->time) and isset($event->data->time['end']) and trim($event->data->time['end'])) ? esc_html(' - '.$event->data->time['end']) : ''; ?></div>
|
169 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
170 |
</div>
|
171 |
<div class="mec-av-spot-col6">
|
app/skins/carousel/render.php
CHANGED
@@ -28,7 +28,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
28 |
$organizer_id = $this->main->get_master_organizer_id($event);
|
29 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
30 |
|
31 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
32 |
$event_date = (isset($event->date['start']) ? $event->date['start']['date'] : $event->data->meta['mec_start_date']);
|
33 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
34 |
$event_end_date = !empty($event->date['end']['date']) ? $event->date['end']['date'] : '';
|
@@ -59,7 +59,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
59 |
<?php if($this->include_events_times) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
60 |
<h4 class="mec-event-carousel-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event)); ?></h4>
|
61 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?>
|
62 |
-
<p class="mec-carousel-event-location"><span><?php echo (isset($location['name']) ? $location['name'] : ''); echo (isset($location['address']) ? '</span><br>'
|
63 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
64 |
<?php echo MEC_kses::form($this->booking_button($event)); ?>
|
65 |
</div>
|
@@ -84,7 +84,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
84 |
<h4 class="mec-event-carousel-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout); ?></h4>
|
85 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?>
|
86 |
<?php do_action('mec_carousel_type2_after_title', $event); ?>
|
87 |
-
<p class="mec-carousel-event-location"><span><?php echo (isset($location['name']) ? $location['name'] : ''); echo (isset($location['address']) ? '</span><br>'
|
88 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
89 |
</div>
|
90 |
<div class="mec-event-footer-carousel-type2">
|
@@ -126,7 +126,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
126 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
127 |
<h4 class="mec-event-carousel-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout); ?></h4>
|
128 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?>
|
129 |
-
<p class="mec-carousel-event-location"><span><?php echo (isset($location['name']) ? $location['name'] : ''); echo (isset($location['address']) ? '</span><br>'
|
130 |
<?php if($settings['social_network_status'] != '0'): ?>
|
131 |
<ul class="mec-event-sharing-wrap">
|
132 |
<li class="mec-event-share">
|
28 |
$organizer_id = $this->main->get_master_organizer_id($event);
|
29 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
30 |
|
31 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
32 |
$event_date = (isset($event->date['start']) ? $event->date['start']['date'] : $event->data->meta['mec_start_date']);
|
33 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
34 |
$event_end_date = !empty($event->date['end']['date']) ? $event->date['end']['date'] : '';
|
59 |
<?php if($this->include_events_times) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
60 |
<h4 class="mec-event-carousel-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event)); ?></h4>
|
61 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?>
|
62 |
+
<p class="mec-carousel-event-location"><span><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); echo (isset($location['address']) ? '</span><br>'.esc_html($location['address']) : ''); ?></p>
|
63 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
64 |
<?php echo MEC_kses::form($this->booking_button($event)); ?>
|
65 |
</div>
|
84 |
<h4 class="mec-event-carousel-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout); ?></h4>
|
85 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?>
|
86 |
<?php do_action('mec_carousel_type2_after_title', $event); ?>
|
87 |
+
<p class="mec-carousel-event-location"><span><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); echo (isset($location['address']) ? '</span><br>'.esc_html($location['address']) : ''); ?></p>
|
88 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
89 |
</div>
|
90 |
<div class="mec-event-footer-carousel-type2">
|
126 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
127 |
<h4 class="mec-event-carousel-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout); ?></h4>
|
128 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?>
|
129 |
+
<p class="mec-carousel-event-location"><span><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); echo (isset($location['address']) ? '</span><br>'.esc_html($location['address']) : ''); ?></p>
|
130 |
<?php if($settings['social_network_status'] != '0'): ?>
|
131 |
<ul class="mec-event-sharing-wrap">
|
132 |
<li class="mec-event-share">
|
app/skins/carousel/tpl.php
CHANGED
@@ -27,21 +27,21 @@ $loop = ($this->found > 1 ? $this->loop : false);
|
|
27 |
$javascript = '<script type="text/javascript">
|
28 |
jQuery(document).ready(function()
|
29 |
{
|
30 |
-
jQuery("#mec_skin_'
|
31 |
{
|
32 |
-
id: "'
|
33 |
-
start_date: "'
|
34 |
-
items: "'
|
35 |
-
items_tablet: "'
|
36 |
-
items_mobile: "'
|
37 |
-
autoplay_status: "'
|
38 |
-
autoplay: "'
|
39 |
loop: '. json_encode($loop) .',
|
40 |
-
style: "'
|
41 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
42 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
43 |
-
sed_method: "'
|
44 |
-
image_popup: "'
|
45 |
});
|
46 |
});
|
47 |
</script>';
|
27 |
$javascript = '<script type="text/javascript">
|
28 |
jQuery(document).ready(function()
|
29 |
{
|
30 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecCarouselView(
|
31 |
{
|
32 |
+
id: "'.esc_js($this->id).'",
|
33 |
+
start_date: "'.esc_js($this->start_date).'",
|
34 |
+
items: "'.esc_js($this->count).'",
|
35 |
+
items_tablet: "'.esc_js($this->count_tablet).'",
|
36 |
+
items_mobile: "'.esc_js($this->count_mobile).'",
|
37 |
+
autoplay_status: "'.esc_js($this->autoplay_status).'",
|
38 |
+
autoplay: "'.esc_js($this->autoplay).'",
|
39 |
loop: '. json_encode($loop) .',
|
40 |
+
style: "'.esc_js($this->style).'",
|
41 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
42 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
43 |
+
sed_method: "'.esc_js($sed_method).'",
|
44 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
45 |
});
|
46 |
});
|
47 |
</script>';
|
app/skins/countdown/tpl.php
CHANGED
@@ -80,9 +80,9 @@ if(isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'], 'T
|
|
80 |
$javascript = '<script type="text/javascript">
|
81 |
jQuery(document).ready(function()
|
82 |
{
|
83 |
-
jQuery("#mec_skin_countdown'
|
84 |
{
|
85 |
-
date: "'.($ongoing ? $end_time : $start_time).$gmt_offset.'",
|
86 |
format: "off"
|
87 |
},
|
88 |
function()
|
@@ -111,14 +111,14 @@ do_action('mec_countdown_skin_head');
|
|
111 |
if($this->style == 'style1'): ?>
|
112 |
<article class="mec-event-countdown-style1 col-md-12 <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
113 |
<div class="mec-event-countdown-part1 col-md-4">
|
114 |
-
<div class="mec-event-upcoming"><?php echo sprintf(
|
115 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($event_title.$this->main->get_flags($event)); ?> <?php echo MEC_kses::element($this->get_label_captions($event ,'mec-fc-style')); ?></h4>
|
116 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
117 |
</div>
|
118 |
<div class="mec-event-countdown-part2 col-md-5">
|
119 |
<div class="mec-event-date-place">
|
120 |
<div class="mec-event-date"><?php echo esc_html($this->main->date_i18n($this->date_format_style11, strtotime($event_date))); ?></div>
|
121 |
-
<div class="mec-event-place"><?php echo (isset($event_location['name']) ? ' - '
|
122 |
</div>
|
123 |
<div class="mec-event-countdown" id="mec_skin_countdown<?php echo esc_attr($this->id); ?>">
|
124 |
<ul class="clockdiv" id="countdown">
|
@@ -157,14 +157,14 @@ do_action('mec_countdown_skin_head');
|
|
157 |
<?php elseif($this->style == 'style2'): ?>
|
158 |
<article class="mec-event-countdown-style2 <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
159 |
<div class="mec-event-countdown-part1 col-md-4">
|
160 |
-
<div class="mec-event-upcoming"><?php echo sprintf(
|
161 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($event_title.$this->main->get_flags($event)); ?> <?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
162 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
163 |
</div>
|
164 |
<div class="mec-event-countdown-part2 col-md-5">
|
165 |
<div class="mec-event-date-place">
|
166 |
<div class="mec-event-date"><?php echo esc_html($this->main->date_i18n($this->date_format_style21, strtotime($event_date))); ?></div>
|
167 |
-
<div class="mec-event-place"><?php echo (isset($event_location['name']) ? ' - '
|
168 |
</div>
|
169 |
<div class="mec-event-countdown" id="mec_skin_countdown<?php echo esc_attr($this->id); ?>">
|
170 |
<ul class="clockdiv" id="countdown">
|
@@ -204,7 +204,7 @@ do_action('mec_countdown_skin_head');
|
|
204 |
<article class="mec-event-countdown-style3 <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
205 |
<div class="mec-event-countdown-part1">
|
206 |
<div class="mec-event-countdown-part-title">
|
207 |
-
<div class="mec-event-upcoming"><?php echo sprintf(
|
208 |
</div>
|
209 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
210 |
<div class="mec-event-countdown-part-details">
|
80 |
$javascript = '<script type="text/javascript">
|
81 |
jQuery(document).ready(function()
|
82 |
{
|
83 |
+
jQuery("#mec_skin_countdown'.esc_js($this->id).'").mecCountDown(
|
84 |
{
|
85 |
+
date: "'.esc_js(($ongoing ? $end_time : $start_time).$gmt_offset).'",
|
86 |
format: "off"
|
87 |
},
|
88 |
function()
|
111 |
if($this->style == 'style1'): ?>
|
112 |
<article class="mec-event-countdown-style1 col-md-12 <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
113 |
<div class="mec-event-countdown-part1 col-md-4">
|
114 |
+
<div class="mec-event-upcoming"><?php echo sprintf(esc_html__('%s Upcoming Event', 'modern-events-calendar-lite'), '<span>'.esc_html__('Next', 'modern-events-calendar-lite').'</span>'); ?></div>
|
115 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($event_title.$this->main->get_flags($event)); ?> <?php echo MEC_kses::element($this->get_label_captions($event ,'mec-fc-style')); ?></h4>
|
116 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
117 |
</div>
|
118 |
<div class="mec-event-countdown-part2 col-md-5">
|
119 |
<div class="mec-event-date-place">
|
120 |
<div class="mec-event-date"><?php echo esc_html($this->main->date_i18n($this->date_format_style11, strtotime($event_date))); ?></div>
|
121 |
+
<div class="mec-event-place"><?php echo (isset($event_location['name']) ? ' - '.esc_html($event_location['name']) : ''); ?></div>
|
122 |
</div>
|
123 |
<div class="mec-event-countdown" id="mec_skin_countdown<?php echo esc_attr($this->id); ?>">
|
124 |
<ul class="clockdiv" id="countdown">
|
157 |
<?php elseif($this->style == 'style2'): ?>
|
158 |
<article class="mec-event-countdown-style2 <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
159 |
<div class="mec-event-countdown-part1 col-md-4">
|
160 |
+
<div class="mec-event-upcoming"><?php echo sprintf(esc_html__('%s Upcoming Event', 'modern-events-calendar-lite'), '<span>'.esc_html__('Next', 'modern-events-calendar-lite').'</span>'); ?></div>
|
161 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($event_title.$this->main->get_flags($event)); ?> <?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
162 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
163 |
</div>
|
164 |
<div class="mec-event-countdown-part2 col-md-5">
|
165 |
<div class="mec-event-date-place">
|
166 |
<div class="mec-event-date"><?php echo esc_html($this->main->date_i18n($this->date_format_style21, strtotime($event_date))); ?></div>
|
167 |
+
<div class="mec-event-place"><?php echo (isset($event_location['name']) ? ' - '.esc_html($event_location['name']) : ''); ?></div>
|
168 |
</div>
|
169 |
<div class="mec-event-countdown" id="mec_skin_countdown<?php echo esc_attr($this->id); ?>">
|
170 |
<ul class="clockdiv" id="countdown">
|
204 |
<article class="mec-event-countdown-style3 <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
205 |
<div class="mec-event-countdown-part1">
|
206 |
<div class="mec-event-countdown-part-title">
|
207 |
+
<div class="mec-event-upcoming"><?php echo sprintf(esc_html__('%s Upcoming Event', 'modern-events-calendar-lite'), '<span>'.esc_html__('Next', 'modern-events-calendar-lite').'</span>'); ?></div>
|
208 |
</div>
|
209 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
210 |
<div class="mec-event-countdown-part-details">
|
app/skins/cover/tpl.php
CHANGED
@@ -26,7 +26,7 @@ $event_organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_i
|
|
26 |
|
27 |
$event_date = (isset($event->date['start']) ? $event->date['start']['date'] : $event->data->meta['mec_start_date']);
|
28 |
$event_link = (isset($event->data->permalink) and trim($event->data->permalink)) ? $this->main->get_event_date_permalink($event, $event_date) : get_permalink($event->data->ID);
|
29 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
30 |
$event_thumb = $event->data->thumbnails['large'];
|
31 |
$event_thumb_url = $event->data->featured_image['large'];
|
32 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
@@ -45,11 +45,11 @@ do_action('mec_cover_skin_head');
|
|
45 |
<div class="mec-event-overlay mec-bg-color"></div>
|
46 |
<div class="mec-event-detail">
|
47 |
<?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?>
|
48 |
-
<div class="mec-event-date"><?php echo esc_html($this->main->date_i18n($this->date_format_modern1, strtotime($event_date))).((isset($event->data->time) and trim($event->data->time['start'])) ? ' - '
|
49 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
50 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($event->data->title.$this->main->get_flags($event).$event_color); ?></h4>
|
51 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
52 |
-
<div class="mec-event-place"><?php echo (isset($event_location['name']) ? $event_location['name'] : ''); ?></div>
|
53 |
</div>
|
54 |
</a>
|
55 |
</article>
|
@@ -71,7 +71,7 @@ do_action('mec_cover_skin_head');
|
|
71 |
<div class="mec-event-content">
|
72 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event, NULL, '')); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color); ?><?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?><?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
73 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
74 |
-
<?php if(isset($event_organizer['name'])): ?><div class="mec-event-place"><?php echo (isset($event_organizer['name']) ? $event_organizer['name'] : ''); ?></div><?php endif; ?>
|
75 |
</div>
|
76 |
<div class="mec-event-date mec-bg-color">
|
77 |
<div class="dday"><?php echo esc_html($this->main->date_i18n($this->date_format_clean1, strtotime($event_date))); ?></div>
|
26 |
|
27 |
$event_date = (isset($event->date['start']) ? $event->date['start']['date'] : $event->data->meta['mec_start_date']);
|
28 |
$event_link = (isset($event->data->permalink) and trim($event->data->permalink)) ? $this->main->get_event_date_permalink($event, $event_date) : get_permalink($event->data->ID);
|
29 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_html($event->data->meta['mec_color']).'"></span>' : '';
|
30 |
$event_thumb = $event->data->thumbnails['large'];
|
31 |
$event_thumb_url = $event->data->featured_image['large'];
|
32 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
45 |
<div class="mec-event-overlay mec-bg-color"></div>
|
46 |
<div class="mec-event-detail">
|
47 |
<?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?>
|
48 |
+
<div class="mec-event-date"><?php echo esc_html($this->main->date_i18n($this->date_format_modern1, strtotime($event_date))).((isset($event->data->time) and trim($event->data->time['start'])) ? ' - '.esc_html($event->data->time['start']) : ''); ?></div>
|
49 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
50 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($event->data->title.$this->main->get_flags($event).$event_color); ?></h4>
|
51 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
52 |
+
<div class="mec-event-place"><?php echo (isset($event_location['name']) ? esc_html($event_location['name']) : ''); ?></div>
|
53 |
</div>
|
54 |
</a>
|
55 |
</article>
|
71 |
<div class="mec-event-content">
|
72 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event, NULL, '')); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color); ?><?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?><?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
73 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
74 |
+
<?php if(isset($event_organizer['name'])): ?><div class="mec-event-place"><?php echo (isset($event_organizer['name']) ? esc_html($event_organizer['name']) : ''); ?></div><?php endif; ?>
|
75 |
</div>
|
76 |
<div class="mec-event-date mec-bg-color">
|
77 |
<div class="dday"><?php echo esc_html($this->main->date_i18n($this->date_format_clean1, strtotime($event_date))); ?></div>
|
app/skins/custom/render.php
CHANGED
@@ -49,7 +49,7 @@ if($this->style == 'colorful')
|
|
49 |
<?php endif;
|
50 |
|
51 |
echo ($rcount == 1) ? '<div class="row">' : '';
|
52 |
-
echo '<div class="col-md-'
|
53 |
echo '<article class="mec-event-article mec-sd-event-article'. get_the_ID().' mec-clear" itemscope>';
|
54 |
echo Plugin::instance()->frontend->get_builder_content_for_display($this->style, true);
|
55 |
echo '</article></div>';
|
@@ -91,18 +91,18 @@ if(isset($map_eventss) and !empty($map_eventss))
|
|
91 |
jQuery(document).ready(function()
|
92 |
{
|
93 |
var jsonPush = gmapSkin('.json_encode($this->render->markers($map_eventss)).');
|
94 |
-
jQuery("#mec_googlemap_canvas'
|
95 |
{
|
96 |
-
id: "'
|
97 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
98 |
-
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
99 |
-
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
100 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
101 |
markers: jsonPush,
|
102 |
-
clustering_images: "'
|
103 |
getDirection: 0,
|
104 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
105 |
-
geolocation: "'
|
106 |
});
|
107 |
});
|
108 |
</script>';
|
49 |
<?php endif;
|
50 |
|
51 |
echo ($rcount == 1) ? '<div class="row">' : '';
|
52 |
+
echo '<div class="col-md-'.sanitize_html_class($col).' col-sm-'.sanitize_html_class($col).'">';
|
53 |
echo '<article class="mec-event-article mec-sd-event-article'. get_the_ID().' mec-clear" itemscope>';
|
54 |
echo Plugin::instance()->frontend->get_builder_content_for_display($this->style, true);
|
55 |
echo '</article></div>';
|
91 |
jQuery(document).ready(function()
|
92 |
{
|
93 |
var jsonPush = gmapSkin('.json_encode($this->render->markers($map_eventss)).');
|
94 |
+
jQuery("#mec_googlemap_canvas'.esc_js($this->id).'").mecGoogleMaps(
|
95 |
{
|
96 |
+
id: "'.esc_js($this->id).'",
|
97 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
98 |
+
zoom: '.(isset($settings['google_maps_zoomlevel']) ? esc_js($settings['google_maps_zoomlevel']) : 14).',
|
99 |
+
icon: "'.esc_js(apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png'))).'",
|
100 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
101 |
markers: jsonPush,
|
102 |
+
clustering_images: "'.esc_js($this->main->asset('img/cluster1/m')).'",
|
103 |
getDirection: 0,
|
104 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
105 |
+
geolocation: "'.esc_js($this->geolocation).'",
|
106 |
});
|
107 |
});
|
108 |
</script>';
|
app/skins/custom/tpl.php
CHANGED
@@ -22,20 +22,20 @@ if($sed_method == 'new') $sed_method = '0';
|
|
22 |
$javascript = '<script type="text/javascript">
|
23 |
jQuery(document).ready(function()
|
24 |
{
|
25 |
-
jQuery("#mec_skin_'
|
26 |
{
|
27 |
-
id: "'
|
28 |
-
start_date: "'
|
29 |
-
end_date: "'
|
30 |
-
offset: "'
|
31 |
-
limit: "'
|
32 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
33 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
34 |
-
sed_method: "'
|
35 |
-
image_popup: "'
|
36 |
sf:
|
37 |
{
|
38 |
-
container: "'.($this->sf_status ? '#mec_search_form_'.$this->id : '').'",
|
39 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
40 |
refine: '.($this->sf_refine ? 1 : 0).',
|
41 |
},
|
22 |
$javascript = '<script type="text/javascript">
|
23 |
jQuery(document).ready(function()
|
24 |
{
|
25 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecCustomView(
|
26 |
{
|
27 |
+
id: "'.esc_js($this->id).'",
|
28 |
+
start_date: "'.esc_js($this->start_date).'",
|
29 |
+
end_date: "'.esc_js($this->end_date).'",
|
30 |
+
offset: "'.esc_js($this->next_offset).'",
|
31 |
+
limit: "'.esc_js($this->limit).'",
|
32 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
33 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
34 |
+
sed_method: "'.esc_js($sed_method).'",
|
35 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
36 |
sf:
|
37 |
{
|
38 |
+
container: "'.($this->sf_status ? esc_js('#mec_search_form_'.$this->id) : '').'",
|
39 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
40 |
refine: '.($this->sf_refine ? 1 : 0).',
|
41 |
},
|
app/skins/daily_view.php
CHANGED
@@ -320,12 +320,12 @@ class MEC_skin_daily_view extends MEC_skins
|
|
320 |
*/
|
321 |
public function get_date_labels()
|
322 |
{
|
323 |
-
$labels = '<div id="mec-owl-calendar-d-table-'
|
324 |
|
325 |
foreach($this->events as $date=>$events)
|
326 |
{
|
327 |
$time = strtotime($date);
|
328 |
-
$labels .= '<div class="mec-daily-view-day '.(count($events) ? 'mec-has-event' : '').'" id="mec_daily_view_day'
|
329 |
}
|
330 |
|
331 |
return $labels.'</div>';
|
320 |
*/
|
321 |
public function get_date_labels()
|
322 |
{
|
323 |
+
$labels = '<div id="mec-owl-calendar-d-table-'.esc_attr($this->id).'-'.date('Ym', strtotime($this->start_date)).'" class="mec-daily-view-date-labels mec-owl-carousel mec-owl-theme">';
|
324 |
|
325 |
foreach($this->events as $date=>$events)
|
326 |
{
|
327 |
$time = strtotime($date);
|
328 |
+
$labels .= '<div class="mec-daily-view-day '.(count($events) ? 'mec-has-event' : '').'" id="mec_daily_view_day'.esc_attr($this->id).'_'.date('Ymd', $time).'" data-events-count="'.esc_attr(count($events)).'" data-month-id="'.date('Ym', $time).'" data-day-id="'.date('Ymd', $time).'" data-day-weekday="'.esc_attr($this->main->date_i18n('l', $time)).'" data-day-monthday="'.date('j', $time).'">'.esc_html($this->main->date_i18n('j', $time)).'</div>';
|
329 |
}
|
330 |
|
331 |
return $labels.'</div>';
|
app/skins/daily_view/render.php
CHANGED
@@ -19,7 +19,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
19 |
|
20 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
21 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
22 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
23 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
24 |
|
25 |
$mec_data = $this->display_custom_data($event);
|
@@ -40,7 +40,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
40 |
|
41 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?></h4>
|
42 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
43 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div>
|
44 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
45 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
46 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
19 |
|
20 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
21 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
22 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
23 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
24 |
|
25 |
$mec_data = $this->display_custom_data($event);
|
40 |
|
41 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?></h4>
|
42 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
43 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div>
|
44 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
45 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
46 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
app/skins/daily_view/tpl.php
CHANGED
@@ -35,7 +35,7 @@ if($this->next_previous_button)
|
|
35 |
$navigator_html .= '<div class="mec-previous-month mec-color mec-load-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i></a></div>';
|
36 |
}
|
37 |
|
38 |
-
$navigator_html .= '<h4>'
|
39 |
|
40 |
// Show next month handler if needed
|
41 |
if(!$this->show_only_expired_events or
|
@@ -46,9 +46,9 @@ if($this->next_previous_button)
|
|
46 |
}
|
47 |
}
|
48 |
|
49 |
-
$month_html = '<div class="mec-today-container mec-calendar-d-top" id="mec_today_container'
|
50 |
-
<div class="mec-date-labels-container mec-calendar-d-table"><a href="#" class="mec-table-d-prev mec-color"><i class="mec-sl-angle-left"></i></a><a href="#" class="mec-table-d-next mec-color"><i class="mec-sl-angle-right"></i></a>'
|
51 |
-
<div class="mec-date-labels-container mec-calendar-day-events mec-clear">'
|
52 |
|
53 |
// Return the data if called by AJAX
|
54 |
if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
@@ -73,9 +73,9 @@ if($sed_method == 'new') $sed_method = '0';
|
|
73 |
$javascript = '<script type="text/javascript">
|
74 |
jQuery(document).ready(function()
|
75 |
{
|
76 |
-
jQuery("#mec_daily_view_month_'
|
77 |
{
|
78 |
-
id: "'
|
79 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
80 |
month_id: "'.date('Ym', $current_month_time).'",
|
81 |
year: "'.date('Y', $current_month_time).'",
|
@@ -86,11 +86,11 @@ jQuery(document).ready(function()
|
|
86 |
month_navigator: '.($this->next_previous_button ? 1 : 0).',
|
87 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
88 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
89 |
-
sed_method: "'
|
90 |
-
image_popup: "'
|
91 |
sf:
|
92 |
{
|
93 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
94 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
95 |
refine: '.($this->sf_refine ? 1 : 0).',
|
96 |
},
|
35 |
$navigator_html .= '<div class="mec-previous-month mec-color mec-load-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i></a></div>';
|
36 |
}
|
37 |
|
38 |
+
$navigator_html .= '<h4>'.esc_html($this->main->date_i18n('Y F', $current_month_time)).'</h4>';
|
39 |
|
40 |
// Show next month handler if needed
|
41 |
if(!$this->show_only_expired_events or
|
46 |
}
|
47 |
}
|
48 |
|
49 |
+
$month_html = '<div class="mec-today-container mec-calendar-d-top" id="mec_today_container'.esc_attr($this->id).'_'.date('Ym', $current_month_time).'"></div>
|
50 |
+
<div class="mec-date-labels-container mec-calendar-d-table"><a href="#" class="mec-table-d-prev mec-color"><i class="mec-sl-angle-left"></i></a><a href="#" class="mec-table-d-next mec-color"><i class="mec-sl-angle-right"></i></a>'.MEC_kses::element($date_labels).'</div>
|
51 |
+
<div class="mec-date-labels-container mec-calendar-day-events mec-clear">'.MEC_kses::full($date_events).'</div>';
|
52 |
|
53 |
// Return the data if called by AJAX
|
54 |
if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
73 |
$javascript = '<script type="text/javascript">
|
74 |
jQuery(document).ready(function()
|
75 |
{
|
76 |
+
jQuery("#mec_daily_view_month_'.esc_js($this->id).'_'.date('Ym', $current_month_time).'").mecDailyView(
|
77 |
{
|
78 |
+
id: "'.esc_js($this->id).'",
|
79 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
80 |
month_id: "'.date('Ym', $current_month_time).'",
|
81 |
year: "'.date('Y', $current_month_time).'",
|
86 |
month_navigator: '.($this->next_previous_button ? 1 : 0).',
|
87 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
88 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
89 |
+
sed_method: "'.esc_js($sed_method).'",
|
90 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
91 |
sf:
|
92 |
{
|
93 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
94 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
95 |
refine: '.($this->sf_refine ? 1 : 0).',
|
96 |
},
|
app/skins/default_full_calendar/tpl.php
CHANGED
@@ -12,20 +12,20 @@ if($sed_method == 'new') $sed_method = '0';
|
|
12 |
$javascript = '<script type="text/javascript">
|
13 |
jQuery(document).ready(function()
|
14 |
{
|
15 |
-
jQuery("#mec_skin_'
|
16 |
{
|
17 |
-
id: "'
|
18 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
19 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
20 |
-
sed_method: "'
|
21 |
-
image_popup: "'
|
22 |
sf:
|
23 |
{
|
24 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
25 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
26 |
refine: '.($this->sf_refine ? 1 : 0).',
|
27 |
},
|
28 |
-
skin: "'
|
29 |
});
|
30 |
});
|
31 |
</script>';
|
12 |
$javascript = '<script type="text/javascript">
|
13 |
jQuery(document).ready(function()
|
14 |
{
|
15 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecFullCalendar(
|
16 |
{
|
17 |
+
id: "'.esc_js($this->id).'",
|
18 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
19 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
20 |
+
sed_method: "'.esc_js($sed_method).'",
|
21 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
22 |
sf:
|
23 |
{
|
24 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
25 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
26 |
refine: '.($this->sf_refine ? 1 : 0).',
|
27 |
},
|
28 |
+
skin: "'.esc_js($this->default_view).'",
|
29 |
});
|
30 |
});
|
31 |
</script>';
|
app/skins/full_calendar/tpl.php
CHANGED
@@ -14,20 +14,20 @@ if($sed_method == 'new') $sed_method = '0';
|
|
14 |
$javascript = '<script type="text/javascript">
|
15 |
jQuery(document).ready(function()
|
16 |
{
|
17 |
-
jQuery("#mec_skin_'
|
18 |
{
|
19 |
-
id: "'
|
20 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
21 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
22 |
-
sed_method: "'
|
23 |
-
image_popup: "'
|
24 |
sf:
|
25 |
{
|
26 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
27 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
28 |
refine: '.($this->sf_refine ? 1 : 0).',
|
29 |
},
|
30 |
-
skin: "'
|
31 |
});
|
32 |
});
|
33 |
</script>';
|
14 |
$javascript = '<script type="text/javascript">
|
15 |
jQuery(document).ready(function()
|
16 |
{
|
17 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecFullCalendar(
|
18 |
{
|
19 |
+
id: "'.esc_js($this->id).'",
|
20 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
21 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
22 |
+
sed_method: "'.esc_js($sed_method).'",
|
23 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
24 |
sf:
|
25 |
{
|
26 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
27 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
28 |
refine: '.($this->sf_refine ? 1 : 0).',
|
29 |
},
|
30 |
+
skin: "'.esc_js($this->default_view).'",
|
31 |
});
|
32 |
});
|
33 |
</script>';
|
app/skins/general_calendar.php
CHANGED
@@ -109,7 +109,7 @@ class MEC_skin_general_calendar extends MEC_skins
|
|
109 |
if (isset($event->data->labels) && !empty($event->data->labels) && $display_label) {
|
110 |
foreach($event->data->labels as $label)
|
111 |
{
|
112 |
-
$labels .= '<span class="mec-general-calendar-label" style="background-color:'
|
113 |
}
|
114 |
}
|
115 |
|
109 |
if (isset($event->data->labels) && !empty($event->data->labels) && $display_label) {
|
110 |
foreach($event->data->labels as $label)
|
111 |
{
|
112 |
+
$labels .= '<span class="mec-general-calendar-label" style="background-color:'.esc_attr($label['color']).';">' . trim($label['name']) . '</span>';
|
113 |
}
|
114 |
}
|
115 |
|
app/skins/general_calendar/tpl.php
CHANGED
@@ -69,101 +69,116 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
69 |
<div class="mec-gCalendar-filters">
|
70 |
<div class="mec-gCalendar-filters-wrap">
|
71 |
<?php
|
72 |
-
echo (is_array($this->sf_options) and $this->sf_options['category']['type'] != '0' ? MEC_kses::form($this->sf_search_field('category', array('type' => $this->sf_options['category']['type']))) : '');
|
73 |
-
echo (is_array($this->sf_options) and $this->sf_options['location']['type'] != '0' ? MEC_kses::form($this->sf_search_field('location', array('type' => $this->sf_options['location']['type']))) : '');
|
74 |
-
echo (is_array($this->sf_options) and $this->sf_options['organizer']['type'] != '0' ? MEC_kses::form($this->sf_search_field('organizer', array('type' => $this->sf_options['organizer']['type']))) : '');
|
75 |
-
echo (is_array($this->sf_options) and $this->sf_options['speaker']['type'] != '0' ? MEC_kses::form($this->sf_search_field('speaker', array('type' => $this->sf_options['speaker']['type']))) : '');
|
76 |
-
echo (is_array($this->sf_options) and $this->sf_options['tag']['type'] != '0' ? MEC_kses::form($this->sf_search_field('tag', array('type' => $this->sf_options['tag']['type']))) : '');
|
77 |
-
echo (is_array($this->sf_options) and $this->sf_options['label']['type'] != '0' ? MEC_kses::form($this->sf_search_field('label', array('type' => $this->sf_options['label']['type']))) : '');
|
78 |
-
echo (is_array($this->sf_options) and $this->sf_options['address_search']['type'] != '0' ? MEC_kses::form($this->sf_search_field('address_search', array('type' => $this->sf_options['address_search']['type']))) : '');
|
79 |
-
echo (is_array($this->sf_options) and $this->sf_options['event_cost']['type'] != '0' ? MEC_kses::form($this->sf_search_field('event_cost', array('type' => $this->sf_options['event_cost']['type']))) : '');
|
80 |
echo ($this->sf_reset_button ? '<div class="mec-search-reset-button"><button class="button mec-button" id="mec_search_form_'.esc_attr($this->id).'_reset" type="button">'.esc_html__('Reset', 'modern-events-calendar-lite').'</button></div>' : '');
|
81 |
?>
|
82 |
</div>
|
83 |
</div>
|
84 |
</div>
|
85 |
<style>.nice-select{color: #838383;-webkit-tap-highlight-color:transparent;background-color:#fff;border:solid 1px #E3E4E5;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:12px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width: 100%;border-radius: 0 3px 3px 0;height: 40px;}.nice-select:hover{border-color:#dbdbdb}.nice-select:after{border-bottom: 1px solid #c1c2c3; border-right: 1px solid #c1c2c3; width: 8px; height: 8px; margin-top: -5px; right: 15px;content:'';display:block;pointer-events:none;position:absolute;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}.nice-select.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.nice-select.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.nice-select.disabled{border-color:#ededed;color:#999;pointer-events:none}.nice-select.disabled:after{border-color:#ccc}.nice-select.wide{width:100%}.nice-select.wide .list{left:0!important;right:0!important}.nice-select.right{float:right}.nice-select.right .list{left:auto;right:0}.nice-select.small{font-size:12px;height:36px;line-height:34px}.nice-select.small:after{height:4px;width:4px}.nice-select.small .option{line-height:34px;min-height:34px}.nice-select .list{width: 100%;background-color:#fff;border-radius:0 0 3px 3px;box-shadow:0 0 0 1px rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5,0,0,1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5,0,0,1.25),opacity .15s ease-out;z-index:9}.nice-select .list:hover .option:not(:hover){background-color:transparent!important}.nice-select .option{ cursor: pointer; font-weight: 400;line-height: 1.2;list-style: none;min-height: 30px;outline: 0;padding: 10px 6px 10px 18px;text-align: left;-webkit-transition: all .2s;transition: all .2s;font-size: 14px;letter-spacing: -0.1px;white-space: break-spaces;}.nice-select .option.focus,.nice-select .option.selected.focus,.nice-select .option:hover{background-color:#f6f6f6}.nice-select .option.selected{font-weight:700}.nice-select .option.disabled{background-color:transparent;color:#999;cursor:default}.no-csspointerevents .nice-select .list{display:none}.no-csspointerevents .nice-select.open .list{display:block}</style>
|
86 |
-
|
|
|
87 |
document.addEventListener("DOMContentLoaded", function () {
|
88 |
var calendarEl = document.getElementById("mec-gCalendar-wrap");
|
89 |
var calendar = new FullCalendar.Calendar(calendarEl, {
|
90 |
-
initialView:
|
91 |
-
initialDate: '
|
92 |
editable: false,
|
93 |
selectable: false,
|
94 |
businessHours: false,
|
95 |
-
height:
|
96 |
-
locale: '
|
97 |
-
|
|
|
|
|
98 |
customButtons: {
|
99 |
findEvents: {
|
100 |
-
text: '
|
101 |
click: function() {
|
102 |
-
jQuery(".mec-gCalendar-filters").css(
|
103 |
var eventSource = [];
|
104 |
eventSource = calendar.getEventSources();
|
105 |
jQuery.each(eventSource, function (key, value) {
|
106 |
value.remove();
|
107 |
});
|
108 |
calendar.addEventSource({
|
109 |
-
url: '
|
110 |
-
method:
|
111 |
-
startParam:
|
112 |
-
endParam:
|
113 |
-
textColor:
|
114 |
ajax: true,
|
115 |
extraParams: {
|
116 |
-
show_past_events:
|
117 |
-
show_only_past_events:
|
118 |
-
show_only_one_occurrence:
|
119 |
-
categories: (jQuery(
|
120 |
-
multiCategories: (jQuery(
|
121 |
-
location: jQuery(
|
122 |
-
organizer: jQuery(
|
123 |
-
speaker: jQuery(
|
124 |
-
tag: jQuery(
|
125 |
-
label: jQuery(
|
126 |
-
cost_min: jQuery(
|
127 |
-
cost_max: jQuery(
|
128 |
-
display_label: '
|
129 |
-
reason_for_cancellation: '
|
130 |
-
is_category_page: '
|
131 |
-
cat_id: '
|
132 |
-
local_time: '
|
133 |
-
filter_category: '
|
134 |
-
filter_location: '
|
135 |
-
filter_organizer: '
|
136 |
-
filter_label: '
|
137 |
-
filter_tag: '
|
138 |
-
filter_author: '
|
139 |
-
locale: '
|
140 |
},
|
141 |
});
|
142 |
calendar.refetchEvents();
|
143 |
}
|
144 |
},
|
145 |
-
|
|
|
|
|
146 |
filterEvents: {
|
147 |
-
text: '
|
148 |
click: function() {
|
149 |
jQuery(".mec-gCalendar-filters").fadeToggle( "fast", "linear" );
|
150 |
}
|
151 |
}
|
152 |
-
|
|
|
|
|
153 |
},
|
154 |
-
|
155 |
-
|
|
|
|
|
156 |
headerToolbar: {
|
157 |
-
left:
|
158 |
-
center:
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
},
|
165 |
buttonText: {
|
166 |
-
today: '
|
167 |
},
|
168 |
eventDidMount: function(info) {
|
169 |
var searchField = jQuery(".mec-gCalendar-search-text");
|
@@ -171,20 +186,18 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
171 |
var searchTerms = jQuery(".mec-gCalendar-search-text").val();
|
172 |
if (searchTerms.length > 0){
|
173 |
if (info.event._def.title.toLowerCase().indexOf(searchTerms) >= 0 || info.event._def.extendedProps.description.toLowerCase().indexOf(searchTerms) >= 0) {
|
174 |
-
info.event.setProp(
|
175 |
} else {
|
176 |
-
info.event.setProp(
|
177 |
}
|
178 |
} else {
|
179 |
-
info.event.setProp(
|
180 |
}
|
181 |
} else {
|
182 |
-
info.event.setProp(
|
183 |
}
|
184 |
-
|
185 |
-
|
186 |
-
var backgroundColor = info.backgroundColor == '#' ? '#00acf8' : info.backgroundColor;
|
187 |
-
var borderColor = info.borderColor == '#' ? '#00acf8' : info.borderColor;
|
188 |
jQuery(info.el).css("padding", "5px 3px");
|
189 |
jQuery(info.el).css("font-size", "12px");
|
190 |
jQuery(info.el).css("font-weight", "400");
|
@@ -195,152 +208,163 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
195 |
jQuery(info.el).css("border-left-width", "3px");
|
196 |
jQuery(info.el).css("background-color", "#fff");
|
197 |
jQuery(info.el).css("border-color", borderColor);
|
198 |
-
jQuery(info.el).css("white-space",
|
199 |
jQuery(info.el).css("font-family", "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif");
|
200 |
// jQuery(info.el).css("z-index", "1");
|
201 |
jQuery(info.el).css("line-height", "19px");
|
202 |
jQuery(info.el).css("margin-top", "0");
|
203 |
jQuery(info.el).attr("target", "<?php echo esc_js($sed_method); ?>");
|
204 |
-
|
|
|
|
|
205 |
jQuery(info.el).css({
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
});
|
210 |
-
|
|
|
|
|
211 |
jQuery(info.el).attr("data-event-id", info.event._def.publicId);
|
212 |
-
jQuery(info.el).append(
|
213 |
jQuery(info.el).append(info.event._def.extendedProps.reason_for_cancellation);
|
214 |
jQuery(info.el).append(info.event._def.extendedProps.locaTimeHtml);
|
215 |
jQuery(info.el).append(info.event._def.extendedProps.labels);
|
216 |
-
|
217 |
-
|
|
|
218 |
jQuery(info.el).attr("rel", "noopener");
|
219 |
-
jQuery(
|
220 |
{
|
221 |
-
id: '
|
222 |
-
atts: '
|
223 |
-
ajax_url: '
|
224 |
-
sed_method: '
|
225 |
-
image_popup: '
|
226 |
sf:
|
227 |
{
|
228 |
-
reset:
|
229 |
-
refine:
|
230 |
},
|
231 |
});
|
232 |
-
|
233 |
-
|
234 |
-
|
|
|
|
|
235 |
});
|
236 |
},
|
237 |
eventMouseEnter: function(info) {
|
238 |
-
var Image = info.event._def.extendedProps.image ?
|
239 |
-
|
240 |
-
var dateText = info.event._def.extendedProps.startDateStr != info.event._def.extendedProps.endDateStr ? '<i class="mec-sl-calendar"></i><div><span class="mec-gCalendar-tooltip-date-start">' + info.event._def.extendedProps.start_date + '</span>' + '<span class="mec-gCalendar-tooltip-date-end">' + info.event._def.extendedProps.end_date + '</span></div>' : '<i class="mec-sl-calendar"></i><div><span class="mec-gCalendar-tooltip-date-start">' + info.event._def.extendedProps.start_date + '</span>' + '<span class="mec-gCalendar-tooltip-date-day">' + info.event._def.extendedProps.startDay + '</span></div>';
|
241 |
|
242 |
-
var dateTime =
|
243 |
|
244 |
-
var Location = info.event._def.extendedProps.location ?
|
245 |
|
246 |
-
var Title =
|
247 |
|
248 |
-
var tooltip =
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
if ( jQuery(info.el).parent().find(
|
255 |
},
|
256 |
-
dayMaxEvents:
|
257 |
-
timeZone:
|
258 |
events: {
|
259 |
-
url: '
|
260 |
-
method:
|
261 |
-
startParam:
|
262 |
-
endParam:
|
263 |
-
textColor:
|
264 |
ajax: true,
|
265 |
extraParams: {
|
266 |
-
show_past_events:
|
267 |
-
show_only_past_events:
|
268 |
-
show_only_one_occurrence:
|
269 |
-
categories: (jQuery(
|
270 |
-
multiCategories: (jQuery(
|
271 |
-
location: jQuery(
|
272 |
-
organizer: jQuery(
|
273 |
-
speaker: jQuery(
|
274 |
-
tag: jQuery(
|
275 |
-
label: jQuery(
|
276 |
-
cost_min: jQuery(
|
277 |
-
cost_max: jQuery(
|
278 |
-
display_label: '
|
279 |
-
reason_for_cancellation: '
|
280 |
-
is_category_page: '
|
281 |
-
cat_id: '
|
282 |
-
local_time: '
|
283 |
-
filter_category: '
|
284 |
-
filter_location: '
|
285 |
-
filter_organizer: '
|
286 |
-
filter_label: '
|
287 |
-
filter_tag: '
|
288 |
-
filter_author: '
|
289 |
-
locale: '
|
290 |
},
|
291 |
failure: function() {
|
292 |
-
alert(
|
293 |
},
|
294 |
},
|
295 |
forceEventDuration: true,
|
296 |
loading: function(bool) {
|
297 |
-
document.getElementById(
|
298 |
-
bool ?
|
299 |
},
|
300 |
});
|
301 |
calendar.render();
|
302 |
|
303 |
-
const calendarHeaderFirstChild = jQuery(
|
304 |
-
const calendarHeaderLastChild = jQuery(
|
305 |
-
const calendarHeaderButton = calendarHeaderLastChild.find(
|
306 |
-
|
307 |
// Search Bar Filter
|
308 |
-
|
309 |
-
|
|
|
310 |
|
311 |
-
jQuery(
|
312 |
var keycode = (event.keyCode ? event.keyCode : event.which);
|
313 |
-
if(keycode ==
|
314 |
-
jQuery(
|
315 |
}
|
316 |
});
|
317 |
-
|
|
|
318 |
|
319 |
// Month Filter
|
320 |
-
|
321 |
-
|
322 |
-
|
|
|
323 |
var s = new Date(ev.date.valueOf());
|
324 |
-
let ye = new Intl.DateTimeFormat(
|
325 |
-
let mo = new Intl.DateTimeFormat(
|
326 |
-
let da = new Intl.DateTimeFormat(
|
327 |
-
jQuery(
|
328 |
calendar.gotoDate(`${ye}-${mo}-${da}`)
|
329 |
})
|
330 |
setTimeout(function(){ jQuery(".datepicker").appendTo(".gCalendarMonthFilterButton"); }, 1000);
|
331 |
-
|
|
|
332 |
|
333 |
-
|
|
|
334 |
setTimeout(function(){ jQuery(".mec-gCalendar-filters").appendTo(calendarHeaderButton); }, 1000);
|
335 |
-
jQuery(
|
336 |
-
if ( jQuery(
|
337 |
|
338 |
-
jQuery(document).on(
|
339 |
var button = jQuery(".fc-filterEvents-button");
|
340 |
var wrap = jQuery(".mec-gCalendar-filters");
|
341 |
if ((!button.is(e.target) && button.has(e.target).length === 0) && (!wrap.is(e.target) && wrap.has(e.target).length === 0)) {
|
342 |
wrap.hide();
|
343 |
-
if ( jQuery(".mec-searchbar-category-wrap select").length > 0 ) jQuery(
|
344 |
} else {
|
345 |
}
|
346 |
});
|
@@ -350,36 +374,36 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
350 |
reset()
|
351 |
})
|
352 |
function reset() {
|
353 |
-
var $event_cost_min = $("#mec_sf_event_cost_min_
|
354 |
-
var $event_cost_max = $("#mec_sf_event_cost_max_
|
355 |
-
var $time_start = $("#mec_sf_timepicker_start_
|
356 |
-
var $time_end = $("#mec_sf_timepicker_end_
|
357 |
-
var $s = $("#mec_sf_s_
|
358 |
-
var $address = $("#mec_sf_address_s_
|
359 |
-
var $date_start = $("#mec_sf_date_start_
|
360 |
-
var $date_end = $("#mec_sf_date_end_
|
361 |
-
var $event_type = $("#mec_sf_event_type_
|
362 |
-
var $event_type_2 = $("#mec_sf_event_type_2_
|
363 |
-
var $attribute = $("#mec_sf_attribute_
|
364 |
-
var $category = jQuery("#mec_sf_category_
|
365 |
-
var $location = jQuery("#mec_sf_location_
|
366 |
-
var $organizer = jQuery("#mec_sf_organizer_
|
367 |
-
var $speaker = jQuery("#mec_sf_speaker_
|
368 |
-
var $tag = jQuery("#mec_sf_tag_
|
369 |
-
var $label = jQuery("#mec_sf_label_
|
370 |
-
var $month = $("#mec_sf_month_
|
371 |
-
var $year = $("#mec_sf_year_
|
372 |
-
var $month_or_year = $("#mec_sf_month_
|
373 |
|
374 |
-
if ($category.length && $category.prop(
|
375 |
-
$category.find(
|
376 |
-
jQuery(this).val(null).trigger(
|
377 |
});
|
378 |
-
$category.find(
|
379 |
} else {
|
380 |
if ($category.length) {
|
381 |
$category.val(null);
|
382 |
-
$category.niceSelect(
|
383 |
}
|
384 |
}
|
385 |
|
@@ -402,33 +426,37 @@ wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.m
|
|
402 |
|
403 |
function get_fields(){
|
404 |
return [
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
];
|
412 |
}
|
413 |
var fields = get_fields();
|
414 |
$.each(fields,function(i,field){
|
415 |
|
416 |
-
if( jQuery("#mec_sf_"+ field +"_
|
417 |
|
418 |
-
jQuery("#mec_sf_"+ field +"_
|
419 |
-
if( jQuery("#mec_sf_"+ field +"_
|
420 |
-
jQuery("#mec_sf_"+ field +"_
|
421 |
}
|
422 |
}
|
423 |
});
|
424 |
|
425 |
// Search Again
|
426 |
setTimeout(function () {
|
427 |
-
|
428 |
-
jQuery('.fc-findEvents-button').trigger('click');
|
429 |
}, 1);
|
430 |
}
|
431 |
});
|
432 |
-
|
|
|
|
|
433 |
});
|
434 |
-
</script>
|
|
|
|
|
|
69 |
<div class="mec-gCalendar-filters">
|
70 |
<div class="mec-gCalendar-filters-wrap">
|
71 |
<?php
|
72 |
+
echo ((is_array($this->sf_options) and $this->sf_options['category']['type'] != '0') ? MEC_kses::form($this->sf_search_field('category', array('type' => $this->sf_options['category']['type']))) : '');
|
73 |
+
echo ((is_array($this->sf_options) and $this->sf_options['location']['type'] != '0') ? MEC_kses::form($this->sf_search_field('location', array('type' => $this->sf_options['location']['type']))) : '');
|
74 |
+
echo ((is_array($this->sf_options) and $this->sf_options['organizer']['type'] != '0') ? MEC_kses::form($this->sf_search_field('organizer', array('type' => $this->sf_options['organizer']['type']))) : '');
|
75 |
+
echo ((is_array($this->sf_options) and $this->sf_options['speaker']['type'] != '0') ? MEC_kses::form($this->sf_search_field('speaker', array('type' => $this->sf_options['speaker']['type']))) : '');
|
76 |
+
echo ((is_array($this->sf_options) and $this->sf_options['tag']['type'] != '0') ? MEC_kses::form($this->sf_search_field('tag', array('type' => $this->sf_options['tag']['type']))) : '');
|
77 |
+
echo ((is_array($this->sf_options) and $this->sf_options['label']['type'] != '0') ? MEC_kses::form($this->sf_search_field('label', array('type' => $this->sf_options['label']['type']))) : '');
|
78 |
+
echo ((is_array($this->sf_options) and $this->sf_options['address_search']['type'] != '0') ? MEC_kses::form($this->sf_search_field('address_search', array('type' => $this->sf_options['address_search']['type']))) : '');
|
79 |
+
echo ((is_array($this->sf_options) and $this->sf_options['event_cost']['type'] != '0') ? MEC_kses::form($this->sf_search_field('event_cost', array('type' => $this->sf_options['event_cost']['type']))) : '');
|
80 |
echo ($this->sf_reset_button ? '<div class="mec-search-reset-button"><button class="button mec-button" id="mec_search_form_'.esc_attr($this->id).'_reset" type="button">'.esc_html__('Reset', 'modern-events-calendar-lite').'</button></div>' : '');
|
81 |
?>
|
82 |
</div>
|
83 |
</div>
|
84 |
</div>
|
85 |
<style>.nice-select{color: #838383;-webkit-tap-highlight-color:transparent;background-color:#fff;border:solid 1px #E3E4E5;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:12px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width: 100%;border-radius: 0 3px 3px 0;height: 40px;}.nice-select:hover{border-color:#dbdbdb}.nice-select:after{border-bottom: 1px solid #c1c2c3; border-right: 1px solid #c1c2c3; width: 8px; height: 8px; margin-top: -5px; right: 15px;content:'';display:block;pointer-events:none;position:absolute;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}.nice-select.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.nice-select.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.nice-select.disabled{border-color:#ededed;color:#999;pointer-events:none}.nice-select.disabled:after{border-color:#ccc}.nice-select.wide{width:100%}.nice-select.wide .list{left:0!important;right:0!important}.nice-select.right{float:right}.nice-select.right .list{left:auto;right:0}.nice-select.small{font-size:12px;height:36px;line-height:34px}.nice-select.small:after{height:4px;width:4px}.nice-select.small .option{line-height:34px;min-height:34px}.nice-select .list{width: 100%;background-color:#fff;border-radius:0 0 3px 3px;box-shadow:0 0 0 1px rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5,0,0,1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5,0,0,1.25),opacity .15s ease-out;z-index:9}.nice-select .list:hover .option:not(:hover){background-color:transparent!important}.nice-select .option{ cursor: pointer; font-weight: 400;line-height: 1.2;list-style: none;min-height: 30px;outline: 0;padding: 10px 6px 10px 18px;text-align: left;-webkit-transition: all .2s;transition: all .2s;font-size: 14px;letter-spacing: -0.1px;white-space: break-spaces;}.nice-select .option.focus,.nice-select .option.selected.focus,.nice-select .option:hover{background-color:#f6f6f6}.nice-select .option.selected{font-weight:700}.nice-select .option.disabled{background-color:transparent;color:#999;cursor:default}.no-csspointerevents .nice-select .list{display:none}.no-csspointerevents .nice-select.open .list{display:block}</style>
|
86 |
+
<?php
|
87 |
+
$javascript = '<script>
|
88 |
document.addEventListener("DOMContentLoaded", function () {
|
89 |
var calendarEl = document.getElementById("mec-gCalendar-wrap");
|
90 |
var calendar = new FullCalendar.Calendar(calendarEl, {
|
91 |
+
initialView: "dayGridMonth",
|
92 |
+
initialDate: "'. esc_js($this->get_start_date()[0].'-'.$this->get_start_date()[1].'-'.$this->get_start_date()[2]) .'",
|
93 |
editable: false,
|
94 |
selectable: false,
|
95 |
businessHours: false,
|
96 |
+
height: "auto",
|
97 |
+
locale: "'. esc_js($lang) .'",
|
98 |
+
';
|
99 |
+
if (mec_general_calendar_find_event($this->sf_options, 'find')) :
|
100 |
+
$javascript .='
|
101 |
customButtons: {
|
102 |
findEvents: {
|
103 |
+
text: "'. esc_html__('Find Events', 'modern-events-calendar-lite') .'",
|
104 |
click: function() {
|
105 |
+
jQuery(".mec-gCalendar-filters").css("display" , "none")
|
106 |
var eventSource = [];
|
107 |
eventSource = calendar.getEventSources();
|
108 |
jQuery.each(eventSource, function (key, value) {
|
109 |
value.remove();
|
110 |
});
|
111 |
calendar.addEventSource({
|
112 |
+
url: "'. get_rest_url() .'mec/v1/events",
|
113 |
+
method: "GET",
|
114 |
+
startParam: "startParam",
|
115 |
+
endParam: "endParam",
|
116 |
+
textColor: "#000",
|
117 |
ajax: true,
|
118 |
extraParams: {
|
119 |
+
show_past_events: "'. esc_js($show_past_events).'",
|
120 |
+
show_only_past_events: "'. esc_js($show_only_past_events).'",
|
121 |
+
show_only_one_occurrence: "'. esc_js($show_only_one_occurrence).'",
|
122 |
+
categories: (jQuery("select[id^=\"mec_sf_category\"]").length > 0) ? jQuery("select[id^=\"mec_sf_category\"]").val() : "",
|
123 |
+
multiCategories: (jQuery(".select2-hidden-accessible").length > 0) ? JSON.stringify(jQuery(".select2-hidden-accessible").val()) : "",
|
124 |
+
location: jQuery("select[id^=\"mec_sf_location\"]").val(),
|
125 |
+
organizer: jQuery("select[id^=\"mec_sf_organizer\"]").val(),
|
126 |
+
speaker: jQuery("select[id^=\"mec_sf_speaker\"]").val(),
|
127 |
+
tag: jQuery("select[id^=\"mec_sf_tag\"]").val(),
|
128 |
+
label: jQuery("select[id^=\"mec_sf_label\"]").val(),
|
129 |
+
cost_min: jQuery("input[id^=\"mec_sf_event_cost_min\"]").val(),
|
130 |
+
cost_max: jQuery("input[id^=\"mec_sf_event_cost_max\"]").val(),
|
131 |
+
display_label: "'. esc_js($display_label) .'",
|
132 |
+
reason_for_cancellation: "'. esc_js($reason_for_cancellation) .'",
|
133 |
+
is_category_page: "'. esc_js($is_category_page) .'",
|
134 |
+
cat_id: "'. esc_js($cat_id) .'",
|
135 |
+
local_time: "'. esc_js($local_time) .'",
|
136 |
+
filter_category: "'. esc_js($filter_category) .'",
|
137 |
+
filter_location: "'. esc_js($filter_location) .'",
|
138 |
+
filter_organizer: "'. esc_js($filter_organizer) .'",
|
139 |
+
filter_label: "'. esc_js($filter_label) .'",
|
140 |
+
filter_tag: "'. esc_js($filter_tag) .'",
|
141 |
+
filter_author: "'. esc_js($filter_author) .'",
|
142 |
+
locale: "'. esc_js($lang) .'",
|
143 |
},
|
144 |
});
|
145 |
calendar.refetchEvents();
|
146 |
}
|
147 |
},
|
148 |
+
';
|
149 |
+
if (mec_general_calendar_find_event($this->sf_options, 'filter')) :
|
150 |
+
$javascript .='
|
151 |
filterEvents: {
|
152 |
+
text: "'. esc_html__('Filter', 'modern-events-calendar-lite') .'",
|
153 |
click: function() {
|
154 |
jQuery(".mec-gCalendar-filters").fadeToggle( "fast", "linear" );
|
155 |
}
|
156 |
}
|
157 |
+
';
|
158 |
+
endif;
|
159 |
+
$javascript .='
|
160 |
},
|
161 |
+
';
|
162 |
+
endif;
|
163 |
+
$javascript .='
|
164 |
+
firstDay: "'.esc_js($week_start_day).'",
|
165 |
headerToolbar: {
|
166 |
+
left: "title,prevYear,prev,today,next,nextYear",
|
167 |
+
center: "",
|
168 |
+
';
|
169 |
+
if (mec_general_calendar_find_event($this->sf_options, 'find')):
|
170 |
+
$javascript .='
|
171 |
+
right: "filterEvents,findEvents"
|
172 |
+
';
|
173 |
+
else :
|
174 |
+
$javascript .='
|
175 |
+
right: ""
|
176 |
+
';
|
177 |
+
endif;
|
178 |
+
$javascript .='
|
179 |
},
|
180 |
buttonText: {
|
181 |
+
today: "'. esc_html__('Today', 'modern-events-calendar-lite') .'"
|
182 |
},
|
183 |
eventDidMount: function(info) {
|
184 |
var searchField = jQuery(".mec-gCalendar-search-text");
|
186 |
var searchTerms = jQuery(".mec-gCalendar-search-text").val();
|
187 |
if (searchTerms.length > 0){
|
188 |
if (info.event._def.title.toLowerCase().indexOf(searchTerms) >= 0 || info.event._def.extendedProps.description.toLowerCase().indexOf(searchTerms) >= 0) {
|
189 |
+
info.event.setProp("display","block")
|
190 |
} else {
|
191 |
+
info.event.setProp("display","none")
|
192 |
}
|
193 |
} else {
|
194 |
+
info.event.setProp("display","block")
|
195 |
}
|
196 |
} else {
|
197 |
+
info.event.setProp("display","block")
|
198 |
}
|
199 |
+
var backgroundColor = info.backgroundColor == "#" ? "#00acf8" : info.backgroundColor;
|
200 |
+
var borderColor = info.borderColor == "#" ? "#00acf8" : info.borderColor;
|
|
|
|
|
201 |
jQuery(info.el).css("padding", "5px 3px");
|
202 |
jQuery(info.el).css("font-size", "12px");
|
203 |
jQuery(info.el).css("font-weight", "400");
|
208 |
jQuery(info.el).css("border-left-width", "3px");
|
209 |
jQuery(info.el).css("background-color", "#fff");
|
210 |
jQuery(info.el).css("border-color", borderColor);
|
211 |
+
jQuery(info.el).css("white-space", "normal");
|
212 |
jQuery(info.el).css("font-family", "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif");
|
213 |
// jQuery(info.el).css("z-index", "1");
|
214 |
jQuery(info.el).css("line-height", "19px");
|
215 |
jQuery(info.el).css("margin-top", "0");
|
216 |
jQuery(info.el).attr("target", "<?php echo esc_js($sed_method); ?>");
|
217 |
+
';
|
218 |
+
if ( $sed_method == 'no' ) :
|
219 |
+
$javascript .='
|
220 |
jQuery(info.el).css({
|
221 |
+
"cursor": "default",
|
222 |
+
"pointer-events": "none",
|
223 |
+
"text-decoration": "none",
|
224 |
});
|
225 |
+
';
|
226 |
+
endif;
|
227 |
+
$javascript .='
|
228 |
jQuery(info.el).attr("data-event-id", info.event._def.publicId);
|
229 |
+
jQuery(info.el).append("<span class=\"\" style=\"background-color:" + backgroundColor + ";position: absolute;top: 0;right: 0;bottom: 0;left: -1px;z-index: 0;opacity: .25;\"></span>");
|
230 |
jQuery(info.el).append(info.event._def.extendedProps.reason_for_cancellation);
|
231 |
jQuery(info.el).append(info.event._def.extendedProps.locaTimeHtml);
|
232 |
jQuery(info.el).append(info.event._def.extendedProps.labels);
|
233 |
+
';
|
234 |
+
if ( $sed_method == 'm1') :
|
235 |
+
$javascript .='
|
236 |
jQuery(info.el).attr("rel", "noopener");
|
237 |
+
jQuery("#mec_skin_'.esc_attr($this->id).'").mecGeneralCalendarView(
|
238 |
{
|
239 |
+
id: "'. esc_attr($this->id) .'",
|
240 |
+
atts: "'. http_build_query(array('atts' => $this->atts), '', '&') .'",
|
241 |
+
ajax_url: "'. admin_url('admin-ajax.php', NULL) .'",
|
242 |
+
sed_method: "'. esc_js($sed_method) .'",
|
243 |
+
image_popup: "'. esc_js($this->image_popup) .'",
|
244 |
sf:
|
245 |
{
|
246 |
+
reset: "'. ($this->sf_reset_button ? 1 : 0) .'",
|
247 |
+
refine: "'. ($this->sf_refine ? 1 : 0) .'",
|
248 |
},
|
249 |
});
|
250 |
+
';
|
251 |
+
endif;
|
252 |
+
$javascript .='
|
253 |
+
jQuery(".fc-daygrid-event-harness").mouseleave(function(e) {
|
254 |
+
jQuery(".mec-gCalendar-tooltip").remove();
|
255 |
});
|
256 |
},
|
257 |
eventMouseEnter: function(info) {
|
258 |
+
var Image = info.event._def.extendedProps.image ? "<div class=\"mec-gCalendar-tooltip-image\">" + info.event._def.extendedProps.gridsquare + "</div>" : "";
|
259 |
+
var dateText = info.event._def.extendedProps.startDateStr != info.event._def.extendedProps.endDateStr ? "<i class=\"mec-sl-calendar\"></i><div><span class=\"mec-gCalendar-tooltip-date-start\">" + info.event._def.extendedProps.start_date + "</span>" + "<span class=\"mec-gCalendar-tooltip-date-end\">" + info.event._def.extendedProps.end_date + "</span></div>" : "<i class=\"mec-sl-calendar\"></i><div><span class=\"mec-gCalendar-tooltip-date-start\">" + info.event._def.extendedProps.start_date + "</span>" + "<span class=\"mec-gCalendar-tooltip-date-day\">" + info.event._def.extendedProps.startDay + "</span></div>";
|
|
|
260 |
|
261 |
+
var dateTime = "<i class=\"mec-sl-clock\"></i><div><span class=\"mec-gCalendar-tooltip-time-start\">" + info.event._def.extendedProps.start_time + "</span>" + "<span class=\"mec-gCalendar-tooltip-time-end\">" + info.event._def.extendedProps.end_time + "</span></div>";
|
262 |
|
263 |
+
var Location = info.event._def.extendedProps.location ? "<div class=\"mec-gCalendar-tooltip-location\"><i class=\"mec-sl-location-pin\"></i>" + info.event._def.extendedProps.location + "</div>" : "";
|
264 |
|
265 |
+
var Title = "<div class=\"mec-gCalendar-tooltip-title\"><a href=\"" + info.event._def.url + "\">" + info.event._def.title + "<span style=\"background:" + info.event._def.ui.backgroundColor + "\"></span></a></div>";
|
266 |
|
267 |
+
var tooltip = "<div class=\"mec-gCalendar-tooltip\">" + Image +
|
268 |
+
"<div class=\"mec-gCalendar-tooltip-date\">" +
|
269 |
+
"<div class=\"mec-gCalendar-tooltip-date-text\">" + dateText + "</div>" +
|
270 |
+
"<div class=\"mec-gCalendar-tooltip-date-time\">" + dateTime + "</div>" +
|
271 |
+
"</div>" + Title + Location +
|
272 |
+
"</div>";
|
273 |
+
if ( jQuery(info.el).parent().find(".mec-gCalendar-tooltip").length < 1 ) jQuery(info.el).parent().append(tooltip);
|
274 |
},
|
275 |
+
dayMaxEvents: "' .esc_js($more_event) .'",
|
276 |
+
timeZone:"' .get_option('gmt_offset') .'",
|
277 |
events: {
|
278 |
+
url: "'.get_rest_url() .'mec/v1/events",
|
279 |
+
method: "GET",
|
280 |
+
startParam: "startParam",
|
281 |
+
endParam: "endParam",
|
282 |
+
textColor: "#000",
|
283 |
ajax: true,
|
284 |
extraParams: {
|
285 |
+
show_past_events: "' . esc_js($show_past_events) . '",
|
286 |
+
show_only_past_events: "' . esc_js($show_only_past_events) . '",
|
287 |
+
show_only_one_occurrence: "' . esc_js($show_only_one_occurrence) . '",
|
288 |
+
categories: (jQuery("select[id^=\"mec_sf_category\"]").lenght > 0) ? jQuery("select[id^=\"mec_sf_category\"]").val() : "",
|
289 |
+
multiCategories: (jQuery(".select2-hidden-accessible").lenght > 0) ? jQuery(".select2-hidden-accessible").val() : "",
|
290 |
+
location: jQuery("select[id^=\"mec_sf_location\"]").val(),
|
291 |
+
organizer: jQuery("select[id^=\"mec_sf_organizer\"]").val(),
|
292 |
+
speaker: jQuery("select[id^=\"mec_sf_speaker\"]").val(),
|
293 |
+
tag: jQuery("select[id^=\"mec_sf_tag\"]").val(),
|
294 |
+
label: jQuery("select[id^=\"mec_sf_label\"]").val(),
|
295 |
+
cost_min: jQuery("input[id^=\"mec_sf_event_cost_min\"]").val(),
|
296 |
+
cost_max: jQuery("input[id^=\"mec_sf_event_cost_max\"]").val(),
|
297 |
+
display_label: "' . esc_js($display_label) . '",
|
298 |
+
reason_for_cancellation: "' . esc_js($reason_for_cancellation) . '",
|
299 |
+
is_category_page: "' . esc_js($is_category_page) . '",
|
300 |
+
cat_id: "' . esc_js($cat_id) . '",
|
301 |
+
local_time: "' . esc_js($local_time) . '",
|
302 |
+
filter_category: "' . esc_js($filter_category) . '",
|
303 |
+
filter_location: "' . esc_js($filter_location) . '",
|
304 |
+
filter_organizer: "' . esc_js($filter_organizer) . '",
|
305 |
+
filter_label: "' . esc_js($filter_label) . '",
|
306 |
+
filter_tag: "' . esc_js($filter_tag) . '",
|
307 |
+
filter_author: "' . esc_js($filter_author) . '",
|
308 |
+
locale: "' . esc_js($lang) . '",
|
309 |
},
|
310 |
failure: function() {
|
311 |
+
alert("there was an error while fetching events!");
|
312 |
},
|
313 |
},
|
314 |
forceEventDuration: true,
|
315 |
loading: function(bool) {
|
316 |
+
document.getElementById("gCalendar-loading").style.display =
|
317 |
+
bool ? "block" : "none";
|
318 |
},
|
319 |
});
|
320 |
calendar.render();
|
321 |
|
322 |
+
const calendarHeaderFirstChild = jQuery(".fc-header-toolbar").find(".fc-toolbar-chunk h2");
|
323 |
+
const calendarHeaderLastChild = jQuery(".fc-header-toolbar").find(".fc-toolbar-chunk:last-child");
|
324 |
+
const calendarHeaderButton = calendarHeaderLastChild.find(".fc-button-group");
|
325 |
+
';
|
326 |
// Search Bar Filter
|
327 |
+
if (is_array($this->sf_options) and $this->sf_options['text_search']['type'] != '0') :
|
328 |
+
$javascript .='
|
329 |
+
jQuery( "<div class=\"mec-gCalendar-search-text-wrap\"><i class=\"mec-sl-magnifier\"></i><input type=\"text\" class=\"mec-gCalendar-search-text\" placeholder=\"'. ((is_array($this->sf_options) and $this->sf_options['text_search']['placeholder']) ? esc_html__($this->sf_options['text_search']['placeholder']) : esc_html__('Search for events', 'modern-events-calendar-lite')) .'\" /></div>" ).insertBefore( ".fc-header-toolbar .fc-toolbar-chunk:last-child .fc-button-group" );
|
330 |
|
331 |
+
jQuery(".mec-gCalendar-search-text").keypress(function(event){
|
332 |
var keycode = (event.keyCode ? event.keyCode : event.which);
|
333 |
+
if(keycode == "13"){
|
334 |
+
jQuery(".fc-findEvents-button").trigger("click");
|
335 |
}
|
336 |
});
|
337 |
+
';
|
338 |
+
endif;
|
339 |
|
340 |
// Month Filter
|
341 |
+
if (is_array($this->sf_options) and $this->sf_options['month_filter']['type'] != '0') :
|
342 |
+
$javascript .='
|
343 |
+
calendarHeaderFirstChild.append("<button class=\"gCalendarMonthFilterButton input-append date\" id=\"gCalendarMonthFilterButton\" data-date=\"12-02-2012\" data-date-format=\"dd-mm-yyyy\"><input id=\"mec-gCalendar-month-filter\" class=\"span2\" size=\"16\" type=\"text\" value=\"12-02-2012\"><span class=\"openMonthFilter add-on\"><i class=\"mec-sl-arrow-down\"></i></span></button>");
|
344 |
+
jQuery("#gCalendarMonthFilterButton").on("changeDate", function(ev) {
|
345 |
var s = new Date(ev.date.valueOf());
|
346 |
+
let ye = new Intl.DateTimeFormat("en", { year: "numeric" }).format(s);
|
347 |
+
let mo = new Intl.DateTimeFormat("en", { month: "2-digit" }).format(s);
|
348 |
+
let da = new Intl.DateTimeFormat("en", { day: "2-digit" }).format(s);
|
349 |
+
jQuery("#gCalendarMonthFilterButton").datepicker("hide");
|
350 |
calendar.gotoDate(`${ye}-${mo}-${da}`)
|
351 |
})
|
352 |
setTimeout(function(){ jQuery(".datepicker").appendTo(".gCalendarMonthFilterButton"); }, 1000);
|
353 |
+
';
|
354 |
+
endif;
|
355 |
|
356 |
+
if (mec_general_calendar_find_event($this->sf_options, 'filter') ) :
|
357 |
+
$javascript .='
|
358 |
setTimeout(function(){ jQuery(".mec-gCalendar-filters").appendTo(calendarHeaderButton); }, 1000);
|
359 |
+
jQuery("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14.024\" viewBox=\"0 0 14 14.024\"><path id=\"Path_5991\" data-name=\"Path 5991\" d=\"M24.387,11H11.7a.654.654,0,0,0-.465,1.118l5.057,5.063v5.657a.654.654,0,0,0,.281.54l2.161,1.529a.659.659,0,0,0,1.032-.54V17.2l5.057-5.063A.654.654,0,0,0,24.387,11Z\" transform=\"translate(-11.041 -11)\" fill=\"#babfc2\"/></svg>").appendTo("button.fc-filterEvents-button.fc-button.fc-button-primary");
|
360 |
+
if ( jQuery(".mec-gCalendar-filters-wrap").length > 0 ) jQuery(".mec-gCalendar-filters-wrap .mec-dropdown-search").find("select").niceSelect();
|
361 |
|
362 |
+
jQuery(document).on("click", function(e) {
|
363 |
var button = jQuery(".fc-filterEvents-button");
|
364 |
var wrap = jQuery(".mec-gCalendar-filters");
|
365 |
if ((!button.is(e.target) && button.has(e.target).length === 0) && (!wrap.is(e.target) && wrap.has(e.target).length === 0)) {
|
366 |
wrap.hide();
|
367 |
+
if ( jQuery(".mec-searchbar-category-wrap select").length > 0 ) jQuery(".mec-searchbar-category-wrap select").select2("close");
|
368 |
} else {
|
369 |
}
|
370 |
});
|
374 |
reset()
|
375 |
})
|
376 |
function reset() {
|
377 |
+
var $event_cost_min = $("#mec_sf_event_cost_min_'. esc_attr($this->id).'");
|
378 |
+
var $event_cost_max = $("#mec_sf_event_cost_max_'. esc_attr($this->id).'");
|
379 |
+
var $time_start = $("#mec_sf_timepicker_start_'. esc_attr($this->id).'");
|
380 |
+
var $time_end = $("#mec_sf_timepicker_end_'. esc_attr($this->id).'");
|
381 |
+
var $s = $("#mec_sf_s_'. esc_attr($this->id).'");
|
382 |
+
var $address = $("#mec_sf_address_s_'. esc_attr($this->id).'");
|
383 |
+
var $date_start = $("#mec_sf_date_start_'. esc_attr($this->id).'");
|
384 |
+
var $date_end = $("#mec_sf_date_end_'. esc_attr($this->id).'");
|
385 |
+
var $event_type = $("#mec_sf_event_type_'. esc_attr($this->id).'");
|
386 |
+
var $event_type_2 = $("#mec_sf_event_type_2_'. esc_attr($this->id).'");
|
387 |
+
var $attribute = $("#mec_sf_attribute_'. esc_attr($this->id).'");
|
388 |
+
var $category = jQuery("#mec_sf_category_'. esc_attr($this->id).'");
|
389 |
+
var $location = jQuery("#mec_sf_location_'. esc_attr($this->id).'");
|
390 |
+
var $organizer = jQuery("#mec_sf_organizer_'. esc_attr($this->id).'");
|
391 |
+
var $speaker = jQuery("#mec_sf_speaker_'. esc_attr($this->id).'");
|
392 |
+
var $tag = jQuery("#mec_sf_tag_'. esc_attr($this->id).'");
|
393 |
+
var $label = jQuery("#mec_sf_label_'. esc_attr($this->id).'");
|
394 |
+
var $month = $("#mec_sf_month_'. esc_attr($this->id).'");
|
395 |
+
var $year = $("#mec_sf_year_'. esc_attr($this->id).'");
|
396 |
+
var $month_or_year = $("#mec_sf_month_'. esc_attr($this->id).'" + ", " + "#mec_sf_year_'. esc_attr($this->id) .'");
|
397 |
|
398 |
+
if ($category.length && $category.prop("tagName") && $category.prop("tagName").toLowerCase() === "div") {
|
399 |
+
$category.find("select").each(function () {
|
400 |
+
jQuery(this).val(null).trigger("change");
|
401 |
});
|
402 |
+
$category.find("select").select2();
|
403 |
} else {
|
404 |
if ($category.length) {
|
405 |
$category.val(null);
|
406 |
+
$category.niceSelect("update")
|
407 |
}
|
408 |
}
|
409 |
|
426 |
|
427 |
function get_fields(){
|
428 |
return [
|
429 |
+
"state",
|
430 |
+
"city",
|
431 |
+
"region",
|
432 |
+
"region",
|
433 |
+
"street",
|
434 |
+
"postal_code",
|
435 |
];
|
436 |
}
|
437 |
var fields = get_fields();
|
438 |
$.each(fields,function(i,field){
|
439 |
|
440 |
+
if( jQuery("#mec_sf_"+ field +"_'. esc_attr($this->id) .'").length ){
|
441 |
|
442 |
+
jQuery("#mec_sf_"+ field +"_'. esc_attr($this->id) .'").val(null);
|
443 |
+
if( jQuery("#mec_sf_"+ field +"_'. esc_attr($this->id) .'").is("select") ){
|
444 |
+
jQuery("#mec_sf_"+ field +"_'. esc_attr($this->id) .'").niceSelect("update");
|
445 |
}
|
446 |
}
|
447 |
});
|
448 |
|
449 |
// Search Again
|
450 |
setTimeout(function () {
|
451 |
+
jQuery(".fc-findEvents-button").trigger("click");
|
|
|
452 |
}, 1);
|
453 |
}
|
454 |
});
|
455 |
+
';
|
456 |
+
endif;
|
457 |
+
$javascript .='
|
458 |
});
|
459 |
+
</script>';
|
460 |
+
$factory = new MEC_factory();
|
461 |
+
$factory->params('footer', $javascript);
|
462 |
+
?>
|
app/skins/grid/render.php
CHANGED
@@ -43,7 +43,7 @@ if($this->style == 'colorful')
|
|
43 |
$close_row = true;
|
44 |
}
|
45 |
|
46 |
-
echo '<div class="col-md-'
|
47 |
|
48 |
$location_id = $this->main->get_master_location_id($event);
|
49 |
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
|
@@ -51,7 +51,7 @@ if($this->style == 'colorful')
|
|
51 |
$organizer_id = $this->main->get_master_organizer_id($event);
|
52 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
53 |
|
54 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
55 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
56 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
57 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
@@ -59,12 +59,12 @@ if($this->style == 'colorful')
|
|
59 |
$custom_data_class = !empty($mec_data) ? 'mec-custom-data' : '';
|
60 |
|
61 |
// colorful
|
62 |
-
$colorful_bg_color = ($colorful_flag && isset($event->data->meta['mec_color'])) ? ' style="background: #' . $event->data->meta['mec_color'] . '"' : '';
|
63 |
|
64 |
// MEC Schema
|
65 |
do_action('mec_schema', $event);
|
66 |
|
67 |
-
echo '<article class="'.((isset($event->data->meta['event_past']) and trim($event->data->meta['event_past'])) ? 'mec-past-event' : '').' mec-event-article mec-clear ' . $custom_data_class . ' '
|
68 |
?>
|
69 |
<?php if($this->style == 'modern'): ?>
|
70 |
<div class="event-grid-modern-head clearfix">
|
@@ -75,7 +75,7 @@ if($this->style == 'colorful')
|
|
75 |
<div class="mec-event-month"><?php echo MEC_kses::element($this->main->dateify($event, $this->date_format_modern_1 .' '. $this->date_format_modern_2)); ?></div>
|
76 |
<?php endif; ?>
|
77 |
<div class="mec-event-detail">
|
78 |
-
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
|
79 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
80 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
81 |
<?php echo MEC_kses::element($this->get_label_captions($event)); ?>
|
@@ -87,7 +87,7 @@ if($this->style == 'colorful')
|
|
87 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout.$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
88 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
89 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
90 |
-
<p class="mec-grid-event-location"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></p>
|
91 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
92 |
</div>
|
93 |
<div class="mec-event-footer">
|
@@ -159,7 +159,7 @@ if($this->style == 'colorful')
|
|
159 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
160 |
<?php if($this->include_events_times) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
161 |
<div class="mec-event-detail">
|
162 |
-
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
|
163 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
164 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
165 |
<?php echo MEC_kses::form($this->booking_button($event)); ?>
|
@@ -180,7 +180,7 @@ if($this->style == 'colorful')
|
|
180 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
181 |
<?php endif; ?>
|
182 |
<div class="mec-event-detail">
|
183 |
-
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
|
184 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
185 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
186 |
<?php echo MEC_kses::element($this->get_label_captions($event)); ?>
|
@@ -192,7 +192,7 @@ if($this->style == 'colorful')
|
|
192 |
<?php do_action('mec_clean_custom_head', $event, $event_color); ?>
|
193 |
<?php $soldout = $this->main->get_flags($event); ?>
|
194 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout.$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
195 |
-
<p class="mec-grid-event-location"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></p>
|
196 |
</div>
|
197 |
<div class="mec-event-footer mec-color">
|
198 |
<?php if($settings['social_network_status'] != '0') : ?>
|
@@ -227,7 +227,7 @@ if($this->style == 'colorful')
|
|
227 |
<?php endif; ?>
|
228 |
<?php
|
229 |
if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time, array('class' => 'mec-event-detail')));
|
230 |
-
if(isset($location['address'])) echo '<div class="mec-event-address">'
|
231 |
if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event)));
|
232 |
echo MEC_kses::element($this->display_categories($event));
|
233 |
echo MEC_kses::element($this->display_organizers($event));
|
@@ -258,7 +258,7 @@ if($this->style == 'colorful')
|
|
258 |
<div class="mec-event-date mec-color"><?php echo MEC_kses::element($this->main->dateify($event, $this->date_format_simple_1)); ?></div>
|
259 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color); echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?><?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
260 |
<div class="mec-event-detail">
|
261 |
-
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></span>
|
262 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
263 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
264 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
@@ -293,32 +293,32 @@ if(isset($this->map_on_top) and $this->map_on_top and isset($map_events) and !em
|
|
293 |
if((isset($_REQUEST['action']) and sanitize_text_field($_REQUEST['action']) == 'mec_grid_load_more') and isset($_REQUEST['sf'])) $this->geolocation_focus = true;
|
294 |
|
295 |
$map_javascript = '<script type="text/javascript">
|
296 |
-
var mecmap'
|
297 |
jQuery(document).ready(function()
|
298 |
{
|
299 |
var jsonPush = gmapSkin('.json_encode($this->render->markers($map_events)).');
|
300 |
-
mecmap'
|
301 |
{
|
302 |
-
id: "'
|
303 |
autoinit: false,
|
304 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
305 |
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
306 |
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
307 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
308 |
markers: jsonPush,
|
309 |
-
clustering_images: "'
|
310 |
getDirection: 0,
|
311 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
312 |
-
geolocation: "'
|
313 |
-
geolocation_focus: '
|
314 |
});
|
315 |
|
316 |
-
var mecinterval'
|
317 |
{
|
318 |
-
if(jQuery("#mec_googlemap_canvas'
|
319 |
{
|
320 |
-
mecmap'
|
321 |
-
clearInterval(mecinterval'
|
322 |
}
|
323 |
}, 1000);
|
324 |
});
|
43 |
$close_row = true;
|
44 |
}
|
45 |
|
46 |
+
echo '<div class="col-md-'.sanitize_html_class($col).' col-sm-'.sanitize_html_class($col).'">';
|
47 |
|
48 |
$location_id = $this->main->get_master_location_id($event);
|
49 |
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
|
51 |
$organizer_id = $this->main->get_master_organizer_id($event);
|
52 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
53 |
|
54 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
55 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
56 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
57 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
59 |
$custom_data_class = !empty($mec_data) ? 'mec-custom-data' : '';
|
60 |
|
61 |
// colorful
|
62 |
+
$colorful_bg_color = ($colorful_flag && isset($event->data->meta['mec_color'])) ? ' style="background: #' . esc_attr($event->data->meta['mec_color']) . '"' : '';
|
63 |
|
64 |
// MEC Schema
|
65 |
do_action('mec_schema', $event);
|
66 |
|
67 |
+
echo '<article class="'.((isset($event->data->meta['event_past']) and trim($event->data->meta['event_past'])) ? 'mec-past-event' : '').' mec-event-article mec-clear ' . esc_attr($custom_data_class) . ' '.esc_attr($this->get_event_classes($event)).'"' . $colorful_bg_color . ' itemscope>';
|
68 |
?>
|
69 |
<?php if($this->style == 'modern'): ?>
|
70 |
<div class="event-grid-modern-head clearfix">
|
75 |
<div class="mec-event-month"><?php echo MEC_kses::element($this->main->dateify($event, $this->date_format_modern_1 .' '. $this->date_format_modern_2)); ?></div>
|
76 |
<?php endif; ?>
|
77 |
<div class="mec-event-detail">
|
78 |
+
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div>
|
79 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
80 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
81 |
<?php echo MEC_kses::element($this->get_label_captions($event)); ?>
|
87 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout.$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
88 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
89 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
90 |
+
<p class="mec-grid-event-location"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></p>
|
91 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
92 |
</div>
|
93 |
<div class="mec-event-footer">
|
159 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
160 |
<?php if($this->include_events_times) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
161 |
<div class="mec-event-detail">
|
162 |
+
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div>
|
163 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
164 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
165 |
<?php echo MEC_kses::form($this->booking_button($event)); ?>
|
180 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
181 |
<?php endif; ?>
|
182 |
<div class="mec-event-detail">
|
183 |
+
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div>
|
184 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
185 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
186 |
<?php echo MEC_kses::element($this->get_label_captions($event)); ?>
|
192 |
<?php do_action('mec_clean_custom_head', $event, $event_color); ?>
|
193 |
<?php $soldout = $this->main->get_flags($event); ?>
|
194 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($soldout.$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
195 |
+
<p class="mec-grid-event-location"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></p>
|
196 |
</div>
|
197 |
<div class="mec-event-footer mec-color">
|
198 |
<?php if($settings['social_network_status'] != '0') : ?>
|
227 |
<?php endif; ?>
|
228 |
<?php
|
229 |
if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time, array('class' => 'mec-event-detail')));
|
230 |
+
if(isset($location['address'])) echo '<div class="mec-event-address">'.esc_html($location['address']).'</div>';
|
231 |
if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event)));
|
232 |
echo MEC_kses::element($this->display_categories($event));
|
233 |
echo MEC_kses::element($this->display_organizers($event));
|
258 |
<div class="mec-event-date mec-color"><?php echo MEC_kses::element($this->main->dateify($event, $this->date_format_simple_1)); ?></div>
|
259 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color); echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?><?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
260 |
<div class="mec-event-detail">
|
261 |
+
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></span>
|
262 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
263 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
264 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
293 |
if((isset($_REQUEST['action']) and sanitize_text_field($_REQUEST['action']) == 'mec_grid_load_more') and isset($_REQUEST['sf'])) $this->geolocation_focus = true;
|
294 |
|
295 |
$map_javascript = '<script type="text/javascript">
|
296 |
+
var mecmap'.esc_js($this->id).';
|
297 |
jQuery(document).ready(function()
|
298 |
{
|
299 |
var jsonPush = gmapSkin('.json_encode($this->render->markers($map_events)).');
|
300 |
+
mecmap'.esc_js($this->id).' = jQuery("#mec_googlemap_canvas'.esc_js($this->id).'").mecGoogleMaps(
|
301 |
{
|
302 |
+
id: "'.esc_js($this->id).'",
|
303 |
autoinit: false,
|
304 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
305 |
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
306 |
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
307 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
308 |
markers: jsonPush,
|
309 |
+
clustering_images: "'.esc_js($this->main->asset('img/cluster1/m')).'",
|
310 |
getDirection: 0,
|
311 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
312 |
+
geolocation: "'.esc_js($this->geolocation).'",
|
313 |
+
geolocation_focus: '.esc_js($this->geolocation_focus).',
|
314 |
});
|
315 |
|
316 |
+
var mecinterval'.esc_js($this->id).' = setInterval(function()
|
317 |
{
|
318 |
+
if(jQuery("#mec_googlemap_canvas'.esc_js($this->id).'").is(":visible"))
|
319 |
{
|
320 |
+
mecmap'.esc_js($this->id).'.init();
|
321 |
+
clearInterval(mecinterval'.esc_js($this->id).');
|
322 |
}
|
323 |
}, 1000);
|
324 |
});
|
app/skins/grid/tpl.php
CHANGED
@@ -27,20 +27,20 @@ if($sed_method == 'new') $sed_method = '0';
|
|
27 |
$javascript = '<script type="text/javascript">
|
28 |
jQuery(document).ready(function()
|
29 |
{
|
30 |
-
jQuery("#mec_skin_'
|
31 |
{
|
32 |
-
id: "'
|
33 |
-
start_date: "'
|
34 |
-
end_date: "'
|
35 |
-
offset: "'
|
36 |
-
limit: "'
|
37 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
38 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
39 |
-
sed_method: "'
|
40 |
-
image_popup: "'
|
41 |
sf:
|
42 |
{
|
43 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
44 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
45 |
refine: '.($this->sf_refine ? 1 : 0).',
|
46 |
},
|
27 |
$javascript = '<script type="text/javascript">
|
28 |
jQuery(document).ready(function()
|
29 |
{
|
30 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecGridView(
|
31 |
{
|
32 |
+
id: "'.esc_js($this->id).'",
|
33 |
+
start_date: "'.esc_js($this->start_date).'",
|
34 |
+
end_date: "'.esc_js($this->end_date).'",
|
35 |
+
offset: "'.esc_js($this->next_offset).'",
|
36 |
+
limit: "'.esc_js($this->limit).'",
|
37 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
38 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
39 |
+
sed_method: "'.esc_js($sed_method).'",
|
40 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
41 |
sf:
|
42 |
{
|
43 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
44 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
45 |
refine: '.($this->sf_refine ? 1 : 0).',
|
46 |
},
|
app/skins/list/render.php
CHANGED
@@ -32,7 +32,7 @@ $map_events = array();
|
|
32 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
33 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
34 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
35 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
36 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
37 |
$mec_data = $this->display_custom_data($event);
|
38 |
$custom_data_class = !empty($mec_data) ? 'mec-custom-data' : '';
|
@@ -78,7 +78,7 @@ $map_events = array();
|
|
78 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?><?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
79 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
80 |
<div class="mec-event-detail">
|
81 |
-
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) && !empty($location['address']) ? ' | '
|
82 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
83 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
84 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
@@ -101,7 +101,7 @@ $map_events = array();
|
|
101 |
<?php echo MEC_kses::element($this->get_label_captions($event)); ?>
|
102 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
103 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
104 |
-
<?php if(isset($location['name'])): ?><div class="mec-event-detail"><div class="mec-event-loc-place"><i class="mec-sl-map-marker"></i> <?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div><?php endif; ?>
|
105 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
106 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
107 |
<?php do_action('mec_list_classic_after_location', $event, $this->skin_options); ?>
|
@@ -134,7 +134,7 @@ $map_events = array();
|
|
134 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
135 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
136 |
<div class="mec-event-detail">
|
137 |
-
<?php echo esc_html($this->main->date_i18n($this->date_format_minimal_3, strtotime($event->date['start']['date']))); ?><?php echo (isset($location['name']) ? ', <span class="mec-event-loc-place">' . $location['name'] .'</span>' : ''); ?> <?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
138 |
</div>
|
139 |
<?php do_action('mec_list_minimal_after_details', $event); ?>
|
140 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
@@ -180,7 +180,7 @@ $map_events = array();
|
|
180 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event))); ?>
|
181 |
<?php if(isset($location['name'])): ?>
|
182 |
<div class="mec-venue-details">
|
183 |
-
<span><?php echo (isset($location['name']) ? $location['name'] : ''); ?></span><address class="mec-event-address"><span><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
|
184 |
</div>
|
185 |
<?php endif; ?>
|
186 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
@@ -257,32 +257,32 @@ if(isset($this->map_on_top) and $this->map_on_top and isset($map_events) and !em
|
|
257 |
if((isset($_REQUEST['action']) and sanitize_text_field($_REQUEST['action']) == 'mec_list_load_more') and isset($_REQUEST['sf'])) $this->geolocation_focus = true;
|
258 |
|
259 |
$map_javascript = '<script type="text/javascript">
|
260 |
-
var mecmap'
|
261 |
jQuery(document).ready(function()
|
262 |
{
|
263 |
var jsonPush = gmapSkin('.json_encode($this->render->markers($map_events)).');
|
264 |
-
mecmap'
|
265 |
{
|
266 |
-
id: "'
|
267 |
autoinit: false,
|
268 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
269 |
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
270 |
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
271 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
272 |
markers: jsonPush,
|
273 |
-
clustering_images: "'
|
274 |
getDirection: 0,
|
275 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
276 |
-
geolocation: "'
|
277 |
-
geolocation_focus: '
|
278 |
});
|
279 |
|
280 |
-
var mecinterval'
|
281 |
{
|
282 |
-
if(jQuery("#mec_googlemap_canvas'
|
283 |
{
|
284 |
-
mecmap'
|
285 |
-
clearInterval(mecinterval'
|
286 |
}
|
287 |
}, 1000);
|
288 |
});
|
32 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
33 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
34 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
35 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
36 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
37 |
$mec_data = $this->display_custom_data($event);
|
38 |
$custom_data_class = !empty($mec_data) ? 'mec-custom-data' : '';
|
78 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID); ?><?php echo MEC_kses::element($this->get_label_captions($event,'mec-fc-style')); ?></h4>
|
79 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
80 |
<div class="mec-event-detail">
|
81 |
+
<div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : '') . (isset($location['address']) && !empty($location['address']) ? ' | '.esc_html($location['address']) : ''); ?></div>
|
82 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
83 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
84 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
101 |
<?php echo MEC_kses::element($this->get_label_captions($event)); ?>
|
102 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
103 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
104 |
+
<?php if(isset($location['name'])): ?><div class="mec-event-detail"><div class="mec-event-loc-place"><i class="mec-sl-map-marker"></i> <?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div><?php endif; ?>
|
105 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
106 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
107 |
<?php do_action('mec_list_classic_after_location', $event, $this->skin_options); ?>
|
134 |
<?php if($this->include_events_times and trim($start_time)) echo MEC_kses::element($this->main->display_time($start_time, $end_time)); ?>
|
135 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
136 |
<div class="mec-event-detail">
|
137 |
+
<?php echo esc_html($this->main->date_i18n($this->date_format_minimal_3, strtotime($event->date['start']['date']))); ?><?php echo (isset($location['name']) ? ', <span class="mec-event-loc-place">' . esc_html($location['name']) .'</span>' : ''); ?> <?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type2', array('event' => $event))); ?>
|
138 |
</div>
|
139 |
<?php do_action('mec_list_minimal_after_details', $event); ?>
|
140 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
180 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event))); ?>
|
181 |
<?php if(isset($location['name'])): ?>
|
182 |
<div class="mec-venue-details">
|
183 |
+
<span><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></span><address class="mec-event-address"><span><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address>
|
184 |
</div>
|
185 |
<?php endif; ?>
|
186 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
257 |
if((isset($_REQUEST['action']) and sanitize_text_field($_REQUEST['action']) == 'mec_list_load_more') and isset($_REQUEST['sf'])) $this->geolocation_focus = true;
|
258 |
|
259 |
$map_javascript = '<script type="text/javascript">
|
260 |
+
var mecmap'.esc_js($this->id).';
|
261 |
jQuery(document).ready(function()
|
262 |
{
|
263 |
var jsonPush = gmapSkin('.json_encode($this->render->markers($map_events)).');
|
264 |
+
mecmap'.esc_js($this->id).' = jQuery("#mec_googlemap_canvas'.esc_js($this->id).'").mecGoogleMaps(
|
265 |
{
|
266 |
+
id: "'.esc_js($this->id).'",
|
267 |
autoinit: false,
|
268 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
269 |
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
270 |
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
271 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
272 |
markers: jsonPush,
|
273 |
+
clustering_images: "'.esc_js($this->main->asset('img/cluster1/m')).'",
|
274 |
getDirection: 0,
|
275 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
276 |
+
geolocation: "'.esc_js($this->geolocation).'",
|
277 |
+
geolocation_focus: '.esc_js($this->geolocation_focus).'
|
278 |
});
|
279 |
|
280 |
+
var mecinterval'.esc_js($this->id).' = setInterval(function()
|
281 |
{
|
282 |
+
if(jQuery("#mec_googlemap_canvas'.esc_js($this->id).'").is(":visible"))
|
283 |
{
|
284 |
+
mecmap'.esc_js($this->id).'.init();
|
285 |
+
clearInterval(mecinterval'.esc_js($this->id).');
|
286 |
}
|
287 |
}, 1000);
|
288 |
});
|
app/skins/list/tpl.php
CHANGED
@@ -31,23 +31,23 @@ if($sed_method == 'new') $sed_method = '0';
|
|
31 |
$javascript = '<script type="text/javascript">
|
32 |
jQuery(document).ready(function()
|
33 |
{
|
34 |
-
jQuery("#mec_skin_'
|
35 |
{
|
36 |
-
id: "'
|
37 |
-
start_date: "'
|
38 |
-
end_date: "'
|
39 |
-
offset: "'
|
40 |
-
limit: "'
|
41 |
-
current_month_divider: "'
|
42 |
-
toggle_month_divider: "'
|
43 |
-
style: "'.(isset($this->skin_options['style']) ? $this->skin_options['style'] : NULL).'",
|
44 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
45 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
46 |
-
sed_method: "'
|
47 |
-
image_popup: "'
|
48 |
sf:
|
49 |
{
|
50 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
51 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
52 |
refine: '.($this->sf_refine ? 1 : 0).',
|
53 |
},
|
31 |
$javascript = '<script type="text/javascript">
|
32 |
jQuery(document).ready(function()
|
33 |
{
|
34 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecListView(
|
35 |
{
|
36 |
+
id: "'.esc_js($this->id).'",
|
37 |
+
start_date: "'.esc_js($this->start_date).'",
|
38 |
+
end_date: "'.esc_js($this->end_date).'",
|
39 |
+
offset: "'.esc_js($this->next_offset).'",
|
40 |
+
limit: "'.esc_js($this->limit).'",
|
41 |
+
current_month_divider: "'.esc_js($current_month_divider).'",
|
42 |
+
toggle_month_divider: "'.esc_js($this->toggle_month_divider).'",
|
43 |
+
style: "'.(isset($this->skin_options['style']) ? esc_js($this->skin_options['style']) : NULL).'",
|
44 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
45 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
46 |
+
sed_method: "'.esc_js($sed_method).'",
|
47 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
48 |
sf:
|
49 |
{
|
50 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
51 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
52 |
refine: '.($this->sf_refine ? 1 : 0).',
|
53 |
},
|
app/skins/map/tpl.php
CHANGED
@@ -25,23 +25,23 @@ if(count($this->events))
|
|
25 |
$javascript = '<script type="text/javascript">
|
26 |
jQuery(document).ready(function()
|
27 |
{
|
28 |
-
jQuery("#mec_map_canvas'
|
29 |
{
|
30 |
-
id: "'
|
31 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
32 |
-
zoom: '.(isset($settings['google_maps_zoomlevel']) ? $settings['google_maps_zoomlevel'] : 14).',
|
33 |
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
34 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
35 |
fullscreen_button: '.((isset($settings['google_maps_fullscreen_button']) and trim($settings['google_maps_fullscreen_button'])) ? 'true' : 'false').',
|
36 |
markers: '.json_encode($events_data).',
|
37 |
-
geolocation: '
|
38 |
-
geolocation_focus: '
|
39 |
-
clustering_images: "'
|
40 |
getDirection: 0,
|
41 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
42 |
sf:
|
43 |
{
|
44 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
45 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
46 |
refine: '.($this->sf_refine ? 1 : 0).',
|
47 |
},
|
25 |
$javascript = '<script type="text/javascript">
|
26 |
jQuery(document).ready(function()
|
27 |
{
|
28 |
+
jQuery("#mec_map_canvas'.esc_js($this->id).'").mecGoogleMaps(
|
29 |
{
|
30 |
+
id: "'.esc_js($this->id).'",
|
31 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
32 |
+
zoom: '.(isset($settings['google_maps_zoomlevel']) ? esc_js($settings['google_maps_zoomlevel']) : 14).',
|
33 |
icon: "'.apply_filters('mec_marker_icon', $this->main->asset('img/m-04.png')).'",
|
34 |
styles: '.((isset($settings['google_maps_style']) and trim($settings['google_maps_style']) != '') ? $this->main->get_googlemap_style($settings['google_maps_style']) : "''").',
|
35 |
fullscreen_button: '.((isset($settings['google_maps_fullscreen_button']) and trim($settings['google_maps_fullscreen_button'])) ? 'true' : 'false').',
|
36 |
markers: '.json_encode($events_data).',
|
37 |
+
geolocation: '.esc_js($this->geolocation).',
|
38 |
+
geolocation_focus: '.esc_js($this->geolocation_focus).',
|
39 |
+
clustering_images: "'.esc_js($this->main->asset('img/cluster1/m')).'",
|
40 |
getDirection: 0,
|
41 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
42 |
sf:
|
43 |
{
|
44 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
45 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
46 |
refine: '.($this->sf_refine ? 1 : 0).',
|
47 |
},
|
app/skins/masonry.php
CHANGED
@@ -271,7 +271,7 @@ class MEC_skin_masonry extends MEC_skins
|
|
271 |
'include' => ((isset($this->atts[$this->filter_by]) and trim($this->atts[$this->filter_by])) ? $this->atts[$this->filter_by] : ''),
|
272 |
));
|
273 |
|
274 |
-
foreach($terms as $term) $output .= '<a href="#" data-filter=".mec-t'
|
275 |
|
276 |
$output .= '</div>';
|
277 |
return $output;
|
271 |
'include' => ((isset($this->atts[$this->filter_by]) and trim($this->atts[$this->filter_by])) ? $this->atts[$this->filter_by] : ''),
|
272 |
));
|
273 |
|
274 |
+
foreach($terms as $term) $output .= '<a href="#" data-filter=".mec-t'.esc_attr($term->term_id).'">'.esc_html($term->name).'</a>';
|
275 |
|
276 |
$output .= '</div>';
|
277 |
return $output;
|
app/skins/masonry/render.php
CHANGED
@@ -23,7 +23,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
23 |
$organizer_id = $this->main->get_master_organizer_id($event);
|
24 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
25 |
|
26 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
27 |
|
28 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
29 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
@@ -115,8 +115,8 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
115 |
<div class="mec-event-location">
|
116 |
<i class="mec-sl-location-pin mec-color"></i>
|
117 |
<div class="mec-event-location-det">
|
118 |
-
<h6 class="mec-location"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></h6>
|
119 |
-
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
|
120 |
</div>
|
121 |
</div>
|
122 |
</div>
|
23 |
$organizer_id = $this->main->get_master_organizer_id($event);
|
24 |
$organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : array());
|
25 |
|
26 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
27 |
|
28 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
29 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
115 |
<div class="mec-event-location">
|
116 |
<i class="mec-sl-location-pin mec-color"></i>
|
117 |
<div class="mec-event-location-det">
|
118 |
+
<h6 class="mec-location"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></h6>
|
119 |
+
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address>
|
120 |
</div>
|
121 |
</div>
|
122 |
</div>
|
app/skins/masonry/tpl.php
CHANGED
@@ -27,21 +27,21 @@ $this->main->load_isotope_assets();
|
|
27 |
$javascript = '<script type="text/javascript">
|
28 |
jQuery(document).ready(function()
|
29 |
{
|
30 |
-
jQuery("#mec_skin_'
|
31 |
{
|
32 |
-
id: "'
|
33 |
-
start_date: "'
|
34 |
-
end_date: "'
|
35 |
-
offset: "'
|
36 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
37 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
38 |
-
sed_method: "'
|
39 |
-
image_popup: "'
|
40 |
-
masonry_like_grid: "'
|
41 |
-
fit_to_row: "'
|
42 |
sf:
|
43 |
{
|
44 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
45 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
46 |
refine: '.($this->sf_refine ? 1 : 0).',
|
47 |
}
|
27 |
$javascript = '<script type="text/javascript">
|
28 |
jQuery(document).ready(function()
|
29 |
{
|
30 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecMasonryView(
|
31 |
{
|
32 |
+
id: "'.esc_js($this->id).'",
|
33 |
+
start_date: "'.esc_js($this->start_date).'",
|
34 |
+
end_date: "'.esc_js($this->end_date).'",
|
35 |
+
offset: "'.esc_js($this->next_offset).'",
|
36 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
37 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
38 |
+
sed_method: "'.esc_js($sed_method).'",
|
39 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
40 |
+
masonry_like_grid: "'.esc_js($this->masonry_like_grid).'",
|
41 |
+
fit_to_row: "'.esc_js($this->fit_to_row).'",
|
42 |
sf:
|
43 |
{
|
44 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
45 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
46 |
refine: '.($this->sf_refine ? 1 : 0).',
|
47 |
}
|
app/skins/monthly_view.php
CHANGED
@@ -420,8 +420,8 @@ class MEC_skin_monthly_view extends MEC_skins
|
|
420 |
|
421 |
if($this->main->is_day_first())
|
422 |
{
|
423 |
-
return '<h6 class="mec-table-side-title">'.sprintf(
|
424 |
}
|
425 |
-
else return '<h6 class="mec-table-side-title">'.sprintf(
|
426 |
}
|
427 |
}
|
420 |
|
421 |
if($this->main->is_day_first())
|
422 |
{
|
423 |
+
return '<h6 class="mec-table-side-title">'.sprintf(esc_html__('Events for %s %s', 'modern-events-calendar-lite'), '<span class="mec-color mec-table-side-day"> '.esc_html($date_suffix).'</span>', esc_html($this->main->date_i18n('F', $time))).'</h6>';
|
424 |
}
|
425 |
+
else return '<h6 class="mec-table-side-title">'.sprintf(esc_html__('Events for %s', 'modern-events-calendar-lite'), esc_html($this->main->date_i18n('F', $time))).'</h6><h3 class="mec-color mec-table-side-day"> '.esc_html($date_suffix).'</h3>';
|
426 |
}
|
427 |
}
|
app/skins/monthly_view/calendar.php
CHANGED
@@ -164,7 +164,7 @@ $events_str = '';
|
|
164 |
{
|
165 |
echo '<dt class="mec-calendar-day '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', $time).'">'.MEC_kses::full(apply_filters('mec_filter_list_day_value', $list_day, $today, $this)).'</dt>';
|
166 |
|
167 |
-
$events_str .= '<div '.(trim($selected_day) != '' ? 'id="mec-active-current"' : '').' class="mec-calendar-events-sec" data-mec-cell="'
|
168 |
$events_str .= '<article class="mec-event-article">';
|
169 |
$events_str .= '<div class="mec-event-detail">'.esc_html__('No Events', 'modern-events-calendar-lite').'</div>';
|
170 |
$events_str .= '</article>';
|
@@ -250,7 +250,7 @@ $events_str = '';
|
|
250 |
}
|
251 |
else
|
252 |
{
|
253 |
-
echo '<dt class="mec-table-nullday">'
|
254 |
}
|
255 |
}
|
256 |
}
|
164 |
{
|
165 |
echo '<dt class="mec-calendar-day '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', $time).'">'.MEC_kses::full(apply_filters('mec_filter_list_day_value', $list_day, $today, $this)).'</dt>';
|
166 |
|
167 |
+
$events_str .= '<div '.(trim($selected_day) != '' ? 'id="mec-active-current"' : '').' class="mec-calendar-events-sec" data-mec-cell="'.esc_attr($day_id).'">'.MEC_kses::element($this->day_label($time));
|
168 |
$events_str .= '<article class="mec-event-article">';
|
169 |
$events_str .= '<div class="mec-event-detail">'.esc_html__('No Events', 'modern-events-calendar-lite').'</div>';
|
170 |
$events_str .= '</article>';
|
250 |
}
|
251 |
else
|
252 |
{
|
253 |
+
echo '<dt class="mec-table-nullday">'.esc_html($x).'</dt>';
|
254 |
}
|
255 |
}
|
256 |
}
|
app/skins/monthly_view/calendar_admin.php
CHANGED
@@ -70,7 +70,6 @@ elseif($week_start == 5) // Friday
|
|
70 |
echo '<dt class="mec-calendar-day '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', $time).'"><div class="'.sanitize_html_class($selected_day_date).'">';
|
71 |
foreach($events[$today] as $event)
|
72 |
{
|
73 |
-
$event_color = isset($event->data->meta['mec_color']) ? '#'.$event->data->meta['mec_color'] : '';
|
74 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
75 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
76 |
|
70 |
echo '<dt class="mec-calendar-day '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', $time).'"><div class="'.sanitize_html_class($selected_day_date).'">';
|
71 |
foreach($events[$today] as $event)
|
72 |
{
|
|
|
73 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
74 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
75 |
|
app/skins/monthly_view/calendar_clean.php
CHANGED
@@ -62,7 +62,7 @@ $date_format = get_option('date_format');
|
|
62 |
// Print events
|
63 |
if(isset($events[$today]) and count($events[$today]))
|
64 |
{
|
65 |
-
echo '<dt class="mec-calendar-day mec-has-event '.sanitize_html_class($selected_day).'" data-mec-cell="'
|
66 |
$events_str .= '<div class="mec-calendar-events-sec" id="mec-calendar-events-sec-'.esc_attr($this->id.'-'.$day_id).'" data-mec-cell="'.esc_attr($day_id).'" '.((trim($selected_day) != '' or $this->display_all) ? ' style="display: block;"' : '').'>'.MEC_kses::element($this->day_label($time));
|
67 |
|
68 |
foreach($events[$today] as $event)
|
@@ -288,7 +288,7 @@ $date_format = get_option('date_format');
|
|
288 |
}
|
289 |
else
|
290 |
{
|
291 |
-
echo '<dt class="mec-table-nullday">'
|
292 |
}
|
293 |
}
|
294 |
}
|
62 |
// Print events
|
63 |
if(isset($events[$today]) and count($events[$today]))
|
64 |
{
|
65 |
+
echo '<dt class="mec-calendar-day mec-has-event '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', strtotime($year.'-'.$month.'-01')).'"><a href="'.($this->display_all ? '#mec-calendar-events-sec-'.esc_attr($this->id.'-'.$day_id) : '#').'" class="mec-has-event-a">'.MEC_kses::full(apply_filters('mec_filter_list_day_value', $list_day, $today, $this)).'</a></dt>';
|
66 |
$events_str .= '<div class="mec-calendar-events-sec" id="mec-calendar-events-sec-'.esc_attr($this->id.'-'.$day_id).'" data-mec-cell="'.esc_attr($day_id).'" '.((trim($selected_day) != '' or $this->display_all) ? ' style="display: block;"' : '').'>'.MEC_kses::element($this->day_label($time));
|
67 |
|
68 |
foreach($events[$today] as $event)
|
288 |
}
|
289 |
else
|
290 |
{
|
291 |
+
echo '<dt class="mec-table-nullday">'.esc_html($x).'</dt>';
|
292 |
}
|
293 |
}
|
294 |
}
|
app/skins/monthly_view/calendar_novel.php
CHANGED
@@ -120,7 +120,7 @@ elseif($week_start == 5) // Friday
|
|
120 |
{
|
121 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
122 |
{
|
123 |
-
echo '<dt class="mec-table-nullday">'
|
124 |
}
|
125 |
}
|
126 |
?>
|
120 |
{
|
121 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
122 |
{
|
123 |
+
echo '<dt class="mec-table-nullday">'.esc_html($x).'</dt>';
|
124 |
}
|
125 |
}
|
126 |
?>
|
app/skins/monthly_view/calendar_simple.php
CHANGED
@@ -67,7 +67,7 @@ elseif($week_start == 5) // Friday
|
|
67 |
// Print events
|
68 |
if(isset($events[$today]) and count($events[$today]))
|
69 |
{
|
70 |
-
echo '<dt class="mec-calendar-day'
|
71 |
foreach($events[$today] as $event)
|
72 |
{
|
73 |
$event_color = isset($event->data->meta['mec_color']) ? '#'.$event->data->meta['mec_color'] : '';
|
@@ -85,23 +85,23 @@ elseif($week_start == 5) // Friday
|
|
85 |
else $event_content = $this->cache->get($event->data->ID.'_content');
|
86 |
|
87 |
echo '<div class="'.((isset($event->data->meta['event_past']) and trim($event->data->meta['event_past'])) ? 'mec-past-event ' : '').'ended-relative simple-skin-ended">';
|
88 |
-
echo '<a class="mec-monthly-tooltip event-single-link-simple" data-tooltip-content="#mec-tooltip-'
|
89 |
-
echo '<h4 class="mec-event-title">'
|
90 |
do_action('mec_shortcode_virtual_badge', $event->data->ID);
|
91 |
echo '</a>';
|
92 |
echo '</div>';
|
93 |
|
94 |
$tooltip_content = '';
|
95 |
-
$tooltip_content .= !empty($event->data->title) ? '<div class="mec-tooltip-event-title">'
|
96 |
|
97 |
-
if($this->display_detailed_time and $this->main->is_multipleday_occurrence($event)) $tooltip_content .= '<div class="mec-event-detailed-time mec-tooltip-event-time mec-color"><i class="mec-sl-clock-o"></i> '
|
98 |
-
elseif(trim($start_time)) $tooltip_content .= '<div class="mec-tooltip-event-time"><i class="mec-sl-clock-o"></i> '
|
99 |
|
100 |
$tooltip_content .= $this->display_cost($event);
|
101 |
|
102 |
$tooltip_content .= (!empty($event->data->thumbnails['thumbnail']) || !empty($event->data->content)) ? '<div class="mec-tooltip-event-content">' : '';
|
103 |
-
$tooltip_content .= !empty($event->data->thumbnails['thumbnail']) ? '<div class="mec-tooltip-event-featured">'
|
104 |
-
$tooltip_content .= !empty($event->data->content) ? '<div class="mec-tooltip-event-desc">'
|
105 |
if($this->localtime) $tooltip_content .= $this->main->module('local-time.type2', array('event' => $event));
|
106 |
$tooltip_content .= (!empty($event->data->thumbnails['thumbnail']) || !empty($event->data->content)) ? '</div>' : '';
|
107 |
$tooltip_content .= $this->booking_button($event);
|
@@ -111,8 +111,8 @@ elseif($week_start == 5) // Friday
|
|
111 |
do_action('mec_schema', $event);
|
112 |
|
113 |
echo '<div class="tooltip_templates event-single-content-simple">
|
114 |
-
<div id="mec-tooltip-'
|
115 |
-
'
|
116 |
</div>
|
117 |
</div>';
|
118 |
}
|
@@ -121,7 +121,7 @@ elseif($week_start == 5) // Friday
|
|
121 |
}
|
122 |
else
|
123 |
{
|
124 |
-
echo '<dt class="mec-calendar-day'
|
125 |
echo '</dt>';
|
126 |
}
|
127 |
|
@@ -146,7 +146,7 @@ elseif($week_start == 5) // Friday
|
|
146 |
{
|
147 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
148 |
{
|
149 |
-
echo '<dt class="mec-table-nullday">'
|
150 |
}
|
151 |
}
|
152 |
?>
|
67 |
// Print events
|
68 |
if(isset($events[$today]) and count($events[$today]))
|
69 |
{
|
70 |
+
echo '<dt class="mec-calendar-day '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', $time).'"><div class="'.sanitize_html_class($selected_day_date).'">'.apply_filters('mec_filter_list_day_value', $list_day, $today, $this).'</div>';
|
71 |
foreach($events[$today] as $event)
|
72 |
{
|
73 |
$event_color = isset($event->data->meta['mec_color']) ? '#'.$event->data->meta['mec_color'] : '';
|
85 |
else $event_content = $this->cache->get($event->data->ID.'_content');
|
86 |
|
87 |
echo '<div class="'.((isset($event->data->meta['event_past']) and trim($event->data->meta['event_past'])) ? 'mec-past-event ' : '').'ended-relative simple-skin-ended">';
|
88 |
+
echo '<a class="mec-monthly-tooltip event-single-link-simple" data-tooltip-content="#mec-tooltip-'.esc_attr($event_unique.'-'.$day_id).'" data-event-id="'.esc_attr($event->data->ID).'" href="'.esc_url($this->main->get_event_date_permalink($event, $event->date['start']['date'])).'" '.$target_url.'>';
|
89 |
+
echo '<h4 class="mec-event-title">'.esc_html($event->data->title).'</h4>'.MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation));
|
90 |
do_action('mec_shortcode_virtual_badge', $event->data->ID);
|
91 |
echo '</a>';
|
92 |
echo '</div>';
|
93 |
|
94 |
$tooltip_content = '';
|
95 |
+
$tooltip_content .= !empty($event->data->title) ? '<div class="mec-tooltip-event-title">'.esc_html($event->data->title).'</div>' : '';
|
96 |
|
97 |
+
if($this->display_detailed_time and $this->main->is_multipleday_occurrence($event)) $tooltip_content .= '<div class="mec-event-detailed-time mec-tooltip-event-time mec-color"><i class="mec-sl-clock-o"></i> '.MEC_kses::element($this->display_detailed_time($event)).'</div>';
|
98 |
+
elseif(trim($start_time)) $tooltip_content .= '<div class="mec-tooltip-event-time"><i class="mec-sl-clock-o"></i> '.esc_html($start_time.(trim($end_time) ? ' - '.$end_time : '')).'</div>';
|
99 |
|
100 |
$tooltip_content .= $this->display_cost($event);
|
101 |
|
102 |
$tooltip_content .= (!empty($event->data->thumbnails['thumbnail']) || !empty($event->data->content)) ? '<div class="mec-tooltip-event-content">' : '';
|
103 |
+
$tooltip_content .= !empty($event->data->thumbnails['thumbnail']) ? '<div class="mec-tooltip-event-featured">'.MEC_kses::element($event->data->thumbnails['thumbnail']).'</div>' : '';
|
104 |
+
$tooltip_content .= !empty($event->data->content) ? '<div class="mec-tooltip-event-desc">'.MEC_kses::full($event_content).' , ...</div>' : '';
|
105 |
if($this->localtime) $tooltip_content .= $this->main->module('local-time.type2', array('event' => $event));
|
106 |
$tooltip_content .= (!empty($event->data->thumbnails['thumbnail']) || !empty($event->data->content)) ? '</div>' : '';
|
107 |
$tooltip_content .= $this->booking_button($event);
|
111 |
do_action('mec_schema', $event);
|
112 |
|
113 |
echo '<div class="tooltip_templates event-single-content-simple">
|
114 |
+
<div id="mec-tooltip-'.esc_attr($event_unique.'-'.$day_id).'">
|
115 |
+
'.MEC_kses::full($tooltip_content).'
|
116 |
</div>
|
117 |
</div>';
|
118 |
}
|
121 |
}
|
122 |
else
|
123 |
{
|
124 |
+
echo '<dt class="mec-calendar-day '.sanitize_html_class($selected_day).'" data-mec-cell="'.esc_attr($day_id).'" data-day="'.esc_attr($list_day).'" data-month="'.date('Ym', $time).'">'.apply_filters('mec_filter_list_day_value', $list_day, $today, $this).'</dt>';
|
125 |
echo '</dt>';
|
126 |
}
|
127 |
|
146 |
{
|
147 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
148 |
{
|
149 |
+
echo '<dt class="mec-table-nullday">'.esc_html($x).'</dt>';
|
150 |
}
|
151 |
}
|
152 |
?>
|
app/skins/monthly_view/tpl.php
CHANGED
@@ -25,22 +25,22 @@ $navigator_html = '';
|
|
25 |
if($this->next_previous_button)
|
26 |
{
|
27 |
// Show previous month handler if showing past events allowed
|
28 |
-
if(!isset($this->atts['show_past_events']) or
|
29 |
(isset($this->atts['show_past_events']) and $this->atts['show_past_events']) or
|
30 |
(isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and strtotime(date('Y-m-t', $_1month_before)) >= time())
|
31 |
)
|
32 |
{
|
33 |
-
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-previous-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '
|
34 |
}
|
35 |
-
|
36 |
-
$navigator_html .= '<div class="mec-calendar-header"><h2>'
|
37 |
-
|
38 |
// Show next month handler if needed
|
39 |
if(!$this->show_only_expired_events or
|
40 |
($this->show_only_expired_events and strtotime(date('Y-m-01', $_1month_after)) <= time())
|
41 |
)
|
42 |
{
|
43 |
-
$navigator_html .= '<div class="mec-next-month mec-load-month mec-next-month" data-mec-year="'.date('Y', $_1month_after).'" data-mec-month="'.date('m', $_1month_after).'"><a href="#" class="mec-load-month-link">'
|
44 |
}
|
45 |
}
|
46 |
|
@@ -65,9 +65,9 @@ if($sed_method == 'new') $sed_method = '0';
|
|
65 |
$javascript = '<script type="text/javascript">
|
66 |
jQuery(document).ready(function()
|
67 |
{
|
68 |
-
jQuery("#mec_monthly_view_month_'
|
69 |
{
|
70 |
-
id: "'
|
71 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
72 |
display_all: "'.($this->display_all ? 1 : 0).'",
|
73 |
month_id: "'.date('Ym', $current_month_time).'",
|
@@ -79,11 +79,11 @@ jQuery(document).ready(function()
|
|
79 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
80 |
style: "'.(isset($this->skin_options['style']) ? $this->skin_options['style'] : NULL).'",
|
81 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
82 |
-
sed_method: "'
|
83 |
-
image_popup: "'
|
84 |
sf:
|
85 |
{
|
86 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
87 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
88 |
refine: '.($this->sf_refine ? 1 : 0).',
|
89 |
},
|
@@ -112,7 +112,7 @@ else
|
|
112 |
$cal_style = $this->style == 'modern' ? 'mec-box-calendar' : '';
|
113 |
$div_start_topsec = '<div class="mec-calendar-topsec">';
|
114 |
$div_end_topsec = '</div>';
|
115 |
-
$events_side = '<div class="mec-calendar-events-side mec-clear"><div class="mec-month-side" id="mec_month_side_'
|
116 |
$div_footer = '<div class="mec-event-footer"></div>';
|
117 |
}
|
118 |
|
@@ -120,9 +120,9 @@ do_action('mec_start_skin', $this->id);
|
|
120 |
do_action('mec_monthly_skin_head');
|
121 |
?>
|
122 |
<div id="mec_skin_<?php echo esc_attr($this->id); ?>" class="mec-wrap <?php echo esc_attr($event_colorskin . ' ' . $this->html_class . ' ' . $set_dark); ?>">
|
123 |
-
|
124 |
<?php if($this->sf_status) echo MEC_kses::full($this->sf_search_form()); ?>
|
125 |
-
|
126 |
<div class="mec-calendar <?php echo esc_attr($cal_style); ?>">
|
127 |
<?php echo MEC_kses::element($div_start_topsec); ?>
|
128 |
<div class="mec-calendar-side mec-clear">
|
@@ -137,8 +137,10 @@ do_action('mec_monthly_skin_head');
|
|
137 |
<div class="mec-calendar-table" id="mec_skin_events_<?php echo esc_attr($this->id); ?>">
|
138 |
<div class="mec-month-container mec-month-container-selected" id="mec_monthly_view_month_<?php echo esc_attr($this->id); ?>_<?php echo date('Ym', $current_month_time); ?>" data-month-id="<?php echo date('Ym', $current_month_time); ?>"><?php echo MEC_kses::full($month_html); ?></div>
|
139 |
</div>
|
|
|
|
|
140 |
</div>
|
141 |
<?php echo MEC_kses::full($events_side . $div_end_topsec . $div_footer); ?>
|
142 |
</div>
|
143 |
-
|
144 |
</div>
|
25 |
if($this->next_previous_button)
|
26 |
{
|
27 |
// Show previous month handler if showing past events allowed
|
28 |
+
if(!isset($this->atts['show_past_events']) or
|
29 |
(isset($this->atts['show_past_events']) and $this->atts['show_past_events']) or
|
30 |
(isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and strtotime(date('Y-m-t', $_1month_before)) >= time())
|
31 |
)
|
32 |
{
|
33 |
+
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-previous-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '.esc_html($this->main->date_i18n('F', $_1month_before)).'</a></div>';
|
34 |
}
|
35 |
+
|
36 |
+
$navigator_html .= '<div class="mec-calendar-header"><h2>'.esc_html($this->main->date_i18n('F Y', $current_month_time)).'</h2></div>';
|
37 |
+
|
38 |
// Show next month handler if needed
|
39 |
if(!$this->show_only_expired_events or
|
40 |
($this->show_only_expired_events and strtotime(date('Y-m-01', $_1month_after)) <= time())
|
41 |
)
|
42 |
{
|
43 |
+
$navigator_html .= '<div class="mec-next-month mec-load-month mec-next-month" data-mec-year="'.date('Y', $_1month_after).'" data-mec-month="'.date('m', $_1month_after).'"><a href="#" class="mec-load-month-link">'.esc_html($this->main->date_i18n('F', $_1month_after)).' <i class="mec-sl-angle-right"></i></a></div>';
|
44 |
}
|
45 |
}
|
46 |
|
65 |
$javascript = '<script type="text/javascript">
|
66 |
jQuery(document).ready(function()
|
67 |
{
|
68 |
+
jQuery("#mec_monthly_view_month_'.esc_js($this->id).'_'.date('Ym', $current_month_time).'").mecMonthlyView(
|
69 |
{
|
70 |
+
id: "'.esc_js($this->id).'",
|
71 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
72 |
display_all: "'.($this->display_all ? 1 : 0).'",
|
73 |
month_id: "'.date('Ym', $current_month_time).'",
|
79 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
80 |
style: "'.(isset($this->skin_options['style']) ? $this->skin_options['style'] : NULL).'",
|
81 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
82 |
+
sed_method: "'.esc_js($sed_method).'",
|
83 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
84 |
sf:
|
85 |
{
|
86 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
87 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
88 |
refine: '.($this->sf_refine ? 1 : 0).',
|
89 |
},
|
112 |
$cal_style = $this->style == 'modern' ? 'mec-box-calendar' : '';
|
113 |
$div_start_topsec = '<div class="mec-calendar-topsec">';
|
114 |
$div_end_topsec = '</div>';
|
115 |
+
$events_side = '<div class="mec-calendar-events-side mec-clear"><div class="mec-month-side" id="mec_month_side_'.esc_attr($this->id).'_'.date('Ym', $current_month_time).'">'.$this->events_str.'</div></div>';
|
116 |
$div_footer = '<div class="mec-event-footer"></div>';
|
117 |
}
|
118 |
|
120 |
do_action('mec_monthly_skin_head');
|
121 |
?>
|
122 |
<div id="mec_skin_<?php echo esc_attr($this->id); ?>" class="mec-wrap <?php echo esc_attr($event_colorskin . ' ' . $this->html_class . ' ' . $set_dark); ?>">
|
123 |
+
|
124 |
<?php if($this->sf_status) echo MEC_kses::full($this->sf_search_form()); ?>
|
125 |
+
|
126 |
<div class="mec-calendar <?php echo esc_attr($cal_style); ?>">
|
127 |
<?php echo MEC_kses::element($div_start_topsec); ?>
|
128 |
<div class="mec-calendar-side mec-clear">
|
137 |
<div class="mec-calendar-table" id="mec_skin_events_<?php echo esc_attr($this->id); ?>">
|
138 |
<div class="mec-month-container mec-month-container-selected" id="mec_monthly_view_month_<?php echo esc_attr($this->id); ?>_<?php echo date('Ym', $current_month_time); ?>" data-month-id="<?php echo date('Ym', $current_month_time); ?>"><?php echo MEC_kses::full($month_html); ?></div>
|
139 |
</div>
|
140 |
+
|
141 |
+
<?php do_action( 'mec_monthly_calendar_after_table', $this, $navigator_html, $current_month_time ); ?>
|
142 |
</div>
|
143 |
<?php echo MEC_kses::full($events_side . $div_end_topsec . $div_footer); ?>
|
144 |
</div>
|
145 |
+
|
146 |
</div>
|
app/skins/single.php
CHANGED
@@ -226,7 +226,7 @@ class MEC_skin_single extends MEC_skins
|
|
226 |
<a href="<?php echo esc_url($event_link); ?>">
|
227 |
<?php
|
228 |
if(get_the_post_thumbnail(get_the_ID(), 'thumblist')) echo get_the_post_thumbnail(get_the_ID(), 'thumblist');
|
229 |
-
else echo '<img src="' . $this->main->asset('img/no-image.png').'" />';
|
230 |
?>
|
231 |
</a>
|
232 |
</figure>
|
@@ -394,7 +394,7 @@ class MEC_skin_single extends MEC_skins
|
|
394 |
$p_url = $this->main->get_event_date_permalink(get_permalink($p['post_id']), date('Y-m-d', $p['tstart']));
|
395 |
$p_url = $this->main->add_qs_var('pskip', $event_id, $p_url);
|
396 |
|
397 |
-
echo '<li class="mec-previous-event"><a class="mec-color mec-bg-color-hover mec-border-color" href="'
|
398 |
}
|
399 |
|
400 |
if(is_array($n) and isset($n['post_id']))
|
@@ -402,7 +402,7 @@ class MEC_skin_single extends MEC_skins
|
|
402 |
$n_url = $this->main->get_event_date_permalink(get_permalink($n['post_id']), date('Y-m-d', $n['tstart']));
|
403 |
$n_url = $this->main->add_qs_var('nskip', $event_id, $n_url);
|
404 |
|
405 |
-
echo '<li class="mec-next-event"><a class="mec-color mec-bg-color-hover mec-border-color" href="'
|
406 |
}
|
407 |
|
408 |
echo '</ul>';
|
@@ -511,7 +511,7 @@ class MEC_skin_single extends MEC_skins
|
|
511 |
if (get_the_post_thumbnail(get_the_ID(), 'thumblist')){
|
512 |
echo MEC_Fluent\Core\pluginBase\MecFluent::generateThumbnail(MEC_Fluent\Core\pluginBase\MecFluent::generateThumbnailURL(get_the_ID(), 322, 250, true), 322, 250);
|
513 |
} else {
|
514 |
-
echo '<img src="' . $this->main->asset('img/no-image.png') . '" />';
|
515 |
}
|
516 |
?>
|
517 |
</a>
|
@@ -550,7 +550,7 @@ class MEC_skin_single extends MEC_skins
|
|
550 |
<?php if(isset($location['address']) and trim($location['address'])): ?>
|
551 |
<div class="mec-event-location">
|
552 |
<i class="mec-sl-location-pin"></i>
|
553 |
-
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
|
554 |
</div>
|
555 |
<?php endif; ?>
|
556 |
|
@@ -593,13 +593,11 @@ class MEC_skin_single extends MEC_skins
|
|
593 |
*/
|
594 |
public function display_breadcrumb_widget($page_id)
|
595 |
{
|
596 |
-
$breadcrumbs_icon = '<i class="mec-color mec-sl-arrow-right"></i>'; // breadcrumbs_icon between crumbs
|
597 |
-
|
598 |
/**
|
599 |
* Home Page
|
600 |
*/
|
601 |
$homeURL = esc_url(home_url('/'));
|
602 |
-
echo '<div class="mec-address"><a href="' . esc_url($homeURL) . '"> ' . esc_html__('Home', 'modern-events-calendar-lite') . ' </a>
|
603 |
|
604 |
$archive_title = $this->main->get_archive_title();
|
605 |
$archive_link = $this->main->get_archive_url();
|
@@ -618,7 +616,7 @@ class MEC_skin_single extends MEC_skins
|
|
618 |
/**
|
619 |
* Archive Page
|
620 |
*/
|
621 |
-
if($archive_link) echo '<a href="' . $archive_link . '">' . $archive_title . '</a>
|
622 |
|
623 |
/**
|
624 |
* Category Page
|
@@ -628,7 +626,7 @@ class MEC_skin_single extends MEC_skins
|
|
628 |
$categories = wp_get_post_terms($page_id, 'mec_category');
|
629 |
if(!is_array($categories)) $categories = array();
|
630 |
|
631 |
-
foreach($categories as $category) echo '<a href="' . esc_url(get_term_link($category)) . '">' . $category->name . '</a>
|
632 |
}
|
633 |
|
634 |
/**
|
@@ -1026,13 +1024,13 @@ class MEC_skin_single extends MEC_skins
|
|
1026 |
?>
|
1027 |
<div class="mec-single-event-location">
|
1028 |
<?php if($location['thumbnail']): ?>
|
1029 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail']); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
1030 |
<?php endif; ?>
|
1031 |
<i class="mec-sl-location-pin"></i>
|
1032 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
1033 |
<dl>
|
1034 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
1035 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
1036 |
</dl>
|
1037 |
</div>
|
1038 |
<?php
|
@@ -1112,8 +1110,8 @@ class MEC_skin_single extends MEC_skins
|
|
1112 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
1113 |
|
1114 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
1115 |
-
$icon = isset($icon) && $icon != '' ? '<i class="' . $icon . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
1116 |
-
echo '<dl><dd class="mec-events-event-categories"><a href="' . get_term_link($category['id'], 'mec_category') . '" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . $color_html . '</a></dd></dl>';
|
1117 |
}
|
1118 |
|
1119 |
echo '</div>';
|
@@ -1263,7 +1261,7 @@ class MEC_skin_single extends MEC_skins
|
|
1263 |
<h3 class="mec-cost"><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
1264 |
<?php foreach ($event->data->labels as $labels => $label) :
|
1265 |
$seperator = (++$mec_i === $mec_items) ? '' : ',';
|
1266 |
-
echo '<dl><dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd></dl>';
|
1267 |
endforeach; ?>
|
1268 |
</div>
|
1269 |
<?php
|
@@ -1305,10 +1303,10 @@ class MEC_skin_single extends MEC_skins
|
|
1305 |
<div class="mec-single-event-time">
|
1306 |
<i class="mec-sl-clock " style=""></i>
|
1307 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
1308 |
-
<i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
|
1309 |
<dl>
|
1310 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
1311 |
-
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - ' . $event->data->time['end'] : ''); ?></abbr></dd>
|
1312 |
<?php else: ?>
|
1313 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
1314 |
<?php endif; ?>
|
@@ -1386,14 +1384,14 @@ class MEC_skin_single extends MEC_skins
|
|
1386 |
?>
|
1387 |
<div class="mec-single-event-organizer">
|
1388 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
1389 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
1390 |
<?php endif; ?>
|
1391 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
1392 |
<dl>
|
1393 |
<?php if(isset($organizer['thumbnail'])): ?>
|
1394 |
<dd class="mec-organizer">
|
1395 |
<i class="mec-sl-home"></i>
|
1396 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
1397 |
</dd>
|
1398 |
<?php endif;
|
1399 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
@@ -1451,16 +1449,16 @@ class MEC_skin_single extends MEC_skins
|
|
1451 |
<div class="mec-single-event-additional-organizer">
|
1452 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
1453 |
<?php if (class_exists('MEC_Fluent\Core\pluginBase\MecFluent') && (isset($this->settings['single_single_style']) and $this->settings['single_single_style'] == 'fluent')) { ?>
|
1454 |
-
<img class="mec-img-organizer" src="<?php echo esc_url(MEC_Fluent\Core\pluginBase\MecFluent::generateCustomThumbnailURL($organizer['thumbnail'], 83, 83, true)); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
1455 |
<?php } else { ?>
|
1456 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
1457 |
<?php } ?>
|
1458 |
<?php endif; ?>
|
1459 |
<dl>
|
1460 |
<?php if(isset($organizer['thumbnail'])): ?>
|
1461 |
<dd class="mec-organizer">
|
1462 |
<i class="mec-sl-home"></i>
|
1463 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
1464 |
</dd>
|
1465 |
<?php endif;
|
1466 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
@@ -1527,7 +1525,7 @@ class MEC_skin_single extends MEC_skins
|
|
1527 |
<?php foreach($location_ids as $l_id): $l_id = apply_filters('wpml_object_id', $l_id, 'mec_location', true); if($l_id == $location_id) continue; $location = (isset($locations[$l_id]) ? $locations[$l_id] : NULL); if(!$location) continue; ?>
|
1528 |
<div class="mec-single-event-location">
|
1529 |
<?php if($location['thumbnail']): ?>
|
1530 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
1531 |
<?php endif; ?>
|
1532 |
|
1533 |
<?php if($display_title): ?>
|
@@ -1537,7 +1535,7 @@ class MEC_skin_single extends MEC_skins
|
|
1537 |
|
1538 |
<dl>
|
1539 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
1540 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
1541 |
<?php
|
1542 |
$location_description_setting = isset( $this->settings['addintional_locations_description'] ) ? $this->settings['addintional_locations_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1'):
|
1543 |
foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
|
@@ -1762,7 +1760,7 @@ class MEC_skin_single extends MEC_skins
|
|
1762 |
$location_name = (isset($location['name']) ? $location['name'] : '');
|
1763 |
|
1764 |
$location_link = apply_filters('mec_location_single_page_link', '', $location_id, $location_name, $location);
|
1765 |
-
if(!empty($location_link)) $location_html ='<a href="'
|
1766 |
else $location_html = $location_name;
|
1767 |
|
1768 |
return $location_html;
|
226 |
<a href="<?php echo esc_url($event_link); ?>">
|
227 |
<?php
|
228 |
if(get_the_post_thumbnail(get_the_ID(), 'thumblist')) echo get_the_post_thumbnail(get_the_ID(), 'thumblist');
|
229 |
+
else echo '<img src="' . esc_url($this->main->asset('img/no-image.png')).'" />';
|
230 |
?>
|
231 |
</a>
|
232 |
</figure>
|
394 |
$p_url = $this->main->get_event_date_permalink(get_permalink($p['post_id']), date('Y-m-d', $p['tstart']));
|
395 |
$p_url = $this->main->add_qs_var('pskip', $event_id, $p_url);
|
396 |
|
397 |
+
echo '<li class="mec-previous-event"><a class="mec-color mec-bg-color-hover mec-border-color" href="'.esc_url($p_url).'"><i class="mec-fa-long-arrow-left"></i>'. esc_html__('PRV Event', 'modern-events-calendar-lite') .'</a></li>';
|
398 |
}
|
399 |
|
400 |
if(is_array($n) and isset($n['post_id']))
|
402 |
$n_url = $this->main->get_event_date_permalink(get_permalink($n['post_id']), date('Y-m-d', $n['tstart']));
|
403 |
$n_url = $this->main->add_qs_var('nskip', $event_id, $n_url);
|
404 |
|
405 |
+
echo '<li class="mec-next-event"><a class="mec-color mec-bg-color-hover mec-border-color" href="'.esc_html($n_url).'">'. esc_html__('NXT Event', 'modern-events-calendar-lite') .'<i class="mec-fa-long-arrow-right"></i></a></li>';
|
406 |
}
|
407 |
|
408 |
echo '</ul>';
|
511 |
if (get_the_post_thumbnail(get_the_ID(), 'thumblist')){
|
512 |
echo MEC_Fluent\Core\pluginBase\MecFluent::generateThumbnail(MEC_Fluent\Core\pluginBase\MecFluent::generateThumbnailURL(get_the_ID(), 322, 250, true), 322, 250);
|
513 |
} else {
|
514 |
+
echo '<img src="' . esc_url($this->main->asset('img/no-image.png')) . '" />';
|
515 |
}
|
516 |
?>
|
517 |
</a>
|
550 |
<?php if(isset($location['address']) and trim($location['address'])): ?>
|
551 |
<div class="mec-event-location">
|
552 |
<i class="mec-sl-location-pin"></i>
|
553 |
+
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address>
|
554 |
</div>
|
555 |
<?php endif; ?>
|
556 |
|
593 |
*/
|
594 |
public function display_breadcrumb_widget($page_id)
|
595 |
{
|
|
|
|
|
596 |
/**
|
597 |
* Home Page
|
598 |
*/
|
599 |
$homeURL = esc_url(home_url('/'));
|
600 |
+
echo '<div class="mec-address"><a href="' . esc_url($homeURL) . '"> ' . esc_html__('Home', 'modern-events-calendar-lite') . ' </a> <i class="mec-color mec-sl-arrow-right"></i> ';
|
601 |
|
602 |
$archive_title = $this->main->get_archive_title();
|
603 |
$archive_link = $this->main->get_archive_url();
|
616 |
/**
|
617 |
* Archive Page
|
618 |
*/
|
619 |
+
if($archive_link) echo '<a href="' . esc_url($archive_link) . '">' . esc_html($archive_title) . '</a> <i class="mec-color mec-sl-arrow-right"></i> ';
|
620 |
|
621 |
/**
|
622 |
* Category Page
|
626 |
$categories = wp_get_post_terms($page_id, 'mec_category');
|
627 |
if(!is_array($categories)) $categories = array();
|
628 |
|
629 |
+
foreach($categories as $category) echo '<a href="' . esc_url(get_term_link($category)) . '">' . esc_html($category->name) . '</a> <i class="mec-color mec-sl-arrow-right"></i> ';
|
630 |
}
|
631 |
|
632 |
/**
|
1024 |
?>
|
1025 |
<div class="mec-single-event-location">
|
1026 |
<?php if($location['thumbnail']): ?>
|
1027 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail']); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
1028 |
<?php endif; ?>
|
1029 |
<i class="mec-sl-location-pin"></i>
|
1030 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
1031 |
<dl>
|
1032 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
1033 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
1034 |
</dl>
|
1035 |
</div>
|
1036 |
<?php
|
1110 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
1111 |
|
1112 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
1113 |
+
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr($icon) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
1114 |
+
echo '<dl><dd class="mec-events-event-categories"><a href="' . get_term_link($category['id'], 'mec_category') . '" class="mec-color-hover" rel="tag">' . MEC_kses::element($icon . esc_html($category['name']) . $color_html) . '</a></dd></dl>';
|
1115 |
}
|
1116 |
|
1117 |
echo '</div>';
|
1261 |
<h3 class="mec-cost"><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
1262 |
<?php foreach ($event->data->labels as $labels => $label) :
|
1263 |
$seperator = (++$mec_i === $mec_items) ? '' : ',';
|
1264 |
+
echo '<dl><dd style="color:' . esc_attr($label['color']) . '">' . esc_html($label["name"] . $seperator) . '</dd></dl>';
|
1265 |
endforeach; ?>
|
1266 |
</div>
|
1267 |
<?php
|
1303 |
<div class="mec-single-event-time">
|
1304 |
<i class="mec-sl-clock " style=""></i>
|
1305 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
1306 |
+
<i class="mec-time-comment"><?php echo (isset($time_comment) ? esc_html($time_comment) : ''); ?></i>
|
1307 |
<dl>
|
1308 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
1309 |
+
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo esc_html(trim($event->data->time['end']) ? ' - ' . $event->data->time['end'] : ''); ?></abbr></dd>
|
1310 |
<?php else: ?>
|
1311 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
1312 |
<?php endif; ?>
|
1384 |
?>
|
1385 |
<div class="mec-single-event-organizer">
|
1386 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
1387 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
1388 |
<?php endif; ?>
|
1389 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
1390 |
<dl>
|
1391 |
<?php if(isset($organizer['thumbnail'])): ?>
|
1392 |
<dd class="mec-organizer">
|
1393 |
<i class="mec-sl-home"></i>
|
1394 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
1395 |
</dd>
|
1396 |
<?php endif;
|
1397 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
1449 |
<div class="mec-single-event-additional-organizer">
|
1450 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
1451 |
<?php if (class_exists('MEC_Fluent\Core\pluginBase\MecFluent') && (isset($this->settings['single_single_style']) and $this->settings['single_single_style'] == 'fluent')) { ?>
|
1452 |
+
<img class="mec-img-organizer" src="<?php echo esc_url(MEC_Fluent\Core\pluginBase\MecFluent::generateCustomThumbnailURL($organizer['thumbnail'], 83, 83, true)); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
1453 |
<?php } else { ?>
|
1454 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
1455 |
<?php } ?>
|
1456 |
<?php endif; ?>
|
1457 |
<dl>
|
1458 |
<?php if(isset($organizer['thumbnail'])): ?>
|
1459 |
<dd class="mec-organizer">
|
1460 |
<i class="mec-sl-home"></i>
|
1461 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
1462 |
</dd>
|
1463 |
<?php endif;
|
1464 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
1525 |
<?php foreach($location_ids as $l_id): $l_id = apply_filters('wpml_object_id', $l_id, 'mec_location', true); if($l_id == $location_id) continue; $location = (isset($locations[$l_id]) ? $locations[$l_id] : NULL); if(!$location) continue; ?>
|
1526 |
<div class="mec-single-event-location">
|
1527 |
<?php if($location['thumbnail']): ?>
|
1528 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
1529 |
<?php endif; ?>
|
1530 |
|
1531 |
<?php if($display_title): ?>
|
1535 |
|
1536 |
<dl>
|
1537 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
1538 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
1539 |
<?php
|
1540 |
$location_description_setting = isset( $this->settings['addintional_locations_description'] ) ? $this->settings['addintional_locations_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1'):
|
1541 |
foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
|
1760 |
$location_name = (isset($location['name']) ? $location['name'] : '');
|
1761 |
|
1762 |
$location_link = apply_filters('mec_location_single_page_link', '', $location_id, $location_name, $location);
|
1763 |
+
if(!empty($location_link)) $location_html ='<a href="'.esc_url($location_link).'">'.esc_html($location_name).'</a>';
|
1764 |
else $location_html = $location_name;
|
1765 |
|
1766 |
return $location_html;
|
app/skins/single/default.php
CHANGED
@@ -98,7 +98,7 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
|
|
98 |
foreach ( $tickets as $ticket_id => $ticket ) {
|
99 |
|
100 |
$ticket_limit = (isset($availability[$ticket_id]) ? $availability[$ticket_id] : -1);
|
101 |
-
$ticket_name = isset( $ticket['name'] ) ? '<strong>' . $ticket['name'] . '</strong>' : '';
|
102 |
|
103 |
$key = 'stop_selling_' . $ticket_id;
|
104 |
if ( !isset( $availability[ $key ] ) ) {
|
@@ -186,10 +186,10 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
|
|
186 |
<div class="mec-single-event-time">
|
187 |
<i class="mec-sl-clock " style=""></i>
|
188 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
189 |
-
<i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
|
190 |
<dl>
|
191 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
192 |
-
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '
|
193 |
<?php else: ?>
|
194 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
195 |
<?php endif; ?>
|
@@ -245,7 +245,7 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
|
|
245 |
<h3 class="mec-cost"><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
246 |
<?php foreach($event->data->labels as $labels=>$label) :
|
247 |
$seperator = (++$mec_i === $mec_items ) ? '' : ',';
|
248 |
-
echo '<dl><dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd></dl>';
|
249 |
endforeach; ?>
|
250 |
</div>
|
251 |
<?php
|
@@ -260,13 +260,13 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
|
|
260 |
?>
|
261 |
<div class="mec-single-event-location">
|
262 |
<?php if($location['thumbnail']): ?>
|
263 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
264 |
<?php endif; ?>
|
265 |
<i class="mec-sl-location-pin"></i>
|
266 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
267 |
<dl>
|
268 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
269 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
270 |
|
271 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
272 |
<dd class="mec-location-url">
|
@@ -304,10 +304,10 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
|
|
304 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
305 |
|
306 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
307 |
-
$icon = isset($icon) && $icon != '' ? '<i class="' . $icon . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
308 |
|
309 |
echo '<dl><dd class="mec-events-event-categories">
|
310 |
-
<a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . $color_html .'</a></dd></dl>';
|
311 |
}
|
312 |
?>
|
313 |
</div>
|
@@ -322,14 +322,14 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
|
|
322 |
?>
|
323 |
<div class="mec-single-event-organizer">
|
324 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
325 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
326 |
<?php endif; ?>
|
327 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
328 |
<dl>
|
329 |
<?php if(isset($organizer['thumbnail'])): ?>
|
330 |
<dd class="mec-organizer">
|
331 |
<i class="mec-sl-home"></i>
|
332 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
333 |
</dd>
|
334 |
<?php endif;
|
335 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
98 |
foreach ( $tickets as $ticket_id => $ticket ) {
|
99 |
|
100 |
$ticket_limit = (isset($availability[$ticket_id]) ? $availability[$ticket_id] : -1);
|
101 |
+
$ticket_name = isset( $ticket['name'] ) ? '<strong>' . esc_html($ticket['name']) . '</strong>' : '';
|
102 |
|
103 |
$key = 'stop_selling_' . $ticket_id;
|
104 |
if ( !isset( $availability[ $key ] ) ) {
|
186 |
<div class="mec-single-event-time">
|
187 |
<i class="mec-sl-clock " style=""></i>
|
188 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
189 |
+
<i class="mec-time-comment"><?php echo (isset($time_comment) ? esc_html($time_comment) : ''); ?></i>
|
190 |
<dl>
|
191 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
192 |
+
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '.esc_html($event->data->time['end']) : ''); ?></abbr></dd>
|
193 |
<?php else: ?>
|
194 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
195 |
<?php endif; ?>
|
245 |
<h3 class="mec-cost"><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
246 |
<?php foreach($event->data->labels as $labels=>$label) :
|
247 |
$seperator = (++$mec_i === $mec_items ) ? '' : ',';
|
248 |
+
echo '<dl><dd style="color:' . esc_attr($label['color']) . '">' . esc_html($label["name"] . $seperator) . '</dd></dl>';
|
249 |
endforeach; ?>
|
250 |
</div>
|
251 |
<?php
|
260 |
?>
|
261 |
<div class="mec-single-event-location">
|
262 |
<?php if($location['thumbnail']): ?>
|
263 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
264 |
<?php endif; ?>
|
265 |
<i class="mec-sl-location-pin"></i>
|
266 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
267 |
<dl>
|
268 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
269 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
270 |
|
271 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
272 |
<dd class="mec-location-url">
|
304 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
305 |
|
306 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
307 |
+
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr($icon) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
308 |
|
309 |
echo '<dl><dd class="mec-events-event-categories">
|
310 |
+
<a href="'.esc_url(get_term_link($category['id'], 'mec_category')).'" class="mec-color-hover" rel="tag">' . MEC_kses::element($icon . esc_html($category['name']) . $color_html) .'</a></dd></dl>';
|
311 |
}
|
312 |
?>
|
313 |
</div>
|
322 |
?>
|
323 |
<div class="mec-single-event-organizer">
|
324 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
325 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
326 |
<?php endif; ?>
|
327 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
328 |
<dl>
|
329 |
<?php if(isset($organizer['thumbnail'])): ?>
|
330 |
<dd class="mec-organizer">
|
331 |
<i class="mec-sl-home"></i>
|
332 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
333 |
</dd>
|
334 |
<?php endif;
|
335 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
app/skins/single/m1.php
CHANGED
@@ -57,10 +57,10 @@ $cost = $this->main->get_event_cost($event);
|
|
57 |
<div class="mec-single-event-time">
|
58 |
<i class="mec-sl-clock " style=""></i>
|
59 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
60 |
-
<i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
|
61 |
<dl>
|
62 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
63 |
-
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '
|
64 |
<?php else: ?>
|
65 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
66 |
<?php endif; ?>
|
@@ -95,7 +95,7 @@ $cost = $this->main->get_event_cost($event);
|
|
95 |
<h3 class="mec-cost"><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
96 |
<?php foreach($event->data->labels as $labels=>$label) :
|
97 |
$seperator = (++$mec_i === $mec_items ) ? '' : ',';
|
98 |
-
echo '<dl><dd style=color:"' . $label['color'] . '">' . $label["name"] . $seperator . '</dd></dl>';
|
99 |
endforeach; ?>
|
100 |
</div>
|
101 |
<?php
|
@@ -118,14 +118,14 @@ $cost = $this->main->get_event_cost($event);
|
|
118 |
?>
|
119 |
<div class="mec-single-event-organizer">
|
120 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
121 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
122 |
<?php endif; ?>
|
123 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
124 |
<dl>
|
125 |
<?php if(isset($organizer['thumbnail'])): ?>
|
126 |
<dd class="mec-organizer">
|
127 |
<i class="mec-sl-home"></i>
|
128 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
129 |
</dd>
|
130 |
<?php endif;
|
131 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
@@ -195,13 +195,13 @@ $cost = $this->main->get_event_cost($event);
|
|
195 |
?>
|
196 |
<div class="mec-single-event-location">
|
197 |
<?php if($location['thumbnail']): ?>
|
198 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
199 |
<?php endif; ?>
|
200 |
<i class="mec-sl-location-pin"></i>
|
201 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
202 |
<dl>
|
203 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
204 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
205 |
|
206 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
207 |
<dd class="mec-location-url">
|
@@ -238,9 +238,9 @@ $cost = $this->main->get_event_cost($event);
|
|
238 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
239 |
|
240 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
241 |
-
$icon = isset($icon) && $icon != '' ? '<i class="' . $icon . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
242 |
|
243 |
-
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . $color_html .'</a></dd></dl>';
|
244 |
}
|
245 |
?>
|
246 |
</div>
|
57 |
<div class="mec-single-event-time">
|
58 |
<i class="mec-sl-clock " style=""></i>
|
59 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
60 |
+
<i class="mec-time-comment"><?php echo (isset($time_comment) ? esc_html($time_comment) : ''); ?></i>
|
61 |
<dl>
|
62 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
63 |
+
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '.esc_html($event->data->time['end']) : ''); ?></abbr></dd>
|
64 |
<?php else: ?>
|
65 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
66 |
<?php endif; ?>
|
95 |
<h3 class="mec-cost"><?php echo esc_html($this->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
96 |
<?php foreach($event->data->labels as $labels=>$label) :
|
97 |
$seperator = (++$mec_i === $mec_items ) ? '' : ',';
|
98 |
+
echo '<dl><dd style=color:"' . esc_attr($label['color']) . '">' . esc_html($label["name"] . $seperator) . '</dd></dl>';
|
99 |
endforeach; ?>
|
100 |
</div>
|
101 |
<?php
|
118 |
?>
|
119 |
<div class="mec-single-event-organizer">
|
120 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
121 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
122 |
<?php endif; ?>
|
123 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
124 |
<dl>
|
125 |
<?php if(isset($organizer['thumbnail'])): ?>
|
126 |
<dd class="mec-organizer">
|
127 |
<i class="mec-sl-home"></i>
|
128 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
129 |
</dd>
|
130 |
<?php endif;
|
131 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
195 |
?>
|
196 |
<div class="mec-single-event-location">
|
197 |
<?php if($location['thumbnail']): ?>
|
198 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
199 |
<?php endif; ?>
|
200 |
<i class="mec-sl-location-pin"></i>
|
201 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
202 |
<dl>
|
203 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
204 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
205 |
|
206 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
207 |
<dd class="mec-location-url">
|
238 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
239 |
|
240 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
241 |
+
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr($icon) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
242 |
|
243 |
+
echo '<dl><dd class="mec-events-event-categories"><a href="'.esc_url(get_term_link($category['id'], 'mec_category')).'" class="mec-color-hover" rel="tag">' . MEC_kses::element($icon . esc_html($category['name']) . $color_html) .'</a></dd></dl>';
|
244 |
}
|
245 |
?>
|
246 |
</div>
|
app/skins/single/m2.php
CHANGED
@@ -38,14 +38,14 @@ $organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : a
|
|
38 |
?>
|
39 |
<div class="mec-single-event-organizer">
|
40 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
41 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
42 |
<?php endif; ?>
|
43 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
44 |
<dl>
|
45 |
<?php if(isset($organizer['thumbnail'])): ?>
|
46 |
<dd class="mec-organizer">
|
47 |
<i class="mec-sl-home"></i>
|
48 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
49 |
</dd>
|
50 |
<?php endif;
|
51 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
@@ -115,13 +115,13 @@ $organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : a
|
|
115 |
?>
|
116 |
<div class="mec-single-event-location">
|
117 |
<?php if($location['thumbnail']): ?>
|
118 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
119 |
<?php endif; ?>
|
120 |
<i class="mec-sl-location-pin"></i>
|
121 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
122 |
<dl>
|
123 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
124 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
125 |
|
126 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
127 |
<dd class="mec-location-url">
|
@@ -158,9 +158,9 @@ $organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : a
|
|
158 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
159 |
|
160 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
161 |
-
$icon = isset($icon) && $icon != '' ? '<i class="' . $icon . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
162 |
|
163 |
-
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . $color_html . '</a></dd></dl>';
|
164 |
}
|
165 |
?>
|
166 |
</div>
|
38 |
?>
|
39 |
<div class="mec-single-event-organizer">
|
40 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
41 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
42 |
<?php endif; ?>
|
43 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($this->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
44 |
<dl>
|
45 |
<?php if(isset($organizer['thumbnail'])): ?>
|
46 |
<dd class="mec-organizer">
|
47 |
<i class="mec-sl-home"></i>
|
48 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
49 |
</dd>
|
50 |
<?php endif;
|
51 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
115 |
?>
|
116 |
<div class="mec-single-event-location">
|
117 |
<?php if($location['thumbnail']): ?>
|
118 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
119 |
<?php endif; ?>
|
120 |
<i class="mec-sl-location-pin"></i>
|
121 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($this->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
122 |
<dl>
|
123 |
<dd class="author fn org"><?php echo MEC_kses::element($this->get_location_html($location)); ?></dd>
|
124 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
125 |
|
126 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
127 |
<dd class="mec-location-url">
|
158 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
159 |
|
160 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
161 |
+
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr($icon) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
162 |
|
163 |
+
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . MEC_kses::element($icon . esc_html($category['name']) . $color_html) . '</a></dd></dl>';
|
164 |
}
|
165 |
?>
|
166 |
</div>
|
app/skins/single/modern.php
CHANGED
@@ -109,10 +109,10 @@ $cost = $this->main->get_event_cost($event);
|
|
109 |
<div class="mec-single-event-time">
|
110 |
<i class="mec-sl-clock " style=""></i>
|
111 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
112 |
-
<i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
|
113 |
<dl>
|
114 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
115 |
-
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '
|
116 |
<?php else: ?>
|
117 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
118 |
<?php endif; ?>
|
@@ -149,7 +149,7 @@ $cost = $this->main->get_event_cost($event);
|
|
149 |
foreach($event->data->labels as $labels=>$label)
|
150 |
{
|
151 |
$seperator = (++$mec_i === $mec_items) ? '' : ',';
|
152 |
-
echo '<dl><dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd></dl>';
|
153 |
}
|
154 |
?>
|
155 |
</div>
|
109 |
<div class="mec-single-event-time">
|
110 |
<i class="mec-sl-clock " style=""></i>
|
111 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
112 |
+
<i class="mec-time-comment"><?php echo (isset($time_comment) ? esc_html($time_comment) : ''); ?></i>
|
113 |
<dl>
|
114 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
115 |
+
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '.esc_html($event->data->time['end']) : ''); ?></abbr></dd>
|
116 |
<?php else: ?>
|
117 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($this->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
118 |
<?php endif; ?>
|
149 |
foreach($event->data->labels as $labels=>$label)
|
150 |
{
|
151 |
$seperator = (++$mec_i === $mec_items) ? '' : ',';
|
152 |
+
echo '<dl><dd style="color:' . esc_attr($label['color']) . '">' . esc_html($label["name"] . $seperator) . '</dd></dl>';
|
153 |
}
|
154 |
?>
|
155 |
</div>
|
app/skins/slider/render.php
CHANGED
@@ -24,7 +24,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
24 |
$location_id = $this->main->get_master_location_id($event);
|
25 |
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
|
26 |
|
27 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
28 |
|
29 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
30 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
@@ -51,13 +51,13 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
51 |
<div class="event-grid-modern-head clearfix">
|
52 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type1_1, strtotime($event->date['start']['date']))); ?></div>
|
53 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type1_2, strtotime($event->date['start']['date']))); ?></div>
|
54 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div>
|
55 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type1_3, strtotime($event->date['start']['date']))); ?></div>
|
56 |
</div>
|
57 |
<div class="mec-event-content">
|
58 |
<?php $soldout = $this->main->get_flags($event); ?>
|
59 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
60 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '
|
61 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
62 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
63 |
</div>
|
@@ -72,7 +72,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
72 |
<div class="event-grid-modern-head clearfix">
|
73 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type2_1, strtotime($event->date['start']['date']))); ?></div>
|
74 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type2_2, strtotime($event->date['start']['date']))); ?></div>
|
75 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div>
|
76 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type2_3, strtotime($event->date['start']['date']))); ?></div>
|
77 |
</div>
|
78 |
<div class="mec-event-content">
|
@@ -80,7 +80,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
80 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); ?></h4>
|
81 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
82 |
<div class="mec-event-detail">
|
83 |
-
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '
|
84 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
85 |
</div>
|
86 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
@@ -95,7 +95,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
95 |
<div class="event-grid-modern-head clearfix">
|
96 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type3_1, strtotime($event->date['start']['date']))); ?></div>
|
97 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type3_2, strtotime($event->date['start']['date']))); ?></div>
|
98 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div>
|
99 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type3_3, strtotime($event->date['start']['date']))); ?></div>
|
100 |
</div>
|
101 |
<div class="mec-event-content">
|
@@ -103,7 +103,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
103 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); ?></h4>
|
104 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
105 |
<div class="mec-event-detail">
|
106 |
-
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '
|
107 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
108 |
</div>
|
109 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
@@ -119,7 +119,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
119 |
<div class="event-grid-modern-head clearfix">
|
120 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type4_1, strtotime($event->date['start']['date']))); ?></div>
|
121 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type4_2, strtotime($event->date['start']['date']))); ?></div>
|
122 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div>
|
123 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type4_3, strtotime($event->date['start']['date']))); ?></div>
|
124 |
</div>
|
125 |
<div class="mec-event-content">
|
@@ -127,7 +127,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
127 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); ?></h4>
|
128 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
129 |
<div class="mec-event-detail">
|
130 |
-
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : '') . (isset($location['address']) ? ' | '
|
131 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
132 |
</div>
|
133 |
</div>
|
@@ -152,8 +152,8 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
152 |
<div class="mec-event-location">
|
153 |
<i class="mec-sl-location-pin mec-color"></i>
|
154 |
<div class="mec-event-location-det">
|
155 |
-
<h6 class="mec-location"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></h6>
|
156 |
-
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
|
157 |
</div>
|
158 |
</div>
|
159 |
</div>
|
24 |
$location_id = $this->main->get_master_location_id($event);
|
25 |
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
|
26 |
|
27 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
28 |
|
29 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
30 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
51 |
<div class="event-grid-modern-head clearfix">
|
52 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type1_1, strtotime($event->date['start']['date']))); ?></div>
|
53 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type1_2, strtotime($event->date['start']['date']))); ?></div>
|
54 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div>
|
55 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type1_3, strtotime($event->date['start']['date']))); ?></div>
|
56 |
</div>
|
57 |
<div class="mec-event-content">
|
58 |
<?php $soldout = $this->main->get_flags($event); ?>
|
59 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
60 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : '') . (isset($location['address']) ? ' | '.esc_html($location['address']) : ''); ?></div></div>
|
61 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
62 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
63 |
</div>
|
72 |
<div class="event-grid-modern-head clearfix">
|
73 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type2_1, strtotime($event->date['start']['date']))); ?></div>
|
74 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type2_2, strtotime($event->date['start']['date']))); ?></div>
|
75 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div>
|
76 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type2_3, strtotime($event->date['start']['date']))); ?></div>
|
77 |
</div>
|
78 |
<div class="mec-event-content">
|
80 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); ?></h4>
|
81 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
82 |
<div class="mec-event-detail">
|
83 |
+
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : '') . (isset($location['address']) ? ' | '.esc_html($location['address']) : ''); ?></span>
|
84 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
85 |
</div>
|
86 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
95 |
<div class="event-grid-modern-head clearfix">
|
96 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type3_1, strtotime($event->date['start']['date']))); ?></div>
|
97 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type3_2, strtotime($event->date['start']['date']))); ?></div>
|
98 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div>
|
99 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type3_3, strtotime($event->date['start']['date']))); ?></div>
|
100 |
</div>
|
101 |
<div class="mec-event-content">
|
103 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); ?></h4>
|
104 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
105 |
<div class="mec-event-detail">
|
106 |
+
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : '') . (isset($location['address']) ? ' | '.esc_html($location['address']) : ''); ?></span>
|
107 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
108 |
</div>
|
109 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
119 |
<div class="event-grid-modern-head clearfix">
|
120 |
<div class="mec-event-date mec-color"><?php echo esc_html($this->main->date_i18n($this->date_format_type4_1, strtotime($event->date['start']['date']))); ?></div>
|
121 |
<div class="mec-event-month"><?php echo esc_html($this->main->date_i18n($this->date_format_type4_2, strtotime($event->date['start']['date']))); ?></div>
|
122 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div>
|
123 |
<div class="mec-event-day"><?php echo esc_html($this->main->date_i18n($this->date_format_type4_3, strtotime($event->date['start']['date']))); ?></div>
|
124 |
</div>
|
125 |
<div class="mec-event-content">
|
127 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($soldout.$event_color); ?></h4>
|
128 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
129 |
<div class="mec-event-detail">
|
130 |
+
<span class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : '') . (isset($location['address']) ? ' | '.esc_html($location['address']) : ''); ?></span>
|
131 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
132 |
</div>
|
133 |
</div>
|
152 |
<div class="mec-event-location">
|
153 |
<i class="mec-sl-location-pin mec-color"></i>
|
154 |
<div class="mec-event-location-det">
|
155 |
+
<h6 class="mec-location"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></h6>
|
156 |
+
<address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address>
|
157 |
</div>
|
158 |
</div>
|
159 |
</div>
|
app/skins/slider/tpl.php
CHANGED
@@ -23,13 +23,13 @@ $this->main->load_owl_assets();
|
|
23 |
$javascript = '<script type="text/javascript">
|
24 |
jQuery(document).ready(function()
|
25 |
{
|
26 |
-
jQuery("#mec_skin_'
|
27 |
{
|
28 |
-
id: "'
|
29 |
-
start_date: "'
|
30 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
31 |
-
autoplay: "'
|
32 |
-
transition_time: '
|
33 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
34 |
});
|
35 |
});
|
23 |
$javascript = '<script type="text/javascript">
|
24 |
jQuery(document).ready(function()
|
25 |
{
|
26 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecSliderView(
|
27 |
{
|
28 |
+
id: "'.esc_js($this->id).'",
|
29 |
+
start_date: "'.esc_js($this->start_date).'",
|
30 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
31 |
+
autoplay: "'.esc_js($this->autoplay).'",
|
32 |
+
transition_time: '.esc_js($this->transition_time).',
|
33 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
34 |
});
|
35 |
});
|
app/skins/tile/render.php
CHANGED
@@ -25,7 +25,7 @@ $map_events = array();
|
|
25 |
foreach($date as $event):
|
26 |
$map_events[] = $event;
|
27 |
echo ($rcount == 1) ? '<div class="row">' : '';
|
28 |
-
echo '<div class="col-md-'
|
29 |
|
30 |
$location_id = $this->main->get_master_location_id($event);
|
31 |
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
|
@@ -62,7 +62,7 @@ $map_events = array();
|
|
62 |
<div class="mec-event-detail">
|
63 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
64 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
65 |
-
<?php echo (isset($location['name']) ? '<span class="mec-event-loc-place"><i class="mec-sl-location-pin"></i>' . $location['name'] . '</span>' : ''); ?>
|
66 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
67 |
</div>
|
68 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
25 |
foreach($date as $event):
|
26 |
$map_events[] = $event;
|
27 |
echo ($rcount == 1) ? '<div class="row">' : '';
|
28 |
+
echo '<div class="col-md-'.sanitize_html_class($col).' col-sm-'.sanitize_html_class($col).'">';
|
29 |
|
30 |
$location_id = $this->main->get_master_location_id($event);
|
31 |
$location = ($location_id ? $this->main->get_location_data($location_id) : array());
|
62 |
<div class="mec-event-detail">
|
63 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
64 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
65 |
+
<?php echo (isset($location['name']) ? '<span class="mec-event-loc-place"><i class="mec-sl-location-pin"></i>' . esc_html($location['name']) . '</span>' : ''); ?>
|
66 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
67 |
</div>
|
68 |
<?php echo MEC_kses::element($this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?>
|
app/skins/tile/tpl.php
CHANGED
@@ -36,17 +36,17 @@ if($this->next_previous_button)
|
|
36 |
(isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and strtotime(date('Y-m-t', $_1month_before)) >= time())
|
37 |
)
|
38 |
{
|
39 |
-
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-previous-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '
|
40 |
}
|
41 |
|
42 |
-
$navigator_html .= '<div class="mec-calendar-header"><h2>'
|
43 |
|
44 |
// Show next month handler if needed
|
45 |
if(!$this->show_only_expired_events or
|
46 |
($this->show_only_expired_events and strtotime(date('Y-m-01', $_1month_after)) <= time())
|
47 |
)
|
48 |
{
|
49 |
-
$navigator_html .= '<div class="mec-next-month mec-load-month mec-next-month" data-mec-year="'.date('Y', $_1month_after).'" data-mec-month="'.date('m', $_1month_after).'"><a href="#" class="mec-load-month-link">'
|
50 |
}
|
51 |
}
|
52 |
|
@@ -70,14 +70,14 @@ if($sed_method == 'new') $sed_method = '0';
|
|
70 |
$javascript = '<script type="text/javascript">
|
71 |
jQuery(document).ready(function()
|
72 |
{
|
73 |
-
jQuery("#mec_tile_month_'
|
74 |
{
|
75 |
-
id: "'
|
76 |
-
start_date: "'
|
77 |
-
end_date: "'
|
78 |
-
offset: "'
|
79 |
-
limit: "'
|
80 |
-
load_method: "'
|
81 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
82 |
month_id: "'.date('Ym', $current_month_time).'",
|
83 |
active_month: {year: "'.date('Y', strtotime($this->start_date)).'", month: "'.date('m', strtotime($this->start_date)).'"},
|
@@ -88,11 +88,11 @@ jQuery(document).ready(function()
|
|
88 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
89 |
style: "'.(isset($this->skin_options['style']) ? $this->skin_options['style'] : NULL).'",
|
90 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
91 |
-
sed_method: "'
|
92 |
-
image_popup: "'
|
93 |
sf:
|
94 |
{
|
95 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
96 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
97 |
refine: '.($this->sf_refine ? 1 : 0).',
|
98 |
}
|
36 |
(isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and strtotime(date('Y-m-t', $_1month_before)) >= time())
|
37 |
)
|
38 |
{
|
39 |
+
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-previous-month" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '.esc_html($this->main->date_i18n('F', $_1month_before)).'</a></div>';
|
40 |
}
|
41 |
|
42 |
+
$navigator_html .= '<div class="mec-calendar-header"><h2>'.esc_html($this->main->date_i18n('F Y', $current_month_time)).'</h2></div>';
|
43 |
|
44 |
// Show next month handler if needed
|
45 |
if(!$this->show_only_expired_events or
|
46 |
($this->show_only_expired_events and strtotime(date('Y-m-01', $_1month_after)) <= time())
|
47 |
)
|
48 |
{
|
49 |
+
$navigator_html .= '<div class="mec-next-month mec-load-month mec-next-month" data-mec-year="'.date('Y', $_1month_after).'" data-mec-month="'.date('m', $_1month_after).'"><a href="#" class="mec-load-month-link">'.esc_html($this->main->date_i18n('F', $_1month_after)).' <i class="mec-sl-angle-right"></i></a></div>';
|
50 |
}
|
51 |
}
|
52 |
|
70 |
$javascript = '<script type="text/javascript">
|
71 |
jQuery(document).ready(function()
|
72 |
{
|
73 |
+
jQuery("#mec_tile_month_'.esc_js($this->id).'_'.date('Ym', $current_month_time).'").mecTileView(
|
74 |
{
|
75 |
+
id: "'.esc_js($this->id).'",
|
76 |
+
start_date: "'.esc_js($this->start_date).'",
|
77 |
+
end_date: "'.esc_js($this->end_date).'",
|
78 |
+
offset: "'.esc_js($this->next_offset).'",
|
79 |
+
limit: "'.esc_js($this->limit).'",
|
80 |
+
load_method: "'.esc_js($this->load_method).'",
|
81 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
82 |
month_id: "'.date('Ym', $current_month_time).'",
|
83 |
active_month: {year: "'.date('Y', strtotime($this->start_date)).'", month: "'.date('m', strtotime($this->start_date)).'"},
|
88 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
89 |
style: "'.(isset($this->skin_options['style']) ? $this->skin_options['style'] : NULL).'",
|
90 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
91 |
+
sed_method: "'.esc_js($sed_method).'",
|
92 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
93 |
sf:
|
94 |
{
|
95 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
96 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
97 |
refine: '.($this->sf_refine ? 1 : 0).',
|
98 |
}
|
app/skins/timeline/render.php
CHANGED
@@ -32,7 +32,7 @@ $sed_method = isset($this->skin_options['sed_method']) ? $this->skin_options['se
|
|
32 |
|
33 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
34 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
35 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
36 |
$excerpt = trim($event->data->post->post_excerpt) ? $event->data->post->post_excerpt : '';
|
37 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
38 |
|
@@ -49,7 +49,7 @@ $sed_method = isset($this->skin_options['sed_method']) ? $this->skin_options['se
|
|
49 |
do_action('mec_schema', $event);
|
50 |
?>
|
51 |
<div class="<?php echo (isset($event->data->meta['event_past']) and trim($event->data->meta['event_past'])) ? 'mec-past-event ' : ''; ?>mec-timeline-event clearfix <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
52 |
-
<div class="mec-timeline-event-date mec-color<?php echo ($event->date['start']['date'] != $event->date['end']['date']) ? ' mec-timeline-dates' : '' ; ?>"><?php echo ($event->date['start']['date'] == $event->date['end']['date']) ? $this->main->date_i18n($this->date_format_classic_1, strtotime($event->date['start']['date'])) : $this->main->date_i18n($this->date_format_classic_1, strtotime($event->date['start']['date'])) . '<br>' . $this->main->date_i18n($this->date_format_classic_1, strtotime($event->date['end']['date'])); ?> </div>
|
53 |
<div class="mec-timeline-event-content">
|
54 |
<div class="clearfix">
|
55 |
<div class="mec-timeline-right-content">
|
@@ -71,7 +71,7 @@ $sed_method = isset($this->skin_options['sed_method']) ? $this->skin_options['se
|
|
71 |
<?php if(!empty($location['address'])): ?>
|
72 |
<div class="mec-timeline-event-details">
|
73 |
<div class="mec-timeline-event-location mec-color">
|
74 |
-
<address class="mec-timeline-event-address"><i class="mec-sl-location-pin"></i><span><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address>
|
75 |
</div>
|
76 |
</div>
|
77 |
<?php if($this->localtime): ?>
|
32 |
|
33 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
34 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
35 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
36 |
$excerpt = trim($event->data->post->post_excerpt) ? $event->data->post->post_excerpt : '';
|
37 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
38 |
|
49 |
do_action('mec_schema', $event);
|
50 |
?>
|
51 |
<div class="<?php echo (isset($event->data->meta['event_past']) and trim($event->data->meta['event_past'])) ? 'mec-past-event ' : ''; ?>mec-timeline-event clearfix <?php echo esc_attr($this->get_event_classes($event)); ?>">
|
52 |
+
<div class="mec-timeline-event-date mec-color<?php echo ($event->date['start']['date'] != $event->date['end']['date']) ? ' mec-timeline-dates' : '' ; ?>"><?php echo ($event->date['start']['date'] == $event->date['end']['date']) ? esc_html($this->main->date_i18n($this->date_format_classic_1, strtotime($event->date['start']['date']))) : MEC_kses::element($this->main->date_i18n($this->date_format_classic_1, strtotime($event->date['start']['date'])) . '<br>' . $this->main->date_i18n($this->date_format_classic_1, strtotime($event->date['end']['date']))); ?> </div>
|
53 |
<div class="mec-timeline-event-content">
|
54 |
<div class="clearfix">
|
55 |
<div class="mec-timeline-right-content">
|
71 |
<?php if(!empty($location['address'])): ?>
|
72 |
<div class="mec-timeline-event-details">
|
73 |
<div class="mec-timeline-event-location mec-color">
|
74 |
+
<address class="mec-timeline-event-address"><i class="mec-sl-location-pin"></i><span><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address>
|
75 |
</div>
|
76 |
</div>
|
77 |
<?php if($this->localtime): ?>
|
app/skins/timeline/tpl.php
CHANGED
@@ -29,20 +29,20 @@ if($sed_method == 'new') $sed_method = '0';
|
|
29 |
$javascript = '<script type="text/javascript">
|
30 |
jQuery(document).ready(function()
|
31 |
{
|
32 |
-
jQuery("#mec_skin_'
|
33 |
{
|
34 |
-
id: "'
|
35 |
-
start_date: "'
|
36 |
-
end_date: "'
|
37 |
-
offset: "'
|
38 |
-
limit: "'
|
39 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
40 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
41 |
-
sed_method: "'
|
42 |
-
image_popup: "'
|
43 |
sf:
|
44 |
{
|
45 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
46 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
47 |
refine: '.($this->sf_refine ? 1 : 0).',
|
48 |
},
|
29 |
$javascript = '<script type="text/javascript">
|
30 |
jQuery(document).ready(function()
|
31 |
{
|
32 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecTimelineView(
|
33 |
{
|
34 |
+
id: "'.esc_js($this->id).'",
|
35 |
+
start_date: "'.esc_js($this->start_date).'",
|
36 |
+
end_date: "'.esc_js($this->end_date).'",
|
37 |
+
offset: "'.esc_js($this->next_offset).'",
|
38 |
+
limit: "'.esc_js($this->limit).'",
|
39 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
40 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
41 |
+
sed_method: "'.esc_js($sed_method).'",
|
42 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
43 |
sf:
|
44 |
{
|
45 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
46 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
47 |
refine: '.($this->sf_refine ? 1 : 0).',
|
48 |
},
|
app/skins/timetable/classic.php
CHANGED
@@ -25,16 +25,16 @@ if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
|
25 |
$javascript = '<script type="text/javascript">
|
26 |
jQuery(document).ready(function()
|
27 |
{
|
28 |
-
jQuery("#mec_skin_'
|
29 |
{
|
30 |
-
id: "'
|
31 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
32 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
33 |
-
sed_method: "'
|
34 |
-
image_popup: "'
|
35 |
sf:
|
36 |
{
|
37 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
38 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
39 |
refine: '.($this->sf_refine ? 1 : 0).',
|
40 |
},
|
25 |
$javascript = '<script type="text/javascript">
|
26 |
jQuery(document).ready(function()
|
27 |
{
|
28 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecWeeklyProgram(
|
29 |
{
|
30 |
+
id: "'.esc_js($this->id).'",
|
31 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
32 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
33 |
+
sed_method: "'.esc_js($this->sed_method).'",
|
34 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
35 |
sf:
|
36 |
{
|
37 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
38 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
39 |
refine: '.($this->sf_refine ? 1 : 0).',
|
40 |
},
|
app/skins/timetable/clean.php
CHANGED
@@ -28,16 +28,16 @@ if($sed_method == 'new') $sed_method = '0';
|
|
28 |
$javascript = '<script type="text/javascript">
|
29 |
jQuery(document).ready(function()
|
30 |
{
|
31 |
-
jQuery("#mec_skin_'
|
32 |
{
|
33 |
-
id: "'
|
34 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
35 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
36 |
-
sed_method: "'
|
37 |
-
image_popup: "'
|
38 |
sf:
|
39 |
{
|
40 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
41 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
42 |
refine: '.($this->sf_refine ? 1 : 0).',
|
43 |
},
|
28 |
$javascript = '<script type="text/javascript">
|
29 |
jQuery(document).ready(function()
|
30 |
{
|
31 |
+
jQuery("#mec_skin_'.esc_js($this->id).'").mecWeeklyProgram(
|
32 |
{
|
33 |
+
id: "'.esc_js($this->id).'",
|
34 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
35 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
36 |
+
sed_method: "'.esc_js($sed_method).'",
|
37 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
38 |
sf:
|
39 |
{
|
40 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
41 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
42 |
refine: '.($this->sf_refine ? 1 : 0).',
|
43 |
},
|
app/skins/timetable/modern.php
CHANGED
@@ -34,16 +34,16 @@ foreach($this->weeks as $week_number=>$week)
|
|
34 |
}
|
35 |
}
|
36 |
|
37 |
-
$weeks .= '<dl class="mec-weekly-view-week '.((isset($this->week_of_days[$this->active_date]) and $week_number == $this->week_of_days[$this->active_date]) ? 'mec-weekly-view-week-active' : '').'" id="mec_weekly_view_week_'
|
38 |
foreach($week as $day)
|
39 |
{
|
40 |
$time = strtotime($day);
|
41 |
$count = isset($this->events[$day]) ? count($this->events[$day]) : 0;
|
42 |
$passed = ($time < strtotime($this->today));
|
43 |
|
44 |
-
$weeks .= '<dt data-date-id="'.date('Ymd', $time).'" data-events-count="'
|
45 |
-
.'<span>'
|
46 |
-
|
47 |
.'</dt>';
|
48 |
}
|
49 |
|
@@ -69,7 +69,7 @@ if($this->next_previous_button)
|
|
69 |
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-color" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i></a></div>';
|
70 |
}
|
71 |
|
72 |
-
$navigator_html .= '<h4 class="mec-month-label">'
|
73 |
|
74 |
// Show next month handler if needed
|
75 |
if(!$this->show_only_expired_events or
|
@@ -80,10 +80,10 @@ if($this->next_previous_button)
|
|
80 |
}
|
81 |
}
|
82 |
|
83 |
-
$week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(
|
84 |
|
85 |
-
$month_html = '<div class="mec-weeks-container mec-calendar-d-table">'
|
86 |
-
<div class="mec-week-events-container">'
|
87 |
|
88 |
// Return the data if called by AJAX
|
89 |
if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
@@ -107,22 +107,22 @@ if($sed_method == 'new') $sed_method = '0';
|
|
107 |
$javascript = '<script type="text/javascript">
|
108 |
jQuery(document).ready(function()
|
109 |
{
|
110 |
-
jQuery("#mec_timetable_month_'
|
111 |
{
|
112 |
-
id: "'
|
113 |
today: "'.date('Ymd', strtotime($this->start_date)).'",
|
114 |
-
week: "'
|
115 |
month_id: "'.date('Ym', $current_month_time).'",
|
116 |
active_day: "'.date('Ymd', strtotime($this->active_date)).'",
|
117 |
month_navigator: '.($this->next_previous_button ? 1 : 0).',
|
118 |
-
changeWeekElement: "#mec_skin_'
|
119 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
120 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
121 |
-
sed_method: "'
|
122 |
-
image_popup: "'
|
123 |
sf:
|
124 |
{
|
125 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
126 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
127 |
refine: '.($this->sf_refine ? 1 : 0).',
|
128 |
},
|
34 |
}
|
35 |
}
|
36 |
|
37 |
+
$weeks .= '<dl class="mec-weekly-view-week '.((isset($this->week_of_days[$this->active_date]) and $week_number == $this->week_of_days[$this->active_date]) ? 'mec-weekly-view-week-active' : '').'" id="mec_weekly_view_week_'.esc_attr($this->id.'_'.date('Ym', strtotime($first_week_day)).$week_number).'" data-week-id="'.esc_attr(date('Ym', strtotime($first_week_day)).$week_number).'" data-week-number="' . esc_attr($week_number) . '" data-max-weeks="'.count($this->weeks).'">';
|
38 |
foreach($week as $day)
|
39 |
{
|
40 |
$time = strtotime($day);
|
41 |
$count = isset($this->events[$day]) ? count($this->events[$day]) : 0;
|
42 |
$passed = ($time < strtotime($this->today));
|
43 |
|
44 |
+
$weeks .= '<dt data-date-id="'.date('Ymd', $time).'" data-events-count="'.esc_attr($count).'" class="'.((!$count or $passed) ? 'mec-timetable-has-no-event ' : '').(($day == $this->active_date) ? 'mec-timetable-day-active' : '').'">'
|
45 |
+
.'<span>'.esc_html($this->main->date_i18n('D', $time)).'</span> '
|
46 |
+
.esc_html($this->main->date_i18n('j', $time))
|
47 |
.'</dt>';
|
48 |
}
|
49 |
|
69 |
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-color" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i></a></div>';
|
70 |
}
|
71 |
|
72 |
+
$navigator_html .= '<h4 class="mec-month-label">'.esc_html($this->main->date_i18n('Y F', $current_month_time)).'</h4>';
|
73 |
|
74 |
// Show next month handler if needed
|
75 |
if(!$this->show_only_expired_events or
|
80 |
}
|
81 |
}
|
82 |
|
83 |
+
$week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(esc_html__('Week %s', 'modern-events-calendar-lite'), '<span>'.(isset($this->week_of_days[$this->today]) ? $this->week_of_days[$this->today] : 1).'</span>').'</h3></div>';
|
84 |
|
85 |
+
$month_html = '<div class="mec-weeks-container mec-calendar-d-table">'.MEC_kses::element($weeks).'</div>
|
86 |
+
<div class="mec-week-events-container">'.MEC_kses::full($date_events).'</div>';
|
87 |
|
88 |
// Return the data if called by AJAX
|
89 |
if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
107 |
$javascript = '<script type="text/javascript">
|
108 |
jQuery(document).ready(function()
|
109 |
{
|
110 |
+
jQuery("#mec_timetable_month_'.esc_js($this->id).'_'.date('Ym', $current_month_time).'").mecTimeTable(
|
111 |
{
|
112 |
+
id: "'.esc_js($this->id).'",
|
113 |
today: "'.date('Ymd', strtotime($this->start_date)).'",
|
114 |
+
week: "'.esc_js($this->week_of_days[$this->active_date]).'",
|
115 |
month_id: "'.date('Ym', $current_month_time).'",
|
116 |
active_day: "'.date('Ymd', strtotime($this->active_date)).'",
|
117 |
month_navigator: '.($this->next_previous_button ? 1 : 0).',
|
118 |
+
changeWeekElement: "#mec_skin_'.esc_js($this->id).' .mec-load-week",
|
119 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
120 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
121 |
+
sed_method: "'.esc_js($sed_method).'",
|
122 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
123 |
sf:
|
124 |
{
|
125 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
126 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
127 |
refine: '.($this->sf_refine ? 1 : 0).',
|
128 |
},
|
app/skins/timetable/render.php
CHANGED
@@ -37,7 +37,7 @@ else $set_dark = '';
|
|
37 |
|
38 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
39 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
40 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
41 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
42 |
|
43 |
// MEC Schema
|
@@ -60,13 +60,13 @@ else $set_dark = '';
|
|
60 |
<span class="mec-timetable-event-span mec-timetable-event-location">
|
61 |
<i class="mec-sl-location-pin"></i>
|
62 |
<?php if(isset($location['name']) and trim($location['name'])): ?>
|
63 |
-
<span><?php echo (isset($location['name']) ? $location['name'] : ''); ?></span>
|
64 |
<?php endif; ?>
|
65 |
</span>
|
66 |
<span class="mec-timetable-event-span mec-timetable-event-organizer">
|
67 |
<i class="mec-sl-user"></i>
|
68 |
<?php if(isset($organizer['name']) and trim($organizer['name'])): ?>
|
69 |
-
<span><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></span>
|
70 |
<?php endif; ?>
|
71 |
</span>
|
72 |
</article>
|
@@ -97,7 +97,7 @@ else $set_dark = '';
|
|
97 |
|
98 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
99 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
100 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
101 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
102 |
|
103 |
$mec_data = $this->display_custom_data($event);
|
@@ -121,13 +121,13 @@ else $set_dark = '';
|
|
121 |
<div class="mec-event-loction">
|
122 |
<i class="mec-sl-location-pin"></i>
|
123 |
<?php if(isset($location['name']) and trim($location['name'])): ?>
|
124 |
-
<span><?php echo (isset($location['name']) ? $location['name'] : ''); ?></span>
|
125 |
<?php endif; ?>
|
126 |
</div>
|
127 |
<div class="mec-event-organizer">
|
128 |
<i class="mec-sl-user"></i>
|
129 |
<?php if(isset($organizer['name']) and trim($organizer['name'])): ?>
|
130 |
-
<span><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></span>
|
131 |
<?php endif; ?>
|
132 |
</div>
|
133 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event))); ?>
|
@@ -157,7 +157,7 @@ else $set_dark = '';
|
|
157 |
<?php if(!empty($events)): ?>
|
158 |
<td colspan="1" style="vertical-align:top;text-align: center;">
|
159 |
<?php foreach($events as $event): ?>
|
160 |
-
<?php if($event->data->meta['mec_date']['start']['hour'] == $i) echo MEC_kses::element($this->display_link($event, NULL, NULL, 'style="background: #'
|
161 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
162 |
<?php endforeach; ?>
|
163 |
</td>
|
37 |
|
38 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
39 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
40 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
41 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
42 |
|
43 |
// MEC Schema
|
60 |
<span class="mec-timetable-event-span mec-timetable-event-location">
|
61 |
<i class="mec-sl-location-pin"></i>
|
62 |
<?php if(isset($location['name']) and trim($location['name'])): ?>
|
63 |
+
<span><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></span>
|
64 |
<?php endif; ?>
|
65 |
</span>
|
66 |
<span class="mec-timetable-event-span mec-timetable-event-organizer">
|
67 |
<i class="mec-sl-user"></i>
|
68 |
<?php if(isset($organizer['name']) and trim($organizer['name'])): ?>
|
69 |
+
<span><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></span>
|
70 |
<?php endif; ?>
|
71 |
</span>
|
72 |
</article>
|
97 |
|
98 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
99 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
100 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
101 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
102 |
|
103 |
$mec_data = $this->display_custom_data($event);
|
121 |
<div class="mec-event-loction">
|
122 |
<i class="mec-sl-location-pin"></i>
|
123 |
<?php if(isset($location['name']) and trim($location['name'])): ?>
|
124 |
+
<span><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></span>
|
125 |
<?php endif; ?>
|
126 |
</div>
|
127 |
<div class="mec-event-organizer">
|
128 |
<i class="mec-sl-user"></i>
|
129 |
<?php if(isset($organizer['name']) and trim($organizer['name'])): ?>
|
130 |
+
<span><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></span>
|
131 |
<?php endif; ?>
|
132 |
</div>
|
133 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type1', array('event' => $event))); ?>
|
157 |
<?php if(!empty($events)): ?>
|
158 |
<td colspan="1" style="vertical-align:top;text-align: center;">
|
159 |
<?php foreach($events as $event): ?>
|
160 |
+
<?php if($event->data->meta['mec_date']['start']['hour'] == $i) echo MEC_kses::element($this->display_link($event, NULL, NULL, 'style="background: #'.esc_attr($event->data->meta['mec_color']).'"')); ?>
|
161 |
<?php echo MEC_kses::element($this->display_custom_data($event)); ?>
|
162 |
<?php endforeach; ?>
|
163 |
</td>
|
app/skins/weekly_view/render.php
CHANGED
@@ -27,7 +27,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
27 |
|
28 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
29 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
30 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
31 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
32 |
|
33 |
$mec_data = $this->display_custom_data($event);
|
@@ -50,7 +50,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
50 |
|
51 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
52 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
53 |
-
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div></div>
|
54 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
55 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
56 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
27 |
|
28 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
29 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
30 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
31 |
$event_start_date = !empty($event->date['start']['date']) ? $event->date['start']['date'] : '';
|
32 |
|
33 |
$mec_data = $this->display_custom_data($event);
|
50 |
|
51 |
<h4 class="mec-event-title"><?php echo MEC_kses::element($this->display_link($event)); ?><?php echo MEC_kses::element($this->display_custom_data($event)); ?><?php echo MEC_kses::element($this->main->get_flags($event).$event_color.$this->main->get_normal_labels($event, $display_label).$this->main->display_cancellation_reason($event, $reason_for_cancellation)); ?><?php do_action('mec_shortcode_virtual_badge', $event->data->ID ); ?></h4>
|
52 |
<?php if($this->localtime) echo MEC_kses::full($this->main->module('local-time.type3', array('event' => $event))); ?>
|
53 |
+
<div class="mec-event-detail"><div class="mec-event-loc-place"><?php echo (isset($location['name']) ? esc_html($location['name']) : ''); ?></div></div>
|
54 |
<?php echo MEC_kses::element($this->display_categories($event)); ?>
|
55 |
<?php echo MEC_kses::element($this->display_organizers($event)); ?>
|
56 |
<?php echo MEC_kses::element($this->display_cost($event)); ?>
|
app/skins/weekly_view/tpl.php
CHANGED
@@ -27,14 +27,14 @@ foreach($this->weeks as $week_number=>$week)
|
|
27 |
$i++;
|
28 |
}
|
29 |
|
30 |
-
$weeks .= '<dl class="mec-weekly-view-week" id="mec_weekly_view_week_'
|
31 |
foreach($week as $day)
|
32 |
{
|
33 |
$time = strtotime($day);
|
34 |
$count = isset($this->events[$day]) ? count($this->events[$day]) : 0;
|
35 |
-
$weeks .= '<dt data-events-count="'
|
36 |
-
.'<span class="mec-weekly-view-weekday">'
|
37 |
-
.'<span class="mec-weekly-view-monthday">'
|
38 |
.'</dt>';
|
39 |
}
|
40 |
|
@@ -60,7 +60,7 @@ if($this->next_previous_button)
|
|
60 |
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-color" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i></a></div>';
|
61 |
}
|
62 |
|
63 |
-
$navigator_html .= '<h4 class="mec-month-label">'
|
64 |
|
65 |
// Show next month handler if needed
|
66 |
if(!$this->show_only_expired_events or
|
@@ -71,10 +71,10 @@ if($this->next_previous_button)
|
|
71 |
}
|
72 |
}
|
73 |
|
74 |
-
$week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(
|
75 |
|
76 |
-
$month_html = '<div class="mec-weeks-container mec-calendar-d-table">'
|
77 |
-
<div class="mec-week-events-container">'
|
78 |
|
79 |
// Return the data if called by AJAX
|
80 |
if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
@@ -97,23 +97,23 @@ if($sed_method == 'new') $sed_method = '0';
|
|
97 |
$javascript = '<script type="text/javascript">
|
98 |
jQuery(document).ready(function()
|
99 |
{
|
100 |
-
jQuery("#mec_weekly_view_month_'
|
101 |
{
|
102 |
-
id: "'
|
103 |
today: "'.date('Ymd', strtotime($this->start_date)).'",
|
104 |
-
week: "'
|
105 |
month_id: "'.date('Ym', $current_month_time).'",
|
106 |
current_year: "'.date('Y', $current_month_time).'",
|
107 |
current_month: "'.date('m', $current_month_time).'",
|
108 |
month_navigator: '.($this->next_previous_button ? 1 : 0).',
|
109 |
-
changeWeekElement: "#mec_skin_'
|
110 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
111 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
112 |
-
sed_method: "'
|
113 |
-
image_popup: "'
|
114 |
sf:
|
115 |
{
|
116 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
117 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
118 |
refine: '.($this->sf_refine ? 1 : 0).',
|
119 |
},
|
27 |
$i++;
|
28 |
}
|
29 |
|
30 |
+
$weeks .= '<dl class="mec-weekly-view-week" id="mec_weekly_view_week_'.esc_attr($this->id.'_'.date('Ym', strtotime($first_week_day)).$week_number).'" data-week-id="'.esc_attr(date('Ym', strtotime($first_week_day)).$week_number).'" data-week-number="' . esc_attr($week_number) . '" data-max-weeks="'.count($this->weeks).'">';
|
31 |
foreach($week as $day)
|
32 |
{
|
33 |
$time = strtotime($day);
|
34 |
$count = isset($this->events[$day]) ? count($this->events[$day]) : 0;
|
35 |
+
$weeks .= '<dt data-events-count="'.esc_attr($count).'" class="'.(!$count ? 'mec-weekly-disabled mec-table-nullday' : '').'">'
|
36 |
+
.'<span class="mec-weekly-view-weekday">'.esc_html($this->main->date_i18n('D', $time)).'</span> '
|
37 |
+
.'<span class="mec-weekly-view-monthday">'.esc_html($this->main->date_i18n('j', $time)).'</span> '
|
38 |
.'</dt>';
|
39 |
}
|
40 |
|
60 |
$navigator_html .= '<div class="mec-previous-month mec-load-month mec-color" data-mec-year="'.date('Y', $_1month_before).'" data-mec-month="'.date('m', $_1month_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i></a></div>';
|
61 |
}
|
62 |
|
63 |
+
$navigator_html .= '<h4 class="mec-month-label">'.esc_html($this->main->date_i18n('Y F', $current_month_time)).'</h4>';
|
64 |
|
65 |
// Show next month handler if needed
|
66 |
if(!$this->show_only_expired_events or
|
71 |
}
|
72 |
}
|
73 |
|
74 |
+
$week_html = '<div class="mec-calendar-d-top"><div class="mec-previous-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-left"></i></div><div class="mec-next-month mec-load-week mec-color" href="#"><i class="mec-sl-angle-right"></i></div><h3 class="mec-current-week">'.sprintf(esc_html__('Week %s', 'modern-events-calendar-lite'), '<span>'.(isset($this->week_of_days[$this->today]) ? $this->week_of_days[$this->today] : 1).'</span>').'</h3></div>';
|
75 |
|
76 |
+
$month_html = '<div class="mec-weeks-container mec-calendar-d-table">'.MEC_kses::element($weeks).'</div>
|
77 |
+
<div class="mec-week-events-container">'.MEC_kses::full($date_events).'</div>';
|
78 |
|
79 |
// Return the data if called by AJAX
|
80 |
if(isset($this->atts['return_items']) and $this->atts['return_items'])
|
97 |
$javascript = '<script type="text/javascript">
|
98 |
jQuery(document).ready(function()
|
99 |
{
|
100 |
+
jQuery("#mec_weekly_view_month_'.esc_js($this->id).'_'.date('Ym', $current_month_time).'").mecWeeklyView(
|
101 |
{
|
102 |
+
id: "'.esc_js($this->id).'",
|
103 |
today: "'.date('Ymd', strtotime($this->start_date)).'",
|
104 |
+
week: "'.esc_js($this->week_of_days[$this->today]).'",
|
105 |
month_id: "'.date('Ym', $current_month_time).'",
|
106 |
current_year: "'.date('Y', $current_month_time).'",
|
107 |
current_month: "'.date('m', $current_month_time).'",
|
108 |
month_navigator: '.($this->next_previous_button ? 1 : 0).',
|
109 |
+
changeWeekElement: "#mec_skin_'.esc_js($this->id).' .mec-load-week",
|
110 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
111 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
112 |
+
sed_method: "'.esc_js($sed_method).'",
|
113 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
114 |
sf:
|
115 |
{
|
116 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
117 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
118 |
refine: '.($this->sf_refine ? 1 : 0).',
|
119 |
},
|
app/skins/yearly_view/calendar.php
CHANGED
@@ -68,11 +68,11 @@ $rows = 1;
|
|
68 |
// Print events
|
69 |
if(isset($events[$today]) and count($events[$today]))
|
70 |
{
|
71 |
-
echo '<dt class="mec-has-event"><a href="#mec_yearly_view'
|
72 |
}
|
73 |
else
|
74 |
{
|
75 |
-
echo '<dt>'
|
76 |
}
|
77 |
|
78 |
if($running_day == 6)
|
@@ -97,7 +97,7 @@ $rows = 1;
|
|
97 |
{
|
98 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
99 |
{
|
100 |
-
echo '<dt class="mec-table-nullday">'
|
101 |
}
|
102 |
}
|
103 |
|
@@ -106,7 +106,7 @@ $rows = 1;
|
|
106 |
echo '</dl><dl>';
|
107 |
for($j = 0; $j <= 6; $j++)
|
108 |
{
|
109 |
-
echo '<dt class="mec-table-nullday">'.($x+$j).'</dt>';
|
110 |
}
|
111 |
}
|
112 |
?>
|
68 |
// Print events
|
69 |
if(isset($events[$today]) and count($events[$today]))
|
70 |
{
|
71 |
+
echo '<dt class="mec-has-event"><a href="#mec_yearly_view'.esc_js($this->id).'_'.date('Ymd', $time).'" class="mec-has-event-a">'.esc_html($list_day).'</a></dt>';
|
72 |
}
|
73 |
else
|
74 |
{
|
75 |
+
echo '<dt>'.esc_html($list_day).'</dt>';
|
76 |
}
|
77 |
|
78 |
if($running_day == 6)
|
97 |
{
|
98 |
for($x = 1; $x <= (8 - $days_in_this_week); $x++)
|
99 |
{
|
100 |
+
echo '<dt class="mec-table-nullday">'.esc_html($x).'</dt>';
|
101 |
}
|
102 |
}
|
103 |
|
106 |
echo '</dl><dl>';
|
107 |
for($j = 0; $j <= 6; $j++)
|
108 |
{
|
109 |
+
echo '<dt class="mec-table-nullday">'.esc_html(($x+$j)).'</dt>';
|
110 |
}
|
111 |
}
|
112 |
?>
|
app/skins/yearly_view/render.php
CHANGED
@@ -42,7 +42,7 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
42 |
|
43 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
44 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
45 |
-
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'
|
46 |
|
47 |
// MEC Schema
|
48 |
do_action('mec_schema', $event);
|
@@ -54,8 +54,8 @@ $reason_for_cancellation = isset($this->skin_options['reason_for_cancellation'])
|
|
54 |
<?php
|
55 |
if(trim($start_time))
|
56 |
{
|
57 |
-
echo '<span class="mec-start-time">'
|
58 |
-
if(trim($end_time)) echo ' - <span class="mec-end-time">'
|
59 |
}
|
60 |
?>
|
61 |
</span>
|
42 |
|
43 |
$start_time = (isset($event->data->time) ? $event->data->time['start'] : '');
|
44 |
$end_time = (isset($event->data->time) ? $event->data->time['end'] : '');
|
45 |
+
$event_color = isset($event->data->meta['mec_color']) ? '<span class="event-color" style="background: #'.esc_attr($event->data->meta['mec_color']).'"></span>' : '';
|
46 |
|
47 |
// MEC Schema
|
48 |
do_action('mec_schema', $event);
|
54 |
<?php
|
55 |
if(trim($start_time))
|
56 |
{
|
57 |
+
echo '<span class="mec-start-time">'.esc_html($start_time).'</span>';
|
58 |
+
if(trim($end_time)) echo ' - <span class="mec-end-time">'.esc_html($end_time).'</span>';
|
59 |
}
|
60 |
?>
|
61 |
</span>
|
app/skins/yearly_view/tpl.php
CHANGED
@@ -30,17 +30,17 @@ if($this->next_previous_button)
|
|
30 |
(isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and date('Y', $_1year_before) >= current_time('Y'))
|
31 |
)
|
32 |
{
|
33 |
-
$navigator_html .= '<div class="mec-previous-year mec-load-year mec-color-hover" data-mec-year="'.date('Y', $_1year_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '
|
34 |
}
|
35 |
|
36 |
-
$navigator_html .= '<h2>'
|
37 |
|
38 |
// Show next month handler if needed
|
39 |
if(!$this->show_only_expired_events or
|
40 |
($this->show_only_expired_events and strtotime(date('Y-01-01', $_1year_after)) <= time())
|
41 |
)
|
42 |
{
|
43 |
-
$navigator_html .= '<div class="mec-next-year mec-load-year mec-color-hover" data-mec-year="'.date('Y', $_1year_after).'"><a href="#" class="mec-load-month-link">'
|
44 |
}
|
45 |
}
|
46 |
|
@@ -64,9 +64,9 @@ if($sed_method == 'new') $sed_method = '0';
|
|
64 |
$javascript = '<script type="text/javascript">
|
65 |
jQuery(document).ready(function()
|
66 |
{
|
67 |
-
jQuery("#mec_yearly_view_year_'
|
68 |
{
|
69 |
-
id: "'
|
70 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
71 |
year_id: "'.date('Y', $current_year_time).'",
|
72 |
next_year: {year: "'.date('Y', $_1year_after).'"},
|
@@ -75,11 +75,11 @@ jQuery(document).ready(function()
|
|
75 |
year_navigator: '.($this->next_previous_button ? 1 : 0).',
|
76 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
77 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
78 |
-
sed_method: "'
|
79 |
-
image_popup: "'
|
80 |
sf:
|
81 |
{
|
82 |
-
container: "'.($this->sf_status ? '#mec_search_form_'
|
83 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
84 |
refine: '.($this->sf_refine ? 1 : 0).',
|
85 |
},
|
30 |
(isset($this->atts['show_past_events']) and !$this->atts['show_past_events'] and date('Y', $_1year_before) >= current_time('Y'))
|
31 |
)
|
32 |
{
|
33 |
+
$navigator_html .= '<div class="mec-previous-year mec-load-year mec-color-hover" data-mec-year="'.date('Y', $_1year_before).'"><a href="#" class="mec-load-month-link"><i class="mec-sl-angle-left"></i> '.esc_html($this->main->date_i18n('Y', $_1year_before)).'</a></div>';
|
34 |
}
|
35 |
|
36 |
+
$navigator_html .= '<h2>'.esc_html($this->main->date_i18n('Y', $current_year_time)).'</h2>';
|
37 |
|
38 |
// Show next month handler if needed
|
39 |
if(!$this->show_only_expired_events or
|
40 |
($this->show_only_expired_events and strtotime(date('Y-01-01', $_1year_after)) <= time())
|
41 |
)
|
42 |
{
|
43 |
+
$navigator_html .= '<div class="mec-next-year mec-load-year mec-color-hover" data-mec-year="'.date('Y', $_1year_after).'"><a href="#" class="mec-load-month-link">'.esc_html($this->main->date_i18n('Y', $_1year_after)).' <i class="mec-sl-angle-right"></i></a></div>';
|
44 |
}
|
45 |
}
|
46 |
|
64 |
$javascript = '<script type="text/javascript">
|
65 |
jQuery(document).ready(function()
|
66 |
{
|
67 |
+
jQuery("#mec_yearly_view_year_'.esc_js($this->id).'_'.date('Y', $current_year_time).'").mecYearlyView(
|
68 |
{
|
69 |
+
id: "'.esc_js($this->id).'",
|
70 |
today: "'.date('Ymd', strtotime($this->active_day)).'",
|
71 |
year_id: "'.date('Y', $current_year_time).'",
|
72 |
next_year: {year: "'.date('Y', $_1year_after).'"},
|
75 |
year_navigator: '.($this->next_previous_button ? 1 : 0).',
|
76 |
atts: "'.http_build_query(array('atts' => $this->atts), '', '&').'",
|
77 |
ajax_url: "'.admin_url('admin-ajax.php', NULL).'",
|
78 |
+
sed_method: "'.esc_js($sed_method).'",
|
79 |
+
image_popup: "'.esc_js($this->image_popup).'",
|
80 |
sf:
|
81 |
{
|
82 |
+
container: "'.($this->sf_status ? '#mec_search_form_'.esc_js($this->id) : '').'",
|
83 |
reset: '.($this->sf_reset_button ? 1 : 0).',
|
84 |
refine: '.($this->sf_refine ? 1 : 0).',
|
85 |
},
|
app/widgets/MEC.php
CHANGED
@@ -98,15 +98,15 @@ class MEC_MEC_widget extends WP_Widget
|
|
98 |
$grid_view_options = false;
|
99 |
|
100 |
echo '<p class="mec-widget-row-container">'
|
101 |
-
.'<label for="'
|
102 |
-
.'<input class="widefat" type="text" id="'
|
103 |
.'</p>';
|
104 |
|
105 |
if(count($calendars))
|
106 |
{
|
107 |
echo '<p class="mec-widget-row-container">'
|
108 |
-
.'<label for="'
|
109 |
-
.'<select class="widefat" name="'
|
110 |
|
111 |
foreach($calendars as $calendar)
|
112 |
{
|
@@ -115,35 +115,35 @@ class MEC_MEC_widget extends WP_Widget
|
|
115 |
if(!$monthly_view_options) $monthly_view_options = (trim($skin) == 'monthly_view' and (isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID)) ? true : false;
|
116 |
if(!$grid_view_options) $grid_view_options = (trim($skin) == 'grid' and (isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID)) ? true : false;
|
117 |
|
118 |
-
echo '<option data-skin="'.trim($skin).'" value="'
|
119 |
}
|
120 |
|
121 |
echo '</select></p>';
|
122 |
|
123 |
// Monthly View Options
|
124 |
-
echo '<p class="mec-widget-row-container mec-current-check-wrap '.(($monthly_view_options) ? '' : 'mec-util-hidden').'"><label for="'
|
125 |
|
126 |
// Grid Options
|
127 |
echo '<div class="mec-grid-options-wrap '.(($grid_view_options) ? '' : 'mec-util-hidden').'">
|
128 |
<p class="mec-widget-row-container">
|
129 |
-
<label for="'
|
130 |
-
<input type="hidden" name="'
|
131 |
-
<input type="checkbox" id="'
|
132 |
</p>
|
133 |
<p class="mec-widget-row-container">
|
134 |
-
<label for="'
|
135 |
-
<input type="number" id="'
|
136 |
</p>
|
137 |
<p class="mec-widget-row-container">
|
138 |
-
<label for="'
|
139 |
-
<input type="hidden" name="'
|
140 |
-
<input type="checkbox" id="'
|
141 |
</p>
|
142 |
</div>';
|
143 |
}
|
144 |
else
|
145 |
{
|
146 |
-
echo '<p class="mec-widget-row-container"><a href="'
|
147 |
}
|
148 |
}
|
149 |
|
98 |
$grid_view_options = false;
|
99 |
|
100 |
echo '<p class="mec-widget-row-container">'
|
101 |
+
.'<label for="'.esc_attr($this->get_field_id('title')).'">'.esc_html__('Title:', 'modern-events-calendar-lite').'</label>'
|
102 |
+
.'<input class="widefat" type="text" id="'.esc_attr($this->get_field_id('title')).'" name="'.esc_attr($this->get_field_name('title')).'" value="'.(isset($instance['title']) ? esc_attr($instance['title']) : '').'" />'
|
103 |
.'</p>';
|
104 |
|
105 |
if(count($calendars))
|
106 |
{
|
107 |
echo '<p class="mec-widget-row-container">'
|
108 |
+
.'<label for="'.esc_attr($this->get_field_id('calendar_id')).'">'.esc_html__('Shortcode:', 'modern-events-calendar-lite').'</label>'
|
109 |
+
.'<select class="widefat" name="'.esc_attr($this->get_field_name('calendar_id')).'" id="'.esc_attr($this->get_field_id('calendar_id')).'" onchange="mec_show_widget_options(this);"><option value="">-----</option>';
|
110 |
|
111 |
foreach($calendars as $calendar)
|
112 |
{
|
115 |
if(!$monthly_view_options) $monthly_view_options = (trim($skin) == 'monthly_view' and (isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID)) ? true : false;
|
116 |
if(!$grid_view_options) $grid_view_options = (trim($skin) == 'grid' and (isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID)) ? true : false;
|
117 |
|
118 |
+
echo '<option data-skin="'.esc_attr(trim($skin)).'" value="'.esc_attr($calendar->ID).'" '.((isset($instance['calendar_id']) and $instance['calendar_id'] == $calendar->ID) ? 'selected="selected"' : '').'>'.esc_html($calendar->post_title).'</option>';
|
119 |
}
|
120 |
|
121 |
echo '</select></p>';
|
122 |
|
123 |
// Monthly View Options
|
124 |
+
echo '<p class="mec-widget-row-container mec-current-check-wrap '.(($monthly_view_options) ? '' : 'mec-util-hidden').'"><label for="'.esc_attr($this->get_field_id('current_hide')).'">'.esc_html__('Enable No Event Block Display: ', 'modern-events-calendar-lite').'</label><input type="checkbox" id="'.esc_attr($this->get_field_id('current_hide')).'" name="'.esc_attr($this->get_field_name('current_hide')).'" value="current-hide" '.checked($current_hide, 'current-hide', false).'></p>';
|
125 |
|
126 |
// Grid Options
|
127 |
echo '<div class="mec-grid-options-wrap '.(($grid_view_options) ? '' : 'mec-util-hidden').'">
|
128 |
<p class="mec-widget-row-container">
|
129 |
+
<label for="'.esc_attr($this->get_field_id('autoplay')).'">'.esc_html__('Autoplay: ', 'modern-events-calendar-lite').'</label>
|
130 |
+
<input type="hidden" name="'.esc_attr($this->get_field_name('autoplay')).'" value="0">
|
131 |
+
<input type="checkbox" id="'.esc_attr($this->get_field_id('autoplay')).'" name="'.esc_attr($this->get_field_name('autoplay')).'" value="1" '.($autoplay ? 'checked="checked"' : '').'>
|
132 |
</p>
|
133 |
<p class="mec-widget-row-container">
|
134 |
+
<label for="'.esc_attr($this->get_field_id('autoplay_time')).'">'.esc_html__('Autoplay Time: ', 'modern-events-calendar-lite').'</label>
|
135 |
+
<input type="number" id="'.esc_attr($this->get_field_id('autoplay_time')).'" name="'.esc_attr($this->get_field_name('autoplay_time')).'" value="'.esc_attr($autoplay_time).'">
|
136 |
</p>
|
137 |
<p class="mec-widget-row-container">
|
138 |
+
<label for="'.esc_attr($this->get_field_id('loop')).'">'.esc_html__('Loop: ', 'modern-events-calendar-lite').'</label>
|
139 |
+
<input type="hidden" name="'.esc_attr($this->get_field_name('loop')).'" value="0">
|
140 |
+
<input type="checkbox" id="'.esc_attr($this->get_field_id('loop')).'" name="'.esc_attr($this->get_field_name('loop')).'" value="1" '.($loop ? 'checked="checked"' : '').'>
|
141 |
</p>
|
142 |
</div>';
|
143 |
}
|
144 |
else
|
145 |
{
|
146 |
+
echo '<p class="mec-widget-row-container"><a href="'.esc_url($this->main->add_qs_var('post_type', 'mec_calendars', $this->main->URL('admin').'edit.php')).'">'.esc_html__('Create some calendars first.').'</a></p>';
|
147 |
}
|
148 |
}
|
149 |
|
app/widgets/single/default.php
CHANGED
@@ -28,10 +28,10 @@
|
|
28 |
<div class="mec-single-event-time">
|
29 |
<i class="mec-sl-clock " style=""></i>
|
30 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
31 |
-
<i class="mec-time-comment"><?php echo (isset($time_comment) ? $time_comment : ''); ?></i>
|
32 |
<dl>
|
33 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
34 |
-
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo (trim($event->data->time['end']) ? ' - '
|
35 |
<?php else: ?>
|
36 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($single->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
37 |
<?php endif; ?>
|
@@ -84,7 +84,7 @@
|
|
84 |
<h3 class="mec-cost"><?php echo esc_html($single->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
85 |
<?php foreach($event->data->labels as $labels=>$label) :
|
86 |
$seperator = (++$mec_i === $mec_items ) ? '' : ',';
|
87 |
-
echo '<dl><dd style="color:' . $label['color'] . '">' . $label["name"] . $seperator . '</dd></dl>';
|
88 |
endforeach; ?>
|
89 |
</div>
|
90 |
<?php
|
@@ -101,13 +101,13 @@
|
|
101 |
?>
|
102 |
<div class="mec-single-event-location">
|
103 |
<?php if($location['thumbnail']): ?>
|
104 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
105 |
<?php endif; ?>
|
106 |
<i class="mec-sl-location-pin"></i>
|
107 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($single->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
108 |
<dl>
|
109 |
<dd class="author fn org"><?php echo MEC_kses::element($single->get_location_html($location)); ?></dd>
|
110 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
111 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
112 |
<dd class="mec-location-url">
|
113 |
<i class="mec-sl-sitemap"></i>
|
@@ -144,9 +144,9 @@
|
|
144 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
145 |
|
146 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
147 |
-
$icon = isset($icon) && $icon != '' ? '<i class="' . $icon . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
148 |
|
149 |
-
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . $color_html . '</a></dd></dl>';
|
150 |
}
|
151 |
?>
|
152 |
</div>
|
@@ -161,14 +161,14 @@
|
|
161 |
?>
|
162 |
<div class="mec-single-event-organizer">
|
163 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
164 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
165 |
<?php endif; ?>
|
166 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($single->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
167 |
<dl>
|
168 |
<?php if(isset($organizer['thumbnail'])): ?>
|
169 |
<dd class="mec-organizer">
|
170 |
<i class="mec-sl-home"></i>
|
171 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
172 |
</dd>
|
173 |
<?php endif;
|
174 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
28 |
<div class="mec-single-event-time">
|
29 |
<i class="mec-sl-clock " style=""></i>
|
30 |
<h3 class="mec-time"><?php esc_html_e('Time', 'modern-events-calendar-lite'); ?></h3>
|
31 |
+
<i class="mec-time-comment"><?php echo (isset($time_comment) ? esc_html($time_comment) : ''); ?></i>
|
32 |
<dl>
|
33 |
<?php if($allday == '0' and isset($event->data->time) and trim($event->data->time['start'])): ?>
|
34 |
+
<dd><abbr class="mec-events-abbr"><?php echo esc_html($event->data->time['start']); ?><?php echo esc_html(trim($event->data->time['end']) ? ' - '.esc_html($event->data->time['end']) : ''); ?></abbr></dd>
|
35 |
<?php else: ?>
|
36 |
<dd><abbr class="mec-events-abbr"><?php echo esc_html($single->main->m('all_day', esc_html__('All Day' , 'modern-events-calendar-lite'))); ?></abbr></dd>
|
37 |
<?php endif; ?>
|
84 |
<h3 class="mec-cost"><?php echo esc_html($single->main->m('taxonomy_labels', esc_html__('Labels', 'modern-events-calendar-lite'))); ?></h3>
|
85 |
<?php foreach($event->data->labels as $labels=>$label) :
|
86 |
$seperator = (++$mec_i === $mec_items ) ? '' : ',';
|
87 |
+
echo '<dl><dd style="color:' . esc_attr($label['color']) . '">' . esc_html($label["name"] . $seperator) . '</dd></dl>';
|
88 |
endforeach; ?>
|
89 |
</div>
|
90 |
<?php
|
101 |
?>
|
102 |
<div class="mec-single-event-location">
|
103 |
<?php if($location['thumbnail']): ?>
|
104 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
105 |
<?php endif; ?>
|
106 |
<i class="mec-sl-location-pin"></i>
|
107 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($single->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
108 |
<dl>
|
109 |
<dd class="author fn org"><?php echo MEC_kses::element($single->get_location_html($location)); ?></dd>
|
110 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
111 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
112 |
<dd class="mec-location-url">
|
113 |
<i class="mec-sl-sitemap"></i>
|
144 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
145 |
|
146 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
147 |
+
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr($icon) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
148 |
|
149 |
+
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . MEC_kses::element($icon . esc_html($category['name']) . $color_html) . '</a></dd></dl>';
|
150 |
}
|
151 |
?>
|
152 |
</div>
|
161 |
?>
|
162 |
<div class="mec-single-event-organizer">
|
163 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
164 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
165 |
<?php endif; ?>
|
166 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($single->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
167 |
<dl>
|
168 |
<?php if(isset($organizer['thumbnail'])): ?>
|
169 |
<dd class="mec-organizer">
|
170 |
<i class="mec-sl-home"></i>
|
171 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
172 |
</dd>
|
173 |
<?php endif;
|
174 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
app/widgets/single/modern.php
CHANGED
@@ -7,14 +7,14 @@
|
|
7 |
?>
|
8 |
<div class="mec-single-event-organizer">
|
9 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
10 |
-
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?>">
|
11 |
<?php endif; ?>
|
12 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($single->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
13 |
<dl>
|
14 |
<?php if(isset($organizer['thumbnail'])): ?>
|
15 |
<dd class="mec-organizer">
|
16 |
<i class="mec-sl-home"></i>
|
17 |
-
<h6><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></h6>
|
18 |
</dd>
|
19 |
<?php endif;
|
20 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
@@ -82,13 +82,13 @@
|
|
82 |
?>
|
83 |
<div class="mec-single-event-location">
|
84 |
<?php if($location['thumbnail']): ?>
|
85 |
-
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? $location['name'] : ''); ?>">
|
86 |
<?php endif; ?>
|
87 |
<i class="mec-sl-location-pin"></i>
|
88 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($single->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
89 |
<dl>
|
90 |
<dd class="author fn org"><?php echo MEC_kses::element($single->get_location_html($location)); ?></dd>
|
91 |
-
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? $location['address'] : ''); ?></span></address></dd>
|
92 |
|
93 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
94 |
<dd class="mec-location-url">
|
@@ -126,9 +126,9 @@
|
|
126 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
127 |
|
128 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
129 |
-
$icon = isset($icon) && $icon != '' ? '<i class="' . $icon . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
130 |
|
131 |
-
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . $icon . $category['name'] . $color_html . '</a></dd></dl>';
|
132 |
}
|
133 |
?>
|
134 |
</div>
|
7 |
?>
|
8 |
<div class="mec-single-event-organizer">
|
9 |
<?php if(isset($organizer['thumbnail']) and trim($organizer['thumbnail'])): ?>
|
10 |
+
<img class="mec-img-organizer" src="<?php echo esc_url($organizer['thumbnail']); ?>" alt="<?php echo (isset($organizer['name']) ? esc_attr($organizer['name']) : ''); ?>">
|
11 |
<?php endif; ?>
|
12 |
<h3 class="mec-events-single-section-title"><?php echo esc_html($single->main->m('taxonomy_organizer', esc_html__('Organizer', 'modern-events-calendar-lite'))); ?></h3>
|
13 |
<dl>
|
14 |
<?php if(isset($organizer['thumbnail'])): ?>
|
15 |
<dd class="mec-organizer">
|
16 |
<i class="mec-sl-home"></i>
|
17 |
+
<h6><?php echo (isset($organizer['name']) ? esc_html($organizer['name']) : ''); ?></h6>
|
18 |
</dd>
|
19 |
<?php endif;
|
20 |
if(isset($organizer['tel']) && !empty($organizer['tel'])): ?>
|
82 |
?>
|
83 |
<div class="mec-single-event-location">
|
84 |
<?php if($location['thumbnail']): ?>
|
85 |
+
<img class="mec-img-location" src="<?php echo esc_url($location['thumbnail'] ); ?>" alt="<?php echo (isset($location['name']) ? esc_attr($location['name']) : ''); ?>">
|
86 |
<?php endif; ?>
|
87 |
<i class="mec-sl-location-pin"></i>
|
88 |
<h3 class="mec-events-single-section-title mec-location"><?php echo esc_html($single->main->m('taxonomy_location', esc_html__('Location', 'modern-events-calendar-lite'))); ?></h3>
|
89 |
<dl>
|
90 |
<dd class="author fn org"><?php echo MEC_kses::element($single->get_location_html($location)); ?></dd>
|
91 |
+
<dd class="location"><address class="mec-events-address"><span class="mec-address"><?php echo (isset($location['address']) ? esc_html($location['address']) : ''); ?></span></address></dd>
|
92 |
|
93 |
<?php if(isset($location['url']) and trim($location['url'])): ?>
|
94 |
<dd class="mec-location-url">
|
126 |
if($color) $color_html .= '<span class="mec-event-category-color" style="--background-color: '.esc_attr($color).';background-color: '.esc_attr($color).'"> </span>';
|
127 |
|
128 |
$icon = (isset($category['icon']) ? $category['icon'] : '');
|
129 |
+
$icon = isset($icon) && $icon != '' ? '<i class="' . esc_attr($icon) . ' mec-color"></i>' : '<i class="mec-fa-angle-right"></i>';
|
130 |
|
131 |
+
echo '<dl><dd class="mec-events-event-categories"><a href="'.get_term_link($category['id'], 'mec_category').'" class="mec-color-hover" rel="tag">' . MEC_kses::element($icon . esc_html($category['name']) . $color_html) . '</a></dd></dl>';
|
132 |
}
|
133 |
?>
|
134 |
</div>
|
assets/css/backend.css
CHANGED
@@ -4790,11 +4790,26 @@ textarea.mec-import-settings-content {
|
|
4790 |
|
4791 |
#MECActivation .MECLicenseMessage,
|
4792 |
.addon-activation-form .MECLicenseMessage {
|
4793 |
-
|
|
|
4794 |
color: #f64;
|
4795 |
max-width: 570px;
|
4796 |
}
|
4797 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4798 |
.box-addon-activation-toggle-content,
|
4799 |
.box-addon-activation-toggle-head {
|
4800 |
display: none;
|
4790 |
|
4791 |
#MECActivation .MECLicenseMessage,
|
4792 |
.addon-activation-form .MECLicenseMessage {
|
4793 |
+
padding-top: 24px;
|
4794 |
+
margin-bottom: -24px;
|
4795 |
color: #f64;
|
4796 |
max-width: 570px;
|
4797 |
}
|
4798 |
|
4799 |
+
.MECLicenseMessage.mec-message-hidden {
|
4800 |
+
display: none;
|
4801 |
+
}
|
4802 |
+
|
4803 |
+
#webnus-dashboard .w-box.mec-activation input[type=submit].mec_revoke {
|
4804 |
+
background: #e0e0e0;
|
4805 |
+
color: #222;
|
4806 |
+
}
|
4807 |
+
|
4808 |
+
.box-addons-activation {
|
4809 |
+
margin-top: 24px;
|
4810 |
+
margin-bottom: 24px;
|
4811 |
+
}
|
4812 |
+
|
4813 |
.box-addon-activation-toggle-content,
|
4814 |
.box-addon-activation-toggle-head {
|
4815 |
display: none;
|
assets/css/backend.min.css
CHANGED
@@ -2,4 +2,4 @@
|
|
2 |
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
3 |
* Copyright 2011-2016 Twitter, Inc.
|
4 |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5 |
-
*/#webnus-dashboard button,#webnus-dashboard input,#webnus-dashboard select,#webnus-dashboard textarea{font-family:inherit;font-size:inherit;line-height:inherit}#webnus-dashboard a{color:#337ab7;text-decoration:none}#webnus-dashboard a:focus,#webnus-dashboard a:hover{color:#23527c}#webnus-dashboard a:focus{outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}#webnus-dashboard figure{margin:0}#webnus-dashboard img{vertical-align:middle}.w-img-responsive{display:block;max-width:100%;height:auto}.w-img-rounded{border-radius:6px}.w-img-thumbnail{padding:4px;line-height:1w-42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all 0w-2s ease-in-out;-o-transition:all 0w-2s ease-in-out;transition:all 0w-2s ease-in-out;display:inline-block;max-width:100%;height:auto}.w-img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.w-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.w-sr-only-focusable:active,.w-sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.w-container,.w-container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}[role=button]{cursor:pointer}@media (min-width:768px){.w-container{width:750px}}@media (min-width:992px){.w-container{width:970px}}@media (min-width:1200px){.w-container{width:1170px}}.w-row{margin-left:-15px;margin-right:-15px}.w-col-lg-1,.w-col-lg-10,.w-col-lg-11,.w-col-lg-12,.w-col-lg-2,.w-col-lg-3,.w-col-lg-4,.w-col-lg-5,.w-col-lg-6,.w-col-lg-7,.w-col-lg-8,.w-col-lg-9,.w-col-md-1,.w-col-md-10,.w-col-md-11,.w-col-md-12,.w-col-md-2,.w-col-md-3,.w-col-md-4,.w-col-md-5,.w-col-md-6,.w-col-md-7,.w-col-md-8,.w-col-md-9,.w-col-sm-1,.w-col-sm-10,.w-col-sm-11,.w-col-sm-12,.w-col-sm-2,.w-col-sm-3,.w-col-sm-4,.w-col-sm-5,.w-col-sm-6,.w-col-sm-7,.w-col-sm-8,.w-col-sm-9,.w-col-xs-1,.w-col-xs-10,.w-col-xs-11,.w-col-xs-12,.w-col-xs-2,.w-col-xs-3,.w-col-xs-4,.w-col-xs-5,.w-col-xs-6,.w-col-xs-7,.w-col-xs-8,.w-col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.w-col-xs-1,.w-col-xs-10,.w-col-xs-11,.w-col-xs-12,.w-col-xs-2,.w-col-xs-3,.w-col-xs-4,.w-col-xs-5,.w-col-xs-6,.w-col-xs-7,.w-col-xs-8,.w-col-xs-9{float:left}.w-col-xs-12{width:100%}.w-col-xs-11{width:91.66666667%}.w-col-xs-10{width:83.33333333%}.w-col-xs-9{width:75%}.w-col-xs-8{width:66.66666667%}.w-col-xs-7{width:58.33333333%}.w-col-xs-6{width:50%}.w-col-xs-5{width:41.66666667%}.w-col-xs-4{width:33.33333333%}.w-col-xs-3{width:25%}.w-col-xs-2{width:16.66666667%}.w-col-xs-1{width:8.33333333%}.w-col-xs-pull-12{right:100%}.w-col-xs-pull-11{right:91.66666667%}.w-col-xs-pull-10{right:83.33333333%}.w-col-xs-pull-9{right:75%}.w-col-xs-pull-8{right:66.66666667%}.w-col-xs-pull-7{right:58.33333333%}.w-col-xs-pull-6{right:50%}.w-col-xs-pull-5{right:41.66666667%}.w-col-xs-pull-4{right:33.33333333%}.w-col-xs-pull-3{right:25%}.w-col-xs-pull-2{right:16.66666667%}.w-col-xs-pull-1{right:8.33333333%}.w-col-xs-pull-0{right:auto}.w-col-xs-push-12{left:100%}.w-col-xs-push-11{left:91.66666667%}.w-col-xs-push-10{left:83.33333333%}.w-col-xs-push-9{left:75%}.w-col-xs-push-8{left:66.66666667%}.w-col-xs-push-7{left:58.33333333%}.w-col-xs-push-6{left:50%}.w-col-xs-push-5{left:41.66666667%}.w-col-xs-push-4{left:33.33333333%}.w-col-xs-push-3{left:25%}.w-col-xs-push-2{left:16.66666667%}.w-col-xs-push-1{left:8.33333333%}.w-col-xs-push-0{left:auto}.w-col-xs-offset-12{margin-left:100%}.w-col-xs-offset-11{margin-left:91.66666667%}.w-col-xs-offset-10{margin-left:83.33333333%}.w-col-xs-offset-9{margin-left:75%}.w-col-xs-offset-8{margin-left:66.66666667%}.w-col-xs-offset-7{margin-left:58.33333333%}.w-col-xs-offset-6{margin-left:50%}.w-col-xs-offset-5{margin-left:41.66666667%}.w-col-xs-offset-4{margin-left:33.33333333%}.w-col-xs-offset-3{margin-left:25%}.w-col-xs-offset-2{margin-left:16.66666667%}.w-col-xs-offset-1{margin-left:8.33333333%}.w-col-xs-offset-0{margin-left:0}@media (min-width:768px){.w-col-sm-1,.w-col-sm-10,.w-col-sm-11,.w-col-sm-12,.w-col-sm-2,.w-col-sm-3,.w-col-sm-4,.w-col-sm-5,.w-col-sm-6,.w-col-sm-7,.w-col-sm-8,.w-col-sm-9{float:left}.w-col-sm-12{width:100%}.w-col-sm-11{width:91.66666667%}.w-col-sm-10{width:83.33333333%}.w-col-sm-9{width:75%}.w-col-sm-8{width:66.66666667%}.w-col-sm-7{width:58.33333333%}.w-col-sm-6{width:50%}.w-col-sm-5{width:41.66666667%}.w-col-sm-4{width:33.33333333%}.w-col-sm-3{width:25%}.w-col-sm-2{width:16.66666667%}.w-col-sm-1{width:8.33333333%}.w-col-sm-pull-12{right:100%}.w-col-sm-pull-11{right:91.66666667%}.w-col-sm-pull-10{right:83.33333333%}.w-col-sm-pull-9{right:75%}.w-col-sm-pull-8{right:66.66666667%}.w-col-sm-pull-7{right:58.33333333%}.w-col-sm-pull-6{right:50%}.w-col-sm-pull-5{right:41.66666667%}.w-col-sm-pull-4{right:33.33333333%}.w-col-sm-pull-3{right:25%}.w-col-sm-pull-2{right:16.66666667%}.w-col-sm-pull-1{right:8.33333333%}.w-col-sm-pull-0{right:auto}.w-col-sm-push-12{left:100%}.w-col-sm-push-11{left:91.66666667%}.w-col-sm-push-10{left:83.33333333%}.w-col-sm-push-9{left:75%}.w-col-sm-push-8{left:66.66666667%}.w-col-sm-push-7{left:58.33333333%}.w-col-sm-push-6{left:50%}.w-col-sm-push-5{left:41.66666667%}.w-col-sm-push-4{left:33.33333333%}.w-col-sm-push-3{left:25%}.w-col-sm-push-2{left:16.66666667%}.w-col-sm-push-1{left:8.33333333%}.w-col-sm-push-0{left:auto}.w-col-sm-offset-12{margin-left:100%}.w-col-sm-offset-11{margin-left:91.66666667%}.w-col-sm-offset-10{margin-left:83.33333333%}.w-col-sm-offset-9{margin-left:75%}.w-col-sm-offset-8{margin-left:66.66666667%}.w-col-sm-offset-7{margin-left:58.33333333%}.w-col-sm-offset-6{margin-left:50%}.w-col-sm-offset-5{margin-left:41.66666667%}.w-col-sm-offset-4{margin-left:33.33333333%}.w-col-sm-offset-3{margin-left:25%}.w-col-sm-offset-2{margin-left:16.66666667%}.w-col-sm-offset-1{margin-left:8.33333333%}.w-col-sm-offset-0{margin-left:0}}@media (min-width:992px){.w-col-md-1,.w-col-md-10,.w-col-md-11,.w-col-md-12,.w-col-md-2,.w-col-md-3,.w-col-md-4,.w-col-md-5,.w-col-md-6,.w-col-md-7,.w-col-md-8,.w-col-md-9{float:left}.w-col-md-12{width:100%}.w-col-md-11{width:91.66666667%}.w-col-md-10{width:83.33333333%}.w-col-md-9{width:75%}.w-col-md-8{width:66.66666667%}.w-col-md-7{width:58.33333333%}.w-col-md-6{width:50%}.w-col-md-5{width:41.66666667%}.w-col-md-4{width:33.33333333%}.w-col-md-3{width:25%}.w-col-md-2{width:16.66666667%}.w-col-md-1{width:8.33333333%}.w-col-md-pull-12{right:100%}.w-col-md-pull-11{right:91.66666667%}.w-col-md-pull-10{right:83.33333333%}.w-col-md-pull-9{right:75%}.w-col-md-pull-8{right:66.66666667%}.w-col-md-pull-7{right:58.33333333%}.w-col-md-pull-6{right:50%}.w-col-md-pull-5{right:41.66666667%}.w-col-md-pull-4{right:33.33333333%}.w-col-md-pull-3{right:25%}.w-col-md-pull-2{right:16.66666667%}.w-col-md-pull-1{right:8.33333333%}.w-col-md-pull-0{right:auto}.w-col-md-push-12{left:100%}.w-col-md-push-11{left:91.66666667%}.w-col-md-push-10{left:83.33333333%}.w-col-md-push-9{left:75%}.w-col-md-push-8{left:66.66666667%}.w-col-md-push-7{left:58.33333333%}.w-col-md-push-6{left:50%}.w-col-md-push-5{left:41.66666667%}.w-col-md-push-4{left:33.33333333%}.w-col-md-push-3{left:25%}.w-col-md-push-2{left:16.66666667%}.w-col-md-push-1{left:8.33333333%}.w-col-md-push-0{left:auto}.w-col-md-offset-12{margin-left:100%}.w-col-md-offset-11{margin-left:91.66666667%}.w-col-md-offset-10{margin-left:83.33333333%}.w-col-md-offset-9{margin-left:75%}.w-col-md-offset-8{margin-left:66.66666667%}.w-col-md-offset-7{margin-left:58.33333333%}.w-col-md-offset-6{margin-left:50%}.w-col-md-offset-5{margin-left:41.66666667%}.w-col-md-offset-4{margin-left:33.33333333%}.w-col-md-offset-3{margin-left:25%}.w-col-md-offset-2{margin-left:16.66666667%}.w-col-md-offset-1{margin-left:8.33333333%}.w-col-md-offset-0{margin-left:0}}@media (min-width:1200px){.w-col-lg-1,.w-col-lg-10,.w-col-lg-11,.w-col-lg-12,.w-col-lg-2,.w-col-lg-3,.w-col-lg-4,.w-col-lg-5,.w-col-lg-6,.w-col-lg-7,.w-col-lg-8,.w-col-lg-9{float:left}.w-col-lg-12{width:100%}.w-col-lg-11{width:91.66666667%}.w-col-lg-10{width:83.33333333%}.w-col-lg-9{width:75%}.w-col-lg-8{width:66.66666667%}.w-col-lg-7{width:58.33333333%}.w-col-lg-6{width:50%}.w-col-lg-5{width:41.66666667%}.w-col-lg-4{width:33.33333333%}.w-col-lg-3{width:25%}.w-col-lg-2{width:16.66666667%}.w-col-lg-1{width:8.33333333%}.w-col-lg-pull-12{right:100%}.w-col-lg-pull-11{right:91.66666667%}.w-col-lg-pull-10{right:83.33333333%}.w-col-lg-pull-9{right:75%}.w-col-lg-pull-8{right:66.66666667%}.w-col-lg-pull-7{right:58.33333333%}.w-col-lg-pull-6{right:50%}.w-col-lg-pull-5{right:41.66666667%}.w-col-lg-pull-4{right:33.33333333%}.w-col-lg-pull-3{right:25%}.w-col-lg-pull-2{right:16.66666667%}.w-col-lg-pull-1{right:8.33333333%}.w-col-lg-pull-0{right:auto}.w-col-lg-push-12{left:100%}.w-col-lg-push-11{left:91.66666667%}.w-col-lg-push-10{left:83.33333333%}.w-col-lg-push-9{left:75%}.w-col-lg-push-8{left:66.66666667%}.w-col-lg-push-7{left:58.33333333%}.w-col-lg-push-6{left:50%}.w-col-lg-push-5{left:41.66666667%}.w-col-lg-push-4{left:33.33333333%}.w-col-lg-push-3{left:25%}.w-col-lg-push-2{left:16.66666667%}.w-col-lg-push-1{left:8.33333333%}.w-col-lg-push-0{left:auto}.w-col-lg-offset-12{margin-left:100%}.w-col-lg-offset-11{margin-left:91.66666667%}.w-col-lg-offset-10{margin-left:83.33333333%}.w-col-lg-offset-9{margin-left:75%}.w-col-lg-offset-8{margin-left:66.66666667%}.w-col-lg-offset-7{margin-left:58.33333333%}.w-col-lg-offset-6{margin-left:50%}.w-col-lg-offset-5{margin-left:41.66666667%}.w-col-lg-offset-4{margin-left:33.33333333%}.w-col-lg-offset-3{margin-left:25%}.w-col-lg-offset-2{margin-left:16.66666667%}.w-col-lg-offset-1{margin-left:8.33333333%}.w-col-lg-offset-0{margin-left:0}}.w-clearfix:after,.w-clearfix:before,.w-container-fluid:after,.w-container-fluid:before,.w-container:after,.w-container:before,.w-row:after,.w-row:before{content:' ';display:table}.w-clearfix:after,.w-container-fluid:after,.w-container:after,.w-row:after{clear:both}.w-center-block{display:block;margin-left:auto;margin-right:auto}.w-pull-right{float:right!important}.w-pull-left{float:left!important}.w-hide{display:none!important}.w-show{display:block!important}.w-invisible{visibility:hidden}.w-text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.w-hidden{display:none!important}.w-affix{position:fixed}.mec-image-popup-wrap{display:none}#wns-be-infobar.sticky{position:fixed;top:32px;background:#fff;z-index:999;width:82%}.wns-be-main .wns-saved-settings.sticky{position:fixed;width:62.5%;top:111px;z-index:999999999999999999}textarea.mec-import-settings-content{display:block;width:100%;min-height:120px;margin-bottom:25px;padding:10px 15px}.mec-import-options-notification{display:inline-block}.mec-import-options-notification .mec-message-import-error,.mec-import-options-notification .mec-message-import-success{display:inline-block;padding:15px 12px;margin-left:12px;opacity:0;visibility:hidden;font-weight:700}.mec-import-options-notification .mec-message-import-success{opacity:1;visibility:visible;border:2px solid green}.mec-import-options-notification .mec-message-import-error{opacity:1;visibility:visible;border:2px solid #e62117}.mec-export-settings:focus,.mec-import-settings:focus{color:#07bbe9}.mec-import-settings-wrap{position:relative}.mec-loarder-wrap{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(202,202,202,.7);z-index:9999}.mec-loarder-wrap.mec-settings-loader{top:34px}.mec-loarder{position:absolute;width:64px;height:64px;top:calc(50% - 32px);left:calc(50% - 36px)}.mec-loarder div{display:inline-block;position:absolute;left:6px;width:4px;background:#fff;animation:mec-loarder 1.2s cubic-bezier(0,.5,.5,1) infinite}.mec-loarder div:nth-child(1){left:27px;animation-delay:-.24s;background:#0075ff}.mec-loarder div:nth-child(2){left:36px;animation-delay:-.12s;background:#028bff}.mec-loarder div:nth-child(3){left:45px;animation-delay:0;background:#32a0ff}@keyframes mec-loarder{0%{top:6px;height:51px}100%,50%{top:19px;height:26px}}.w-box.support-page.searchbox{background:#40d8f0;color:#fff;min-height:260px;text-align:center;border-radius:11px}#webnus-dashboard .search-form input{background:rgba(255,255,255,.2);border:none;width:50%;outline:0;color:rgba(255,255,255,.7);font-size:18px;border-radius:4px 0 0 4px;box-shadow:0 1px 2px 0 rgba(0,0,0,.03);-webkit-transition:background .4s,box-shadow .2s;transition:background .4s,box-shadow .2s;padding:20px 32px;margin:0}#webnus-dashboard .search-form button{background:rgba(255,255,255,.2);border:none;padding:20px 32px;margin-left:-2px;color:#fff;border-radius:0 4px 4px 0;font-size:18px;cursor:pointer;-webkit-transition:background .4s,box-shadow .2s;transition:background .4s,box-shadow .2s}#webnus-dashboard .search-form button:hover{background:#fff;color:#3a3c4c}.w-box.support-page.searchbox p{font-size:30px}.search-form input::-webkit-input-placeholder{color:rgba(255,255,255,.7)}.search-form input::-moz-placeholder{color:rgba(255,255,255,.7)}.search-form input:-ms-input-placeholder{color:rgba(255,255,255,.7)}.search-form input:-moz-placeholder{color:rgba(255,255,255,.7)}#webnus-dashboard .search-form input:active,#webnus-dashboard .search-form input:focus{box-shadow:0 10px 20px rgba(0,0,0,.14);background:#fff;color:#3a3c4c}#webnus-dashboard .search-form input:active::-webkit-input-placeholder,#webnus-dashboard .search-form input:focus::-webkit-input-placeholder{color:#3a3c4c}#webnus-dashboard .search-form input:active::-moz-placeholder,#webnus-dashboard .search-form input:focus::-moz-placeholder{color:#3a3c4c}#webnus-dashboard .search-form input:active:-ms-input-placeholder,#webnus-dashboard .search-form input:focus:-ms-input-placeholder{color:#3a3c4c}#webnus-dashboard .search-form input:active:-moz-placeholder,#webnus-dashboard .search-form input:focus:-moz-placeholder{color:#3a3c4c}#webnus-dashboard .w-box.support-page.mec-ticksy{text-align:center;min-height:260px}#webnus-dashboard .w-box.support-page.mec-ticksy p{font-size:20px;width:70%;margin:0 auto;margin-bottom:40px;margin-top:40px}#webnus-dashboard .support-box a,#webnus-dashboard .w-box.support-page.mec-ticksy a{color:#fff;font-weight:500;border-radius:50px;text-shadow:none;background:#40d8f0;border:none;transition:.24s;padding:12px 30px;cursor:pointer;margin-bottom:40px;display:inline-block}#webnus-dashboard .support-box a:hover,#webnus-dashboard .w-box.support-page.mec-ticksy a:hover{background:#222;box-shadow:0 5px 23px -7px rgba(0,0,0,.5)}#webnus-dashboard .support-box a{margin:40px 4px 0 4px}.mec-faq-accordion>.mec-faq-accordion-content{display:none}#webnus-dashboard .mec-faq-accordion-trigger a{font-size:15px;padding:15px;background:#f0f1f2;display:block;color:#222;line-height:17px;outline:0;border-radius:8px}.mec-faq-accordion-trigger{margin-bottom:5px;position:relative}#webnus-dashboard .mec-faq-accordion-trigger a:after{font-family:simple-line-icons;content:'\e095';position:absolute;right:12px;font-weight:700}.mec-faq-accordion-content{padding:5px 14px 25px}#webnus-dashboard .mec-faq-accordion-trigger a.active:after{content:'\e082'}#webnus-dashboard .support-page-links a{color:#fff;border-radius:50px;padding:13px 24px;font-size:12px;letter-spacing:1px;font-weight:600;text-transform:uppercase;transition:all .2s ease}#webnus-dashboard .support-page-links a:hover,#webnus-dashboard .w-box.support-page.videobox .w-button a:hover{background:#222;box-shadow:0 2px 5px -1px rgba(0,0,0,.1)}#webnus-dashboard .support-page-links{display:inline-block;margin:12px 4px 16px 0}.support-page-links.link-to-doc a{background:#d09d5f}.support-page-links.link-to-videos a{background:#ff876c}.support-page-links.link-to-articles a{background:#69ca8a}.w-box.support-page.articles-box .w-box-content a{display:block;padding:6px 0}#webnus-dashboard .w-box.support-page.videobox .w-button a{color:#fff;font-size:10px;padding:5px 15px;min-height:10px;font-weight:500;border-radius:22px;box-shadow:0 3px 10px -9px #ff5a35;text-shadow:none;background:#ff876c;border:none;transition:.24s}.w-box.support-page.articles-box,.w-box.support-page.faq-box{min-height:500px}.w-box.support-page.videobox{border-radius:11px;min-height:282px;box-shadow:0 1px 2px rgba(0,0,0,.01)!important}.w-box.support-page.videobox .w-box-content{padding:15px}.w-box.support-page.videobox .w-box-head{font-size:15px;text-align:center;padding:20px 0 0}#webnus-dashboard .w-box.support-page.videobox .w-button a i{margin-right:6px}.support-page .w-box-content ul{margin-top:5px;padding-left:5px}.support-page .w-box-content ul li{font-size:13px}.support-page .w-box-content ul li i{font-size:13px;vertical-align:text-bottom;margin-right:3px;color:#40d8f0}.w-box.mec-activation{background:#fff url(../img/dp-dsb-support.jpg) no-repeat top right}.w-box.mec-activation .w-box-head{width:75%}.w-box.mec-activation .w-box-content{padding:10px 30px}.w-box.mec-activation input[type=radio]{display:none}.w-box.mec-activation input[type=radio]+label{color:#000;font-size:13px;line-height:14px!important;color:#7b7b7b}.w-box.mec-activation input[type=radio].checked+label{color:#40d8f0}.mec-form-row input[type=radio],.w-box.mec-activation input[type=radio]+label span{display:inline-block;margin:-2px 6px 0 0;vertical-align:middle;cursor:pointer;height:22px;width:22px;text-align:center;background-color:#fff;border:2px solid #e1e2e3;border-radius:100%;box-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;transition:all .3s ease}.mec-form-row input[type=radio]:checked,.w-box.mec-activation input[type=radio].checked+label span{border-color:#afebf5}.mec-form-row input[type=radio]:before,.w-box.mec-activation input[type=radio]+label span:after{content:'';display:block;margin:0;position:absolute;top:4px;left:4px;width:10px;height:10px;background:0 0;border-radius:100%;transition:all .2s ease;transform:scale(.1)}.mec-form-row input[type=radio]:checked:before,.w-box.mec-activation input[type=radio].checked+label span:after{background:#38d5ed;transform:scale(1)}.w-box.mec-activation .LicenseType label{padding-right:20px;font-weight:500}.w-box.mec-activation .LicenseField{display:inline-block;position:relative;margin-top:20px}.w-box.mec-activation input[name=MECPurchaseCode]{box-shadow:inset 0 1px 2px rgba(0,0,0,.07);min-width:220px;background:#f7f8f9;border:none;border-radius:33px;width:500px;min-height:50px;margin:0;padding-left:20px;text-align:left}#webnus-dashboard .w-box.mec-activation input[type=submit]{height:40px;line-height:40px;font-weight:600;border:none;cursor:pointer;padding:0 30px;border-radius:33px;color:#fff;letter-spacing:1px;text-transform:uppercase;font-size:12px;text-shadow:none;background:#64e385;transition:all .28s ease;position:absolute;right:5px;top:5px;font-size:12px}#webnus-dashboard .w-box.mec-activation input[type=submit]:hover{background:#45ce68}#webnus-dashboard .w-box.mec-activation input[type=submit].delete{background:#c2c2c2;color:#000}#webnus-dashboard .w-box.mec-activation input[type=submit].delete:hover{background:#ccc}#MECActivation .MECPurchaseStatus,.addon-activation-form .MECPurchaseStatus{display:inline-block;width:40px;height:40px;text-align:center;padding-top:9px;color:#fff;font-weight:700;font-size:18px;border-radius:50%;padding-top:8px;position:absolute;right:-51px;top:calc(50% - 20px)}.MECPurchaseStatus:after,.MECPurchaseStatus:before{position:absolute;border-radius:50px;background:#fff;content:'';transform:rotate(45deg)}.MECPurchaseStatus.PurchaseError:before{width:22px;height:4px;right:9px;top:18px;transform:rotate(45deg)}.MECPurchaseStatus.PurchaseError:after{width:22px;height:4px;right:9px;top:18px;transform:rotate(-45deg)}.MECPurchaseStatus.PurchaseSuccess:before{width:13px;height:4px;right:19px;top:21px;transform:rotate(45deg)}.MECPurchaseStatus.PurchaseSuccess:after{width:22px;height:4px;right:5px;top:18px;transform:rotate(-45deg)}#MECActivation .MECPurchaseStatus.PurchaseError,.addon-activation-form .MECPurchaseStatus.PurchaseError{background:#ff876c}#MECActivation .MECPurchaseStatus.PurchaseSuccess,.addon-activation-form .MECPurchaseStatus.PurchaseSuccess{background:#64e385}.wna-spinner-wrap{position:absolute;background:#000;width:509px;height:64px;top:-8px;border-radius:50px;z-index:999;background-color:#fff;opacity:.9}.wna-spinner{width:40px;height:40px;position:relative;margin:6px auto}.wna-spinner .double-bounce1,.wna-spinner .double-bounce2{width:100%;height:100%;border-radius:50%;background-color:#40d8f0;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:sk-bounce 2s infinite ease-in-out;animation:sk-bounce 2s infinite ease-in-out}.wna-spinner .double-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}#MECActivation .MECLicenseMessage,.addon-activation-form .MECLicenseMessage{margin-top:24px;color:#f64;max-width:570px}.box-addon-activation-toggle-content,.box-addon-activation-toggle-head{display:none}.addon-activation-form h3{font-size:15px;font-weight:400;margin:34px 0 -7px}.box-addon-activation-toggle-head{line-height:1.5;font-size:16px;margin-top:20px;cursor:pointer}.box-addon-activation-toggle-head i{margin-right:7px;cursor:pointer;font-weight:700}#mec-advanced-wraper div:first-child>ul{display:block;margin:5px 0;padding:5px 0;width:390px;border:1px solid #e1e2e3;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.05)}#mec-advanced-wraper div:first-child>ul span{display:none}#mec-advanced-wraper div:first-child>ul *{display:inline-block;background:#fff;font-size:12px;color:#717273;text-align:center}#mec-advanced-wraper div:first-child>ul>li{width:60px;font-weight:700;margin:0 10px 0 0;padding:4px 0;border-right:1px solid #e1e2e3}#mec-advanced-wraper div:first-child>ul>ul>li{margin:0;padding:2px 10px;cursor:pointer;border-radius:2px;transition:all .18s ease}#mec-advanced-wraper div:first-child>ul>ul>li:hover,.mec-active{background:#07bbe9!important;color:#fff!important}@-webkit-keyframes sk-bounce{0%,100%{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,100%{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.w-col-sm-3 .w-box.addon{min-height:372px;text-align:center;border-radius:9px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 1%)}.m-e-calendar_page_MEC-addons .welcome-content .w-col-sm-3{width:33.33%;clear:none!important;min-height:380px}@media (min-width:768px) and (max-width:1281px){.m-e-calendar_page_MEC-addons .welcome-content .w-col-sm-3{width:50%}}@media (max-width:767px){.m-e-calendar_page_MEC-addons .welcome-content .w-col-sm-3{width:100%}}.w-box-child.mec-addon-box{padding:0}.mec-addon-box-head{border-bottom:1px solid #f7f8f9;padding:20px 20px 8px;margin-bottom:14px;position:relative}.mec-addon-box-version{position:relative;border-radius:1px;padding:0 8px;font-family:monospace;background:#f4f7f7;color:#00a1b7;font-size:11px;letter-spacing:.2px;line-height:21px;display:inline-block;margin:10px 0}.mec-addon-box-head img{display:block;width:100%;height:60px;margin-bottom:10px;margin-top:10px}.mec-addon-box-title{font-weight:600;font-size:18px;line-height:36px;color:#27272a;letter-spacing:-.2px}.mec-addon-box-title a span{color:#444;font-size:15px}.mec-addon-box-content{padding:0 20px}.mec-addon-box-content p{color:#6e757b;font-size:14px;letter-spacing:.1px}.mec-addon-box-mec-version{background:#f3f3f3;padding:10px;font-size:13px}.mec-addon-box-pro{display:inline-block;background:#ff7d5f;color:#fff;font-weight:600;font-size:11px;letter-spacing:.2px;line-height:21px;padding:0 8px;border-radius:3px}#webnus-dashboard .addons-page-links{display:inline-block;margin:12px 4px 16px 0}#webnus-dashboard .addons-page-links a{background-color:#fff;color:#fff;border-radius:2px;padding:13px 24px;font-size:12px;letter-spacing:1px;font-weight:600;text-transform:uppercase}.addons-page-links.link-to-purchase a{background:#4cbf67;background:linear-gradient(95deg,#6fe08a 0,#58cf74 50%,#36cb58 100%);box-shadow:0 5px 10px -5px #4cbf67}.addons-page-links.link-to-install-addons a{background:#b092e6;background:linear-gradient(95deg,#b092e6 0,#9b70e8 50%,#8e5cea 100%);box-shadow:0 5px 10px -5px #b092e6}#webnus-dashboard .addons-page-links a:hover,#webnus-dashboard .w-box.addons-page.videobox .w-button a:hover{background:#222;background:linear-gradient(95deg,#555 0,#222 50%,#000 100%);box-shadow:0 5px 21px -5px rgba(0,0,0,.5)}.mec-addon-box-footer{background:#f7f8f9;border-radius:0 0 9px 9px;padding:10px 1px 8px;margin-top:25px;text-align:center;position:absolute;left:0;right:0;bottom:0}#webnus-dashboard .mec-addon-box-footer a{margin-top:10px;display:inline-block;text-shadow:none;border:none;transition:.24s;position:relative;margin-right:7px;font-size:12px;font-weight:500;border-radius:8px;padding:9px 18px 8px;width:53px;height:34px;line-height:21px;background:0 0;margin:0;box-shadow:none}#webnus-dashboard .mec-addon-box-footer a:last-of-type{margin-right:0}#webnus-dashboard .mec-addon-box-footer a.mec-addon-box-intro:hover{background-color:#ff3535;background:linear-gradient(95deg,#ff6c6c 0,#f55 50%,#ff3535 100%)}#webnus-dashboard .mec-addon-box-footer a:hover{background:#00cae6;cursor:pointer!important}#webnus-dashboard .mec-addon-box-footer a i{color:#00cae6;font-size:16px}#webnus-dashboard .mec-addon-box-footer a:hover i{color:#fff}#mec_tickets .mec-box{position:relative;padding:25px 10px}#mec_fees_list input[type=text].mec-col-12,#mec_ticket_variations_list input[type=text].mec-col-12{max-width:625px}#taxes_option .mec-form-row input[type=text].mec-col-12,#ticket_variations_option input[type=text].mec-col-12{max-width:575px}.mec-booking-tab-content .mec-form-row textarea{max-width:762px}#mec_tickets .button.remove{padding:0;min-height:28px;height:28px;width:28px;margin:0;border-radius:50%;position:absolute;top:20px;right:20px;color:#fff;box-shadow:none;background:#fff;border-color:#e3e4e5;font-size:20px;line-height:1.5}#mec_tickets .button.remove svg{fill:#ea6485!important}#mec_tickets .button.remove:hover{color:#fff;border-color:#ea6485;background:#ea6485}#mec_tickets .button.remove:hover svg{fill:#fff!important}@media (max-width:480px){#mec_tickets .button.remove{top:5px;right:5px}}.mec-ticket-id{font-size:12px;line-height:12px;font-weight:400;color:#07bbe9;padding:0 0 8px;margin-top:-6px;margin-bottom:14px;cursor:default}.mec-ticket-end-time.mec-col-12 .mec-time-span,.mec-ticket-start-time.mec-col-12 .mec-time-span{min-width:80px;display:inline-block}.mec-ticket-start-time{margin-bottom:20px}.mec-ticket-time{min-width:69px;display:inline-block}.mec-stop-selling-tickets{min-width:185px}#mec_meta_box_hourly_schedule_days .mec-form-row input[type=text],#mec_meta_box_tickets_form .mec-form-row input[type=text]{max-width:290px}@media (max-width:1366px){#mec_meta_box_hourly_schedule_days .mec-box.mec-form-row input[type=text]{max-width:150px;min-width:110px}}#mec_exceptions_not_in_days_date{width:100%}#mec-event-data input[type=date],#mec-event-data input[type=email],#mec-event-data input[type=tel],#mec-event-data input[type=text],#mec-event-data input[type=url],#mec-event-data select,#mec-event-data textarea,#mec_exceptions_not_in_days_date,#mec_meta_box_date_form input[type=text],#mec_select_tags.mec-create-shortcode-tab-content input[type=text],#mec_settings_weather_module_api_key{max-width:290px}#mec-event-data input[type=text].mec_date_picker.mec-col-4 #mec_meta_box_calendar_skin_options input[type=text].mec_date_picker.mec-col-4{max-width:32.33333333%}#payment_gateways_option .mec-col-4 input[type=number],#payment_gateways_option .mec-col-4 input[type=text],#payment_gateways_option .mec-col-4 select,#payment_gateways_option .mec-col-4 textarea{width:90%}.mec-form-repeating-event-row .mec-col-6 input[type=text]{width:35%}.addons-page-error,.addons-page-notice{display:block;margin-top:15px;margin-bottom:0;background:#fff;border-left:4px solid #00a0d2;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1px 12px}.addons-page-error p,.addons-page-notice p{margin:.5em 0;padding:2px;font-size:13px}.addons-page-error{border-left-color:#dc3232}.mec-addon-box-comingsoon{background:0 0;padding:8px 11px;color:#5a5a5a;font-size:14px;font-weight:500;text-align:center}.mec-addons .w-row .w-col-sm-3:nth-child(4n+1){clear:left}@media (min-width:960px){#webnus-dashboard .mec-addon-box-footer .w-button{text-align:right}}@media (min-width:1401px){.mec-addon-box-title a span{font-size:17px}}.mec-pro-notice{margin-top:24px;line-height:30px}.mec-pro-notice .info-msg{padding:50px 30px;margin-bottom:0}#webnus-dashboard .mec-pro-notice .info-msg{background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / 1%);text-align:center;color:#55595d}#webnus-dashboard a.info-msg-link{background:#e66f52;background:linear-gradient(95deg,#ff8162 0,#e66f52 50%,#ff4c20 100%);box-shadow:0 5px 10px -5px #e66f52;border-radius:2px;padding:12px 50px;font-size:16px;line-height:24px;border:none;margin:20px auto 0;color:#fff;transition:all .3s ease;display:inline-block}#webnus-dashboard a.info-msg-link:hover{background:#222;background:linear-gradient(95deg,#555 0,#222 50%,#000 100%);box-shadow:0 5px 21px -5px rgba(0,0,0,.5)}#webnus-dashboard .info-msg p{width:70%;margin:0 auto;line-height:1.8}#webnus-dashboard .info-msg-coupon{font-size:13px;color:#777;max-width:600px;line-height:1.68;margin:25px auto 0}#webnus-dashboard .info-msg-coupon strong{font-weight:700;color:#19ce18}.info-msg .socialfollow{padding-top:20px}.info-msg .socialfollow a{margin:0 2px;display:inline-block}.info-msg .socialfollow a i{background:#96a4b1;color:#fff;padding:6px;border-radius:3px;font-size:18px;box-shadow:0 2px 3px rgba(0,0,0,.1);transition:all .25s}.info-msg .socialfollow a:hover i{background:#008aff}.mec-intro-section .w-box-content{text-align:center}.mec-intro-section .w-box-content.mec-intro-section-welcome{max-width:600px;margin:0 auto}.mec-intro-section .w-box-content.mec-intro-section-welcome h3{font-size:26px}a.mec-intro-section-link-tag.button.button-hero{margin:0 10px 40px}a.mec-intro-section-link-tag.button.button-primary.button-hero{color:#fff!important}a.mec-intro-section-link-tag.button.button-secondary.button-hero{color:#1dbfd8!important}.mec-intro-section-ifarme iframe{border:1px solid #e7e7e7;border-radius:9px;padding:15px;box-shadow:0 3px 10px -6px rgb(0 0 0 / 12%)}.w-box-content.mec-intro-section-welcome p{margin-bottom:0}.mec-tooltip a:focus{box-shadow:none}#mec_booking_form .mec-options-fields,#mec_modules_form .mec-options-fields,#mec_settings_form .mec-options-fields,#mec_single_form .mec-options-fields{padding-bottom:150px!important}#mec_taxes_fees_container_toggle{margin-bottom:60px}#mec_taxes_fees_container_toggle{margin-bottom:60px}.wns-be-sidebar li{position:relative}.wns-be-sidebar li .submneu-hover{position:absolute;top:-1px;right:-222px;width:220px;z-index:9;background:#fff;border:1px;border-style:solid;border-color:#dedede;margin:0;overflow:visible;opacity:0;visibility:hidden;transition:all .23s ease;padding-top:8px;padding-bottom:12px}.wns-be-sidebar li:hover .submneu-hover{opacity:1;visibility:visible}.wns-be-sidebar li .submneu-hover a{background:#fff;color:#636363;opacity:1;font-size:12px;padding:6px 4px 6px 26px}.wns-be-sidebar li .submneu-hover a:hover{background:#f6f6f6;color:#222}.wns-be-sidebar li .submneu-hover:before{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-15px;top:14px;border-right-color:#c5c5c5;right:0}.wns-be-sidebar li .submneu-hover:after{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-14px;top:14px}.wns-be-sidebar li a:focus,.wns-be-sidebar li:focus{outline:-webkit-focus-ring-color auto 0;border:0;box-shadow:none}@media (max-width:480px){.wns-be-sidebar li .submneu-hover{width:175px;right:0}.wns-be-sidebar li .submneu-hover a{font-size:11px;padding:5px 5px 5px 20px}}.mec-tooltip:hover:after,.mec-tooltip:hover:before{display:none}.mec-tooltip{display:inline-flex;bottom:7px}.mec-tooltip .box{min-width:300px;max-width:600px;display:inline-block;left:26px;top:50%;transform:translateY(-50%);padding:0;margin-top:8px;background-color:#535a61;color:#fff;font-weight:300;font-size:14px;letter-spacing:.5px;line-height:1.3;position:absolute;z-index:9999999;box-sizing:border-box;border-radius:6px;box-shadow:0 4px 45px -8px #444b50;visibility:hidden;opacity:0;transition:opacity .23s}#webnus-dashboard .mec-tooltip .box p,.mec-tooltip .box p{color:#fff;font-size:14px;line-height:1.3;margin:0;font-style:normal}.mec-tooltip:hover .box{visibility:visible;opacity:1}.mec-tooltip:hover .box{padding:20px;border-radius:8px}.mec-tooltip .box h5{color:#fff;font-size:17px;font-weight:600;margin:-30px -20px;padding:15px 0;text-align:center;margin-bottom:10px;background:#3a3f44;border-bottom:1px solid #30353a;border-radius:6px 6px 0 0;z-index:9999}.mec-tooltip .box h5:after{display:none}#webnus-dashboard .mec-tooltip .box p a,.mec-tooltip .box p a{color:#40d9f1;margin-top:10px;margin-left:0;font-weight:400;position:relative;text-decoration:none;display:block;width:max-content}.mec-tooltip .box a:hover{color:#f90}.mec-tooltip .box:after{display:block;position:absolute!important;top:100%!important;right:50%!important;margin-top:-6px!important;margin-right:-6px!important;width:12px!important;height:24px!important;overflow:hidden!important;transform:rotate(-90deg)!important}.mec-tooltip .box:before{display:block;content:''!important;position:absolute!important;width:12px;height:12px;left:-10px!important;top:50%!important;transform:translate(50%,-50%) rotate(-45deg)!important;background-color:#535a61!important;box-shadow:0 8px 9px -4px #535a61!important;z-index:0!important}.mec-tooltip .box.top{left:50%;top:0;transform:translate(-50%,-100%);margin-top:0;margin-left:-10px}.mec-tooltip .box.top:after{top:50%!important;right:100%!important}.mec-tooltip .box.top:before{left:50%!important;top:100%!important}.mec-tooltip .box.bottom{left:50%;top:auto;bottom:0;transform:translate(-50%,100%);margin-bottom:-20px;margin-left:-10px}.mec-tooltip .box.bottom:after{top:0!important;right:50%!important;background-color:#3a3f44!important}.mec-tooltip .box.bottom:before{left:50%!important;top:-7px!important;transform:translateX(-50%);background-color:#3a3f44!important}.mec-tooltip .box.left{left:auto;right:26px;top:50%;transform:translateY(-50%)}.mec-tooltip .box.left:before{right:0!important;left:auto!important;top:50%!important}form#mec_reg_fields_form input[type=radio]:before{content:'';display:inline-block;background:#fff;border-radius:18px;width:14px;height:14px;margin:-1px 0 0 -2px;cursor:pointer;border:2px solid #e1e7ed;box-shadow:0 2px 15px -3px rgba(69,77,89,.32)}form#mec_reg_fields_form input[type=radio]:checked:before{border:7px solid #ccecf4;background:#fff;box-shadow:0 3px 16px -3px #008aff;width:4px;height:4px}form#mec_reg_fields_form input[type=radio]{min-height:0;margin-right:6px}form#mec_reg_fields_form label{margin-right:20px}@media (min-width:1200px) and (max-width:1366px){.mec-tooltip .box{min-width:290px}.mec-tooltip .box h5{font-size:15px}.mec-tooltip .box .content{font-size:12px}}@media (max-width:1366px){.wns-be-container .wns-be-group-tab p{margin-top:0}}.mec-addons-notification-box-wrap .w-col-sm-12,.mec-cmsg-notification-box-wrap .w-col-sm-12{padding:0}.mec-addons-notification-box-wrap img{width:auto}.mec-addons-notification-box-image{width:555px;display:inline-block;vertical-align:top}.mec-addons-notification-box-content{width:calc(100% - 559px);display:inline-block}.mec-addons-notification-box-content p{margin-top:1%;line-height:1.5;font-size:16px}.mec-addons-notification-box-content .w-box-content{padding-top:0;padding-bottom:0}.mec-addons-notification-box-content ol{font-size:16px}.mec-addons-notification-box-content a{background:#38d5ed;color:#fff!important;padding:10px 26px;margin-top:5px;display:inline-block;border-radius:3px;text-transform:capitalize;font-size:16px;letter-spacing:.4px;transition:all .1s ease;font-weight:600;text-decoration:none}.mec-addons-notification-box-content a:hover{background:#000}.w-clearfix.w-box.mec-addons-notification-box-wrap span,.w-clearfix.w-box.mec-cmsg-2-notification-box-wrap span,.w-clearfix.w-box.mec-cmsg-notification-box-wrap span{right:0;left:unset;cursor:pointer;background:0 0;padding:0 16px}.w-clearfix.w-box.mec-addons-notification-box-wrap span i,.w-clearfix.w-box.mec-cmsg-2-notification-box-wrap span i,.w-clearfix.w-box.mec-cmsg-notification-box-wrap span i{font-size:28px;vertical-align:sub;color:#f2113e}.mec-custom-msg-notification-wrap,.wns-be-container .mec-addons-notification-wrap{padding:0;margin:0}.mec-custom-msg-notification-wrap .w-col-sm-12,.wns-be-container .mec-addons-notification-wrap .w-col-sm-12{padding:0}.wns-be-container .w-box{margin-top:0}.wns-be-container.mec-addons-notification-set-box{margin-right:15px;margin-top:50px;margin-bottom:27px}@media (max-width:1200px){.mec-addons-notification-box-content,.mec-addons-notification-box-image{width:100%;display:block}.mec-addons-notification-box-image{text-align:center}}@media (max-width:768px){.mec-addons-notification-box-image img{width:100%;height:auto}}.mec-details-addons-container{margin-top:20px}.mec-details-addons-wrap img{float:left;width:19%;margin-right:17px}.mec-details-addons-wrap{clear:both;margin-bottom:80px;display:block;position:relative}.mec-details-addons-wrap a{text-decoration:none}.mec-details-addons-wrap p{float:left;width:340px;margin-top:0;margin-bottom:30px}.mec-details-addons-title{font-weight:700}.mec-details-addons-title a{color:#444}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx{border-radius:10px!important;box-shadow:0 4px 38px rgba(0,0,0,.14)!important}body .crisp-client .crisp-1rjpbb7 .crisp-13qutdl,body .crisp-client .crisp-1rjpbb7 .crisp-13qutdl *,body .crisp-client .crisp-1rjpbb7 .crisp-9dgo7z,body .crisp-client .crisp-1rjpbb7 .crisp-9dgo7z *{font-family:proxima-nova,-apple-system,BlinkMacSystemFont,'Segoe UI',Catamaran,sans-serif!important}body .crisp-client .crisp-1rjpbb7 .crisp-145mbcr,body .crisp-client .crisp-1rjpbb7 .crisp-1jrqqbm:hover{background-color:#fff!important}body .crisp-client .crisp-1rjpbb7 .crisp-14u434g{border-color:#e7e8e9!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-1bkorcf .crisp-1vzg1qq{font-size:20px!important;width:14px!important;height:19px!important;opacity:.85}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-1bkorcf .crisp-1vzg1qq:hover{opacity:.99}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-1sps3eb .crisp-1vd2grm .crisp-12w4w1a{font-size:13px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-1sps3eb .crisp-1vd2grm .crisp-12w4w1a::-webkit-input-placeholder{color:#717273!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-from=visitor] .crisp-z89v5n .crisp-162m9xf{background-color:#008aff!important;color:#fff!important;box-shadow:none!important;border-radius:5px!important;padding:15px 25px 15px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-from=visitor] .crisp-z89v5n .crisp-162m9xf .crisp-1o2g4mc{color:#fff!important;font-size:13px!important;letter-spacing:.3px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv .crisp-z89v5n .crisp-162m9xf{background-color:#f1f2f3!important;border-radius:5px!important;padding:15px 25px 15px!important;box-shadow:none!important;color:#121314!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-type=audio] .crisp-z89v5n .crisp-162m9xf{background-color:#d1d7dc!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-from=operator] .crisp-z89v5n .crisp-1o2g4mc{color:#121314!important;-webkit-text-fill-color:#121314!important;font-size:13px!important;letter-spacing:.3px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv .crisp-mkirz6 .crisp-12qaym5 .crisp-39hskb{opacity:.4;margin-right:5px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv .crisp-mkirz6 .crisp-12qaym5 .crisp-ehr6mw{opacity:.68;font-size:12px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg{background-image:linear-gradient(125deg,#008aff -10%,#0066b1 100%)!important;height:110px!important;padding-top:35px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-rhv8pz .crisp-1uw6f17,body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-rhv8pz .crisp-85evuk,body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-rhv8pz .crisp-nu40j6{font-size:17px!important;line-height:28px!important;padding-top:10px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-kquevr .crisp-x94m06{background-color:#008aff!important;background-image:linear-gradient(125deg,#008aff -10%,#008af0 100%)!important;box-shadow:0 5px 34px -6px #008aff!important}body .crisp-client .crisp-1rjpbb7 .crisp-4oo1n4{background-color:transparent!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx[data-chat-status=ongoing] .crisp-1784wh6 .crisp-1xmtdlg .crisp-172kolj{margin-top:-10px!important}body .crisp-client .crisp-1rjpbb7[data-last-operator-face=false] .crisp-1rf4xdh .crisp-kquevr .crisp-x94m06 .crisp-16qgsyi .crisp-101bp3x[data-is-ongoing=false]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSI1NSIgdmlld0JveD0iMCAwIDU4IDU1Ij4NCiAgPGcgaWQ9ImNoYXQtc3ZncmVwby1jb21fMV8iIGRhdGEtbmFtZT0iY2hhdC1zdmdyZXBvLWNvbSAoMSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTEuNSkiPg0KICAgIDxwYXRoIGlkPSJQYXRoXzEiIGRhdGEtbmFtZT0iUGF0aCAxIiBkPSJNMjksMS41YzE2LjAxNiwwLDI5LDExLjY0MSwyOSwyNmEyNC4wMSwyNC4wMSwwLDAsMS00LjgsMTQuMzE4Yy40LDQuNzQ1LDEuNTQyLDExLjQyOCw0LjgsMTQuNjgyLDAsMC05Ljk0My0xLjQtMTYuNjc3LTUuNDYybC0uMDIyLjAwOWMtMi43NjQtMS44LTUuNTMyLTMuNjU2LTYuMS00LjEyNmExLDEsMCwwLDAtMS4zMy0uMjc3LDEuMDE3LDEuMDE3LDAsMCwwLS40ODkuODQ4Yy0uMDEuNjIyLjAwNS43ODQsNS41ODUsNC40MjFBMzEuOTE0LDMxLjkxNCwwLDAsMSwyOSw1My41Yy0xNi4wMTYsMC0yOS0xMS42NDEtMjktMjZTMTIuOTg0LDEuNSwyOSwxLjVaIiBmaWxsPSIjZmZmIi8+DQogICAgPGNpcmNsZSBpZD0iRWxsaXBzZV8xIiBkYXRhLW5hbWU9IkVsbGlwc2UgMSIgY3g9IjMiIGN5PSIzIiByPSIzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMiAyNC41KSIgZmlsbD0iIzAwOGFmZiIvPg0KICAgIDxjaXJjbGUgaWQ9IkVsbGlwc2VfMiIgZGF0YS1uYW1lPSJFbGxpcHNlIDIiIGN4PSIzIiBjeT0iMyIgcj0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYgMjQuNSkiIGZpbGw9IiMwMDhhZmYiLz4NCiAgICA8Y2lyY2xlIGlkPSJFbGxpcHNlXzMiIGRhdGEtbmFtZT0iRWxsaXBzZSAzIiBjeD0iMyIgY3k9IjMiIHI9IjMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQwIDI0LjUpIiBmaWxsPSIjMDA4YWZmIi8+DQogIDwvZz4NCjwvc3ZnPg0K)!important;height:31px!important;top:16px!important;left:14px!important}body .csh-category-item a h6{text-align:left}.mec-form-row.mec-syn-schedule{background:#fff;padding:20px;border:1px solid #eee;margin-bottom:10px;border-radius:3px}.mec-form-row.mec-syn-schedule p{padding-left:26px}.mec-form-row.mec-syn-schedule h2{margin-top:0}.mec-form-row.mec-syn-schedule h4{margin:10px 0}li.wns-be-group-menu-li.mec-settings-menu .mec-settings-submenu{position:absolute;top:-1px;right:-222px;width:220px;z-index:9;background:#fff;border:1px;border-style:solid;border-color:#e6e9eb;margin:0;overflow:visible;opacity:0;visibility:hidden;transition:all .23s ease;padding-top:8px;padding-bottom:12px;border-radius:0 2px 2px 0;box-shadow:0 2px 4px rgba(0,0,0,.03)}li.wns-be-group-menu-li.mec-settings-menu:hover>.mec-settings-submenu{visibility:visible;opacity:1}.mec-settings-menu .mec-settings-submenu:before{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-15px;top:14px;border-right-color:#d6d9db;right:0}.mec-settings-menu .mec-settings-submenu:after{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-14px;top:14px}.wns-be-sidebar .mec-settings-menu .mec-settings-submenu a{background:#fff;color:#666c75;opacity:1;font-size:13px;font-weight:400;padding:6px 4px 5px 26px}.wns-be-sidebar .mec-settings-menu .mec-settings-submenu a:hover{color:#000;background:#f7f8f9}.mec-form-row.mec-skin-countdown-date-format-container input[type=text],.mec-form-row.mec-skin-grid-date-format-container input[type=text],.mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-skin-options-container input[type=text]{max-width:unset}.wn-mec-select{width:32.33333333%!important;clear:unset!important}.wn-mec-select{-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:3px;border:1px solid #ddd;margin-bottom:8px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;box-shadow:0 3px 13px -5px rgba(0,0,0,.1),inset 0 1px 2px rgba(0,0,0,.07)}.wn-mec-select:hover{border-color:#dbdbdb}.wn-mec-select.open .list{overflow:unset;width:100%;margin:0}.wn-mec-select .list{background-color:#fff;border-radius:2px;box-shadow:0 2px 33px -2px rgba(0,0,0,.2),inset 0 1px 2px rgba(0,0,0,.07);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9}.wn-mec-select{-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:5px;border:solid 1px #e8e8e8;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:14px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:auto}.wn-mec-select:hover{border-color:#dbdbdb}.wn-mec-select:after{border-bottom:2px solid #999;border-right:2px solid #999;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:12px;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.wn-mec-select.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.wn-mec-select.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.wn-mec-select.disabled{border-color:#ededed;color:#999;pointer-events:none}.wn-mec-select.disabled:after{border-color:#ccc}.wn-mec-select.wide{width:100%}.wn-mec-select.wide .list{left:0!important;right:0!important}.wn-mec-select.right{float:right}.wn-mec-select.right .list{left:auto;right:0}.wn-mec-select.small{font-size:12px;height:36px;line-height:34px}.wn-mec-select.small:after{height:4px;width:4px}.wn-mec-select .list{background-color:#fff;border-radius:5px;box-shadow:0 0 0 1px rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9}.wn-mec-select .list:hover .option:not(:hover){background-color:transparent!important}.wn-mec-select .option{cursor:pointer;font-weight:400;list-style:none;min-height:40px;outline:0;text-align:left;position:relative;font-size:12px!important;padding:1px 12px!important;margin:0!important;line-height:28px!important;min-height:28px!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wn-mec-select .option .wn-hover-img-sh img{position:absolute;padding:3px;top:-1px;left:100%;box-shadow:0 4px 42px -5px rgba(0,0,0,.16);visibility:hidden;opacity:0;border:1px solid #e3e3e3;border-radius:2px;z-index:99999999;background:#fff}.wn-mec-select .option:hover .wn-hover-img-sh img{visibility:visible;opacity:1}.wn-mec-select .option.focus,.wn-mec-select .option.selected.focus,.wn-mec-select .option:hover{background-color:#f6f6f6}.wn-mec-select .option.selected{font-weight:700}.wn-mec-select .option.disabled{background-color:transparent;color:#999;cursor:default}.no-csspointerevents .wn-mec-select .list{display:none}.no-csspointerevents .wn-mec-select.open .list{display:block}.mec-custom-nice-select ul.list li.option{width:30%!important;float:left!important;min-height:135px!important;height:135px;margin:1.66%!important;box-sizing:border-box;text-align:center;padding:10px!important;border-radius:8px;border:1px solid transparent;box-shadow:none;background:#fff0!important}.mec-custom-nice-select ul.list li.option:hover{box-shadow:0 1px 8px rgba(0,0,0,.025),0 0 0 1px #f3f4f5}.mec-custom-nice-select .list .option:hover,.mec-custom-nice-select ul.list li.option:hover{background:#fff!important}.mec-custom-nice-select .list:hover .option:not(:hover),.mec-custom-nice-select ul.list:hover li.option{background:#fff!important}.mec-custom-nice-select ul.list{min-width:600px!important;padding:20px 10px!important;background:#fcfbfd;border:1px solid #e9e9e9;box-shadow:0 1px 4px rgba(0,0,0,.05)}.mec-custom-nice-select ul.list li.option.selected{border:1px solid #40d9f16b;box-shadow:0 1px 8px -3px #40d9f152 inset;color:#00cae6;padding:12px 0 0 0!important}.mec-custom-nice-select .wn-img-sh img{margin:4px 0 1px 1px;line-height:1;max-width:68px;max-height:56px;filter:grayscale(1);-webkit-filter:grayscale(1);transition:all .22s ease;-webkit-transition:all .22s ease;-moz-transition:all .22s ease;-ms-transition:all .22s ease;-o-transition:all .22s ease}.wn-mec-select .option.focus .wn-img-sh img,.wn-mec-select .option.selected.focus .wn-img-sh img,.wn-mec-select .option:hover .wn-img-sh img{background-color:#f6f6f6;filter:grayscale(0);-webkit-filter:grayscale(0)}@media (max-width:768px){.wn-mec-select{width:45%!important}.mec-custom-nice-select ul.list{margin-left:-24px!important;min-width:404px!important}.mec-custom-nice-select ul.list li.option{width:46.6%!important}.wn-hover-img-sh{display:none}}@media (max-width:480px){.wn-mec-select{width:100%!important}.mec-custom-nice-select ul.list{min-width:337px!important}}@media (max-width:320px){.mec-custom-nice-select ul.list li.option{width:100%!important}.mec-custom-nice-select ul.list{min-width:298px!important}}.mec-sed-methods li{line-height:28px;padding-left:38px;position:relative}.mec-sed-methods li:before{margin-right:0}.mec-sed-methods li:before{border-radius:18px}.mec-custom-nice-select ul.list li .wn-mec-text:after,.mec-sed-methods li:before{content:'';position:absolute;display:inline-block;background:#fff;border-radius:2px;width:12px;height:12px;margin:-1px 0 0 -1px;cursor:pointer;border:2px solid #e1e7ed;border-radius:50%}.mec-custom-nice-select ul.list li .wn-mec-text{position:relative;padding-top:0;padding-bottom:28px}.mec-custom-nice-select ul.list li .wn-mec-text:after{left:calc(50% - 7px);top:auto;bottom:1px}.mec-custom-nice-select ul.list li .wn-img-sh{line-height:1}.mec-sed-methods li:before{left:9px;top:calc(50% - 7px)}.mec-custom-nice-select ul.list li.option.selected .wn-mec-text:after,.mec-sed-methods li.active:before{width:4px;height:4px;border:7px solid #07bbe9;background:#fff;box-shadow:0 3px 16px -3px #07bbe9}#menu-posts-mec-books .wp-menu-image img,#toplevel_page_mec-intro .wp-menu-image img{width:18px!important;padding-top:7px!important}.mec-add-booking-tabs-wrap,.mec-add-event-tabs-wrap,.mec-create-shortcode-tabs-wrap{display:flex;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox}.mec-add-booking-tabs-left,.mec-add-event-tabs-left{min-width:200px}@media (max-width:1366px){.mec-add-booking-tabs-left,.mec-add-event-tabs-left{min-width:137px}}.mec-add-booking-tabs-left,.mec-add-event-tabs-left,.mec-create-shortcode-tabs-left{flex:1}.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{flex:6}a.mec-add-booking-tabs-link,a.mec-add-event-tabs-link,a.mec-create-shortcode-tabs-link{display:block}.mec-booking-tab-content,.mec-create-shortcode-tab-content,.mec-event-tab-content{display:none;transition:all .3s ease}.mec-booking-tab-content.mec-tab-active,.mec-create-shortcode-tab-content.mec-tab-active,.mec-event-tab-content.mec-tab-active{display:block}.mec-add-booking-tabs-wrap,.mec-add-event-tabs-wrap{background:#fff;margin:-6px -12px -12px}.mec-create-shortcode-tabs-wrap{margin:-30px -22px -42px}.mec-add-booking-tabs-left,.mec-add-event-tabs-left,.mec-create-shortcode-tabs-left{background:#f7f8f9}.mec-add-booking-tabs-left a,.mec-add-event-tabs-left a,.mec-create-shortcode-tabs-left a{display:block;position:relative;outline:0;padding:13px 4px 13px 20px;background:#e3e5e7;background:0 0;border:solid;border-width:1px 0 1px 0;border-color:transparent;color:#3f454a;font-size:13px;font-weight:600;text-decoration:none;border-radius:0;transition:all .2s ease}.mec-add-booking-tabs-left a:first-of-type,.mec-add-event-tabs-left a:first-of-type,.mec-create-shortcode-tabs-left a:first-of-type{border-top:none}.mec-add-booking-tabs-left a:hover,.mec-add-event-tabs-left a:hover,.mec-create-shortcode-tabs-left a:hover{background:#fff;color:#07bbe9}.mec-add-booking-tabs-left a:focus,.mec-add-event-tabs-left a:focus,.mec-create-shortcode-tabs-left a:focus{box-shadow:none;outline:unset}.mec-add-booking-tabs-left a.mec-tab-active,.mec-add-event-tabs-left a.mec-tab-active,.mec-create-shortcode-tabs-left a.mec-tab-active{background:#ecf9fd;color:#07bbe9;border-color:#ccecf4;position:relative;padding-left:22px}.inside div div>a.mec-tab-active:after,.inside div div>a.mec-tab-active:before{position:absolute;z-index:9999;content:' ';height:0;width:0;border:8px solid transparent;border-right-color:#fff;right:-1px;top:13px}.inside div div>a.mec-tab-active:before{border-right-color:#d7d8d9;right:0}.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding:0 30px 40px;border-left:1px solid #e2e2e2}.mec-booking-tab-content.mec-tab-active,.mec-create-shortcode-tab-content.mec-tab-active,.mec-event-tab-content.mec-tab-active{animation:fadeEffect2 .31s}@media (max-width:1366px){.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding:0 15px 20px}.mec-form-row select{min-width:60px}}@media (min-width:1199px) and (max-width:1280px){.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding:0 0 0 10px}#mec_meta_box_hourly_schedule_days{padding:0 40px 0 0}#mec_meta_box_hourly_schedule_days .mec-form-row.mec-box{margin-right:-40px}#mec_comment,#mec_cost,#mec_countdown_method,#mec_event_timezone,#mec_public,#mec_repeat_type{min-width:220px;width:220px}#mec_meta_box_hourly_schedule_days .mec-box.mec-form-row input[type=text]{max-width:120px}.mec-form-row .mec-time-picker select{min-width:60px}#mec_countdown_method,#mec_repeat_type{min-width:220px;width:220px}#mec_exceptions_in_days_container .mec-col-4{width:25%}#mec_exceptions_in_days_container .mec-col-3{width:50%}#mec_exceptions_in_days_container .mec-col-5{width:20%}#mec_exceptions_in_days_container input[type=text]{width:95%}#mec_repeat_certain_weekdays_container label:not(.mec-col-3){display:block;padding-left:25%}}@media (max-width:1023px){.post-type-mec-events h4,.post-type-mec_calendars .mec-meta-box-fields h3{margin-top:20px}.post-type-mec-events .mec-form-row{padding-bottom:20px}.post-type-mec-events .mec-form-row .mec-form-row{padding:0}.post-type-mec-events .mec-form-row .mec-col-1,.post-type-mec-events .mec-form-row .mec-col-10,.post-type-mec-events .mec-form-row .mec-col-11,.post-type-mec-events .mec-form-row .mec-col-12,.post-type-mec-events .mec-form-row .mec-col-2,.post-type-mec-events .mec-form-row .mec-col-3,.post-type-mec-events .mec-form-row .mec-col-4,.post-type-mec-events .mec-form-row .mec-col-5,.post-type-mec-events .mec-form-row .mec-col-6,.post-type-mec-events .mec-form-row .mec-col-7,.post-type-mec-events .mec-form-row .mec-col-8,.post-type-mec-events .mec-form-row .mec-col-9{display:block;width:100%;margin:20px 0 0 0;max-width:285px}.post-type-mec-events .mec-add-booking-tabs-left,.post-type-mec-events .mec-add-event-tabs-left{min-width:180px}.post-type-mec-events .mec-add-booking-tabs-left a,.post-type-mec-events .mec-add-event-tabs-left a,.post-type-mec-events .mec-create-shortcode-tabs-left a{padding-left:10px}#mec_repeat_type,.post-type-mec-events #mec_settings_fes_thankyou_page_url,.post-type-mec-events .mec-form-row .mec-col-4 input[type=number],.post-type-mec-events .mec-form-row .mec-col-4 input[type=text],.post-type-mec-events .mec-form-row .mec-col-4 select,.post-type-mec-events .mec-form-row .mec-col-4 textarea{width:100%;max-width:255px}#mec-exceptional-days .mec-certain-day>div,#mec_exceptions_in_days_container .mec-certain-day>div{width:100%;max-width:255px;padding:12px;margin:20px 10px 0 0;border-radius:8px}.mec-certain-day .mec-in-days-day,.mec-certain-day>div .mec-not-in-days-day{line-height:21px;font-size:10px}#mec_repeat_certain_weekdays_container label{display:block;margin:20px 0 20px 0}}@media (max-width:640px){.mec-add-booking-tabs-wrap,.mec-add-event-tabs-wrap,.mec-create-shortcode-tabs-wrap{display:block}.post-type-mec-events .mec-add-booking-tabs-left,.post-type-mec-events .mec-add-event-tabs-left{min-width:100%;width:100%!important;display:block!important;float:unset;margin:0;flex:unset;height:auto}.post-type-mec-events .mec-add-booking-tabs-right,.post-type-mec-events .mec-add-event-tabs-right,.post-type-mec-events .mec-create-shortcode-tabs-right{display:block;min-width:100%;width:100%;margin:0;flex:unset}.post-type-mec-events .mec-add-booking-tabs-left a,.post-type-mec-events .mec-add-event-tabs-left a,.post-type-mec-events .mec-create-shortcode-tabs-left a{font-size:14px;padding:14px 10px 14px 15px;line-height:1.2;letter-spacing:0}.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding-left:10px;padding-right:10px}#mec_tickets .mec-box{max-width:290px}}@keyframes fadeEffect2{from{opacity:0;transform:translateX(11px)}to{opacity:1;transform:translateX(0)}}.mec-form-row .mec-col-8 label,.mec-form-row .mec-col-9 label{padding-right:20px}@media (min-width:860px) and (max-width:1280px){.mec-form-row .mec-col-9 label{padding-right:12px}}#mec-event-data .mec-form-row label{margin-right:14px}.mec-form-row input[type=date]::-webkit-calendar-picker-indicator{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QjQ2N0QwQjQ4MzExRUE4RDdFREZDRTUxMUVERTM5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA0QjQ2N0QxQjQ4MzExRUE4RDdFREZDRTUxMUVERTM5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDRCNDY3Q0VCNDgzMTFFQThEN0VERkNFNTExRURFMzkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDRCNDY3Q0ZCNDgzMTFFQThEN0VERkNFNTExRURFMzkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6WW71PAAAGIklEQVR42qRXS28bVRQ+586Mx3ZC1DSpVFojRU2CqMIGiSKxAVoUduzoDjYIlhU/Av4AYsdjRXfkD0Cjom6QqIqEqEhRo1aRkkZpkpY6j7GduQ++c2dsj1+BlInGztxvzj3nfudpPlM/otc2W2QjJmU0rZ0uUytUpBxNnN9p/FYhctF0+XUi2nPGkX7WJOfwxNRzqXxtbfI4eUvm7xY1o4iiI0d/vFiisL2BgTAz0yvbCRnLhP0uNEtqrgUseZRcwPPvJewaldSA8o48vo+Tj0U+CnrkOgZwvkEzEmGm1PF9fzK5Y3U/YlllsjRUv19zXl7571HyAjooc/kmYerpcmPO0Mfa0SyxEtji44ynOjPuayjecd7M46/MQOdGyIs9ThnzMLD0XRrwIdeetmoLm41fWiG95Ar792tydLLrOPkAlpW027hbG3+T37lf/5EtvYcXUuhfBjWp9wHRBO63c5lbEkQj2B92uaHy4l2EAQ66GFgbmiD4id/9q661ooAtf8rsvmUEilAHEqcgtJvvNq3YPTkJA8PksT9ZFxD8+4my9pvAOqOMxIMoJHfPZoJkJNiYat3duOac6hxt1N3GR8lnt0O623s+c2CVZEGaZ8Oks1mElvxu7hGYaQjpHLpH3q/YFQE7Oh5Y6gFTaHhAXlasxmoWpZO5L9Ow4DTv+UBZBAkWNO+CqhkbSOzaXWWyzY+n3WcACdVscnklz5CHYsmv1L/RyUJ/cs7zdT3Ey8pTgw/QgNNuS4XjNMvffwvBNmwDH+pdeZ3J+1qDdW15vS0iBhjZWzF9ge8HWl7zNLluYhP/9/jvFANXyL+ufF4jZvOCZsK8isp77+sixf10n7QQjJT39bBtjzdA5chtLG61n7kgk6UvDy29z4HL4c/ifkN0hYV+cA3Bc7stKAfossgSSF06+3HOu8QovE8eThDlv4pu1TbUOpqySDNUKMSDQRIo6QgVRHbFcID1mCITUGgNKLI9uBbcCC59xUi+DsiHBq0XOLb3utqOUYV+LglH9XJASRAsRNqt4xHVj59Exqw3AlrYi0PaiwNqBKoX12Y9iQSP/GkD4xZC0yt/GPFCvZzhUBoMtmPftRwMEEtpupy2auzadLraXtlNoXLhKQYLbjrWRx0cXNf24wxPSmWw5aZPNXSNOi5ytXqZpjTwSqs3PsJi0I61LG29EFG9GtyaeqgvxU17TrAkDjbvnq/eKcTYrbcemi5eHoI/OLgUt7r4n+cqd04llmZ3mjBSDQ4kYtERLLz4OKGt0xGKA9+RgiSGSRV7+UlCVvka72lEvHRx04vLGW2f/PzTBk3VtddRrGlhMXVaIdME5sLJ3ZQOTPQBNqj58uzcxsXtZEkqmQ7IB9ihLeA2x6FQqyG4cRuvbh8uNZSigzBCALhBBtrjkwjjQItQ+kPXWY6eBuEi/lmOlC8kvTh38ZLH3QC+y+GiIl4OqbeZ9RggQZgcVIXe1ep48jPkz/oGw7x1yoytIq1o59AH1Wp1rNHBSXA9tip87zYyvFzpx8dXLVTvqySvhUMNsN6+1ERrrNQVQs57H4K6cR35GrapffICb16RpO7glOHrrQyvjHXxQHB0/j1ugV0LpcFwAzS4n6hiZoIvEp2znwcSigfGJhxpMmseLc0dvFjcvRuLvdEdNyl2+0DOALwE863TM/jnJqhfQa6v4AfJzUNOZ/aVlhqIUpoO4PuU4XFsqFrSM866m9hxBXSvWPx/wHpGqA96Vfa5AH9HnMjYNI96dbkwaVzcCw/nAK+xHzp4Hp89eD04nENzX6v4cYrnrVWXXQF/Fh7MQfWasmogCNsmaT+qwD0g4gYsuYqnWlboeKMUumUr86LycxdwdRUb+zQTvAzcgL0jLXFkbkQUX5UKyFTE2bvZD0a5B8SAUu6dPf+7AInssja2VPSZRud2Ni/NKse5M2VQqkO4BxSzZLmV8Wwpa8S9OHsK3X6+Lc7F/JidOwvkc7z3FbIgzd7smy1c35TEg7NGrg6Ucs88UsCliOLHH1+Td8HYFl++W//QxfT9iSee/3lJWy5X6aMwtK3rTVWJUU4/g4GzdLLp73ku8cEDxNmXUZhc/0eAAQAVgX0RHvvILQAAAABJRU5ErkJggg==);background-position:center;background-size:cover;width:10px;height:12px;display:block}.mec-attendees-wrapper select,.mec-calendar-metabox .wn-mec-select,.mec-form-row input[type=date],.mec-form-row input[type=email],.mec-form-row input[type=number],.mec-form-row input[type=tel],.mec-form-row input[type=text],.mec-form-row input[type=url],.mec-form-row select,.mec-form-row textarea,.mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-occurrences-wrapper input[type=date],.mec-occurrences-wrapper input[type=email],.mec-occurrences-wrapper input[type=number],.mec-occurrences-wrapper input[type=tel],.mec-occurrences-wrapper input[type=text],.mec-occurrences-wrapper input[type=url],.mec-occurrences-wrapper select,.mec-occurrences-wrapper textarea{border:none;background-color:#f7f8f9;border-radius:5px;height:38px;line-height:38px;padding-left:10px;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%)}.mec-calendar-metabox .wn-mec-select,.mec-form-row select,.post-type-mec-events .mec-form-row select,.post-type-mec_calendars .mec-form-row select,.wns-be-main .mec-form-row select{appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;min-height:34px;line-height:34px;background-color:#f7f8f9;border-radius:2px;padding-left:8px;box-shadow:0 1px 3px rgb(0 0 0 / 2%);transition:all .23s ease;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDE3IDE3Ij4KPGc+CjwvZz4KCTxwYXRoIGQ9Ik0xNi4zNTQgNS4wNzVsLTcuODU1IDcuODU0LTcuODUzLTcuODU0IDAuNzA3LTAuNzA3IDcuMTQ1IDcuMTQ2IDcuMTQ4LTcuMTQ3IDAuNzA4IDAuNzA4eiIgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:26px 10px;background-position:right center;min-width:160px;border:1px solid #e6e9eb}.post-type-mec-events .mec-form-row .mec-time-picker select,.post-type-mec-events .wn-ticket-time select{min-width:60px;margin-bottom:10px}.wns-be-main .mec-col-4 select{min-width:unset}.mec-form-row .nice-select{background-image:unset}.mec-calendar-metabox .wn-mec-select.open .list{border-radius:0 0 2px 2px;box-shadow:0 0 0 1px #ddd,0 2px 6px rgba(0,0,0,.07)}.mec-calendar-metabox .mec-custom-nice-select.open ul.list{border-radius:5px;box-shadow:0 2px 6px rgb(0 0 0 / 3%);margin-left:0!important;transform:translateX(-50%);left:50%}.mec-custom-nice-select ul.list li.option.selected .wn-mec-text:after{border:6px solid #40d9f1;box-shadow:0 3px 16px -3px #40d9f1}.m-e-calendar_page_MEC-settings .mec-form-row input+span.mec-tooltip,.m-e-calendar_page_MEC-settings .mec-form-row select+span.mec-tooltip{bottom:10px}.mec-form-row label+span.mec-tooltip{bottom:10px}.mec-form-row textarea+span.mec-tooltip{bottom:auto;vertical-align:top;top:12px}.mec-form-row span+span.mec-tooltip{bottom:0;vertical-align:middle}.mec-form-row .tooltip-move-up span+span.mec-tooltip i{margin-top:-40px}.mec-form-row .mec-col-8 input[type=text],.mec-form-row .mec-col-8 select,.mec-form-row .mec-col-8 span.mec-archive-skins{vertical-align:top}.mec-form-row .mec-col-8 span.mec-archive-skins input[type=text]{max-width:225px}.mec-form-row input:disabled{opacity:.6;background:#f6f6f6}.wns-be-group-tab h5{font-size:16px;font-weight:600;color:#444;margin:0 0 40px 0}.mec-form-row textarea{height:auto;margin-bottom:0;min-height:60px}.mec-form-row .wp-picker-container input[type=text].wp-color-picker{height:25px;vertical-align:top;width:4rem;margin:-10px 0 0 0!important}.mec-form-row .wp-picker-container label{margin:0}.mec-image-select-wrap li span:hover{border-color:#fff;box-shadow:0 1px 8px rgba(0,0,0,.12)}.mec-message-categories li.mec-acc-label:after{content:'\e604';font-family:simple-line-icons;speak:none;font-style:normal;font-weight:400;display:block;font-size:13px;color:#999;position:absolute;right:27px;top:26px}.mec-message-categories>li.mec-acc-label[data-status=open]:after{content:'\e607';color:#07bbe9}.mec-message-categories>li.mec-acc-label[data-status=open]{color:#07bbe9}.mec-message-categories>li.mec-acc-label:last-of-type{border-bottom:none}.mec-message-categories>li.mec-acc-label[data-status=open]{border-bottom:1px solid #e6e6e6}.mec-form-row ul.mec-message-categories{box-shadow:0 2px 16px rgba(0,0,0,.03);border-radius:5px;overflow:hidden;margin-top:30px;background:#f5f5f5;border:2px solid #e6e6e6;max-width:700px}.mec-form-row ul.mec-message-categories li ul{padding:10px 40px 40px;margin:0 -30px 0;background:#fff;box-shadow:inset 0 6px 7px -2px rgb(0 0 0 / 4%);border-top:1px solid #eee;cursor:default}.mec-form-row ul.mec-message-categories ul label{margin:25px 8px 7px;font-size:14px;color:#888;cursor:default}#mec_calendar_display_options .mec-tooltip{bottom:1px}.mec-calendar-metabox .mec-form-row input[type=checkbox],.mec-meta-box-fields .mec-form-row input[type=checkbox]{margin-right:6px}#mec_add_fee_button,#mec_add_ticket_variation_button,#mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button,#taxes_option #mec_fees_list .mec-form-row .button,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button,.mec-export-settings,.mec-import-settings,.mec-meta-box-fields .mec-form-row .button:not(.wp-color-result),.mec-occurrences-wrapper .button:not(.wp-color-result){border-radius:25px;border:1px solid #d1e5ec;text-shadow:none;padding:0 16px;height:35px;letter-spacing:.2px;margin-right:5px;background:#fff;color:#07bbe9;box-shadow:0 1px 5px -1px rgb(0 0 0 / 5%);transition:all .2s ease}.mec-export-settings,.mec-import-settings{padding:11px 16px;text-decoration:none}#mec_add_fee_button:hover,#mec_add_ticket_variation_button:hover,#mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button:hover,.mec-meta-box-fields .mec-form-row .button:not(.wp-color-result):hover,.mec-occurrences-wrapper .button:not(.wp-color-result):hover{background:#f0f9fc}#taxes_option #mec_fees_list .mec-form-row .button,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button{margin:0}#mec-hourly-schedule .mec-form-row .mec-col-1 .button,#mec-hourly-schedule .mec-form-row.mec-box .button,#taxes_option #mec_fees_list .mec-form-row .button,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button{color:#ea6485;border-color:#ea6485}#mec-hourly-schedule .mec-form-row .mec-col-1 .button:hover,#mec-hourly-schedule .mec-form-row.mec-box .button:hover,#taxes_option #mec_fees_list .mec-form-row .button:hover,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button:hover{background:rgb(234 100 133 / .1)}#mec-hourly-schedule .mec-hourly-schedule-form-speakers{margin-top:20px}#mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button{margin-top:12px}#mec_meta_box_downloadable_file_options input[type=file]{max-width:166px;text-align:center;transition:all .2s ease;border-radius:5px!important;border:2px dashed #b8e9f3;margin-bottom:12px;height:44px;text-decoration:none;padding:0 15px 1px;text-transform:none;letter-spacing:0;font-weight:600;color:#40d9f1;box-shadow:0 2px 6px -3px #cfeff5}#mec_meta_box_downloadable_file_options input[type=file]:hover{box-shadow:0 2px 16px -3px #cfeff5}#mec_meta_box_downloadable_file_options input[type=file]::-webkit-file-upload-button{visibility:hidden;width:1px;height:38px}#mec_meta_box_downloadable_file_options input[type=file]::-moz-file-upload-button{visibility:hidden;width:1px;height:38px}.mec-attendees-wrapper .mec-attendees-list{margin:22px 0 0}.mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child{background:#fff;border-bottom:1px solid #cfeff5}.mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child div span{line-height:1;font-weight:600}.mec-attendees-wrapper .mec-attendees-list .w-clearfix{display:flex;background:#f8feff;padding:10px;text-align:left}.mec-attendees-wrapper .mec-attendees-list .w-clearfix .w-col-xs-3:first-child{width:100%;max-width:30%;padding:0}.mec-attendees-wrapper .mec-attendees-list .w-clearfix .w-col-xs-3 a{text-decoration:unset}.mec-attendees-wrapper .mec-attendees-list .w-clearfix:nth-child(odd){background:#fff}#mec-read-more .mec-form-row span.mec-tooltip{top:2px;left:-4px}#mec-occurrences .mec-occurrences-list{margin-top:12px}#mec-occurrences .mec-occurrences-list h3{margin-top:0}#mec-occurrences .mec-occurrences-list .mec-form-row{margin-bottom:0}#mec-occurrences .mec-occurrences-list .mec-form-row label{line-height:40px;width:120px;display:inline-block;margin:0}#mec-occurrences .mec-occurrences-list .mec-form-row .event-status-schema label{width:auto;min-width:160px}#mec-occurrences .mec-occurrences-list .mec-form-row .event-status-schema p{border:unset;padding-left:0;margin-left:0}#mec-search-settings{border-radius:21px;min-height:32px;box-shadow:inset 0 1px 2px rgba(0,0,0,.06);margin-right:10px;color:#7c838a;font-size:13px;width:260px;background:#f7f8f9;border:none;z-index:1;transition:all .18s ease;outline:0;line-height:36px;padding:2px 10px 1px 38px}#mec-search-settings:focus{background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.07),0 0 0 1px #e6e6e6;width:270px}.mec-search-settings-wrap{display:inline-block;position:relative}.mec-search-settings-wrap i{position:absolute;left:16px;top:13px;font-size:13px;color:#7e8c98;display:block;z-index:2}#mec-search-settings::-webkit-input-placeholder{color:#7c838a}#mec-search-settings::-moz-placeholder{color:#7c838a}#mec-search-settings:-ms-input-placeholder{color:#7c838a}#mec-search-settings:-moz-placeholder{color:#7c838a}#wns-be-content .noresults label,#wns-be-content .results .results .noresults label{color:#000}#wns-be-content .results .results .results label,#wns-be-content .results label,#wns-be-content ul li.enable,#wns-be-content ul li.enable label{color:#07bbe9}#wns-be-content ul li.disable,#wns-be-content ul li.disable label{color:#e7e7e7}.ui-datepicker.ui-widget{border:1px solid #e8e8e8;box-shadow:0 1px 9px rgba(0,0,0,.12)}.ui-datepicker.ui-widget select{font-weight:600;font-size:12px;border-radius:2px;padding:2px 10px;margin:1px 3px 5px}.ui-datepicker.ui-widget table{border-spacing:2px}.ui-datepicker.ui-widget td,.ui-datepicker.ui-widget tr{padding:0;background:0 0!important}.ui-datepicker.ui-widget td a{color:#777;font-weight:600;width:30px;height:30px;line-height:30px;display:inline-block;border-radius:33px;padding:0;background:#fff;transition:all .2s ease}.ui-datepicker.ui-widget td a.ui-state-active,.ui-datepicker.ui-widget td a:hover{background:#40d9f1;color:#fff}.ui-datepicker.ui-widget .ui-datepicker-next,.ui-datepicker.ui-widget .ui-datepicker-prev{color:#40d9f1;width:30px;height:30px;line-height:30px;display:inline-block;text-align:center;border-radius:33px;background:#ecfcff;transition:all .2s ease}.ui-datepicker.ui-widget .ui-datepicker-next:hover,.ui-datepicker.ui-widget .ui-datepicker-prev:hover{background:#fff;box-shadow:0 0 7px -3px rgba(0,0,0,.4)}#mec-wrap{width:92%;margin:20px auto;max-width:1384px}#mec-wrap h2.nav-tab-wrapper{margin-bottom:0;position:relative;z-index:8;padding:0;border-radius:5px 5px 0 0;border:none;margin-top:35px;clear:both;background:#fff;box-shadow:0 1px 0 0 #ededed}#mec-wrap .nav-tab-wrapper .nav-tab{position:relative;padding:28px 22px;border:none;margin:0;background:#fff;font-size:13px;color:#444;outline:0;letter-spacing:-.1px;box-shadow:none}#mec-wrap .nav-tab-wrapper .nav-tab:hover{color:#07bbe9}#mec-wrap .nav-tab-wrapper .nav-tab:after{content:'';display:inline-block;width:1px;height:30%;position:absolute;right:0;top:35%;background:#e9e9e9}#mec-wrap .nav-tab-wrapper .nav-tab-active,#mec-wrap .nav-tab-wrapper .nav-tab-active:focus,#mec-wrap .nav-tab-wrapper .nav-tab-active:focus:active,#mec-wrap .nav-tab-wrapper .nav-tab-active:hover{background:#ecf9fd;outline:0;margin-left:-1px;z-index:2;border:1px solid #ccecf4;color:#07bbe9;border-radius:5px;margin-bottom:-1px}#mec-wrap .nav-tab-wrapper .nav-tab-active:after{content:'';position:absolute;display:block;background:0 0;top:auto;height:auto;bottom:-20px;left:50%;margin-left:-10px;width:0;border-width:10px;border-style:solid;border-color:#ecf9fd transparent transparent}#mec-wrap .mec-container{padding:25px 40px 40px;box-shadow:0 3px 10px -4px rgba(0,0,0,.1)}#wpwrap .mec-button-primary{box-shadow:0 0 0 4px #e4ffe6;text-shadow:none;margin-right:5px;background:#64e385;color:#fff;border:none;cursor:pointer;padding:2px 22px;border-radius:22px;font-weight:500;line-height:39px}#wpwrap .mec-button-primary:hover{box-shadow:0 0 0 4px rgb(0 0 0 / 10%);background:#4d5051;border-color:#4d5051;cursor:pointer}#mec-wrap .nav-tab-wrapper .nav-tab-active:before{content:'';position:absolute;display:block;background:0 0;top:auto;height:auto;bottom:-24px;left:50%;margin-left:-12px;width:0;border-width:12px;border-style:solid;border-color:#ccecf4 transparent transparent}.ui-datepicker.ui-widget select{border-color:#e7e8e9}.wn-p-t-right{min-width:300px;max-width:400px;display:inline-block;top:-8px;left:50%;margin-top:0;transform:translate(-50%,-100%);padding:0;background-color:#535a61;color:#fff;font-weight:300;font-size:14px;letter-spacing:.5px;line-height:1.5;position:absolute;z-index:99999999;box-sizing:border-box;border-radius:6px;box-shadow:0 4px 45px -8px #444b50;visibility:hidden;opacity:0;transition:opacity .23s;padding:20px;border-radius:8px}.wn-p-t-right i{position:absolute!important;top:100%;right:50%;margin-top:-6px!important;margin-right:-6px!important;width:12px;height:24px;overflow:hidden;transform:rotate(-90deg)}.wn-p-t-right i:after{content:'';position:absolute;width:12px;height:12px;left:0;top:50%;transform:translate(50%,-50%) rotate(-45deg);background-color:#535a61;box-shadow:0 8px 9px -4px #535a61}.wn-p-t-right .wn-p-t-text-content h5{color:#fff;font-size:17px;font-weight:600;margin:-20px;padding:15px 0;text-align:center;margin-bottom:10px;background:#3a3f44;border-bottom:1px solid #32363a;border-radius:6px 6px 0 0}.mec-addon-box-footer a:hover .wn-p-t-right{visibility:visible;opacity:1}#mec_organizer_user+.select2-container,#mec_speaker_user+.select2-container{min-width:224px!important}.mec-add-event-tabs-wrap .select2-container,.mec-create-shortcode-tab-content .select2-container{min-height:38px;height:auto;box-sizing:border-box;padding:0 6px 0 10px;border-radius:5px;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%);background-color:#f7f8f9;color:#32373c;outline:0;transition:50ms border-color ease-in-out;min-width:200px;width:100%!important;max-width:290px!important;font-size:14px}.mec-add-event-tabs-wrap .select2-selection,.mec-create-shortcode-tab-content .select2-selection{border:none;background:0 0;padding-top:3px;width:100%;height:100%}.mec-add-event-tabs-wrap .select2-container--default.select2-container--focus .select2-selection,.mec-create-shortcode-tab-content .select2-container--default.select2-container--focus .select2-selection{border:none!important;outline:0}.mec-add-event-tabs-wrap .select2-container--default .select2-selection--single .select2-selection__arrow,.mec-create-shortcode-tab-content .select2-container--default .select2-selection--single .select2-selection__arrow{top:5px;right:4px}.fs-webform-container div .fserv-container{width:100%!important;max-width:none!important;min-height:208px!important;box-shadow:0 1px 6px rgb(0 0 0 / 1%)!important;border-radius:11px!important;padding:0!important;margin-bottom:0!important;margin-top:30px!important;background:url(https://webnus.net/modern-events-calendar/wp-content/uploads/2019/11/illustration.svg) no-repeat top right;background-size:310px}.fserv-container .fserv-form-name{font-weight:600!important;position:relative!important;font-size:20px!important;padding:30px 30px 10px!important;text-align:left!important;margin:0!important;line-height:1}.fserv-form-description{padding:10px 30px!important;margin:1em 0 0!important;line-height:1.5!important;font-size:16px!important}.fserv-container form{padding:0!important;padding-left:28px!important}.fserv-container .fserv-label{display:none!important}.fserv-field{display:inline-block;padding:0!important;min-width:260px;margin:0!important;margin-right:25px!important}.fserv-container label.fserv-form-description{cursor:default}.fserv-field input.fserv-input-text{border-radius:5px!important;border:none!important;background-color:#f7f8f9!important;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%)!important}.fserv-field+div:not(.fserv-field){margin:0!important;border:none!important;text-align:left!important;padding-left:4px!important;margin-top:0!important;padding-top:0!important;display:inline-block;margin-right:10px!important}.fserv-container .powered-by{display:none!important}@media (max-width:1366px){#webnus-dashboard .fserv-container form{padding:0!important;padding:0 28px 40px 28px!important}#webnus-dashboard .fserv-form .fserv-field{width:33%!important}#webnus-dashboard .fserv-form .fserv-button-submit{margin-left:-2px!important}}@media (max-width:960px){#webnus-dashboard .fserv-container form{padding:0!important;padding:0 28px 40px 28px!important}#webnus-dashboard .fserv-form .fserv-field{width:100%!important}#webnus-dashboard .fserv-form .fserv-button-submit{margin-left:-2px!important}}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag{font-weight:500;border-radius:60px;text-shadow:none;box-shadow:0 0 0 3px rgb(227 249 253 / 15%);background:#fff;background:linear-gradient(95deg,#fff 0,#fff 50%,#fff 100%)!important;border:1px solid #c0e5ea;transition:.24s}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag.button-primary,#webnus-dashboard .total-bookings button,button.fserv-button-submit{color:#fff!important;font-weight:500!important;border-radius:60px!important;box-shadow:0 0 0 4px rgb(56 213 237 / 1%)!important;text-shadow:none!important;background:#38d5ed!important;border:none!important;transition:.24s!important}#webnus-dashboard button.fserv-button-submit{background:#64e385!important;box-shadow:0 0 0 3px #64e3851a!important}#webnus-dashboard button.fserv-button-submit:hover{background:#46d26a!important;box-shadow:0 0 0 4px #64e38536!important}#webnus-dashboard .total-bookings button{line-height:39px;padding:0 36px}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag.button-primary:hover{color:#fff!important;background:#1fcae4!important;box-shadow:0 0 0 4px rgb(56 213 237 / 15%)!important}#webnus-dashboard .total-bookings button:hover,button.fserv-button-submit:hover{background:#26bbd2!important;box-shadow:0 0 0 4px rgb(56 213 237 / 15%)!important;cursor:pointer!important}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag:hover{box-shadow:0 0 0 4px rgb(56 213 237 / 8%)!important;color:#02a3bb!important;cursor:pointer!important}.fserv-container input::-webkit-input-placeholder{font-family:inherit!important;font-size:14px}.fserv-container input::-moz-placeholder{font-family:inherit!important;font-size:14px}.fserv-container input:-ms-input-placeholder{font-family:inherit!important;font-size:14px}.fserv-container input:-moz-placeholder{font-family:inherit!important;font-size:14px}input.fserv-input-text{height:38px;box-sizing:border-box;margin-bottom:8px;padding:0 6px;box-shadow:none;border-radius:2px;box-shadow:inset 0 1px 5px rgba(0,0,0,.05)}.fserv-field label.error{display:none!important}.fs-notifier{position:fixed!important;top:40px!important;width:300px!important;max-width:300px!important;margin:0!important;right:20px!important;left:unset!important}.post-type-mec-events .lity{background:#edf0f3}.post-type-mec-events .lity-container{width:60vw;max-width:883px;margin:0 auto;border-radius:7px}.post-type-mec-events .lity-content:after{display:none}.mec-manage-events-lightbox{box-shadow:0 3px 20px rgba(0,0,0,.05)}.w-clearfix.mec-attendees-content img{display:inline-block;width:25px;height:25px;vertical-align:middle;margin-right:7px}.post-type-mec-events .mec-attendees-list-head{background:#008aff;color:#fff;text-align:center;padding:17px 0;text-transform:capitalize;font-size:26px;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;border-radius:7px 7px 0 0;line-height:43px;box-shadow:0 3px 15px rgba(0,138,255,.25);z-index:99}.mec-attendees-list-wrap{display:flex;width:100%;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;background:#fff;box-shadow:0 3px 20px rgba(0,0,0,.05);border-radius:0 0 5px 5px;overflow:hidden}.mec-attendees-list-left{flex:1;background:#f6f8fa;padding:0;border-radius:0;position:relative}.mec-attendees-list-right,.mec-send-email-form-wrap{flex:1;border-radius:0 0 5px 5px;padding:0 20px 20px;background:#f2f4f7}.mec-attendees-list-left-menu a{display:inline-block;line-height:22px;font-size:12px;color:#000;font-weight:500;border-bottom:1px solid #eaebec;border-left:1px solid #eaebec;padding-bottom:0;padding:7px 6px;margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;transition:all .2s ease;text-decoration:none;text-align:center}.mec-attendees-list-left-menu a.selected-day{color:#008aff}.mec-attendees-list-left-menu .owl-item:last-child a{border-right:1px solid #eaebec}.mec-attendees-list-right table{width:100%}.w-clearfix.mec-attendees-head{margin-top:30px;border-bottom:2px solid #ccecf4;padding-bottom:18px;margin-bottom:3px}.w-clearfix.mec-attendees-content [class^=w-col-xs-],.w-clearfix.mec-attendees-head [class^=w-col-xs-]{padding:0}.w-clearfix.mec-attendees-head span{font-weight:600;color:#000;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;font-size:17px}.w-clearfix.mec-attendees-content{background:#fff;margin-bottom:2px;padding:10px 20px}.mec-attendees-list-left-menu{height:36px;margin-left:35px;margin-right:36px}.mec-attendees-list-left-menu a:active,.mec-attendees-list-left-menu a:focus,.mec-attendees-list-left-menu a:visited{outline:0;box-shadow:none}.mec-attendees-list-left-menu .owl-item{display:inline-block}.mec-attendees-list-left-menu .owl-stage{min-width:800px!important}.owl-nav.disabled .owl-next{position:absolute;right:0;top:0}.owl-nav.disabled .owl-prev{position:absolute;left:0;top:0}.owl-nav.disabled button{background:#fff;box-shadow:none;border:1px solid #ccc;height:36px;width:36px;font-size:54px;line-height:54px}.owl-nav.disabled button span{margin-top:-18px;display:block}.mec-cover-loader:after{content:'';position:absolute;top:0;right:0;left:0;bottom:0;background:rgba(255,255,255,.5);z-index:99999}.mec-loader{background:rgba(0,0,0,0);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9}.mec-loader,.mec-loader:after{border-radius:50%;width:5em;height:5em;z-index:999999999999}.mec-loader{font-size:10px;text-indent:-9999em;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);border-left:.5em solid #fff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:mecloader 1.1s infinite linear;animation:mecloader 1.1s infinite linear}@media (max-width:992px){.post-type-mec-events .lity-container{width:80vw}}@-webkit-keyframes mecloader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes mecloader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mec-report-backtoselect-wrap,.mec-report-sendmail-form-wrap{display:none}.mec-report-select-event-wrap .select2,.mec-select-wrap .select2{width:100%!important}.mec-report-select-event-wrap .select2-container--default .select2-selection--single,.mec-select-wrap .select2-container--default .select2-selection--single{border-radius:2px;border:1px solid #e2e3e4;height:38px;padding-top:5px;width:100%;box-shadow:0 2px 3px rgba(0,0,0,.03)}.mec-report-select-event-wrap .select2-container--default .select2-selection--single .select2-selection__arrow,.mec-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow{height:36px}.mec-report-select-event-wrap .select2-container--open .select2-dropdown--below,.mec-select-wrap .select2-container--open .select2-dropdown--below{box-shadow:0 2px 8px rgba(0,0,0,.12);border-color:#d7d8d9}.select2-container--default .select2-search--dropdown .select2-search__field{box-shadow:0 2px 8px rgba(0,0,0,.06) inset;border-color:#d7d8d9;border-radius:2px}.mec-report-select-event-wrap select,.mec-select-wrap input[type=text],.mec-select-wrap select .mec-report-select-event-wrap input[type=text]{border:1px solid #e2e3e4;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;margin-bottom:15px;border-radius:2px;box-shadow:0 2px 3px rgba(0,0,0,.03);max-width:150px}.mec-report-select-event-wrap .select2-container--default,.mec-select-wrap .select2-container--default{max-width:400px}.mec-report-select-event-wrap select.mec-reports-selectbox-dates,.mec-select-wrap select.mec-reports-selectbox-dates{height:38px;min-width:260px;margin:0 0 0 10px;padding-left:15px}.mec-report-sendmail-form-wrap,.mec-report-sendmail-wrap{padding:30px 15px;background:#fff;border:1px solid #e2e3e4;margin:15px 0 5px;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.02)}.mec-report-sendmail-wrap .w-col-sm-12:before{background:url(../img/email-document.png) no-repeat left top;content:'';display:block;width:90px;height:70px;z-index:100;float:left}.mec-report-sendmail-wrap p{margin:0 0 15px;font-size:15px;color:#7d8284}.mec-report-backtoselect-wrap button,.mec-report-sendmail-wrap .w-col-sm-12 button,.mec-send-email-form-wrap .mec-send-email-button{background:#19cde9;border:none;color:#fff;font-size:13px!important;padding:6px 16px;border-radius:2px;cursor:pointer;box-shadow:0 1px 2px rgba(25,205,233,.25);transition:all .2s ease}.mec-report-backtoselect-wrap button:hover,.mec-report-sendmail-wrap .w-col-sm-12 button:hover,.mec-send-email-form-wrap .mec-send-email-button:hover{background:#04bfdc;box-shadow:0 1px 2px rgba(25,205,233,.05)}.mec-report-backtoselect-wrap button{margin-top:15px}.mec-report-selected-event-attendees-wrap{background-color:#fff;border:1px solid #96e3ef;padding:0;margin:20px 0;border-radius:3px;box-shadow:0 2px 14px rgba(25,205,233,.1);display:none}.mec-report-sendmail-wrap{display:none}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-head{background:#c7eef4;border-bottom:1px solid #96e3ef;padding:15px;margin:0;border-radius:3px 3px 0 0}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content{margin:0;padding:8px 15px;border-bottom:1px solid #e4eef0;font-size:13px;line-height:25px}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content:hover{background:#f3fdfe}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content:last-child{border-bottom:none;border-radius:0 0 3px 3px}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content img{border-radius:25px;margin-left:8px}.mec-report-selected-event-attendees-wrap input[type=checkbox]{border-radius:3px;margin-top:0}.mec-report-selected-event-attendees-wrap .mec-attendees-head .w-col-xs-2.name{padding-left:10px}.mec-report-selected-event-attendees-wrap .checkin_status span{font-weight:600}.mec-report-selected-event-attendees-wrap .w-col-sm-12>p{text-align:center}.mec-attendees-list-right,.mec-send-email-form-wrap{flex:1;border-radius:0;padding:0;background:0 0;max-width:674px;margin:0 auto}.mec-report-sendmail-form-wrap{padding:0 30px 45px}.mec-send-email-form-wrap h2{background:url(../img/email-document.png) no-repeat center top;padding-top:70px;font-size:22px;font-weight:600;text-align:center;padding-bottom:10px;padding-left:10px;margin-bottom:0}#webnus-dashboard .mec-send-email-form-wrap .wp-editor-tools button{font-size:13px;font-weight:400;color:#444;line-height:1;margin-bottom:0}#webnus-dashboard .mec-send-email-form-wrap .wp-editor-tabs button{min-height:30px}.mec-send-email-form-wrap input.widefat{min-height:40px;border:1px solid #e2e3e4;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.02)}.mec-send-email-form-wrap input.widefat:focus{border:1px solid #96e3ef}.mec-send-email-form-wrap h4.mec-send-email-count{font-weight:400;text-align:center;margin-bottom:30px;margin-top:0;padding-top:0}.mec-send-email-form-wrap .mec-send-email-button{min-height:40px;line-height:40px;padding:0;font-size:17px!important;font-weight:600}.mec-send-email-form-wrap .mce-menubtn.mce-fixed-width span{height:20px;padding-top:2px}.lity.mec-add-shortcode-popup{background-color:#b7e4e3}.lity.mec-add-shortcode-popup .lity-content{box-shadow:0 3px 20px 0 rgba(91,188,190,.55);border-radius:10px;height:100%}.mec-add-shortcode-popup .lity-container{width:930px;height:620px}.mec-add-shortcode-popup .lity-content:after{display:none}.mec-add-shortcode-popup div#mec_popup_shortcode{background:#fff;overflow:hidden;display:flex;width:100%;border-radius:10px;height:100%}.mec-steps-container{width:92px;text-align:center;background:#fff}.mec-steps-panel{width:calc(100% - 92px);background:#eef4f5}.mec-steps-container ul{text-align:center;display:block;margin-top:62px}.mec-steps-container ul li{width:22px;height:70px;margin:0 auto;position:relative}.mec-steps-container ul li span{border-radius:50px;background-color:rgba(26,175,251,.16);width:22px;height:22px;display:inline-block;padding-top:2px;font-size:11px;font-weight:700;color:#1aaffb;box-sizing:border-box}.mec-steps-container ul li:after,.mec-steps-container ul li:before{content:'';display:block;height:24px;width:2px;background:rgba(26,175,251,.16);margin-left:calc(50% - 1px)}.mec-steps-panel .mec-form-row input[type=checkbox],.mec-steps-panel .mec-form-row input[type=radio]{background:#fff}.mec-box .mec-steps-panel .mec-form-row input[type=radio],.mec-steps-panel .mec-form-row .mec-box input[type=checkbox]{background:#f7f8f9}.mec-steps-panel .mec-form-row .mec-box input[type=checkbox]:checked,.mec-steps-panel .mec-form-row .mec-box input[type=radio]:checked{background:#fff}.mec-steps-container ul li:first-of-type:before,.mec-steps-container ul li:last-of-type:after{display:none}.mec-steps-container ul li:first-of-type{height:46px}li.mec-step.mec-step-passed span,li.mec-step.mec-step-passed:after,li.mec-step.mec-step-passed:before{background-color:#2dcb73;color:#fff}.mec-steps-container img{margin-top:30px}.mec-steps-header{display:flex;background:#fff;border-radius:5px;box-shadow:0 3px 22px 0 rgb(11 121 125 / 1%);padding:12px 22px;margin:-15px -15px 65px}.mec-steps-header-settings{width:65px}.mec-steps-header-dashboard{width:fit-content;margin-right:22px}.mec-steps-header-userinfo{width:calc(100% - 65px)}.mec-steps-panel{padding:35px;position:relative;display:flex;flex-direction:column;justify-content:space-between}.mec-steps-header-userinfo span{display:inline-block;vertical-align:middle}.mec-steps-header-userinfo span img{height:40px;border-radius:50px;margin-right:8px;vertical-align:middle}.mec-steps-header-userinfo span.mec-steps-header-name{font-size:14px;color:#778182;font-weight:600;text-transform:capitalize}span.mec-steps-header-add-text{color:#839294;font-size:12px;margin-left:5px}.mec-steps-header-dashboard a,.mec-steps-header-settings a{height:100%;display:block;padding-top:11px;text-decoration:none;font-size:12px;color:#707070}.mec-steps-header-dashboard a i,.mec-steps-header-settings a i{color:#1aaffb;font-size:16px;vertical-align:text-top;margin-right:5px}.mec-next-previous-buttons{clear:both}.mec-next-previous-buttons button.mec-button-next{float:right;background:#008aff;border:none;color:#fff;cursor:pointer;width:123px;text-align:left;padding:8px 18px 9px;border-radius:3px;font-size:14px;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);transition:all .3s ease;outline:0}.mec-next-previous-buttons button:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3)}.mec-next-previous-buttons button.mec-button-next img{position:absolute;top:16px;right:18px}.mec-next-previous-buttons button{position:relative}.mec-next-previous-buttons button.mec-button-prev{background:#fff;border:none;color:#000;cursor:pointer;width:123px;text-align:right;padding:8px 15px 9px;border-radius:3px;font-size:14px;box-shadow:0 5px 10px 0 rgba(11,121,125,.01);transition:all .3s ease;outline:0}.mec-next-previous-buttons button.mec-button-prev img{position:absolute;top:16px;left:18px}.mec-next-previous-buttons button.mec-button-prev:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3);color:#fff}.mec-next-previous-buttons button.mec-button-new{background:#008aff;float:right;border:none;color:#fff;cursor:pointer;width:154px;text-align:left;padding:8px 18px 9px;border-radius:3px;font-size:14px;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);transition:all .3s ease;outline:0}.mec-next-previous-buttons button.mec-button-new:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3)}.mec-next-previous-buttons button.mec-button-new img{vertical-align:sub;margin-left:-3px;margin-right:8px}div#mec_popup_shortcode_form{height:calc(100% - 37px)}.mec-steps-content-container{display:flex;flex-direction:column;height:100%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1{background:url(../../assets/img/popup/first-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .popup-sh-name-required{color:red;display:none;font-style:italic;font-size:12px;margin-top:8px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1{top:50%;position:absolute;width:360px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']{width:360px;height:46px;border:none;border-radius:3px;padding-left:36px;font-size:12px;color:#b1b2b4;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']::-webkit-input-placeholder{color:#b1b2b4}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']:-ms-input-placeholder{color:#b1b2b4}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']::placeholder{color:#b1b2b4}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/add-sh-icon.png) no-repeat center center;position:absolute;top:17px;left:17px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul{height:386px;overflow-x:hidden;overflow-y:scroll;margin-top:-22px;margin-bottom:0;position:relative;padding:0 50px 150px 50px;background:#fcfbfd!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li{width:30%!important;float:left!important;min-height:135px!important;height:150px;margin:1.66%!important;box-sizing:border-box;text-align:center;padding:12px!important;border-radius:8px;border:1px solid transparent;box-shadow:none;background:#fff0!important;cursor:pointer;transition:all .22s ease;-webkit-transition:all .22s ease;-moz-transition:all .22s ease;-ms-transition:all .22s ease;-o-transition:all .22s ease}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li.active{border:1px solid #40d9f16b!important;box-shadow:0 1px 8px -3px #40d9f152 inset!important;color:#00cae6!important;padding:12px 0 0 0!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li:hover{box-shadow:0 1px 8px rgb(0 0 0 / 3%),0 0 0 1px #f3f4f5;background:#fff!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li:hover{background:#fcfbfd}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-img img{margin:4px 0 1px 1px;line-height:1;max-width:68px;max-height:56px;filter:grayscale(1);-webkit-filter:grayscale(1);transition:all .22s ease;-webkit-transition:all .22s ease;-moz-transition:all .22s ease;-ms-transition:all .22s ease;-o-transition:all .22s ease}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li.active .mec-step-popup-skin-img img,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li:hover .mec-step-popup-skin-img img{filter:grayscale(0);-webkit-filter:grayscale(0)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text input{display:block;margin:0 auto;margin-top:6px;border:2px solid #e1e7ed;box-shadow:0 3px 6px 0 rgba(0,0,0,.05);position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-img{padding-top:16px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li .mec-step-popup-skin-text input{display:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text:before{width:14px;height:14px;content:'';border-radius:50px;background:#fff;display:block;position:absolute;left:calc(50% - 7px);top:24px;z-index:99;border:2px solid #e1e7ed;box-shadow:0 3px 6px 0 rgba(0,0,0,.05)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text{position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li.active .mec-step-popup-skin-text:before{background:#008aff;border:none;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);width:16px;height:16px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li.active .mec-step-popup-skin-text:after{width:4px;height:4px;display:block;content:'';position:absolute;background:#fff;left:calc(50% - 1px);top:30px;z-index:999;border-radius:50px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 span.wn-hover-img-sh{display:block}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles{height:386px;overflow-x:hidden;padding-left:60px;padding-bottom:19px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label{width:193px!important;float:left!important;margin:1.66%!important;text-align:center}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label span{width:193px!important;float:left!important;min-height:135px!important;height:150px;box-sizing:border-box;border-radius:5px;border:2px solid #c4edff;background:#fff!important;cursor:pointer;margin-bottom:5px;margin-top:-6px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label.active span{border-color:#00acf8;box-shadow:0 3px 5px rgba(0,172,248,.2)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label div{font-size:14px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label.active div{color:#008aff}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles input{opacity:0;display:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-steps-content.mec-steps-content-3{margin-top:-18px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 span.wn-hover-img-sh img{width:189px;height:146px;border-radius:5px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4{background:url(../../assets/img/popup/fourth-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 .nice-select{border:none;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4{top:40%;position:absolute;width:330px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 h3{font-size:13px;font-weight:400;color:#707070}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div{border:2px dashed #dce2e3;border-radius:3px;padding:20px 20px 6px;background:#fcfcfc}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div label{display:block;margin-bottom:14px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div label.active input{background:#fff;box-shadow:none;border:1px solid #cacece}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup{box-shadow:0 3px 13px -5px rgba(0,0,0,.1),inset 0 1px 2px rgba(0,0,0,.07);clear:unset!important;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:5px;border:solid 1px #e8e8e8;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:14px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:300px!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup:hover{border-color:#dbdbdb}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.open .list{overflow:unset;width:100%;margin:0}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .list{background-color:#fff;border-radius:5px;box-shadow:0 0 0 1px rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup:after{border-bottom:2px solid #999;border-right:2px solid #999;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:12px;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.disabled{border-color:#ededed;color:#999;pointer-events:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.disabled:after{border-color:#ccc}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .list:hover .option:not(:hover){background-color:transparent!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option{cursor:pointer;font-weight:400;list-style:none;min-height:40px;outline:0;text-align:left;position:relative;font-size:12px!important;padding:1px 12px!important;margin:0!important;line-height:28px!important;min-height:28px!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option .wn-hover-img-sh img{position:absolute;padding:3px;top:-1px;left:100%;box-shadow:0 4px 42px -5px rgba(0,0,0,.16);visibility:hidden;opacity:0;border:1px solid #e3e3e3;border-radius:2px;z-index:99999999;background:#fff}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option:hover .wn-hover-img-sh img{visibility:visible;opacity:1}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.focus,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.selected.focus,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option:hover{background-color:#f6f6f6}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.selected{font-weight:700}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.disabled{background-color:transparent;color:#999;cursor:default}.mec-add-shortcode-popup .no-csspointerevents .wn-mec-select-popup .list{display:none}.mec-add-shortcode-popup .no-csspointerevents .wn-mec-select-popup.open .list{display:block}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label input{background:#fff;position:relative;width:24px;height:24px;border:1px solid #cacece}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label input:before{disaply:none}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label.active input{background:#008aff;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);border:none}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label.active input:before{background:#fff;width:6px;height:6px;top:6px;left:6px;position:absolute}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5{background:url(../../assets/img/popup/fifth-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5{width:360px;margin-top:16px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher label{color:#707070;font-size:14px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher p{color:#8a8a8a;font-style:italic;font-size:12px;margin-top:7px;margin-bottom:0}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher{padding-bottom:30px;margin-bottom:34px;border-bottom:2px dashed #dce2e3;position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher:last-of-type{padding-bottom:0;margin-bottom:0;border:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher div:last-of-type label{position:absolute;top:-4px;right:0;width:52px;height:26px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher input:checked+label:after{margin-left:26px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher input+label:after,.mec-add-shortcode-popup .mec-switcher input+label:before{display:block;position:absolute;top:2px;left:1px;bottom:2px;content:''}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher input+label:after{width:26px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6{background:url(../../assets/img/popup/sixth-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-content.mec-steps-content-6{margin-top:56px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode{width:325px;border:2px dashed #dce2e3;background:#fcfcfc;padding:42px 42px 47px;text-align:center}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode h3{font-size:16px;font-weight:400;color:#707070;margin-top:7px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code{border-radius:3px;background:rgba(154,214,222,.35);width:243px;margin:0 auto;padding:14px 17px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code code{background:0 0;color:#000;font-size:14px;font-weight:600;margin-left:-11px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code button{border:none;background:#fff;border-radius:3px;padding:3px 8px 6px;margin-left:46px;cursor:pointer}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code button:hover{background:#000;color:#fff}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-6-results p{width:325px;text-align:center;font-size:12px;margin-top:5px;color:#8a8a8a}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-6-loading{width:325px;border:2px dashed #dce2e3;background:#fcfcfc;padding:42px 42px 47px;text-align:center;height:182px;position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-6-loading .mec-loader{position:absolute;left:136px;top:65px}.mec-add-event-popup button.lity-close,.mec-add-shortcode-popup button.lity-close{right:0;top:-52px;border-radius:50%;width:37px;height:37px;background:#fff;color:#a2afbc;text-shadow:none;padding-top:1px;transition:all .2s ease;position:absolute;box-shadow:0 3px 8px 0 rgba(91,188,190,.55)}.mec-add-event-popup button.lity-close:hover,.mec-add-shortcode-popup button.lity-close:hover{background:#ff6262;color:#fff;box-shadow:0 3px 8px 0 rgb(249 162 162 / 55%)}.mec-skin-styles.mec-styles-full_calendar h3{padding-left:12px}.lity.mec-add-event-popup{background-color:#b7e4e3}.mec-add-event-popup .lity-container{width:930px;height:620px;max-width:unset}.mec-add-event-popup div#mec_popup_event{background:#fff;overflow:hidden;display:flex;width:100%;border-radius:10px;height:100%}.lity.mec-add-event-popup .lity-content{box-shadow:0 3px 20px 0 rgba(91,188,190,.55);border-radius:10px;height:100%}div#mec_popup_event_form{height:calc(100% - 37px)}.mec-add-event-popup .mec-steps-container ul{margin-top:42px}.mec-add-event-popup .mec-steps-container ul li:first-of-type{height:41px}.mec-add-shortcode-popup .mec-steps-container ul li:after,.mec-add-shortcode-popup .mec-steps-container ul li:before{height:24px}.mec-add-event-popup .mec-steps-container ul li:after,.mec-add-event-popup .mec-steps-container ul li:before{height:19px}.mec-add-event-popup .mec-steps-container ul li{height:60px}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup{box-shadow:0 3px 22px 0 rgba(11,121,125,.01);border:none;clear:unset!important;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:3px;box-sizing:border-box;cursor:pointer;display:block;float:left;font-family:inherit;font-size:12px;font-weight:400;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;height:46px;margin-right:6px;padding-top:3px;color:#707070}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open{border-radius:3px 3px 0 0}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup:hover{border-color:#dbdbdb}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open .list{overflow:unset;width:100%;margin:0}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list{background-color:#fff;border-radius:0 0 3px 3px;box-shadow:0 0 0 0 rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9;margin-top:1px!important}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup:after{border-bottom:2px solid #00acf8;border-right:2px solid #00acf8;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:15px;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.disabled{border-color:#ededed;color:#999;pointer-events:none}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.disabled:after{border-color:#ccc}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list:hover .option:not(:hover){background-color:transparent!important}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option{cursor:pointer;font-weight:400;list-style:none;min-height:40px;outline:0;text-align:left;position:relative;font-size:12px!important;padding:1px 12px!important;margin:0!important;line-height:22px!important;min-height:22px!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.focus,.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.selected.focus,.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option:hover{background-color:#f6f6f6}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.selected{font-weight:700}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.disabled{background-color:transparent;color:#999;cursor:default}.mec-add-event-popup .no-csspointerevents .wn-mec-select-popup .list{display:none}.mec-add-event-popup .no-csspointerevents .wn-mec-select-popup.open .list{display:block}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1{background:url(../../assets/img/popup/add-event-first-step.png) no-repeat 100% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name{width:100%;height:46px;border:none;border-radius:3px;padding-left:36px;font-size:13px;color:#3c434a;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name::-webkit-input-placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name:-ms-input-placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/calendar_icon.png) no-repeat center center;position:absolute;top:17px;left:17px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1{top:210px;position:absolute;width:370px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .popup-sh-name-required{color:red;display:none;font-style:italic;font-size:12px;margin-top:8px}.mec-add-event-popup .mec-meta-box-colors-container{background:#fff;padding:17px;border-radius:3px;box-shadow:0 3px 22px rgba(11,121,125,.01);margin-top:15px}.mec-add-event-popup .wp-picker-container .wp-color-result.button{border-color:#f1f2f4;border-radius:3px;box-shadow:0 2px 2px rgba(0,0,0,.04)}.mec-add-event-popup .mec-recent-color-sec{display:block!important;font-size:12px;color:#707070}.mec-add-event-popup .mec-form-row.mec-available-color-row{border:2px dashed #dce2e3;padding:13px 20px;background:#fcfcfc;border-radius:3px}.mec-add-event-popup .wp-color-result-text{background:#f7f7f7;border-radius:unset;border-left:none;color:#555;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.mec-add-event-popup .mec-form-row.mec-available-color-row .mec-color{width:12px;height:12px;position:absolute;top:-5px;left:0;z-index:99}.mec-add-event-popup span.mec-color-meta-box-popup{display:inline-block!important;width:20px;height:20px;border-radius:50px;position:absolute;top:1px;left:6px;z-index:9}.mec-add-event-popup span.mec-recent-color-sec-wrap{width:20px;height:20px;display:inline-block;margin-right:12px;margin-top:7px;margin-left:-6px;position:relative}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2{background:url(../../assets/img/popup/sixth-step.png) no-repeat 95% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form .mec-col-4{width:auto}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form .mec-col-4:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/calendar_icon.png) no-repeat center center;position:absolute;top:17px;left:17px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form .mec-col-4 input{padding-left:36px;width:148px;padding:22px 17px 22px 34px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form select{height:46px;border:none;border-radius:3px;padding-left:36px;font-size:12px;color:#707070;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date::placeholder,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date::placeholder,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date::placeholder,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-form-row .time-dv{float:left;margin-left:-2px;margin-right:4px;margin-top:12px;color:#b1b2b4}.mec-add-event-popup .mec-steps-content.mec-steps-content-2{margin-top:60px}.mec-add-event-popup .mec-steps-content.mec-steps-content-2 .mec-form-row.mec-all-day-event label{font-size:14px;color:#707070}.mec-add-event-popup .mec-steps-content.mec-steps-content-2 .mec-form-row.mec-all-day-event{margin-top:13px!important}.mec-add-event-popup .mec-steps-content.mec-steps-content-3,.mec-add-event-popup .mec-steps-content.mec-steps-content-4{margin-top:-9px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-3{background:url(../../assets/img/popup/fifth-step.png) no-repeat 90% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-4{background:url(../../assets/img/popup/add-organizer.png) no-repeat 95% 70%}.nice-select.mec_popup_location_id.wn-mec-select-popup,.nice-select.mec_popup_organizer_id.wn-mec-select-popup{position:relative;width:200px;padding-left:36px}.nice-select.mec_popup_location_id.wn-mec-select-popup:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/pointer.png) no-repeat center center;position:absolute;top:17px;left:17px}.nice-select.mec_popup_organizer_id.wn-mec-select-popup:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/pointer.png) no-repeat center center;position:absolute;top:17px;left:17px}#mec_popup_event button#mec_popup_add_location:before,#mec_popup_event button#mec_popup_add_organizer:before{content:'';width:15px;height:15px;background:url(../../assets/img/popup/plus.png) no-repeat center center;position:absolute;top:16px;left:15px}.mec-add-event-popup .mec-steps-content-container .nice-select.mec_popup_location_id.wn-mec-select-popup.open .list li,.mec-add-event-popup .mec-steps-content-container .nice-select.mec_popup_organizer_id.wn-mec-select-popup.open .list li{line-height:32px!important;min-height:32px!important}#mec_popup_event .mec-steps-content .mec-tooltip{bottom:8px}#mec-location .mec-form-row span+span.mec-tooltip i,#mec-organizer .mec-form-row span+span.mec-tooltip i{margin-top:-18px}#mec_popup_event .mec-steps-content .mec-tooltip .dashicons-before:before{color:#008aff}#mec_popup_event button#mec_organizer_thumbnail_button,#mec_popup_event button#mec_popup_add_location,#mec_popup_event button#mec_popup_add_organizer{background:#008aff;border-radius:3px;border:none;color:#fff;width:146px;height:46px;margin-left:10px;box-shadow:0 3px 3px 0 rgba(0,138,255,.22);font-size:14px;cursor:pointer;transition:all .2s ease;outline:0;position:relative;padding-left:20px}#mec_popup_event button#mec_organizer_thumbnail_button:hover,#mec_popup_event button#mec_popup_add_location:hover,#mec_popup_event button#mec_popup_add_organizer:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3)}#mec_popup_event label[for=mec_location_dont_show_map]{font-size:14px;margin-left:4px;margin-top:3px!important;display:inline-block;margin-bottom:7px}#mec_popup_event input#mec_location_dont_show_map{margin-top:9px!important}#mec_popup_event div#mec_location_new_container,#mec_popup_event div#mec_organizer_new_container{border-top:2px dashed #dce2e3;width:360px;padding-top:25px;margin-top:20px}#mec_popup_event div#mec_location_new_container input,#mec_popup_event div#mec_organizer_new_container input{width:100%;height:46px;border:none;border-radius:3px;padding-left:17px;font-size:12px;color:#b1b2b4;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}#mec_popup_event div#mec_location_new_container .description,#mec_popup_event div#mec_organizer_new_container .description{border:none;padding:0;margin:0;margin-left:16px;line-height:19px;font-size:12px;color:#707070;font-style:normal;margin-top:-4px;display:block}#mec_popup_event .mec-form-row.mec-lat-lng-row input{width:44%!important}#mec_popup_event .mec-form-row.mec-lat-lng-row input:first-of-type{margin-right:10px}#mec_popup_event div#mec_organizer_new_container{margin-top:30px}#mec_popup_event div#mec_organizer_new_container .mec-form-row:first-of-type .mec-col-6:first-of-type{margin-right:14px!important}#mec_popup_event div#mec_organizer_new_container .mec-form-row:first-of-type .mec-col-6{width:48%;margin:0}#mec_popup_event button#mec_organizer_thumbnail_button:before{content:'';width:15px;height:15px;background:url(../../assets/img/popup/picture.png) no-repeat center center;position:absolute;top:16px;left:15px}#mec_popup_event button#mec_organizer_thumbnail_button{width:96%;padding-left:30px}.mec-add-event-popup .mec-steps-content.mec-steps-content-4 div#mec_organizer_thumbnail_img{position:absolute;right:10px;top:-20px}.mec-add-event-popup .mec-steps-content.mec-steps-content-4 div#mec_organizer_thumbnail_img img{max-width:110px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-5{background:url(../../assets/img/popup/fourth-step.png) no-repeat 90% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-5 .mec-categories-add-new input{height:30px;border:none;border-radius:3px;padding-left:10px;margin-left:20px;font-size:12px;color:#b1b2b4;box-shadow:0 3px 22px 0 rgba(11,121,125,.01);width:186px;float:right;margin-top:-4px}.mec-add-event-popup .mec-steps-content.mec-steps-content-5{width:326px;margin-top:48px}.mec-add-event-popup .mec-steps-content.mec-steps-content-5 .mec-categories-tabs ul li{display:inline-block;background:#fff;border:none;cursor:pointer;padding:12px 18px;border-radius:3px;transition:all .3s ease;outline:0;text-align:center;margin-right:10px;height:42px;color:#008aff;font-size:14px;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-event-popup .mec-steps-content.mec-steps-content-5 .mec-categories-tabs ul li.mec-categories-tab-selected,.mec-add-event-popup .mec-steps-content.mec-steps-content-5 .mec-categories-tabs ul li:hover{background:#008aff;color:#fff;box-shadow:0 3px 3px 0 rgba(0,138,255,.3)}.mec-add-event-popup .mec-categories-tab-contents{background:#fff;padding:20px;border:2px dashed #dce2e3;margin-bottom:13px;margin-top:-5px}.mec-add-event-popup .mec-categories-tab-contents ul,.mec-add-event-popup .mec-categories-tab-contents ul li:last-of-type{margin:0}.mec-add-event-popup .mec-categories-tab-contents ul li .children{margin:7px 0 7px 30px}.mec-add-event-popup .mec-categories-tab-contents ul li{font-size:14px;color:#707070}.mec-add-event-popup .mec-categories-tab-contents.mec-form-row input[type=checkbox]{margin-top:0}.mec-add-event-popup .mec-categories-tab-contents{max-height:200px;overflow:hidden;overflow-y:scroll}.mec-add-event-popup .nice-select.mec_popup_location_id .list,.mec-add-event-popup .nice-select.mec_popup_organizer_id .list{max-height:240px!important;overflow:hidden!important;overflow-y:scroll!important}.mec-add-event-popup .mec-categories-tab-contents::-webkit-scrollbar,.mec-add-event-popup .nice-select.mec_popup_location_id .list::-webkit-scrollbar,.mec-add-event-popup .nice-select.mec_popup_organizer_id .list::-webkit-scrollbar{width:5px}.mec-add-event-popup .mec-categories-tab-contents::-webkit-scrollbar-track,.mec-add-event-popup .nice-select.mec_popup_location_id .list::-webkit-scrollbar-track,.mec-add-event-popup .nice-select.mec_popup_organizer_id .list::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.1)}.mec-add-event-popup .mec-categories-tab-contents::-webkit-scrollbar-thumb,.mec-add-event-popup .nice-select.mec_popup_location_id .list::-webkit-scrollbar-thumb,.mec-add-event-popup .nice-select.mec_popup_organizer_id .list::-webkit-scrollbar-thumb{background-color:#008aff;outline:0 solid #fff}.mec-add-event-popup span#mec_popup_new_category_button{cursor:pointer;position:relative;padding-left:18px;font-size:14px}.mec-add-event-popup span#mec_popup_new_category_button:before{content:'';width:15px;height:15px;background:url(../../assets/img/popup/plus-blue.png) no-repeat center center;position:absolute;top:3px;left:0}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-5 .mec-categories-add-new input::placeholder{color:#b1b2b4;font-size:13px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-5 .mec-categories-add-new input::placeholder{color:#b1b2b4;font-size:13px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-5 .mec-categories-add-new input::placeholder{color:#b1b2b4;font-size:13px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-5 .mec-categories-add-new input{color:#3c434a;font-size:13px}.mec-add-event-popup .mec-steps-content.mec-steps-content-6.mec-steps-content-active{margin-top:-10px;height:70%}.mec-add-event-popup .mec-steps-content.mec-steps-content-6 .mce-tinymce.mce-container.mce-panel{height:100%;border:1px solid #ececec!important;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)!important;border-radius:3px!important;overflow:hidden}.mec-add-event-popup .mec-steps-content.mec-steps-content-6 .mce-container-body.mce-stack-layout{height:100%;background:#f5f5f5}.mec-add-event-popup .mec-steps-content.mec-steps-content-6 .mce-container *{border:none!important;box-shadow:none!important}.mec-add-event-popup .mec-steps-content.mec-steps-content-6 .mce-edit-area.mce-container.mce-panel.mce-stack-layout-item{height:90%}.mec-add-event-popup .mec-steps-content.mec-steps-content-6 .mce-statusbar.mce-container.mce-panel.mce-stack-layout-item.mce-last{display:none!important}.mec-add-event-popup .mce-edit-area.mce-container.mce-panel.mce-stack-layout-item iframe{height:100%!important}.mec-add-event-popup .mec-steps-content.mec-steps-content-7.mec-steps-content-active{height:70%;background:#fff;border:2px dashed #dce2e3;border-radius:3px;text-align:center;vertical-align:middle;margin-top:-10px;position:relative}.mec-add-event-popup .mec-event-popup-featured-image-wrapper{display:flex;justify-content:center;align-items:center;height:100%}.mec-add-event-popup button#mec_popup_upload_image_button{background:#008aff;color:#fff;box-shadow:0 3px 3px 0 rgba(0,138,255,.3);display:inline-block;border:none;cursor:pointer;padding:12px 18px;border-radius:3px;transition:all .3s ease;outline:0;text-align:center;height:42px;font-size:14px;margin-right:0}.mec-add-event-popup div#mec_event_popup_featured_image_preview img{max-height:300px;max-width:740px;margin-top:20px;margin-bottom:0}.mec-add-event-popup button#mec_popup_upload_image_button:hover{background:#000;box-shadow:0 3px 3px 0 rgba(0,0,0,.3)}.mec-add-event-popup .mec-event-popup-featured-image-wrapper span i{border-radius:50px;color:#bb353f;right:10px;top:10px;font-size:30px;position:absolute;cursor:pointer}.mec-add-event-popup .mec-steps-content.mec-steps-content-8{height:100%}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 .mec-steps-8-results .mec-steps-8-results-wrap{display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 .mec-steps-8-loading .mec-loader{left:calc(50% - 2.5em);top:calc(50% - 2.5em)}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 .mec-steps-8-results{height:100%}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 a.mec-button-view{display:inline-block;background:#fff;border:none;cursor:pointer;padding:12px 22px 12px 36px;border-radius:3px;transition:all .3s ease;outline:0;text-align:center;margin-right:10px;height:46px;font-size:14px;box-shadow:0 3px 3px 0 rgba(0,0,0,.04);text-decoration:none;color:#000;position:relative;line-height:22px}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 a.mec-button-view:hover{background-color:#000;color:#fff}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 a.mec-button-view:before{content:'';width:15px;height:15px;background:url(../../assets/img/popup/eye.png) no-repeat center center;position:absolute;top:16px;left:15px}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 button.mec-button-new{background:#008aff;color:#fff;box-shadow:0 3px 3px 0 rgba(0,138,255,.3);display:inline-block;border:none;cursor:pointer;padding:11px 22px 11px 36px;border-radius:3px;transition:all .3s ease;outline:0;text-align:center;height:46px;font-size:14px;margin-right:0;position:relative;line-height:22px}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 button.mec-button-new:hover{background:#000;box-shadow:0 3px 3px 0 rgba(0,0,0,.3)}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 button.mec-button-new:before{content:'';width:15px;height:15px;background:url(../../assets/img/popup/plus.png) no-repeat center center;position:absolute;top:16px;left:15px}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 .mec-popup-final-buttons{margin-top:22px}.mec-add-event-popup .mec-steps-content.mec-steps-content-8 .mec-steps-8-results-wrap h3{font-size:26px;font-weight:400}.mec-add-event-popup .mec-steps-content-container .mec-time-picker .wn-mec-select-popup{width:64px}.mec-add-event-popup .mec-steps-content-container .mec-time-picker .wn-mec-select-popup .list{overflow-y:scroll!important;height:288px;margin-top:4px!important;box-shadow:0 1px 9px rgba(0,0,0,.1);border-radius:0}.mec-add-event-popup .mec-steps-content-container .mec-time-picker .wn-mec-select-popup .list::-webkit-scrollbar-track{background-color:#f6f6f6}.mec-add-event-popup .mec-steps-content-container .mec-time-picker .wn-mec-select-popup .list::-webkit-scrollbar{width:3px;background-color:#f6f6f6}.mec-add-event-popup .mec-steps-content-container .mec-time-picker .wn-mec-select-popup .list::-webkit-scrollbar-thumb{background-color:rgba(26,175,251,.16)}.mec-add-event-popup .mec-steps-content-container .mec-time-picker .wn-mec-select-popup:last-child .list{overflow:unset!important;height:unset}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']{color:#3c434a!important}@media (max-width:1280px){.mec-add-event-popup .lity-container,.mec-add-shortcode-popup .lity-container{height:calc(100% - 110px);margin-bottom:-80px}.mec-add-event-popup .post-type-mec-events .mec-form-row{padding-bottom:12px}.mec-add-event-popup .mec-steps-panel .mec-add-event-popup .mec-steps-panel,.mec-add-shortcode-popup .mec-steps-panel .mec-add-event-popup .mec-steps-panel{padding:14px}.mec-add-event-popup .mec-steps-container img,.mec-add-event-popup .mec-steps-container ul,.mec-add-shortcode-popup .mec-steps-container img,.mec-add-shortcode-popup .mec-steps-container ul{margin-top:14px}.mec-add-event-popup .mec-add-event-popup .mec-steps-container ul li:first-of-type,.mec-add-shortcode-popup .mec-add-event-popup .mec-steps-container ul li:first-of-type{height:28px}.mec-add-event-popup .mec-add-event-popup .mec-steps-container ul li,.mec-add-shortcode-popup .mec-add-event-popup .mec-steps-container ul li{height:46px}.mec-add-event-popup .mec-add-event-popup .mec-steps-container ul li:after,.mec-add-event-popup .mec-add-event-popup .mec-steps-container ul li:before,.mec-add-shortcode-popup .mec-add-event-popup .mec-steps-container ul li:after,.mec-add-shortcode-popup .mec-add-event-popup .mec-steps-container ul li:before{height:12px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1{top:150px}#mec_popup_event div#mec_location_new_container,#mec_popup_event div#mec_organizer_new_container{padding-top:12px;margin-top:12px}#mec_popup_event div#mec_location_new_container input,#mec_popup_event div#mec_organizer_new_container input{margin:0 0 3px 0}}@media (max-width:960px){.mec-steps-content-container{background-image:unset!important}#mec_popup_event div#mec_location_new_container,#mec_popup_event div#mec_organizer_new_container,.mec-add-event-popup .mec-steps-content-container .mec-steps-content,.mec-add-shortcode-popup .mec-steps-content-container .mec-steps-content{width:100%!important;max-width:100%;position:unset!important;margin:0!important}.mec-add-event-popup .lity-container,.mec-add-shortcode-popup .lity-container,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']{width:100%;max-width:100%}.mec-add-event-popup .mec-steps-panel,.mec-add-shortcode-popup .mec-steps-panel{overflow-x:scroll;padding:14px}.mec-add-event-popup .mec-steps-header,.mec-add-shortcode-popup .mec-steps-header{margin-bottom:30px}.mec-add-event-popup .mec-steps-header span.mec-steps-header-add-text,.mec-add-shortcode-popup .mec-steps-header span.mec-steps-header-add-text{display:block;margin-top:10px;width:100%}.mec-add-event-popup .mec-col-4,.mec-add-shortcode-popup .mec-col-4{width:100%!important;max-width:100%!important}.mec-add-event-popup #mec_popup_event button#mec_organizer_thumbnail_button,.mec-add-event-popup #mec_popup_event button#mec_popup_add_location,.mec-add-event-popup #mec_popup_event button#mec_popup_add_organizer,.mec-add-shortcode-popup #mec_popup_event button#mec_organizer_thumbnail_button,.mec-add-shortcode-popup #mec_popup_event button#mec_popup_add_location,.mec-add-shortcode-popup #mec_popup_event button#mec_popup_add_organizer{margin:10px 0 0 0}.mec-add-event-popup .mec-col-1,.mec-add-event-popup .mec-col-10,.mec-add-event-popup .mec-col-11,.mec-add-event-popup .mec-col-12,.mec-add-event-popup .mec-col-2,.mec-add-event-popup .mec-col-3,.mec-add-event-popup .mec-col-4,.mec-add-event-popup .mec-col-5,.mec-add-event-popup .mec-col-6,.mec-add-event-popup .mec-col-7,.mec-add-event-popup .mec-col-8,.mec-add-event-popup .mec-col-9,.mec-add-shortcode-popup .mec-col-1,.mec-add-shortcode-popup .mec-col-10,.mec-add-shortcode-popup .mec-col-11,.mec-add-shortcode-popup .mec-col-12,.mec-add-shortcode-popup .mec-col-2,.mec-add-shortcode-popup .mec-col-3,.mec-add-shortcode-popup .mec-col-4,.mec-add-shortcode-popup .mec-col-5,.mec-add-shortcode-popup .mec-col-6,.mec-add-shortcode-popup .mec-col-7,.mec-add-shortcode-popup .mec-col-8,.mec-add-shortcode-popup .mec-col-9{margin:0 0 10px 0}.mec-add-event-popup .mec-steps-content h3,.mec-add-shortcode-popup .mec-steps-content h3{font-size:18px!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles{height:480px;width:100%}}@media (max-width:320px){.mec-add-event-popup .mec-steps-container,.mec-add-shortcode-popup .mec-steps-container{display:none}.mec-add-event-popup .mec-steps-panel,.mec-add-shortcode-popup .mec-steps-panel{width:100%!important}}#mec_popup_event input[type=checkbox]{margin-right:9px}#mec_popup_event input#mec_location_dont_show_map{margin-top:0!important}#mec_popup_settings #mec_next_previous_events_container_toggle label,#mec_popup_settings #mec_related_events_container_toggle label{padding:0}#mec_popup_event input[type=checkbox]:checked,#mec_popup_event input[type=radio]:checked,#mec_popup_settings input[type=checkbox]:checked,#mec_popup_settings input[type=radio]:checked,#mec_popup_shortcode input[type=checkbox]:checked,#mec_popup_shortcode input[type=radio]:checked{background:#64e385;border-color:#64e385}#mec_popup_event input[type=checkbox]:checked:before,#mec_popup_event input[type=radio]:checked:before,#mec_popup_settings input[type=checkbox]:checked:before,#mec_popup_settings input[type=radio]:checked:before,#mec_popup_shortcode input[type=checkbox]:checked:before,#mec_popup_shortcode input[type=radio]:checked:before{content:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIxNC42ODgiIHZpZXdCb3g9IjAgMCAyMCAxNC42ODgiPg0KICA8ZyBpZD0idGlja18xXyIgZGF0YS1uYW1lPSJ0aWNrICgxKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtNjcuOTk4KSI+DQogICAgPGcgaWQ9Ikdyb3VwXzEiIGRhdGEtbmFtZT0iR3JvdXAgMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCA2Ny45OTcpIj4NCiAgICAgIDxwYXRoIGlkPSJQYXRoXzEiIGRhdGEtbmFtZT0iUGF0aCAxIiBkPSJNMTkuNzA3LDY4LjI5YTEsMSwwLDAsMC0xLjQxNCwwTDYuMzEyLDgwLjI3MSwxLjcwNyw3NS42NjZBMSwxLDAsMCwwLC4yOTIsNzcuMDhMNS42LDgyLjM5MmExLDEsMCwwLDAsMS40MTQsMEwxOS43MDcsNjkuN0ExLDEsMCwwLDAsMTkuNzA3LDY4LjI5WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtNjcuOTk3KSIgZmlsbD0iI2ZmZiIvPg0KICAgIDwvZz4NCiAgPC9nPg0KPC9zdmc+DQo=');line-height:16px;width:15px;float:none;margin:2px;display:block}#mec_popup_shortcode .mec-steps-content.mec-steps-content-4 label input[type=radio]:before{background:unset;margin:-2px 0 0 0}.mec-add-event-popup .mec-steps-content.mec-steps-content-5{width:366px;margin-top:48px}#mec_popup_event div#mec_location_new_container,#mec_popup_event div#mec_organizer_new_container{border-top:2px dashed #dce2e3;width:375px;padding-top:25px;margin-top:0;overflow-y:scroll;overflow-x:hidden;max-height:240px}#mec_popup_event div#mec_location_new_container .mec-form-row,#mec_popup_event div#mec_organizer_new_container .mec-form-row{padding-bottom:20px}#mec_popup_event div#mec_location_new_container .description,#mec_popup_event div#mec_organizer_new_container .description{margin:9px 0}#mec_popup_event div#mec_location_new_container .mec-form-row.mec-thumbnail-row,#mec_popup_event div#mec_organizer_new_container .mec-form-row.mec-thumbnail-row{padding:0}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher div:last-of-type label{position:absolute;top:-12px;max-width:52px;width:100%;height:30px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-switcher input+label{background:#e5e9ee;box-shadow:unset}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-switcher input+label:after{margin-left:0;margin-top:-1px;border-color:#e5e9ee}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-switcher input[value='1']:checked+label,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-switcher input[value='1']:checked+label:before{box-shadow:2px 2px 12px -2px #4fdc73 inset;position:relative;background:#64e385;border-color:#64e385}.lity.mec-add-event-popup .lity-content,.lity.mec-settings .lity-content{box-shadow:0 3px 20px 0 rgb(91 188 190 / 55%);border-radius:10px;height:100%;overflow:hidden}.mec-settings .lity-container{width:930px;height:620px;max-width:unset}#mec_popup_settings #mec_next_previous_events_container_toggle label:first-child,#mec_popup_settings #mec_related_events_container_toggle label:first-child{display:block;margin:0 0 20px 0}#mec_popup_event .mec-categories-tab-contents,#mec_popup_settings #mec_settings_weekdays .mec-box,#mec_popup_settings #mec_settings_weekends .mec-box{background:rgb(220 226 227 / .3)}#mec_popup_settings .mec-switcher input+label{max-width:62px!important;width:100%;height:33px}#mec_popup_settings .mec-image-select-wrap li input:checked+span:after{padding:5px}.ac-mec-events.ac-search-enabled .tablenav .ac-search>:not(#ac-s).lity-hide{display:none}.mec-go-pro-content-title{font-size:20px;font-weight:600;margin-bottom:12px}.mec-go-pro-features-wrap p{font-size:14px}.mec-go-pro-features-wrap .mec-addons-notification-box-content{width:calc(100% - 590px);display:inline-block;padding-left:20px}.mec-go-pro-features-wrap ul{float:left;width:50%;margin:0 0 12px}.mec-go-pro-features-wrap ul li{margin-bottom:1px;font-size:13px;color:#717479;padding-left:18px;position:relative}.mec-go-pro-features-wrap ul li:before{position:absolute;left:-1px;top:6px;color:#36da74;font-size:13px;font-weight:700;vertical-align:middle;font-family:simple-line-icons;border-radius:50%;padding:0;width:13px;height:13px;line-height:13px;z-index:3;background:rgba(64,241,147,.12);content:'\e080'}.post-type-mec-books.taxonomy-mec_coupon .metabox-prefs .screen-options label,.post-type-mec-events.taxonomy-mec_category .metabox-prefs .screen-options label,.post-type-mec-events.taxonomy-mec_label .metabox-prefs .screen-options label,.post-type-mec-events.taxonomy-post_tag .metabox-prefs .screen-options label,.taxonomy-mec_location .metabox-prefs .screen-options label,.taxonomy-mec_organizer .metabox-prefs .screen-options label,.taxonomy-mec_speaker .metabox-prefs .screen-options label{margin-top:-15px}.post-type-mec-books.taxonomy-mec_coupon #mec_thumbnail_img img,.post-type-mec-events.taxonomy-mec_category #mec_thumbnail_img img,.post-type-mec-events.taxonomy-mec_label #mec_thumbnail_img img,.post-type-mec-events.taxonomy-post_tag #mec_thumbnail_img img,.taxonomy-mec_location #mec_thumbnail_img img,.taxonomy-mec_organizer #mec_thumbnail_img img,.taxonomy-mec_speaker #mec_thumbnail_img img{margin:0 0 20px 0;border:solid 1px #ddd;border-radius:2px}.post-type-mec-books.taxonomy-mec_coupon .form-wrap label,.post-type-mec-events.taxonomy-mec_category .form-wrap label,.post-type-mec-events.taxonomy-mec_label .form-wrap label,.post-type-mec-events.taxonomy-post_tag .form-wrap label,.taxonomy-mec_location .form-wrap label,.taxonomy-mec_organizer .form-wrap label,.taxonomy-mec_speaker .form-wrap label{padding:0;margin:10px 0}.post-type-mec-books.taxonomy-mec_coupon input[type=number],.post-type-mec-books.taxonomy-mec_coupon input[type=search],.post-type-mec-books.taxonomy-mec_coupon input[type=text],.post-type-mec-books.taxonomy-mec_coupon input[type=url],.post-type-mec-books.taxonomy-mec_coupon select,.post-type-mec-books.taxonomy-mec_coupon textarea,.post-type-mec-events.taxonomy-mec_category input[type=number],.post-type-mec-events.taxonomy-mec_category input[type=search],.post-type-mec-events.taxonomy-mec_category input[type=text],.post-type-mec-events.taxonomy-mec_category input[type=url],.post-type-mec-events.taxonomy-mec_category select,.post-type-mec-events.taxonomy-mec_category textarea,.post-type-mec-events.taxonomy-mec_label input[type=number],.post-type-mec-events.taxonomy-mec_label input[type=search],.post-type-mec-events.taxonomy-mec_label input[type=text],.post-type-mec-events.taxonomy-mec_label input[type=url],.post-type-mec-events.taxonomy-mec_label select,.post-type-mec-events.taxonomy-mec_label textarea,.post-type-mec-events.taxonomy-post_tag input[type=number],.post-type-mec-events.taxonomy-post_tag input[type=search],.post-type-mec-events.taxonomy-post_tag input[type=text],.post-type-mec-events.taxonomy-post_tag input[type=url],.post-type-mec-events.taxonomy-post_tag select,.post-type-mec-events.taxonomy-post_tag textarea,.taxonomy-mec_location input[type=number],.taxonomy-mec_location input[type=search],.taxonomy-mec_location input[type=text],.taxonomy-mec_location input[type=url],.taxonomy-mec_location select,.taxonomy-mec_location textarea,.taxonomy-mec_organizer input[type=number],.taxonomy-mec_organizer input[type=search],.taxonomy-mec_organizer input[type=text],.taxonomy-mec_organizer input[type=url],.taxonomy-mec_organizer select,.taxonomy-mec_organizer textarea,.taxonomy-mec_speaker input[type=number],.taxonomy-mec_speaker input[type=search],.taxonomy-mec_speaker input[type=text],.taxonomy-mec_speaker input[type=url],.taxonomy-mec_speaker select,.taxonomy-mec_speaker textarea{border-radius:5px;min-height:38px;border:none;background-color:#fff;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%)}.post-type-mec-books.taxonomy-mec_coupon select,.post-type-mec-events.taxonomy-mec_category select,.post-type-mec-events.taxonomy-mec_label select,.post-type-mec-events.taxonomy-post_tag select,.taxonomy-mec_location select,.taxonomy-mec_organizer select,.taxonomy-mec_speaker select{appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;min-height:39px;line-height:39px;background-color:#fff;border-radius:2px;padding-left:8px;box-shadow:0 1px 3px rgb(0 0 0 / 2%);transition:all .23s ease;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDE3IDE3Ij4KPGc+CjwvZz4KCTxwYXRoIGQ9Ik0xNi4zNTQgNS4wNzVsLTcuODU1IDcuODU0LTcuODUzLTcuODU0IDAuNzA3LTAuNzA3IDcuMTQ1IDcuMTQ2IDcuMTQ4LTcuMTQ3IDAuNzA4IDAuNzA4eiIgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:26px 10px;background-position:right center;min-width:160px;border:1px solid #e6e9eb}.post-type-mec-books.taxonomy-mec_coupon table.fixed,.post-type-mec-events.taxonomy-mec_category table.fixed,.post-type-mec-events.taxonomy-mec_label table.fixed,.post-type-mec-events.taxonomy-post_tag table.fixed,.taxonomy-mec_location table.fixed,.taxonomy-mec_organizer table.fixed,.taxonomy-mec_speaker table.fixed{margin-top:21px}.taxonomy-mec_category .wp-color-result-text{all:unset;color:#fff;font-weight:500;line-height:1.4}.taxonomy-mec_category .wp-picker-input-wrap label{margin-top:0!important}.post-type-mec-books.taxonomy-mec_coupon textarea,.post-type-mec-events.taxonomy-mec_category textarea,.post-type-mec-events.taxonomy-mec_label textarea,.post-type-mec-events.taxonomy-post_tag textarea,.taxonomy-mec_location textarea,.taxonomy-mec_organizer textarea,.taxonomy-mec_speaker textarea{min-height:86px}.post-type-mec-books.taxonomy-mec_coupon .button,.post-type-mec-books.taxonomy-mec_coupon .button-secondary,.post-type-mec-events.taxonomy-mec_category .button,.post-type-mec-events.taxonomy-mec_category .button-secondary,.post-type-mec-events.taxonomy-mec_label .button,.post-type-mec-events.taxonomy-mec_label .button-secondary,.post-type-mec-events.taxonomy-post_tag .button,.post-type-mec-events.taxonomy-post_tag .button-secondary,.taxonomy-mec_location .button,.taxonomy-mec_location .button-secondary,.taxonomy-mec_organizer .button,.taxonomy-mec_organizer .button-secondary,.taxonomy-mec_speaker .button{color:#fff;font-weight:500;border-radius:60px;box-shadow:0 0 0 4px rgb(56 213 237 / 1%);text-shadow:none;background:#38d5ed;border:none;transition:.24s;line-height:1.4;padding:9px 36px 12px}.post-type-mec-books.taxonomy-mec_coupon .mec_upload_image_button,.post-type-mec-events.taxonomy-mec_category .mec_upload_image_button,.post-type-mec-events.taxonomy-mec_label .mec_upload_image_button,.post-type-mec-events.taxonomy-post_tag .mec_upload_image_button,.taxonomy-mec_location .mec_upload_image_button,.taxonomy-mec_organizer .mec_upload_image_button,.taxonomy-mec_speaker .mec_upload_image_button{margin-bottom:20px}.post-type-mec-books.taxonomy-mec_coupon .button-secondary:focus,.post-type-mec-books.taxonomy-mec_coupon .button-secondary:hover,.post-type-mec-books.taxonomy-mec_coupon .button.focus,.post-type-mec-books.taxonomy-mec_coupon .button:focus,.post-type-mec-books.taxonomy-mec_coupon .button:hover,.post-type-mec-events.taxonomy-mec_category .button-secondary:focus,.post-type-mec-events.taxonomy-mec_category .button-secondary:hover,.post-type-mec-events.taxonomy-mec_category .button.focus,.post-type-mec-events.taxonomy-mec_category .button:focus,.post-type-mec-events.taxonomy-mec_category .button:hover,.post-type-mec-events.taxonomy-mec_label .button-secondary:focus,.post-type-mec-events.taxonomy-mec_label .button-secondary:hover,.post-type-mec-events.taxonomy-mec_label .button.focus,.post-type-mec-events.taxonomy-mec_label .button:focus,.post-type-mec-events.taxonomy-mec_label .button:hover,.post-type-mec-events.taxonomy-post_tag .button-secondary:focus,.post-type-mec-events.taxonomy-post_tag .button-secondary:hover,.post-type-mec-events.taxonomy-post_tag .button.focus,.post-type-mec-events.taxonomy-post_tag .button:focus,.post-type-mec-events.taxonomy-post_tag .button:hover,.taxonomy-mec_location .button-secondary:focus,.taxonomy-mec_location .button-secondary:hover,.taxonomy-mec_location .button.focus,.taxonomy-mec_location .button:focus,.taxonomy-mec_location .button:hover,.taxonomy-mec_organizer .button-secondary:focus,.taxonomy-mec_organizer .button-secondary:hover,.taxonomy-mec_organizer .button.focus,.taxonomy-mec_organizer .button:focus,.taxonomy-mec_organizer .button:hover,.taxonomy-mec_speaker .button-secondary:focus,.taxonomy-mec_speaker .button-secondary:hover,.taxonomy-mec_speaker .button.focus,.taxonomy-mec_speaker .button:focus,.taxonomy-mec_speaker .button:hover{background:#26bbd2;box-shadow:0 0 0 4px rgb(56 213 237 / 15%);cursor:pointer;color:#fff}.post-type-mec-events #TB_window{height:470px!important;top:calc(50% - 235px)!important}.post-type-mec-events #TB_ajaxContent{width:calc(100% - 30px)!important}.m-e-calendar_page_MEC-support #wpwrap .welcome-content .fserv-container .fserv-form-description{position:relative!important}.taxonomy-mec_category #TB_window{overflow:hidden}@media (max-width:480px){.m-e-calendar_page_MEC-support #wpwrap .welcome-content .fserv-container .fserv-form-description,.m-e-calendar_page_MEC-support #wpwrap .welcome-content .fserv-container form{padding-left:90px!important}.m-e-calendar_page_MEC-support #wpwrap .welcome-content .fserv-container form .fserv-field{width:40%!important}.m-e-calendar_page_MEC-support #wpwrap .welcome-content .fserv-container:before{top:100px;left:10px}}.post-type-mec-events.taxonomy-mec_label .button.wp-color-result{background:0 0;text-align:right;padding:0 0 0 32px;border-radius:4px;box-shadow:unset;border:1px solid #ddd}.post-type-mec-events.taxonomy-mec_label .button.wp-color-result .wp-color-result-text{height:30px}.post-type-mec-events.taxonomy-mec_label .wp-picker-container input[type=text].wp-color-picker{width:70px;margin-top:-10px;height:32px}.post-type-mec-events.taxonomy-mec_label .wp-picker-default{height:32px;padding-top:2px;padding-bottom:2px}.post-type-mec-events.taxonomy-mec_label .wp-picker-container .iris-picker{margin-top:-10px}.mec-admin-dark-mode #mec-wrap .nav-tab-wrapper .nav-tab,.mec-admin-dark-mode #mec-wrap h2.nav-tab-wrapper,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix #mec-wrap h2.nav-tab-wrapper{background:#1f1f1f}.mec-admin-dark-mode #mec_bfixed_form_fields li,.mec-admin-dark-mode #mec_calendar_filter,.mec-admin-dark-mode #mec_calendar_filter .mec-add-booking-tabs-left,.mec-admin-dark-mode #mec_calendar_filter .mec-add-booking-tabs-wrap,.mec-admin-dark-mode #mec_calendar_filter .mec-add-event-tabs-left,.mec-admin-dark-mode #mec_calendar_filter .mec-add-event-tabs-wrap,.mec-admin-dark-mode #mec_calendar_filter .mec-create-shortcode-tabs-left,.mec-admin-dark-mode #mec_metabox_booking,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-left,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-wrap,.mec-admin-dark-mode #mec_metabox_booking .mec-add-event-tabs-left,.mec-admin-dark-mode #mec_metabox_booking .mec-add-event-tabs-wrap,.mec-admin-dark-mode #mec_metabox_booking .mec-create-shortcode-tabs-left,.mec-admin-dark-mode #mec_metabox_details,.mec-admin-dark-mode #mec_metabox_details .mec-add-booking-tabs-left,.mec-admin-dark-mode #mec_metabox_details .mec-add-booking-tabs-wrap,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-left,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-wrap,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-wrap .select2-container,.mec-admin-dark-mode #mec_metabox_details .mec-create-shortcode-tab-content .select2-container,.mec-admin-dark-mode #mec_metabox_details .mec-create-shortcode-tabs-left,.mec-admin-dark-mode #webnus-dashboard .mec-pro-notice .info-msg,.mec-admin-dark-mode .mec-attendees-wrapper .mec-attendees-list .w-clearfix:nth-child(odd),.mec-admin-dark-mode .w-box,.mec-admin-dark-mode .w-box-content pre,.mec-admin-dark-mode .w-clearfix.w-box.mec-addons-notification-box-wrap span,.mec-admin-dark-mode .w-clearfix.w-box.mec-cmsg-2-notification-box-wrap span,.mec-admin-dark-mode .w-clearfix.w-box.mec-cmsg-notification-box-wrap span,.mec-admin-dark-mode .wns-be-main,.mec-admin-dark-mode .wns-be-main .mec-container,.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu>li.active>a,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix .mec-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_field_types button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-content,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-infobar,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-editor-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-support #webnus-dashboard .mec-pro-notice .info-msg,.mec-admin-dark-mode.post-type-mec-books #major-publishing-actions,.mec-admin-dark-mode.post-type-mec-books #screen-meta,.mec-admin-dark-mode.post-type-mec-books #screen-meta-links .show-settings,.mec-admin-dark-mode.post-type-mec-books .postbox,.mec-admin-dark-mode.post-type-mec-events #major-publishing-actions,.mec-admin-dark-mode.post-type-mec-events #mec_event_form_fields li,.mec-admin-dark-mode.post-type-mec-events #mec_reg_form_fields li,.mec-admin-dark-mode.post-type-mec-events #post-status-info,.mec-admin-dark-mode.post-type-mec-events #screen-meta,.mec-admin-dark-mode.post-type-mec-events #screen-meta-links .show-settings,.mec-admin-dark-mode.post-type-mec-events .categorydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .components-popover__content,.mec-admin-dark-mode.post-type-mec-events .customlinkdiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .postbox,.mec-admin-dark-mode.post-type-mec-events .posttypediv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .taxonomydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .wp-switch-editor,.mec-admin-dark-mode.post-type-mec-events .wp-tab-active,.mec-admin-dark-mode.post-type-mec-events .wp-tab-panel,.mec-admin-dark-mode.post-type-mec-events div.mce-panel,.mec-admin-dark-mode.post-type-mec-events div.mce-toolbar-grp,.mec-admin-dark-mode.post-type-mec-events ul.add-menu-item-tabs li.tabs,.mec-admin-dark-mode.post-type-mec-events ul.category-tabs li.tabs,.mec-admin-dark-mode.post-type-mec_calendars #major-publishing-actions,.mec-admin-dark-mode.post-type-mec_calendars #post-status-info,.mec-admin-dark-mode.post-type-mec_calendars #screen-meta,.mec-admin-dark-mode.post-type-mec_calendars #screen-meta-links .show-settings,.mec-admin-dark-mode.post-type-mec_calendars .categorydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .customlinkdiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .postbox,.mec-admin-dark-mode.post-type-mec_calendars .posttypediv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .taxonomydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .wp-switch-editor,.mec-admin-dark-mode.post-type-mec_calendars .wp-tab-active,.mec-admin-dark-mode.post-type-mec_calendars .wp-tab-panel,.mec-admin-dark-mode.post-type-mec_calendars div.mce-panel,.mec-admin-dark-mode.post-type-mec_calendars div.mce-toolbar-grp,.mec-admin-dark-mode.post-type-mec_calendars ul.add-menu-item-tabs li.tabs,.mec-admin-dark-mode.post-type-mec_calendars ul.category-tabs li.tabs{background:#1f1f1f;color:#fff}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .extra .mec-cmsg-2-notification-box-wrap .w-box-head,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-custom-msg-2-notification-set-box.extra,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-custom-msg-notification-set-box.extra{border-color:#515151}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-custom-msg-2-notification-set-box.extra,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-custom-msg-notification-set-box.extra{background-color:#515151}.mec-admin-dark-mode .mec-form-row .mec-box,.mec-admin-dark-mode .mec-form-row input[type=checkbox],.mec-admin-dark-mode .mec-form-row ul.mec-message-categories li ul,.mec-admin-dark-mode .mec-meta-box-fields .mec-box,.mec-admin-dark-mode.m-e-calendar_page_MEC-support #webnus-dashboard .mec-faq-accordion-trigger a{background:#333;border-color:#353535;box-shadow:0 1px 6px -2px #000}.mec-admin-dark-mode #mec_bfixed_form_fields,.mec-admin-dark-mode #mec_bfixed_form_fields #mec_bfixed_form_fields li,.mec-admin-dark-mode #mec_calendar_filter .mec-add-booking-tabs-left a,.mec-admin-dark-mode #mec_calendar_filter .mec-add-event-tabs-left a,.mec-admin-dark-mode #mec_calendar_filter .mec-create-shortcode-tabs-left a,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-left a,.mec-admin-dark-mode #mec_metabox_booking .mec-add-event-tabs-left a,.mec-admin-dark-mode #mec_metabox_booking .mec-create-shortcode-tabs-left a,.mec-admin-dark-mode #mec_metabox_details .mec-add-booking-tabs-left a,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-left a,.mec-admin-dark-mode #mec_metabox_details .mec-create-shortcode-tabs-left a,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix .mec-form-row.mec-syn-schedule,.mec-admin-dark-mode.post-type-mec-events #mec_event_form_fields,.mec-admin-dark-mode.post-type-mec-events #mec_reg_form_fields,.mec-admin-dark-mode.post-type-mec-events .select2-search--dropdown,.mec-admin-dark-mode.post-type-mec_calendars .select2-search--dropdown{background:#282828;border-color:#353535}.mec-admin-dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice{color:#000}.mec-admin-dark-mode.post-type-mec-books ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.post-type-mec-books ul#adminmenu>li.current>a.current:after,.mec-admin-dark-mode.post-type-mec-events ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.post-type-mec-events ul#adminmenu>li.current>a.current:after,.mec-admin-dark-mode.post-type-mec_calendars ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.post-type-mec_calendars ul#adminmenu>li.current>a.current:after,.mec-admin-dark-mode.toplevel_page_mec-intro ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.toplevel_page_mec-intro ul#adminmenu>li.current>a.current:after{border-right-color:#23282d}.mec-admin-dark-mode #mec_calendar_filter .mec-add-booking-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_calendar_filter .mec-add-event-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_calendar_filter .mec-create-shortcode-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_metabox_booking .mec-add-event-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_metabox_booking .mec-create-shortcode-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_metabox_details .mec-add-booking-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-left a.mec-tab-active,.mec-admin-dark-mode #mec_metabox_details .mec-create-shortcode-tabs-left a.mec-tab-active,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-dropdown,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_gateways_form li .mec-gateway-options-form,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #payment_gateways_option li .mec-gateway-options-form,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-container--default .select2-selection--multiple,.mec-admin-dark-mode.post-type-mec_calendars .mec-custom-nice-select ul.list{background:#000;box-shadow:0 2px 12px -5px #000}.mec-admin-dark-mode .extra .w-box-head,.mec-admin-dark-mode .mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child,.mec-admin-dark-mode .mec-form-row ul.mec-message-categories,.mec-admin-dark-mode .mec-message-categories li.mec-acc-label,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mce-btn-group:not(:first-child),.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-container--default .select2-search--dropdown .select2-search__field,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-dropdown,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .wp-editor-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec-occurrences .mec-occurrences-list li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_field_types button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields li,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .html-active .switch-html,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-custom-msg-notification-set-box.extra,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-container--default .select2-selection--multiple,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-container--default .select2-selection--multiple .select2-selection__choice,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .tmce-active .switch-tmce,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-content,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-footer,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-infobar,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-infobar:before,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-core-ui .quicktags-toolbar input.button.button-small,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-editor-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-switch-editor,.mec-admin-dark-mode.post-type-mec-books #screen-meta,.mec-admin-dark-mode.post-type-mec-books #screen-meta-links .show-settings,.mec-admin-dark-mode.post-type-mec-books .postbox,.mec-admin-dark-mode.post-type-mec-books .postbox .hndle,.mec-admin-dark-mode.post-type-mec-books .postbox hr,.mec-admin-dark-mode.post-type-mec-books .wp-heading-inline+.page-title-action,.mec-admin-dark-mode.post-type-mec-events #major-publishing-actions,.mec-admin-dark-mode.post-type-mec-events #post-status-info,.mec-admin-dark-mode.post-type-mec-events #screen-meta,.mec-admin-dark-mode.post-type-mec-events #screen-meta-links .show-settings,.mec-admin-dark-mode.post-type-mec-events .categorydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .components-popover__content,.mec-admin-dark-mode.post-type-mec-events .customlinkdiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .edit-post-meta-boxes-area #poststuff .stuffbox>h3,.mec-admin-dark-mode.post-type-mec-events .edit-post-meta-boxes-area #poststuff h2.hndle,.mec-admin-dark-mode.post-type-mec-events .edit-post-meta-boxes-area #poststuff h3.hndle,.mec-admin-dark-mode.post-type-mec-events .postbox,.mec-admin-dark-mode.post-type-mec-events .postbox h2,.mec-admin-dark-mode.post-type-mec-events .posttypediv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .taxonomydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec-events .wp-editor-container,.mec-admin-dark-mode.post-type-mec-events .wp-switch-editor,.mec-admin-dark-mode.post-type-mec-events .wp-tab-active,.mec-admin-dark-mode.post-type-mec-events .wp-tab-panel,.mec-admin-dark-mode.post-type-mec-events div.mce-panel,.mec-admin-dark-mode.post-type-mec-events div.mce-toolbar-grp,.mec-admin-dark-mode.post-type-mec-events ul.add-menu-item-tabs li.tabs,.mec-admin-dark-mode.post-type-mec-events ul.category-tabs li.tabs,.mec-admin-dark-mode.post-type-mec_calendars #major-publishing-actions,.mec-admin-dark-mode.post-type-mec_calendars #post-status-info,.mec-admin-dark-mode.post-type-mec_calendars #screen-meta,.mec-admin-dark-mode.post-type-mec_calendars #screen-meta-links .show-settings,.mec-admin-dark-mode.post-type-mec_calendars .categorydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .customlinkdiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .mec-custom-nice-select ul.list,.mec-admin-dark-mode.post-type-mec_calendars .mec-custom-nice-select ul.list li.option,.mec-admin-dark-mode.post-type-mec_calendars .mec-sed-methods li,.mec-admin-dark-mode.post-type-mec_calendars .postbox,.mec-admin-dark-mode.post-type-mec_calendars .postbox h2,.mec-admin-dark-mode.post-type-mec_calendars .posttypediv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .taxonomydiv div.tabs-panel,.mec-admin-dark-mode.post-type-mec_calendars .wp-editor-container,.mec-admin-dark-mode.post-type-mec_calendars .wp-switch-editor,.mec-admin-dark-mode.post-type-mec_calendars .wp-tab-active,.mec-admin-dark-mode.post-type-mec_calendars .wp-tab-panel,.mec-admin-dark-mode.post-type-mec_calendars div.mce-panel,.mec-admin-dark-mode.post-type-mec_calendars div.mce-toolbar-grp,.mec-admin-dark-mode.post-type-mec_calendars ul.add-menu-item-tabs li.tabs,.mec-admin-dark-mode.post-type-mec_calendars ul.category-tabs li.tabs{border-color:#353535}.mec-admin-dark-mode #mec_bfixed_form_fields input[type=checkbox],.mec-admin-dark-mode #mec_calendar_filter .mec-calendar-metabox .wn-mec-select,.mec-admin-dark-mode #mec_calendar_filter .mec-form-row input[type=number],.mec-admin-dark-mode #mec_calendar_filter .mec-form-row input[type=text],.mec-admin-dark-mode #mec_calendar_filter .mec-form-row input[type=url],.mec-admin-dark-mode #mec_calendar_filter .mec-form-row select,.mec-admin-dark-mode #mec_calendar_filter .mec-form-row textarea,.mec-admin-dark-mode #mec_metabox_booking .mec-add-event-tabs-wrap .select2-container,.mec-admin-dark-mode #mec_metabox_booking .mec-calendar-metabox .mec-form-row input[type=checkbox],.mec-admin-dark-mode #mec_metabox_booking .mec-calendar-metabox .wn-mec-select,.mec-admin-dark-mode #mec_metabox_booking .mec-create-shortcode-tab-content .select2-container,.mec-admin-dark-mode #mec_metabox_booking .mec-form-row input[type=number],.mec-admin-dark-mode #mec_metabox_booking .mec-form-row input[type=text],.mec-admin-dark-mode #mec_metabox_booking .mec-form-row input[type=url],.mec-admin-dark-mode #mec_metabox_booking .mec-form-row select,.mec-admin-dark-mode #mec_metabox_booking .mec-form-row textarea,.mec-admin-dark-mode #mec_metabox_booking .mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-admin-dark-mode #mec_metabox_booking .mec-meta-box-fields .mec-form-row input[type=checkbox],.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-wrap .select2-container,.mec-admin-dark-mode #mec_metabox_details .mec-calendar-metabox .mec-form-row input[type=checkbox],.mec-admin-dark-mode #mec_metabox_details .mec-calendar-metabox .wn-mec-select,.mec-admin-dark-mode #mec_metabox_details .mec-create-shortcode-tab-content .select2-container,.mec-admin-dark-mode #mec_metabox_details .mec-form-row input[type=number],.mec-admin-dark-mode #mec_metabox_details .mec-form-row input[type=text],.mec-admin-dark-mode #mec_metabox_details .mec-form-row input[type=url],.mec-admin-dark-mode #mec_metabox_details .mec-form-row select,.mec-admin-dark-mode #mec_metabox_details .mec-form-row textarea,.mec-admin-dark-mode #mec_metabox_details .mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-admin-dark-mode #mec_metabox_details .mec-meta-box-fields .mec-form-row input[type=checkbox],.mec-admin-dark-mode #mec_reg_form_fields input[type=checkbox],.mec-admin-dark-mode .mec-addon-box-version,.mec-admin-dark-mode .mec-calendar-metabox .wn-mec-select,.mec-admin-dark-mode .mec-form-row input[type=checkbox],.mec-admin-dark-mode .mec-form-row input[type=number],.mec-admin-dark-mode .mec-form-row input[type=radio],.mec-admin-dark-mode .mec-form-row input[type=text],.mec-admin-dark-mode .mec-form-row input[type=url],.mec-admin-dark-mode .mec-form-row select,.mec-admin-dark-mode .mec-form-row textarea,.mec-admin-dark-mode .mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-admin-dark-mode.m-e-calendar_page_MEC-addons,.mec-admin-dark-mode.m-e-calendar_page_MEC-go-pro,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .html-active .switch-html,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-select-event-wrap .select2-container--default .select2-selection--single,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-sendmail-form-wrap,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-sendmail-wrap,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-send-email-form-wrap input.widefat,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-container--default .select2-results__option--highlighted[aria-selected],.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-container--default .select2-search--dropdown .select2-search__field,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .tmce-active .switch-tmce,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .wp-switch-editor,.mec-admin-dark-mode.m-e-calendar_page_MEC-report div.mce-toolbar-grp,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec-invoice-custom-css,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields input[type=number],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields input[type=text],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields select,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields textarea,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields input[type=number],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields input[type=text],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields select,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields textarea,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_field_types button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields input[type=number],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields input[type=text],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields select,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields textarea,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #titlediv #title,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-add-event-tabs-wrap .select2-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-add-event-tabs-wrap .select2-container span,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-create-shortcode-tab-content .select2-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-create-shortcode-tab-content .select2-container span,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .quicktags-toolbar,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-container--default .select2-selection--multiple,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-container--default.select2-container--focus .select2-selection--multiple,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-dropdown,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-results__option[aria-selected],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row input[type=email],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row input[type=number],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row input[type=password],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row input[type=search],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row input[type=text],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row input[type=url],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main .mec-form-row select,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-core-ui .quicktags-toolbar input.button.button-small,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=checkbox],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=color],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=date],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=datetime-local],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=datetime],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=email],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=month],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=number],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=password],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=radio],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=search],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=tel],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=text],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=time],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=url],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings input[type=week],.mec-admin-dark-mode.m-e-calendar_page_MEC-settings select,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings textarea,.mec-admin-dark-mode.post-type-mec-books .wn-mec-select,.mec-admin-dark-mode.post-type-mec-books input[type=checkbox],.mec-admin-dark-mode.post-type-mec-books input[type=email],.mec-admin-dark-mode.post-type-mec-books input[type=number],.mec-admin-dark-mode.post-type-mec-books input[type=text],.mec-admin-dark-mode.post-type-mec-books input[type=url],.mec-admin-dark-mode.post-type-mec-books select,.mec-admin-dark-mode.post-type-mec-books textarea,.mec-admin-dark-mode.post-type-mec-events #mec_event_form_fields button,.mec-admin-dark-mode.post-type-mec-events #mec_reg_form_field_types button,.mec-admin-dark-mode.post-type-mec-events #mec_reg_form_fields button,.mec-admin-dark-mode.post-type-mec-events #titlediv #title,.mec-admin-dark-mode.post-type-mec-events .components-form-token-field__input-container,.mec-admin-dark-mode.post-type-mec-events .components-panel__body,.mec-admin-dark-mode.post-type-mec-events .mec-add-event-tabs-wrap .select2-container span,.mec-admin-dark-mode.post-type-mec-events .mec-certain-day>div,.mec-admin-dark-mode.post-type-mec-events .mec-create-shortcode-tab-content .select2-container span,.mec-admin-dark-mode.post-type-mec-events .mec-xi-facebook-import-events .mec-select-deselect-actions li,.mec-admin-dark-mode.post-type-mec-events .mec-xi-google-import-events .mec-select-deselect-actions li,.mec-admin-dark-mode.post-type-mec-events .select2-dropdown,.mec-admin-dark-mode.post-type-mec-events .select2-results__option[aria-selected],.mec-admin-dark-mode.post-type-mec-events .wp-admin p label input[type=checkbox],.mec-admin-dark-mode.post-type-mec-events input[type=checkbox],.mec-admin-dark-mode.post-type-mec-events input[type=color],.mec-admin-dark-mode.post-type-mec-events input[type=date],.mec-admin-dark-mode.post-type-mec-events input[type=datetime-local],.mec-admin-dark-mode.post-type-mec-events input[type=datetime],.mec-admin-dark-mode.post-type-mec-events input[type=email],.mec-admin-dark-mode.post-type-mec-events input[type=month],.mec-admin-dark-mode.post-type-mec-events input[type=number],.mec-admin-dark-mode.post-type-mec-events input[type=password],.mec-admin-dark-mode.post-type-mec-events input[type=radio],.mec-admin-dark-mode.post-type-mec-events input[type=search],.mec-admin-dark-mode.post-type-mec-events input[type=tel],.mec-admin-dark-mode.post-type-mec-events input[type=text],.mec-admin-dark-mode.post-type-mec-events input[type=time],.mec-admin-dark-mode.post-type-mec-events input[type=url],.mec-admin-dark-mode.post-type-mec-events input[type=week],.mec-admin-dark-mode.post-type-mec-events select,.mec-admin-dark-mode.post-type-mec-events textarea,.mec-admin-dark-mode.post-type-mec_calendars #titlediv #title,.mec-admin-dark-mode.post-type-mec_calendars .mec-add-event-tabs-wrap .select2-container,.mec-admin-dark-mode.post-type-mec_calendars .mec-add-event-tabs-wrap .select2-container span,.mec-admin-dark-mode.post-type-mec_calendars .mec-create-shortcode-tab-content .select2-container,.mec-admin-dark-mode.post-type-mec_calendars .mec-create-shortcode-tab-content .select2-container span,.mec-admin-dark-mode.post-type-mec_calendars .select2-container--default .select2-selection--multiple .select2-selection__choice,.mec-admin-dark-mode.post-type-mec_calendars .select2-dropdown,.mec-admin-dark-mode.post-type-mec_calendars .select2-results__option[aria-selected],.mec-admin-dark-mode.post-type-mec_calendars input[type=checkbox],.mec-admin-dark-mode.post-type-mec_calendars input[type=color],.mec-admin-dark-mode.post-type-mec_calendars input[type=date],.mec-admin-dark-mode.post-type-mec_calendars input[type=datetime-local],.mec-admin-dark-mode.post-type-mec_calendars input[type=datetime],.mec-admin-dark-mode.post-type-mec_calendars input[type=email],.mec-admin-dark-mode.post-type-mec_calendars input[type=month],.mec-admin-dark-mode.post-type-mec_calendars input[type=number],.mec-admin-dark-mode.post-type-mec_calendars input[type=password],.mec-admin-dark-mode.post-type-mec_calendars input[type=radio],.mec-admin-dark-mode.post-type-mec_calendars input[type=search],.mec-admin-dark-mode.post-type-mec_calendars input[type=tel],.mec-admin-dark-mode.post-type-mec_calendars input[type=text],.mec-admin-dark-mode.post-type-mec_calendars input[type=time],.mec-admin-dark-mode.post-type-mec_calendars input[type=url],.mec-admin-dark-mode.post-type-mec_calendars input[type=week],.mec-admin-dark-mode.post-type-mec_calendars select,.mec-admin-dark-mode.post-type-mec_calendars textarea,.mec-admin-dark-mode.toplevel_page_mec-intro .w-box.mec-activation input[name=MECPurchaseCode],.mec-admin-dark-mode.toplevel_page_mec-intro .w-box.mec-activation input[type=radio]+label span,.mec-select-deselect-actions li{background:#1d1d1d;border-color:#353535;color:#d2d2d2}.mec-admin-dark-mode #mec_metabox_booking .mec-form-row input[type=checkbox]:checked,.mec-admin-dark-mode #mec_metabox_details .mec-form-row input[type=checkbox]:checked,.mec-admin-dark-mode .mec-custom-nice-select ul.list li .wn-mec-text:after,.mec-admin-dark-mode .mec-sed-methods li:before{box-shadow:0 1px 6px -2px #000;border-color:#353535;background:#222}.mec-admin-dark-mode .mec-sed-methods li.active,.mec-admin-dark-mode .mec-switcher input+label,.mec-admin-dark-mode .mec-switcher input+label:before,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-container--default .select2-results__option{background-color:#000}.mec-admin-dark-mode .wn-mec-select .option.focus .wn-img-sh img,.mec-admin-dark-mode .wn-mec-select .option.selected.focus .wn-img-sh img,.mec-admin-dark-mode .wn-mec-select .option:hover .wn-img-sh img{background:0 0}.mec-admin-dark-mode .ui-datepicker{background-color:#000;border:1px solid #000;box-shadow:0 0 8px rgba(33,33,33,.6)}.mec-admin-dark-mode .ui-datepicker.ui-widget td a,.mec-admin-dark-mode .w-box.upcoming-events .mec-event-article .mec-detail-button,.mec-admin-dark-mode.post-type-mec-events,.mec-admin-dark-mode.post-type-mec-events .postbox h2,.mec-admin-dark-mode.post-type-mec_calendars .postbox h2{color:#d2d2d2;background:#282828}.mec-admin-dark-mode #mec-advanced-wraper div:first-child>ul *{background:#282828}.mec-admin-dark-mode #mec-advanced-wraper div:first-child>ul>ul>li,.mec-admin-dark-mode #mec_styles_form #mec_styles_CSS,.mec-admin-dark-mode .mec-attendees-wrapper .mec-attendees-list .w-clearfix,.mec-admin-dark-mode .mec-message-categories li.mec-acc-label,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_bfixed_form_fields,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_event_form_fields,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_fields{background:#000}.mec-admin-dark-mode #mec-advanced-wraper div:first-child>ul>ul>li:hover,.mec-admin-dark-mode .mec-active,.mec-admin-dark-mode.post-type-mec-events .select2-container--default .select2-results__option--highlighted[aria-selected]{background:#888!important}.mec-admin-dark-mode.post-type-mec_calendars .mec-calendar-metabox .wn-mec-select .list{border-radius:0 0 2px 2px;box-shadow:0 0 0 1px #353535,0 2px 6px rgba(0,0,0,.07)}.mec-admin-dark-mode #mec_calendar_filter .mec-add-booking-tabs-right,.mec-admin-dark-mode #mec_calendar_filter .mec-add-event-tabs-right,.mec-admin-dark-mode #mec_calendar_filter .mec-create-shortcode-tabs-right,.mec-admin-dark-mode #mec_calendar_filter .ui-sortable-handle,.mec-admin-dark-mode #mec_gateways_form li .mec-gateway-options-form,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-right,.mec-admin-dark-mode #mec_metabox_booking .mec-add-event-tabs-right,.mec-admin-dark-mode #mec_metabox_booking .mec-create-shortcode-tabs-right,.mec-admin-dark-mode #mec_metabox_booking .ui-sortable-handle,.mec-admin-dark-mode #mec_metabox_details .mec-add-booking-tabs-right,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-right,.mec-admin-dark-mode #mec_metabox_details .mec-create-shortcode-tabs-right,.mec-admin-dark-mode #mec_metabox_details .ui-sortable-handle,.mec-admin-dark-mode #payment_gateways_option li .mec-gateway-options-form,.mec-admin-dark-mode .mec-meta-box-fields h4{border-color:#000!important}.mec-admin-dark-mode .wns-be-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content,.mec-admin-dark-mode.post-type-mec-events #wp-content-editor-tools,.mec-admin-dark-mode.post-type-mec_calendars,.mec-admin-dark-mode.post-type-mec_calendars .wn-mec-select .list{background-color:#282828;border-color:#353535}.mec-admin-dark-mode .mec-intro-section-ifarme iframe,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-head,.mec-admin-dark-mode.m-e-calendar_page_MEC-support .fserv-container,.mec-admin-dark-mode.m-e-calendar_page_MEC-support .fserv-container *,.mec-admin-dark-mode.toplevel_page_mec-intro .fserv-container,.mec-admin-dark-mode.toplevel_page_mec-intro .fserv-container *{background:#1f1f1f!important;border-color:#353535!important}.mec-admin-dark-mode .fserv-field input.fserv-input-text{background:#000!important}.mec-admin-dark-mode .block-editor-block-types-list__item-icon,.mec-admin-dark-mode .block-editor-block-types-list__item-title,.mec-admin-dark-mode .w-box.upcoming-events .mec-event-article h4.mec-event-title,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .select2-container--default .select2-selection--single .select2-selection__rendered,.mec-admin-dark-mode.m-e-calendar_page_MEC-support .about-wrap h3,.mec-admin-dark-mode.m-e-calendar_page_MEC-support .fserv-container .fserv-form-name,.mec-admin-dark-mode.toplevel_page_mec-intro .about-wrap h3,.mec-admin-dark-mode.toplevel_page_mec-intro .fserv-container .fserv-form-name{color:#d2d2d2!important}.mec-admin-dark-mode .wns-be-sidebar li a:hover,.mec-admin-dark-mode .wns-be-sidebar li:hover,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .html-active .switch-html,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .tmce-active .switch-tmce,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-switch-editor,.mec-admin-dark-mode.post-type-mec_calendars .wn-mec-select .option:hover{background:#000;color:#d2d2d2}.mec-admin-dark-mode .wns-be-sidebar li a,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix h1,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix h2,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix h3,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix h4,.mec-admin-dark-mode.m-e-calendar_page_MEC-report .mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-head span,.mec-admin-dark-mode.m-e-calendar_page_MEC-report h2,.mec-admin-dark-mode.m-e-calendar_page_MEC-report h4,.mec-admin-dark-mode.m-e-calendar_page_MEC-support #webnus-dashboard .mec-faq-accordion-trigger a,.mec-admin-dark-mode.post-type-mec-books .postbox h1,.mec-admin-dark-mode.post-type-mec-books .postbox h2,.mec-admin-dark-mode.post-type-mec-books .postbox h3,.mec-admin-dark-mode.post-type-mec-events .components-panel__body-toggle.components-button,.mec-admin-dark-mode.post-type-mec-events .wrap h1.wp-heading-inline,.mec-admin-dark-mode.post-type-mec_calendars .mec-custom-nice-select ul.list li.option .wn-mec-text{color:#d2d2d2}.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu>li.active>a,.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu>li.active>a:hover{border:none}.mec-admin-dark-mode .wns-be-sidebar li.active ul.subsection{background:#282828;border-bottom:1px solid #353535}.mec-admin-dark-mode .wns-be-sidebar li .subsection a{background:#282828;color:#636363;opacity:1;font-size:12px;padding:6px 4px 6px 46px}.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu>li.active>a,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-infobar,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-main{box-shadow:0 2px 12px -5px #000}.mec-admin-dark-mode .wns-be-sidebar .mec-settings-menu .mec-settings-submenu a,.mec-admin-dark-mode li.wns-be-group-menu-li.mec-settings-menu .mec-settings-submenu,.mec-admin-dark-mode.post-type-mec_calendars .wn-mec-select .option.focus,.mec-admin-dark-mode.post-type-mec_calendars .wn-mec-select .option.selected.focus,.mec-admin-dark-mode.post-type-mec_calendars .wn-mec-select .option:hover{background:#000;color:#d2d2d2;border-color:#353535}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings,.mec-admin-dark-mode.post-type-mec_calendars .mec-custom-nice-select ul.list li.option{background:#000!important;color:#fff!important}.mec-admin-dark-mode.m-e-calendar_page_MEC-addons,.mec-admin-dark-mode.m-e-calendar_page_MEC-addons .about-wrap h1,.mec-admin-dark-mode.m-e-calendar_page_MEC-go-pro,.mec-admin-dark-mode.m-e-calendar_page_MEC-go-pro h1,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix h1,.mec-admin-dark-mode.m-e-calendar_page_MEC-report,.mec-admin-dark-mode.m-e-calendar_page_MEC-report h1,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings div.mce-panel,.mec-admin-dark-mode.m-e-calendar_page_MEC-support,.mec-admin-dark-mode.m-e-calendar_page_MEC-support h1,.mec-admin-dark-mode.post-type-mec-books,.mec-admin-dark-mode.post-type-mec-books h1,.mec-admin-dark-mode.post-type-mec_calendars,.mec-admin-dark-mode.post-type-mec_calendars .wrap h1.wp-heading-inline,.mec-admin-dark-mode.toplevel_page_mec-intro,.mec-admin-dark-mode.toplevel_page_mec-intro .about-wrap h1{background:#282828!important;color:#d2d2d2}.mec-admin-dark-mode .w-theme-version{background:#1f1f1f}.mec-admin-dark-mode .mec-sed-methods li.active,.mec-admin-dark-mode .wns-be-container .wns-be-group-tab h2,.mec-admin-dark-mode .wns-be-container .wns-be-group-tab h4,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix #mec-wrap .nav-tab-wrapper .nav-tab,.mec-admin-dark-mode.m-e-calendar_page_MEC-ix #mec-wrap h2.nav-tab-wrapper,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .select2-container--default .select2-selection--multiple .select2-selection__choice{color:#d2d2d2}.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu li a:hover{color:#07bbe9}.mec-admin-dark-mode.m-e-calendar_page_MEC-ix #mec-wrap .nav-tab-wrapper .nav-tab-active{background:#008aff;background:linear-gradient(95deg,#36a2ff 0,#008aff 50%,#0072ff 100%)}.mec-admin-dark-mode .wns-be-container #wns-be-infobar:before{content:'';width:261px;height:78px;display:block;position:absolute;left:0;top:0;background:#1f1f1f url(../img/webnus-logo2.png) no-repeat center;border-bottom:1px solid #dedede;background-size:220px;z-index:997}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .mec-custom-msg-notification-set-box.extra,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wns-be-container #wns-be-footer,.mec-admin-dark-mode.post-type-mec-books #titlediv #title,.mec-admin-dark-mode.post-type-mec-books .postbox h1{background:#1f1f1f!important}.mec-admin-dark-mode .mec-settings-menu .mec-settings-submenu:after,.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu li .subsection li.active a:after,.mec-admin-dark-mode .wns-be-sidebar .wns-be-group-menu li .subsection li.active a:before{border-right-color:#353535}.mec-admin-dark-mode .mec-switcher input:checked+label:before{background-color:#d2d2d2;box-shadow:2px 2px 12px -2px #ccc inset}.mec-admin-dark-mode .mec-switcher input:checked+label{box-shadow:0 3px 11px -7px #000}.mec-admin-dark-mode .lity.mec-add-event-popup,.mec-admin-dark-mode .lity.mec-add-shortcode-popup,.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup,.mec-admin-dark-mode .mec-add-shortcode-popup div#mec_popup_shortcode{background:#282828}.mec-admin-dark-mode .lity.mec-add-event-popup .lity-content,.mec-admin-dark-mode .lity.mec-add-shortcode-popup .lity-content{box-shadow:0 3px 20px 0 rgba(0,0,0,.55)}.mec-admin-dark-mode .mec-add-event-popup .mec-meta-box-colors-container,.mec-admin-dark-mode .mec-steps-container,.mec-admin-dark-mode .mec-steps-header{background:#000}.mec-admin-dark-mode .mec-add-event-popup div#mec_popup_event,.mec-admin-dark-mode .mec-steps-panel{background:#1f1f1f}.mec-admin-dark-mode button.lity-close{background:#000;box-shadow:0 3px 8px 0 rgba(0,0,0,.55)}.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li{border:2px solid #282828;background:#000!important}.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text:before,.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label input{background:#282828;border-color:#1f1f1f;box-shadow:0 3px 6px 0 rgba(0,0,0,.05)}.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li.active{box-shadow:0 3px 5px rgba(0,0,0,.2)}.mec-admin-dark-mode .nicescroll-cursors{background-color:#000!important}.mec-admin-dark-mode .mec-add-event-popup .mec-categories-tab-contents,.mec-admin-dark-mode .mec-add-event-popup .mec-form-row.mec-available-color-row,.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content.mec-steps-content-7.mec-steps-content-active,.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div,.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode{border-color:#282828;background:#000}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code{background:rgba(266,266,266,.35)}.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code code,.mec-admin-dark-mode .mec-steps-content h3{color:#d2d2d2}.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.focus,.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.selected.focus,.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option:hover{background:#000}.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list{background:#282828}.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list::-webkit-scrollbar-track{background-color:#333}.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list::-webkit-scrollbar{width:3px;background-color:#333}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code button{margin-left:unset}.mec-admin-dark-mode .wp-picker-container .wp-color-result.button{background:inherit}.mec-admin-dark-mode .mec-add-event-popup .mec-steps-content.mec-steps-content-6 .mce-container-body.mce-stack-layout{background:#000;border-color:#000!important}.mec-admin-dark-mode .mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup{background-color:#000;border-color:#282828}.mec-admin-dark-mode #wns-be-content .noresults label,.mec-admin-dark-mode #wns-be-content .results .results .noresults label,.mec-admin-dark-mode #wns-be-content ul li.disable,.mec-admin-dark-mode #wns-be-content ul li.disable label{color:#666}.mec-admin-dark-mode #wns-be-content .results .results .results label,.mec-admin-dark-mode #wns-be-content .results label,.mec-admin-dark-mode #wns-be-content ul li.enable,.mec-admin-dark-mode #wns-be-content ul li.enable label{color:#fff}.mec-admin-dark-mode.post-type-mec-books table.widefat,.mec-admin-dark-mode.post-type-mec_calendars table.widefat,.post-type-mec-events.mec-admin-dark-mode table.widefat{background:#1f1f1f;border-color:#353535;color:#d2d2d2}.mec-admin-dark-mode.post-type-mec-books .striped>tbody>:nth-child(odd),.mec-admin-dark-mode.post-type-mec-books ul.striped>:nth-child(odd),.mec-admin-dark-mode.post-type-mec-events .striped>tbody>:nth-child(odd),.mec-admin-dark-mode.post-type-mec-events ul.striped>:nth-child(odd),.mec-admin-dark-mode.post-type-mec_calendars .striped>tbody>:nth-child(odd),.mec-admin-dark-mode.post-type-mec_calendars ul.striped>:nth-child(odd){background:#282828;border-color:#353535;color:#d2d2d2}.mec-admin-dark-mode.post-type-mec-books .widefat td,.mec-admin-dark-mode.post-type-mec-books .widefat th,.mec-admin-dark-mode.post-type-mec-events .widefat td,.mec-admin-dark-mode.post-type-mec-events .widefat th,.mec-admin-dark-mode.post-type-mec_calendars .widefat td,.mec-admin-dark-mode.post-type-mec_calendars .widefat th{border-color:#000;color:#d2d2d2}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings ul#adminmenu>li.current>a.current:after,.mec-admin-dark-mode.post-type-mec-events ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.post-type-mec-events ul#adminmenu>li.current>a.current:after,.mec-admin-dark-mode.post-type-mec_calendars ul#adminmenu a.wp-has-current-submenu:after,.mec-admin-dark-mode.post-type-mec_calendars ul#adminmenu>li.current>a.current:after{border-right-color:#1f1f1f}.mec-admin-dark-mode #mec_add_fee_button,.mec-admin-dark-mode #mec_add_ticket_variation_button,.mec-admin-dark-mode #mec_bfixed_form_field_types button,.mec-admin-dark-mode #mec_bfixed_form_fields button,.mec-admin-dark-mode #mec_event_form_field_types button,.mec-admin-dark-mode #mec_event_form_fields button,.mec-admin-dark-mode #mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button,.mec-admin-dark-mode #mec_reg_form_field_types button,.mec-admin-dark-mode #mec_reg_form_fields button,.mec-admin-dark-mode #taxes_option #mec_fees_list .mec-form-row .button,.mec-admin-dark-mode #ticket_variations_option #mec_ticket_variations_list .mec-form-row .button,.mec-admin-dark-mode .mec-export-settings,.mec-admin-dark-mode .mec-import-settings,.mec-admin-dark-mode .mec-meta-box-fields .mec-form-row .button:not(.wp-color-result),.mec-admin-dark-mode .mec-occurrences-wrapper .button:not(.wp-color-result),.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .button,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .button-secondary,.mec-admin-dark-mode.post-type-mec-books .button,.mec-admin-dark-mode.post-type-mec-books .wp-heading-inline+.page-title-action,.mec-admin-dark-mode.post-type-mec-events .button,.mec-admin-dark-mode.post-type-mec-events .button-secondary,.mec-admin-dark-mode.post-type-mec-events .wp-heading-inline+.page-title-action,.mec-admin-dark-mode.post-type-mec_calendars .button,.mec-admin-dark-mode.post-type-mec_calendars .wp-heading-inline+.page-title-action{color:#d2d2d2!important;border-color:#353535!important;background:#000}.mec-admin-dark-mode #mec_add_fee_button:hover,.mec-admin-dark-mode #mec_add_ticket_variation_button:hover,.mec-admin-dark-mode #mec_bfixed_form_field_types button:hover,.mec-admin-dark-mode #mec_bfixed_form_fields button:hover,.mec-admin-dark-mode #mec_event_form_field_types button:hover,.mec-admin-dark-mode #mec_event_form_fields button:hover,.mec-admin-dark-mode #mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button:hover,.mec-admin-dark-mode #mec_reg_form_field_types button:hover,.mec-admin-dark-mode #mec_reg_form_fields button:hover,.mec-admin-dark-mode #taxes_option #mec_fees_list .mec-form-row .button:hover,.mec-admin-dark-mode #ticket_variations_option #mec_ticket_variations_list .mec-form-row .button:hover,.mec-admin-dark-mode .mec-export-settings:hover,.mec-admin-dark-mode .mec-import-settings:hover,.mec-admin-dark-mode .mec-meta-box-fields .mec-form-row .button:not(.wp-color-result):hover,.mec-admin-dark-mode .mec-occurrences-wrapper .button:not(.wp-color-result):hover,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .button-secondary:hover,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .button.hover,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .button:hover,.mec-admin-dark-mode.post-type-mec-events .button-secondary:hover,.mec-admin-dark-mode.post-type-mec-events .button.hover,.mec-admin-dark-mode.post-type-mec-events .button:hover,.mec-admin-dark-mode.post-type-mec_calendars .button-secondary:hover,.mec-admin-dark-mode.post-type-mec_calendars .button.hover,.mec-admin-dark-mode.post-type-mec_calendars .button:hover{background:#111;border-color:#333!important;color:#fff}.mec-admin-dark-mode.post-type-mec-events .mec-form-row .button:not(.wp-color-result){height:37px;margin-top:1px;box-shadow:inset 0 2px 4px #282828,inset 0 -2px 4px rgba(0,0,0,.05),0 2px 2px rgba(0,0,0,.06)}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings .wp-color-result-text,.mec-admin-dark-mode.post-type-mec-events .wp-color-result-text{border-left:1px solid #353535;color:#d2d2d2;background:#000}.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec-search-settings{color:#d2d2d2;background:#282828}.mec-admin-dark-mode.taxonomy-mec_category .button,.mec-admin-dark-mode.taxonomy-mec_label .button,.mec-admin-dark-mode.taxonomy-mec_location .button,.mec-admin-dark-mode.taxonomy-mec_organizer .button,.mec-admin-dark-mode.taxonomy-mec_speaker .button,.mec-admin-dark-mode.taxonomy-mec_tag .button{box-shadow:0 3px 10px -4px #000!important}.mec-admin-dark-mode.post-type-mec_calendars .mec-switcher input+label:after,.mec-admin-dark-mode.post-type-mec_calendars .wn-mec-select .option .wn-hover-img-sh img{background:#282828}.mec-admin-dark-mode .attachment-info,.mec-admin-dark-mode .media-frame-toolbar .media-toolbar{border-color:#282828}.mec-admin-dark-mode #webnus-dashboard .welcome-head img,.mec-admin-dark-mode .mce-content-body{background-color:#000!important}.mec-admin-dark-mode .w-box.upcoming-events .mec-event-article{border-bottom:1px solid #444}.mec-admin-dark-mode #webnus-dashboard a,.mec-admin-dark-mode #webnus-dashboard pre,.mec-admin-dark-mode .extra .w-box-head,.mec-admin-dark-mode .mec-addons-notification-box-content.mec-new-addons a,.mec-admin-dark-mode .mec-form-row label,.mec-admin-dark-mode .mec-form-row span,.mec-admin-dark-mode .mec-meta-box-fields h4,.mec-admin-dark-mode .mec-meta-box-fields label,.mec-admin-dark-mode .mec-meta-box-fields p,.mec-admin-dark-mode .mec-meta-box-fields span,.mec-admin-dark-mode .mec-meta-box-fields strong,.mec-admin-dark-mode .mec-new-addons .mec-addons-notification-title,.mec-admin-dark-mode .mec-new-addons p,.mec-admin-dark-mode .mec-new-addons strong,.mec-admin-dark-mode .w-box-content p,.mec-admin-dark-mode .w-box.doc,.mec-admin-dark-mode .w-box.total-bookings ul li,.mec-admin-dark-mode .w-box.total-bookings ul li a,.mec-admin-dark-mode .wns-be-sidebar .mec-settings-menu .mec-settings-submenu a,.mec-admin-dark-mode.m-e-calendar_page_MEC-settings #mec_reg_form_field_types button{color:#d2d2d2!important}.mec-admin-dark-mode .mec-addons-notification-box-content.mec-new-addons a{box-shadow:0 0 0 3px rgb(255 255 255 / 24%)!important}.mec-admin-dark-mode #webnus-dashboard .mec-event-detail{color:#444}.mec-admin-dark-mode #webnus-dashboard .mec-intro-section .mec-intro-section-link-tag{border-color:#2d2d2d}.mec-admin-dark-mode #webnus-dashboard .mec-intro-section .mec-intro-section-link-tag{color:#282828!important}.mec-admin-dark-mode #webnus-dashboard .mec-intro-section .mec-intro-section-link-tag:hover{color:#fff!important}.mec-admin-dark-mode #webnus-dashboard .mec-intro-section .mec-intro-section-link-tag:nth-child(2):hover,.mec-admin-dark-mode #webnus-dashboard .mec-intro-section .mec-intro-section-link-tag:nth-child(3):hover{color:#999!important}.mec-admin-dark-mode .mec-addons-notification-box-content.mec-new-addons a,.mec-admin-dark-mode .w-box.total-bookings ul li{background:#333;box-shadow:0 2px 3px -2px #000}.mec-admin-dark-mode .mec-addons-notification-box-content.mec-new-addons a:hover,.mec-admin-dark-mode .w-box.total-bookings ul li:hover{background:#000}.mec-admin-dark-mode #webnus-dashboard .total-bookings input[type=text],.mec-admin-dark-mode #webnus-dashboard .total-bookings select{background:#000;color:#999;border-color:#111}.mec-admin-dark-mode #mec_category-add-toggle,.mec-admin-dark-mode #sample-permalink a,.mec-admin-dark-mode #set-post-thumbnail,.mec-admin-dark-mode .button-link,.mec-admin-dark-mode .category-tabs a,.mec-admin-dark-mode .mec-add-booking-tabs-left a,.mec-admin-dark-mode .mec-add-event-tabs-left a,.mec-admin-dark-mode .mec-create-shortcode-tabs-left a,.mec-admin-dark-mode.post-type-mec-events .wp-list-table .row-title,.mec-admin-dark-mode.post-type-mec_calendars .wp-list-table .row-title{color:#888!important}.mec-admin-dark-mode .mec-add-booking-tabs-left a.mec-tab-active,.mec-admin-dark-mode .mec-add-event-tabs-left a.mec-tab-active,.mec-admin-dark-mode .mec-create-shortcode-tabs-left a.mec-tab-active{color:#00b0dd}.mec-admin-dark-mode #TB_title,.mec-admin-dark-mode #TB_window{background:#000}.mec-admin-dark-mode #webnus-dashboard .welcome-head img,.mec-admin-dark-mode .webnus-icons-list li:hover{background:#111}.mec-admin-dark-mode #TB_window i{color:#999}.mec-admin-dark-mode #TB_title,.mec-admin-dark-mode .webnus-icons-list li label{border:unset!important}.mec-admin-dark-mode.post-type-mec-books .notice-success,.mec-admin-dark-mode.post-type-mec-books div.updated,.mec-admin-dark-mode.post-type-mec-events .notice-success,.mec-admin-dark-mode.post-type-mec-events div.updated,.mec-admin-dark-mode.post-type-mec_calendars .notice-success,.mec-admin-dark-mode.post-type-mec_calendars div.updated{background:#111;border-top:unset;border-bottom:unset}.mec-admin-dark-mode.post-type-mec-books input,.mec-admin-dark-mode.post-type-mec-events input,.mec-admin-dark-mode.post-type-mec_calendars input{background:#000;color:#888}.mec-admin-dark-mode.post-type-mec-books .subsubsub a,.mec-admin-dark-mode.post-type-mec-events .media-router .media-menu-item,.mec-admin-dark-mode.post-type-mec-events .subsubsub a,.mec-admin-dark-mode.post-type-mec_calendars .subsubsub a{color:#2271b1}.mec-admin-dark-mode.post-type-mec-books .subsubsub a:hover,.mec-admin-dark-mode.post-type-mec-events .media-router .media-menu-item:hover,.mec-admin-dark-mode.post-type-mec-events .subsubsub a:hover,.mec-admin-dark-mode.post-type-mec_calendars .subsubsub a:hover{color:#135e96}.mec-admin-dark-mode #mec_calendar_filter .mec-create-shortcode-tabs-left a,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-left a,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-left a,.mec-admin-dark-mode.post-type-mec-events #set-post-thumbnail,.mec-admin-dark-mode.post-type-mec-events .attachment-info .filename{color:#888}.mec-admin-dark-mode #mec_calendar_filter .mec-create-shortcode-tabs-left a:hover,.mec-admin-dark-mode #mec_metabox_booking .mec-add-booking-tabs-left a:hover,.mec-admin-dark-mode #mec_metabox_details .mec-add-event-tabs-left a:hover,.mec-admin-dark-mode.post-type-mec-events #set-post-thumbnail:hover{color:#a9a9a9}.mec-admin-dark-mode #webnus-dashboard .welcome-head img,.mec-admin-dark-mode .w-theme-version,.mec-admin-dark-mode.post-type-mec_calendars .mec-switcher input+label:after{border-color:#444}.mec-admin-dark-mode.post-type-mec-books .postbox-header,.mec-admin-dark-mode.post-type-mec-events .postbox-header,.mec-admin-dark-mode.post-type-mec_calendars .postbox-header{border-color:#000}.mec-admin-dark-mode.post-type-mec-events .inside div div>a.mec-tab-active:after,.mec-admin-dark-mode.post-type-mec-events .inside div div>a.mec-tab-active:before,.mec-admin-dark-mode.post-type-mec_calendars .inside div div>a.mec-tab-active:after,.mec-admin-dark-mode.post-type-mec_calendars .inside div div>a.mec-tab-active:before{border-right-color:#2d2d2d}.mec-admin-dark-mode .mec-form-row input[type=radio]{box-shadow:0 1px 10px -2px #000}.mec-admin-dark-mode.post-type-mec-books .form-wrap label,.mec-admin-dark-mode.post-type-mec-books .media-frame-title h1,.mec-admin-dark-mode.post-type-mec-books h2,.mec-admin-dark-mode.post-type-mec-events .form-wrap label,.mec-admin-dark-mode.post-type-mec-events .media-frame-title h1,.mec-admin-dark-mode.post-type-mec-events h2{color:#d2d2d2}.mec-admin-dark-mode.post-type-mec-books.taxonomy-mec_coupon .button,.mec-admin-dark-mode.post-type-mec-events.taxonomy-post_tag .button{box-shadow:0 3px 10px -4px #000}.mec-admin-dark-mode.post-type-mec-events .attachments-browser .media-toolbar,.mec-admin-dark-mode.post-type-mec-events .media-frame-content,.mec-admin-dark-mode.post-type-mec-events .media-modal-content{background:#2d2d2d;color:#888}.mec-admin-dark-mode.post-type-mec-events .media-router .active,.mec-admin-dark-mode.post-type-mec-events .media-router .media-menu-item.active:last-child,.mec-admin-dark-mode.post-type-mec-events .media-sidebar,.mec-admin-dark-mode.post-type-mec-events .quicktags-toolbar{background:#222}.mec-admin-dark-mode.post-type-mec-events .attachments-browser .media-toolbar,.mec-admin-dark-mode.post-type-mec-events .media-frame-content,.mec-admin-dark-mode.post-type-mec-events .media-modal-content,.mec-admin-dark-mode.post-type-mec-events .media-router .active,.mec-admin-dark-mode.post-type-mec-events .media-router .media-menu-item.active:last-child,.mec-admin-dark-mode.post-type-mec-events .media-sidebar,.mec-admin-dark-mode.post-type-mec-events .quicktags-toolbar{border-color:#000}.mec-admin-dark-mode.post-type-mec-events .wp-core-ui .attachment-preview{background:#000}.mec-admin-dark-mode.m-e-calendar_page_MEC-addons .mec-addon-box-footer,.mec-admin-dark-mode.m-e-calendar_page_MEC-addons .mec-addon-box-head,.mec-admin-dark-mode.m-e-calendar_page_MEC-addons .w-col-sm-3 .w-box.addon{border-color:#444}.mec-admin-dark-mode.m-e-calendar_page_MEC-addons .mec-addon-box-footer{background:#444}.mec-admin-dark-mode.m-e-calendar_page_MEC-addons .mec-addon-box-title span{color:#d2d2d2}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard{background:#282828!important}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap{background:#1f1f1f}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap .mec-wizard-starter-video a,.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap button{background:#000;border-color:#353535;transition:all .2s ease}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap .mec-wizard-starter-video a:hover,.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap button:hover{border-color:#515151}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-back-box .mec-wizard-back-button{background:0 0;box-shadow:unset}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap svg path{fill:#7b7b7b;stroke:#7b7b7b;transition:all .2s ease}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap a p,.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap button span{color:#7b7b7b;transition:all .2s ease}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap a:hover p,.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap button:hover span{color:#fff}.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap a:hover svg path,.mec-admin-dark-mode.m-e-calendar_page_MEC-wizard .mec-wizard-wrap button:hover svg path{fill:#fff;stroke:#fff}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip,.post-type-mec-books .attendees .mec-booking-attendees-tooltip{position:relative}.mec-attendees-wrapper .mec-attendees-list strong,.post-type-mec-books .attendees strong{line-height:26px;padding-left:26px}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip:before,.post-type-mec-books .attendees .mec-booking-attendees-tooltip:before{position:absolute;content:'\e001';font-family:simple-line-icons;margin:12px 0;top:-30px;left:0;font-size:18px;line-height:12px;color:#40d9f1;padding:0 60px 5px 0}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip ul,.post-type-mec-books .attendees .mec-booking-attendees-tooltip ul{position:absolute;min-width:300px;max-width:600px;display:inline-block;left:60px;top:50%;transform:translateY(-50%);background-color:#535a61;color:#fff;font-weight:300;font-size:14px;letter-spacing:.5px;line-height:1.3;z-index:9999999;box-sizing:border-box;box-shadow:0 4px 45px -8px #444b50;visibility:hidden;opacity:0;transition:opacity .23s;padding:23px 20px 20px 20px;border-radius:8px;margin-top:-13px}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip ul:before,.post-type-mec-books .attendees .mec-booking-attendees-tooltip ul:before{display:block;content:''!important;position:absolute!important;width:12px;height:12px;left:-10px!important;top:50%!important;transform:translate(50%,-50%) rotate(-45deg)!important;background-color:#535a61!important;box-shadow:0 8px 9px -4px #535a61!important;z-index:0!important}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip:hover ul,.post-type-mec-books .attendees .mec-booking-attendees-tooltip:hover ul{visibility:visible;opacity:1}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip ul a,.post-type-mec-books .attendees .mec-booking-attendees-tooltip ul a{color:#40d9f1;margin-bottom:14px;margin-left:0;font-weight:400;font-size:14px;letter-spacing:.5px;position:relative;text-decoration:none;display:block;width:max-content}.mec-attendees-wrapper .mec-attendees-list .mec-booking-attendees-tooltip ul li:last-child a,.post-type-mec-books .attendees .mec-booking-attendees-tooltip ul li:last-child a{margin-bottom:0}.mec-metabox-head-version img,.mec-metabox-head-version p{float:left}.mec-metabox-head-version a{float:right}.mec-metabox-head-version p{margin-top:3px;margin-left:5px;margin-bottom:34px}h3.mec-metabox-feed-head{border-top:1px solid #ccc}div#mec_widget_news_features .inside{padding:0}.mec-metabox-head-wrap{padding:0 12px}#dashboard-widgets h3.mec-metabox-feed-head{padding:8px 12px;border-top:1px solid #eee;border-bottom:1px solid #eee;font-weight:700}.mec-metabox-feed-content{padding:0 12px}.mec-metabox-feed-content ul li a{font-weight:600;display:block}.mec-metabox-feed-content ul li p{margin:3px 0 24px}.mec-metabox-footer a span{font-size:17px;vertical-align:middle;margin-left:2px}.mec-metabox-footer a{text-decoration:none;border-right:1px solid #eee;padding-right:10px;margin-right:12px}.mec-metabox-footer{padding:11px 12px 10px;border-top:1px solid #eee}.mec-metabox-footer a:last-of-type{border:none}.mec-metabox-upcoming-wrap h3{border-top:none!important;padding-top:13px!important}.mec-metabox-head-wrap{box-shadow:0 5px 8px rgba(0,0,0,.05)}.mec-metabox-upcoming-wrap ul li span{float:left}.mec-metabox-upcoming-wrap ul li .mec-metabox-upcoming-event{float:left;margin-left:10px}.mec-metabox-upcoming-wrap ul li .mec-metabox-upcoming-event-date{float:right}.mec-metabox-upcoming-wrap ul{padding:0 12px;background:#f7f7f7;margin:0}.mec-metabox-upcoming-wrap ul li{border-bottom:1px solid #eee;padding:14px 0;margin-bottom:0}.mec-metabox-upcoming-wrap ul li:last-of-type{border:none}.mec-metabox-upcoming-wrap h3{margin-bottom:0!important}.mec-metabox-upcoming-wrap ul li .mec-metabox-upcoming-event a{font-weight:600}.mec-metabox-head-version a span{vertical-align:middle}.mec-metabox-head-version a{padding-left:6px!important}#mec_widget_total_bookings .w-box.total-bookings ul li:first-child{margin-left:1px}#mec_widget_total_bookings .w-box.total-bookings ul li{margin-right:4px}#mec_widget_total_bookings .w-box.total-bookings ul li:last-child{margin-right:0}#mec_widget_total_bookings .w-box.total-bookings ul li a{color:#000}#mec_widget_total_bookings .w-box.total-bookings ul li:hover a{color:#fff}#mec_widget_total_bookings{overflow:hidden}#mec_widget_total_bookings .inside,#mec_widget_total_bookings .w-box{margin:0;padding-bottom:0}#mec_widget_total_bookings .w-col-sm-12{padding:0}#mec_widget_total_bookings .w-box-content button{color:#fff!important;font-weight:500!important;border-radius:2px!important;box-shadow:0 3px 10px -4px #008aff!important;text-shadow:none!important;background:#008aff!important;background:linear-gradient(95deg,#36a2ff 0,#008aff 50%,#0072ff 100%)!important;border:none!important;transition:.24s!important;line-height:39px;padding:0 36px;width:calc(33% - 7px);margin-bottom:14px}#mec_widget_total_bookings .w-box-content input[type=text],#mec_widget_total_bookings .w-box-content select{border:solid 1px #ddd;border-radius:2px;height:40px;line-height:38px;padding-left:10px;box-shadow:0 3px 10px -2px rgba(0,0,0,.05),inset 0 1px 2px rgba(0,0,0,.02)}#mec_widget_total_bookings .w-box-content input[type=text]{width:calc(50% - 5px)}#mec_widget_total_bookings .w-box-content select{width:calc(33% - 2px);margin-bottom:24px;margin-top:20px}div#mec-schema .mec-form-row label{display:inline-block;width:141px}.event-status-schema{background:rgb(247 248 249 / 10%);padding:20px 40px;margin:10px 0 35px;border-radius:4px;border:1px solid #e6e6e6}@media (min-width:1281px){.event-status-schema{max-width:70%}}.event-status-schema p{margin-bottom:35px}div#mec_cancelled_reason_wrapper label{width:166px!important}.mec-fluent-hidden{display:none}#webnus-dashboard .total-bookings input[type=text]{height:38px;line-height:38px;padding-left:10px;border-radius:5px;border:none;background-color:#f7f8f9;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%)}#webnus-dashboard .total-bookings select{appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;min-height:34px;line-height:34px;background-color:#f7f8f9;border-radius:2px;padding-left:8px;box-shadow:0 1px 3px rgb(0 0 0 / 2%);transition:all .23s ease;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDE3IDE3Ij4KPGc+CjwvZz4KCTxwYXRoIGQ9Ik0xNi4zNTQgNS4wNzVsLTcuODU1IDcuODU0LTcuODUzLTcuODU0IDAuNzA3LTAuNzA3IDcuMTQ1IDcuMTQ2IDcuMTQ4LTcuMTQ3IDAuNzA4IDAuNzA4eiIgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:26px 10px;background-position:right center;min-width:160px;border:1px solid #e6e9eb}#webnus-dashboard select{margin-top:-5px}#mec_styles_CSS{line-height:1.6}.mec-search-forms-options-container label.mec-col-12{margin-bottom:10px}@media (max-width:480px){.toplevel_page_mec-intro .mec-intro-section-ifarme iframe{width:auto!important;height:auto!important}.w-box.mec-activation input[name=MECPurchaseCode]{min-width:200px!important;width:330px}.w-box.mec-activation{background:#fff}.mec-addons{padding-right:15px}.mec-report-wrap{margin-top:20px}.mec-report-select-event-wrap .select2-container--default,.mec-report-select-event-wrap select.mec-reports-selectbox-dates{max-width:100%;width:100%;margin:10px 0}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content,.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-head{padding:10px}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-head span{font-size:13px}.mec-report-selected-event-attendees-wrap .mec-attendees-content .w-col-xs-3{word-wrap:break-word}.mec-report-selected-event-attendees-wrap .w-col-xs-3.name img{display:block}.mec-report-selected-event-attendees-wrap input[type=checkbox],.mec-report-selected-event-attendees-wrap input[type=radio]{height:.85rem;width:.85rem}.wns-be-container .dpr-btn.dpr-save-btn{margin:0!important}#mec_booking_form .mec-container{padding-left:0;padding-right:0}#mec_event_form_fields,#mec_reg_form_fields{padding:10px}.mec-search-forms-options-container .mec-form-row select{width:100%}#mec_skin_monthly_view_start_date_container{display:unset}#mec_calendar_display_options input[type=number],#mec_calendar_display_options input[type=text],#mec_calendar_display_options select{max-width:100%!important;width:100%;margin:10px 0}#mec_select_tags.mec-create-shortcode-tab-content input[type=text]{width:auto}#mec_tickets .mec-box{padding:20px 7px}.fserv-container form,.fserv-form-description{padding:10px 15px!important}.fserv-field{display:inline-block;width:25%!important;padding:0!important;margin:0!important;margin-right:10px!important}#webnus-dashboard .total-bookings button{margin:15px 0}}.mec-skin-styles.mec-styles-custom{padding-left:0!important;top:40%;position:absolute;width:330px;height:auto!important;overflow:visible!important}.mec-skin-styles.mec-styles-custom .nice-select{box-shadow:0 3px 13px -5px rgba(0,0,0,.1),inset 0 1px 2px rgba(0,0,0,.07);clear:unset!important;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:5px;border:solid 1px #e8e8e8;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:14px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:300px!important}.mec-styles-custom h3{font-size:13px;font-weight:400;color:#707070}.post-type-mec_calendars .mec-form-row .select2-selection{height:auto}.mec-form-row .mec-col-12 ul li span{display:inline-block;background:#f7f8f9;padding:8px 15px;margin-right:5px;border-radius:3px;border:1px dashed #d7d8d9;font-family:monospace;letter-spacing:.4px}.post-type-mec-events .ui-datepicker.ui-widget .ui-button,.post-type-mec-events .ui-datepicker.ui-widget .ui-button.ui-state-disabled:active,.post-type-mec-events .ui-datepicker.ui-widget .ui-button.ui-state-disabled:hover,.post-type-mec-events .ui-datepicker.ui-widget .ui-state-default,.post-type-mec-events .ui-datepicker.ui-widget .ui-widget-content .ui-state-default,.post-type-mec-events .ui-datepicker.ui-widget .ui-widget-header .ui-state-default,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-button,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-button.ui-state-disabled:active,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-button.ui-state-disabled:hover,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-state-default,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-widget-content .ui-state-default,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-widget-header .ui-state-default{border:0;background-color:#fff;font-weight:400;color:#212121;text-align:center}.post-type-mec-events .ui-datepicker.ui-widget td a.ui-state-active,.post-type-mec-events .ui-datepicker.ui-widget td a:hover,.post-type-mec_calendars .ui-datepicker.ui-widget td a.ui-state-active,.post-type-mec_calendars .ui-datepicker.ui-widget td a:hover{background:#40d9f1;color:#fff}.post-type-mec-events .ui-datepicker.ui-widget .ui-widget-header,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-widget-header{border:0;background:unset;background-color:#fff}.post-type-mec-events .ui-datepicker.ui-widget .ui-icon,.post-type-mec-events .ui-datepicker.ui-widget .ui-widget-content .ui-icon,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-icon,.post-type-mec_calendars .ui-datepicker.ui-widget .ui-widget-content .ui-icon{background-image:unset}.post-type-mec-events .ui-datepicker.ui-widget select,.post-type-mec_calendars .ui-datepicker.ui-widget select{font-weight:600;font-size:12px;border-radius:2px;padding:2px 10px;margin:1px 3px 5px}.mec-update-warning+p{display:none}#mec_sf_timetable_address_search_placeholder,#mec_sf_timetable_txt_search_placeholder{margin-top:4px}body.rtl .wns-be-sidebar{width:260px;float:right;position:relative}body.rtl .wns-be-main{margin-left:0;border-left:0;margin-right:260px;border-right:1px solid #dedede}body.rtl .w-box.mec-activation .LicenseField{direction:rtl}body.rtl .w-box.mec-activation input[name=MECPurchaseCode]{text-align:right;padding-right:20px}body.rtl #MECActivation .MECPurchaseStatus,body.rtl .addon-activation-form .MECPurchaseStatus{right:auto;left:-51px}body.rtl #webnus-dashboard .w-box.mec-activation input[type=submit]{right:auto;left:5px}body.rtl .wns-be-sidebar .wns-be-group-menu li a{padding:13px 20px 13px 4px}body.rtl .wns-be-sidebar .wns-be-group-tab-link-a span.wns-be-group-menu-title{padding-left:0;padding-right:24px}body.rtl .wns-be-sidebar .has-sub span.extra-icon{float:left}body.rtl .wns-be-sidebar .wns-be-group-tab-link-a span.extra-icon i{right:auto;left:10px}body.rtl .wns-be-sidebar .wns-be-group-menu li .subsection li.active a:after,body.rtl .wns-be-sidebar .wns-be-group-menu li .subsection li.active a:before{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:transparent;border-left-color:#fff;right:auto;left:-1px;top:10px}body.rtl .wns-be-sidebar .wns-be-group-menu li .subsection li.active a:before{border-right-color:transparent;border-left-color:#c5c5c5;right:auto;left:0}body.rtl .mec-col-1,body.rtl .mec-col-10,body.rtl .mec-col-11,body.rtl .mec-col-12,body.rtl .mec-col-2,body.rtl .mec-col-3,body.rtl .mec-col-4,body.rtl .mec-col-5,body.rtl .mec-col-6,body.rtl .mec-col-7,body.rtl .mec-col-8,body.rtl .mec-col-9{float:right;margin:0}body.rtl .wns-be-sidebar li .submneu-hover{right:auto;left:-222px}body.rtl .wns-be-sidebar li .submneu-hover:after{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:auto;right:-1px;top:14px}body.rtl #mec_styles_form #mec_styles_CSS{direction:ltr}body.rtl .w-box.mec-activation{-moz-transform:scaleY(-1);-o-transform:scaleY(-1);-webkit-transform:scaleY(-1);transform:scaleX(-1)}body.rtl .w-box.mec-activation .w-box-content,body.rtl .w-box.mec-activation .w-box-head{-moz-transform:scaleY(-1);-o-transform:scaleY(-1);-webkit-transform:scaleY(-1);transform:scaleX(-1);display:block}body.rtl .w-box.mec-activation .w-box-head{width:100%}body.rtl .wns-be-container #wns-be-infobar:before{left:auto;right:0}body.rtl .wns-be-container .dpr-btn.dpr-save-btn{float:left}body.rtl .wns-be-container .wns-be-group-tab h2:before,body.rtl .wns-be-container .wns-be-group-tab h4:before{left:auto;right:0;margin-right:0;margin-left:5px}body.rtl #mec_gateways_form .mec-tooltip{float:left}body.rtl .fserv-container .fserv-form-name{text-align:right!important}body.rtl #webnus-dashboard .mec-activation .w-box-head{max-width:calc(100% - 250px);margin-right:250px;text-align:right}body.rtl #webnus-dashboard .w-box.mec-activation .LicenseType label{padding-left:20px;padding-right:0;font-weight:500}body.rtl #webnus-dashboard .w-box.mec-activation input[type=radio]+label span{margin-right:0;margin-left:6px}body.rtl #webnus-dashboard .upcoming-events .w-box-content .mec-event-article{display:block}body.rtl #webnus-dashboard .upcoming-events .w-box-content .mec-event-article .col-md-9.col-sm-9{float:unset}body.rtl #webnus-dashboard .total-bookings input[type=text],body.rtl #webnus-dashboard .total-bookings select{min-width:125px;margin:0}body.rtl.post-type-mec-events .mec-form-row input[type=number],body.rtl.post-type-mec-events .mec-form-row input[type=text],body.rtl.post-type-mec-events .mec-form-row input[type=url],body.rtl.post-type-mec-events .mec-form-row select,body.rtl.post-type-mec-events .mec-form-row textarea,body.rtl.post-type-mec_calendars .mec-form-row input[type=number],body.rtl.post-type-mec_calendars .mec-form-row input[type=text],body.rtl.post-type-mec_calendars .mec-form-row input[type=url],body.rtl.post-type-mec_calendars .mec-form-row select,body.rtl.post-type-mec_calendars .mec-form-row textarea{margin:0 0 0 1%}body.rtl .mec-form-row .mec-col-8 label,body.rtl .mec-form-row .mec-col-9 label{padding-left:10px}body.rtl .mec-form-row label{text-align:right}body.rtl .mec-form-row .mec-col-3{margin:0;padding-left:10px;padding-right:0}body.rtl .mec-calendar-metabox .mec-form-row input[type=checkbox],body.rtl .mec-meta-box-fields .mec-form-row input[type=checkbox]{margin-left:6px;margin-right:0}body.rtl .mec-form-row input[type=radio]{margin:0 0 0 6px}body.rtl .mec-form-row .description{border-left:0;border-right:1px dashed #ccc;padding-left:0;padding-right:12px}body.rtl #mec_add_fee_button,body.rtl #mec_add_ticket_variation_button,body.rtl #mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button,body.rtl #taxes_option #mec_fees_list .mec-form-row .button,body.rtl #ticket_variations_option #mec_ticket_variations_list .mec-form-row .button,body.rtl .mec-export-settings,body.rtl .mec-import-settings,body.rtl .mec-meta-box-fields .mec-form-row .button:not(.wp-color-result),body.rtl .mec-occurrences-wrapper .button:not(.wp-color-result){margin-right:0;margin-left:5px}body.rtl .mec-add-booking-tabs-right,body.rtl .mec-add-event-tabs-right,body.rtl .mec-create-shortcode-tabs-right{border-left:0;border-right:1px solid #e2e2e2}body.rtl .mec-add-booking-tabs-left a,body.rtl .mec-add-event-tabs-left a,body.rtl .mec-create-shortcode-tabs-left a{padding:13px 20px 13px 4px}body.rtl .mec-add-booking-tabs-left a.mec-tab-active,body.rtl .mec-add-event-tabs-left a.mec-tab-active,body.rtl .mec-create-shortcode-tabs-left a.mec-tab-active{padding-left:0;padding-right:22px}body.rtl .mec-calendar-metabox .wn-mec-select,body.rtl .mec-form-row select,body.rtl .post-type-mec-events .mec-form-row select,body.rtl .post-type-mec_calendars .mec-form-row select,body.rtl .wns-be-main .mec-form-row select{background-position:left center!important}body.rtl .mec-calendar-metabox .wn-mec-select,body.rtl .mec-form-row select,body.rtl .post-type-mec-events .mec-form-row select,body.rtl .post-type-mec_calendars .mec-form-row select,body.rtl .wns-be-main .mec-form-row select{text-align:right!important}body.rtl #mec_calendar_display_options .mec-col-4 input{margin-left:0!important;margin-right:20px!important}body.rtl .meta-box-sortables .mec-switcher input:checked+label:after{right:auto;left:2px;margin-left:0}body.rtl .mec-sed-methods li{margin:0 0 5px 5px}body.rtl .wn-mec-select:after{left:10px;right:auto}body.rtl .inside div div>a.mec-tab-active:after,body.rtl .inside div div>a.mec-tab-active:before{border-right:0;border-left-color:#fff}body.rtl .inside div div>a.mec-tab-active:after{right:auto;left:-1px}body.rtl .inside div div>a.mec-tab-active:before{border-right:0;border-left-color:#d7d8d9;right:auto;left:0}body.rtl #mec_tickets .button.remove{right:auto;left:20px;line-height:1.8}body.rtl .mec-calendar-metabox .wn-mec-select,body.rtl .mec-form-row input[type=date],body.rtl .mec-form-row input[type=email],body.rtl .mec-form-row input[type=number],body.rtl .mec-form-row input[type=tel],body.rtl .mec-form-row input[type=text],body.rtl .mec-form-row input[type=url],body.rtl .mec-form-row select,body.rtl .mec-form-row textarea,body.rtl .mec-form-row.mec-skin-list-date-format-container input[type=text],body.rtl .mec-occurrences-wrapper input[type=date],body.rtl .mec-occurrences-wrapper input[type=email],body.rtl .mec-occurrences-wrapper input[type=number],body.rtl .mec-occurrences-wrapper input[type=tel],body.rtl .mec-occurrences-wrapper input[type=text],body.rtl .mec-occurrences-wrapper input[type=url],body.rtl .mec-occurrences-wrapper select,body.rtl .mec-occurrences-wrapper textarea{padding:0 10px}body.rtl #mec-occurrences .mec-occurrences-list li,body.rtl #mec_bfixed_form_fields li,body.rtl #mec_event_form_fields li,body.rtl #mec_reg_form_fields li{border-radius:11px 3px 3px 3px}body.rtl #mec-occurrences .mec-occurrences-list .mec-occurrences-delete-button,body.rtl #mec_bfixed_form_fields span.mec_bfixed_field_remove,body.rtl #mec_event_form_fields span.mec_event_field_remove,body.rtl #mec_reg_form_fields span.mec_reg_field_remove{position:absolute;right:auto;left:47px;top:0;background:#fff}body.rtl #mec-occurrences .mec-occurrences-list .mec-occurrences-delete-button:before,body.rtl #mec_bfixed_form_fields span.mec_bfixed_field_option_sort:before,body.rtl #mec_bfixed_form_fields span.mec_bfixed_field_remove:before,body.rtl #mec_bfixed_form_fields span.mec_bfixed_field_sort:before,body.rtl #mec_event_form_fields span.mec_event_field_option_sort:before,body.rtl #mec_event_form_fields span.mec_event_field_remove:before,body.rtl #mec_event_form_fields span.mec_event_field_sort:before,body.rtl #mec_reg_form_fields span.mec_reg_field_option_sort:before,body.rtl #mec_reg_form_fields span.mec_reg_field_remove:before,body.rtl #mec_reg_form_fields span.mec_reg_field_sort:before{left:auto;right:20px;top:7px}body.rtl #mec_bfixed_form_fields span.mec_bfixed_field_type,body.rtl #mec_bfixed_form_fields span.mec_event_field_type,body.rtl #mec_event_form_fields span.mec_event_field_type,body.rtl #mec_reg_form_fields span.mec_reg_field_type{padding-left:0;padding-right:25px}body.rtl .wns-be-main .mec-form-row .mec-col-3{padding:0}body.rtl .wns-be-main .mec-form-row .mec-col-9{float:left}body.rtl .mec-form-row .mec-col-9 .mec-box .mec-tooltip{left:15px;right:auto}body.rtl .mec-tooltip .box{left:auto!important;right:30px!important}body.rtl .mec-tooltip .box:before{left:auto!important;right:0!important}body.rtl .mec-tooltip .box.left{left:30px!important;right:auto!important}body.rtl .mec-tooltip .box.left:before{left:-12px!important;right:auto!important}body.rtl .mec-form-row .cancellation-period-box input[type=number]:first-child{margin-left:calc(2% + 4px);margin-right:0}body.rtl .support-page .w-box-content ul li i{margin:0 0 0 10px;float:right}body.rtl .support-page .w-box-content ul li .mec-sl-arrow-right-circle:before{content:'\e07a'}body.rtl #webnus-dashboard .w-box.support-page.videobox .w-button a i{float:left;line-height:24px}body.rtl #webnus-dashboard .mec-faq-accordion-trigger a{padding-right:34px;font-size:15px}form .wbmec-mandatory{color:red}input.mec-error,select.mec-error,textarea.mec-error{border-color:red}.mec-copied{position:absolute;top:0;width:40%;opacity:0;z-index:-9;transition:all .33s cubic-bezier()}.mec-copied.mec-copied-done{opacity:1;left:135px;z-index:9}.m-e-calendar_page_MEC-settings .mec-addons-notification-box-image img{max-width:555px}.m-e-calendar_page_MEC-settings .mec-custom-msg-notification-wrap,.m-e-calendar_page_MEC-settings .wns-be-container .mec-addons-notification-wrap{max-width:1020px}
|
2 |
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
3 |
* Copyright 2011-2016 Twitter, Inc.
|
4 |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5 |
+
*/#webnus-dashboard button,#webnus-dashboard input,#webnus-dashboard select,#webnus-dashboard textarea{font-family:inherit;font-size:inherit;line-height:inherit}#webnus-dashboard a{color:#337ab7;text-decoration:none}#webnus-dashboard a:focus,#webnus-dashboard a:hover{color:#23527c}#webnus-dashboard a:focus{outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}#webnus-dashboard figure{margin:0}#webnus-dashboard img{vertical-align:middle}.w-img-responsive{display:block;max-width:100%;height:auto}.w-img-rounded{border-radius:6px}.w-img-thumbnail{padding:4px;line-height:1w-42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all 0w-2s ease-in-out;-o-transition:all 0w-2s ease-in-out;transition:all 0w-2s ease-in-out;display:inline-block;max-width:100%;height:auto}.w-img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.w-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.w-sr-only-focusable:active,.w-sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.w-container,.w-container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}[role=button]{cursor:pointer}@media (min-width:768px){.w-container{width:750px}}@media (min-width:992px){.w-container{width:970px}}@media (min-width:1200px){.w-container{width:1170px}}.w-row{margin-left:-15px;margin-right:-15px}.w-col-lg-1,.w-col-lg-10,.w-col-lg-11,.w-col-lg-12,.w-col-lg-2,.w-col-lg-3,.w-col-lg-4,.w-col-lg-5,.w-col-lg-6,.w-col-lg-7,.w-col-lg-8,.w-col-lg-9,.w-col-md-1,.w-col-md-10,.w-col-md-11,.w-col-md-12,.w-col-md-2,.w-col-md-3,.w-col-md-4,.w-col-md-5,.w-col-md-6,.w-col-md-7,.w-col-md-8,.w-col-md-9,.w-col-sm-1,.w-col-sm-10,.w-col-sm-11,.w-col-sm-12,.w-col-sm-2,.w-col-sm-3,.w-col-sm-4,.w-col-sm-5,.w-col-sm-6,.w-col-sm-7,.w-col-sm-8,.w-col-sm-9,.w-col-xs-1,.w-col-xs-10,.w-col-xs-11,.w-col-xs-12,.w-col-xs-2,.w-col-xs-3,.w-col-xs-4,.w-col-xs-5,.w-col-xs-6,.w-col-xs-7,.w-col-xs-8,.w-col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.w-col-xs-1,.w-col-xs-10,.w-col-xs-11,.w-col-xs-12,.w-col-xs-2,.w-col-xs-3,.w-col-xs-4,.w-col-xs-5,.w-col-xs-6,.w-col-xs-7,.w-col-xs-8,.w-col-xs-9{float:left}.w-col-xs-12{width:100%}.w-col-xs-11{width:91.66666667%}.w-col-xs-10{width:83.33333333%}.w-col-xs-9{width:75%}.w-col-xs-8{width:66.66666667%}.w-col-xs-7{width:58.33333333%}.w-col-xs-6{width:50%}.w-col-xs-5{width:41.66666667%}.w-col-xs-4{width:33.33333333%}.w-col-xs-3{width:25%}.w-col-xs-2{width:16.66666667%}.w-col-xs-1{width:8.33333333%}.w-col-xs-pull-12{right:100%}.w-col-xs-pull-11{right:91.66666667%}.w-col-xs-pull-10{right:83.33333333%}.w-col-xs-pull-9{right:75%}.w-col-xs-pull-8{right:66.66666667%}.w-col-xs-pull-7{right:58.33333333%}.w-col-xs-pull-6{right:50%}.w-col-xs-pull-5{right:41.66666667%}.w-col-xs-pull-4{right:33.33333333%}.w-col-xs-pull-3{right:25%}.w-col-xs-pull-2{right:16.66666667%}.w-col-xs-pull-1{right:8.33333333%}.w-col-xs-pull-0{right:auto}.w-col-xs-push-12{left:100%}.w-col-xs-push-11{left:91.66666667%}.w-col-xs-push-10{left:83.33333333%}.w-col-xs-push-9{left:75%}.w-col-xs-push-8{left:66.66666667%}.w-col-xs-push-7{left:58.33333333%}.w-col-xs-push-6{left:50%}.w-col-xs-push-5{left:41.66666667%}.w-col-xs-push-4{left:33.33333333%}.w-col-xs-push-3{left:25%}.w-col-xs-push-2{left:16.66666667%}.w-col-xs-push-1{left:8.33333333%}.w-col-xs-push-0{left:auto}.w-col-xs-offset-12{margin-left:100%}.w-col-xs-offset-11{margin-left:91.66666667%}.w-col-xs-offset-10{margin-left:83.33333333%}.w-col-xs-offset-9{margin-left:75%}.w-col-xs-offset-8{margin-left:66.66666667%}.w-col-xs-offset-7{margin-left:58.33333333%}.w-col-xs-offset-6{margin-left:50%}.w-col-xs-offset-5{margin-left:41.66666667%}.w-col-xs-offset-4{margin-left:33.33333333%}.w-col-xs-offset-3{margin-left:25%}.w-col-xs-offset-2{margin-left:16.66666667%}.w-col-xs-offset-1{margin-left:8.33333333%}.w-col-xs-offset-0{margin-left:0}@media (min-width:768px){.w-col-sm-1,.w-col-sm-10,.w-col-sm-11,.w-col-sm-12,.w-col-sm-2,.w-col-sm-3,.w-col-sm-4,.w-col-sm-5,.w-col-sm-6,.w-col-sm-7,.w-col-sm-8,.w-col-sm-9{float:left}.w-col-sm-12{width:100%}.w-col-sm-11{width:91.66666667%}.w-col-sm-10{width:83.33333333%}.w-col-sm-9{width:75%}.w-col-sm-8{width:66.66666667%}.w-col-sm-7{width:58.33333333%}.w-col-sm-6{width:50%}.w-col-sm-5{width:41.66666667%}.w-col-sm-4{width:33.33333333%}.w-col-sm-3{width:25%}.w-col-sm-2{width:16.66666667%}.w-col-sm-1{width:8.33333333%}.w-col-sm-pull-12{right:100%}.w-col-sm-pull-11{right:91.66666667%}.w-col-sm-pull-10{right:83.33333333%}.w-col-sm-pull-9{right:75%}.w-col-sm-pull-8{right:66.66666667%}.w-col-sm-pull-7{right:58.33333333%}.w-col-sm-pull-6{right:50%}.w-col-sm-pull-5{right:41.66666667%}.w-col-sm-pull-4{right:33.33333333%}.w-col-sm-pull-3{right:25%}.w-col-sm-pull-2{right:16.66666667%}.w-col-sm-pull-1{right:8.33333333%}.w-col-sm-pull-0{right:auto}.w-col-sm-push-12{left:100%}.w-col-sm-push-11{left:91.66666667%}.w-col-sm-push-10{left:83.33333333%}.w-col-sm-push-9{left:75%}.w-col-sm-push-8{left:66.66666667%}.w-col-sm-push-7{left:58.33333333%}.w-col-sm-push-6{left:50%}.w-col-sm-push-5{left:41.66666667%}.w-col-sm-push-4{left:33.33333333%}.w-col-sm-push-3{left:25%}.w-col-sm-push-2{left:16.66666667%}.w-col-sm-push-1{left:8.33333333%}.w-col-sm-push-0{left:auto}.w-col-sm-offset-12{margin-left:100%}.w-col-sm-offset-11{margin-left:91.66666667%}.w-col-sm-offset-10{margin-left:83.33333333%}.w-col-sm-offset-9{margin-left:75%}.w-col-sm-offset-8{margin-left:66.66666667%}.w-col-sm-offset-7{margin-left:58.33333333%}.w-col-sm-offset-6{margin-left:50%}.w-col-sm-offset-5{margin-left:41.66666667%}.w-col-sm-offset-4{margin-left:33.33333333%}.w-col-sm-offset-3{margin-left:25%}.w-col-sm-offset-2{margin-left:16.66666667%}.w-col-sm-offset-1{margin-left:8.33333333%}.w-col-sm-offset-0{margin-left:0}}@media (min-width:992px){.w-col-md-1,.w-col-md-10,.w-col-md-11,.w-col-md-12,.w-col-md-2,.w-col-md-3,.w-col-md-4,.w-col-md-5,.w-col-md-6,.w-col-md-7,.w-col-md-8,.w-col-md-9{float:left}.w-col-md-12{width:100%}.w-col-md-11{width:91.66666667%}.w-col-md-10{width:83.33333333%}.w-col-md-9{width:75%}.w-col-md-8{width:66.66666667%}.w-col-md-7{width:58.33333333%}.w-col-md-6{width:50%}.w-col-md-5{width:41.66666667%}.w-col-md-4{width:33.33333333%}.w-col-md-3{width:25%}.w-col-md-2{width:16.66666667%}.w-col-md-1{width:8.33333333%}.w-col-md-pull-12{right:100%}.w-col-md-pull-11{right:91.66666667%}.w-col-md-pull-10{right:83.33333333%}.w-col-md-pull-9{right:75%}.w-col-md-pull-8{right:66.66666667%}.w-col-md-pull-7{right:58.33333333%}.w-col-md-pull-6{right:50%}.w-col-md-pull-5{right:41.66666667%}.w-col-md-pull-4{right:33.33333333%}.w-col-md-pull-3{right:25%}.w-col-md-pull-2{right:16.66666667%}.w-col-md-pull-1{right:8.33333333%}.w-col-md-pull-0{right:auto}.w-col-md-push-12{left:100%}.w-col-md-push-11{left:91.66666667%}.w-col-md-push-10{left:83.33333333%}.w-col-md-push-9{left:75%}.w-col-md-push-8{left:66.66666667%}.w-col-md-push-7{left:58.33333333%}.w-col-md-push-6{left:50%}.w-col-md-push-5{left:41.66666667%}.w-col-md-push-4{left:33.33333333%}.w-col-md-push-3{left:25%}.w-col-md-push-2{left:16.66666667%}.w-col-md-push-1{left:8.33333333%}.w-col-md-push-0{left:auto}.w-col-md-offset-12{margin-left:100%}.w-col-md-offset-11{margin-left:91.66666667%}.w-col-md-offset-10{margin-left:83.33333333%}.w-col-md-offset-9{margin-left:75%}.w-col-md-offset-8{margin-left:66.66666667%}.w-col-md-offset-7{margin-left:58.33333333%}.w-col-md-offset-6{margin-left:50%}.w-col-md-offset-5{margin-left:41.66666667%}.w-col-md-offset-4{margin-left:33.33333333%}.w-col-md-offset-3{margin-left:25%}.w-col-md-offset-2{margin-left:16.66666667%}.w-col-md-offset-1{margin-left:8.33333333%}.w-col-md-offset-0{margin-left:0}}@media (min-width:1200px){.w-col-lg-1,.w-col-lg-10,.w-col-lg-11,.w-col-lg-12,.w-col-lg-2,.w-col-lg-3,.w-col-lg-4,.w-col-lg-5,.w-col-lg-6,.w-col-lg-7,.w-col-lg-8,.w-col-lg-9{float:left}.w-col-lg-12{width:100%}.w-col-lg-11{width:91.66666667%}.w-col-lg-10{width:83.33333333%}.w-col-lg-9{width:75%}.w-col-lg-8{width:66.66666667%}.w-col-lg-7{width:58.33333333%}.w-col-lg-6{width:50%}.w-col-lg-5{width:41.66666667%}.w-col-lg-4{width:33.33333333%}.w-col-lg-3{width:25%}.w-col-lg-2{width:16.66666667%}.w-col-lg-1{width:8.33333333%}.w-col-lg-pull-12{right:100%}.w-col-lg-pull-11{right:91.66666667%}.w-col-lg-pull-10{right:83.33333333%}.w-col-lg-pull-9{right:75%}.w-col-lg-pull-8{right:66.66666667%}.w-col-lg-pull-7{right:58.33333333%}.w-col-lg-pull-6{right:50%}.w-col-lg-pull-5{right:41.66666667%}.w-col-lg-pull-4{right:33.33333333%}.w-col-lg-pull-3{right:25%}.w-col-lg-pull-2{right:16.66666667%}.w-col-lg-pull-1{right:8.33333333%}.w-col-lg-pull-0{right:auto}.w-col-lg-push-12{left:100%}.w-col-lg-push-11{left:91.66666667%}.w-col-lg-push-10{left:83.33333333%}.w-col-lg-push-9{left:75%}.w-col-lg-push-8{left:66.66666667%}.w-col-lg-push-7{left:58.33333333%}.w-col-lg-push-6{left:50%}.w-col-lg-push-5{left:41.66666667%}.w-col-lg-push-4{left:33.33333333%}.w-col-lg-push-3{left:25%}.w-col-lg-push-2{left:16.66666667%}.w-col-lg-push-1{left:8.33333333%}.w-col-lg-push-0{left:auto}.w-col-lg-offset-12{margin-left:100%}.w-col-lg-offset-11{margin-left:91.66666667%}.w-col-lg-offset-10{margin-left:83.33333333%}.w-col-lg-offset-9{margin-left:75%}.w-col-lg-offset-8{margin-left:66.66666667%}.w-col-lg-offset-7{margin-left:58.33333333%}.w-col-lg-offset-6{margin-left:50%}.w-col-lg-offset-5{margin-left:41.66666667%}.w-col-lg-offset-4{margin-left:33.33333333%}.w-col-lg-offset-3{margin-left:25%}.w-col-lg-offset-2{margin-left:16.66666667%}.w-col-lg-offset-1{margin-left:8.33333333%}.w-col-lg-offset-0{margin-left:0}}.w-clearfix:after,.w-clearfix:before,.w-container-fluid:after,.w-container-fluid:before,.w-container:after,.w-container:before,.w-row:after,.w-row:before{content:' ';display:table}.w-clearfix:after,.w-container-fluid:after,.w-container:after,.w-row:after{clear:both}.w-center-block{display:block;margin-left:auto;margin-right:auto}.w-pull-right{float:right!important}.w-pull-left{float:left!important}.w-hide{display:none!important}.w-show{display:block!important}.w-invisible{visibility:hidden}.w-text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.w-hidden{display:none!important}.w-affix{position:fixed}.mec-image-popup-wrap{display:none}#wns-be-infobar.sticky{position:fixed;top:32px;background:#fff;z-index:999;width:82%}.wns-be-main .wns-saved-settings.sticky{position:fixed;width:62.5%;top:111px;z-index:999999999999999999}textarea.mec-import-settings-content{display:block;width:100%;min-height:120px;margin-bottom:25px;padding:10px 15px}.mec-import-options-notification{display:inline-block}.mec-import-options-notification .mec-message-import-error,.mec-import-options-notification .mec-message-import-success{display:inline-block;padding:15px 12px;margin-left:12px;opacity:0;visibility:hidden;font-weight:700}.mec-import-options-notification .mec-message-import-success{opacity:1;visibility:visible;border:2px solid green}.mec-import-options-notification .mec-message-import-error{opacity:1;visibility:visible;border:2px solid #e62117}.mec-export-settings:focus,.mec-import-settings:focus{color:#07bbe9}.mec-import-settings-wrap{position:relative}.mec-loarder-wrap{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(202,202,202,.7);z-index:9999}.mec-loarder-wrap.mec-settings-loader{top:34px}.mec-loarder{position:absolute;width:64px;height:64px;top:calc(50% - 32px);left:calc(50% - 36px)}.mec-loarder div{display:inline-block;position:absolute;left:6px;width:4px;background:#fff;animation:mec-loarder 1.2s cubic-bezier(0,.5,.5,1) infinite}.mec-loarder div:nth-child(1){left:27px;animation-delay:-.24s;background:#0075ff}.mec-loarder div:nth-child(2){left:36px;animation-delay:-.12s;background:#028bff}.mec-loarder div:nth-child(3){left:45px;animation-delay:0;background:#32a0ff}@keyframes mec-loarder{0%{top:6px;height:51px}100%,50%{top:19px;height:26px}}.w-box.support-page.searchbox{background:#40d8f0;color:#fff;min-height:260px;text-align:center;border-radius:11px}#webnus-dashboard .search-form input{background:rgba(255,255,255,.2);border:none;width:50%;outline:0;color:rgba(255,255,255,.7);font-size:18px;border-radius:4px 0 0 4px;box-shadow:0 1px 2px 0 rgba(0,0,0,.03);-webkit-transition:background .4s,box-shadow .2s;transition:background .4s,box-shadow .2s;padding:20px 32px;margin:0}#webnus-dashboard .search-form button{background:rgba(255,255,255,.2);border:none;padding:20px 32px;margin-left:-2px;color:#fff;border-radius:0 4px 4px 0;font-size:18px;cursor:pointer;-webkit-transition:background .4s,box-shadow .2s;transition:background .4s,box-shadow .2s}#webnus-dashboard .search-form button:hover{background:#fff;color:#3a3c4c}.w-box.support-page.searchbox p{font-size:30px}.search-form input::-webkit-input-placeholder{color:rgba(255,255,255,.7)}.search-form input::-moz-placeholder{color:rgba(255,255,255,.7)}.search-form input:-ms-input-placeholder{color:rgba(255,255,255,.7)}.search-form input:-moz-placeholder{color:rgba(255,255,255,.7)}#webnus-dashboard .search-form input:active,#webnus-dashboard .search-form input:focus{box-shadow:0 10px 20px rgba(0,0,0,.14);background:#fff;color:#3a3c4c}#webnus-dashboard .search-form input:active::-webkit-input-placeholder,#webnus-dashboard .search-form input:focus::-webkit-input-placeholder{color:#3a3c4c}#webnus-dashboard .search-form input:active::-moz-placeholder,#webnus-dashboard .search-form input:focus::-moz-placeholder{color:#3a3c4c}#webnus-dashboard .search-form input:active:-ms-input-placeholder,#webnus-dashboard .search-form input:focus:-ms-input-placeholder{color:#3a3c4c}#webnus-dashboard .search-form input:active:-moz-placeholder,#webnus-dashboard .search-form input:focus:-moz-placeholder{color:#3a3c4c}#webnus-dashboard .w-box.support-page.mec-ticksy{text-align:center;min-height:260px}#webnus-dashboard .w-box.support-page.mec-ticksy p{font-size:20px;width:70%;margin:0 auto;margin-bottom:40px;margin-top:40px}#webnus-dashboard .support-box a,#webnus-dashboard .w-box.support-page.mec-ticksy a{color:#fff;font-weight:500;border-radius:50px;text-shadow:none;background:#40d8f0;border:none;transition:.24s;padding:12px 30px;cursor:pointer;margin-bottom:40px;display:inline-block}#webnus-dashboard .support-box a:hover,#webnus-dashboard .w-box.support-page.mec-ticksy a:hover{background:#222;box-shadow:0 5px 23px -7px rgba(0,0,0,.5)}#webnus-dashboard .support-box a{margin:40px 4px 0 4px}.mec-faq-accordion>.mec-faq-accordion-content{display:none}#webnus-dashboard .mec-faq-accordion-trigger a{font-size:15px;padding:15px;background:#f0f1f2;display:block;color:#222;line-height:17px;outline:0;border-radius:8px}.mec-faq-accordion-trigger{margin-bottom:5px;position:relative}#webnus-dashboard .mec-faq-accordion-trigger a:after{font-family:simple-line-icons;content:'\e095';position:absolute;right:12px;font-weight:700}.mec-faq-accordion-content{padding:5px 14px 25px}#webnus-dashboard .mec-faq-accordion-trigger a.active:after{content:'\e082'}#webnus-dashboard .support-page-links a{color:#fff;border-radius:50px;padding:13px 24px;font-size:12px;letter-spacing:1px;font-weight:600;text-transform:uppercase;transition:all .2s ease}#webnus-dashboard .support-page-links a:hover,#webnus-dashboard .w-box.support-page.videobox .w-button a:hover{background:#222;box-shadow:0 2px 5px -1px rgba(0,0,0,.1)}#webnus-dashboard .support-page-links{display:inline-block;margin:12px 4px 16px 0}.support-page-links.link-to-doc a{background:#d09d5f}.support-page-links.link-to-videos a{background:#ff876c}.support-page-links.link-to-articles a{background:#69ca8a}.w-box.support-page.articles-box .w-box-content a{display:block;padding:6px 0}#webnus-dashboard .w-box.support-page.videobox .w-button a{color:#fff;font-size:10px;padding:5px 15px;min-height:10px;font-weight:500;border-radius:22px;box-shadow:0 3px 10px -9px #ff5a35;text-shadow:none;background:#ff876c;border:none;transition:.24s}.w-box.support-page.articles-box,.w-box.support-page.faq-box{min-height:500px}.w-box.support-page.videobox{border-radius:11px;min-height:282px;box-shadow:0 1px 2px rgba(0,0,0,.01)!important}.w-box.support-page.videobox .w-box-content{padding:15px}.w-box.support-page.videobox .w-box-head{font-size:15px;text-align:center;padding:20px 0 0}#webnus-dashboard .w-box.support-page.videobox .w-button a i{margin-right:6px}.support-page .w-box-content ul{margin-top:5px;padding-left:5px}.support-page .w-box-content ul li{font-size:13px}.support-page .w-box-content ul li i{font-size:13px;vertical-align:text-bottom;margin-right:3px;color:#40d8f0}.w-box.mec-activation{background:#fff url(../img/dp-dsb-support.jpg) no-repeat top right}.w-box.mec-activation .w-box-head{width:75%}.w-box.mec-activation .w-box-content{padding:10px 30px}.w-box.mec-activation input[type=radio]{display:none}.w-box.mec-activation input[type=radio]+label{color:#000;font-size:13px;line-height:14px!important;color:#7b7b7b}.w-box.mec-activation input[type=radio].checked+label{color:#40d8f0}.mec-form-row input[type=radio],.w-box.mec-activation input[type=radio]+label span{display:inline-block;margin:-2px 6px 0 0;vertical-align:middle;cursor:pointer;height:22px;width:22px;text-align:center;background-color:#fff;border:2px solid #e1e2e3;border-radius:100%;box-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;transition:all .3s ease}.mec-form-row input[type=radio]:checked,.w-box.mec-activation input[type=radio].checked+label span{border-color:#afebf5}.mec-form-row input[type=radio]:before,.w-box.mec-activation input[type=radio]+label span:after{content:'';display:block;margin:0;position:absolute;top:4px;left:4px;width:10px;height:10px;background:0 0;border-radius:100%;transition:all .2s ease;transform:scale(.1)}.mec-form-row input[type=radio]:checked:before,.w-box.mec-activation input[type=radio].checked+label span:after{background:#38d5ed;transform:scale(1)}.w-box.mec-activation .LicenseType label{padding-right:20px;font-weight:500}.w-box.mec-activation .LicenseField{display:inline-block;position:relative;margin-top:20px}.w-box.mec-activation input[name=MECPurchaseCode]{box-shadow:inset 0 1px 2px rgba(0,0,0,.07);min-width:220px;background:#f7f8f9;border:none;border-radius:33px;width:500px;min-height:50px;margin:0;padding-left:20px;text-align:left}#webnus-dashboard .w-box.mec-activation input[type=submit]{height:40px;line-height:40px;font-weight:600;border:none;cursor:pointer;padding:0 30px;border-radius:33px;color:#fff;letter-spacing:1px;text-transform:uppercase;font-size:12px;text-shadow:none;background:#64e385;transition:all .28s ease;position:absolute;right:5px;top:5px;font-size:12px}#webnus-dashboard .w-box.mec-activation input[type=submit]:hover{background:#45ce68}#webnus-dashboard .w-box.mec-activation input[type=submit].delete{background:#c2c2c2;color:#000}#webnus-dashboard .w-box.mec-activation input[type=submit].delete:hover{background:#ccc}#MECActivation .MECPurchaseStatus,.addon-activation-form .MECPurchaseStatus{display:inline-block;width:40px;height:40px;text-align:center;padding-top:9px;color:#fff;font-weight:700;font-size:18px;border-radius:50%;padding-top:8px;position:absolute;right:-51px;top:calc(50% - 20px)}.MECPurchaseStatus:after,.MECPurchaseStatus:before{position:absolute;border-radius:50px;background:#fff;content:'';transform:rotate(45deg)}.MECPurchaseStatus.PurchaseError:before{width:22px;height:4px;right:9px;top:18px;transform:rotate(45deg)}.MECPurchaseStatus.PurchaseError:after{width:22px;height:4px;right:9px;top:18px;transform:rotate(-45deg)}.MECPurchaseStatus.PurchaseSuccess:before{width:13px;height:4px;right:19px;top:21px;transform:rotate(45deg)}.MECPurchaseStatus.PurchaseSuccess:after{width:22px;height:4px;right:5px;top:18px;transform:rotate(-45deg)}#MECActivation .MECPurchaseStatus.PurchaseError,.addon-activation-form .MECPurchaseStatus.PurchaseError{background:#ff876c}#MECActivation .MECPurchaseStatus.PurchaseSuccess,.addon-activation-form .MECPurchaseStatus.PurchaseSuccess{background:#64e385}.wna-spinner-wrap{position:absolute;background:#000;width:509px;height:64px;top:-8px;border-radius:50px;z-index:999;background-color:#fff;opacity:.9}.wna-spinner{width:40px;height:40px;position:relative;margin:6px auto}.wna-spinner .double-bounce1,.wna-spinner .double-bounce2{width:100%;height:100%;border-radius:50%;background-color:#40d8f0;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:sk-bounce 2s infinite ease-in-out;animation:sk-bounce 2s infinite ease-in-out}.wna-spinner .double-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}#MECActivation .MECLicenseMessage,.addon-activation-form .MECLicenseMessage{padding-top:24px;margin-bottom:-24px;color:#f64;max-width:570px}.MECLicenseMessage.mec-message-hidden{display:none}#webnus-dashboard .w-box.mec-activation input[type=submit].mec_revoke{background:#e0e0e0;color:#222}.box-addons-activation{margin-top:24px;margin-bottom:24px}.box-addon-activation-toggle-content,.box-addon-activation-toggle-head{display:none}.addon-activation-form h3{font-size:15px;font-weight:400;margin:34px 0 -7px}.box-addon-activation-toggle-head{line-height:1.5;font-size:16px;margin-top:20px;cursor:pointer}.box-addon-activation-toggle-head i{margin-right:7px;cursor:pointer;font-weight:700}#mec-advanced-wraper div:first-child>ul{display:block;margin:5px 0;padding:5px 0;width:390px;border:1px solid #e1e2e3;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.05)}#mec-advanced-wraper div:first-child>ul span{display:none}#mec-advanced-wraper div:first-child>ul *{display:inline-block;background:#fff;font-size:12px;color:#717273;text-align:center}#mec-advanced-wraper div:first-child>ul>li{width:60px;font-weight:700;margin:0 10px 0 0;padding:4px 0;border-right:1px solid #e1e2e3}#mec-advanced-wraper div:first-child>ul>ul>li{margin:0;padding:2px 10px;cursor:pointer;border-radius:2px;transition:all .18s ease}#mec-advanced-wraper div:first-child>ul>ul>li:hover,.mec-active{background:#07bbe9!important;color:#fff!important}@-webkit-keyframes sk-bounce{0%,100%{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,100%{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.w-col-sm-3 .w-box.addon{min-height:372px;text-align:center;border-radius:9px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 1%)}.m-e-calendar_page_MEC-addons .welcome-content .w-col-sm-3{width:33.33%;clear:none!important;min-height:380px}@media (min-width:768px) and (max-width:1281px){.m-e-calendar_page_MEC-addons .welcome-content .w-col-sm-3{width:50%}}@media (max-width:767px){.m-e-calendar_page_MEC-addons .welcome-content .w-col-sm-3{width:100%}}.w-box-child.mec-addon-box{padding:0}.mec-addon-box-head{border-bottom:1px solid #f7f8f9;padding:20px 20px 8px;margin-bottom:14px;position:relative}.mec-addon-box-version{position:relative;border-radius:1px;padding:0 8px;font-family:monospace;background:#f4f7f7;color:#00a1b7;font-size:11px;letter-spacing:.2px;line-height:21px;display:inline-block;margin:10px 0}.mec-addon-box-head img{display:block;width:100%;height:60px;margin-bottom:10px;margin-top:10px}.mec-addon-box-title{font-weight:600;font-size:18px;line-height:36px;color:#27272a;letter-spacing:-.2px}.mec-addon-box-title a span{color:#444;font-size:15px}.mec-addon-box-content{padding:0 20px}.mec-addon-box-content p{color:#6e757b;font-size:14px;letter-spacing:.1px}.mec-addon-box-mec-version{background:#f3f3f3;padding:10px;font-size:13px}.mec-addon-box-pro{display:inline-block;background:#ff7d5f;color:#fff;font-weight:600;font-size:11px;letter-spacing:.2px;line-height:21px;padding:0 8px;border-radius:3px}#webnus-dashboard .addons-page-links{display:inline-block;margin:12px 4px 16px 0}#webnus-dashboard .addons-page-links a{background-color:#fff;color:#fff;border-radius:2px;padding:13px 24px;font-size:12px;letter-spacing:1px;font-weight:600;text-transform:uppercase}.addons-page-links.link-to-purchase a{background:#4cbf67;background:linear-gradient(95deg,#6fe08a 0,#58cf74 50%,#36cb58 100%);box-shadow:0 5px 10px -5px #4cbf67}.addons-page-links.link-to-install-addons a{background:#b092e6;background:linear-gradient(95deg,#b092e6 0,#9b70e8 50%,#8e5cea 100%);box-shadow:0 5px 10px -5px #b092e6}#webnus-dashboard .addons-page-links a:hover,#webnus-dashboard .w-box.addons-page.videobox .w-button a:hover{background:#222;background:linear-gradient(95deg,#555 0,#222 50%,#000 100%);box-shadow:0 5px 21px -5px rgba(0,0,0,.5)}.mec-addon-box-footer{background:#f7f8f9;border-radius:0 0 9px 9px;padding:10px 1px 8px;margin-top:25px;text-align:center;position:absolute;left:0;right:0;bottom:0}#webnus-dashboard .mec-addon-box-footer a{margin-top:10px;display:inline-block;text-shadow:none;border:none;transition:.24s;position:relative;margin-right:7px;font-size:12px;font-weight:500;border-radius:8px;padding:9px 18px 8px;width:53px;height:34px;line-height:21px;background:0 0;margin:0;box-shadow:none}#webnus-dashboard .mec-addon-box-footer a:last-of-type{margin-right:0}#webnus-dashboard .mec-addon-box-footer a.mec-addon-box-intro:hover{background-color:#ff3535;background:linear-gradient(95deg,#ff6c6c 0,#f55 50%,#ff3535 100%)}#webnus-dashboard .mec-addon-box-footer a:hover{background:#00cae6;cursor:pointer!important}#webnus-dashboard .mec-addon-box-footer a i{color:#00cae6;font-size:16px}#webnus-dashboard .mec-addon-box-footer a:hover i{color:#fff}#mec_tickets .mec-box{position:relative;padding:25px 10px}#mec_fees_list input[type=text].mec-col-12,#mec_ticket_variations_list input[type=text].mec-col-12{max-width:625px}#taxes_option .mec-form-row input[type=text].mec-col-12,#ticket_variations_option input[type=text].mec-col-12{max-width:575px}.mec-booking-tab-content .mec-form-row textarea{max-width:762px}#mec_tickets .button.remove{padding:0;min-height:28px;height:28px;width:28px;margin:0;border-radius:50%;position:absolute;top:20px;right:20px;color:#fff;box-shadow:none;background:#fff;border-color:#e3e4e5;font-size:20px;line-height:1.5}#mec_tickets .button.remove svg{fill:#ea6485!important}#mec_tickets .button.remove:hover{color:#fff;border-color:#ea6485;background:#ea6485}#mec_tickets .button.remove:hover svg{fill:#fff!important}@media (max-width:480px){#mec_tickets .button.remove{top:5px;right:5px}}.mec-ticket-id{font-size:12px;line-height:12px;font-weight:400;color:#07bbe9;padding:0 0 8px;margin-top:-6px;margin-bottom:14px;cursor:default}.mec-ticket-end-time.mec-col-12 .mec-time-span,.mec-ticket-start-time.mec-col-12 .mec-time-span{min-width:80px;display:inline-block}.mec-ticket-start-time{margin-bottom:20px}.mec-ticket-time{min-width:69px;display:inline-block}.mec-stop-selling-tickets{min-width:185px}#mec_meta_box_hourly_schedule_days .mec-form-row input[type=text],#mec_meta_box_tickets_form .mec-form-row input[type=text]{max-width:290px}@media (max-width:1366px){#mec_meta_box_hourly_schedule_days .mec-box.mec-form-row input[type=text]{max-width:150px;min-width:110px}}#mec_exceptions_not_in_days_date{width:100%}#mec-event-data input[type=date],#mec-event-data input[type=email],#mec-event-data input[type=tel],#mec-event-data input[type=text],#mec-event-data input[type=url],#mec-event-data select,#mec-event-data textarea,#mec_exceptions_not_in_days_date,#mec_meta_box_date_form input[type=text],#mec_select_tags.mec-create-shortcode-tab-content input[type=text],#mec_settings_weather_module_api_key{max-width:290px}#mec-event-data input[type=text].mec_date_picker.mec-col-4 #mec_meta_box_calendar_skin_options input[type=text].mec_date_picker.mec-col-4{max-width:32.33333333%}#payment_gateways_option .mec-col-4 input[type=number],#payment_gateways_option .mec-col-4 input[type=text],#payment_gateways_option .mec-col-4 select,#payment_gateways_option .mec-col-4 textarea{width:90%}.mec-form-repeating-event-row .mec-col-6 input[type=text]{width:35%}.addons-page-error,.addons-page-notice{display:block;margin-top:15px;margin-bottom:0;background:#fff;border-left:4px solid #00a0d2;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1px 12px}.addons-page-error p,.addons-page-notice p{margin:.5em 0;padding:2px;font-size:13px}.addons-page-error{border-left-color:#dc3232}.mec-addon-box-comingsoon{background:0 0;padding:8px 11px;color:#5a5a5a;font-size:14px;font-weight:500;text-align:center}.mec-addons .w-row .w-col-sm-3:nth-child(4n+1){clear:left}@media (min-width:960px){#webnus-dashboard .mec-addon-box-footer .w-button{text-align:right}}@media (min-width:1401px){.mec-addon-box-title a span{font-size:17px}}.mec-pro-notice{margin-top:24px;line-height:30px}.mec-pro-notice .info-msg{padding:50px 30px;margin-bottom:0}#webnus-dashboard .mec-pro-notice .info-msg{background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / 1%);text-align:center;color:#55595d}#webnus-dashboard a.info-msg-link{background:#e66f52;background:linear-gradient(95deg,#ff8162 0,#e66f52 50%,#ff4c20 100%);box-shadow:0 5px 10px -5px #e66f52;border-radius:2px;padding:12px 50px;font-size:16px;line-height:24px;border:none;margin:20px auto 0;color:#fff;transition:all .3s ease;display:inline-block}#webnus-dashboard a.info-msg-link:hover{background:#222;background:linear-gradient(95deg,#555 0,#222 50%,#000 100%);box-shadow:0 5px 21px -5px rgba(0,0,0,.5)}#webnus-dashboard .info-msg p{width:70%;margin:0 auto;line-height:1.8}#webnus-dashboard .info-msg-coupon{font-size:13px;color:#777;max-width:600px;line-height:1.68;margin:25px auto 0}#webnus-dashboard .info-msg-coupon strong{font-weight:700;color:#19ce18}.info-msg .socialfollow{padding-top:20px}.info-msg .socialfollow a{margin:0 2px;display:inline-block}.info-msg .socialfollow a i{background:#96a4b1;color:#fff;padding:6px;border-radius:3px;font-size:18px;box-shadow:0 2px 3px rgba(0,0,0,.1);transition:all .25s}.info-msg .socialfollow a:hover i{background:#008aff}.mec-intro-section .w-box-content{text-align:center}.mec-intro-section .w-box-content.mec-intro-section-welcome{max-width:600px;margin:0 auto}.mec-intro-section .w-box-content.mec-intro-section-welcome h3{font-size:26px}a.mec-intro-section-link-tag.button.button-hero{margin:0 10px 40px}a.mec-intro-section-link-tag.button.button-primary.button-hero{color:#fff!important}a.mec-intro-section-link-tag.button.button-secondary.button-hero{color:#1dbfd8!important}.mec-intro-section-ifarme iframe{border:1px solid #e7e7e7;border-radius:9px;padding:15px;box-shadow:0 3px 10px -6px rgb(0 0 0 / 12%)}.w-box-content.mec-intro-section-welcome p{margin-bottom:0}.mec-tooltip a:focus{box-shadow:none}#mec_booking_form .mec-options-fields,#mec_modules_form .mec-options-fields,#mec_settings_form .mec-options-fields,#mec_single_form .mec-options-fields{padding-bottom:150px!important}#mec_taxes_fees_container_toggle{margin-bottom:60px}#mec_taxes_fees_container_toggle{margin-bottom:60px}.wns-be-sidebar li{position:relative}.wns-be-sidebar li .submneu-hover{position:absolute;top:-1px;right:-222px;width:220px;z-index:9;background:#fff;border:1px;border-style:solid;border-color:#dedede;margin:0;overflow:visible;opacity:0;visibility:hidden;transition:all .23s ease;padding-top:8px;padding-bottom:12px}.wns-be-sidebar li:hover .submneu-hover{opacity:1;visibility:visible}.wns-be-sidebar li .submneu-hover a{background:#fff;color:#636363;opacity:1;font-size:12px;padding:6px 4px 6px 26px}.wns-be-sidebar li .submneu-hover a:hover{background:#f6f6f6;color:#222}.wns-be-sidebar li .submneu-hover:before{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-15px;top:14px;border-right-color:#c5c5c5;right:0}.wns-be-sidebar li .submneu-hover:after{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-14px;top:14px}.wns-be-sidebar li a:focus,.wns-be-sidebar li:focus{outline:-webkit-focus-ring-color auto 0;border:0;box-shadow:none}@media (max-width:480px){.wns-be-sidebar li .submneu-hover{width:175px;right:0}.wns-be-sidebar li .submneu-hover a{font-size:11px;padding:5px 5px 5px 20px}}.mec-tooltip:hover:after,.mec-tooltip:hover:before{display:none}.mec-tooltip{display:inline-flex;bottom:7px}.mec-tooltip .box{min-width:300px;max-width:600px;display:inline-block;left:26px;top:50%;transform:translateY(-50%);padding:0;margin-top:8px;background-color:#535a61;color:#fff;font-weight:300;font-size:14px;letter-spacing:.5px;line-height:1.3;position:absolute;z-index:9999999;box-sizing:border-box;border-radius:6px;box-shadow:0 4px 45px -8px #444b50;visibility:hidden;opacity:0;transition:opacity .23s}#webnus-dashboard .mec-tooltip .box p,.mec-tooltip .box p{color:#fff;font-size:14px;line-height:1.3;margin:0;font-style:normal}.mec-tooltip:hover .box{visibility:visible;opacity:1}.mec-tooltip:hover .box{padding:20px;border-radius:8px}.mec-tooltip .box h5{color:#fff;font-size:17px;font-weight:600;margin:-30px -20px;padding:15px 0;text-align:center;margin-bottom:10px;background:#3a3f44;border-bottom:1px solid #30353a;border-radius:6px 6px 0 0;z-index:9999}.mec-tooltip .box h5:after{display:none}#webnus-dashboard .mec-tooltip .box p a,.mec-tooltip .box p a{color:#40d9f1;margin-top:10px;margin-left:0;font-weight:400;position:relative;text-decoration:none;display:block;width:max-content}.mec-tooltip .box a:hover{color:#f90}.mec-tooltip .box:after{display:block;position:absolute!important;top:100%!important;right:50%!important;margin-top:-6px!important;margin-right:-6px!important;width:12px!important;height:24px!important;overflow:hidden!important;transform:rotate(-90deg)!important}.mec-tooltip .box:before{display:block;content:''!important;position:absolute!important;width:12px;height:12px;left:-10px!important;top:50%!important;transform:translate(50%,-50%) rotate(-45deg)!important;background-color:#535a61!important;box-shadow:0 8px 9px -4px #535a61!important;z-index:0!important}.mec-tooltip .box.top{left:50%;top:0;transform:translate(-50%,-100%);margin-top:0;margin-left:-10px}.mec-tooltip .box.top:after{top:50%!important;right:100%!important}.mec-tooltip .box.top:before{left:50%!important;top:100%!important}.mec-tooltip .box.bottom{left:50%;top:auto;bottom:0;transform:translate(-50%,100%);margin-bottom:-20px;margin-left:-10px}.mec-tooltip .box.bottom:after{top:0!important;right:50%!important;background-color:#3a3f44!important}.mec-tooltip .box.bottom:before{left:50%!important;top:-7px!important;transform:translateX(-50%);background-color:#3a3f44!important}.mec-tooltip .box.left{left:auto;right:26px;top:50%;transform:translateY(-50%)}.mec-tooltip .box.left:before{right:0!important;left:auto!important;top:50%!important}form#mec_reg_fields_form input[type=radio]:before{content:'';display:inline-block;background:#fff;border-radius:18px;width:14px;height:14px;margin:-1px 0 0 -2px;cursor:pointer;border:2px solid #e1e7ed;box-shadow:0 2px 15px -3px rgba(69,77,89,.32)}form#mec_reg_fields_form input[type=radio]:checked:before{border:7px solid #ccecf4;background:#fff;box-shadow:0 3px 16px -3px #008aff;width:4px;height:4px}form#mec_reg_fields_form input[type=radio]{min-height:0;margin-right:6px}form#mec_reg_fields_form label{margin-right:20px}@media (min-width:1200px) and (max-width:1366px){.mec-tooltip .box{min-width:290px}.mec-tooltip .box h5{font-size:15px}.mec-tooltip .box .content{font-size:12px}}@media (max-width:1366px){.wns-be-container .wns-be-group-tab p{margin-top:0}}.mec-addons-notification-box-wrap .w-col-sm-12,.mec-cmsg-notification-box-wrap .w-col-sm-12{padding:0}.mec-addons-notification-box-wrap img{width:auto}.mec-addons-notification-box-image{width:555px;display:inline-block;vertical-align:top}.mec-addons-notification-box-content{width:calc(100% - 559px);display:inline-block}.mec-addons-notification-box-content p{margin-top:1%;line-height:1.5;font-size:16px}.mec-addons-notification-box-content .w-box-content{padding-top:0;padding-bottom:0}.mec-addons-notification-box-content ol{font-size:16px}.mec-addons-notification-box-content a{background:#38d5ed;color:#fff!important;padding:10px 26px;margin-top:5px;display:inline-block;border-radius:3px;text-transform:capitalize;font-size:16px;letter-spacing:.4px;transition:all .1s ease;font-weight:600;text-decoration:none}.mec-addons-notification-box-content a:hover{background:#000}.w-clearfix.w-box.mec-addons-notification-box-wrap span,.w-clearfix.w-box.mec-cmsg-2-notification-box-wrap span,.w-clearfix.w-box.mec-cmsg-notification-box-wrap span{right:0;left:unset;cursor:pointer;background:0 0;padding:0 16px}.w-clearfix.w-box.mec-addons-notification-box-wrap span i,.w-clearfix.w-box.mec-cmsg-2-notification-box-wrap span i,.w-clearfix.w-box.mec-cmsg-notification-box-wrap span i{font-size:28px;vertical-align:sub;color:#f2113e}.mec-custom-msg-notification-wrap,.wns-be-container .mec-addons-notification-wrap{padding:0;margin:0}.mec-custom-msg-notification-wrap .w-col-sm-12,.wns-be-container .mec-addons-notification-wrap .w-col-sm-12{padding:0}.wns-be-container .w-box{margin-top:0}.wns-be-container.mec-addons-notification-set-box{margin-right:15px;margin-top:50px;margin-bottom:27px}@media (max-width:1200px){.mec-addons-notification-box-content,.mec-addons-notification-box-image{width:100%;display:block}.mec-addons-notification-box-image{text-align:center}}@media (max-width:768px){.mec-addons-notification-box-image img{width:100%;height:auto}}.mec-details-addons-container{margin-top:20px}.mec-details-addons-wrap img{float:left;width:19%;margin-right:17px}.mec-details-addons-wrap{clear:both;margin-bottom:80px;display:block;position:relative}.mec-details-addons-wrap a{text-decoration:none}.mec-details-addons-wrap p{float:left;width:340px;margin-top:0;margin-bottom:30px}.mec-details-addons-title{font-weight:700}.mec-details-addons-title a{color:#444}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx{border-radius:10px!important;box-shadow:0 4px 38px rgba(0,0,0,.14)!important}body .crisp-client .crisp-1rjpbb7 .crisp-13qutdl,body .crisp-client .crisp-1rjpbb7 .crisp-13qutdl *,body .crisp-client .crisp-1rjpbb7 .crisp-9dgo7z,body .crisp-client .crisp-1rjpbb7 .crisp-9dgo7z *{font-family:proxima-nova,-apple-system,BlinkMacSystemFont,'Segoe UI',Catamaran,sans-serif!important}body .crisp-client .crisp-1rjpbb7 .crisp-145mbcr,body .crisp-client .crisp-1rjpbb7 .crisp-1jrqqbm:hover{background-color:#fff!important}body .crisp-client .crisp-1rjpbb7 .crisp-14u434g{border-color:#e7e8e9!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-1bkorcf .crisp-1vzg1qq{font-size:20px!important;width:14px!important;height:19px!important;opacity:.85}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-1bkorcf .crisp-1vzg1qq:hover{opacity:.99}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-1sps3eb .crisp-1vd2grm .crisp-12w4w1a{font-size:13px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-1sps3eb .crisp-1vd2grm .crisp-12w4w1a::-webkit-input-placeholder{color:#717273!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-from=visitor] .crisp-z89v5n .crisp-162m9xf{background-color:#008aff!important;color:#fff!important;box-shadow:none!important;border-radius:5px!important;padding:15px 25px 15px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-from=visitor] .crisp-z89v5n .crisp-162m9xf .crisp-1o2g4mc{color:#fff!important;font-size:13px!important;letter-spacing:.3px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv .crisp-z89v5n .crisp-162m9xf{background-color:#f1f2f3!important;border-radius:5px!important;padding:15px 25px 15px!important;box-shadow:none!important;color:#121314!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-type=audio] .crisp-z89v5n .crisp-162m9xf{background-color:#d1d7dc!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv[data-from=operator] .crisp-z89v5n .crisp-1o2g4mc{color:#121314!important;-webkit-text-fill-color:#121314!important;font-size:13px!important;letter-spacing:.3px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv .crisp-mkirz6 .crisp-12qaym5 .crisp-39hskb{opacity:.4;margin-right:5px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-zyxrmn .crisp-1bu0ive .crisp-z7oo2o .crisp-lgu84d .crisp-1ohjrf0 .crisp-dqw9ko .crisp-bhspdv .crisp-mkirz6 .crisp-12qaym5 .crisp-ehr6mw{opacity:.68;font-size:12px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg{background-image:linear-gradient(125deg,#008aff -10%,#0066b1 100%)!important;height:110px!important;padding-top:35px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-rhv8pz .crisp-1uw6f17,body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-rhv8pz .crisp-85evuk,body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx .crisp-1784wh6 .crisp-1xmtdlg .crisp-rhv8pz .crisp-nu40j6{font-size:17px!important;line-height:28px!important;padding-top:10px!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-kquevr .crisp-x94m06{background-color:#008aff!important;background-image:linear-gradient(125deg,#008aff -10%,#008af0 100%)!important;box-shadow:0 5px 34px -6px #008aff!important}body .crisp-client .crisp-1rjpbb7 .crisp-4oo1n4{background-color:transparent!important}body .crisp-client .crisp-1rjpbb7 .crisp-1rf4xdh .crisp-ewasyx[data-chat-status=ongoing] .crisp-1784wh6 .crisp-1xmtdlg .crisp-172kolj{margin-top:-10px!important}body .crisp-client .crisp-1rjpbb7[data-last-operator-face=false] .crisp-1rf4xdh .crisp-kquevr .crisp-x94m06 .crisp-16qgsyi .crisp-101bp3x[data-is-ongoing=false]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSI1NSIgdmlld0JveD0iMCAwIDU4IDU1Ij4NCiAgPGcgaWQ9ImNoYXQtc3ZncmVwby1jb21fMV8iIGRhdGEtbmFtZT0iY2hhdC1zdmdyZXBvLWNvbSAoMSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTEuNSkiPg0KICAgIDxwYXRoIGlkPSJQYXRoXzEiIGRhdGEtbmFtZT0iUGF0aCAxIiBkPSJNMjksMS41YzE2LjAxNiwwLDI5LDExLjY0MSwyOSwyNmEyNC4wMSwyNC4wMSwwLDAsMS00LjgsMTQuMzE4Yy40LDQuNzQ1LDEuNTQyLDExLjQyOCw0LjgsMTQuNjgyLDAsMC05Ljk0My0xLjQtMTYuNjc3LTUuNDYybC0uMDIyLjAwOWMtMi43NjQtMS44LTUuNTMyLTMuNjU2LTYuMS00LjEyNmExLDEsMCwwLDAtMS4zMy0uMjc3LDEuMDE3LDEuMDE3LDAsMCwwLS40ODkuODQ4Yy0uMDEuNjIyLjAwNS43ODQsNS41ODUsNC40MjFBMzEuOTE0LDMxLjkxNCwwLDAsMSwyOSw1My41Yy0xNi4wMTYsMC0yOS0xMS42NDEtMjktMjZTMTIuOTg0LDEuNSwyOSwxLjVaIiBmaWxsPSIjZmZmIi8+DQogICAgPGNpcmNsZSBpZD0iRWxsaXBzZV8xIiBkYXRhLW5hbWU9IkVsbGlwc2UgMSIgY3g9IjMiIGN5PSIzIiByPSIzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMiAyNC41KSIgZmlsbD0iIzAwOGFmZiIvPg0KICAgIDxjaXJjbGUgaWQ9IkVsbGlwc2VfMiIgZGF0YS1uYW1lPSJFbGxpcHNlIDIiIGN4PSIzIiBjeT0iMyIgcj0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYgMjQuNSkiIGZpbGw9IiMwMDhhZmYiLz4NCiAgICA8Y2lyY2xlIGlkPSJFbGxpcHNlXzMiIGRhdGEtbmFtZT0iRWxsaXBzZSAzIiBjeD0iMyIgY3k9IjMiIHI9IjMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQwIDI0LjUpIiBmaWxsPSIjMDA4YWZmIi8+DQogIDwvZz4NCjwvc3ZnPg0K)!important;height:31px!important;top:16px!important;left:14px!important}body .csh-category-item a h6{text-align:left}.mec-form-row.mec-syn-schedule{background:#fff;padding:20px;border:1px solid #eee;margin-bottom:10px;border-radius:3px}.mec-form-row.mec-syn-schedule p{padding-left:26px}.mec-form-row.mec-syn-schedule h2{margin-top:0}.mec-form-row.mec-syn-schedule h4{margin:10px 0}li.wns-be-group-menu-li.mec-settings-menu .mec-settings-submenu{position:absolute;top:-1px;right:-222px;width:220px;z-index:9;background:#fff;border:1px;border-style:solid;border-color:#e6e9eb;margin:0;overflow:visible;opacity:0;visibility:hidden;transition:all .23s ease;padding-top:8px;padding-bottom:12px;border-radius:0 2px 2px 0;box-shadow:0 2px 4px rgba(0,0,0,.03)}li.wns-be-group-menu-li.mec-settings-menu:hover>.mec-settings-submenu{visibility:visible;opacity:1}.mec-settings-menu .mec-settings-submenu:before{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-15px;top:14px;border-right-color:#d6d9db;right:0}.mec-settings-menu .mec-settings-submenu:after{position:absolute;z-index:999;content:' ';height:0;width:0;border:7px solid transparent;border-right-color:#fff;left:-14px;top:14px}.wns-be-sidebar .mec-settings-menu .mec-settings-submenu a{background:#fff;color:#666c75;opacity:1;font-size:13px;font-weight:400;padding:6px 4px 5px 26px}.wns-be-sidebar .mec-settings-menu .mec-settings-submenu a:hover{color:#000;background:#f7f8f9}.mec-form-row.mec-skin-countdown-date-format-container input[type=text],.mec-form-row.mec-skin-grid-date-format-container input[type=text],.mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-skin-options-container input[type=text]{max-width:unset}.wn-mec-select{width:32.33333333%!important;clear:unset!important}.wn-mec-select{-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:3px;border:1px solid #ddd;margin-bottom:8px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;box-shadow:0 3px 13px -5px rgba(0,0,0,.1),inset 0 1px 2px rgba(0,0,0,.07)}.wn-mec-select:hover{border-color:#dbdbdb}.wn-mec-select.open .list{overflow:unset;width:100%;margin:0}.wn-mec-select .list{background-color:#fff;border-radius:2px;box-shadow:0 2px 33px -2px rgba(0,0,0,.2),inset 0 1px 2px rgba(0,0,0,.07);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9}.wn-mec-select{-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:5px;border:solid 1px #e8e8e8;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:14px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:auto}.wn-mec-select:hover{border-color:#dbdbdb}.wn-mec-select:after{border-bottom:2px solid #999;border-right:2px solid #999;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:12px;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.wn-mec-select.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.wn-mec-select.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.wn-mec-select.disabled{border-color:#ededed;color:#999;pointer-events:none}.wn-mec-select.disabled:after{border-color:#ccc}.wn-mec-select.wide{width:100%}.wn-mec-select.wide .list{left:0!important;right:0!important}.wn-mec-select.right{float:right}.wn-mec-select.right .list{left:auto;right:0}.wn-mec-select.small{font-size:12px;height:36px;line-height:34px}.wn-mec-select.small:after{height:4px;width:4px}.wn-mec-select .list{background-color:#fff;border-radius:5px;box-shadow:0 0 0 1px rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9}.wn-mec-select .list:hover .option:not(:hover){background-color:transparent!important}.wn-mec-select .option{cursor:pointer;font-weight:400;list-style:none;min-height:40px;outline:0;text-align:left;position:relative;font-size:12px!important;padding:1px 12px!important;margin:0!important;line-height:28px!important;min-height:28px!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wn-mec-select .option .wn-hover-img-sh img{position:absolute;padding:3px;top:-1px;left:100%;box-shadow:0 4px 42px -5px rgba(0,0,0,.16);visibility:hidden;opacity:0;border:1px solid #e3e3e3;border-radius:2px;z-index:99999999;background:#fff}.wn-mec-select .option:hover .wn-hover-img-sh img{visibility:visible;opacity:1}.wn-mec-select .option.focus,.wn-mec-select .option.selected.focus,.wn-mec-select .option:hover{background-color:#f6f6f6}.wn-mec-select .option.selected{font-weight:700}.wn-mec-select .option.disabled{background-color:transparent;color:#999;cursor:default}.no-csspointerevents .wn-mec-select .list{display:none}.no-csspointerevents .wn-mec-select.open .list{display:block}.mec-custom-nice-select ul.list li.option{width:30%!important;float:left!important;min-height:135px!important;height:135px;margin:1.66%!important;box-sizing:border-box;text-align:center;padding:10px!important;border-radius:8px;border:1px solid transparent;box-shadow:none;background:#fff0!important}.mec-custom-nice-select ul.list li.option:hover{box-shadow:0 1px 8px rgba(0,0,0,.025),0 0 0 1px #f3f4f5}.mec-custom-nice-select .list .option:hover,.mec-custom-nice-select ul.list li.option:hover{background:#fff!important}.mec-custom-nice-select .list:hover .option:not(:hover),.mec-custom-nice-select ul.list:hover li.option{background:#fff!important}.mec-custom-nice-select ul.list{min-width:600px!important;padding:20px 10px!important;background:#fcfbfd;border:1px solid #e9e9e9;box-shadow:0 1px 4px rgba(0,0,0,.05)}.mec-custom-nice-select ul.list li.option.selected{border:1px solid #40d9f16b;box-shadow:0 1px 8px -3px #40d9f152 inset;color:#00cae6;padding:12px 0 0 0!important}.mec-custom-nice-select .wn-img-sh img{margin:4px 0 1px 1px;line-height:1;max-width:68px;max-height:56px;filter:grayscale(1);-webkit-filter:grayscale(1);transition:all .22s ease;-webkit-transition:all .22s ease;-moz-transition:all .22s ease;-ms-transition:all .22s ease;-o-transition:all .22s ease}.wn-mec-select .option.focus .wn-img-sh img,.wn-mec-select .option.selected.focus .wn-img-sh img,.wn-mec-select .option:hover .wn-img-sh img{background-color:#f6f6f6;filter:grayscale(0);-webkit-filter:grayscale(0)}@media (max-width:768px){.wn-mec-select{width:45%!important}.mec-custom-nice-select ul.list{margin-left:-24px!important;min-width:404px!important}.mec-custom-nice-select ul.list li.option{width:46.6%!important}.wn-hover-img-sh{display:none}}@media (max-width:480px){.wn-mec-select{width:100%!important}.mec-custom-nice-select ul.list{min-width:337px!important}}@media (max-width:320px){.mec-custom-nice-select ul.list li.option{width:100%!important}.mec-custom-nice-select ul.list{min-width:298px!important}}.mec-sed-methods li{line-height:28px;padding-left:38px;position:relative}.mec-sed-methods li:before{margin-right:0}.mec-sed-methods li:before{border-radius:18px}.mec-custom-nice-select ul.list li .wn-mec-text:after,.mec-sed-methods li:before{content:'';position:absolute;display:inline-block;background:#fff;border-radius:2px;width:12px;height:12px;margin:-1px 0 0 -1px;cursor:pointer;border:2px solid #e1e7ed;border-radius:50%}.mec-custom-nice-select ul.list li .wn-mec-text{position:relative;padding-top:0;padding-bottom:28px}.mec-custom-nice-select ul.list li .wn-mec-text:after{left:calc(50% - 7px);top:auto;bottom:1px}.mec-custom-nice-select ul.list li .wn-img-sh{line-height:1}.mec-sed-methods li:before{left:9px;top:calc(50% - 7px)}.mec-custom-nice-select ul.list li.option.selected .wn-mec-text:after,.mec-sed-methods li.active:before{width:4px;height:4px;border:7px solid #07bbe9;background:#fff;box-shadow:0 3px 16px -3px #07bbe9}#menu-posts-mec-books .wp-menu-image img,#toplevel_page_mec-intro .wp-menu-image img{width:18px!important;padding-top:7px!important}.mec-add-booking-tabs-wrap,.mec-add-event-tabs-wrap,.mec-create-shortcode-tabs-wrap{display:flex;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox}.mec-add-booking-tabs-left,.mec-add-event-tabs-left{min-width:200px}@media (max-width:1366px){.mec-add-booking-tabs-left,.mec-add-event-tabs-left{min-width:137px}}.mec-add-booking-tabs-left,.mec-add-event-tabs-left,.mec-create-shortcode-tabs-left{flex:1}.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{flex:6}a.mec-add-booking-tabs-link,a.mec-add-event-tabs-link,a.mec-create-shortcode-tabs-link{display:block}.mec-booking-tab-content,.mec-create-shortcode-tab-content,.mec-event-tab-content{display:none;transition:all .3s ease}.mec-booking-tab-content.mec-tab-active,.mec-create-shortcode-tab-content.mec-tab-active,.mec-event-tab-content.mec-tab-active{display:block}.mec-add-booking-tabs-wrap,.mec-add-event-tabs-wrap{background:#fff;margin:-6px -12px -12px}.mec-create-shortcode-tabs-wrap{margin:-30px -22px -42px}.mec-add-booking-tabs-left,.mec-add-event-tabs-left,.mec-create-shortcode-tabs-left{background:#f7f8f9}.mec-add-booking-tabs-left a,.mec-add-event-tabs-left a,.mec-create-shortcode-tabs-left a{display:block;position:relative;outline:0;padding:13px 4px 13px 20px;background:#e3e5e7;background:0 0;border:solid;border-width:1px 0 1px 0;border-color:transparent;color:#3f454a;font-size:13px;font-weight:600;text-decoration:none;border-radius:0;transition:all .2s ease}.mec-add-booking-tabs-left a:first-of-type,.mec-add-event-tabs-left a:first-of-type,.mec-create-shortcode-tabs-left a:first-of-type{border-top:none}.mec-add-booking-tabs-left a:hover,.mec-add-event-tabs-left a:hover,.mec-create-shortcode-tabs-left a:hover{background:#fff;color:#07bbe9}.mec-add-booking-tabs-left a:focus,.mec-add-event-tabs-left a:focus,.mec-create-shortcode-tabs-left a:focus{box-shadow:none;outline:unset}.mec-add-booking-tabs-left a.mec-tab-active,.mec-add-event-tabs-left a.mec-tab-active,.mec-create-shortcode-tabs-left a.mec-tab-active{background:#ecf9fd;color:#07bbe9;border-color:#ccecf4;position:relative;padding-left:22px}.inside div div>a.mec-tab-active:after,.inside div div>a.mec-tab-active:before{position:absolute;z-index:9999;content:' ';height:0;width:0;border:8px solid transparent;border-right-color:#fff;right:-1px;top:13px}.inside div div>a.mec-tab-active:before{border-right-color:#d7d8d9;right:0}.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding:0 30px 40px;border-left:1px solid #e2e2e2}.mec-booking-tab-content.mec-tab-active,.mec-create-shortcode-tab-content.mec-tab-active,.mec-event-tab-content.mec-tab-active{animation:fadeEffect2 .31s}@media (max-width:1366px){.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding:0 15px 20px}.mec-form-row select{min-width:60px}}@media (min-width:1199px) and (max-width:1280px){.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding:0 0 0 10px}#mec_meta_box_hourly_schedule_days{padding:0 40px 0 0}#mec_meta_box_hourly_schedule_days .mec-form-row.mec-box{margin-right:-40px}#mec_comment,#mec_cost,#mec_countdown_method,#mec_event_timezone,#mec_public,#mec_repeat_type{min-width:220px;width:220px}#mec_meta_box_hourly_schedule_days .mec-box.mec-form-row input[type=text]{max-width:120px}.mec-form-row .mec-time-picker select{min-width:60px}#mec_countdown_method,#mec_repeat_type{min-width:220px;width:220px}#mec_exceptions_in_days_container .mec-col-4{width:25%}#mec_exceptions_in_days_container .mec-col-3{width:50%}#mec_exceptions_in_days_container .mec-col-5{width:20%}#mec_exceptions_in_days_container input[type=text]{width:95%}#mec_repeat_certain_weekdays_container label:not(.mec-col-3){display:block;padding-left:25%}}@media (max-width:1023px){.post-type-mec-events h4,.post-type-mec_calendars .mec-meta-box-fields h3{margin-top:20px}.post-type-mec-events .mec-form-row{padding-bottom:20px}.post-type-mec-events .mec-form-row .mec-form-row{padding:0}.post-type-mec-events .mec-form-row .mec-col-1,.post-type-mec-events .mec-form-row .mec-col-10,.post-type-mec-events .mec-form-row .mec-col-11,.post-type-mec-events .mec-form-row .mec-col-12,.post-type-mec-events .mec-form-row .mec-col-2,.post-type-mec-events .mec-form-row .mec-col-3,.post-type-mec-events .mec-form-row .mec-col-4,.post-type-mec-events .mec-form-row .mec-col-5,.post-type-mec-events .mec-form-row .mec-col-6,.post-type-mec-events .mec-form-row .mec-col-7,.post-type-mec-events .mec-form-row .mec-col-8,.post-type-mec-events .mec-form-row .mec-col-9{display:block;width:100%;margin:20px 0 0 0;max-width:285px}.post-type-mec-events .mec-add-booking-tabs-left,.post-type-mec-events .mec-add-event-tabs-left{min-width:180px}.post-type-mec-events .mec-add-booking-tabs-left a,.post-type-mec-events .mec-add-event-tabs-left a,.post-type-mec-events .mec-create-shortcode-tabs-left a{padding-left:10px}#mec_repeat_type,.post-type-mec-events #mec_settings_fes_thankyou_page_url,.post-type-mec-events .mec-form-row .mec-col-4 input[type=number],.post-type-mec-events .mec-form-row .mec-col-4 input[type=text],.post-type-mec-events .mec-form-row .mec-col-4 select,.post-type-mec-events .mec-form-row .mec-col-4 textarea{width:100%;max-width:255px}#mec-exceptional-days .mec-certain-day>div,#mec_exceptions_in_days_container .mec-certain-day>div{width:100%;max-width:255px;padding:12px;margin:20px 10px 0 0;border-radius:8px}.mec-certain-day .mec-in-days-day,.mec-certain-day>div .mec-not-in-days-day{line-height:21px;font-size:10px}#mec_repeat_certain_weekdays_container label{display:block;margin:20px 0 20px 0}}@media (max-width:640px){.mec-add-booking-tabs-wrap,.mec-add-event-tabs-wrap,.mec-create-shortcode-tabs-wrap{display:block}.post-type-mec-events .mec-add-booking-tabs-left,.post-type-mec-events .mec-add-event-tabs-left{min-width:100%;width:100%!important;display:block!important;float:unset;margin:0;flex:unset;height:auto}.post-type-mec-events .mec-add-booking-tabs-right,.post-type-mec-events .mec-add-event-tabs-right,.post-type-mec-events .mec-create-shortcode-tabs-right{display:block;min-width:100%;width:100%;margin:0;flex:unset}.post-type-mec-events .mec-add-booking-tabs-left a,.post-type-mec-events .mec-add-event-tabs-left a,.post-type-mec-events .mec-create-shortcode-tabs-left a{font-size:14px;padding:14px 10px 14px 15px;line-height:1.2;letter-spacing:0}.mec-add-booking-tabs-right,.mec-add-event-tabs-right,.mec-create-shortcode-tabs-right{padding-left:10px;padding-right:10px}#mec_tickets .mec-box{max-width:290px}}@keyframes fadeEffect2{from{opacity:0;transform:translateX(11px)}to{opacity:1;transform:translateX(0)}}.mec-form-row .mec-col-8 label,.mec-form-row .mec-col-9 label{padding-right:20px}@media (min-width:860px) and (max-width:1280px){.mec-form-row .mec-col-9 label{padding-right:12px}}#mec-event-data .mec-form-row label{margin-right:14px}.mec-form-row input[type=date]::-webkit-calendar-picker-indicator{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QjQ2N0QwQjQ4MzExRUE4RDdFREZDRTUxMUVERTM5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA0QjQ2N0QxQjQ4MzExRUE4RDdFREZDRTUxMUVERTM5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDRCNDY3Q0VCNDgzMTFFQThEN0VERkNFNTExRURFMzkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDRCNDY3Q0ZCNDgzMTFFQThEN0VERkNFNTExRURFMzkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6WW71PAAAGIklEQVR42qRXS28bVRQ+586Mx3ZC1DSpVFojRU2CqMIGiSKxAVoUduzoDjYIlhU/Av4AYsdjRXfkD0Cjom6QqIqEqEhRo1aRkkZpkpY6j7GduQ++c2dsj1+BlInGztxvzj3nfudpPlM/otc2W2QjJmU0rZ0uUytUpBxNnN9p/FYhctF0+XUi2nPGkX7WJOfwxNRzqXxtbfI4eUvm7xY1o4iiI0d/vFiisL2BgTAz0yvbCRnLhP0uNEtqrgUseZRcwPPvJewaldSA8o48vo+Tj0U+CnrkOgZwvkEzEmGm1PF9fzK5Y3U/YlllsjRUv19zXl7571HyAjooc/kmYerpcmPO0Mfa0SyxEtji44ynOjPuayjecd7M46/MQOdGyIs9ThnzMLD0XRrwIdeetmoLm41fWiG95Ar792tydLLrOPkAlpW027hbG3+T37lf/5EtvYcXUuhfBjWp9wHRBO63c5lbEkQj2B92uaHy4l2EAQ66GFgbmiD4id/9q661ooAtf8rsvmUEilAHEqcgtJvvNq3YPTkJA8PksT9ZFxD8+4my9pvAOqOMxIMoJHfPZoJkJNiYat3duOac6hxt1N3GR8lnt0O623s+c2CVZEGaZ8Oks1mElvxu7hGYaQjpHLpH3q/YFQE7Oh5Y6gFTaHhAXlasxmoWpZO5L9Ow4DTv+UBZBAkWNO+CqhkbSOzaXWWyzY+n3WcACdVscnklz5CHYsmv1L/RyUJ/cs7zdT3Ey8pTgw/QgNNuS4XjNMvffwvBNmwDH+pdeZ3J+1qDdW15vS0iBhjZWzF9ge8HWl7zNLluYhP/9/jvFANXyL+ufF4jZvOCZsK8isp77+sixf10n7QQjJT39bBtjzdA5chtLG61n7kgk6UvDy29z4HL4c/ifkN0hYV+cA3Bc7stKAfossgSSF06+3HOu8QovE8eThDlv4pu1TbUOpqySDNUKMSDQRIo6QgVRHbFcID1mCITUGgNKLI9uBbcCC59xUi+DsiHBq0XOLb3utqOUYV+LglH9XJASRAsRNqt4xHVj59Exqw3AlrYi0PaiwNqBKoX12Y9iQSP/GkD4xZC0yt/GPFCvZzhUBoMtmPftRwMEEtpupy2auzadLraXtlNoXLhKQYLbjrWRx0cXNf24wxPSmWw5aZPNXSNOi5ytXqZpjTwSqs3PsJi0I61LG29EFG9GtyaeqgvxU17TrAkDjbvnq/eKcTYrbcemi5eHoI/OLgUt7r4n+cqd04llmZ3mjBSDQ4kYtERLLz4OKGt0xGKA9+RgiSGSRV7+UlCVvka72lEvHRx04vLGW2f/PzTBk3VtddRrGlhMXVaIdME5sLJ3ZQOTPQBNqj58uzcxsXtZEkqmQ7IB9ihLeA2x6FQqyG4cRuvbh8uNZSigzBCALhBBtrjkwjjQItQ+kPXWY6eBuEi/lmOlC8kvTh38ZLH3QC+y+GiIl4OqbeZ9RggQZgcVIXe1ep48jPkz/oGw7x1yoytIq1o59AH1Wp1rNHBSXA9tip87zYyvFzpx8dXLVTvqySvhUMNsN6+1ERrrNQVQs57H4K6cR35GrapffICb16RpO7glOHrrQyvjHXxQHB0/j1ugV0LpcFwAzS4n6hiZoIvEp2znwcSigfGJhxpMmseLc0dvFjcvRuLvdEdNyl2+0DOALwE863TM/jnJqhfQa6v4AfJzUNOZ/aVlhqIUpoO4PuU4XFsqFrSM866m9hxBXSvWPx/wHpGqA96Vfa5AH9HnMjYNI96dbkwaVzcCw/nAK+xHzp4Hp89eD04nENzX6v4cYrnrVWXXQF/Fh7MQfWasmogCNsmaT+qwD0g4gYsuYqnWlboeKMUumUr86LycxdwdRUb+zQTvAzcgL0jLXFkbkQUX5UKyFTE2bvZD0a5B8SAUu6dPf+7AInssja2VPSZRud2Ni/NKse5M2VQqkO4BxSzZLmV8Wwpa8S9OHsK3X6+Lc7F/JidOwvkc7z3FbIgzd7smy1c35TEg7NGrg6Ucs88UsCliOLHH1+Td8HYFl++W//QxfT9iSee/3lJWy5X6aMwtK3rTVWJUU4/g4GzdLLp73ku8cEDxNmXUZhc/0eAAQAVgX0RHvvILQAAAABJRU5ErkJggg==);background-position:center;background-size:cover;width:10px;height:12px;display:block}.mec-attendees-wrapper select,.mec-calendar-metabox .wn-mec-select,.mec-form-row input[type=date],.mec-form-row input[type=email],.mec-form-row input[type=number],.mec-form-row input[type=tel],.mec-form-row input[type=text],.mec-form-row input[type=url],.mec-form-row select,.mec-form-row textarea,.mec-form-row.mec-skin-list-date-format-container input[type=text],.mec-occurrences-wrapper input[type=date],.mec-occurrences-wrapper input[type=email],.mec-occurrences-wrapper input[type=number],.mec-occurrences-wrapper input[type=tel],.mec-occurrences-wrapper input[type=text],.mec-occurrences-wrapper input[type=url],.mec-occurrences-wrapper select,.mec-occurrences-wrapper textarea{border:none;background-color:#f7f8f9;border-radius:5px;height:38px;line-height:38px;padding-left:10px;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%)}.mec-calendar-metabox .wn-mec-select,.mec-form-row select,.post-type-mec-events .mec-form-row select,.post-type-mec_calendars .mec-form-row select,.wns-be-main .mec-form-row select{appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;min-height:34px;line-height:34px;background-color:#f7f8f9;border-radius:2px;padding-left:8px;box-shadow:0 1px 3px rgb(0 0 0 / 2%);transition:all .23s ease;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDE3IDE3Ij4KPGc+CjwvZz4KCTxwYXRoIGQ9Ik0xNi4zNTQgNS4wNzVsLTcuODU1IDcuODU0LTcuODUzLTcuODU0IDAuNzA3LTAuNzA3IDcuMTQ1IDcuMTQ2IDcuMTQ4LTcuMTQ3IDAuNzA4IDAuNzA4eiIgZmlsbD0iIzAwMDAwMCIgLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:26px 10px;background-position:right center;min-width:160px;border:1px solid #e6e9eb}.post-type-mec-events .mec-form-row .mec-time-picker select,.post-type-mec-events .wn-ticket-time select{min-width:60px;margin-bottom:10px}.wns-be-main .mec-col-4 select{min-width:unset}.mec-form-row .nice-select{background-image:unset}.mec-calendar-metabox .wn-mec-select.open .list{border-radius:0 0 2px 2px;box-shadow:0 0 0 1px #ddd,0 2px 6px rgba(0,0,0,.07)}.mec-calendar-metabox .mec-custom-nice-select.open ul.list{border-radius:5px;box-shadow:0 2px 6px rgb(0 0 0 / 3%);margin-left:0!important;transform:translateX(-50%);left:50%}.mec-custom-nice-select ul.list li.option.selected .wn-mec-text:after{border:6px solid #40d9f1;box-shadow:0 3px 16px -3px #40d9f1}.m-e-calendar_page_MEC-settings .mec-form-row input+span.mec-tooltip,.m-e-calendar_page_MEC-settings .mec-form-row select+span.mec-tooltip{bottom:10px}.mec-form-row label+span.mec-tooltip{bottom:10px}.mec-form-row textarea+span.mec-tooltip{bottom:auto;vertical-align:top;top:12px}.mec-form-row span+span.mec-tooltip{bottom:0;vertical-align:middle}.mec-form-row .tooltip-move-up span+span.mec-tooltip i{margin-top:-40px}.mec-form-row .mec-col-8 input[type=text],.mec-form-row .mec-col-8 select,.mec-form-row .mec-col-8 span.mec-archive-skins{vertical-align:top}.mec-form-row .mec-col-8 span.mec-archive-skins input[type=text]{max-width:225px}.mec-form-row input:disabled{opacity:.6;background:#f6f6f6}.wns-be-group-tab h5{font-size:16px;font-weight:600;color:#444;margin:0 0 40px 0}.mec-form-row textarea{height:auto;margin-bottom:0;min-height:60px}.mec-form-row .wp-picker-container input[type=text].wp-color-picker{height:25px;vertical-align:top;width:4rem;margin:-10px 0 0 0!important}.mec-form-row .wp-picker-container label{margin:0}.mec-image-select-wrap li span:hover{border-color:#fff;box-shadow:0 1px 8px rgba(0,0,0,.12)}.mec-message-categories li.mec-acc-label:after{content:'\e604';font-family:simple-line-icons;speak:none;font-style:normal;font-weight:400;display:block;font-size:13px;color:#999;position:absolute;right:27px;top:26px}.mec-message-categories>li.mec-acc-label[data-status=open]:after{content:'\e607';color:#07bbe9}.mec-message-categories>li.mec-acc-label[data-status=open]{color:#07bbe9}.mec-message-categories>li.mec-acc-label:last-of-type{border-bottom:none}.mec-message-categories>li.mec-acc-label[data-status=open]{border-bottom:1px solid #e6e6e6}.mec-form-row ul.mec-message-categories{box-shadow:0 2px 16px rgba(0,0,0,.03);border-radius:5px;overflow:hidden;margin-top:30px;background:#f5f5f5;border:2px solid #e6e6e6;max-width:700px}.mec-form-row ul.mec-message-categories li ul{padding:10px 40px 40px;margin:0 -30px 0;background:#fff;box-shadow:inset 0 6px 7px -2px rgb(0 0 0 / 4%);border-top:1px solid #eee;cursor:default}.mec-form-row ul.mec-message-categories ul label{margin:25px 8px 7px;font-size:14px;color:#888;cursor:default}#mec_calendar_display_options .mec-tooltip{bottom:1px}.mec-calendar-metabox .mec-form-row input[type=checkbox],.mec-meta-box-fields .mec-form-row input[type=checkbox]{margin-right:6px}#mec_add_fee_button,#mec_add_ticket_variation_button,#mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button,#taxes_option #mec_fees_list .mec-form-row .button,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button,.mec-export-settings,.mec-import-settings,.mec-meta-box-fields .mec-form-row .button:not(.wp-color-result),.mec-occurrences-wrapper .button:not(.wp-color-result){border-radius:25px;border:1px solid #d1e5ec;text-shadow:none;padding:0 16px;height:35px;letter-spacing:.2px;margin-right:5px;background:#fff;color:#07bbe9;box-shadow:0 1px 5px -1px rgb(0 0 0 / 5%);transition:all .2s ease}.mec-export-settings,.mec-import-settings{padding:11px 16px;text-decoration:none}#mec_add_fee_button:hover,#mec_add_ticket_variation_button:hover,#mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button:hover,.mec-meta-box-fields .mec-form-row .button:not(.wp-color-result):hover,.mec-occurrences-wrapper .button:not(.wp-color-result):hover{background:#f0f9fc}#taxes_option #mec_fees_list .mec-form-row .button,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button{margin:0}#mec-hourly-schedule .mec-form-row .mec-col-1 .button,#mec-hourly-schedule .mec-form-row.mec-box .button,#taxes_option #mec_fees_list .mec-form-row .button,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button{color:#ea6485;border-color:#ea6485}#mec-hourly-schedule .mec-form-row .mec-col-1 .button:hover,#mec-hourly-schedule .mec-form-row.mec-box .button:hover,#taxes_option #mec_fees_list .mec-form-row .button:hover,#ticket_variations_option #mec_ticket_variations_list .mec-form-row .button:hover{background:rgb(234 100 133 / .1)}#mec-hourly-schedule .mec-hourly-schedule-form-speakers{margin-top:20px}#mec_meta_box_downloadable_file_options #mec_downloadable_file_remove_image_button{margin-top:12px}#mec_meta_box_downloadable_file_options input[type=file]{max-width:166px;text-align:center;transition:all .2s ease;border-radius:5px!important;border:2px dashed #b8e9f3;margin-bottom:12px;height:44px;text-decoration:none;padding:0 15px 1px;text-transform:none;letter-spacing:0;font-weight:600;color:#40d9f1;box-shadow:0 2px 6px -3px #cfeff5}#mec_meta_box_downloadable_file_options input[type=file]:hover{box-shadow:0 2px 16px -3px #cfeff5}#mec_meta_box_downloadable_file_options input[type=file]::-webkit-file-upload-button{visibility:hidden;width:1px;height:38px}#mec_meta_box_downloadable_file_options input[type=file]::-moz-file-upload-button{visibility:hidden;width:1px;height:38px}.mec-attendees-wrapper .mec-attendees-list{margin:22px 0 0}.mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child{background:#fff;border-bottom:1px solid #cfeff5}.mec-attendees-wrapper .mec-attendees-list .w-clearfix:first-child div span{line-height:1;font-weight:600}.mec-attendees-wrapper .mec-attendees-list .w-clearfix{display:flex;background:#f8feff;padding:10px;text-align:left}.mec-attendees-wrapper .mec-attendees-list .w-clearfix .w-col-xs-3:first-child{width:100%;max-width:30%;padding:0}.mec-attendees-wrapper .mec-attendees-list .w-clearfix .w-col-xs-3 a{text-decoration:unset}.mec-attendees-wrapper .mec-attendees-list .w-clearfix:nth-child(odd){background:#fff}#mec-read-more .mec-form-row span.mec-tooltip{top:2px;left:-4px}#mec-occurrences .mec-occurrences-list{margin-top:12px}#mec-occurrences .mec-occurrences-list h3{margin-top:0}#mec-occurrences .mec-occurrences-list .mec-form-row{margin-bottom:0}#mec-occurrences .mec-occurrences-list .mec-form-row label{line-height:40px;width:120px;display:inline-block;margin:0}#mec-occurrences .mec-occurrences-list .mec-form-row .event-status-schema label{width:auto;min-width:160px}#mec-occurrences .mec-occurrences-list .mec-form-row .event-status-schema p{border:unset;padding-left:0;margin-left:0}#mec-search-settings{border-radius:21px;min-height:32px;box-shadow:inset 0 1px 2px rgba(0,0,0,.06);margin-right:10px;color:#7c838a;font-size:13px;width:260px;background:#f7f8f9;border:none;z-index:1;transition:all .18s ease;outline:0;line-height:36px;padding:2px 10px 1px 38px}#mec-search-settings:focus{background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.07),0 0 0 1px #e6e6e6;width:270px}.mec-search-settings-wrap{display:inline-block;position:relative}.mec-search-settings-wrap i{position:absolute;left:16px;top:13px;font-size:13px;color:#7e8c98;display:block;z-index:2}#mec-search-settings::-webkit-input-placeholder{color:#7c838a}#mec-search-settings::-moz-placeholder{color:#7c838a}#mec-search-settings:-ms-input-placeholder{color:#7c838a}#mec-search-settings:-moz-placeholder{color:#7c838a}#wns-be-content .noresults label,#wns-be-content .results .results .noresults label{color:#000}#wns-be-content .results .results .results label,#wns-be-content .results label,#wns-be-content ul li.enable,#wns-be-content ul li.enable label{color:#07bbe9}#wns-be-content ul li.disable,#wns-be-content ul li.disable label{color:#e7e7e7}.ui-datepicker.ui-widget{border:1px solid #e8e8e8;box-shadow:0 1px 9px rgba(0,0,0,.12)}.ui-datepicker.ui-widget select{font-weight:600;font-size:12px;border-radius:2px;padding:2px 10px;margin:1px 3px 5px}.ui-datepicker.ui-widget table{border-spacing:2px}.ui-datepicker.ui-widget td,.ui-datepicker.ui-widget tr{padding:0;background:0 0!important}.ui-datepicker.ui-widget td a{color:#777;font-weight:600;width:30px;height:30px;line-height:30px;display:inline-block;border-radius:33px;padding:0;background:#fff;transition:all .2s ease}.ui-datepicker.ui-widget td a.ui-state-active,.ui-datepicker.ui-widget td a:hover{background:#40d9f1;color:#fff}.ui-datepicker.ui-widget .ui-datepicker-next,.ui-datepicker.ui-widget .ui-datepicker-prev{color:#40d9f1;width:30px;height:30px;line-height:30px;display:inline-block;text-align:center;border-radius:33px;background:#ecfcff;transition:all .2s ease}.ui-datepicker.ui-widget .ui-datepicker-next:hover,.ui-datepicker.ui-widget .ui-datepicker-prev:hover{background:#fff;box-shadow:0 0 7px -3px rgba(0,0,0,.4)}#mec-wrap{width:92%;margin:20px auto;max-width:1384px}#mec-wrap h2.nav-tab-wrapper{margin-bottom:0;position:relative;z-index:8;padding:0;border-radius:5px 5px 0 0;border:none;margin-top:35px;clear:both;background:#fff;box-shadow:0 1px 0 0 #ededed}#mec-wrap .nav-tab-wrapper .nav-tab{position:relative;padding:28px 22px;border:none;margin:0;background:#fff;font-size:13px;color:#444;outline:0;letter-spacing:-.1px;box-shadow:none}#mec-wrap .nav-tab-wrapper .nav-tab:hover{color:#07bbe9}#mec-wrap .nav-tab-wrapper .nav-tab:after{content:'';display:inline-block;width:1px;height:30%;position:absolute;right:0;top:35%;background:#e9e9e9}#mec-wrap .nav-tab-wrapper .nav-tab-active,#mec-wrap .nav-tab-wrapper .nav-tab-active:focus,#mec-wrap .nav-tab-wrapper .nav-tab-active:focus:active,#mec-wrap .nav-tab-wrapper .nav-tab-active:hover{background:#ecf9fd;outline:0;margin-left:-1px;z-index:2;border:1px solid #ccecf4;color:#07bbe9;border-radius:5px;margin-bottom:-1px}#mec-wrap .nav-tab-wrapper .nav-tab-active:after{content:'';position:absolute;display:block;background:0 0;top:auto;height:auto;bottom:-20px;left:50%;margin-left:-10px;width:0;border-width:10px;border-style:solid;border-color:#ecf9fd transparent transparent}#mec-wrap .mec-container{padding:25px 40px 40px;box-shadow:0 3px 10px -4px rgba(0,0,0,.1)}#wpwrap .mec-button-primary{box-shadow:0 0 0 4px #e4ffe6;text-shadow:none;margin-right:5px;background:#64e385;color:#fff;border:none;cursor:pointer;padding:2px 22px;border-radius:22px;font-weight:500;line-height:39px}#wpwrap .mec-button-primary:hover{box-shadow:0 0 0 4px rgb(0 0 0 / 10%);background:#4d5051;border-color:#4d5051;cursor:pointer}#mec-wrap .nav-tab-wrapper .nav-tab-active:before{content:'';position:absolute;display:block;background:0 0;top:auto;height:auto;bottom:-24px;left:50%;margin-left:-12px;width:0;border-width:12px;border-style:solid;border-color:#ccecf4 transparent transparent}.ui-datepicker.ui-widget select{border-color:#e7e8e9}.wn-p-t-right{min-width:300px;max-width:400px;display:inline-block;top:-8px;left:50%;margin-top:0;transform:translate(-50%,-100%);padding:0;background-color:#535a61;color:#fff;font-weight:300;font-size:14px;letter-spacing:.5px;line-height:1.5;position:absolute;z-index:99999999;box-sizing:border-box;border-radius:6px;box-shadow:0 4px 45px -8px #444b50;visibility:hidden;opacity:0;transition:opacity .23s;padding:20px;border-radius:8px}.wn-p-t-right i{position:absolute!important;top:100%;right:50%;margin-top:-6px!important;margin-right:-6px!important;width:12px;height:24px;overflow:hidden;transform:rotate(-90deg)}.wn-p-t-right i:after{content:'';position:absolute;width:12px;height:12px;left:0;top:50%;transform:translate(50%,-50%) rotate(-45deg);background-color:#535a61;box-shadow:0 8px 9px -4px #535a61}.wn-p-t-right .wn-p-t-text-content h5{color:#fff;font-size:17px;font-weight:600;margin:-20px;padding:15px 0;text-align:center;margin-bottom:10px;background:#3a3f44;border-bottom:1px solid #32363a;border-radius:6px 6px 0 0}.mec-addon-box-footer a:hover .wn-p-t-right{visibility:visible;opacity:1}#mec_organizer_user+.select2-container,#mec_speaker_user+.select2-container{min-width:224px!important}.mec-add-event-tabs-wrap .select2-container,.mec-create-shortcode-tab-content .select2-container{min-height:38px;height:auto;box-sizing:border-box;padding:0 6px 0 10px;border-radius:5px;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%);background-color:#f7f8f9;color:#32373c;outline:0;transition:50ms border-color ease-in-out;min-width:200px;width:100%!important;max-width:290px!important;font-size:14px}.mec-add-event-tabs-wrap .select2-selection,.mec-create-shortcode-tab-content .select2-selection{border:none;background:0 0;padding-top:3px;width:100%;height:100%}.mec-add-event-tabs-wrap .select2-container--default.select2-container--focus .select2-selection,.mec-create-shortcode-tab-content .select2-container--default.select2-container--focus .select2-selection{border:none!important;outline:0}.mec-add-event-tabs-wrap .select2-container--default .select2-selection--single .select2-selection__arrow,.mec-create-shortcode-tab-content .select2-container--default .select2-selection--single .select2-selection__arrow{top:5px;right:4px}.fs-webform-container div .fserv-container{width:100%!important;max-width:none!important;min-height:208px!important;box-shadow:0 1px 6px rgb(0 0 0 / 1%)!important;border-radius:11px!important;padding:0!important;margin-bottom:0!important;margin-top:30px!important;background:url(https://webnus.net/modern-events-calendar/wp-content/uploads/2019/11/illustration.svg) no-repeat top right;background-size:310px}.fserv-container .fserv-form-name{font-weight:600!important;position:relative!important;font-size:20px!important;padding:30px 30px 10px!important;text-align:left!important;margin:0!important;line-height:1}.fserv-form-description{padding:10px 30px!important;margin:1em 0 0!important;line-height:1.5!important;font-size:16px!important}.fserv-container form{padding:0!important;padding-left:28px!important}.fserv-container .fserv-label{display:none!important}.fserv-field{display:inline-block;padding:0!important;min-width:260px;margin:0!important;margin-right:25px!important}.fserv-container label.fserv-form-description{cursor:default}.fserv-field input.fserv-input-text{border-radius:5px!important;border:none!important;background-color:#f7f8f9!important;box-shadow:inset 0 1px 2px rgb(0 0 0 / 7%)!important}.fserv-field+div:not(.fserv-field){margin:0!important;border:none!important;text-align:left!important;padding-left:4px!important;margin-top:0!important;padding-top:0!important;display:inline-block;margin-right:10px!important}.fserv-container .powered-by{display:none!important}@media (max-width:1366px){#webnus-dashboard .fserv-container form{padding:0!important;padding:0 28px 40px 28px!important}#webnus-dashboard .fserv-form .fserv-field{width:33%!important}#webnus-dashboard .fserv-form .fserv-button-submit{margin-left:-2px!important}}@media (max-width:960px){#webnus-dashboard .fserv-container form{padding:0!important;padding:0 28px 40px 28px!important}#webnus-dashboard .fserv-form .fserv-field{width:100%!important}#webnus-dashboard .fserv-form .fserv-button-submit{margin-left:-2px!important}}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag{font-weight:500;border-radius:60px;text-shadow:none;box-shadow:0 0 0 3px rgb(227 249 253 / 15%);background:#fff;background:linear-gradient(95deg,#fff 0,#fff 50%,#fff 100%)!important;border:1px solid #c0e5ea;transition:.24s}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag.button-primary,#webnus-dashboard .total-bookings button,button.fserv-button-submit{color:#fff!important;font-weight:500!important;border-radius:60px!important;box-shadow:0 0 0 4px rgb(56 213 237 / 1%)!important;text-shadow:none!important;background:#38d5ed!important;border:none!important;transition:.24s!important}#webnus-dashboard button.fserv-button-submit{background:#64e385!important;box-shadow:0 0 0 3px #64e3851a!important}#webnus-dashboard button.fserv-button-submit:hover{background:#46d26a!important;box-shadow:0 0 0 4px #64e38536!important}#webnus-dashboard .total-bookings button{line-height:39px;padding:0 36px}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag.button-primary:hover{color:#fff!important;background:#1fcae4!important;box-shadow:0 0 0 4px rgb(56 213 237 / 15%)!important}#webnus-dashboard .total-bookings button:hover,button.fserv-button-submit:hover{background:#26bbd2!important;box-shadow:0 0 0 4px rgb(56 213 237 / 15%)!important;cursor:pointer!important}#webnus-dashboard .mec-intro-section .mec-intro-section-link-tag:hover{box-shadow:0 0 0 4px rgb(56 213 237 / 8%)!important;color:#02a3bb!important;cursor:pointer!important}.fserv-container input::-webkit-input-placeholder{font-family:inherit!important;font-size:14px}.fserv-container input::-moz-placeholder{font-family:inherit!important;font-size:14px}.fserv-container input:-ms-input-placeholder{font-family:inherit!important;font-size:14px}.fserv-container input:-moz-placeholder{font-family:inherit!important;font-size:14px}input.fserv-input-text{height:38px;box-sizing:border-box;margin-bottom:8px;padding:0 6px;box-shadow:none;border-radius:2px;box-shadow:inset 0 1px 5px rgba(0,0,0,.05)}.fserv-field label.error{display:none!important}.fs-notifier{position:fixed!important;top:40px!important;width:300px!important;max-width:300px!important;margin:0!important;right:20px!important;left:unset!important}.post-type-mec-events .lity{background:#edf0f3}.post-type-mec-events .lity-container{width:60vw;max-width:883px;margin:0 auto;border-radius:7px}.post-type-mec-events .lity-content:after{display:none}.mec-manage-events-lightbox{box-shadow:0 3px 20px rgba(0,0,0,.05)}.w-clearfix.mec-attendees-content img{display:inline-block;width:25px;height:25px;vertical-align:middle;margin-right:7px}.post-type-mec-events .mec-attendees-list-head{background:#008aff;color:#fff;text-align:center;padding:17px 0;text-transform:capitalize;font-size:26px;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;border-radius:7px 7px 0 0;line-height:43px;box-shadow:0 3px 15px rgba(0,138,255,.25);z-index:99}.mec-attendees-list-wrap{display:flex;width:100%;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;background:#fff;box-shadow:0 3px 20px rgba(0,0,0,.05);border-radius:0 0 5px 5px;overflow:hidden}.mec-attendees-list-left{flex:1;background:#f6f8fa;padding:0;border-radius:0;position:relative}.mec-attendees-list-right,.mec-send-email-form-wrap{flex:1;border-radius:0 0 5px 5px;padding:0 20px 20px;background:#f2f4f7}.mec-attendees-list-left-menu a{display:inline-block;line-height:22px;font-size:12px;color:#000;font-weight:500;border-bottom:1px solid #eaebec;border-left:1px solid #eaebec;padding-bottom:0;padding:7px 6px;margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;transition:all .2s ease;text-decoration:none;text-align:center}.mec-attendees-list-left-menu a.selected-day{color:#008aff}.mec-attendees-list-left-menu .owl-item:last-child a{border-right:1px solid #eaebec}.mec-attendees-list-right table{width:100%}.w-clearfix.mec-attendees-head{margin-top:30px;border-bottom:2px solid #ccecf4;padding-bottom:18px;margin-bottom:3px}.w-clearfix.mec-attendees-content [class^=w-col-xs-],.w-clearfix.mec-attendees-head [class^=w-col-xs-]{padding:0}.w-clearfix.mec-attendees-head span{font-weight:600;color:#000;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;font-size:17px}.w-clearfix.mec-attendees-content{background:#fff;margin-bottom:2px;padding:10px 20px}.mec-attendees-list-left-menu{height:36px;margin-left:35px;margin-right:36px}.mec-attendees-list-left-menu a:active,.mec-attendees-list-left-menu a:focus,.mec-attendees-list-left-menu a:visited{outline:0;box-shadow:none}.mec-attendees-list-left-menu .owl-item{display:inline-block}.mec-attendees-list-left-menu .owl-stage{min-width:800px!important}.owl-nav.disabled .owl-next{position:absolute;right:0;top:0}.owl-nav.disabled .owl-prev{position:absolute;left:0;top:0}.owl-nav.disabled button{background:#fff;box-shadow:none;border:1px solid #ccc;height:36px;width:36px;font-size:54px;line-height:54px}.owl-nav.disabled button span{margin-top:-18px;display:block}.mec-cover-loader:after{content:'';position:absolute;top:0;right:0;left:0;bottom:0;background:rgba(255,255,255,.5);z-index:99999}.mec-loader{background:rgba(0,0,0,0);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9}.mec-loader,.mec-loader:after{border-radius:50%;width:5em;height:5em;z-index:999999999999}.mec-loader{font-size:10px;text-indent:-9999em;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);border-left:.5em solid #fff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:mecloader 1.1s infinite linear;animation:mecloader 1.1s infinite linear}@media (max-width:992px){.post-type-mec-events .lity-container{width:80vw}}@-webkit-keyframes mecloader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes mecloader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mec-report-backtoselect-wrap,.mec-report-sendmail-form-wrap{display:none}.mec-report-select-event-wrap .select2,.mec-select-wrap .select2{width:100%!important}.mec-report-select-event-wrap .select2-container--default .select2-selection--single,.mec-select-wrap .select2-container--default .select2-selection--single{border-radius:2px;border:1px solid #e2e3e4;height:38px;padding-top:5px;width:100%;box-shadow:0 2px 3px rgba(0,0,0,.03)}.mec-report-select-event-wrap .select2-container--default .select2-selection--single .select2-selection__arrow,.mec-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow{height:36px}.mec-report-select-event-wrap .select2-container--open .select2-dropdown--below,.mec-select-wrap .select2-container--open .select2-dropdown--below{box-shadow:0 2px 8px rgba(0,0,0,.12);border-color:#d7d8d9}.select2-container--default .select2-search--dropdown .select2-search__field{box-shadow:0 2px 8px rgba(0,0,0,.06) inset;border-color:#d7d8d9;border-radius:2px}.mec-report-select-event-wrap select,.mec-select-wrap input[type=text],.mec-select-wrap select .mec-report-select-event-wrap input[type=text]{border:1px solid #e2e3e4;font-size:13px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;margin-bottom:15px;border-radius:2px;box-shadow:0 2px 3px rgba(0,0,0,.03);max-width:150px}.mec-report-select-event-wrap .select2-container--default,.mec-select-wrap .select2-container--default{max-width:400px}.mec-report-select-event-wrap select.mec-reports-selectbox-dates,.mec-select-wrap select.mec-reports-selectbox-dates{height:38px;min-width:260px;margin:0 0 0 10px;padding-left:15px}.mec-report-sendmail-form-wrap,.mec-report-sendmail-wrap{padding:30px 15px;background:#fff;border:1px solid #e2e3e4;margin:15px 0 5px;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.02)}.mec-report-sendmail-wrap .w-col-sm-12:before{background:url(../img/email-document.png) no-repeat left top;content:'';display:block;width:90px;height:70px;z-index:100;float:left}.mec-report-sendmail-wrap p{margin:0 0 15px;font-size:15px;color:#7d8284}.mec-report-backtoselect-wrap button,.mec-report-sendmail-wrap .w-col-sm-12 button,.mec-send-email-form-wrap .mec-send-email-button{background:#19cde9;border:none;color:#fff;font-size:13px!important;padding:6px 16px;border-radius:2px;cursor:pointer;box-shadow:0 1px 2px rgba(25,205,233,.25);transition:all .2s ease}.mec-report-backtoselect-wrap button:hover,.mec-report-sendmail-wrap .w-col-sm-12 button:hover,.mec-send-email-form-wrap .mec-send-email-button:hover{background:#04bfdc;box-shadow:0 1px 2px rgba(25,205,233,.05)}.mec-report-backtoselect-wrap button{margin-top:15px}.mec-report-selected-event-attendees-wrap{background-color:#fff;border:1px solid #96e3ef;padding:0;margin:20px 0;border-radius:3px;box-shadow:0 2px 14px rgba(25,205,233,.1);display:none}.mec-report-sendmail-wrap{display:none}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-head{background:#c7eef4;border-bottom:1px solid #96e3ef;padding:15px;margin:0;border-radius:3px 3px 0 0}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content{margin:0;padding:8px 15px;border-bottom:1px solid #e4eef0;font-size:13px;line-height:25px}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content:hover{background:#f3fdfe}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content:last-child{border-bottom:none;border-radius:0 0 3px 3px}.mec-report-selected-event-attendees-wrap .w-clearfix.mec-attendees-content img{border-radius:25px;margin-left:8px}.mec-report-selected-event-attendees-wrap input[type=checkbox]{border-radius:3px;margin-top:0}.mec-report-selected-event-attendees-wrap .mec-attendees-head .w-col-xs-2.name{padding-left:10px}.mec-report-selected-event-attendees-wrap .checkin_status span{font-weight:600}.mec-report-selected-event-attendees-wrap .w-col-sm-12>p{text-align:center}.mec-attendees-list-right,.mec-send-email-form-wrap{flex:1;border-radius:0;padding:0;background:0 0;max-width:674px;margin:0 auto}.mec-report-sendmail-form-wrap{padding:0 30px 45px}.mec-send-email-form-wrap h2{background:url(../img/email-document.png) no-repeat center top;padding-top:70px;font-size:22px;font-weight:600;text-align:center;padding-bottom:10px;padding-left:10px;margin-bottom:0}#webnus-dashboard .mec-send-email-form-wrap .wp-editor-tools button{font-size:13px;font-weight:400;color:#444;line-height:1;margin-bottom:0}#webnus-dashboard .mec-send-email-form-wrap .wp-editor-tabs button{min-height:30px}.mec-send-email-form-wrap input.widefat{min-height:40px;border:1px solid #e2e3e4;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.02)}.mec-send-email-form-wrap input.widefat:focus{border:1px solid #96e3ef}.mec-send-email-form-wrap h4.mec-send-email-count{font-weight:400;text-align:center;margin-bottom:30px;margin-top:0;padding-top:0}.mec-send-email-form-wrap .mec-send-email-button{min-height:40px;line-height:40px;padding:0;font-size:17px!important;font-weight:600}.mec-send-email-form-wrap .mce-menubtn.mce-fixed-width span{height:20px;padding-top:2px}.lity.mec-add-shortcode-popup{background-color:#b7e4e3}.lity.mec-add-shortcode-popup .lity-content{box-shadow:0 3px 20px 0 rgba(91,188,190,.55);border-radius:10px;height:100%}.mec-add-shortcode-popup .lity-container{width:930px;height:620px}.mec-add-shortcode-popup .lity-content:after{display:none}.mec-add-shortcode-popup div#mec_popup_shortcode{background:#fff;overflow:hidden;display:flex;width:100%;border-radius:10px;height:100%}.mec-steps-container{width:92px;text-align:center;background:#fff}.mec-steps-panel{width:calc(100% - 92px);background:#eef4f5}.mec-steps-container ul{text-align:center;display:block;margin-top:62px}.mec-steps-container ul li{width:22px;height:70px;margin:0 auto;position:relative}.mec-steps-container ul li span{border-radius:50px;background-color:rgba(26,175,251,.16);width:22px;height:22px;display:inline-block;padding-top:2px;font-size:11px;font-weight:700;color:#1aaffb;box-sizing:border-box}.mec-steps-container ul li:after,.mec-steps-container ul li:before{content:'';display:block;height:24px;width:2px;background:rgba(26,175,251,.16);margin-left:calc(50% - 1px)}.mec-steps-panel .mec-form-row input[type=checkbox],.mec-steps-panel .mec-form-row input[type=radio]{background:#fff}.mec-box .mec-steps-panel .mec-form-row input[type=radio],.mec-steps-panel .mec-form-row .mec-box input[type=checkbox]{background:#f7f8f9}.mec-steps-panel .mec-form-row .mec-box input[type=checkbox]:checked,.mec-steps-panel .mec-form-row .mec-box input[type=radio]:checked{background:#fff}.mec-steps-container ul li:first-of-type:before,.mec-steps-container ul li:last-of-type:after{display:none}.mec-steps-container ul li:first-of-type{height:46px}li.mec-step.mec-step-passed span,li.mec-step.mec-step-passed:after,li.mec-step.mec-step-passed:before{background-color:#2dcb73;color:#fff}.mec-steps-container img{margin-top:30px}.mec-steps-header{display:flex;background:#fff;border-radius:5px;box-shadow:0 3px 22px 0 rgb(11 121 125 / 1%);padding:12px 22px;margin:-15px -15px 65px}.mec-steps-header-settings{width:65px}.mec-steps-header-dashboard{width:fit-content;margin-right:22px}.mec-steps-header-userinfo{width:calc(100% - 65px)}.mec-steps-panel{padding:35px;position:relative;display:flex;flex-direction:column;justify-content:space-between}.mec-steps-header-userinfo span{display:inline-block;vertical-align:middle}.mec-steps-header-userinfo span img{height:40px;border-radius:50px;margin-right:8px;vertical-align:middle}.mec-steps-header-userinfo span.mec-steps-header-name{font-size:14px;color:#778182;font-weight:600;text-transform:capitalize}span.mec-steps-header-add-text{color:#839294;font-size:12px;margin-left:5px}.mec-steps-header-dashboard a,.mec-steps-header-settings a{height:100%;display:block;padding-top:11px;text-decoration:none;font-size:12px;color:#707070}.mec-steps-header-dashboard a i,.mec-steps-header-settings a i{color:#1aaffb;font-size:16px;vertical-align:text-top;margin-right:5px}.mec-next-previous-buttons{clear:both}.mec-next-previous-buttons button.mec-button-next{float:right;background:#008aff;border:none;color:#fff;cursor:pointer;width:123px;text-align:left;padding:8px 18px 9px;border-radius:3px;font-size:14px;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);transition:all .3s ease;outline:0}.mec-next-previous-buttons button:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3)}.mec-next-previous-buttons button.mec-button-next img{position:absolute;top:16px;right:18px}.mec-next-previous-buttons button{position:relative}.mec-next-previous-buttons button.mec-button-prev{background:#fff;border:none;color:#000;cursor:pointer;width:123px;text-align:right;padding:8px 15px 9px;border-radius:3px;font-size:14px;box-shadow:0 5px 10px 0 rgba(11,121,125,.01);transition:all .3s ease;outline:0}.mec-next-previous-buttons button.mec-button-prev img{position:absolute;top:16px;left:18px}.mec-next-previous-buttons button.mec-button-prev:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3);color:#fff}.mec-next-previous-buttons button.mec-button-new{background:#008aff;float:right;border:none;color:#fff;cursor:pointer;width:154px;text-align:left;padding:8px 18px 9px;border-radius:3px;font-size:14px;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);transition:all .3s ease;outline:0}.mec-next-previous-buttons button.mec-button-new:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3)}.mec-next-previous-buttons button.mec-button-new img{vertical-align:sub;margin-left:-3px;margin-right:8px}div#mec_popup_shortcode_form{height:calc(100% - 37px)}.mec-steps-content-container{display:flex;flex-direction:column;height:100%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1{background:url(../../assets/img/popup/first-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .popup-sh-name-required{color:red;display:none;font-style:italic;font-size:12px;margin-top:8px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1{top:50%;position:absolute;width:360px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']{width:360px;height:46px;border:none;border-radius:3px;padding-left:36px;font-size:12px;color:#b1b2b4;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']::-webkit-input-placeholder{color:#b1b2b4}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']:-ms-input-placeholder{color:#b1b2b4}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 input[name='shortcode[name]']::placeholder{color:#b1b2b4}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/add-sh-icon.png) no-repeat center center;position:absolute;top:17px;left:17px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul{height:386px;overflow-x:hidden;overflow-y:scroll;margin-top:-22px;margin-bottom:0;position:relative;padding:0 50px 150px 50px;background:#fcfbfd!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li{width:30%!important;float:left!important;min-height:135px!important;height:150px;margin:1.66%!important;box-sizing:border-box;text-align:center;padding:12px!important;border-radius:8px;border:1px solid transparent;box-shadow:none;background:#fff0!important;cursor:pointer;transition:all .22s ease;-webkit-transition:all .22s ease;-moz-transition:all .22s ease;-ms-transition:all .22s ease;-o-transition:all .22s ease}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li.active{border:1px solid #40d9f16b!important;box-shadow:0 1px 8px -3px #40d9f152 inset!important;color:#00cae6!important;padding:12px 0 0 0!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li:hover{box-shadow:0 1px 8px rgb(0 0 0 / 3%),0 0 0 1px #f3f4f5;background:#fff!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li:hover{background:#fcfbfd}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-img img{margin:4px 0 1px 1px;line-height:1;max-width:68px;max-height:56px;filter:grayscale(1);-webkit-filter:grayscale(1);transition:all .22s ease;-webkit-transition:all .22s ease;-moz-transition:all .22s ease;-ms-transition:all .22s ease;-o-transition:all .22s ease}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li.active .mec-step-popup-skin-img img,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li:hover .mec-step-popup-skin-img img{filter:grayscale(0);-webkit-filter:grayscale(0)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text input{display:block;margin:0 auto;margin-top:6px;border:2px solid #e1e7ed;box-shadow:0 3px 6px 0 rgba(0,0,0,.05);position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-img{padding-top:16px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-steps-content.mec-steps-content-2 ul li .mec-step-popup-skin-text input{display:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text:before{width:14px;height:14px;content:'';border-radius:50px;background:#fff;display:block;position:absolute;left:calc(50% - 7px);top:24px;z-index:99;border:2px solid #e1e7ed;box-shadow:0 3px 6px 0 rgba(0,0,0,.05)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 .mec-step-popup-skin-text{position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li.active .mec-step-popup-skin-text:before{background:#008aff;border:none;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);width:16px;height:16px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-2 li.active .mec-step-popup-skin-text:after{width:4px;height:4px;display:block;content:'';position:absolute;background:#fff;left:calc(50% - 1px);top:30px;z-index:999;border-radius:50px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 span.wn-hover-img-sh{display:block}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles{height:386px;overflow-x:hidden;padding-left:60px;padding-bottom:19px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label{width:193px!important;float:left!important;margin:1.66%!important;text-align:center}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label span{width:193px!important;float:left!important;min-height:135px!important;height:150px;box-sizing:border-box;border-radius:5px;border:2px solid #c4edff;background:#fff!important;cursor:pointer;margin-bottom:5px;margin-top:-6px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label.active span{border-color:#00acf8;box-shadow:0 3px 5px rgba(0,172,248,.2)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label div{font-size:14px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles label.active div{color:#008aff}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-skin-styles input{opacity:0;display:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 .mec-steps-content.mec-steps-content-3{margin-top:-18px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-3 span.wn-hover-img-sh img{width:189px;height:146px;border-radius:5px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4{background:url(../../assets/img/popup/fourth-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 .nice-select{border:none;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4{top:40%;position:absolute;width:330px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 h3{font-size:13px;font-weight:400;color:#707070}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div{border:2px dashed #dce2e3;border-radius:3px;padding:20px 20px 6px;background:#fcfcfc}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div label{display:block;margin-bottom:14px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .mec-steps-content.mec-steps-content-4 .mec-multiple-skin-options div label.active input{background:#fff;box-shadow:none;border:1px solid #cacece}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup{box-shadow:0 3px 13px -5px rgba(0,0,0,.1),inset 0 1px 2px rgba(0,0,0,.07);clear:unset!important;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:5px;border:solid 1px #e8e8e8;box-sizing:border-box;clear:both;cursor:pointer;display:block;float:left;font-family:inherit;font-size:14px;font-weight:400;height:42px;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:300px!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup:hover{border-color:#dbdbdb}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.open .list{overflow:unset;width:100%;margin:0}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .list{background-color:#fff;border-radius:5px;box-shadow:0 0 0 1px rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup:after{border-bottom:2px solid #999;border-right:2px solid #999;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:12px;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.disabled{border-color:#ededed;color:#999;pointer-events:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup.disabled:after{border-color:#ccc}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .list:hover .option:not(:hover){background-color:transparent!important}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option{cursor:pointer;font-weight:400;list-style:none;min-height:40px;outline:0;text-align:left;position:relative;font-size:12px!important;padding:1px 12px!important;margin:0!important;line-height:28px!important;min-height:28px!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option .wn-hover-img-sh img{position:absolute;padding:3px;top:-1px;left:100%;box-shadow:0 4px 42px -5px rgba(0,0,0,.16);visibility:hidden;opacity:0;border:1px solid #e3e3e3;border-radius:2px;z-index:99999999;background:#fff}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option:hover .wn-hover-img-sh img{visibility:visible;opacity:1}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.focus,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.selected.focus,.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option:hover{background-color:#f6f6f6}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.selected{font-weight:700}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-4 .wn-mec-select-popup .option.disabled{background-color:transparent;color:#999;cursor:default}.mec-add-shortcode-popup .no-csspointerevents .wn-mec-select-popup .list{display:none}.mec-add-shortcode-popup .no-csspointerevents .wn-mec-select-popup.open .list{display:block}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label input{background:#fff;position:relative;width:24px;height:24px;border:1px solid #cacece}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label input:before{disaply:none}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label.active input{background:#008aff;box-shadow:0 5px 10px 0 rgba(0,138,255,.3);border:none}.mec-add-shortcode-popup .mec-steps-content.mec-steps-content-4 label.active input:before{background:#fff;width:6px;height:6px;top:6px;left:6px;position:absolute}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5{background:url(../../assets/img/popup/fifth-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5{width:360px;margin-top:16px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher label{color:#707070;font-size:14px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher p{color:#8a8a8a;font-style:italic;font-size:12px;margin-top:7px;margin-bottom:0}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher{padding-bottom:30px;margin-bottom:34px;border-bottom:2px dashed #dce2e3;position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher:last-of-type{padding-bottom:0;margin-bottom:0;border:none}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher div:last-of-type label{position:absolute;top:-4px;right:0;width:52px;height:26px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher input:checked+label:after{margin-left:26px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher input+label:after,.mec-add-shortcode-popup .mec-switcher input+label:before{display:block;position:absolute;top:2px;left:1px;bottom:2px;content:''}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-5 .mec-steps-content.mec-steps-content-5 .mec-switcher input+label:after{width:26px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6{background:url(../../assets/img/popup/sixth-step.png) no-repeat 90% 70%}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-content.mec-steps-content-6{margin-top:56px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode{width:325px;border:2px dashed #dce2e3;background:#fcfcfc;padding:42px 42px 47px;text-align:center}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode h3{font-size:16px;font-weight:400;color:#707070;margin-top:7px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code{border-radius:3px;background:rgba(154,214,222,.35);width:243px;margin:0 auto;padding:14px 17px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code code{background:0 0;color:#000;font-size:14px;font-weight:600;margin-left:-11px}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code button{border:none;background:#fff;border-radius:3px;padding:3px 8px 6px;margin-left:46px;cursor:pointer}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-popup-shortcode-code button:hover{background:#000;color:#fff}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-6-results p{width:325px;text-align:center;font-size:12px;margin-top:5px;color:#8a8a8a}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-6-loading{width:325px;border:2px dashed #dce2e3;background:#fcfcfc;padding:42px 42px 47px;text-align:center;height:182px;position:relative}.mec-add-shortcode-popup .mec-steps-content-container.mec-steps-content-6 .mec-steps-6-loading .mec-loader{position:absolute;left:136px;top:65px}.mec-add-event-popup button.lity-close,.mec-add-shortcode-popup button.lity-close{right:0;top:-52px;border-radius:50%;width:37px;height:37px;background:#fff;color:#a2afbc;text-shadow:none;padding-top:1px;transition:all .2s ease;position:absolute;box-shadow:0 3px 8px 0 rgba(91,188,190,.55)}.mec-add-event-popup button.lity-close:hover,.mec-add-shortcode-popup button.lity-close:hover{background:#ff6262;color:#fff;box-shadow:0 3px 8px 0 rgb(249 162 162 / 55%)}.mec-skin-styles.mec-styles-full_calendar h3{padding-left:12px}.lity.mec-add-event-popup{background-color:#b7e4e3}.mec-add-event-popup .lity-container{width:930px;height:620px;max-width:unset}.mec-add-event-popup div#mec_popup_event{background:#fff;overflow:hidden;display:flex;width:100%;border-radius:10px;height:100%}.lity.mec-add-event-popup .lity-content{box-shadow:0 3px 20px 0 rgba(91,188,190,.55);border-radius:10px;height:100%}div#mec_popup_event_form{height:calc(100% - 37px)}.mec-add-event-popup .mec-steps-container ul{margin-top:42px}.mec-add-event-popup .mec-steps-container ul li:first-of-type{height:41px}.mec-add-shortcode-popup .mec-steps-container ul li:after,.mec-add-shortcode-popup .mec-steps-container ul li:before{height:24px}.mec-add-event-popup .mec-steps-container ul li:after,.mec-add-event-popup .mec-steps-container ul li:before{height:19px}.mec-add-event-popup .mec-steps-container ul li{height:60px}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup{box-shadow:0 3px 22px 0 rgba(11,121,125,.01);border:none;clear:unset!important;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:3px;box-sizing:border-box;cursor:pointer;display:block;float:left;font-family:inherit;font-size:12px;font-weight:400;line-height:40px;outline:0;padding-left:18px;padding-right:30px;position:relative;text-align:left!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;height:46px;margin-right:6px;padding-top:3px;color:#707070}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open{border-radius:3px 3px 0 0}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup:hover{border-color:#dbdbdb}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open .list{overflow:unset;width:100%;margin:0}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list{background-color:#fff;border-radius:0 0 3px 3px;box-shadow:0 0 0 0 rgba(68,68,68,.11);box-sizing:border-box;margin-top:4px;opacity:0;overflow:hidden;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transform-origin:50% 0;-ms-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:scale(.75) translateY(-21px);-ms-transform:scale(.75) translateY(-21px);transform:scale(.75) translateY(-21px);-webkit-transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;transition:all .2s cubic-bezier(.5, 0, 0, 1.25),opacity .15s ease-out;z-index:9;margin-top:1px!important}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup:after{border-bottom:2px solid #00acf8;border-right:2px solid #00acf8;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:15px;top:50%;-webkit-transform-origin:66% 66%;-ms-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open:after{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.disabled{border-color:#ededed;color:#999;pointer-events:none}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup.disabled:after{border-color:#ccc}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .list:hover .option:not(:hover){background-color:transparent!important}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option{cursor:pointer;font-weight:400;list-style:none;min-height:40px;outline:0;text-align:left;position:relative;font-size:12px!important;padding:1px 12px!important;margin:0!important;line-height:22px!important;min-height:22px!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.focus,.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.selected.focus,.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option:hover{background-color:#f6f6f6}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.selected{font-weight:700}.mec-add-event-popup .mec-steps-content-container .wn-mec-select-popup .option.disabled{background-color:transparent;color:#999;cursor:default}.mec-add-event-popup .no-csspointerevents .wn-mec-select-popup .list{display:none}.mec-add-event-popup .no-csspointerevents .wn-mec-select-popup.open .list{display:block}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1{background:url(../../assets/img/popup/add-event-first-step.png) no-repeat 100% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name{width:100%;height:46px;border:none;border-radius:3px;padding-left:36px;font-size:13px;color:#3c434a;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name::-webkit-input-placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name:-ms-input-placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1 #mec_event_name::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/calendar_icon.png) no-repeat center center;position:absolute;top:17px;left:17px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .mec-steps-content.mec-steps-content-1{top:210px;position:absolute;width:370px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-1 .popup-sh-name-required{color:red;display:none;font-style:italic;font-size:12px;margin-top:8px}.mec-add-event-popup .mec-meta-box-colors-container{background:#fff;padding:17px;border-radius:3px;box-shadow:0 3px 22px rgba(11,121,125,.01);margin-top:15px}.mec-add-event-popup .wp-picker-container .wp-color-result.button{border-color:#f1f2f4;border-radius:3px;box-shadow:0 2px 2px rgba(0,0,0,.04)}.mec-add-event-popup .mec-recent-color-sec{display:block!important;font-size:12px;color:#707070}.mec-add-event-popup .mec-form-row.mec-available-color-row{border:2px dashed #dce2e3;padding:13px 20px;background:#fcfcfc;border-radius:3px}.mec-add-event-popup .wp-color-result-text{background:#f7f7f7;border-radius:unset;border-left:none;color:#555;display:block;line-height:2.54545455;padding:0 6px;text-align:center}.mec-add-event-popup .mec-form-row.mec-available-color-row .mec-color{width:12px;height:12px;position:absolute;top:-5px;left:0;z-index:99}.mec-add-event-popup span.mec-color-meta-box-popup{display:inline-block!important;width:20px;height:20px;border-radius:50px;position:absolute;top:1px;left:6px;z-index:9}.mec-add-event-popup span.mec-recent-color-sec-wrap{width:20px;height:20px;display:inline-block;margin-right:12px;margin-top:7px;margin-left:-6px;position:relative}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2{background:url(../../assets/img/popup/sixth-step.png) no-repeat 95% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form .mec-col-4{width:auto}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form .mec-col-4:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/calendar_icon.png) no-repeat center center;position:absolute;top:17px;left:17px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form .mec-col-4 input{padding-left:36px;width:148px;padding:22px 17px 22px 34px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form select{height:46px;border:none;border-radius:3px;padding-left:36px;font-size:12px;color:#707070;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date::placeholder,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date::placeholder,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_end_date::placeholder,.mec-add-event-popup .mec-steps-content-container.mec-steps-content-2 #mec_meta_box_date_form input#mec_start_date::placeholder{color:#b1b2b4}.mec-add-event-popup .mec-form-row .time-dv{float:left;margin-left:-2px;margin-right:4px;margin-top:12px;color:#b1b2b4}.mec-add-event-popup .mec-steps-content.mec-steps-content-2{margin-top:60px}.mec-add-event-popup .mec-steps-content.mec-steps-content-2 .mec-form-row.mec-all-day-event label{font-size:14px;color:#707070}.mec-add-event-popup .mec-steps-content.mec-steps-content-2 .mec-form-row.mec-all-day-event{margin-top:13px!important}.mec-add-event-popup .mec-steps-content.mec-steps-content-3,.mec-add-event-popup .mec-steps-content.mec-steps-content-4{margin-top:-9px}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-3{background:url(../../assets/img/popup/fifth-step.png) no-repeat 90% 70%}.mec-add-event-popup .mec-steps-content-container.mec-steps-content-4{background:url(../../assets/img/popup/add-organizer.png) no-repeat 95% 70%}.nice-select.mec_popup_location_id.wn-mec-select-popup,.nice-select.mec_popup_organizer_id.wn-mec-select-popup{position:relative;width:200px;padding-left:36px}.nice-select.mec_popup_location_id.wn-mec-select-popup:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/pointer.png) no-repeat center center;position:absolute;top:17px;left:17px}.nice-select.mec_popup_organizer_id.wn-mec-select-popup:before{content:'';width:14px;height:14px;background:url(../../assets/img/popup/pointer.png) no-repeat center center;position:absolute;top:17px;left:17px}#mec_popup_event button#mec_popup_add_location:before,#mec_popup_event button#mec_popup_add_organizer:before{content:'';width:15px;height:15px;background:url(../../assets/img/popup/plus.png) no-repeat center center;position:absolute;top:16px;left:15px}.mec-add-event-popup .mec-steps-content-container .nice-select.mec_popup_location_id.wn-mec-select-popup.open .list li,.mec-add-event-popup .mec-steps-content-container .nice-select.mec_popup_organizer_id.wn-mec-select-popup.open .list li{line-height:32px!important;min-height:32px!important}#mec_popup_event .mec-steps-content .mec-tooltip{bottom:8px}#mec-location .mec-form-row span+span.mec-tooltip i,#mec-organizer .mec-form-row span+span.mec-tooltip i{margin-top:-18px}#mec_popup_event .mec-steps-content .mec-tooltip .dashicons-before:before{color:#008aff}#mec_popup_event button#mec_organizer_thumbnail_button,#mec_popup_event button#mec_popup_add_location,#mec_popup_event button#mec_popup_add_organizer{background:#008aff;border-radius:3px;border:none;color:#fff;width:146px;height:46px;margin-left:10px;box-shadow:0 3px 3px 0 rgba(0,138,255,.22);font-size:14px;cursor:pointer;transition:all .2s ease;outline:0;position:relative;padding-left:20px}#mec_popup_event button#mec_organizer_thumbnail_button:hover,#mec_popup_event button#mec_popup_add_location:hover,#mec_popup_event button#mec_popup_add_organizer:hover{background:#000;box-shadow:0 5px 10px 0 rgba(0,0,0,.3)}#mec_popup_event label[for=mec_location_dont_show_map]{font-size:14px;margin-left:4px;margin-top:3px!important;display:inline-block;margin-bottom:7px}#mec_popup_event input#mec_location_dont_show_map{margin-top:9px!important}#mec_popup_event div#mec_location_new_container,#mec_popup_event div#mec_organizer_new_container{border-top:2px dashed #dce2e3;width:360px;padding-top:25px;margin-top:20px}#mec_popup_event div#mec_location_new_container input,#mec_popup_event div#mec_organizer_new_container input{width:100%;height:46px;border:none;border-radius:3px;padding-left:17px;font-size:12px;color:#b1b2b4;box-shadow:0 3px 22px 0 rgba(11,121,125,.01)}#mec_popup_event div#mec_location_new_container .description,#mec_popup_event div#mec_organizer_new_container .description{border:none;padding:0;margin:0;margin-left:16px;line-height:19px;font-size:12px;color:#707070;font-style:norma
|