Slider by WD – Responsive Slider - Version 1.1.87

Version Description

  • Fixed: Updated library to prevent conflict with PHP version 7.
Download this release

Release Info

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

Code changes from version 1.1.86 to 1.1.87

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
- Stable tag: 1.1.86
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -129,6 +129,9 @@ After downloading the ZIP file of the slider plugin,
129
 
130
  == Changelog ==
131
 
 
 
 
132
  = 1.1.86 =
133
  * Improved: Audio file validation.
134
 
4
  Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
+ Stable tag: 1.1.87
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
129
 
130
  == Changelog ==
131
 
132
+ = 1.1.87 =
133
+ * Fixed: Updated library to prevent conflict with PHP version 7.
134
+
135
  = 1.1.86 =
136
  * Improved: Audio file validation.
137
 
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.86
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -14,7 +14,7 @@ define('WD_S_NAME', plugin_basename(dirname(__FILE__)));
14
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
15
  define('WD_S_URL', plugins_url(WD_S_NAME));
16
 
17
- define('WD_S_VERSION', '1.1.86');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
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.87
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
14
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
15
  define('WD_S_URL', plugins_url(WD_S_NAME));
16
 
17
+ define('WD_S_VERSION', '1.1.87');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
wd/README.md CHANGED
@@ -1,4 +1,5 @@
1
- Version: 1.0.5
 
2
 
3
 
4
  Usage:
1
+ Version: 1.0.10
2
+
3
 
4
 
5
  Usage:
wd/assets/css/deactivate_popup.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .wd-opacity{
2
  position: fixed;
3
  top: 0px;
1
+ .wd-bwg-reasons:nth-child(3) {
2
+ display: none;
3
+ }
4
+
5
  .wd-opacity{
6
  position: fixed;
7
  top: 0px;
wd/assets/img/{fwd_main_plugin.png → fm_main_plugin.png} RENAMED
File without changes
wd/assets/js/deactivate_popup.js CHANGED
@@ -95,6 +95,7 @@ function wdReady(prefix){
95
  });
96
 
97
  }
 
98
  ////////////////////////////////////////////////////////////////////////////////////////
99
  // Getters & Setters //
100
  ////////////////////////////////////////////////////////////////////////////////////////
95
  });
96
 
97
  }
98
+
99
  ////////////////////////////////////////////////////////////////////////////////////////
100
  // Getters & Setters //
101
  ////////////////////////////////////////////////////////////////////////////////////////
wd/includes/api.php CHANGED
@@ -55,7 +55,7 @@
55
  public function get_hash(){
56
  $response = wp_remote_get("https://api.web-dorado.com/hash/" . $_SERVER['REMOTE_ADDR'] . "/" . $_SERVER['HTTP_HOST']);
57
 
58
- $response_body = isset($response["body"]) ? json_decode($response["body"], true) : null;
59
 
60
  if(is_array($response_body)){
61
  $hash = $response_body["body"]["hash"];
55
  public function get_hash(){
56
  $response = wp_remote_get("https://api.web-dorado.com/hash/" . $_SERVER['REMOTE_ADDR'] . "/" . $_SERVER['HTTP_HOST']);
57
 
58
+ $response_body = ( !is_wp_error($response) && isset($response["body"])) ? json_decode($response["body"], true) : null;
59
 
60
  if(is_array($response_body)){
61
  $hash = $response_body["body"]["hash"];
wd/includes/deactivate.php CHANGED
@@ -76,7 +76,18 @@
76
  });
77
  </script>
78
  <?php
79
- require ( $wd_options->wd_dir_templates . '/display_deactivation_popup.php' );
 
 
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
 
@@ -108,7 +119,7 @@
108
 
109
  $data["reason"] = isset($_POST[$wd_options->prefix . "_reasons"]) ? $_POST[$wd_options->prefix . "_reasons"] : "";
110
  $data["site_url"] = site_url();
111
- $data["plugin_slug"] = $wd_options->plugin_wordpress_slug;
112
 
113
  $data["additional_details"] = isset($_POST[$wd_options->prefix . "_additional_details"]) ? $_POST[$wd_options->prefix . "_additional_details"] : "";
114
  $admin_data = wp_get_current_user();
@@ -129,8 +140,8 @@
129
  'cookies' => array()
130
  )
131
  );
132
-
133
- $response_body = isset( $response["body"] ) ? json_decode( $response["body"], true ) : null;
134
  if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
135
 
136
  }
76
  });
77
  </script>
78
  <?php
79
+
80
+ $deactivate_url =
81
+ add_query_arg(
82
+ array(
83
+ 'action' => 'deactivate',
84
+ 'plugin' => plugin_basename( $wd_options->plugin_main_file ),
85
+ '_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
86
+ ),
87
+ admin_url( 'plugins.php' )
88
+ );
89
+
90
+ require ( $wd_options->wd_dir_templates . '/display_deactivation_popup.php' );
91
  }
