Smooth Slider - Version 2.8.1

Version Description

If you have Smooth Slider 2.6 or plus, kindly update to 2.6.3 for proper height calcualtion for responsiveness.

= Before Upgrading =

  • Note the Title and Content fonts on your old Smooth Slider.
  • Go to 'Settings' panel and 'Save Changes'.
  • Recheck the Slider Title, Post Title and the Slider Content fonts on the Settings Panel.

Get older versions

Download this release

Release Info

Developer internet techies
Plugin Icon 128x128 Smooth Slider
Version 2.8.1
Comparing to
See all releases

Code changes from version 2.8 to 2.8.1

css/skins/default/functions.php CHANGED
@@ -191,6 +191,7 @@ function smooth_slider_get_default($slider_handle,$r_array,$slider_id='',$echo='
191
  if(isset($smooth_sldr_j) && $smooth_sldr_j >= 1) : //is slider empty?
192
  wp_enqueue_script( 'smooth', smooth_slider_plugin_url( 'js/smooth.js' ),array('jquery'), SMOOTH_SLIDER_VER, false);
193
  wp_enqueue_script( 'smooth-dim', smooth_slider_plugin_url( 'js/dim.js' ),array('jquery'), SMOOTH_SLIDER_VER, false);
 
194
  /* Changed fouc code start 2.6 - Bug fix in 2.6.2.1 */
195
  if(!isset($smooth_slider['fouc']) or $smooth_slider['fouc']=='' or $smooth_slider['fouc']=='0' ){
196
  $fouc_dom='jQuery("html").addClass("smooth_slider_fouc");jQuery(".smooth_slider_fouc .smooth_slider").hide();';
@@ -236,8 +237,16 @@ function smooth_slider_get_default($slider_handle,$r_array,$slider_id='',$echo='
236
 
237
  $html.='pause: 1
238
  ,slideExpr: "div.smooth_slideri"
 
 
 
 
 
 
 
 
 
239
  });';
240
-
241
  if ($smooth_slider['goto_slide'] == 2 or $smooth_slider['goto_slide'] == 4 ) {
242
  $html.='jQuery("head").append("<style type=\"text/css\">#'.$slider_handle.' .smooth_nav a.smooth_slider_inav.activeSlide{background-position:-'.$smooth_slider['navimg_w'].'px 0 !important;}</style>");';
243
  }
191
  if(isset($smooth_sldr_j) && $smooth_sldr_j >= 1) : //is slider empty?
192
  wp_enqueue_script( 'smooth', smooth_slider_plugin_url( 'js/smooth.js' ),array('jquery'), SMOOTH_SLIDER_VER, false);
193
  wp_enqueue_script( 'smooth-dim', smooth_slider_plugin_url( 'js/dim.js' ),array('jquery'), SMOOTH_SLIDER_VER, false);
194
+ wp_enqueue_script( 'jquery.touchwipe', smooth_slider_plugin_url( 'js/jquery.touchwipe.js' ),array('jquery'), SMOOTH_SLIDER_VER, false);
195
  /* Changed fouc code start 2.6 - Bug fix in 2.6.2.1 */
196
  if(!isset($smooth_slider['fouc']) or $smooth_slider['fouc']=='' or $smooth_slider['fouc']=='0' ){
197
  $fouc_dom='jQuery("html").addClass("smooth_slider_fouc");jQuery(".smooth_slider_fouc .smooth_slider").hide();';
237
 
238
  $html.='pause: 1
239
  ,slideExpr: "div.smooth_slideri"
240
+ });
241
+ jQuery("#'.$slider_handle.'").touchwipe({
242
+ wipeLeft: function() {
243
+ jQuery("#'.$slider_handle.'").smooth("next");
244
+ },
245
+ wipeRight: function() {
246
+ jQuery("#'.$slider_handle.'").smooth("prev");
247
+ },
248
+ preventDefaultEvents: false
249
  });';
 
250
  if ($smooth_slider['goto_slide'] == 2 or $smooth_slider['goto_slide'] == 4 ) {
251
  $html.='jQuery("head").append("<style type=\"text/css\">#'.$slider_handle.' .smooth_nav a.smooth_slider_inav.activeSlide{background-position:-'.$smooth_slider['navimg_w'].'px 0 !important;}</style>");';
252
  }
