Calendar by WD – Responsive Event Calendar - Version 1.4.30

Version Description

New: New year promo

Download this release

Release Info

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

Code changes from version 1.4.29 to 1.4.30

calendar.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: Spider Event Calendar
4
  Plugin URI: https://web-dorado.com/products/wordpress-calendar.html
5
  Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
6
- Version: 1.4.29
7
  Author: https://web-dorado.com/
8
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
- $wd_spider_calendar_version="1.4.29";
11
  // LANGUAGE localization.
12
  function sp_calendar_language_load() {
13
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
3
  Plugin Name: Spider Event Calendar
4
  Plugin URI: https://web-dorado.com/products/wordpress-calendar.html
5
  Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
6
+ Version: 1.4.30
7
  Author: https://web-dorado.com/
8
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
+ $wd_spider_calendar_version="1.4.30";
11
  // LANGUAGE localization.
12
  function sp_calendar_language_load() {
13
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
images/wdhny.jpg ADDED
Binary file
notices.php CHANGED
@@ -5,6 +5,16 @@ if ( ! defined( 'ABSPATH' ) ) exit;
5
  function sc_admin_notices( $notices ) {
6
  $two_week_review_ignore = add_query_arg( array( 'sc_admin_notice_ignore' => 'two_week_review' ) );
7
  $two_week_review_temp = add_query_arg( array( 'sc_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
 
 
 
 
 
 
 
 
 
 
8
  $notices['two_week_review'] = array(
9
  'title' => __( 'Leave A Review?', 'sc_admin_notice' ),
10
  'msg' => __( 'We hope you\'ve enjoyed using WordPress Spider Calendar! Would you consider leaving us a review on WordPress.org?', 'sc_admin_notice' ),
@@ -14,9 +24,7 @@ function sc_admin_notices( $notices ) {
14
  <li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __( 'Never show again' ,'sc_admin_notice' ) . '</a></li>',
15
  'later_link' => $two_week_review_temp,
16
  'int' => 14
17
- );
18
-
19
- $one_week_support = add_query_arg( array( 'sc_admin_notice_ignore' => 'one_week_support' ) );
20
  $notices['one_week_support'] = array(
21
  'title' => __( 'Hey! How\'s It Going?', 'spider-event-calendar' ),
22
  'msg' => __( 'Thank you for using WordPress Spider Calendar! We hope that you\'ve found everything you need, but if you have any questions:', 'spider-event-calendar' ),
5
  function sc_admin_notices( $notices ) {
6
  $two_week_review_ignore = add_query_arg( array( 'sc_admin_notice_ignore' => 'two_week_review' ) );
7
  $two_week_review_temp = add_query_arg( array( 'sc_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
8
+ $one_week_support = add_query_arg( array( 'sc_admin_notice_ignore' => 'one_week_support' ) );
9
+ $promo_close = add_query_arg( array( 'sc_admin_notice_ignore' => 'sc_new_year_promo' ) );
10
+ $notices['sc_new_year_promo'] = array(
11
+ 'title' => __( 'Hey! How\'s It Going?', 'sc_admin_notice' ),
12
+ 'msg' => '<div class="sc_hny"><a href="https://web-dorado.com/products/wordpress-calendar.html?source=promo" target="_blank"></a></div>',
13
+ 'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __( 'Never show again' ,'sc_admin_notice' ) . '</a></li>',
14
+ 'start' => '2015-12-31',
15
+ 'end' => '2016-01-01',
16
+ 'int' => 0
17
+ );
18
  $notices['two_week_review'] = array(
19
  'title' => __( 'Leave A Review?', 'sc_admin_notice' ),
20
  'msg' => __( 'We hope you\'ve enjoyed using WordPress Spider Calendar! Would you consider leaving us a review on WordPress.org?', 'sc_admin_notice' ),
24
  <li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __( 'Never show again' ,'sc_admin_notice' ) . '</a></li>',
25
  'later_link' => $two_week_review_temp,
26
  'int' => 14
27
+ );
 
 
28
  $notices['one_week_support'] = array(
29
  'title' => __( 'Hey! How\'s It Going?', 'spider-event-calendar' ),
30
  'msg' => __( 'Thank you for using WordPress Spider Calendar! We hope that you\'ve found everything you need, but if you have any questions:', 'spider-event-calendar' ),
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-calendar.html
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,o nline calendar, 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, reservation
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.4.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -142,6 +142,9 @@ Vietnamese (vi)
142
 
143
  == Changelog ==
144
 
 
 
 
145
  = 1.4.29 =
146
  Changed: Notices order
147
 
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,o nline calendar, 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, reservation
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.4.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
142
 
143
  == Changelog ==
144
 
145
+ = 1.4.30 =
146
+ New: New year promo
147
+
148
  = 1.4.29 =
149
  Changed: Notices order
150
 
spider_calendar_admin_class.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class SC_Admin {
4
  public static $instance = null;
5
- protected $version = '1.4.29';
6
  public $prefix = "sc_";
7
  protected $notices = null;
8
  public static function get_instance() {
2
 
3
  class SC_Admin {
4
  public static $instance = null;
5
+ protected $version = '1.4.30';
6
  public $prefix = "sc_";
7
  protected $notices = null;
8
  public static function get_instance() {
spider_calendar_notices_class.php CHANGED
@@ -71,9 +71,12 @@ class SC_Notices {
71
  // Get the current date then set start date to either passed value or current date value and add interval
72
  $current_date = current_time( "n/j/Y" );
73
  $start = ( isset( $admin_notices[ $slug ]['start'] ) ? $admin_notices[ $slug ]['start'] : $current_date );
74
- $start = date( "n/j/Y", strtotime( $start ) );
75
- $date_array = explode( '/', $start );
76
- $interval = ( isset( $admin_notices[ $slug ]['int'] ) ? $admin_notices[ $slug ]['int'] : 0 );
 
 
 
77
  $date_array[1] += $interval;
78
  $start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
79
 
@@ -97,24 +100,35 @@ class SC_Notices {
97
  $admin_display_link = ( isset( $admin_notices[ $slug ]['link'] ) ? $admin_notices[ $slug ]['link'] : '' );
98
  $output_css = false;
99
  // Ensure the notice hasn't been hidden and that the current date is after the start date
100
- if ($admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date )) {
101
-
102
  // Get remaining query string
103
- $query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg('sc_admin_notice_ignore', $slug)));
104
- // Admin notice display output
105
- echo '<div class="update-nag sc-admin-notice">';
106
- echo '<div class="sc-notice-logo"></div>';
107
- echo ' <p class="sc-notice-title">';
108
- echo $admin_display_title;
109
- echo ' </p>';
110
- echo ' <p class="sc-notice-body">';
111
- echo $admin_display_msg;
112
- echo ' </p>';
113
- echo '<ul class="sc-notice-body sc-blue">
 
 
 
 
 
 
 
 
 
 
114
  ' . $admin_display_link . '
115
  </ul>';
116
- echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>';
117
- echo '</div>';
 
 
118
 
119
  $this->notice_spam += 1;
120
  $output_css = true;
71
  // Get the current date then set start date to either passed value or current date value and add interval
72
  $current_date = current_time( "n/j/Y" );
73
  $start = ( isset( $admin_notices[ $slug ]['start'] ) ? $admin_notices[ $slug ]['start'] : $current_date );
74
+ $start = date( "n/j/Y", strtotime( $start ) );
75
+ $end = ( isset( $admin_notices[ $slug ]['end'] ) ? $admin_notices[ $slug ]['end'] : $start );
76
+ $end = date( "n/j/Y", strtotime( $end ) );
77
+ $date_array = explode( '/', $start );
78
+ $interval = ( isset( $admin_notices[ $slug ]['int'] ) ? $admin_notices[ $slug ]['int'] : 0 );
79
+
80
  $date_array[1] += $interval;
81
  $start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
82
 
100
  $admin_display_link = ( isset( $admin_notices[ $slug ]['link'] ) ? $admin_notices[ $slug ]['link'] : '' );
101
  $output_css = false;
102
  // Ensure the notice hasn't been hidden and that the current date is after the start date
103
+ if ( $admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date ) ) {
 
104
  // Get remaining query string
105
+ $query_str = ( isset( $admin_notices[ $slug ]['later_link'] ) ? $admin_notices[ $slug ]['later_link'] : esc_url( add_query_arg( 'sc_admin_notice_ignore', $slug ) ) );
106
+ if ( strpos( $slug, 'promo' ) === false ) {
107
+ // Admin notice display output
108
+ echo '<div class="update-nag sc-admin-notice">';
109
+ echo '<div class="sc-notice-logo"></div>';
110
+ echo ' <p class="sc-notice-title">';
111
+ echo $admin_display_title;
112
+ echo ' </p>';
113
+ echo ' <p class="sc-notice-body">';
114
+ echo $admin_display_msg;
115
+ echo ' </p>';
116
+ echo '<ul class="sc-notice-body sc-blue">
117
+ ' . $admin_display_link . '
118
+ </ul>';
119
+ echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>';
120
+ echo '</div>';
121
+ } else {
122
+ if ( strtotime( $end ) >= strtotime( $current_date ) ) {
123
+ echo '<div class=" sc-admin-notice-promo">';
124
+ echo $admin_display_msg;
125
+ echo '<ul class="sc-notice-body-promo sc-blue">
126
  ' . $admin_display_link . '
127
  </ul>';
128
+ echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss sc-close-promo"></a>';
129
+ echo '</div>';
130
+ }
131
+ }
132
 
133
  $this->notice_spam += 1;
134
  $output_css = true;
style_for_cal/notices.css CHANGED
@@ -51,4 +51,37 @@
51
  }
52
  .sc-blue {
53
  color: #10738B;
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  }
52
  .sc-blue {
53
  color: #10738B;
54
+ }
55
+
56
+ .sc-admin-notice-promo {
57
+ background: #fff;
58
+ border-top: 4px;
59
+ display: block;
60
+ min-height: 68px;
61
+ padding: 10px 40px 0px 10px;
62
+ margin: 10px 0;
63
+ position: relative;
64
+ }
65
+ .sc-admin-notice-promo:after{
66
+ content: '';
67
+ display: table;
68
+ clear: both;
69
+ }
70
+
71
+ .sc-close-promo{
72
+ position: absolute;
73
+ top: 5px;
74
+ right: 5px;
75
+ }
76
+
77
+ .sc_hny{
78
+ background: url("../images/wdhny.jpg") no-repeat;
79
+ background-position: center;
80
+ background-size: 800px 200px;
81
+ height: 200px;
82
+ max-width: 100%;
83
+ }
84
+ .sc_hny a{
85
+ display: block;
86
+ height: 100%;
87
+ }