92
 
93
 
119
 
120
  $data["reason"] = isset($_POST[$wd_options->prefix . "_reasons"]) ? $_POST[$wd_options->prefix . "_reasons"] : "";
121
  $data["site_url"] = site_url();
122
+ $data["plugin_id"] = $wd_options->wd_plugin_id;
123
 
124
  $data["additional_details"] = isset($_POST[$wd_options->prefix . "_additional_details"]) ? $_POST[$wd_options->prefix . "_additional_details"] : "";
125
  $admin_data = wp_get_current_user();
140
  'cookies' => array()
141
  )
142
  );
143
+
144
+ $response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
145
  if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
146
 
147
  }
wd/includes/overview.php CHANGED
@@ -120,7 +120,8 @@
120
  unset($plugins[$wd_options->plugin_wordpress_slug]) ;
121
 
122
  // foreach ( $plugins as $wp_slug => &$plugin ){
123
- // $wp_data = $this->remote_get($wp_slug);
 
124
  // $plugin["downloaded"] = $wp_data["downloaded"];
125
  // $plugin["rating"] = $wp_data["rating"];
126
  // }
@@ -167,13 +168,6 @@
167
  if ( empty( $sql_mode ) )
168
  $sql_mode = __( 'Not set', $wd_options->prefix );
169
  $server_info["SQL Mode"] = $sql_mode;
170
-
171
- // Get PHP Safe Mode
172
- if( ini_get( 'safe_mode' ) )
173
- $safe_mode = __( 'On', $wd_options->prefix );
174
- else
175
- $safe_mode = __( 'Off', $wd_options->prefix );
176
- $server_info["PHP Safe Mode"] = $safe_mode;
177
 
178
  // Get PHP allow_url_fopen
179
  if( ini_get( 'allow_url_fopen' ) )
120
  unset($plugins[$wd_options->plugin_wordpress_slug]) ;
121
 
122
  // foreach ( $plugins as $wp_slug => &$plugin ){
123
+ // $wp_data = $this->
124
+ //remote_get($wp_slug);
125
  // $plugin["downloaded"] = $wp_data["downloaded"];
126
  // $plugin["rating"] = $wp_data["rating"];
127
  // }
168
  if ( empty( $sql_mode ) )
169
  $sql_mode = __( 'Not set', $wd_options->prefix );
170
  $server_info["SQL Mode"] = $sql_mode;
 
 
 
 
 
 
 
171
 
172
  // Get PHP allow_url_fopen
173
  if( ini_get( 'allow_url_fopen' ) )
wd/includes/subscribe.php CHANGED
@@ -108,7 +108,7 @@
108
  )
109
  );
110
 
111
- $response_body = isset( $response["body"] ) ? json_decode( $response["body"], true ) : null;
112
 
113
  if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
114
 
108
  )
109
  );
110
 
111
+ $response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
112
 
113
  if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
114
 
wd/templates/display_deactivation_popup.php CHANGED
@@ -1,28 +1,28 @@
1
- <div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
2
- <div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
3
- <div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
4
- <img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
 
 
 
 
5
  </div>
6
- <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
- <div class="wd-deactivate-popup-header">
8
- <?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better", $wd_options->prefix ); ?>:
9
- </div>
10
-
11
- <div class="wd-deactivate-popup-body">
12
- <?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
13
- <div class="wd-<?php echo $wd_options->prefix; ?>-reasons">
14
- <input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
15
- <label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
16
- </div>
17
- <?php } ?>
18
- <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
19
- </div>
20
- <div class="wd-btns">
21
- <a href="#" data-val="1" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Deactivate" , $wd_options->prefix ); ?></a>
22
- <a href="#" data-val="2" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and deactivate" , $wd_options->prefix ); ?></a>
23
- <a href="#" class="button button-primary wd-<?php echo $wd_options->prefix; ?>-cancel"><?php _e( "Cancel" , $wd_options->prefix ); ?></a>
24
- </div>
25
- <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
26
- <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
27
- </form>
28
- </div>
1
+ <div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
2
+ <div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
3
+ <div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
4
+ <img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
5
+ </div>
6
+ <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
+ <div class="wd-deactivate-popup-header">
8
+ <?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better", $wd_options->prefix ); ?>:
9
  </div>
10
+
11
+ <div class="wd-deactivate-popup-body">
12
+ <?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
13
+ <div class="wd-<?php echo $wd_options->prefix; ?>-reasons">
14
+ <input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
15
+ <label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
16
+ </div>
17
+ <?php } ?>
18
+ <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
19
+ </div>
20
+ <div class="wd-btns">
21
+ <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Deactivate" , $wd_options->prefix ); ?></a>
22
+ <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and deactivate" , $wd_options->prefix ); ?></a>
23
+ <a href="<?php echo admin_url( 'plugins.php' ); ?>" class="button button-primary wd-<?php echo $wd_options->prefix; ?>-cancel"><?php _e( "Cancel" , $wd_options->prefix ); ?></a>
24
+ </div>
25
+ <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
26
+ <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
27
+ </form>
28
+ </div>
 
 
 
 
wd/templates/display_overview_deals.php CHANGED
@@ -31,13 +31,6 @@
31
  <div class="deal_desc">
