Slider by WD – Responsive Slider - Version 1.1.11

Version Description

  • Added: New year promo notice
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Slider by WD – Responsive Slider
Version 1.1.11
Comparing to
See all releases

Code changes from version 1.1.10 to 1.1.11

Files changed (5) hide show
  1. css/notices.css +35 -0
  2. images/wdhny.jpg +0 -0
  3. readme.txt +4 -1
  4. slider-wd.php +2 -2
  5. sliders-notices.php +35 -9
css/notices.css CHANGED
@@ -51,4 +51,39 @@
51
  }
52
  .wd-blue {
53
  color: #10738B;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
51
  }
52
  .wd-blue {
53
  color: #10738B;
54
+ }
55
+
56
+ .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
+
66
+ .admin-notice-promo:after {
67
+ content: '';
68
+ display: table;
69
+ clear: both;
70
+ }
71
+
72
+ .close-promo {
73
+ position: absolute;
74
+ top: 5px;
75
+ right: 5px;
76
+ }
77
+
78
+ .hny {
79
+ background-position: center;
80
+ background-repeat: no-repeat;
81
+ background-size: 800px 200px;
82
+ height: 200px;
83
+ max-width: 100%;
84
+ }
85
+
86
+ .hny a {
87
+ display: block;
88
+ height: 100%;
89
  }
images/wdhny.jpg ADDED
Binary file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider, mp3, video, embed media, hotspot
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.1.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,9 @@ After downloading the ZIP file of the slider plugin,
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 1.1.10 =
163
  * Fixed: Filemanager vulnerability. Thanks to Mika Epstein.
164
 
4
  Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider, mp3, video, embed media, hotspot
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.1.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 1.1.11 =
163
+ * Added: New year promo notice
164
+
165
  = 1.1.10 =
166
  * Fixed: Filemanager vulnerability. Thanks to Mika Epstein.
167
 
slider-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Slider WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
6
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
7
- * Version: 1.1.10
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -427,7 +427,7 @@ register_activation_hook(__FILE__, 'wds_activate');
427
 
