Version Description
- Added: Functionality to exclude date from recurring event.
- Added: Calendar edit link in Elementor widget.
- Fixed: Elementor widget preview.
Download this release
Release Info
Developer | webdorado |
Plugin | Event Calendar WD – Responsive Event Calendar plugin |
Version | 1.1.28 |
Comparing to | |
See all releases |
Code changes from version 1.1.27 to 1.1.28
- changelog.txt +5 -0
- ecwd.php +2 -2
- ecwd_class.php +5 -0
- includes/elementorWidget.php +13 -3
- js/ecwd_elementor_widget.js +20 -0
- readme.txt +6 -1
- views/ecwd-event-content.php +6 -6
- views/ecwd-event-popup.php +6 -6
- views/ecwd-organizer-content.php +3 -3
- views/single-event.php +6 -6
changelog.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 1.1.27 =
|
2 |
* Fixed: Gutenberg integration fixes.
|
3 |
|
1 |
+
= 1.1.28 =
|
2 |
+
* Added: Functionality to exclude date from recurring event.
|
3 |
+
* Added: Calendar edit link in Elementor widget.
|
4 |
+
* Fixed: Elementor widget preview.
|
5 |
+
|
6 |
= 1.1.27 =
|
7 |
* Fixed: Gutenberg integration fixes.
|
8 |
|
ecwd.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Event Calendar WD
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
|
5 |
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: 10Web
|
8 |
* Author URI: https://10web.io/plugins/
|
9 |
* Text Domain: event-calendar-wd
|
@@ -28,7 +28,7 @@ if(! defined( 'ECWD_URL' ) ){
|
|
28 |
}
|
29 |
|
30 |
if (!defined('ECWD_VERSION')) {
|
31 |
-
define('ECWD_VERSION', "1.1.
|
32 |
}
|
33 |
|
34 |
if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
|
3 |
* Plugin Name: Event Calendar WD
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
|
5 |
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
|
6 |
+
* Version: 1.1.28
|
7 |
* Author: 10Web
|
8 |
* Author URI: https://10web.io/plugins/
|
9 |
* Text Domain: event-calendar-wd
|
28 |
}
|
29 |
|
30 |
if (!defined('ECWD_VERSION')) {
|
31 |
+
define('ECWD_VERSION', "1.1.28");
|
32 |
}
|
33 |
|
34 |
if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
|
ecwd_class.php
CHANGED
@@ -29,6 +29,8 @@ class ECWD {
|
|
29 |
add_action('elementor/elements/categories_registered', array($this, 'register_elementor_widget_category'), 1, 1);
|
30 |
add_filter('tw_get_elementor_assets', array($this, 'register_elementor_assets'));
|
31 |
add_action('elementor/editor/after_enqueue_styles', array($this, 'enqueue_elementor_widget_styles'));
|
|
|
|
|
32 |
}
|
33 |
|
34 |
public function register_hooks(){
|
@@ -434,4 +436,7 @@ class ECWD {
|
|
434 |
$assets = apply_filters('tw_get_elementor_assets', array());
|
435 |
wp_enqueue_style($key, $assets['css_path'], array(), $assets['version']);
|
436 |
}
|
|
|
|
|
|
|
437 |
}
|
29 |
add_action('elementor/elements/categories_registered', array($this, 'register_elementor_widget_category'), 1, 1);
|
30 |
add_filter('tw_get_elementor_assets', array($this, 'register_elementor_assets'));
|
31 |
add_action('elementor/editor/after_enqueue_styles', array($this, 'enqueue_elementor_widget_styles'));
|
32 |
+
add_action('elementor/editor/after_enqueue_scripts', array($this, 'enqueue_elementor_widget_scripts'));
|
33 |
+
|
34 |
}
|
35 |
|
36 |
public function register_hooks(){
|
436 |
$assets = apply_filters('tw_get_elementor_assets', array());
|
437 |
wp_enqueue_style($key, $assets['css_path'], array(), $assets['version']);
|
438 |
}
|
439 |
+
function enqueue_elementor_widget_scripts(){
|
440 |
+
wp_enqueue_script($this->prefix . 'elementor_widget_js', plugins_url('js/ecwd_elementor_widget.js', __FILE__), array('jquery'));
|
441 |
+
}
|
442 |
}
|
includes/elementorWidget.php
CHANGED
@@ -47,8 +47,15 @@ class ECWDElementor extends \Elementor\Widget_Base {
|
|
47 |
'label' => __('General', 'ecwd'),
|
48 |
]
|
49 |
);
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$this->add_control('control_calendar',
|
53 |
[
|
54 |
'label' => __('Select Calendar', 'ecwd'),
|
@@ -57,7 +64,8 @@ class ECWDElementor extends \Elementor\Widget_Base {
|
|
57 |
'type' => \Elementor\Controls_Manager::SELECT,
|
58 |
'default' => 0,
|
59 |
'options' => $calendars,
|
60 |
-
|
|
|
61 |
);
|
62 |
|
63 |
$this->add_control('control_view_type',
|
@@ -216,6 +224,8 @@ class ECWDElementor extends \Elementor\Widget_Base {
|
|
216 |
/* end views section */
|
217 |
}
|
218 |
|
|
|
|
|
219 |
protected function get_calendars() {
|
220 |
$args = array(
|
221 |
'post_type' => ECWD_PLUGIN_PREFIX . '_calendar',
|
47 |
'label' => __('General', 'ecwd'),
|
48 |
]
|
49 |
);
|
50 |
+
|
51 |
+
$calendars = $this->get_calendars();
|
52 |
+
if($this->get_id() !== null){
|
53 |
+
$settings = $this->get_init_settings();
|
54 |
+
}
|
55 |
+
$ecwd_edit_link = "edit.php?post_type=ecwd_calendar";
|
56 |
+
if(isset($settings) && isset($settings["control_calendar"]) && intval($settings["control_calendar"])>0){
|
57 |
+
$ecwd_edit_link = "post.php?post=".intval($settings["control_calendar"])."&action=edit";
|
58 |
+
}
|
59 |
$this->add_control('control_calendar',
|
60 |
[
|
61 |
'label' => __('Select Calendar', 'ecwd'),
|
64 |
'type' => \Elementor\Controls_Manager::SELECT,
|
65 |
'default' => 0,
|
66 |
'options' => $calendars,
|
67 |
+
'description' => __('Select the calendar to display.', 'ecwd') .' <a target="_balnk" " href="'.$ecwd_edit_link.'">' . __('Edit calendar', 'ecwd') . '</a>',
|
68 |
+
]
|
69 |
);
|
70 |
|
71 |
$this->add_control('control_view_type',
|
224 |
/* end views section */
|
225 |
}
|
226 |
|
227 |
+
|
228 |
+
|
229 |
protected function get_calendars() {
|
230 |
$args = array(
|
231 |
'post_type' => ECWD_PLUGIN_PREFIX . '_calendar',
|
js/ecwd_elementor_widget.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery("document").ready(function () {
|
2 |
+
elementor.hooks.addAction( 'panel/open_editor/widget/ecwd-elementor', function( panel, model, view ) {
|
3 |
+
var ecwd_el = jQuery('select[data-setting="control_calendar"]',window.parent.document);
|
4 |
+
ecwd_add_edit_link(ecwd_el);
|
5 |
+
});
|
6 |
+
jQuery('body').on('change', 'select[data-setting="control_calendar"]',window.parent.document, function (){
|
7 |
+
ecwd_add_edit_link(jQuery(this));
|
8 |
+
});
|
9 |
+
});
|
10 |
+
|
11 |
+
function ecwd_add_edit_link(el) {
|
12 |
+
var ecwd_el = el;
|
13 |
+
var ecwd_id = ecwd_el.val();
|
14 |
+
var a_link = ecwd_el.closest('.elementor-control-content').find('.elementor-control-field-description').find('a');
|
15 |
+
var new_link = 'edit.php?post_type=ecwd_calendar';
|
16 |
+
if(ecwd_id !== '0'){
|
17 |
+
new_link = 'post.php?post='+ecwd_el.val()+'&action=edit';
|
18 |
+
}
|
19 |
+
a_link.attr( 'href', new_link);
|
20 |
+
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: calendar, date, event, event calendar, events, events calendar, meeting, o
|
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.2
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -346,6 +346,11 @@ Event Calendar WD plugin optionally embeds Google Maps on front end to display e
|
|
346 |
|
347 |
== Changelog ==
|
348 |
|
|
|
|
|
|
|
|
|
|
|
349 |
= 1.1.27 =
|
350 |
* Fixed: Gutenberg integration fixes.
|
351 |
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.1.28
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
346 |
|
347 |
== Changelog ==
|
348 |
|
349 |
+
= 1.1.28 =
|
350 |
+
* Added: Functionality to exclude date from recurring event.
|
351 |
+
* Added: Calendar edit link in Elementor widget.
|
352 |
+
* Fixed: Elementor widget preview.
|
353 |
+
|
354 |
= 1.1.27 =
|
355 |
* Fixed: Gutenberg integration fixes.
|
356 |
|
views/ecwd-event-content.php
CHANGED
@@ -296,15 +296,15 @@ if (!empty($calendars_id)) {
|
|
296 |
<?php if ($ecwd_social_icons) { ?>
|
297 |
<div class="ecwd-social">
|
298 |
<span class="share-links">
|
299 |
-
<a href="
|
300 |
class="ecwd-twitter"
|
301 |
target="_blank" data-original-title="Tweet It">
|
302 |
<span class="visuallyhidden">Twitter</span></a>
|
303 |
-
<a href="
|
304 |
class="ecwd-facebook"
|
305 |
target="_blank" data-original-title="Share on Facebook">
|
306 |
<span class="visuallyhidden">Facebook</span></a>
|
307 |
-
<a href="
|
308 |
class="ecwd-google-plus"
|
309 |
target="_blank" data-original-title="Share on Google+">
|
310 |
<span class="visuallyhidden">Google+</span></a>
|
@@ -354,10 +354,10 @@ if (!empty($calendars_id)) {
|
|
354 |
parse_str(parse_url($ecwd_event_video, PHP_URL_QUERY), $video_array_of_vars);
|
355 |
if (isset($video_array_of_vars['v']) && $video_array_of_vars['v']) {
|
356 |
?>
|
357 |
-
<object data="
|
358 |
type="application/x-shockwave-flash" width="400" height="300">
|
359 |
<param name="src"
|
360 |
-
value="
|
361 |
</object>
|
362 |
<?php
|
363 |
}
|
@@ -367,7 +367,7 @@ if (!empty($calendars_id)) {
|
|
367 |
if ($videoID) {
|
368 |
?>
|
369 |
<iframe
|
370 |
-
src="
|
371 |
width="" height="" frameborder="0" webkitAllowFullScreen mozallowfullscreen
|
372 |
allowFullScreen></iframe>
|
373 |
<?php
|
296 |
<?php if ($ecwd_social_icons) { ?>
|
297 |
<div class="ecwd-social">
|
298 |
<span class="share-links">
|
299 |
+
<a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>"
|
300 |
class="ecwd-twitter"
|
301 |
target="_blank" data-original-title="Tweet It">
|
302 |
<span class="visuallyhidden">Twitter</span></a>
|
303 |
+
<a href="https://www.facebook.com/sharer.php?u=<?php echo get_permalink($post_id) ?>"
|
304 |
class="ecwd-facebook"
|
305 |
target="_blank" data-original-title="Share on Facebook">
|
306 |
<span class="visuallyhidden">Facebook</span></a>
|
307 |
+
<a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
|
308 |
class="ecwd-google-plus"
|
309 |
target="_blank" data-original-title="Share on Google+">
|
310 |
<span class="visuallyhidden">Google+</span></a>
|
354 |
parse_str(parse_url($ecwd_event_video, PHP_URL_QUERY), $video_array_of_vars);
|
355 |
if (isset($video_array_of_vars['v']) && $video_array_of_vars['v']) {
|
356 |
?>
|
357 |
+
<object data="https://www.youtube.com/v/<?php echo $video_array_of_vars['v'] ?>"
|
358 |
type="application/x-shockwave-flash" width="400" height="300">
|
359 |
<param name="src"
|
360 |
+
value="https://www.youtube.com/v/<?php echo $video_array_of_vars['v'] ?>"/>
|
361 |
</object>
|
362 |
<?php
|
363 |
}
|
367 |
if ($videoID) {
|
368 |
?>
|
369 |
<iframe
|
370 |
+
src="https://player.vimeo.com/video/<?php echo $videoID; ?>?title=0&byline=0&portrait=0&badge=0&color=ffffff"
|
371 |
width="" height="" frameborder="0" webkitAllowFullScreen mozallowfullscreen
|
372 |
allowFullScreen></iframe>
|
373 |
<?php
|
views/ecwd-event-popup.php
CHANGED
@@ -275,15 +275,15 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
|
|
275 |
<?php if ($ecwd_social_icons) { ?>
|
276 |
<div class="ecwd-social">
|
277 |
<span class="share-links">
|
278 |
-
<a href="
|
279 |
class="ecwd-twitter"
|
280 |
target="_blank" data-original-title="Tweet It">
|
281 |
<span class="visuallyhidden">Twitter</span></a>
|
282 |
-
<a href="
|
283 |
class="ecwd-facebook"
|
284 |
target="_blank" data-original-title="Share on Facebook">
|
285 |
<span class="visuallyhidden">Facebook</span></a>
|
286 |
-
<a href="
|
287 |
class="ecwd-google-plus"
|
288 |
target="_blank" data-original-title="Share on Google+">
|
289 |
<span class="visuallyhidden">Google+</span></a>
|
@@ -323,10 +323,10 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
|
|
323 |
parse_str(parse_url($ecwd_event_video, PHP_URL_QUERY), $video_array_of_vars);
|
324 |
if (isset($video_array_of_vars['v']) && $video_array_of_vars['v']) {
|
325 |
?>
|
326 |
-
<object data="
|
327 |
type="application/x-shockwave-flash" width="400" height="300">
|
328 |
<param name="src"
|
329 |
-
value="
|
330 |
</object>
|
331 |
<?php
|
332 |
}
|
@@ -335,7 +335,7 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
|
|
335 |
$videoID = $videoID[count($videoID) - 1];
|
336 |
if ($videoID) { ?>
|
337 |
<iframe
|
338 |
-
src="
|
339 |
width="" height="" frameborder="0" webkitAllowFullScreen mozallowfullscreen
|
340 |
allowFullScreen></iframe>
|
341 |
<?php
|
275 |
<?php if ($ecwd_social_icons) { ?>
|
276 |
<div class="ecwd-social">
|
277 |
<span class="share-links">
|
278 |
+
<a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>"
|
279 |
class="ecwd-twitter"
|
280 |
target="_blank" data-original-title="Tweet It">
|
281 |
<span class="visuallyhidden">Twitter</span></a>
|
282 |
+
<a href="https://www.facebook.com/sharer.php?u=<?php echo get_permalink($post_id) ?>"
|
283 |
class="ecwd-facebook"
|
284 |
target="_blank" data-original-title="Share on Facebook">
|
285 |
<span class="visuallyhidden">Facebook</span></a>
|
286 |
+
<a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
|
287 |
class="ecwd-google-plus"
|
288 |
target="_blank" data-original-title="Share on Google+">
|
289 |
<span class="visuallyhidden">Google+</span></a>
|
323 |
parse_str(parse_url($ecwd_event_video, PHP_URL_QUERY), $video_array_of_vars);
|
324 |
if (isset($video_array_of_vars['v']) && $video_array_of_vars['v']) {
|
325 |
?>
|
326 |
+
<object data="https://www.youtube.com/v/<?php echo $video_array_of_vars['v'] ?>"
|
327 |
type="application/x-shockwave-flash" width="400" height="300">
|
328 |
<param name="src"
|
329 |
+
value="https://www.youtube.com/v/<?php echo $video_array_of_vars['v'] ?>"/>
|
330 |
</object>
|
331 |
<?php
|
332 |
}
|
335 |
$videoID = $videoID[count($videoID) - 1];
|
336 |
if ($videoID) { ?>
|
337 |
<iframe
|
338 |
+
src="https://player.vimeo.com/video/<?php echo $videoID; ?>?title=0&byline=0&portrait=0&badge=0&color=ffffff"
|
339 |
width="" height="" frameborder="0" webkitAllowFullScreen mozallowfullscreen
|
340 |
allowFullScreen></iframe>
|
341 |
<?php
|
views/ecwd-organizer-content.php
CHANGED
@@ -116,16 +116,16 @@ if (!empty($organizer_website)) {
|
|
116 |
<?php if ($ecwd_social_icons) { ?>
|
117 |
<div class="ecwd-social">
|
118 |
<span class="share-links">
|
119 |
-
<a href="
|
120 |
target="_blank" data-original-title="Tweet It">
|
121 |
<span class="visuallyhidden">Twitter</span></a>
|
122 |
|
123 |
-
<a href="
|
124 |
class="ecwd-facebook"
|
125 |
target="_blank" data-original-title="Share on Facebook">
|
126 |
<span class="visuallyhidden">Facebook</span></a>
|
127 |
|
128 |
-
<a href="
|
129 |
class="ecwd-google-plus"
|
130 |
target="_blank" data-original-title="Share on Google+">
|
131 |
<span class="visuallyhidden">Google+</span></a>
|
116 |
<?php if ($ecwd_social_icons) { ?>
|
117 |
<div class="ecwd-social">
|
118 |
<span class="share-links">
|
119 |
+
<a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>" class="ecwd-twitter"
|
120 |
target="_blank" data-original-title="Tweet It">
|
121 |
<span class="visuallyhidden">Twitter</span></a>
|
122 |
|
123 |
+
<a href="https://www.facebook.com/sharer.php?u=<?php echo get_permalink($post_id) ?>"
|
124 |
class="ecwd-facebook"
|
125 |
target="_blank" data-original-title="Share on Facebook">
|
126 |
<span class="visuallyhidden">Facebook</span></a>
|
127 |
|
128 |
+
<a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
|
129 |
class="ecwd-google-plus"
|
130 |
target="_blank" data-original-title="Share on Google+">
|
131 |
<span class="visuallyhidden">Google+</span></a>
|
views/single-event.php
CHANGED
@@ -322,15 +322,15 @@ if ( class_exists( 'WooCommerce' ) ) {
|
|
322 |
|
323 |
<div class="ecwd-social">
|
324 |
<span class="share-links">
|
325 |
-
<a href="
|
326 |
class="ecwd-twitter"
|
327 |
target="_blank" data-original-title="Tweet It">
|
328 |
<span class="visuallyhidden">Twitter</span></a>
|
329 |
-
<a href="
|
330 |
class="ecwd-facebook"
|
331 |
target="_blank" data-original-title="Share on Facebook">
|
332 |
<span class="visuallyhidden">Facebook</span></a>
|
333 |
-
<a href="
|
334 |
class="ecwd-google-plus"
|
335 |
target="_blank" data-original-title="Share on Google+">
|
336 |
<span class="visuallyhidden">Google+</span></a>
|
@@ -369,10 +369,10 @@ if ( class_exists( 'WooCommerce' ) ) {
|
|
369 |
parse_str(parse_url($ecwd_event_video, PHP_URL_QUERY), $video_array_of_vars);
|
370 |
if (isset($video_array_of_vars['v']) && $video_array_of_vars['v']) {
|
371 |
?>
|
372 |
-
<object data="
|
373 |
type="application/x-shockwave-flash" width="400" height="300">
|
374 |
<param name="src"
|
375 |
-
value="
|
376 |
</object>
|
377 |
<?php
|
378 |
}
|
@@ -381,7 +381,7 @@ if ( class_exists( 'WooCommerce' ) ) {
|
|
381 |
$videoID = $videoID[count($videoID) - 1];
|
382 |
if ($videoID) { ?>
|
383 |
<iframe
|
384 |
-
src="
|
385 |
width="" height="" frameborder="0" webkitAllowFullScreen mozallowfullscreen
|
386 |
allowFullScreen></iframe>
|
387 |
<?php
|
322 |
|
323 |
<div class="ecwd-social">
|
324 |
<span class="share-links">
|
325 |
+
<a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>"
|
326 |
class="ecwd-twitter"
|
327 |
target="_blank" data-original-title="Tweet It">
|
328 |
<span class="visuallyhidden">Twitter</span></a>
|
329 |
+
<a href="https://www.facebook.com/sharer.php?u=<?php echo get_permalink($post_id) ?>"
|
330 |
class="ecwd-facebook"
|
331 |
target="_blank" data-original-title="Share on Facebook">
|
332 |
<span class="visuallyhidden">Facebook</span></a>
|
333 |
+
<a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
|
334 |
class="ecwd-google-plus"
|
335 |
target="_blank" data-original-title="Share on Google+">
|
336 |
<span class="visuallyhidden">Google+</span></a>
|
369 |
parse_str(parse_url($ecwd_event_video, PHP_URL_QUERY), $video_array_of_vars);
|
370 |
if (isset($video_array_of_vars['v']) && $video_array_of_vars['v']) {
|
371 |
?>
|
372 |
+
<object data="https://www.youtube.com/v/<?php echo $video_array_of_vars['v'] ?>"
|
373 |
type="application/x-shockwave-flash" width="400" height="300">
|
374 |
<param name="src"
|
375 |
+
value="https://www.youtube.com/v/<?php echo $video_array_of_vars['v'] ?>"/>
|
376 |
</object>
|
377 |
<?php
|
378 |
}
|
381 |
$videoID = $videoID[count($videoID) - 1];
|
382 |
if ($videoID) { ?>
|
383 |
<iframe
|
384 |
+
src="https://player.vimeo.com/video/<?php echo $videoID; ?>?title=0&byline=0&portrait=0&badge=0&color=ffffff"
|
385 |
width="" height="" frameborder="0" webkitAllowFullScreen mozallowfullscreen
|
386 |
allowFullScreen></iframe>
|
387 |
<?php
|