32
  <p><?php echo $plugin["content"]; ?></p>
33
  <div class="deal_desc_footer">
34
- <!--<div class="downloads">
35
- <div class="rating" data-rating="<?php echo $plugin["rating"]; ?>"></div>
36
- <div class="spans">
37
- <span><?php _e( "Downloads", $wd_options->prefix ); ?></span>
38
- <span><?php echo number_format($plugin["downloaded"], 0); ?></span>
39
- </div>
40
- </div>-->
41
  <div class="download_btn">
42
  <a href="<?php echo $plugin["href"]; ?>" target="_blank" ><?php _e( "Download", $wd_options->prefix ); ?></a>
43
  </div>
31
  <div class="deal_desc">
32
  <p><?php echo $plugin["content"]; ?></p>
33
  <div class="deal_desc_footer">
 
 
 
 
 
 
 
34
  <div class="download_btn">
35
  <a href="<?php echo $plugin["href"]; ?>" target="_blank" ><?php _e( "Download", $wd_options->prefix ); ?></a>
36
  </div>
wd/templates/display_overview_support.php CHANGED
@@ -3,7 +3,7 @@
3
  <?php echo sprintf( __("You may contact us by filling in this form or by email %s any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.", $wd_options->prefix), "<span class='support_email'>(support@web-dorado.com)</span>") ;?>
4
  </p>
5
  <div class="wd-overview-site-deatils">
6
- <h2><?php _e( "Site Deatils", $wd_options->prefix ); ?></h2>
7
  <p>
8
  <?php _e( "When contacting support, consider copying and pasting this information in your support request.", $wd_options->prefix ); ?>
9
  <br>
3
  <?php echo sprintf( __("You may contact us by filling in this form or by email %s any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.", $wd_options->prefix), "<span class='support_email'>(support@web-dorado.com)</span>") ;?>
4
  </p>
5
  <div class="wd-overview-site-deatils">
6
+ <h2><?php _e( "Site Details", $wd_options->prefix ); ?></h2>
7
  <p>
8
  <?php _e( "When contacting support, consider copying and pasting this information in your support request.", $wd_options->prefix ); ?>
9
  <br>
wd/templates/display_subscribe.php CHANGED
@@ -8,7 +8,7 @@
8
  <div class="texts">
9
  <p><?php _e( "Hi there", $wd_options->prefix ); ?>,</p>
10
  <p>
11
- <?php echo sprintf( __( "Allow %s to collect some usage data. This will allow you to get more out of your plugin experience get awesome customer support, receive exclusive deals and discounts on premium products and more. You can choose to skip this step, %s will still work just fine.", $wd_options->prefix ), '<strong>Web-Dorado</strong>', $wd_options->plugin_title ); ?>
12
  </p>
13
  </div>
14
  <div class="btns">
8
  <div class="texts">
9
  <p><?php _e( "Hi there", $wd_options->prefix ); ?>,</p>
10
  <p>
11
+ <?php echo sprintf( __( "Allow %s to collect some usage data. This will allow you to get more out of your plugin experience - get awesome customer support, receive exclusive deals and discounts on premium products and more. You can choose to skip this step, %s will still work just fine.", $wd_options->prefix ), '<strong>Web-Dorado</strong>', $wd_options->plugin_title ); ?>
12
  </p>
13
  </div>
14
  <div class="btns">
wd/wd.php CHANGED
@@ -125,7 +125,17 @@
125
 
126
  public function change_deactivation_link ( $links ) {
127
  $wd_options = $this->config;
128
- $links["deactivate"] = '<a href="#" class="' . $wd_options->prefix . '_deactivate_link">Deactivate</a>';
 
 
 
 
 
 
 
 
 
 
129
  return $links;
130
  }
131
 
125
 
126
  public function change_deactivation_link ( $links ) {
127
  $wd_options = $this->config;
128
+ $deactivate_url =
129
+ add_query_arg(
130
+ array(
131
+ 'action' => 'deactivate',
132
+ 'plugin' => plugin_basename( $wd_options->plugin_main_file ),
133
+ '_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
134
+ ),
135
+ admin_url( 'plugins.php' )
136
+ );
137
+
138
+ $links["deactivate"] = '<a href="'.$deactivate_url.'" class="' . $wd_options->prefix . '_deactivate_link">Deactivate</a>';
139
  return $links;
140
  }
141