Version Description
= 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
!!IMP!! If you have highly customized Smooth Slider, Before upgrading to 2.4, save your CSS and Settings. You may lose some CSS formatting as in the new versions the slider javascript is changed and is different from previous versions.
Download this release
Release Info
Developer | internet techies |
Plugin | Smooth Slider |
Version | 2.6.2 |
Comparing to | |
See all releases |
Code changes from version 2.6.1 to 2.6.2
- css/skins/default/functions.php +182 -3
- js/smooth.js +9 -2
- readme.txt +26 -5
- slider_versions/shortcodes_1.php +19 -11
- slider_versions/smooth_1.php +44 -17
- smooth-slider.php +6 -6
css/skins/default/functions.php
CHANGED
@@ -157,12 +157,14 @@ function smooth_post_processor_default( $posts, $smooth_slider,$out_echo){
|
|
157 |
<p class="smooth_more"><a href="'.$permalink.'" '.$smooth_slider_css['smooth_slider_p_more'].'>'.$smooth_slider['more'].'</a></p>
|
158 |
|
159 |
<!-- /smooth_slideri -->
|
160 |
-
</div>';
|
|
|
161 |
else{
|
162 |
$html .= '<h2 '.$smooth_slider_css['smooth_slider_h2'].'>'.$post_title.'</h2><span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>
|
163 |
<!-- /smooth_slideri -->
|
164 |
-
</div>';
|
165 |
-
|
|
|
166 |
}
|
167 |
if($out_echo == '1') {
|
168 |
echo $html;
|
@@ -280,4 +282,181 @@ function smooth_slider_get_default($slider_handle,$r_array,$slider_id='',$echo='
|
|
280 |
if($echo == '1') {echo $html; }
|
281 |
else { return $html; }
|
282 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
?>
|
157 |
<p class="smooth_more"><a href="'.$permalink.'" '.$smooth_slider_css['smooth_slider_p_more'].'>'.$smooth_slider['more'].'</a></p>
|
158 |
|
159 |
<!-- /smooth_slideri -->
|
160 |
+
</div>';
|
161 |
+
}
|
162 |
else{
|
163 |
$html .= '<h2 '.$smooth_slider_css['smooth_slider_h2'].'>'.$post_title.'</h2><span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>
|
164 |
<!-- /smooth_slideri -->
|
165 |
+
</div>';
|
166 |
+
}
|
167 |
+
}
|
168 |
}
|
169 |
if($out_echo == '1') {
|
170 |
echo $html;
|
282 |
if($echo == '1') {echo $html; }
|
283 |
else { return $html; }
|
284 |
}
|
285 |
+
function smooth_data_processor_default($slides, $smooth_slider,$out_echo){
|
286 |
+
$skin='default';
|
287 |
+
global $smooth_slider,$data,$default_slider;
|
288 |
+
$smooth_slider_css = smooth_get_inline_css();
|
289 |
+
$html = '';
|
290 |
+
$smooth_sldr_j = 0;
|
291 |
+
$i=0;
|
292 |
+
if(is_array($data)) extract($data,EXTR_PREFIX_ALL,'data');
|
293 |
+
|
294 |
+
foreach($default_slider as $key=>$value){
|
295 |
+
if(!isset($smooth_slider[$key])) $smooth_slider[$key]='';
|
296 |
+
}
|
297 |
+
$slider_handle='';
|
298 |
+
if ( !empty($data_slider_handle) ) {
|
299 |
+
$slider_handle=$data_slider_handle;
|
300 |
+
}
|
301 |
+
foreach($slides as $slide) {
|
302 |
+
$id = $post_id = '';
|
303 |
+
if (isset ($slide->ID)) {$id = $post_id = $slide->ID;}
|
304 |
+
$post_title = stripslashes($slide->post_title);
|
305 |
+
$post_title = str_replace('"', '', $post_title);
|
306 |
+
//filter hook
|
307 |
+
if (isset ($id)) $post_title=apply_filters('smooth_post_title',$post_title,$id,$smooth_slider,$smooth_slider_css);
|
308 |
+
$slider_content = $slide->post_content;
|
309 |
+
$smooth_slide_redirect_url = $slide->redirect_url;
|
310 |
+
$smooth_sslider_nolink = $slide->nolink;
|
311 |
+
trim($smooth_slide_redirect_url);
|
312 |
+
if(!empty($smooth_slide_redirect_url) and isset($smooth_slide_redirect_url)) {
|
313 |
+
$permalink = $smooth_slide_redirect_url;
|
314 |
+
}
|
315 |
+
else{
|
316 |
+
$permalink = $slide->url;
|
317 |
+
}
|
318 |
+
if($smooth_sslider_nolink=='1'){
|
319 |
+
$permalink='';
|
320 |
+
}
|
321 |
+
|
322 |
+
$smooth_sldr_j++;
|
323 |
+
$html .= '<div class="smooth_slideri" '.$smooth_slider_css['smooth_slideri'].'>
|
324 |
+
<!-- smooth_slideri -->';
|
325 |
+
if ($smooth_slider['content_from'] == "slider_content") {
|
326 |
+
$slider_content = $slide->post_content;
|
327 |
+
}
|
328 |
+
if ($smooth_slider['content_from'] == "excerpt") {
|
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(']]>', ']]>', $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 |
+
|
347 |
+
//filter hook
|
348 |
+
$slider_excerpt=apply_filters('smooth_slide_excerpt_html',$slider_excerpt,$post_id,$smooth_slider,$smooth_slider_css);
|
349 |
+
|
350 |
+
//For media images
|
351 |
+
if (isset ($slide->media)) $smooth_media = $slide->media;
|
352 |
+
if (isset ($slide->media_image)) $smooth_media_image = $slide->media_image;
|
353 |
+
$data_image_class=(!empty($data_image_class)?$data_image_class:'');
|
354 |
+
$data_default_image=(!empty($data_default_image)?$data_default_image:'');
|
355 |
+
if( ((empty($smooth_media) or $smooth_media=='' or !($smooth_media)) and (empty($smooth_media_image) or $smooth_media_image=='' or !($smooth_media_image)) ) or $data_media!='1' ) {
|
356 |
+
$width = $smooth_slider['img_width'];
|
357 |
+
$height = $smooth_slider['img_height'];
|
358 |
+
if($smooth_slider['crop'] == '0'){
|
359 |
+
$extract_size = 'full';
|
360 |
+
}
|
361 |
+
elseif($smooth_slider['crop'] == '1'){
|
362 |
+
$extract_size = 'large';
|
363 |
+
}
|
364 |
+
elseif($smooth_slider['crop'] == '2'){
|
365 |
+
$extract_size = 'medium';
|
366 |
+
}
|
367 |
+
else{
|
368 |
+
$extract_size = 'thumbnail';
|
369 |
+
}
|
370 |
+
|
371 |
+
$classes[] = $extract_size;
|
372 |
+
$classes[] = 'smooth_slider_thumbnail';
|
373 |
+
$classes[] = $data_image_class;
|
374 |
+
$class = join( ' ', array_unique( $classes ) );
|
375 |
+
|
376 |
+
preg_match_all( '|<img.*?src=[\'"](.*?)[\'"].*?>|i', $slide->content_for_image, $matches );
|
377 |
+
|
378 |
+
$img_url=$data_default_image;
|
379 |
+
|
380 |
+
/* If there is a match for the image, return its URL. */
|
381 |
+
$order_of_image='';
|
382 |
+
if(isset($data_order)) $order_of_image=$data_order;
|
383 |
+
|
384 |
+
if($order_of_image > 0) $order_of_image=$order_of_image;
|
385 |
+
else $order_of_image = 0;
|
386 |
+
|
387 |
+
if ( isset( $matches ) && count($matches[1])<=$order_of_image) $order_of_image=count($matches[1]);
|
388 |
+
|
389 |
+
if ( isset( $matches ) && $matches[1][$order_of_image] )
|
390 |
+
$img_url = $matches[1][$order_of_image];
|
391 |
+
|
392 |
+
$width = ( ( $width ) ? ' width="' . esc_attr( $width ) . '"' : '' );
|
393 |
+
$height = ( ( $height ) ? ' height="' . esc_attr( $height ) . '"' : '' );
|
394 |
+
|
395 |
+
$img_html = '<img src="' . $img_url . '" class="' . esc_attr( $class ) . '"' . $width . $height . $smooth_slider_css['smooth_slider_thumbnail'] .' />';
|
396 |
+
$smooth_large_image=$img_html;
|
397 |
+
}
|
398 |
+
else{
|
399 |
+
$width = $smooth_slider['img_width'];
|
400 |
+
$height = $smooth_slider['img_height'];
|
401 |
+
$width = ( ( $width ) ? ' width="' . esc_attr( $width ) . '"' : '' );
|
402 |
+
$height = ( ( $height ) ? ' height="' . esc_attr( $height ) . '"' : '' );
|
403 |
+
|
404 |
+
if($smooth_slider['crop'] == '0'){
|
405 |
+
$extract_size = 'full';
|
406 |
+
}
|
407 |
+
elseif($smooth_slider['crop'] == '1'){
|
408 |
+
$extract_size = 'large';
|
409 |
+
}
|
410 |
+
elseif($smooth_slider['crop'] == '2'){
|
411 |
+
$extract_size = 'medium';
|
412 |
+
}
|
413 |
+
else{
|
414 |
+
$extract_size = 'thumbnail';
|
415 |
+
}
|
416 |
+
|
417 |
+
$classes[] = $extract_size;
|
418 |
+
$classes[] = 'smooth_slider_thumbnail';
|
419 |
+
$classes[] = $data_image_class;
|
420 |
+
$class = join( ' ', array_unique( $classes ) );
|
421 |
+
if(!empty($smooth_media_image)) {
|
422 |
+
$smooth_large_image='<img src="'.$smooth_media_image.'" class="' . esc_attr( $class ) . '"' . $width . $height . '/>';
|
423 |
+
$img_url=$smooth_media_image;
|
424 |
+
}
|
425 |
+
else {
|
426 |
+
$smooth_large_image='<img src="'.$data_default_image.'" class="' . esc_attr( $class ) . '"' . $width . $height . '/>';
|
427 |
+
$img_url=$data_default_image;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
|
431 |
+
if($permalink!='') {
|
432 |
+
$smooth_large_image = '<a href="' . $permalink . '" title="'.$post_title.'">' . $smooth_large_image . '</a>';
|
433 |
+
}
|
434 |
+
//filter hook
|
435 |
+
$smooth_large_image=apply_filters('smooth_large_image',$smooth_large_image,$post_id,$smooth_slider,$smooth_slider_css);
|
436 |
+
$html.= $smooth_large_image;
|
437 |
+
if ($smooth_slider['image_only'] == '1') {
|
438 |
+
$html .= '<!-- /smooth_slideri -->
|
439 |
+
</div>';
|
440 |
+
}
|
441 |
+
else {
|
442 |
+
if($permalink!='') {
|
443 |
+
$html .= '<h2 '.$smooth_slider_css['smooth_slider_h2'].'><a '.$smooth_slider_css['smooth_slider_h2_a'].' href="'.$permalink.'">'.$post_title.'</a></h2><span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>
|
444 |
+
<p class="smooth_more"><a href="'.$permalink.'" '.$smooth_slider_css['smooth_slider_p_more'].'>'.$smooth_slider['more'].'</a></p>
|
445 |
+
<!-- /smooth_slideri -->
|
446 |
+
</div>';
|
447 |
+
}
|
448 |
+
else{
|
449 |
+
$html .= '<h2 '.$smooth_slider_css['smooth_slider_h2'].'>'.$post_title.'</h2><span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>
|
450 |
+
<!-- /smooth_slideri -->
|
451 |
+
</div>';
|
452 |
+
}
|
453 |
+
}
|
454 |
+
}
|
455 |
+
if($out_echo == '1') {
|
456 |
+
echo $html;
|
457 |
+
}
|
458 |
+
$r_array = array( $smooth_sldr_j, $html);
|
459 |
+
$r_array=apply_filters('smooth_r_array',$r_array,$slides, $smooth_slider);
|
460 |
+
return $r_array;
|
461 |
+
}
|
462 |
?>
|
js/smooth.js
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
var wrapWidth=this.width();
|
12 |
var slideri=this.find('.smooth_slideri');
|
13 |
var slideriW;
|
|
|
14 |
//calculate max-width of slideri
|
15 |
if(options.navArr==0) slideriW=wrapWidth;
|
16 |
else slideriW=wrapWidth-(48+10); //48px for arrows and 10 for additional margin for text
|
@@ -35,12 +36,18 @@
|
|
35 |
this.find(".smooth_slideri").each(function(idx,el){
|
36 |
if(jQuery(el).outerHeight(true)>iht)iht=jQuery(el).outerHeight(true);
|
37 |
});
|
38 |
-
var
|
|
|
39 |
this.height(ht);
|
|
|
|
|
|
|
|
|
|
|
40 |
return this;
|
41 |
};
|
42 |
this.smoothSliderSize();
|
43 |
-
|
44 |
//On Window Resize
|
45 |
jQuery(window).resize(function() {
|
46 |
self.smoothSliderSize();
|
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
|
36 |
this.find(".smooth_slideri").each(function(idx,el){
|
37 |
if(jQuery(el).outerHeight(true)>iht)iht=jQuery(el).outerHeight(true);
|
38 |
});
|
39 |
+
var eHt=this.find(".sldr_title").outerHeight(true) + this.find(".smooth_nav").outerHeight(true);
|
40 |
+
var ht=iht + eHt;
|
41 |
this.height(ht);
|
42 |
+
this.find(".smooth_slider_thumbnail").on('load',function(e){
|
43 |
+
var pHt=jQuery(this).parents(".smooth_slideri").outerHeight(true)+eHt;
|
44 |
+
if(pHt > ht)ht=pHt;
|
45 |
+
self.height(ht);
|
46 |
+
});
|
47 |
return this;
|
48 |
};
|
49 |
this.smoothSliderSize();
|
50 |
+
|
51 |
//On Window Resize
|
52 |
jQuery(window).resize(function() {
|
53 |
self.smoothSliderSize();
|
readme.txt
CHANGED
@@ -3,15 +3,15 @@ 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.
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Most Popular Responsive WordPress Slider for Featured Content, Videos and Media Images
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
In less than 50 seconds, embed a recent posts, category specific or featured posts slider using Smooth Slider. It creates a dynamic slideshow/s for featured Posts, Pages, Media Images and Custom Post Types on a WordPress site. With live preview on admin panel, one can customize the slider before implementation. At <a href="http://slidervilla.com/" rel="friend" title="
|
15 |
|
16 |
= Features =
|
17 |
|
@@ -26,7 +26,8 @@ In less than 50 seconds, embed a recent posts, category specific or featured pos
|
|
26 |
* No Need Of Knowledge of PHP, HTML or CSS. But for those having knowledge of CSS, you can create your own stylesheet.
|
27 |
* Slides can be removed from the slider in single click thru 'Sliders' admin panel
|
28 |
|
29 |
-
=
|
|
|
30 |
|
31 |
* Create Unlimited Settings Panels
|
32 |
* Created Unlimited Custom Sliders
|
@@ -38,13 +39,28 @@ In less than 50 seconds, embed a recent posts, category specific or featured pos
|
|
38 |
* Google Web Fonts option on Settings Panel
|
39 |
* Very Prompt Support and Lifetime Upgrades
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
<a href="http://slidervilla.com/smooth-slider/" rel="friend" >Plugin Home Page</a> |
|
42 |
[Plugin Documentation](http://guides.slidervilla.com/smooth-slider/)
|
43 |
|
44 |
**Smooth Slider is now <a href="http://slidervilla.com/add-ons/" rel="friend">Add-ons</a> compatible. **
|
45 |
|
46 |
1. Taxonomy Add-on
|
47 |
-
2.
|
|
|
|
|
48 |
|
49 |
|
50 |
== Installation ==
|
@@ -137,6 +153,11 @@ Check the other FAQs on Smooth [Slider Documetation on SliderVilla](http://guide
|
|
137 |
|
138 |
== Changelog ==
|
139 |
|
|
|
|
|
|
|
|
|
|
|
140 |
Version 2.6.1 (07/30/2014)
|
141 |
|
142 |
1. Fix: Smooth Slider coming before content in case of shortcode
|
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.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Most Popular Responsive WordPress Slider for Featured Content, Videos and Media Images
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
In less than 50 seconds, embed a recent posts, category specific or featured posts slider using Smooth Slider. It creates a dynamic slideshow/s for featured Posts, Pages, Media Images and Custom Post Types on a WordPress site. With live preview on admin panel, one can customize the slider before implementation. At SliderVilla - <a href="http://slidervilla.com/" rel="friend" title="Best WordPress Slider Store">Best WordPress Slider Store</a> , we develop only sliders and we know the requirements very well. Smooth Slider is a basic slider WordPress plugin but is capable of adding a nice carousel in no time. With shortcode, widgets and template tag, one can embed Smooth SLider anywhere in the site.
|
15 |
|
16 |
= Features =
|
17 |
|
26 |
* No Need Of Knowledge of PHP, HTML or CSS. But for those having knowledge of CSS, you can create your own stylesheet.
|
27 |
* Slides can be removed from the slider in single click thru 'Sliders' admin panel
|
28 |
|
29 |
+
= Premium Sliders =
|
30 |
+
= <a href="http://slidervilla.com/sliders-list-view/" rel="friend" title="Premium WordPress Sliders">15+ Premium WordPress Sliders</a> =
|
31 |
|
32 |
* Create Unlimited Settings Panels
|
33 |
* Created Unlimited Custom Sliders
|
39 |
* Google Web Fonts option on Settings Panel
|
40 |
* Very Prompt Support and Lifetime Upgrades
|
41 |
|
42 |
+
Checkout Our Premium Responsive Sliders such as,
|
43 |
+
|
44 |
+
* Placid Slider - <a href="http://slidervilla.com/placid" rel="friend" title="Best Logo and Client Brand Slider">Best Logo and Client Brand Slider</a>
|
45 |
+
* Pointelle Slider - <a href="http://slidervilla.com/pointelle" rel="friend" title="Best WordPress Slider Design for Homepage">Best WordPress Slider Design for Homepage</a>
|
46 |
+
* Glam Slider - <a href="http://slidervilla.com/glam" rel="friend" title="Full Page Slider with Partial Visible Slides">Full Page Slider with Partial Visible Slides</a>
|
47 |
+
* Featured Slider - <a href="http://slidervilla.com/featured-slider" rel="friend" title="Awesome WordPress Slider to Show Featured Content">Awesome WordPress Slider to Show Featured Content</a>
|
48 |
+
* Listic Slider - <a href="http://slidervilla.com/listic" rel="friend" title="Best List View Slider for WordPress">Best List View Slider for WordPress</a>
|
49 |
+
* Roster Slider - <a href="http://slidervilla.com/roster" rel="friend" title="Best Horizontal Carousal for WordPress">Best Horizontal Carousal for WordPress</a>
|
50 |
+
* Pinwheel Slider - <a href="http://slidervilla.com/pinwheel" rel="friend" title="Ultimate rotator with responsive design">Ultimate rotator with responsive design</a>
|
51 |
+
* Akkord Slider - <a href="http://slidervilla.com/akkord" rel="friend" title="Premium Accordion Slider for WordPress">Premium Accordion Slider for WordPress</a>
|
52 |
+
* Foto Slider - <a href="http://slidervilla.com/foto-slider" rel="friend" title="Best Gallery View Slider for WordPress">Best Gallery View Slider for WordPress</a>
|
53 |
+
and many more
|
54 |
+
|
55 |
<a href="http://slidervilla.com/smooth-slider/" rel="friend" >Plugin Home Page</a> |
|
56 |
[Plugin Documentation](http://guides.slidervilla.com/smooth-slider/)
|
57 |
|
58 |
**Smooth Slider is now <a href="http://slidervilla.com/add-ons/" rel="friend">Add-ons</a> compatible. **
|
59 |
|
60 |
1. Taxonomy Add-on
|
61 |
+
2. Post Attachments Add-on
|
62 |
+
3. RSS Feed Add-on
|
63 |
+
4. NextGEN Gallery Add-on
|
64 |
|
65 |
|
66 |
== Installation ==
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
Version 2.6.2 (08/12/2014)
|
157 |
+
|
158 |
+
1. New: RSS Feed Add-on compatibility
|
159 |
+
2. Fix: Slider height not properly set initially for center aligned (large) images slider. Fixed the issue.
|
160 |
+
|
161 |
Version 2.6.1 (07/30/2014)
|
162 |
|
163 |
1. Fix: Smooth Slider coming before content in case of shortcode
|
slider_versions/shortcodes_1.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
-
function return_global_smooth_slider($slider_handle,$r_array,$
|
3 |
$slider_html='';
|
4 |
-
$slider_html=get_global_smooth_slider($slider_handle,$r_array,$
|
5 |
return $slider_html;
|
6 |
}
|
7 |
//Basic Shortcode
|
8 |
-
function return_smooth_slider($slider_id='',$offset='0') {
|
9 |
global $smooth_slider;
|
10 |
$slider_html='';
|
11 |
if($smooth_slider['multiple_sliders'] == '1' and is_singular()){
|
@@ -18,9 +18,13 @@ function return_smooth_slider($slider_id='',$offset='0') {
|
|
18 |
$slider_id = '1';
|
19 |
}
|
20 |
if(!empty($slider_id)){
|
21 |
-
$
|
|
|
22 |
$slider_handle='smooth_slider_'.$slider_id;
|
23 |
-
$
|
|
|
|
|
|
|
24 |
} //end of not empty slider_id condition
|
25 |
return $slider_html;
|
26 |
}
|
@@ -36,12 +40,14 @@ function smooth_slider_simple_shortcode($atts) {
|
|
36 |
add_shortcode('smoothslider', 'smooth_slider_simple_shortcode');
|
37 |
|
38 |
//Category shortcode
|
39 |
-
function return_smooth_slider_category($catg_slug='',$offset=0) {
|
40 |
global $smooth_slider;
|
41 |
$slider_html='';
|
42 |
-
$
|
43 |
$slider_handle='smooth_slider_'.$catg_slug;
|
44 |
-
$
|
|
|
|
|
45 |
return $slider_html;
|
46 |
}
|
47 |
|
@@ -56,12 +62,14 @@ function smooth_slider_category_shortcode($atts) {
|
|
56 |
add_shortcode('smoothcategory', 'smooth_slider_category_shortcode');
|
57 |
|
58 |
//Recent Posts Shortcode
|
59 |
-
function return_smooth_slider_recent($offset=0) {
|
60 |
global $smooth_slider;
|
61 |
$slider_html='';
|
62 |
-
$
|
63 |
$slider_handle='smooth_slider_recent';
|
64 |
-
$
|
|
|
|
|
65 |
return $slider_html;
|
66 |
}
|
67 |
|
1 |
<?php
|
2 |
+
function return_global_smooth_slider($slider_handle,$r_array,$smooth_slider,$set,$data=array()){
|
3 |
$slider_html='';
|
4 |
+
$slider_html=get_global_smooth_slider($slider_handle,$r_array,$smooth_slider,$set,$echo='0',$data);
|
5 |
return $slider_html;
|
6 |
}
|
7 |
//Basic Shortcode
|
8 |
+
function return_smooth_slider($slider_id='',$offset='0', $data=array()) {
|
9 |
global $smooth_slider;
|
10 |
$slider_html='';
|
11 |
if($smooth_slider['multiple_sliders'] == '1' and is_singular()){
|
18 |
$slider_id = '1';
|
19 |
}
|
20 |
if(!empty($slider_id)){
|
21 |
+
$set='';
|
22 |
+
$data['slider_id']=$slider_id;
|
23 |
$slider_handle='smooth_slider_'.$slider_id;
|
24 |
+
$data['slider_handle']=$slider_handle;
|
25 |
+
$r_array = carousel_posts_on_slider($smooth_slider['no_posts'], $offset, $slider_id, $echo = '0', $set,$data);
|
26 |
+
$slider_handle='smooth_slider_'.$slider_id;
|
27 |
+
$slider_html=return_global_smooth_slider($slider_handle,$r_array,$slider_id,$set,$data);
|
28 |
} //end of not empty slider_id condition
|
29 |
return $slider_html;
|
30 |
}
|
40 |
add_shortcode('smoothslider', 'smooth_slider_simple_shortcode');
|
41 |
|
42 |
//Category shortcode
|
43 |
+
function return_smooth_slider_category($catg_slug='',$offset=0, $data=array()) {
|
44 |
global $smooth_slider;
|
45 |
$slider_html='';
|
46 |
+
$set='';
|
47 |
$slider_handle='smooth_slider_'.$catg_slug;
|
48 |
+
$data['slider_handle']=$slider_handle;
|
49 |
+
$r_array = carousel_posts_on_slider_category($smooth_slider['no_posts'], $catg_slug, $offset, '0',$set,$data);
|
50 |
+
$slider_html=return_global_smooth_slider($slider_handle,$r_array,$slider_id='',$set,$data);
|
51 |
return $slider_html;
|
52 |
}
|
53 |
|
62 |
add_shortcode('smoothcategory', 'smooth_slider_category_shortcode');
|
63 |
|
64 |
//Recent Posts Shortcode
|
65 |
+
function return_smooth_slider_recent($offset=0, $data=array()) {
|
66 |
global $smooth_slider;
|
67 |
$slider_html='';
|
68 |
+
$set='';
|
69 |
$slider_handle='smooth_slider_recent';
|
70 |
+
$data['slider_handle']=$slider_handle;
|
71 |
+
$r_array = carousel_posts_on_slider_recent($smooth_slider['no_posts'], $offset, '0',$set,$data);
|
72 |
+
$slider_html=return_global_smooth_slider($slider_handle,$r_array,$slider_id='',$set,$data);
|
73 |
return $slider_html;
|
74 |
}
|
75 |
|
slider_versions/smooth_1.php
CHANGED
@@ -1,5 +1,22 @@
|
|
1 |
<?php
|
2 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
//If no Skin specified, consider Default
|
4 |
/* Added function call to skin for 2.6 */
|
5 |
$skin='default';
|
@@ -17,12 +34,13 @@ function smooth_global_posts_processor( $posts, $smooth_slider,$out_echo ){
|
|
17 |
$r_array=$post_processor_fn($posts, $smooth_slider,$out_echo);
|
18 |
return $r_array;
|
19 |
}
|
20 |
-
function get_global_smooth_slider($slider_handle,$r_array,$
|
21 |
//If no Skin specified, consider Default
|
22 |
/* Added function for call to skin 2.6*/
|
23 |
$skin='default';
|
24 |
global $smooth_slider,$post;
|
25 |
$smooth_slider_style='';
|
|
|
26 |
if(is_singular()) {
|
27 |
$smooth_slider_style = get_post_meta($post->ID,'_smooth_slider_style',true);
|
28 |
//for compatibility with lower versions of Smooth Slider
|
@@ -50,7 +68,7 @@ function get_global_smooth_slider($slider_handle,$r_array,$slider_id='',$echo='1
|
|
50 |
return $r_array;
|
51 |
}
|
52 |
//Basic Smooth Slider
|
53 |
-
function carousel_posts_on_slider($max_posts, $offset=0, $slider_id = '1',$out_echo = '1') {
|
54 |
global $smooth_slider,$default_slider;
|
55 |
foreach($default_slider as $key=>$value){
|
56 |
if(!isset($smooth_slider[$key])) $smooth_slider[$key]='';
|
@@ -71,7 +89,7 @@ function carousel_posts_on_slider($max_posts, $offset=0, $slider_id = '1',$out_e
|
|
71 |
WHERE (b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')) AND a.slider_id = '$slider_id'
|
72 |
ORDER BY ".$orderby." LIMIT $offset, $max_posts", OBJECT);
|
73 |
|
74 |
-
$r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo );
|
75 |
return $r_array;
|
76 |
}
|
77 |
function get_smooth_slider($slider_id='',$offset=0) {
|
@@ -85,14 +103,17 @@ function get_smooth_slider($slider_id='',$offset=0) {
|
|
85 |
}
|
86 |
if(empty($slider_id) or !isset($slider_id)) $slider_id = '1';
|
87 |
if(!empty($slider_id)){
|
88 |
-
$
|
|
|
|
|
89 |
$slider_handle='smooth_slider_'.$slider_id;
|
90 |
-
|
|
|
|
|
91 |
} //end of not empty slider_id condition
|
92 |
}
|
93 |
-
|
94 |
//For displaying category specific posts in chronologically reverse order, from Smooth Slider 2.3.3
|
95 |
-
function carousel_posts_on_slider_category($max_posts='5', $catg_slug='', $offset=0, $out_echo = '1') {
|
96 |
global $smooth_slider,$default_slider;
|
97 |
foreach($default_slider as $key=>$value){
|
98 |
if(!isset($smooth_slider[$key])) $smooth_slider[$key]='';
|
@@ -117,17 +138,20 @@ function carousel_posts_on_slider_category($max_posts='5', $catg_slug='', $offse
|
|
117 |
//extract posts
|
118 |
$posts = get_posts('numberposts='.$max_posts.'&offset='.$offset.'&category='.$slider_cat.$orderby);
|
119 |
|
120 |
-
$r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo );
|
121 |
return $r_array;
|
122 |
}
|
123 |
function get_smooth_slider_category($catg_slug,$offset=0) {
|
124 |
global $smooth_slider;
|
125 |
-
$
|
126 |
-
$
|
127 |
-
|
|
|
|
|
|
|
128 |
}
|
129 |
//For displaying recent posts in chronologically reverse order, from Smooth Slider 2.4
|
130 |
-
function carousel_posts_on_slider_recent($max_posts='5', $offset=0, $out_echo = '1') {
|
131 |
global $smooth_slider;
|
132 |
$rand = isset($smooth_slider['rand'])?$smooth_slider['rand']:'';
|
133 |
if(isset($rand) and $rand=='1'){
|
@@ -139,14 +163,17 @@ function carousel_posts_on_slider_recent($max_posts='5', $offset=0, $out_echo =
|
|
139 |
//extract posts data
|
140 |
$posts = get_posts('numberposts='.$max_posts.'&offset='.$offset.$orderby);
|
141 |
|
142 |
-
$r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo );
|
143 |
return $r_array;
|
144 |
}
|
145 |
function get_smooth_slider_recent($offset=0) {
|
146 |
global $smooth_slider;
|
147 |
-
$
|
|
|
148 |
$slider_handle='smooth_slider_recent';
|
149 |
-
|
|
|
|
|
150 |
}
|
151 |
require_once (dirname (__FILE__) . '/shortcodes_1.php');
|
152 |
require_once (dirname (__FILE__) . '/widgets_1.php');
|
@@ -333,7 +360,7 @@ function smooth_get_inline_css($echo='0'){
|
|
333 |
$style_start= ($echo=='0') ? 'style="':'';
|
334 |
$style_end= ($echo=='0') ? '"':'';
|
335 |
//smooth_slider
|
336 |
-
$smooth_slider_css['smooth_slider']=$style_start.'max-width:'.$smooth_slider['width'].'px;
|
337 |
|
338 |
if ($smooth_slider['title_fstyle'] == "bold" or $smooth_slider['title_fstyle'] == "bold italic" ){$slider_title_font = "bold";} else { $slider_title_font = "normal"; }
|
339 |
if ($smooth_slider['title_fstyle'] == "italic" or $smooth_slider['title_fstyle'] == "bold italic" ){$slider_title_style = "italic";} else {$slider_title_style = "normal";}
|
1 |
<?php
|
2 |
+
function smooth_global_data_processor( $slides, $smooth_slider, $out_echo, $set='',$data=array()){
|
3 |
+
//If no Skin specified, consider Default
|
4 |
+
$skin='default';
|
5 |
+
if(isset($smooth_slider['stylesheet'])) $skin=$smooth_slider['stylesheet'];
|
6 |
+
if(empty($skin))$skin='default';
|
7 |
+
|
8 |
+
//Always include Default Skin
|
9 |
+
require_once ( dirname( dirname(__FILE__) ) . '/css/skins/default/functions.php');
|
10 |
+
//Include Skin function file
|
11 |
+
if($skin!='default' and file_exists(dirname( dirname(__FILE__) ) . '/css/skins/'.$skin.'/functions.php'))require_once ( dirname( dirname(__FILE__) ) . '/css/skins/'.$skin.'/functions.php');
|
12 |
+
|
13 |
+
//Skin specific data processor and html generation
|
14 |
+
$data_processor_fn='smooth_data_processor_'.$skin;
|
15 |
+
if(!function_exists($data_processor_fn))$data_processor_fn='smooth_data_processor_default';
|
16 |
+
$r_array=$data_processor_fn($slides, $smooth_slider,$out_echo);
|
17 |
+
return $r_array;
|
18 |
+
}
|
19 |
+
function smooth_global_posts_processor( $posts, $smooth_slider, $out_echo, $set='',$data=array() ){
|
20 |
//If no Skin specified, consider Default
|
21 |
/* Added function call to skin for 2.6 */
|
22 |
$skin='default';
|
34 |
$r_array=$post_processor_fn($posts, $smooth_slider,$out_echo);
|
35 |
return $r_array;
|
36 |
}
|
37 |
+
function get_global_smooth_slider($slider_handle,$r_array,$smooth_slider, $set='', $echo='1', $data=array()){
|
38 |
//If no Skin specified, consider Default
|
39 |
/* Added function for call to skin 2.6*/
|
40 |
$skin='default';
|
41 |
global $smooth_slider,$post;
|
42 |
$smooth_slider_style='';
|
43 |
+
$slider_id=isset($data['slider_id'])?$data['slider_id']:'';
|
44 |
if(is_singular()) {
|
45 |
$smooth_slider_style = get_post_meta($post->ID,'_smooth_slider_style',true);
|
46 |
//for compatibility with lower versions of Smooth Slider
|
68 |
return $r_array;
|
69 |
}
|
70 |
//Basic Smooth Slider
|
71 |
+
function carousel_posts_on_slider($max_posts, $offset=0, $slider_id = '1',$out_echo = '1', $set='', $data=array() ) {
|
72 |
global $smooth_slider,$default_slider;
|
73 |
foreach($default_slider as $key=>$value){
|
74 |
if(!isset($smooth_slider[$key])) $smooth_slider[$key]='';
|
89 |
WHERE (b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')) AND a.slider_id = '$slider_id'
|
90 |
ORDER BY ".$orderby." LIMIT $offset, $max_posts", OBJECT);
|
91 |
|
92 |
+
$r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo, $set, $data );
|
93 |
return $r_array;
|
94 |
}
|
95 |
function get_smooth_slider($slider_id='',$offset=0) {
|
103 |
}
|
104 |
if(empty($slider_id) or !isset($slider_id)) $slider_id = '1';
|
105 |
if(!empty($slider_id)){
|
106 |
+
$set='';
|
107 |
+
$data=array();
|
108 |
+
$data['slider_id']=$slider_id;
|
109 |
$slider_handle='smooth_slider_'.$slider_id;
|
110 |
+
$data['slider_handle']=$slider_handle;
|
111 |
+
$r_array = carousel_posts_on_slider($smooth_slider['no_posts'], $offset, $slider_id, '0', $set, $data );
|
112 |
+
get_global_smooth_slider($slider_handle,$r_array,$smooth_slider,$set,$echo='1',$data);
|
113 |
} //end of not empty slider_id condition
|
114 |
}
|
|
|
115 |
//For displaying category specific posts in chronologically reverse order, from Smooth Slider 2.3.3
|
116 |
+
function carousel_posts_on_slider_category($max_posts='5', $catg_slug='', $offset=0, $out_echo = '1', $set='', $data=array()) {
|
117 |
global $smooth_slider,$default_slider;
|
118 |
foreach($default_slider as $key=>$value){
|
119 |
if(!isset($smooth_slider[$key])) $smooth_slider[$key]='';
|
138 |
//extract posts
|
139 |
$posts = get_posts('numberposts='.$max_posts.'&offset='.$offset.'&category='.$slider_cat.$orderby);
|
140 |
|
141 |
+
$r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo, $set, $data );
|
142 |
return $r_array;
|
143 |
}
|
144 |
function get_smooth_slider_category($catg_slug,$offset=0) {
|
145 |
global $smooth_slider;
|
146 |
+
$set='';
|
147 |
+
$data=array();
|
148 |
+
$slider_handle='foto_slider_'.$catg_slug;
|
149 |
+
$data['slider_handle']=$slider_handle;
|
150 |
+
$r_array = carousel_posts_on_slider_category($smooth_slider['no_posts'], $catg_slug, $offset, '0', $set, $data);
|
151 |
+
get_global_smooth_slider($slider_handle,$r_array,$smooth_slider,$set,$echo='1',$data);
|
152 |
}
|
153 |
//For displaying recent posts in chronologically reverse order, from Smooth Slider 2.4
|
154 |
+
function carousel_posts_on_slider_recent($max_posts='5', $offset=0, $out_echo = '1', $set='', $data=array()) {
|
155 |
global $smooth_slider;
|
156 |
$rand = isset($smooth_slider['rand'])?$smooth_slider['rand']:'';
|
157 |
if(isset($rand) and $rand=='1'){
|
163 |
//extract posts data
|
164 |
$posts = get_posts('numberposts='.$max_posts.'&offset='.$offset.$orderby);
|
165 |
|
166 |
+
$r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo, $set,$data );
|
167 |
return $r_array;
|
168 |
}
|
169 |
function get_smooth_slider_recent($offset=0) {
|
170 |
global $smooth_slider;
|
171 |
+
$set='';
|
172 |
+
$data=array();
|
173 |
$slider_handle='smooth_slider_recent';
|
174 |
+
$data['slider_handle']=$slider_handle;
|
175 |
+
$r_array = carousel_posts_on_slider_recent($smooth_slider['no_posts'], $offset, '0', $set,$data);
|
176 |
+
get_global_smooth_slider($slider_handle,$r_array,$smooth_slider,$set,$echo='1',$data);
|
177 |
}
|
178 |
require_once (dirname (__FILE__) . '/shortcodes_1.php');
|
179 |
require_once (dirname (__FILE__) . '/widgets_1.php');
|
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";}
|
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.
|
7 |
Author: SliderVilla
|
8 |
Author URI: http://slidervilla.com/
|
9 |
Wordpress version supported: 2.9 and above
|
@@ -28,14 +28,14 @@ Wordpress version supported: 2.9 and above
|
|
28 |
//Please visit Plugin page http://slidervilla.com/smooth-slider/ for Changelog
|
29 |
//on activation
|
30 |
//defined global variables and constants here
|
31 |
-
global $smooth_slider,$default_slider,$smooth_db_version;
|
32 |
$smooth_slider = get_option('smooth_slider_options');
|
33 |
-
$smooth_db_version='2.6.
|
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.
|
39 |
if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) )
|
40 |
define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
41 |
if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) ){
|
@@ -44,8 +44,8 @@ if ( ! defined( 'SMOOTH_SLIDER_CSS_DIR' ) ){
|
|
44 |
}
|
45 |
|
46 |
// Need to delete the previously created options in old versions and create only one option field for Smooth Slider
|
47 |
-
$default_slider = array();
|
48 |
-
$default_slider = array('speed'=>'7',
|
49 |
'no_posts'=>'5',
|
50 |
'bg_color'=>'#ffffff',
|
51 |
'height'=>'250',
|
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.2
|
7 |
Author: SliderVilla
|
8 |
Author URI: http://slidervilla.com/
|
9 |
Wordpress version supported: 2.9 and above
|
28 |
//Please visit Plugin page http://slidervilla.com/smooth-slider/ for Changelog
|
29 |
//on activation
|
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.2'; //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.2",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' ) ){
|
44 |
}
|
45 |
|
46 |
// Need to delete the previously created options in old versions and create only one option field for Smooth Slider
|
47 |
+
$default_smooth_slider_settings=$default_slider = array();
|
48 |
+
$default_smooth_slider_settings=$default_slider = array('speed'=>'7',
|
49 |
'no_posts'=>'5',
|
50 |
'bg_color'=>'#ffffff',
|
51 |
'height'=>'250',
|