Smooth Slider - Version 2.6.4

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.6.4
Comparing to
See all releases

Code changes from version 2.6.3 to 2.6.4

css/admin.css CHANGED
@@ -127,7 +127,7 @@ code {word-break:break-all;line-height:22px;background:#f3f3f3;}
127
  .ImgDetails div{margin-top:0;}
128
  .ImgDetails .fL{float:left;width:50%;}
129
  .ImgDetails .fR{float:right;width:50%;}
130
- .ImgDetails span{width:100%%;display:inline-block;vertical-align:top;margin-bottom:10px;line-height:16px;}
131
  .ImgDetails span textarea{width:95%;}
132
  .ImgDetails span input,.ImgDetails span textarea{box-shadow:none;max-width:100%;}
133
  .ImgDetails span.imgTitle input{width:25em;max-width:98%;}
127
  .ImgDetails div{margin-top:0;}
128
  .ImgDetails .fL{float:left;width:50%;}
129
  .ImgDetails .fR{float:right;width:50%;}
130
+ .ImgDetails span{width:100%;display:inline-block;vertical-align:top;margin-bottom:10px;line-height:16px;}
131
  .ImgDetails span textarea{width:95%;}
132
  .ImgDetails span input,.ImgDetails span textarea{box-shadow:none;max-width:100%;}
133
  .ImgDetails span.imgTitle input{width:25em;max-width:98%;}
css/skins/default/functions.php CHANGED
@@ -142,10 +142,15 @@ function smooth_post_processor_default( $posts, $smooth_slider,$out_echo){
142
  }
143
  /* Added for embeding any shortcode on slide - end */
144
 
145
- if(!$smooth_slider['content_limit'] or $smooth_slider['content_limit'] == '' or $smooth_slider['content_limit'] == ' ')
146
- $slider_excerpt = substr($slider_content,0,$smooth_slider['content_chars']);
147
- else
148
- $slider_excerpt = smooth_slider_word_limiter( $slider_content, $limit = $smooth_slider['content_limit'] );
 
 
 
 
 
149
 
150
  if ($smooth_slider['image_only'] == '1') {
151
  $html .= '<!-- /smooth_slideri -->
@@ -329,18 +334,21 @@ function smooth_data_processor_default($slides, $smooth_slider,$out_echo){
329
  $slider_content = $slide->post_excerpt;
330
  }
331
 
332
- $slider_content = strip_shortcodes( $slider_content );
333
-
334
  $slider_content = stripslashes($slider_content);
335
  $slider_content = str_replace(']]>', ']]&gt;', $slider_content);
336
 
337
  $slider_content = str_replace("\n","<br />",$slider_content);
338
  $slider_content = strip_tags($slider_content, $smooth_slider['allowable_tags']);
339
 
340
- if(!$smooth_slider['content_limit'] or $smooth_slider['content_limit'] == '' or $smooth_slider['content_limit'] == ' ')
341
- $slider_excerpt = substr($slider_content,0,$smooth_slider['content_chars']);
342
- else
343
- $slider_excerpt = smooth_slider_word_limiter( $slider_content, $limit = $smooth_slider['content_limit'] );
 
 
 
 
 
344
  $slider_excerpt=apply_filters('smooth_slide_excerpt',$slider_excerpt,$post_id,$smooth_slider,$smooth_slider_css);
345
  $slider_excerpt='<span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>';
346
 
142
  }
143
  /* Added for embeding any shortcode on slide - end */
144
 
145
+ $content_limit=$smooth_slider['content_limit'];
146
+ $content_chars=$smooth_slider['content_chars'];
147
+ if(empty($content_limit) && !empty($content_chars)){
148
+ $slider_excerpt = substr($slider_content,0,$content_chars);
149
+ }
150
+ else{
151
+ $slider_excerpt = smooth_slider_word_limiter( $slider_content, $limit = $content_limit);
152
+ }
153
+ if(!isset($slider_excerpt))$slider_excerpt='';
154
 
155
  if ($smooth_slider['image_only'] == '1') {
156
  $html .= '<!-- /smooth_slideri -->
334
  $slider_content = $slide->post_excerpt;
335
  }
336
 
 
 
337
  $slider_content = stripslashes($slider_content);
338
  $slider_content = str_replace(']]>', ']]&gt;', $slider_content);
339
 
340
  $slider_content = str_replace("\n","<br />",$slider_content);
341
  $slider_content = strip_tags($slider_content, $smooth_slider['allowable_tags']);
342
 
343
+ $content_limit=$smooth_slider['content_limit'];
344
+ $content_chars=$smooth_slider['content_chars'];
345
+ if(empty($content_limit) && !empty($content_chars)){
346
+ $slider_excerpt = substr($slider_content,0,$content_chars);
347
+ }
348
+ else{
349
+ $slider_excerpt = smooth_slider_word_limiter( $slider_content, $limit = $content_limit);
350
+ }
351
+ if(!isset($slider_excerpt))$slider_excerpt='';
352
  $slider_excerpt=apply_filters('smooth_slide_excerpt',$slider_excerpt,$post_id,$smooth_slider,$smooth_slider_css);
353
  $slider_excerpt='<span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>';
354
 
css/skins/default/style.css CHANGED
@@ -1,7 +1,9 @@
1
  @charset "utf-8";
2
  /*CSS Document
3
  Smooth Slider default styles*/
4
- .smooth_slider div,.smooth_slider p,.smooth_slider li,.smooth_slider span,.smooth_slider img,.smooth_slider h2,.smooth_slider ul{list-style:none;vertical-align:baseline;}
 
 
5
  .smooth_slider{padding:0 5px;width:100%;}
6
  .smooth_slider .sldr_title{margin:5px 0 10px 0;}
7
  .smooth_slider span{display:inline;overflow:hidden;margin: 10px auto;line-height:18px;}
1
  @charset "utf-8";
2
  /*CSS Document
3
  Smooth Slider default styles*/
4
+ .smooth_slider div,.smooth_slider p,.smooth_slider span,.smooth_slider img,.smooth_slider h2{list-style:none;vertical-align:baseline;}
5
+ .smooth_slider ul{list-style:disc;vertical-align:baseline;list-style-position:inside;}
6
+ .smooth_slider li{vertical-align:baseline;}
7
  .smooth_slider{padding:0 5px;width:100%;}
8
  .smooth_slider .sldr_title{margin:5px 0 10px 0;}
9
  .smooth_slider span{display:inline;overflow:hidden;margin: 10px auto;line-height:18px;}
images/delete.png ADDED
Binary file
images/edit.png ADDED
Binary file
js/smooth.js CHANGED
@@ -7,11 +7,11 @@
7
  img_align :'left'
8
  }
