Version Description
- Changed: Introducing brand new free plugin: SEO by 10Web
Download this release
Release Info
Developer | webdorado |
Plugin | Event Calendar WD – Responsive Event Calendar plugin |
Version | 1.1.10 |
Comparing to | |
See all releases |
Code changes from version 1.1.9 to 1.1.10
- assets/logo.png +0 -0
- assets/seo_logo.png +0 -0
- css/admin/admin.css +1 -1
- css/wd_bp_install.css +1 -1
- ecwd.php +2 -2
- ecwd_admin_class.php +25 -15
- includes/ecwd-cpt-class.php +26 -2
- includes/ecwd-display-class.php +14 -1
- readme.txt +4 -1
- views/admin/ecwd-event-calendars-meta.php +12 -0
assets/logo.png
DELETED
Binary file
|
assets/seo_logo.png
ADDED
Binary file
|
css/admin/admin.css
CHANGED
@@ -341,7 +341,7 @@ span.ecwd_error {
|
|
341 |
font-size: 17px;
|
342 |
}
|
343 |
|
344 |
-
#ecwd-settings a.button {
|
345 |
border: 1px solid #A1A1A1;
|
346 |
padding: 0px 15px;
|
347 |
box-shadow: none;
|
341 |
font-size: 17px;
|
342 |
}
|
343 |
|
344 |
+
#ecwd-settings a.button :not(.wd_notice_button) {
|
345 |
border: 1px solid #A1A1A1;
|
346 |
padding: 0px 15px;
|
347 |
box-shadow: none;
|
css/wd_bp_install.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
}
|
9 |
|
10 |
#wd_bp_logo_notice {
|
11 |
-
width:
|
12 |
float: left;
|
13 |
margin-right: 10px;
|
14 |
}
|
8 |
}
|
9 |
|
10 |
#wd_bp_logo_notice {
|
11 |
+
width: 50px;
|
12 |
float: left;
|
13 |
margin-right: 10px;
|
14 |
}
|
ecwd.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Event Calendar WD
|
4 |
* Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
5 |
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -24,7 +24,7 @@ if (!defined('ECWD_URL')) {
|
|
24 |
}
|
25 |
|
26 |
if (!defined('ECWD_VERSION')) {
|
27 |
-
define('ECWD_VERSION', "1.1.
|
28 |
}
|
29 |
|
30 |
if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
|
3 |
* Plugin Name: Event Calendar WD
|
4 |
* Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
5 |
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
|
6 |
+
* Version: 1.1.10
|
7 |
* Author: WebDorado
|
8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
24 |
}
|
25 |
|
26 |
if (!defined('ECWD_VERSION')) {
|
27 |
+
define('ECWD_VERSION', "1.1.10");
|
28 |
}
|
29 |
|
30 |
if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
|
ecwd_admin_class.php
CHANGED
@@ -47,11 +47,11 @@ class ECWD_Admin {
|
|
47 |
add_action('admin_notices', array($this, 'ecwd_helper_bar'), 10000);
|
48 |
add_filter('parent_file', array($this, 'ecwd_submenu_parent_file'));
|
49 |
|
50 |
-
$meta_value = get_option('
|
51 |
-
if ((!function_exists('wd_bp_install_notice')) && (!is_dir(plugin_dir_path(__DIR__) . '
|
52 |
add_action('admin_notices', array($this, 'wd_bp_install_notice'));
|
53 |
add_action('admin_enqueue_scripts', array($this, 'wd_bp_script_style'));
|
54 |
-
add_action('
|
55 |
}
|
56 |
add_filter('default_hidden_meta_boxes', array($this, 'default_hidden_meta_boxes'),2,2);
|
57 |
add_filter("plugin_row_meta", array($this, 'ecwd_add_plugin_meta_links'), 10, 2);
|
@@ -78,26 +78,26 @@ class ECWD_Admin {
|
|
78 |
if(in_array($get_current->id, $current_screen_id)){
|
79 |
$wd_bp_plugin_url = ECWD_URL;
|
80 |
$prefix = 'ecwd';
|
81 |
-
$meta_value = get_option('
|
82 |
if ($meta_value === '' || $meta_value === false) {
|
83 |
ob_start();
|
84 |
?>
|
85 |
<div class="notice notice-info" id="wd_bp_notice_cont">
|
86 |
<p>
|
87 |
-
<img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/assets/
|
88 |
-
<?php _e("Event Calendar WD advises:
|
89 |
-
<a href="https://wordpress.org/plugins/
|
90 |
-
target="_blank"><?php _e("
|
91 |
-
<?php _e("plugin
|
92 |
-
<a class="button button-primary"
|
93 |
-
href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=
|
94 |
-
<span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
|
95 |
</a>
|
96 |
</p>
|
97 |
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
|
98 |
</button>
|
99 |
</div>
|
100 |
-
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => '
|
101 |
<?php
|
102 |
echo ob_get_clean();
|
103 |
}
|
@@ -108,7 +108,7 @@ class ECWD_Admin {
|
|
108 |
wp_enqueue_style('wd_bck_install', ECWD_URL . '/css/wd_bp_install.css');
|
109 |
}
|
110 |
public function wd_bp_install_notice_status() {
|
111 |
-
update_option('
|
112 |
}
|
113 |
public function default_hidden_meta_boxes($hidden, $screen) {
|
114 |
if ($screen->id == 'ecwd_calendar') {
|
@@ -777,7 +777,17 @@ class ECWD_Admin {
|
|
777 |
'ignore_sticky_posts' => 1
|
778 |
);
|
779 |
$event_posts = get_posts($args);
|
780 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
781 |
?>
|
782 |
<!-- TinyMCE Shortcode Plugin -->
|
783 |
<script type='text/javascript'>
|
47 |
add_action('admin_notices', array($this, 'ecwd_helper_bar'), 10000);
|
48 |
add_filter('parent_file', array($this, 'ecwd_submenu_parent_file'));
|
49 |
|
50 |
+
$meta_value = get_option('wd_seo_notice_status');
|
51 |
+
if ((!function_exists('wd_bp_install_notice')) && (!is_dir(plugin_dir_path(__DIR__) . 'seo-by-10web')) && ($meta_value === '' || $meta_value === false)) {
|
52 |
add_action('admin_notices', array($this, 'wd_bp_install_notice'));
|
53 |
add_action('admin_enqueue_scripts', array($this, 'wd_bp_script_style'));
|
54 |
+
add_action('wp_ajax_wd_seo_dismiss', array($this, 'wd_bp_install_notice_status'));
|
55 |
}
|
56 |
add_filter('default_hidden_meta_boxes', array($this, 'default_hidden_meta_boxes'),2,2);
|
57 |
add_filter("plugin_row_meta", array($this, 'ecwd_add_plugin_meta_links'), 10, 2);
|
78 |
if(in_array($get_current->id, $current_screen_id)){
|
79 |
$wd_bp_plugin_url = ECWD_URL;
|
80 |
$prefix = 'ecwd';
|
81 |
+
$meta_value = get_option('wd_seo_notice_status');
|
82 |
if ($meta_value === '' || $meta_value === false) {
|
83 |
ob_start();
|
84 |
?>
|
85 |
<div class="notice notice-info" id="wd_bp_notice_cont">
|
86 |
<p>
|
87 |
+
<img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/assets/seo_logo.png'; ?>">
|
88 |
+
<?php _e("Event Calendar WD advises: Optimize your web pages for search engines with the", $prefix) ?>
|
89 |
+
<a href="https://wordpress.org/plugins/seo-by-10web/" title="<?php _e("More details", $prefix) ?>"
|
90 |
+
target="_blank"><?php _e("FREE SEO", $prefix) ?></a>
|
91 |
+
<?php _e("plugin.", $prefix) ?>
|
92 |
+
<a class="button button-primary wd_notice_button"
|
93 |
+
href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=seo-by-10web'), 'install-plugin_seo-by-10web')); ?>">
|
94 |
+
<span class="wd_notice_button" onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
|
95 |
</a>
|
96 |
</p>
|
97 |
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
|
98 |
</button>
|
99 |
</div>
|
100 |
+
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
|
101 |
<?php
|
102 |
echo ob_get_clean();
|
103 |
}
|
108 |
wp_enqueue_style('wd_bck_install', ECWD_URL . '/css/wd_bp_install.css');
|
109 |
}
|
110 |
public function wd_bp_install_notice_status() {
|
111 |
+
update_option('wd_seo_notice_status', '1', 'no');
|
112 |
}
|
113 |
public function default_hidden_meta_boxes($hidden, $screen) {
|
114 |
if ($screen->id == 'ecwd_calendar') {
|
777 |
'ignore_sticky_posts' => 1
|
778 |
);
|
779 |
$event_posts = get_posts($args);
|
780 |
+
if(current_user_can('read_private_posts')) {
|
781 |
+
$private_args = $args;
|
782 |
+
$private_args['post_status'] = ['private'];
|
783 |
+
$private_events = get_posts($private_args);
|
784 |
+
if(!empty($private_events)) {
|
785 |
+
foreach($private_events as $private_event) {
|
786 |
+
$event_posts[] = $private_event;
|
787 |
+
}
|
788 |
+
}
|
789 |
+
}
|
790 |
+
$plugin_url = plugins_url('/', __FILE__);
|
791 |
?>
|
792 |
<!-- TinyMCE Shortcode Plugin -->
|
793 |
<script type='text/javascript'>
|
includes/ecwd-cpt-class.php
CHANGED
@@ -653,7 +653,19 @@ class ECWD_Cpt {
|
|
653 |
);
|
654 |
$events = get_posts($args);
|
655 |
|
656 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
'numberposts' => - 1,
|
658 |
'post_type' => self::EVENT_POST_TYPE,
|
659 |
'meta_query' => array(
|
@@ -678,7 +690,19 @@ class ECWD_Cpt {
|
|
678 |
);
|
679 |
$excluded_events = get_posts($args);
|
680 |
|
681 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
'numberposts' => - 1,
|
683 |
'post_type' => ECWD_PLUGIN_PREFIX . '_theme'
|
684 |
);
|
653 |
);
|
654 |
$events = get_posts($args);
|
655 |
|
656 |
+
if(current_user_can('read_private_posts')) {
|
657 |
+
$private_args = $args;
|
658 |
+
$private_args['post_status'] = ['private'];
|
659 |
+
$private_events = get_posts($private_args);
|
660 |
+
if(!empty($private_events)) {
|
661 |
+
foreach($private_events as $private_event) {
|
662 |
+
$events[] = $private_event;
|
663 |
+
}
|
664 |
+
}
|
665 |
+
}
|
666 |
+
|
667 |
+
|
668 |
+
$args = array(
|
669 |
'numberposts' => - 1,
|
670 |
'post_type' => self::EVENT_POST_TYPE,
|
671 |
'meta_query' => array(
|
690 |
);
|
691 |
$excluded_events = get_posts($args);
|
692 |
|
693 |
+
if(current_user_can('read_private_posts')) {
|
694 |
+
$private_args = $args;
|
695 |
+
$private_args['post_status'] = ['private'];
|
696 |
+
$private_events = get_posts($private_args);
|
697 |
+
if(!empty($private_events)) {
|
698 |
+
foreach($private_events as $private_event) {
|
699 |
+
$excluded_events[] = $private_event;
|
700 |
+
}
|
701 |
+
}
|
702 |
+
}
|
703 |
+
|
704 |
+
|
705 |
+
$args = array(
|
706 |
'numberposts' => - 1,
|
707 |
'post_type' => ECWD_PLUGIN_PREFIX . '_theme'
|
708 |
);
|
includes/ecwd-display-class.php
CHANGED
@@ -215,13 +215,26 @@ class ECWD_Display {
|
|
215 |
wp_reset_query();
|
216 |
}
|
217 |
try {
|
|
|
218 |
$ecwd_events = get_posts($args);
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
} catch (Exception $e) {
|
220 |
$ecwd_events = array();
|
221 |
}
|
222 |
|
223 |
$ecwd_events += $ecwd_events_title;
|
224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
$google_events = array();
|
226 |
$events = array();
|
227 |
$ical_events = array();
|
215 |
wp_reset_query();
|
216 |
}
|
217 |
try {
|
218 |
+
$args['post_status'] = 'publish';
|
219 |
$ecwd_events = get_posts($args);
|
220 |
+
$private_events = array();
|
221 |
+
if(current_user_can('read_private_posts')){
|
222 |
+
$private_events_args = $args;
|
223 |
+
$private_events_args['post_status'] = 'private';
|
224 |
+
$private_events = get_posts($private_events_args);
|
225 |
+
}
|
226 |
} catch (Exception $e) {
|
227 |
$ecwd_events = array();
|
228 |
}
|
229 |
|
230 |
$ecwd_events += $ecwd_events_title;
|
231 |
+
if(!empty($private_events)){
|
232 |
+
foreach($private_events as $private_event) {
|
233 |
+
$ecwd_events[] = $private_event;
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
wp_reset_query();
|
238 |
$google_events = array();
|
239 |
$events = array();
|
240 |
$ical_events = array();
|
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: 4.9
|
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 |
|
@@ -250,6 +250,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
250 |
|
251 |
== Changelog ==
|
252 |
|
|
|
|
|
|
|
253 |
= 1.1.9 =
|
254 |
* Changed: Deactivation popup.
|
255 |
* Fixed: Notice in single event page.
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.1.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
250 |
|
251 |
== Changelog ==
|
252 |
|
253 |
+
= 1.1.10 =
|
254 |
+
* Changed: Introducing brand new free plugin: SEO by 10Web
|
255 |
+
|
256 |
= 1.1.9 =
|
257 |
* Changed: Deactivation popup.
|
258 |
* Fixed: Notice in single event page.
|
views/admin/ecwd-event-calendars-meta.php
CHANGED
@@ -13,6 +13,18 @@ $args = array(
|
|
13 |
'ignore_sticky_posts' => 1
|
14 |
);
|
15 |
$calendar_posts = get_posts($args);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
$event_calendars = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX.'_event_calendars', true);
|
17 |
if(!$event_calendars){
|
18 |
$event_calendars = array();
|
13 |
'ignore_sticky_posts' => 1
|
14 |
);
|
15 |
$calendar_posts = get_posts($args);
|
16 |
+
|
17 |
+
if(current_user_can('read_private_posts')) {
|
18 |
+
$private_args = $args;
|
19 |
+
$private_args['post_status'] = ['private'];
|
20 |
+
$private_calendar_posts = get_posts($private_args);
|
21 |
+
if(!empty($private_calendar_posts)) {
|
22 |
+
foreach($private_calendar_posts as $private_calendar_post) {
|
23 |
+
$calendar_posts[] = $private_calendar_post;
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
$event_calendars = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX.'_event_calendars', true);
|
29 |
if(!$event_calendars){
|
30 |
$event_calendars = array();
|