Version Description
- 13 November 2019 =
- Fixed: Monthly view (clean style)
- Fixed: Datepicker
- Fixed: Google Map view in single event page
Download this release
Release Info
Developer | webnus |
Plugin | Modern Events Calendar Lite |
Version | 4.8.1 |
Comparing to | |
See all releases |
Code changes from version 4.8.0 to 4.8.1
- app/modules/googlemap/details.php +3 -3
- app/skins/monthly_view/calendar_clean.php +0 -1
- assets/js/events.js +37 -35
- changelog.txt +6 -1
- modern-events-calendar-lite.php +2 -2
- readme.txt +6 -1
app/modules/googlemap/details.php
CHANGED
@@ -17,7 +17,7 @@ $uniqueid = (isset($uniqueid) ? $uniqueid : $event->data->ID);
|
|
17 |
// Map is disabled for this event
|
18 |
if(isset($event->data->meta['mec_dont_show_map']) and $event->data->meta['mec_dont_show_map']) return;
|
19 |
|
20 |
-
$location = isset($event->data->meta['mec_location_id'])
|
21 |
|
22 |
// Event location geo point
|
23 |
$latitude = isset($location['latitude']) ? $location['latitude'] : '';
|
@@ -96,11 +96,11 @@ else $factory->params('footer', $javascript);
|
|
96 |
<div class="mec-get-direction">
|
97 |
<form method="post" action="#" id="mec_get_direction_form<?php echo $uniqueid; ?>" class="clearfix">
|
98 |
<div class="mec-map-get-direction-address-cnt">
|
99 |
-
<input class="mec-map-get-direction-address" type="text" placeholder="<?php esc_attr_e('Address from ...', '
|
100 |
<span class="mec-map-get-direction-reset mec-util-hidden" id="mec_map_get_direction_reset<?php echo $uniqueid; ?>">X</span>
|
101 |
</div>
|
102 |
<div class="mec-map-get-direction-btn-cnt btn btn-primary">
|
103 |
-
<input type="submit" value="<?php _e('Get Directions', '
|
104 |
</div>
|
105 |
</form>
|
106 |
</div>
|
17 |
// Map is disabled for this event
|
18 |
if(isset($event->data->meta['mec_dont_show_map']) and $event->data->meta['mec_dont_show_map']) return;
|
19 |
|
20 |
+
$location = isset($event->data->meta['mec_location_id']) && isset($event->data->locations[$event->data->meta['mec_location_id']]) ? $event->data->locations[$event->data->meta['mec_location_id']] : array();
|
21 |
|
22 |
// Event location geo point
|
23 |
$latitude = isset($location['latitude']) ? $location['latitude'] : '';
|
96 |
<div class="mec-get-direction">
|
97 |
<form method="post" action="#" id="mec_get_direction_form<?php echo $uniqueid; ?>" class="clearfix">
|
98 |
<div class="mec-map-get-direction-address-cnt">
|
99 |
+
<input class="mec-map-get-direction-address" type="text" placeholder="<?php esc_attr_e('Address from ...', 'mec') ?>" id="mec_get_direction_addr<?php echo $uniqueid; ?>" />
|
100 |
<span class="mec-map-get-direction-reset mec-util-hidden" id="mec_map_get_direction_reset<?php echo $uniqueid; ?>">X</span>
|
101 |
</div>
|
102 |
<div class="mec-map-get-direction-btn-cnt btn btn-primary">
|
103 |
+
<input type="submit" value="<?php _e('Get Directions', 'mec'); ?>" />
|
104 |
</div>
|
105 |
</form>
|
106 |
</div>
|
app/skins/monthly_view/calendar_clean.php
CHANGED
@@ -170,7 +170,6 @@ elseif($week_start == 5) // Friday
|
|
170 |
$sold_out = ($is_soldout) ? ' <span class=soldout>' . __('Sold Out', 'modern-events-calendar-lite') . '</span> ' : '';
|
171 |
$events_str .= '<h4 class="mec-event-title'.$sold_out_css_class.'"><a class="mec-color-hover" data-event-id="'.$event->data->ID.'" href="'.$this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']).'">'.$event->data->title.'</a>'.$sold_out.$event_color.'</h4>';
|
172 |
$events_str .= '<div class="mec-event-detail">'.(isset($location['name']) ? $location['name'] : '').'</div>';
|
173 |
-
$events_str .= apply_filters('monthly_event_right_box', $events_str, $event);
|
174 |
$events_str .= '</article>';
|
175 |
}
|
176 |
|
170 |
$sold_out = ($is_soldout) ? ' <span class=soldout>' . __('Sold Out', 'modern-events-calendar-lite') . '</span> ' : '';
|
171 |
$events_str .= '<h4 class="mec-event-title'.$sold_out_css_class.'"><a class="mec-color-hover" data-event-id="'.$event->data->ID.'" href="'.$this->main->get_event_date_permalink($event->data->permalink, $event->date['start']['date']).'">'.$event->data->title.'</a>'.$sold_out.$event_color.'</h4>';
|
172 |
$events_str .= '<div class="mec-event-detail">'.(isset($location['name']) ? $location['name'] : '').'</div>';
|
|
|
173 |
$events_str .= '</article>';
|
174 |
}
|
175 |
|
assets/js/events.js
CHANGED
@@ -156,41 +156,43 @@ jQuery(document).ready(function($)
|
|
156 |
$('#mec_fes_organizer_remove_image_button').addClass('mec-util-hidden');
|
157 |
});
|
158 |
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
|
|
|
|
194 |
|
195 |
$('#mec_location_id').on('change', function()
|
196 |
{
|
156 |
$('#mec_fes_organizer_remove_image_button').addClass('mec-util-hidden');
|
157 |
});
|
158 |
|
159 |
+
if ($.fn.datepicker) {
|
160 |
+
$('#mec_start_date').datepicker(
|
161 |
+
{
|
162 |
+
changeYear: true,
|
163 |
+
changeMonth: true,
|
164 |
+
dateFormat: 'yy-mm-dd',
|
165 |
+
gotoCurrent: true,
|
166 |
+
yearRange: 'c-3:c+5',
|
167 |
+
});
|
168 |
+
|
169 |
+
$('#mec_end_date').datepicker(
|
170 |
+
{
|
171 |
+
changeYear: true,
|
172 |
+
changeMonth: true,
|
173 |
+
dateFormat: 'yy-mm-dd',
|
174 |
+
gotoCurrent: true,
|
175 |
+
yearRange: 'c-3:c+5',
|
176 |
+
});
|
177 |
+
|
178 |
+
$('#mec_date_repeat_end_at_date').datepicker(
|
179 |
+
{
|
180 |
+
changeYear: true,
|
181 |
+
changeMonth: true,
|
182 |
+
dateFormat: 'yy-mm-dd',
|
183 |
+
gotoCurrent: true,
|
184 |
+
yearRange: 'c-3:c+5',
|
185 |
+
});
|
186 |
+
|
187 |
+
$('.mec_date_picker').datepicker(
|
188 |
+
{
|
189 |
+
changeYear: true,
|
190 |
+
changeMonth: true,
|
191 |
+
dateFormat: 'yy-mm-dd',
|
192 |
+
gotoCurrent: true,
|
193 |
+
yearRange: 'c-3:c+5',
|
194 |
+
});
|
195 |
+
}
|
196 |
|
197 |
$('#mec_location_id').on('change', function()
|
198 |
{
|
changelog.txt
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
-
v 4.8.
|
|
|
|
|
|
|
|
|
|
|
2 |
- Added: Import events from Event Espresso Plugin
|
3 |
- Added: Importevents from Events Manager Plugin
|
4 |
- Added: An option to show event start/end time in list skin
|
1 |
+
v 4.8.1 - 13 November 2019
|
2 |
+
- Fixed: Monthly view (clean style)
|
3 |
+
- Fixed: Datepicker
|
4 |
+
- Fixed: Google Map view in single event page
|
5 |
+
|
6 |
+
v 4.8.0 - 12 November 2019
|
7 |
- Added: Import events from Event Espresso Plugin
|
8 |
- Added: Importevents from Events Manager Plugin
|
9 |
- Added: An option to show event start/end time in list skin
|
modern-events-calendar-lite.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://webnus.net/modern-events-calendar/
|
5 |
* Description: An awesome plugin for events calendar
|
6 |
* Author: Webnus Team
|
7 |
-
* Version: 4.8.
|
8 |
* Text Domain: modern-events-calendar-lite
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: http://webnus.net
|
@@ -31,7 +31,7 @@ if(!defined('MECEXEC'))
|
|
31 |
define('MEC_BASENAME', plugin_basename(__FILE__)); // modern-events-calendar/mec.php
|
32 |
|
33 |
/** Plugin Version **/
|
34 |
-
define('MEC_VERSION', '4.8.
|
35 |
|
36 |
/** Include Webnus MEC class if not included before **/
|
37 |
if(!class_exists('MEC')) require_once MEC_ABSPATH.'mec-init.php';
|
4 |
* Plugin URI: http://webnus.net/modern-events-calendar/
|
5 |
* Description: An awesome plugin for events calendar
|
6 |
* Author: Webnus Team
|
7 |
+
* Version: 4.8.1
|
8 |
* Text Domain: modern-events-calendar-lite
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: http://webnus.net
|
31 |
define('MEC_BASENAME', plugin_basename(__FILE__)); // modern-events-calendar/mec.php
|
32 |
|
33 |
/** Plugin Version **/
|
34 |
+
define('MEC_VERSION', '4.8.1');
|
35 |
|
36 |
/** Include Webnus MEC class if not included before **/
|
37 |
if(!class_exists('MEC')) require_once MEC_ABSPATH.'mec-init.php';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webnus.net
|
|
4 |
Tags: Event, Events, Calendar, Booking, Schedule, Organizer, Venue
|
5 |
Requires at least: 4.0.0
|
6 |
Tested up to: 5.2.4
|
7 |
-
Stable tag: 4.8.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -318,6 +318,11 @@ You can see [plugin documentation here](https://webnus.net/dox/modern-events-cal
|
|
318 |
33. WordPress Event Calendar - Shortcode edit page
|
319 |
|
320 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
321 |
= 4.8.0 - 12 November 2019 =
|
322 |
- Added: Import events from Event Espresso Plugin
|
323 |
- Added: Importevents from Events Manager Plugin
|
4 |
Tags: Event, Events, Calendar, Booking, Schedule, Organizer, Venue
|
5 |
Requires at least: 4.0.0
|
6 |
Tested up to: 5.2.4
|
7 |
+
Stable tag: 4.8.1
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
318 |
33. WordPress Event Calendar - Shortcode edit page
|
319 |
|
320 |
== Changelog ==
|
321 |
+
= 4.8.1 - 13 November 2019 =
|
322 |
+
- Fixed: Monthly view (clean style)
|
323 |
+
- Fixed: Datepicker
|
324 |
+
- Fixed: Google Map view in single event page
|
325 |
+
|
326 |
= 4.8.0 - 12 November 2019 =
|
327 |
- Added: Import events from Event Espresso Plugin
|
328 |
- Added: Importevents from Events Manager Plugin
|