9
  options=jQuery.extend({},defaults,args);
 
10
  this.smoothSliderSize=function(){
11
  var wrapWidth=this.width();
12
  var slideri=this.find('.smooth_slideri');
13
- var slideriW;
14
- var self=this;
15
  //calculate max-width of slideri
16
  if(options.navArr==0) slideriW=wrapWidth;
17
  else slideriW=wrapWidth-(48+10); //48px for arrows and 10 for additional margin for text
7
  img_align :'left'
8
  }
9
  options=jQuery.extend({},defaults,args);
10
+ var self=this;
11
  this.smoothSliderSize=function(){
12
  var wrapWidth=this.width();
13
  var slideri=this.find('.smooth_slideri');
14
+ var slideriW;
 
15
  //calculate max-width of slideri
16
  if(options.navArr==0) slideriW=wrapWidth;
17
  else slideriW=wrapWidth-(48+10); //48px for arrows and 10 for additional margin for text
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: internet techies, slidervilla
3
  Tags: slider, slideshow, wordpress slider, content slider, posts slider,image slider, responsive slideshow, image Rotator, jquery slider, Photo Slider, nivo slider, slider plugin, javascript slider, coin slider, responsive slider, featured-content-slider, Horizontal slider, carousel slider, wp slider, vertical slider, best slider plugin, content slideshow, javascript slideshow, slideshow manager, slideshow plugin, image slideshow, jquery slideshow, wordpress slideshow, vertical slides, responsive, nivoslider, flex slider, coinslider, carousel, post, posts, plugin, slider widget, widget slider, widget slideshow, widget, widgets, seo, wordpress seo, media, page, slide, slides
4
  Donate link: http://www.clickonf5.org/go/smooth-slider/
5
  Requires at least: 3.0
6
- Tested up to: 3.9.2
7
- Stable tag: 2.6.3
8
  License: GPLv2 or later
9
 
10
  Most Popular Responsive WordPress Slider for Featured Content, Videos and Media Images
@@ -151,6 +151,12 @@ Check the other FAQs on Smooth [Slider Documetation on SliderVilla](http://guide
151
 
152
 
153
  == Changelog ==
 
 
 
 
 
 
154
  Version 2.6.3 (08/13/2014)
155
 
156
  1. Fix: Slider was causing page to hide initially and appear on document ready. Resolved this issue. Now slider is workig perfectly for responsive heights.
@@ -323,7 +329,7 @@ Version 1.2 (09/22/2009)
323
  Version 1.1 (09/14/2009)
324
 
325
  1. New - Active Slide in the slideshow will now be highlighted with bolder and bigger navigation number
326
- 2. Fixed - Added No Script tag brosers not supporting JavaScript for showing the slideshow
327
  3. Fixed - Issues with WordPress MU Smooth Slider Options update from setting page
328
 
329
  Visit the plugin page to see the changelog and release notes.
3
  Tags: slider, slideshow, wordpress slider, content slider, posts slider,image slider, responsive slideshow, image Rotator, jquery slider, Photo Slider, nivo slider, slider plugin, javascript slider, coin slider, responsive slider, featured-content-slider, Horizontal slider, carousel slider, wp slider, vertical slider, best slider plugin, content slideshow, javascript slideshow, slideshow manager, slideshow plugin, image slideshow, jquery slideshow, wordpress slideshow, vertical slides, responsive, nivoslider, flex slider, coinslider, carousel, post, posts, plugin, slider widget, widget slider, widget slideshow, widget, widgets, seo, wordpress seo, media, page, slide, slides
4
  Donate link: http://www.clickonf5.org/go/smooth-slider/
5
  Requires at least: 3.0
6
+ Tested up to: 4.0
7
+ Stable tag: 2.6.4
8
  License: GPLv2 or later
9
 
10
  Most Popular Responsive WordPress Slider for Featured Content, Videos and Media Images
151
 
152
 
153
  == Changelog ==
154
+
155
+ Version 2.6.4 (09/10/2014)
156
+
157
+ 1. Fix: In case of multisite WordPress installation there was an issue while saving setting set.
158
+ 2. Fix: jquery.js was loaded in footer, should be loaded before the slider js (head section)
159
+
160
  Version 2.6.3 (08/13/2014)
161
 
162
  1. Fix: Slider was causing page to hide initially and appear on document ready. Resolved this issue. Now slider is workig perfectly for responsive heights.
329
  Version 1.1 (09/14/2009)
330
 
331
  1. New - Active Slide in the slideshow will now be highlighted with bolder and bigger navigation number
332
+ 2. Fixed - Added No Script tag browsers not supporting JavaScript for showing the slideshow
333
  3. Fixed - Issues with WordPress MU Smooth Slider Options update from setting page
334
 
335
  Visit the plugin page to see the changelog and release notes.
slider_versions/smooth_1.php CHANGED
@@ -178,6 +178,11 @@ function get_smooth_slider_recent($offset=0) {
178
  require_once (dirname (__FILE__) . '/shortcodes_1.php');
179
  require_once (dirname (__FILE__) . '/widgets_1.php');
180
 
 
 
 
 
 
181
  //admin settings
182
  function smooth_slider_admin_scripts() {
183
  global $smooth_slider;
@@ -223,7 +228,7 @@ if ( is_admin() ){ // admin actions
223
  jQuery("#sslider_sortable_<?php echo $slider['slider_id'];?>").sortable();
224
  jQuery("#sslider_sortable_<?php echo $slider['slider_id'];?>").disableSelection();
225
  <?php } ?>
226
- jQuery( ".uploaded-images" ).sortable({ items: ".addedImg" }).disableSelection();
227
 
228
  });
229
  </script> <?php
@@ -360,7 +365,7 @@ function smooth_get_inline_css($echo='0'){
360
  $style_start= ($echo=='0') ? 'style="':'';
361
  $style_end= ($echo=='0') ? '"':'';
362
  //smooth_slider
363
- $smooth_slider_css['smooth_slider']=$style_start.'max-width:'.$smooth_slider['width'].'px;height:'.$smooth_slider['height'].'px;background-color:'. ( ($smooth_slider['bg'] == '1') ? "transparent" : $smooth_slider['bg_color'] ) .';border:'. $smooth_slider['border'].'px solid '.$smooth_slider['brcolor'].';'.$style_end;
364
 
365
  if ($smooth_slider['title_fstyle'] == "bold" or $smooth_slider['title_fstyle'] == "bold italic" ){$slider_title_font = "bold";} else { $slider_title_font = "normal"; }
366
  if ($smooth_slider['title_fstyle'] == "italic" or $smooth_slider['title_fstyle'] == "bold italic" ){$slider_title_style = "italic";} else {$slider_title_style = "normal";}
178
  require_once (dirname (__FILE__) . '/shortcodes_1.php');
179
  require_once (dirname (__FILE__) . '/widgets_1.php');
180
 
181
+ function smooth_slider_enqueue_scripts() {
182
+ wp_enqueue_script( 'jquery');
183
+ }
184
+ add_action( 'init', 'smooth_slider_enqueue_scripts' );
185
+
186
  //admin settings
187
  function smooth_slider_admin_scripts() {
188
  global $smooth_slider;
228
  jQuery("#sslider_sortable_<?php echo $slider['slider_id'];?>").sortable();
229
  jQuery("#sslider_sortable_<?php echo $slider['slider_id'];?>").disableSelection();
230
  <?php } ?>
231
+ jQuery( ".uploaded-images" ).sortable({ items: ".addedImg" });
232
 
233
  });
234
  </script> <?php
365
  $style_start= ($echo=='0') ? 'style="':'';
366
  $style_end= ($echo=='0') ? '"':'';
367
  //smooth_slider
368
+ $smooth_slider_css['smooth_slider']=$style_start.'max-width:'.$smooth_slider['width'].'px;height:'.$smooth_slider['height'].'px;min-height:'.$smooth_slider['height'].'px;background-color:'. ( ($smooth_slider['bg'] == '1') ? "transparent" : $smooth_slider['bg_color'] ) .';border:'. $smooth_slider['border'].'px solid '.$smooth_slider['brcolor'].';'.$style_end;
369
 
370
  if ($smooth_slider['title_fstyle'] == "bold" or $smooth_slider['title_fstyle'] == "bold italic" ){$slider_title_font = "bold";} else { $slider_title_font = "normal"; }
371
  if ($smooth_slider['title_fstyle'] == "italic" or $smooth_slider['title_fstyle'] == "bold italic" ){$slider_title_style = "italic";} else {$slider_title_style = "normal";}
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.6.3
7
  Author: SliderVilla
8
  Author URI: http://slidervilla.com/
9
  Wordpress version supported: 2.9 and above
@@ -30,12 +30,12 @@ Wordpress version supported: 2.9 and above
30
  //defined global variables and constants here
31
  global $smooth_slider,$default_slider,$smooth_db_version,$default_smooth_slider_settings;
32
  $smooth_slider = get_option('smooth_slider_options');
33
- $smooth_db_version='2.6.3'; //current version of smooth slider database
34
  define('SLIDER_TABLE','smooth_slider'); //Slider TABLE NAME
35
  define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME
36
  define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME
37
  define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME
38
- define("SMOOTH_SLIDER_VER","2.6.3",false);//Current Version of Smooth Slider
39
  if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
40
  define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
41
  if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) ){
@@ -111,7 +111,7 @@ load_plugin_textdomain('smooth-slider', false, dirname( plugin_basename( __FILE_
111
 
112
  function install_smooth_slider() {
113
  global $wpdb, $table_prefix,$smooth_db_version;
114
- $installed_ver = get_site_option( "smooth_db_version" );
115
  if( $installed_ver != $smooth_db_version ) {
116
  $table_name = $table_prefix.SLIDER_TABLE;
117
  if($wpdb->get_var("show tables like '$table_name'") != $table_name) {
@@ -226,14 +226,14 @@ function install_smooth_slider() {
226
 
227
  delete_option('smooth_slider_options');
228
  update_option('smooth_slider_options',$smooth_slider);
229
- update_site_option( "smooth_db_version", $smooth_db_version );
230
  }
231
  }
232
  register_activation_hook( __FILE__, 'install_smooth_slider' );
233
  /* Added for auto update - start */
234
  function smooth_update_db_check() {
235
  global $smooth_db_version;
236
- if (get_site_option('smooth_db_version') != $smooth_db_version) {
237
  install_smooth_slider();
238
  }
239
  }
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.6.4
7
  Author: SliderVilla
8
  Author URI: http://slidervilla.com/
9
  Wordpress version supported: 2.9 and above
30
  //defined global variables and constants here
31
  global $smooth_slider,$default_slider,$smooth_db_version,$default_smooth_slider_settings;
32
  $smooth_slider = get_option('smooth_slider_options');
33
+ $smooth_db_version='2.6.4'; //current version of smooth slider database
34
  define('SLIDER_TABLE','smooth_slider'); //Slider TABLE NAME
35
  define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME
36
  define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME
37
  define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME
38
+ define("SMOOTH_SLIDER_VER","2.6.4",false);//Current Version of Smooth Slider
39
  if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
40
  define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
41
  if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) ){
111
 
112
  function install_smooth_slider() {
113
  global $wpdb, $table_prefix,$smooth_db_version;
114
+ $installed_ver = get_option( "smooth_db_version" );
115
  if( $installed_ver != $smooth_db_version ) {
116
  $table_name = $table_prefix.SLIDER_TABLE;
117
  if($wpdb->get_var("show tables like '$table_name'") != $table_name) {
226
 
227
  delete_option('smooth_slider_options');
228
  update_option('smooth_slider_options',$smooth_slider);
229
+ update_option( "smooth_db_version", $smooth_db_version );
230
  }
231
  }
232
  register_activation_hook( __FILE__, 'install_smooth_slider' );
233
  /* Added for auto update - start */
234
  function smooth_update_db_check() {
235
  global $smooth_db_version;
236
+ if (get_option('smooth_db_version') != $smooth_db_version) {
237
  install_smooth_slider();
238
  }
239
  }