Version Description
- Fixed: Google structured data errors
- Changed: Event hover popup styles
Download this release
Release Info
Developer | webdorado |
Plugin | Event Calendar WD – Responsive Event Calendar plugin |
Version | 1.0.42 |
Comparing to | |
See all releases |
Code changes from version 1.0.40 to 1.0.42
- assets/wdhny.jpeg +0 -0
- css/admin/notices.css +35 -0
- css/style.css +17 -0
- ecwd.php +1 -1
- ecwd_admin_class.php +1 -1
- ecwd_class.php +1 -1
- includes/calendar-class.php +8 -1
- includes/ecwd-functions.php +1 -1
- includes/ecwd-notices-class.php +43 -24
- includes/notices.php +12 -1
- js/scripts.js +2 -14
- readme.txt +8 -1
- views/admin/ecwd-calendar-meta.php +5 -0
- views/ecwd-event-content.php +1 -0
- views/ecwd-event-popup.php +4 -1
- views/single-event.php +2 -1
assets/wdhny.jpeg
ADDED
Binary file
|
css/admin/notices.css
CHANGED
@@ -6,6 +6,21 @@
|
|
6 |
padding: 10px 40px 10px 125px;
|
7 |
position: relative;
|
8 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
.ecwd-admin-notice a {
|
10 |
color: #10738B;
|
11 |
}
|
@@ -37,6 +52,12 @@
|
|
37 |
font-weight: normal;
|
38 |
margin: 5px 0;
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
.ecwd-notice-body:after {
|
41 |
clear: both;
|
42 |
content: "";
|
@@ -52,3 +73,17 @@
|
|
52 |
.ecwd-blue {
|
53 |
color: #10738B;
|
54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
padding: 10px 40px 10px 125px;
|
7 |
position: relative;
|
8 |
}
|
9 |
+
.ecwd-admin-notice-promo {
|
10 |
+
background: #fff;
|
11 |
+
border-top: 4px;
|
12 |
+
display: block;
|
13 |
+
min-height: 68px;
|
14 |
+
padding: 10px 40px 0px 10px;
|
15 |
+
margin: 10px 0;
|
16 |
+
position: relative;
|
17 |
+
}
|
18 |
+
|
19 |
+
.ecwd-admin-notice-promo:after{
|
20 |
+
content: '';
|
21 |
+
display: table;
|
22 |
+
clear: both;
|
23 |
+
}
|
24 |
.ecwd-admin-notice a {
|
25 |
color: #10738B;
|
26 |
}
|
52 |
font-weight: normal;
|
53 |
margin: 5px 0;
|
54 |
}
|
55 |
+
.ecwd-close-promo{
|
56 |
+
position: absolute;
|
57 |
+
top: 5px;
|
58 |
+
right: 5px;
|
59 |
+
}
|
60 |
+
|
61 |
.ecwd-notice-body:after {
|
62 |
clear: both;
|
63 |
content: "";
|
73 |
.ecwd-blue {
|
74 |
color: #10738B;
|
75 |
}
|
76 |
+
|
77 |
+
.ecwd_hny{
|
78 |
+
background: url("../../assets/wdhny.jpeg") no-repeat;
|
79 |
+
background-position: center;
|
80 |
+
background-size: 800px 200px;
|
81 |
+
height: 200px;
|
82 |
+
max-width: 100%;
|
83 |
+
|
84 |
+
|
85 |
+
}
|
86 |
+
.ecwd_hny a{
|
87 |
+
display: block;
|
88 |
+
height: 100%;
|
89 |
+
}
|
css/style.css
CHANGED
@@ -284,6 +284,20 @@ div.ecwd-page-month table.cal_blue div.event-details-container, div.ecwd-page-fu
|
|
284 |
left: 100%;
|
285 |
top: 0;
|
286 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
div.ecwd-page-full .has-events ul.more_events > li div.event-details-container {
|
288 |
display: none;
|
289 |
position: relative;
|
@@ -2661,4 +2675,7 @@ table.ecwd_calendar_container > tbody > tr >td{
|
|
2661 |
background-color: #e8e5ce;
|
2662 |
padding: 40px 0;
|
2663 |
text-align: center;
|
|
|
|
|
|
|
2664 |
}
|
284 |
left: 100%;
|
285 |
top: 0;
|
286 |
}
|
287 |
+
div.ecwd-page-month table.cal_blue tr td:nth-child(6) div.event-details-container, div.ecwd-page-full table.cal_blue tr td:nth-child(6) div.event-details-container,
|
288 |
+
div.ecwd-page-month table.cal_blue tr td:nth-child(7) div.event-details-container, div.ecwd-page-full table.cal_blue tr td:nth-child(7) div.event-details-container {
|
289 |
+
left: auto;
|
290 |
+
right: 100%;
|
291 |
+
margin-right: 11px;
|
292 |
+
}
|
293 |
+
div.ecwd-page-month table.cal_blue tr td:nth-child(6) div.event-details-container, div.ecwd-page-full table.cal_blue tr td:nth-child(6) div.event-details-container .ecwd-event-arrow-right,
|
294 |
+
div.ecwd-page-month table.cal_blue tr td:nth-child(7) div.event-details-container, div.ecwd-page-full table.cal_blue tr td:nth-child(7) div.event-details-container .ecwd-event-arrow-right{
|
295 |
+
display:block;
|
296 |
+
}
|
297 |
+
div.ecwd-page-month table.cal_blue tr td:nth-child(6) div.event-details-container, div.ecwd-page-full table.cal_blue tr td:nth-child(6) div.event-details-container .ecwd-event-arrow,
|
298 |
+
div.ecwd-page-month table.cal_blue tr td:nth-child(7) div.event-details-container, div.ecwd-page-full table.cal_blue tr td:nth-child(7) div.event-details-container .ecwd-event-arrow{
|
299 |
+
display:none;
|
300 |
+
}
|
301 |
div.ecwd-page-full .has-events ul.more_events > li div.event-details-container {
|
302 |
display: none;
|
303 |
position: relative;
|
2675 |
background-color: #e8e5ce;
|
2676 |
padding: 40px 0;
|
2677 |
text-align: center;
|
2678 |
+
}
|
2679 |
+
.ecwd_hidden{
|
2680 |
+
display:none !important;
|
2681 |
}
|
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.0.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
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.0.42
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
ecwd_admin_class.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
class ECWD_Admin {
|
7 |
|
8 |
protected static $instance = null;
|
9 |
-
protected $version = '1.0.
|
10 |
protected $ecwd_page = null;
|
11 |
protected $notices = null;
|
12 |
|
6 |
class ECWD_Admin {
|
7 |
|
8 |
protected static $instance = null;
|
9 |
+
protected $version = '1.0.42';
|
10 |
protected $ecwd_page = null;
|
11 |
protected $notices = null;
|
12 |
|
ecwd_class.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*/
|
7 |
class ECWD {
|
8 |
|
9 |
-
protected $version = '1.0.
|
10 |
protected $plugin_name = 'event-calendar-wd';
|
11 |
protected $prefix = 'ecwd';
|
12 |
protected static $instance = null;
|
6 |
*/
|
7 |
class ECWD {
|
8 |
|
9 |
+
protected $version = '1.0.42';
|
10 |
protected $plugin_name = 'event-calendar-wd';
|
11 |
protected $prefix = 'ecwd';
|
12 |
protected static $instance = null;
|
includes/calendar-class.php
CHANGED
@@ -467,7 +467,10 @@ class Calendar {
|
|
467 |
if ( isset( $event['venue']['name'] ) ) {
|
468 |
$html .= '<a href="' . $event['venue']['permalink'] . '">' . $event['venue']['name'] . '</a>';
|
469 |
}
|
|
|
|
|
470 |
|
|
|
471 |
$html .= '</span>
|
472 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
473 |
' . ( $event['location'] ? $event['location'] : "" ) . '
|
@@ -1077,7 +1080,8 @@ class Calendar {
|
|
1077 |
if ( isset( $cellevent['venue']['name'] ) ) {
|
1078 |
$eventcontent .= '<div class="ecwd-venue" ><span itemprop="name"><a href="' . $cellevent['venue']['permalink'] . '">' . $cellevent['venue']['name'] . '</a></span></div>';
|
1079 |
}
|
1080 |
-
if (
|
|
|
1081 |
$eventcontent .= '<div class="ecwd-location" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span>' . $cellevent['location'] . '</span></div>';
|
1082 |
}
|
1083 |
$eventcontent .= '</div>';
|
@@ -1227,7 +1231,10 @@ class Calendar {
|
|
1227 |
if ( isset( $cellevent['venue']['name'] ) ) {
|
1228 |
$html .= '<a href="' . $cellevent['venue']['permalink'] . '">' . $cellevent['venue']['name'] . '</a>';
|
1229 |
}
|
|
|
|
|
1230 |
|
|
|
1231 |
$html .= '</span>
|
1232 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
1233 |
<span itemprop="streetAddress">' . $cellevent['location'] . '</span>
|
467 |
if ( isset( $event['venue']['name'] ) ) {
|
468 |
$html .= '<a href="' . $event['venue']['permalink'] . '">' . $event['venue']['name'] . '</a>';
|
469 |
}
|
470 |
+
else{
|
471 |
+
$html .= $event['location'] ;
|
472 |
|
473 |
+
}
|
474 |
$html .= '</span>
|
475 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
476 |
' . ( $event['location'] ? $event['location'] : "" ) . '
|
1080 |
if ( isset( $cellevent['venue']['name'] ) ) {
|
1081 |
$eventcontent .= '<div class="ecwd-venue" ><span itemprop="name"><a href="' . $cellevent['venue']['permalink'] . '">' . $cellevent['venue']['name'] . '</a></span></div>';
|
1082 |
}
|
1083 |
+
if (isset($cellevent['location']) && $cellevent['location'] != '') {
|
1084 |
+
$eventcontent .= '<span class="ecwd_hidden" itemprop="name">' . $cellevent['location'] . '</span>';
|
1085 |
$eventcontent .= '<div class="ecwd-location" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span>' . $cellevent['location'] . '</span></div>';
|
1086 |
}
|
1087 |
$eventcontent .= '</div>';
|
1231 |
if ( isset( $cellevent['venue']['name'] ) ) {
|
1232 |
$html .= '<a href="' . $cellevent['venue']['permalink'] . '">' . $cellevent['venue']['name'] . '</a>';
|
1233 |
}
|
1234 |
+
else{
|
1235 |
+
$html .= $cellevent['location'] ;
|
1236 |
|
1237 |
+
}
|
1238 |
$html .= '</span>
|
1239 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
1240 |
<span itemprop="streetAddress">' . $cellevent['location'] . '</span>
|
includes/ecwd-functions.php
CHANGED
@@ -148,7 +148,7 @@ function ecwd_ajax() {
|
|
148 |
$date = $link_arr['?date'];
|
149 |
$page = isset( $link_arr['amp;cpage'] ) ? $link_arr['amp;cpage'] : 1;
|
150 |
|
151 |
-
$display = isset( $link_arr['amp;t'] ) ? $link_arr['amp;t'] : '
|
152 |
} else {
|
153 |
if ( isset( $_POST[ ECWD_PLUGIN_PREFIX . '_prev_display' ] ) ) {
|
154 |
$display = esc_html( $_POST[ ECWD_PLUGIN_PREFIX . '_prev_display' ] );
|
148 |
$date = $link_arr['?date'];
|
149 |
$page = isset( $link_arr['amp;cpage'] ) ? $link_arr['amp;cpage'] : 1;
|
150 |
|
151 |
+
$display = isset( $link_arr['amp;t'] ) ? $link_arr['amp;t'] : 'full';
|
152 |
} else {
|
153 |
if ( isset( $_POST[ ECWD_PLUGIN_PREFIX . '_prev_display' ] ) ) {
|
154 |
$display = esc_html( $_POST[ ECWD_PLUGIN_PREFIX . '_prev_display' ] );
|
includes/ecwd-notices-class.php
CHANGED
@@ -43,7 +43,7 @@ class ECWD_Notices {
|
|
43 |
|
44 |
$ecwd_settings = get_option( 'ecwd_admin_notice' );
|
45 |
if ( ! isset( $ecwd_settings['disable_admin_notices'] ) || ( isset( $ecwd_settings['disable_admin_notices'] ) && $ecwd_settings['disable_admin_notices'] == 0 ) ) {
|
46 |
-
if ( current_user_can(
|
47 |
return true;
|
48 |
}
|
49 |
}
|
@@ -57,12 +57,15 @@ class ECWD_Notices {
|
|
57 |
|
58 |
// Check options
|
59 |
if ( ! $this->ecwd_admin_notice() ) {
|
|
|
60 |
return false;
|
61 |
}
|
62 |
|
63 |
foreach ( $admin_notices as $slug => $admin_notice ) {
|
|
|
64 |
// Call for spam protection
|
65 |
if ( $this->anti_notice_spam() ) {
|
|
|
66 |
return false;
|
67 |
}
|
68 |
|
@@ -72,19 +75,26 @@ class ECWD_Notices {
|
|
72 |
return false;
|
73 |
}
|
74 |
}
|
|
|
75 |
// Check for required fields
|
76 |
if ( ! $this->required_fields( $admin_notices[ $slug ] ) ) {
|
|
|
77 |
// Get the current date then set start date to either passed value or current date value and add interval
|
78 |
$current_date = current_time( "n/j/Y" );
|
79 |
$start = ( isset( $admin_notices[ $slug ]['start'] ) ? $admin_notices[ $slug ]['start'] : $current_date );
|
80 |
-
|
81 |
-
$
|
82 |
-
|
|
|
|
|
|
|
|
|
83 |
$date_array[1] += $interval;
|
84 |
$start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
|
85 |
|
86 |
// This is the main notices storage option
|
87 |
$admin_notices_option = get_option( 'ecwd_admin_notice', array() );
|
|
|
88 |
// Check if the message is already stored and if so just grab the key otherwise store the message and its associated date information
|
89 |
if ( ! array_key_exists( $slug, $admin_notices_option ) ) {
|
90 |
$admin_notices_option[ $slug ]['start'] = $start;
|
@@ -94,7 +104,7 @@ class ECWD_Notices {
|
|
94 |
|
95 |
// Sanity check to ensure we have accurate information
|
96 |
// New date information will not overwrite old date information
|
97 |
-
$admin_display_check
|
98 |
|
99 |
$admin_display_start = ( isset( $admin_notices_option[ $slug ]['start'] ) ? $admin_notices_option[ $slug ]['start'] : $start );
|
100 |
$admin_display_interval = ( isset( $admin_notices_option[ $slug ]['int'] ) ? $admin_notices_option[ $slug ]['int'] : $interval );
|
@@ -102,33 +112,42 @@ class ECWD_Notices {
|
|
102 |
$admin_display_title = ( isset( $admin_notices[ $slug ]['title'] ) ? $admin_notices[ $slug ]['title'] : '' );
|
103 |
$admin_display_link = ( isset( $admin_notices[ $slug ]['link'] ) ? $admin_notices[ $slug ]['link'] : '' );
|
104 |
$output_css = false;
|
105 |
-
|
106 |
// Ensure the notice hasn't been hidden and that the current date is after the start date
|
107 |
-
if ($admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date )) {
|
108 |
-
|
109 |
// Get remaining query string
|
110 |
-
$query_str = ( isset( $admin_notices[ $slug ]['later_link'] ) ? $admin_notices[ $slug ]['later_link'] : esc_url( add_query_arg( 'ecwd_admin_notice_ignore', $slug ) ));
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
' . $admin_display_link . '
|
123 |
</ul>';
|
124 |
-
|
125 |
-
|
|
|
|
|
126 |
|
127 |
$this->notice_spam += 1;
|
128 |
$output_css = true;
|
129 |
}
|
130 |
if ( $output_css ) {
|
131 |
-
wp_enqueue_style( 'ecwd-admin-notices', ECWD_URL .'/css/admin/notices.css?ecwd_ver=' . ECWD_VERSION );
|
132 |
}
|
133 |
}
|
134 |
}
|
@@ -150,7 +169,7 @@ class ECWD_Notices {
|
|
150 |
// If user clicks to ignore the notice, update the option to not show it again
|
151 |
if ( isset( $_GET['ecwd_admin_notice_ignore'] ) ) {
|
152 |
|
153 |
-
$admin_notices_option
|
154 |
$admin_notices_option[ $_GET['ecwd_admin_notice_ignore'] ]['dismissed'] = 1;
|
155 |
update_option( 'ecwd_admin_notice', $admin_notices_option );
|
156 |
$query_str = remove_query_arg( 'ecwd_admin_notice_ignore' );
|
43 |
|
44 |
$ecwd_settings = get_option( 'ecwd_admin_notice' );
|
45 |
if ( ! isset( $ecwd_settings['disable_admin_notices'] ) || ( isset( $ecwd_settings['disable_admin_notices'] ) && $ecwd_settings['disable_admin_notices'] == 0 ) ) {
|
46 |
+
if ( current_user_can( 'manage_options' ) ) {
|
47 |
return true;
|
48 |
}
|
49 |
}
|
57 |
|
58 |
// Check options
|
59 |
if ( ! $this->ecwd_admin_notice() ) {
|
60 |
+
|
61 |
return false;
|
62 |
}
|
63 |
|
64 |
foreach ( $admin_notices as $slug => $admin_notice ) {
|
65 |
+
|
66 |
// Call for spam protection
|
67 |
if ( $this->anti_notice_spam() ) {
|
68 |
+
|
69 |
return false;
|
70 |
}
|
71 |
|
75 |
return false;
|
76 |
}
|
77 |
}
|
78 |
+
|
79 |
// Check for required fields
|
80 |
if ( ! $this->required_fields( $admin_notices[ $slug ] ) ) {
|
81 |
+
|
82 |
// Get the current date then set start date to either passed value or current date value and add interval
|
83 |
$current_date = current_time( "n/j/Y" );
|
84 |
$start = ( isset( $admin_notices[ $slug ]['start'] ) ? $admin_notices[ $slug ]['start'] : $current_date );
|
85 |
+
|
86 |
+
$start = date( "n/j/Y", strtotime( $start ) );
|
87 |
+
|
88 |
+
$end = ( isset( $admin_notices[ $slug ]['end'] ) ? $admin_notices[ $slug ]['end'] : $start );
|
89 |
+
$end = date( "n/j/Y", strtotime( $end ) );
|
90 |
+
$date_array = explode( '/', $start );
|
91 |
+
$interval = ( isset( $admin_notices[ $slug ]['int'] ) ? $admin_notices[ $slug ]['int'] : 0 );
|
92 |
$date_array[1] += $interval;
|
93 |
$start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
|
94 |
|
95 |
// This is the main notices storage option
|
96 |
$admin_notices_option = get_option( 'ecwd_admin_notice', array() );
|
97 |
+
|
98 |
// Check if the message is already stored and if so just grab the key otherwise store the message and its associated date information
|
99 |
if ( ! array_key_exists( $slug, $admin_notices_option ) ) {
|
100 |
$admin_notices_option[ $slug ]['start'] = $start;
|
104 |
|
105 |
// Sanity check to ensure we have accurate information
|
106 |
// New date information will not overwrite old date information
|
107 |
+
$admin_display_check = ( isset( $admin_notices_option[ $slug ]['dismissed'] ) ? $admin_notices_option[ $slug ]['dismissed'] : 0 );
|
108 |
|
109 |
$admin_display_start = ( isset( $admin_notices_option[ $slug ]['start'] ) ? $admin_notices_option[ $slug ]['start'] : $start );
|
110 |
$admin_display_interval = ( isset( $admin_notices_option[ $slug ]['int'] ) ? $admin_notices_option[ $slug ]['int'] : $interval );
|
112 |
$admin_display_title = ( isset( $admin_notices[ $slug ]['title'] ) ? $admin_notices[ $slug ]['title'] : '' );
|
113 |
$admin_display_link = ( isset( $admin_notices[ $slug ]['link'] ) ? $admin_notices[ $slug ]['link'] : '' );
|
114 |
$output_css = false;
|
|
|
115 |
// Ensure the notice hasn't been hidden and that the current date is after the start date
|
116 |
+
if ( $admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date ) ) {
|
|
|
117 |
// Get remaining query string
|
118 |
+
$query_str = ( isset( $admin_notices[ $slug ]['later_link'] ) ? $admin_notices[ $slug ]['later_link'] : esc_url( add_query_arg( 'ecwd_admin_notice_ignore', $slug ) ) );
|
119 |
+
if ( strpos( 'promo', $slug ) !== false ) {
|
120 |
+
// Admin notice display output
|
121 |
+
echo '<div class="update-nag ecwd-admin-notice">';
|
122 |
+
echo '<div class="ecwd-notice-logo"></div>';
|
123 |
+
echo ' <p class="ecwd-notice-title">';
|
124 |
+
echo $admin_display_title;
|
125 |
+
echo ' </p>';
|
126 |
+
echo ' <p class="ecwd-notice-body">';
|
127 |
+
echo $admin_display_msg;
|
128 |
+
echo ' </p>';
|
129 |
+
echo '<ul class="ecwd-notice-body ecwd-blue">
|
130 |
+
' . $admin_display_link . '
|
131 |
+
</ul>';
|
132 |
+
echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>';
|
133 |
+
echo '</div>';
|
134 |
+
} else {
|
135 |
+
if ( strtotime( $end ) >= strtotime( $current_date ) ) {
|
136 |
+
echo '<div class=" ecwd-admin-notice-promo">';
|
137 |
+
echo $admin_display_msg;
|
138 |
+
echo '<ul class="ecwd-notice-body-promo ecwd-blue">
|
139 |
' . $admin_display_link . '
|
140 |
</ul>';
|
141 |
+
echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss ecwd-close-promo"></a>';
|
142 |
+
echo '</div>';
|
143 |
+
}
|
144 |
+
}
|
145 |
|
146 |
$this->notice_spam += 1;
|
147 |
$output_css = true;
|
148 |
}
|
149 |
if ( $output_css ) {
|
150 |
+
wp_enqueue_style( 'ecwd-admin-notices', ECWD_URL . '/css/admin/notices.css?ecwd_ver=' . ECWD_VERSION );
|
151 |
}
|
152 |
}
|
153 |
}
|
169 |
// If user clicks to ignore the notice, update the option to not show it again
|
170 |
if ( isset( $_GET['ecwd_admin_notice_ignore'] ) ) {
|
171 |
|
172 |
+
$admin_notices_option = get_option( 'ecwd_admin_notice', array() );
|
173 |
$admin_notices_option[ $_GET['ecwd_admin_notice_ignore'] ]['dismissed'] = 1;
|
174 |
update_option( 'ecwd_admin_notice', $admin_notices_option );
|
175 |
$query_str = remove_query_arg( 'ecwd_admin_notice_ignore' );
|
includes/notices.php
CHANGED
@@ -13,6 +13,17 @@ function ecwd_admin_notices( $notices ) {
|
|
13 |
|
14 |
$two_week_review_ignore = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'two_week_review' ) );
|
15 |
$two_week_review_temp = add_query_arg( array( 'ecwd_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
$notices['two_week_review'] = array(
|
17 |
'title' => __( 'Leave A Review?', 'ecwd' ),
|
18 |
'msg' => __( 'We hope you\'ve enjoyed using Event Calendar WD! Would you consider leaving us a review on WordPress.org?', 'ecwd' ),
|
@@ -25,7 +36,7 @@ function ecwd_admin_notices( $notices ) {
|
|
25 |
'int' => 14
|
26 |
);
|
27 |
|
28 |
-
|
29 |
$notices['one_week_support'] = array(
|
30 |
'title' => __( 'Hey! How\'s It Going?', 'ecwd' ),
|
31 |
'msg' => __( 'Thank you for using Events Calendar WD! We hope that you\'ve found everything you need, but if you have any questions:', 'ecwd' ),
|
13 |
|
14 |
$two_week_review_ignore = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'two_week_review' ) );
|
15 |
$two_week_review_temp = add_query_arg( array( 'ecwd_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
|
16 |
+
$one_week_support = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'one_week_support' ) );
|
17 |
+
$promo_close = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'ecwd_new_year_promo' ) );
|
18 |
+
$notices['ecwd_new_year_promo'] = array(
|
19 |
+
'title' => __( 'Hey! How\'s It Going?', 'ecwd' ),
|
20 |
+
'msg' => '<div class="ecwd_hny"><a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html?source=promo" target="_blank"></a></div>',
|
21 |
+
'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __( 'Never show again' ,'ecwd' ) . '</a></li>',
|
22 |
+
'start' => '2015-12-31',
|
23 |
+
'end' => '2016-01-01',
|
24 |
+
'int' => 0
|
25 |
+
);
|
26 |
+
|
27 |
$notices['two_week_review'] = array(
|
28 |
'title' => __( 'Leave A Review?', 'ecwd' ),
|
29 |
'msg' => __( 'We hope you\'ve enjoyed using Event Calendar WD! Would you consider leaving us a review on WordPress.org?', 'ecwd' ),
|
36 |
'int' => 14
|
37 |
);
|
38 |
|
39 |
+
|
40 |
$notices['one_week_support'] = array(
|
41 |
'title' => __( 'Hey! How\'s It Going?', 'ecwd' ),
|
42 |
'msg' => __( 'Thank you for using Events Calendar WD! We hope that you\'ve found everything you need, but if you have any questions:', 'ecwd' ),
|
js/scripts.js
CHANGED
@@ -258,20 +258,8 @@ ecwd_js_init = function () {
|
|
258 |
function showFullCalendarEventOnHover() {
|
259 |
if (parseInt(jQuery(window).width()) >= 768) {
|
260 |
jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseover', function (e) {
|
261 |
-
|
262 |
-
|
263 |
-
jQuery(this).find('ul.events').show();
|
264 |
-
jQuery(this).find('div.event-details-container').show();
|
265 |
-
} else{
|
266 |
-
jQuery(this).find('ul.events').show();
|
267 |
-
jQuery(this).find('div.event-details-container').show();
|
268 |
-
jQuery(this).find('div.event-details-container').css({
|
269 |
-
left:"auto",
|
270 |
-
right:parseInt(jQuery(this).width())+25
|
271 |
-
});
|
272 |
-
jQuery(this).find('div.event-details-container .ecwd-event-arrow').css("display","none");
|
273 |
-
jQuery(this).find('div.event-details-container .ecwd-event-arrow-right').css("display","block");
|
274 |
-
}
|
275 |
});
|
276 |
|
277 |
jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseout', function (e) {
|
258 |
function showFullCalendarEventOnHover() {
|
259 |
if (parseInt(jQuery(window).width()) >= 768) {
|
260 |
jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseover', function (e) {
|
261 |
+
jQuery(this).find('ul.events').show();
|
262 |
+
jQuery(this).find('div.event-details-container').show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
});
|
264 |
|
265 |
jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseout', function (e) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
|
4 |
Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, facebook integration, widget
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -144,6 +144,13 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
= 1.0.40 =
|
148 |
* Added: New theme
|
149 |
|
4 |
Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, facebook integration, widget
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 1.0.42
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.0.42 =
|
148 |
+
* Fixed: Google structured data errors
|
149 |
+
* Changed: Event hover popup styles
|
150 |
+
|
151 |
+
= 1.0.41 =
|
152 |
+
* Added: New year promo notice
|
153 |
+
|
154 |
= 1.0.40 =
|
155 |
* Added: New theme
|
156 |
|
views/admin/ecwd-calendar-meta.php
CHANGED
@@ -102,6 +102,11 @@ $ecwd_calendar_default_theme_color = (isset($ecwd_calendar_theme) && $ecwd_calen
|
|
102 |
<select name="ecwd_calendar_theme">
|
103 |
<option value="<?php echo 'calendar'; ?>" <?php echo $ecwd_calendar_default_theme_color == "calendar" ? 'selected="selected"' : ''; ?> >Default Blue</option>
|
104 |
<option value="<?php echo 'calendar_grey'; ?>" <?php echo !isset($ecwd_calendar_theme) || $ecwd_calendar_default_theme_color == "calendar_grey" ? 'selected="selected"' : ''; ?> >Grey</option>
|
|
|
|
|
|
|
|
|
|
|
105 |
</select>
|
106 |
<p class="description">
|
107 |
<a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html" target="_blank"><?php _e('Upgrade to Pro for more themes.', 'ecwd'); ?></a>
|
102 |
<select name="ecwd_calendar_theme">
|
103 |
<option value="<?php echo 'calendar'; ?>" <?php echo $ecwd_calendar_default_theme_color == "calendar" ? 'selected="selected"' : ''; ?> >Default Blue</option>
|
104 |
<option value="<?php echo 'calendar_grey'; ?>" <?php echo !isset($ecwd_calendar_theme) || $ecwd_calendar_default_theme_color == "calendar_grey" ? 'selected="selected"' : ''; ?> >Grey</option>
|
105 |
+
<option disabled>Green (Jade)</option>
|
106 |
+
<option disabled>Greenish-Blue (Teal)</option>
|
107 |
+
<option disabled>Red (Crimson)</option>
|
108 |
+
<option disabled>Orange (Gamboge)</option>
|
109 |
+
<option disabled>Saddle Brown</option>
|
110 |
</select>
|
111 |
<p class="description">
|
112 |
<a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html" target="_blank"><?php _e('Upgrade to Pro for more themes.', 'ecwd'); ?></a>
|
views/ecwd-event-content.php
CHANGED
@@ -120,6 +120,7 @@ if ( is_array( $ecwd_event_organizers ) || is_object( $ecwd_event_organizers ) )
|
|
120 |
</div>
|
121 |
|
122 |
<?php } elseif ( $ecwd_event_location ) { ?>
|
|
|
123 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
124 |
<?php echo $ecwd_event_location; ?>
|
125 |
</div>
|
120 |
</div>
|
121 |
|
122 |
<?php } elseif ( $ecwd_event_location ) { ?>
|
123 |
+
<span class="ecwd_hidden" itemprop="name"><?php echo $ecwd_event_location; ?></span>
|
124 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
125 |
<?php echo $ecwd_event_location; ?>
|
126 |
</div>
|
views/ecwd-event-popup.php
CHANGED
@@ -197,6 +197,7 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
|
|
197 |
</div>
|
198 |
|
199 |
<?php } elseif ($ecwd_event_location) { ?>
|
|
|
200 |
<label class="ecwd-venue-info"
|
201 |
title="<?php _e('Location', 'ecwd'); ?>"></label>
|
202 |
<span class="address" itemprop="address" itemscope
|
@@ -204,7 +205,8 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
|
|
204 |
<?php echo $ecwd_event_location; ?>
|
205 |
</span>
|
206 |
<?php } ?>
|
207 |
-
</div>
|
|
|
208 |
</div>
|
209 |
</div>
|
210 |
<?php if ($ecwd_social_icons) {
|
@@ -354,6 +356,7 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
|
|
354 |
?>
|
355 |
</div>
|
356 |
<?php } ?>
|
|
|
357 |
</div>
|
358 |
</div>
|
359 |
</div>
|
197 |
</div>
|
198 |
|
199 |
<?php } elseif ($ecwd_event_location) { ?>
|
200 |
+
<span class="ecwd_hidden" itemprop="name"><?php echo $ecwd_event_location; ?></span>
|
201 |
<label class="ecwd-venue-info"
|
202 |
title="<?php _e('Location', 'ecwd'); ?>"></label>
|
203 |
<span class="address" itemprop="address" itemscope
|
205 |
<?php echo $ecwd_event_location; ?>
|
206 |
</span>
|
207 |
<?php } ?>
|
208 |
+
</div>
|
209 |
+
<?php do_action('ecwd_view_ext',$post_id); ?>
|
210 |
</div>
|
211 |
</div>
|
212 |
<?php if ($ecwd_social_icons) {
|
356 |
?>
|
357 |
</div>
|
358 |
<?php } ?>
|
359 |
+
<?php do_action('ecwd_tickets_events_single_meta', '', $ecwd_event_date_to,$post_id); ?>
|
360 |
</div>
|
361 |
</div>
|
362 |
</div>
|
views/single-event.php
CHANGED
@@ -146,7 +146,7 @@ get_header();
|
|
146 |
<article>
|
147 |
<div class="ecwd-event" itemscope itemtype="http://schema.org/Event">
|
148 |
<header class="entry-header">
|
149 |
-
|
150 |
</header>
|
151 |
<?php if ( isset( $_SERVER['HTTP_REFERER'] ) && $_SERVER['HTTP_REFERER'] ) {
|
152 |
if ( parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_HOST ) == parse_url( site_url(), PHP_URL_HOST ) ) {?>
|
@@ -231,6 +231,7 @@ get_header();
|
|
231 |
</div>
|
232 |
|
233 |
<?php } elseif ($ecwd_event_location) { ?>
|
|
|
234 |
<label class="ecwd-venue-info"
|
235 |
title="<?php _e('Location', 'ecwd'); ?>"></label>
|
236 |
<span class="address" itemprop="address" itemscope
|
146 |
<article>
|
147 |
<div class="ecwd-event" itemscope itemtype="http://schema.org/Event">
|
148 |
<header class="entry-header">
|
149 |
+
<?php the_title( '<h1 itemprop="name" class="ecwd-events-single-event-title summary entry-title" ' . $event_title_style . '>', '</h1>' ); ?>
|
150 |
</header>
|
151 |
<?php if ( isset( $_SERVER['HTTP_REFERER'] ) && $_SERVER['HTTP_REFERER'] ) {
|
152 |
if ( parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_HOST ) == parse_url( site_url(), PHP_URL_HOST ) ) {?>
|
231 |
</div>
|
232 |
|
233 |
<?php } elseif ($ecwd_event_location) { ?>
|
234 |
+
<span class="ecwd_hidden" itemprop="name"><?php echo $ecwd_event_location; ?></span>
|
235 |
<label class="ecwd-venue-info"
|
236 |
title="<?php _e('Location', 'ecwd'); ?>"></label>
|
237 |
<span class="address" itemprop="address" itemscope
|