428
  function wds_install() {
429
  $version = get_option("wds_version");
430
- $new_version = '1.1.10';
431
  if ($version && version_compare($version, $new_version, '<')) {
432
  require_once WD_S_DIR . "/sliders-update.php";
433
  wds_update($version);
4
  * Plugin Name: Slider WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
6
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
7
+ * Version: 1.1.11
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
427
 
428
  function wds_install() {
429
  $version = get_option("wds_version");
430
+ $new_version = '1.1.11';
431
  if ($version && version_compare($version, $new_version, '<')) {
432
  require_once WD_S_DIR . "/sliders-update.php";
433
  wds_update($version);
sliders-notices.php CHANGED
@@ -8,6 +8,7 @@ class WDS_Notices {
8
  protected $plugin_url = WD_S_URL;
9
  protected $plugin_version = "wds_version";
10
  protected $plugin_name = 'Slider WD';
 
11
 
12
  public $notice_spam = 0;
13
  public $notice_spam_max = 1;
@@ -57,6 +58,8 @@ class WDS_Notices {
57
  $current_date = current_time("n/j/Y");
58
  $start = (isset($admin_notices[$slug]['start']) ? $admin_notices[$slug]['start'] : $current_date);
59
  $start = date("n/j/Y", strtotime($start));
 
 
60
  $date_array = explode('/', $start);
61
  $interval = (isset($admin_notices[$slug]['int']) ? $admin_notices[$slug]['int'] : 0);
62
  $date_array[1] += $interval;
@@ -79,19 +82,32 @@ class WDS_Notices {
79
  $admin_display_msg = (isset($admin_notices[$slug]['msg']) ? $admin_notices[$slug]['msg'] : '');
80
  $admin_display_title = (isset($admin_notices[$slug]['title']) ? $admin_notices[$slug]['title'] : '');
81
  $admin_display_link = (isset($admin_notices[$slug]['link']) ? $admin_notices[$slug]['link'] : '');
82
- $output_css = false;
83
  // Ensure the notice hasn't been hidden and that the current date is after the start date
84
  if ($admin_display_check == 0 && strtotime($admin_display_start) <= strtotime($current_date)) {
85
  // Get remaining query string
86
  $query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg($this->prefix . '_admin_notice_ignore', $slug)));
87
- // Admin notice display output
88
- echo '<div class="update-nag wd-admin-notice">
89
- <div class="' . $this->prefix . '-notice-logo"></div>
90
- <p class="wd-notice-title">' . $admin_display_title . '</p>
91
- <p class="wd-notice-body">' . $admin_display_msg . '</p>
92
- <ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
93
- <a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
94
- </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  $this->notice_spam += 1;
96
  $output_css = true;
97
  }
@@ -184,6 +200,16 @@ class WDS_Notices {
184
  public function wd_admin_notices() {
185
  $two_week_review_ignore = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'two_week_review'));
186
  $two_week_review_temp = add_query_arg(array($this->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14));
 
 
 
 
 
 
 
 
 
 
187
  $notices['two_week_review'] = array(
188
  'title' => __('Leave A Review?', $this->prefix),
189
  'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $this->prefix), $this->plugin_name),
8
  protected $plugin_url = WD_S_URL;
9
  protected $plugin_version = "wds_version";
10
  protected $plugin_name = 'Slider WD';
11
+ protected $promo_link = 'https://web-dorado.com/products/wordpress-slider-plugin.html?source=promo';
12
 
13
  public $notice_spam = 0;
14
  public $notice_spam_max = 1;
58
  $current_date = current_time("n/j/Y");
59
  $start = (isset($admin_notices[$slug]['start']) ? $admin_notices[$slug]['start'] : $current_date);
60
  $start = date("n/j/Y", strtotime($start));
61
+ $end = (isset($admin_notices[$slug]['end']) ? $admin_notices[$slug]['end'] : $start);
62
+ $end = date("n/j/Y", strtotime($end));
63
  $date_array = explode('/', $start);
64
  $interval = (isset($admin_notices[$slug]['int']) ? $admin_notices[$slug]['int'] : 0);
65
  $date_array[1] += $interval;
82
  $admin_display_msg = (isset($admin_notices[$slug]['msg']) ? $admin_notices[$slug]['msg'] : '');
83
  $admin_display_title = (isset($admin_notices[$slug]['title']) ? $admin_notices[$slug]['title'] : '');
84
  $admin_display_link = (isset($admin_notices[$slug]['link']) ? $admin_notices[$slug]['link'] : '');
85
+ $output_css = FALSE;
86
  // Ensure the notice hasn't been hidden and that the current date is after the start date
87
  if ($admin_display_check == 0 && strtotime($admin_display_start) <= strtotime($current_date)) {
88
  // Get remaining query string
89
  $query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg($this->prefix . '_admin_notice_ignore', $slug)));
90
+ if (strpos($slug, 'promo') === FALSE) {
91
+ // Admin notice display output
92
+ echo '<div class="update-nag wd-admin-notice">
93
+ <div class="' . $this->prefix . '-notice-logo"></div>
94
+ <p class="wd-notice-title">' . $admin_display_title . '</p>
95
+ <p class="wd-notice-body">' . $admin_display_msg . '</p>
96
+ <ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
97
+ <a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
98
+ </div>';
99
+ }
100
+ else {
101
+ if (strtotime($end) >= strtotime($current_date)) {
102
+ echo '<div class="admin-notice-promo">';
103
+ echo $admin_display_msg;
104
+ echo '<ul class="notice-body-promo blue">
105
+ ' . $admin_display_link . '
106
+ </ul>';
107
+ echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss close-promo"></a>';
108
+ echo '</div>';
109
+ }
110
+ }
111
  $this->notice_spam += 1;
112
  $output_css = true;
113
  }
200
  public function wd_admin_notices() {
201
  $two_week_review_ignore = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'two_week_review'));
202
  $two_week_review_temp = add_query_arg(array($this->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14));
203
+ $one_week_support = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'one_week_support'));
204
+ $promo_close = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'new_year_promo'));
205
+ $notices['new_year_promo'] = array(
206
+ 'title' => __('Hey! How\'s It Going?', $this->prefix),
207
+ 'msg' => '<div class="hny" style="background-image: url(' . $this->plugin_url . '/images/wdhny.jpg);"><a href="' . $this->promo_link . '" target="_blank"></a></div>',
208
+ 'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __('Never show again', $this->prefix) . '</a></li>',
209
+ 'start' => '2015-12-31',
210
+ 'end' => '2016-01-01',
211
+ 'int' => 0
212
+ );
213
  $notices['two_week_review'] = array(
214
  'title' => __('Leave A Review?', $this->prefix),
215
  'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $this->prefix), $this->plugin_name),