Slider by WD – Responsive Slider - Version 1.0.48

Version Description

  • Fixed: Controll buttons in sites with different site and admin urls.
Download this release

Release Info

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

Code changes from version 1.0.47 to 1.0.48

Files changed (2) hide show
  1. readme.txt +9 -6
  2. slider-wd.php +30 -7
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Slider WD ===
2
  Contributors: webdorado
3
  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
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
- Stable tag: 1.0.47
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,14 +159,17 @@ After downloading the ZIP file of the slider plugin,
159
 
160
  == Changelog ==
161
 
162
- = 1.0.47 =
163
- * Added: Fixed background slider.
164
 
 
 
 
165
  = 1.0.46 =
166
- * Changed: Default uploader.
167
 
168
  = 1.0.45 =
169
- * Changed: Demo Sliders.
170
 
171
  = 1.0.44 =
172
  * Fixed: Video sliders export without videos and thumbnails.
1
  === Slider WD ===
2
  Contributors: webdorado
3
  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
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
+ Stable tag: 1.0.48
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 1.0.48 =
163
+ * Fixed: Controll buttons in sites with different site and admin urls.
164
 
165
+ = 1.0.47 =
166
+ * Added: Fixed background slider.
167
+
168
  = 1.0.46 =
169
+ * Changed: Default uploader.
170
 
171
  = 1.0.45 =
172
+ * Changed: Demo Sliders.
173
 
174
  = 1.0.44 =
175
  * Fixed: Video sliders export without videos and thumbnails.
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.0.47
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -13,6 +13,29 @@
13
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
14
  define('WD_S_URL', plugins_url(plugin_basename(dirname(__FILE__))));
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  $upload_dir = wp_upload_dir();
17
  $WD_S_UPLOAD_DIR = str_replace(ABSPATH, '', $upload_dir['basedir']) . '/slider-wd';
18
 
@@ -398,7 +421,7 @@ register_activation_hook(__FILE__, 'wds_activate');
398
 
399
  function wds_install() {
400
  $version = get_option("wds_version");
401
- $new_version = '1.0.47';
402
  if ($version && version_compare($version, $new_version, '<')) {
403
  require_once WD_S_DIR . "/sliders-update.php";
404
  wds_update($version);
@@ -445,13 +468,13 @@ function wds_front_end_scripts() {
445
  $version = get_option("wds_version");
446
  wp_enqueue_script('jquery');
447
 
448
- wp_enqueue_script('wds_jquery_mobile', WD_S_URL . '/js/jquery.mobile.js', array(), $version);
449
 
450
- wp_enqueue_script('wds_frontend', WD_S_URL . '/js/wds_frontend.js', array(), $version);
451
- wp_enqueue_style('wds_frontend', WD_S_URL . '/css/wds_frontend.css', array(), $version);
452
- wp_enqueue_style('wds_effects', WD_S_URL . '/css/wds_effects.css', array(), $version);
453
 
454
- wp_enqueue_style('wds_font-awesome', WD_S_URL . '/css/font-awesome-4.0.1/font-awesome.css', array(), '4.0.1');
455
  global $wpdb;
456
  $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "wdslayer ORDER BY `depth` ASC");
457
  $font_array = array();
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.0.48
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
13
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
14
  define('WD_S_URL', plugins_url(plugin_basename(dirname(__FILE__))));
15
 
16
+ function wds_use_home_url() {
17
+ $home_url = str_replace("http://", "", home_url());
18
+ $home_url = str_replace("https://", "", $home_url);
19
+ $pos = strpos($home_url, "/");
20
+ if ($pos) {
21
+ $home_url = substr($home_url, 0, $pos);
22
+ }
23
+ $site_url = str_replace("http://", "", WD_S_URL);
24
+ $site_url = str_replace("https://", "", $site_url);
25
+ $pos = strpos($site_url, "/");
26
+ if ($pos) {
27
+ $site_url = substr($site_url, 0, $pos);
28
+ }
29
+ return $site_url != $home_url;
30
+ }
31
+
32
+ if (wds_use_home_url()) {
33
+ define('WD_S_FRONT_URL', home_url("wp-content/plugins/" . plugin_basename(dirname(__FILE__))));
34
+ }
35
+ else {
36
+ define('WD_S_FRONT_URL', WD_S_URL);
37
+ }
38
+
39
  $upload_dir = wp_upload_dir();
40
  $WD_S_UPLOAD_DIR = str_replace(ABSPATH, '', $upload_dir['basedir']) . '/slider-wd';
41
 
421
 
422
  function wds_install() {
423
  $version = get_option("wds_version");
424
+ $new_version = '1.0.48';
425
  if ($version && version_compare($version, $new_version, '<')) {
426
  require_once WD_S_DIR . "/sliders-update.php";
427
  wds_update($version);
468
  $version = get_option("wds_version");
469
  wp_enqueue_script('jquery');
470
 
471
+ wp_enqueue_script('wds_jquery_mobile', WD_S_FRONT_URL . '/js/jquery.mobile.js', array(), $version);
472
 
473
+ wp_enqueue_script('wds_frontend', WD_S_FRONT_URL . '/js/wds_frontend.js', array(), $version);
474
+ wp_enqueue_style('wds_frontend', WD_S_FRONT_URL . '/css/wds_frontend.css', array(), $version);
475
+ wp_enqueue_style('wds_effects', WD_S_FRONT_URL . '/css/wds_effects.css', array(), $version);
476
 
477
+ wp_enqueue_style('wds_font-awesome', WD_S_FRONT_URL . '/css/font-awesome-4.0.1/font-awesome.css', array(), '4.0.1');
478
  global $wpdb;
479
  $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "wdslayer ORDER BY `depth` ASC");
480
  $font_array = array();