js/jquery.touchwipe.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
3
+ * Common usage: wipe images (left and right to show the previous or next image)
4
+ *
5
+ * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
6
+ * @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems)
7
+ * @version 1.1 (1st September 2010) - support wipe up and wipe down
8
+ * @version 1.0 (15th July 2010)
9
+ */
10
+ (function($){$.fn.touchwipe=function(settings){var config={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:true};if(settings)$.extend(config,settings);this.each(function(){var startX;var startY;var isMoving=false;function cancelTouch(){this.removeEventListener('touchmove',onTouchMove);startX=null;isMoving=false}function onTouchMove(e){if(config.preventDefaultEvents){e.preventDefault()}if(isMoving){var x=e.touches[0].pageX;var y=e.touches[0].pageY;var dx=startX-x;var dy=startY-y;if(Math.abs(dx)>=config.min_move_x){cancelTouch();if(dx>0){config.wipeLeft()}else{config.wipeRight()}}else if(Math.abs(dy)>=config.min_move_y){cancelTouch();if(dy>0){config.wipeDown()}else{config.wipeUp()}}}}function onTouchStart(e){if(e.touches.length==1){startX=e.touches[0].pageX;startY=e.touches[0].pageY;isMoving=true;this.addEventListener('touchmove',onTouchMove,false)}}if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false)}});return this}})(jQuery);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.clickonf5.org/go/smooth-slider/
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, 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.0
6
  Tested up to: 4.3.1
7
- Stable tag: 2.8
8
  License: GPLv2 or later
9
 
10
  Responsive WordPress Slider for Featured Content, Videos and Media Images
@@ -152,6 +152,10 @@ Check the other FAQs on Smooth [Slider Documetation on SliderVilla](http://guide
152
 
153
  == Changelog ==
154
 
 
 
 
 
155
  Version 2.8 (10/13/2015)
156
 
157
  1. New � Slide Expiry Date can be added for each slide in Custom Slider thru Smooth Slider Metabox on Edit Post/Page/Slide
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, 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.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.8.1
8
  License: GPLv2 or later
9
 
10
  Responsive WordPress Slider for Featured Content, Videos and Media Images
152
 
153
  == Changelog ==
154
 
155
+ Version 2.8.1 (10/23/2015)
156
+
157
+ 1. New � Added touch swipe feature for tocu input on mobile devices
158
+
159
  Version 2.8 (10/13/2015)
160
 
161
  1. New � Slide Expiry Date can be added for each slide in Custom Slider thru Smooth Slider Metabox on Edit Post/Page/Slide
smooth-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Smooth Slider
4
  Plugin URI: http://slidervilla.com/smooth-slider/
5
  Description: Smooth slider adds a responsive featured content on image slider using shortcode, widget and template tags. Create and embed featured content slider, recent post slider, category slider in less than 60 seconds.
6
- Version: 2.8
7
  Author: SliderVilla
8
  Text Domain: smooth-slider
9
  Author URI: http://slidervilla.com/
@@ -31,12 +31,12 @@ Wordpress version supported: 2.9 and above
31
  //defined global variables and constants here
32
  global $smooth_slider,$default_slider,$smooth_db_version,$default_smooth_slider_settings;
33
  $smooth_slider = get_option('smooth_slider_options');
34
- $smooth_db_version='2.8'; //current version of smooth slider database
35
  define('SLIDER_TABLE','smooth_slider'); //Slider TABLE NAME
36
  define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME
37
  define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME
38
  define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME
39
- define("SMOOTH_SLIDER_VER","2.8",false);//Current Version of Smooth Slider
40
  if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
41
  define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
42
  if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) ){
3
  Plugin Name: Smooth Slider
4
  Plugin URI: http://slidervilla.com/smooth-slider/
5
  Description: Smooth slider adds a responsive featured content on image slider using shortcode, widget and template tags. Create and embed featured content slider, recent post slider, category slider in less than 60 seconds.
6
+ Version: 2.8.1
7
  Author: SliderVilla
8
  Text Domain: smooth-slider
9
  Author URI: http://slidervilla.com/
31
  //defined global variables and constants here
32
  global $smooth_slider,$default_slider,$smooth_db_version,$default_smooth_slider_settings;
33
  $smooth_slider = get_option('smooth_slider_options');
34
+ $smooth_db_version='2.8.1'; //current version of smooth slider database
35
  define('SLIDER_TABLE','smooth_slider'); //Slider TABLE NAME
36
  define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME
37
  define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME
38
  define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME
39
+ define("SMOOTH_SLIDER_VER","2.8.1",false);//Current Version of Smooth Slider
40
  if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
41
  define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
42
  if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) ){