Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.41

Version Description

  • Added: New year promo notice
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.0.41
Comparing to
See all releases

Code changes from version 1.0.40 to 1.0.41

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/images/featured/arrow3.png ADDED
Binary file
css/images/featured/minus.png ADDED
Binary file
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.40
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.41
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
ecwd_class.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
  class ECWD {
8
 
9
- protected $version = '1.0.40';
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.41';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
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( 'manage_options' ) ) {
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
- $start = date( "n/j/Y", strtotime( $start ) );
81
- $date_array = explode( '/', $start );
82
- $interval = ( isset( $admin_notices[ $slug ]['int'] ) ? $admin_notices[ $slug ]['int'] : 0 );
 
 
 
 
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 = ( isset( $admin_notices_option[ $slug ]['dismissed'] ) ? $admin_notices_option[ $slug ]['dismissed'] : 0 );
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
- // Admin notice display output
113
- echo '<div class="update-nag ecwd-admin-notice">';
114
- echo '<div class="ecwd-notice-logo"></div>';
115
- echo ' <p class="ecwd-notice-title">';
116
- echo $admin_display_title;
117
- echo ' </p>';
118
- echo ' <p class="ecwd-notice-body">';
119
- echo $admin_display_msg;
120
- echo ' </p>';
121
- echo '<ul class="ecwd-notice-body ecwd-blue">
 
 
 
 
 
 
 
 
 
122
  ' . $admin_display_link . '
123
  </ul>';
124
- echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>';
125
- echo '</div>';
 
 
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 = get_option( 'ecwd_admin_notice', array() );
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( $slug, 'promo' ) === 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
- $one_week_support = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'one_week_support' ) );
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' ),
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.40
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -144,6 +144,9 @@ 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.41
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.41 =
148
+ * Added: New year promo notice
149
+
150
  = 1.0.40 =
151
  * Added: New theme
152