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.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.5.1
- css/admin.css +3 -2
- css/skins/default/style.css +9 -14
- css/skins/sample/style.css +10 -19
- includes/media-images.php +14 -6
- includes/sslider-get-the-image-functions.php +11 -10
- readme.txt +11 -2
- settings/settings.php +0 -10
- settings/sliders.php +1 -1
- slider_versions/smooth_1.php +11 -10
- smooth-slider.php +7 -5
- uninstall.php +2 -1
css/admin.css
CHANGED
@@ -13,7 +13,7 @@ form#smooth_slider_form input.regular-text{width:60%;}
|
|
13 |
form#smooth_slider_form select{width:60%;}
|
14 |
form#smooth_slider_form select {}
|
15 |
form#smooth_slider_form option{display:block;color:#666;}
|
16 |
-
code {word-break:break-all;}
|
17 |
form#smooth_slider_form input[type="checkbox"] {}
|
18 |
form#smooth_slider_form input[type="radio"] {}
|
19 |
|
@@ -84,7 +84,7 @@ div.sub_settings_m{padding:0 0px 10px 10px;background:#fff;margin:5px 0;}
|
|
84 |
#sldr_close {float:right;}
|
85 |
|
86 |
/*Buttons*/
|
87 |
-
.svilla_button{background:#333 !important;color:#fff !important;font-size:13px;width:100%;text-align:left;border:0 !important;padding:10px 5%;font-weight:bold;cursor:pointer;}a.svilla_button{text-decoration:none;display:block;margin-right:10px;width:100%;font-weight:bold;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
|
88 |
.svilla_gray_button{background:#00c0e4 !important;padding:5px 5%;}a.svilla_gray_button{color:#ffffff !important; }
|
89 |
a.svorangebutton{background:#f07057;color:#fff !important;margin-right:10px;font-size:13px;width:100%;text-align:left;border:0 !important;font-weight:bold;cursor:pointer;text-decoration:none;display:block;font-weight:bold;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;float:right;max-width:25%;padding:10px 0px;text-align:center;max-width:25%;}
|
90 |
|
@@ -105,6 +105,7 @@ font-family: "Century Gothic", "Avant Garde", "Trebuchet MS", sans-serif;}
|
|
105 |
#poststuff .postbox{min-width:100%;}
|
106 |
|
107 |
.frmdiv{float:left;width:70%;}
|
|
|
108 |
/*responsive*/
|
109 |
@media only screen and (min-width: 1280px) { .ui-tabs-vertical-left .ui-tabs-nav li {width:175px !important;}}
|
110 |
@media only screen and (min-width: 768px) and (max-width: 1279px) {.ui-tabs-vertical-left .ui-tabs-panel {width: 75%;}}
|
13 |
form#smooth_slider_form select{width:60%;}
|
14 |
form#smooth_slider_form select {}
|
15 |
form#smooth_slider_form option{display:block;color:#666;}
|
16 |
+
code {word-break:break-all;line-height:22px;background:#f3f3f3;}
|
17 |
form#smooth_slider_form input[type="checkbox"] {}
|
18 |
form#smooth_slider_form input[type="radio"] {}
|
19 |
|
84 |
#sldr_close {float:right;}
|
85 |
|
86 |
/*Buttons*/
|
87 |
+
.svilla_button{background:#333 !important;color:#fff !important;font-size:13px;width:100%;text-align:left;border:0 !important;padding:10px 5%;font-weight:bold;cursor:pointer;margin:1px 0;}a.svilla_button{text-decoration:none;display:block;margin-right:10px;width:100%;font-weight:bold;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
|
88 |
.svilla_gray_button{background:#00c0e4 !important;padding:5px 5%;}a.svilla_gray_button{color:#ffffff !important; }
|
89 |
a.svorangebutton{background:#f07057;color:#fff !important;margin-right:10px;font-size:13px;width:100%;text-align:left;border:0 !important;font-weight:bold;cursor:pointer;text-decoration:none;display:block;font-weight:bold;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;float:right;max-width:25%;padding:10px 0px;text-align:center;max-width:25%;}
|
90 |
|
105 |
#poststuff .postbox{min-width:100%;}
|
106 |
|
107 |
.frmdiv{float:left;width:70%;}
|
108 |
+
|
109 |
/*responsive*/
|
110 |
@media only screen and (min-width: 1280px) { .ui-tabs-vertical-left .ui-tabs-nav li {width:175px !important;}}
|
111 |
@media only screen and (min-width: 768px) and (max-width: 1279px) {.ui-tabs-vertical-left .ui-tabs-panel {width: 75%;}}
|
css/skins/default/style.css
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
@charset "utf-8";
|
2 |
-
/*
|
3 |
-
|
4 |
-
Website:http://www.clickonf5.org
|
5 |
-
*/
|
6 |
-
/*Smooth Slider specific styles*/
|
7 |
.smooth_slider_fouc .smooth_slider {display: none;}
|
8 |
.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;}
|
9 |
.smooth_slider{padding:0 5px;width:100%;}
|
@@ -37,12 +34,10 @@ Website:http://www.clickonf5.org
|
|
37 |
.smooth_slider .smooth_nav a.smooth_slider_inav{display:block;float:left;}
|
38 |
.smooth_slider .smooth_nav a.smooth_slider_bnav{background: transparent url(buttons/default/nav.png) no-repeat 0 0;margin:0 3px;}
|
39 |
/* smooth Video */
|
40 |
-
.smooth_slider_eshortcode{position:relative;}
|
41 |
-
.smooth_slider video{
|
42 |
-
|
43 |
-
|
44 |
-
}
|
45 |
-
.mejs-overlay-
|
46 |
-
|
47 |
-
.smooth_slider_eshortcode div.mejs-inner,div.wp-video-shortcode,div.wp-video,.mejs-layers,.mejs-overlay-play{height:100% !important;max-width:100% !important;}
|
48 |
-
.wp-core-ui .button-primary{float:left;}
|
1 |
@charset "utf-8";
|
2 |
+
/*CSS Document
|
3 |
+
Smooth Slider default styles*/
|
|
|
|
|
|
|
4 |
.smooth_slider_fouc .smooth_slider {display: none;}
|
5 |
.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;}
|
6 |
.smooth_slider{padding:0 5px;width:100%;}
|
34 |
.smooth_slider .smooth_nav a.smooth_slider_inav{display:block;float:left;}
|
35 |
.smooth_slider .smooth_nav a.smooth_slider_bnav{background: transparent url(buttons/default/nav.png) no-repeat 0 0;margin:0 3px;}
|
36 |
/* smooth Video */
|
37 |
+
.smooth_slider .smooth_slider_eshortcode{position:relative;}
|
38 |
+
.smooth_slider video{display: inline-block;width: 100% !important;margin: 0 !important;}
|
39 |
+
.smooth_slider .mejs-container{margin:0 !important;}
|
40 |
+
.smooth_slider .mejs-overlay-button{margin-top:-50px !important;}
|
41 |
+
.smooth_slider div.mejs-mediaelement{height:auto !important;max-width:100% !important;}
|
42 |
+
.smooth_slider div.mejs-inner,.smooth_slider div.wp-video-shortcode,.smooth_slider div.wp-video,.smooth_slider .mejs-layers,.smooth_slider .mejs-overlay-play{height:100% !important;max-width:100% !important;}
|
43 |
+
|
|
|
|
css/skins/sample/style.css
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
@charset "utf-8";
|
2 |
-
/*
|
3 |
-
|
4 |
-
|
5 |
-
*/
|
6 |
-
@charset "utf-8";
|
7 |
-
/* CSS Document
|
8 |
-
Author:Tejaswini
|
9 |
-
Website:http://www.clickonf5.org
|
10 |
-
*/
|
11 |
-
/*Smooth Slider specific styles*/
|
12 |
.smooth_slider_fouc .smooth_slider {display: none;}
|
13 |
.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;}
|
14 |
.smooth_slider{padding:0 5px;width:100%;}
|
@@ -42,14 +35,12 @@ Website:http://www.clickonf5.org
|
|
42 |
.smooth_slider .smooth_nav a.smooth_slider_inav{display:block;float:left;}
|
43 |
.smooth_slider .smooth_nav a.smooth_slider_bnav{background: transparent url(buttons/default/nav.png) no-repeat 0 0;margin:0 3px;}
|
44 |
/* smooth Video */
|
45 |
-
.smooth_slider_eshortcode{position:relative;}
|
46 |
-
.smooth_slider video{
|
47 |
-
|
48 |
-
|
49 |
-
}
|
50 |
-
.mejs-overlay-
|
51 |
-
.smooth_slider_eshortcode div.mejs-mediaelement{height:auto !important;max-width:100% !important;}
|
52 |
-
.smooth_slider_eshortcode div.mejs-inner,div.wp-video-shortcode,div.wp-video,.mejs-layers,.mejs-overlay-play{height:100% !important;max-width:100% !important;}
|
53 |
|
54 |
-
/* Add
|
55 |
/**/
|
1 |
@charset "utf-8";
|
2 |
+
/*CSS Document
|
3 |
+
Smooth Slider
|
4 |
+
sample stylesheet*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
.smooth_slider_fouc .smooth_slider {display: none;}
|
6 |
.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;}
|
7 |
.smooth_slider{padding:0 5px;width:100%;}
|
35 |
.smooth_slider .smooth_nav a.smooth_slider_inav{display:block;float:left;}
|
36 |
.smooth_slider .smooth_nav a.smooth_slider_bnav{background: transparent url(buttons/default/nav.png) no-repeat 0 0;margin:0 3px;}
|
37 |
/* smooth Video */
|
38 |
+
.smooth_slider .smooth_slider_eshortcode{position:relative;}
|
39 |
+
.smooth_slider video{display: inline-block;width: 100% !important;margin: 0 !important;}
|
40 |
+
.smooth_slider .mejs-container{margin:0 !important;}
|
41 |
+
.smooth_slider .mejs-overlay-button{margin-top:-50px !important;}
|
42 |
+
.smooth_slider div.mejs-mediaelement{height:auto !important;max-width:100% !important;}
|
43 |
+
.smooth_slider div.mejs-inner,.smooth_slider div.wp-video-shortcode,.smooth_slider div.wp-video,.smooth_slider .mejs-layers,.smooth_slider .mejs-overlay-play{height:100% !important;max-width:100% !important;}
|
|
|
|
|
44 |
|
45 |
+
/* Add Generated CSS (from Smooth Slider settings) below */
|
46 |
/**/
|
includes/media-images.php
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
//For media files
|
3 |
function smooth_slider_media_lib_edit($form_fields, $post){
|
|
|
|
|
4 |
global $smooth_slider;
|
5 |
if (current_user_can( $smooth_slider['user_level'] )) {
|
6 |
if ( substr($post->post_mime_type, 0, 5) == 'image') {
|
@@ -34,9 +36,9 @@ if (current_user_can( $smooth_slider['user_level'] )) {
|
|
34 |
$sname_html='';
|
35 |
|
36 |
foreach ($sliders as $slider) {
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
$form_fields['slider_name[]'] = array(
|
41 |
'label' => __(''),
|
42 |
'input' => 'html',
|
@@ -66,13 +68,18 @@ if (current_user_can( $smooth_slider['user_level'] )) {
|
|
66 |
unset( $form_fields['sslider_link'] );
|
67 |
unset( $form_fields['sslider_nolink'] );
|
68 |
}
|
69 |
-
|
|
|
70 |
}
|
|
|
|
|
71 |
}
|
72 |
|
73 |
add_filter('attachment_fields_to_edit', 'smooth_slider_media_lib_edit', 10, 2);
|
74 |
|
75 |
function smooth_slider_media_lib_save($post, $attachment){
|
|
|
|
|
76 |
global $smooth_slider;
|
77 |
if (current_user_can( $smooth_slider['user_level'] )) {
|
78 |
global $wpdb, $table_prefix;
|
@@ -124,8 +131,9 @@ if (current_user_can( $smooth_slider['user_level'] )) {
|
|
124 |
update_post_meta($post_id, 'sslider_nolink', $attachment['sslider_nolink']);
|
125 |
}
|
126 |
}
|
127 |
-
|
|
|
128 |
}
|
129 |
|
130 |
add_filter('attachment_fields_to_save', 'smooth_slider_media_lib_save', 10, 2);
|
131 |
-
?>
|
1 |
<?php
|
2 |
//For media files
|
3 |
function smooth_slider_media_lib_edit($form_fields, $post){
|
4 |
+
global $wp_version;
|
5 |
+
if ( version_compare( $wp_version, '3.5', '<' ) ) : // Using WordPress less than 3.5
|
6 |
global $smooth_slider;
|
7 |
if (current_user_can( $smooth_slider['user_level'] )) {
|
8 |
if ( substr($post->post_mime_type, 0, 5) == 'image') {
|
36 |
$sname_html='';
|
37 |
|
38 |
foreach ($sliders as $slider) {
|
39 |
+
if(in_array($slider['slider_id'],$post_slider_arr)){$selected = 'selected';} else{$selected='';}
|
40 |
+
$sname_html =$sname_html.'<option value="'.$slider['slider_id'].'" '.$selected.'>'.$slider['slider_name'].'</option>';
|
41 |
+
}
|
42 |
$form_fields['slider_name[]'] = array(
|
43 |
'label' => __(''),
|
44 |
'input' => 'html',
|
68 |
unset( $form_fields['sslider_link'] );
|
69 |
unset( $form_fields['sslider_nolink'] );
|
70 |
}
|
71 |
+
|
72 |
+
|
73 |
}
|
74 |
+
endif; //less than WP 3.5
|
75 |
+
return $form_fields;
|
76 |
}
|
77 |
|
78 |
add_filter('attachment_fields_to_edit', 'smooth_slider_media_lib_edit', 10, 2);
|
79 |
|
80 |
function smooth_slider_media_lib_save($post, $attachment){
|
81 |
+
global $wp_version;
|
82 |
+
if ( version_compare( $wp_version, '3.5', '<' ) ) : // Using WordPress less than 3.5
|
83 |
global $smooth_slider;
|
84 |
if (current_user_can( $smooth_slider['user_level'] )) {
|
85 |
global $wpdb, $table_prefix;
|
131 |
update_post_meta($post_id, 'sslider_nolink', $attachment['sslider_nolink']);
|
132 |
}
|
133 |
}
|
134 |
+
endif; //less than WP 3.5
|
135 |
+
return $post;
|
136 |
}
|
137 |
|
138 |
add_filter('attachment_fields_to_save', 'smooth_slider_media_lib_save', 10, 2);
|
139 |
+
?>
|
includes/sslider-get-the-image-functions.php
CHANGED
@@ -89,24 +89,25 @@ function smooth_sslider_get_the_image( $args = array() ) {
|
|
89 |
$image = smooth_sslider_image_by_custom_field( $args );
|
90 |
|
91 |
/* If no image found and $the_post_thumbnail is set to true, check for a post image (WP feature). */
|
92 |
-
if (
|
93 |
$image = smooth_sslider_image_by_the_post_thumbnail( $args );
|
94 |
|
95 |
/* If no image found and $attachment is set to true, check for an image by attachment. */
|
96 |
-
if (
|
97 |
$image = smooth_sslider_image_by_attachment( $args );
|
98 |
|
99 |
/* If no image found and $image_scan is set to true, scan the post for images. */
|
100 |
-
if (
|
101 |
$image = smooth_sslider_image_by_scan( $args );
|
102 |
|
103 |
/* If no image found and a $default_image is set, get the default image. */
|
104 |
-
if (
|
105 |
$image = smooth_sslider_image_by_default( $args );
|
106 |
|
107 |
/* If an image is returned, run it through the display function. */
|
108 |
-
if ( $image )
|
109 |
$image = smooth_sslider_display_the_image( $args, $image );
|
|
|
110 |
|
111 |
/* Allow plugins/theme to override the final output. */
|
112 |
$image = apply_filters( 'smooth_sslider_get_the_image', $image );
|
@@ -285,13 +286,13 @@ function smooth_sslider_display_the_image( $args = array(), $image = false ) {
|
|
285 |
extract( $args );
|
286 |
|
287 |
/* If there is alt text, set it. Otherwise, default to the post title. */
|
288 |
-
$image_alt = ( ( $image['alt'] ) ? $image['alt'] : apply_filters( 'the_title', get_post_field( 'post_title', $post_id ) ) );
|
289 |
|
290 |
/* If there is a width or height, set them as HMTL-ready attributes. */
|
291 |
-
$width = ( ( $width ) ? ' width="' . esc_attr( $width ) . '"' : '' );
|
292 |
-
$height = ( ( $height ) ? ' height="' . esc_attr( $height ) . '"' : '' );
|
293 |
-
$style = ( ( $style ) ? ' '.$style : '' );
|
294 |
-
$a_attr = ( ( $a_attr ) ? ' '.$a_attr : '' );
|
295 |
|
296 |
/* Loop through the custom field keys and add them as classes. */
|
297 |
if ( is_array( $custom_key ) ) {
|
89 |
$image = smooth_sslider_image_by_custom_field( $args );
|
90 |
|
91 |
/* If no image found and $the_post_thumbnail is set to true, check for a post image (WP feature). */
|
92 |
+
if ( empty($image) && $the_post_thumbnail )
|
93 |
$image = smooth_sslider_image_by_the_post_thumbnail( $args );
|
94 |
|
95 |
/* If no image found and $attachment is set to true, check for an image by attachment. */
|
96 |
+
if ( empty($image) && $attachment )
|
97 |
$image = smooth_sslider_image_by_attachment( $args );
|
98 |
|
99 |
/* If no image found and $image_scan is set to true, scan the post for images. */
|
100 |
+
if ( empty($image) && $image_scan )
|
101 |
$image = smooth_sslider_image_by_scan( $args );
|
102 |
|
103 |
/* If no image found and a $default_image is set, get the default image. */
|
104 |
+
if ( empty($image) && $default_image )
|
105 |
$image = smooth_sslider_image_by_default( $args );
|
106 |
|
107 |
/* If an image is returned, run it through the display function. */
|
108 |
+
if ( isset($image) )
|
109 |
$image = smooth_sslider_display_the_image( $args, $image );
|
110 |
+
else $image='';
|
111 |
|
112 |
/* Allow plugins/theme to override the final output. */
|
113 |
$image = apply_filters( 'smooth_sslider_get_the_image', $image );
|
286 |
extract( $args );
|
287 |
|
288 |
/* If there is alt text, set it. Otherwise, default to the post title. */
|
289 |
+
$image_alt = ( isset( $image['alt'] ) ? $image['alt'] : apply_filters( 'the_title', get_post_field( 'post_title', $post_id ) ) );
|
290 |
|
291 |
/* If there is a width or height, set them as HMTL-ready attributes. */
|
292 |
+
$width = ( isset( $width ) ? ' width="' . esc_attr( $width ) . '"' : '' );
|
293 |
+
$height = ( isset( $height ) ? ' height="' . esc_attr( $height ) . '"' : '' );
|
294 |
+
$style = ( isset( $style ) ? ' '.$style : '' );
|
295 |
+
$a_attr = ( isset( $a_attr ) ? ' '.$a_attr : '' );
|
296 |
|
297 |
/* Loop through the custom field keys and add them as classes. */
|
298 |
if ( is_array( $custom_key ) ) {
|
readme.txt
CHANGED
@@ -4,14 +4,14 @@ Tags: slider, slideshow, wordpress slider, content slider, posts slider,image sl
|
|
4 |
Donate link: http://www.clickonf5.org/go/smooth-slider/
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 2.5
|
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 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="SliderVilla Premium WordPress Sliders">SliderVilla</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 |
|
@@ -137,6 +137,15 @@ Check the other FAQs on Smooth [Slider Documetation on SliderVilla](http://guide
|
|
137 |
|
138 |
== Changelog ==
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
Version 2.5 (05/30/2014)
|
141 |
|
142 |
1. New: Create Multiple Sliders from Sliders Panel
|
4 |
Donate link: http://www.clickonf5.org/go/smooth-slider/
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 2.5.1
|
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="SliderVilla Premium WordPress Sliders">SliderVilla</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 |
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
Version 2.5.1 (06/04/2014)
|
141 |
+
|
142 |
+
1. New: Removed promotional link text 'smooth slider' from the slider
|
143 |
+
2. Fix: Edit Media page having double post meta boxes
|
144 |
+
3. Fix: Add to Slider not working for media images
|
145 |
+
4. Fix: CSS changes for video slides and WordPress Video Shortcode
|
146 |
+
5. Fix: On Delete and Reinstall, options are not saved
|
147 |
+
6. Fix: Slider appears only if "Display slider" option is checked in Post Meta box
|
148 |
+
|
149 |
Version 2.5 (05/30/2014)
|
150 |
|
151 |
1. New: Create Multiple Sliders from Sliders Panel
|
settings/settings.php
CHANGED
@@ -275,16 +275,6 @@ else
|
|
275 |
|
276 |
<table class="form-table">
|
277 |
|
278 |
-
<tr valign="top" <?php if($smooth_slider['ver']=='step') echo 'style="display:none;"';?>>
|
279 |
-
<th scope="row"><?php _e('Help promoting Smooth Slider','smooth-slider'); ?></th>
|
280 |
-
<td><select name="smooth_slider_options[support]" >
|
281 |
-
<option value="1" <?php if ($smooth_slider['support'] == "1"){ echo "selected";}?> ><?php _e('Yes','smooth-slider'); ?></option>
|
282 |
-
<option value="0" <?php if ($smooth_slider['support'] == "0"){ echo "selected";}?> ><?php _e('No','smooth-slider'); ?></option>
|
283 |
-
</select>
|
284 |
-
<small><?php _e('Consider donating in case you select "No"','smooth-slider'); ?></small>
|
285 |
-
</td>
|
286 |
-
</tr>
|
287 |
-
|
288 |
<tr valign="top">
|
289 |
<th scope="row"><?php _e('Retain these html tags','smooth-slider'); ?></th>
|
290 |
<td><input type="text" name="smooth_slider_options[allowable_tags]" class="regular-text code" value="<?php echo $smooth_slider['allowable_tags']; ?>" />
|
275 |
|
276 |
<table class="form-table">
|
277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
<tr valign="top">
|
279 |
<th scope="row"><?php _e('Retain these html tags','smooth-slider'); ?></th>
|
280 |
<td><input type="text" name="smooth_slider_options[allowable_tags]" class="regular-text code" value="<?php echo $smooth_slider['allowable_tags']; ?>" />
|
settings/sliders.php
CHANGED
@@ -181,7 +181,7 @@ if (isset($_POST['reorder_posts_slider'])) {
|
|
181 |
<?php } ?>
|
182 |
|
183 |
<?php if(isset($smooth_slider['multiple_sliders']) && $smooth_slider['multiple_sliders'] == '1') {?>
|
184 |
-
<div id="new_slider" style="width:
|
185 |
<form action="" method="post" onsubmit="return slider_checkform(this);" >
|
186 |
<h3><?php _e('Enter New Slider Name','smooth-slider'); ?></h3>
|
187 |
<input type="hidden" name="create_new_slider" value="1" />
|
181 |
<?php } ?>
|
182 |
|
183 |
<?php if(isset($smooth_slider['multiple_sliders']) && $smooth_slider['multiple_sliders'] == '1') {?>
|
184 |
+
<div id="new_slider" style="width:56%;">
|
185 |
<form action="" method="post" onsubmit="return slider_checkform(this);" >
|
186 |
<h3><?php _e('Enter New Slider Name','smooth-slider'); ?></h3>
|
187 |
<input type="hidden" name="create_new_slider" value="1" />
|
slider_versions/smooth_1.php
CHANGED
@@ -53,7 +53,11 @@ function smooth_global_posts_processor( $posts, $smooth_slider,$out_echo ){
|
|
53 |
|
54 |
//filter hook
|
55 |
$slider_content=apply_filters('smooth_slide_excerpt',$slider_content,$post_id,$smooth_slider,$smooth_slider_css);
|
56 |
-
|
|
|
|
|
|
|
|
|
57 |
if($smooth_slider['img_pick'][0] == '1'){
|
58 |
$custom_key = array($smooth_slider['img_pick'][1]);
|
59 |
}
|
@@ -260,9 +264,7 @@ function get_global_smooth_slider($slider_handle,$r_array,$slider_id='',$echo='1
|
|
260 |
$html.='<div id="'.$slider_handle.'_next" class="smooth_next"></div>
|
261 |
<div id="'.$slider_handle.'_prev" class="smooth_prev"></div>';
|
262 |
}
|
263 |
-
|
264 |
-
$html.='<div class="sldrlink" '.$smooth_slider_css['sldrlink'].'><a href="http://slidervilla.com/smooth-slider/" target="_blank" '.$smooth_slider_css['sldrlink_a'].'>Smooth Slider</a></div>';
|
265 |
-
}
|
266 |
$html.='<div class="sldr_clearlt"></div><div class="sldr_clearrt"></div>
|
267 |
</div>';
|
268 |
if($echo == '1') {echo $html; }
|
@@ -300,13 +302,12 @@ function get_smooth_slider($slider_id='',$offset=0) {
|
|
300 |
global $smooth_slider;
|
301 |
|
302 |
if($smooth_slider['multiple_sliders'] == '1' and is_singular() and (empty($slider_id) or !isset($slider_id))){
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
}
|
307 |
-
if((!is_singular() or $smooth_slider['multiple_sliders'] != '1') and (empty($slider_id) or !isset($slider_id))){
|
308 |
-
$slider_id = '1';
|
309 |
}
|
|
|
|
|
310 |
if(!empty($slider_id)){
|
311 |
$r_array = carousel_posts_on_slider($smooth_slider['no_posts'], $offset, $slider_id, '0');
|
312 |
$slider_handle='smooth_slider_'.$slider_id;
|
53 |
|
54 |
//filter hook
|
55 |
$slider_content=apply_filters('smooth_slide_excerpt',$slider_content,$post_id,$smooth_slider,$smooth_slider_css);
|
56 |
+
if(!isset($smooth_slider['img_pick'][0])) $smooth_slider['img_pick'][0]='';
|
57 |
+
if(!isset($smooth_slider['img_pick'][2])) $smooth_slider['img_pick'][2]='';
|
58 |
+
if(!isset($smooth_slider['img_pick'][3])) $smooth_slider['img_pick'][3]='';
|
59 |
+
if(!isset($smooth_slider['img_pick'][5])) $smooth_slider['img_pick'][5]='';
|
60 |
+
|
61 |
if($smooth_slider['img_pick'][0] == '1'){
|
62 |
$custom_key = array($smooth_slider['img_pick'][1]);
|
63 |
}
|
264 |
$html.='<div id="'.$slider_handle.'_next" class="smooth_next"></div>
|
265 |
<div id="'.$slider_handle.'_prev" class="smooth_prev"></div>';
|
266 |
}
|
267 |
+
|
|
|
|
|
268 |
$html.='<div class="sldr_clearlt"></div><div class="sldr_clearrt"></div>
|
269 |
</div>';
|
270 |
if($echo == '1') {echo $html; }
|
302 |
global $smooth_slider;
|
303 |
|
304 |
if($smooth_slider['multiple_sliders'] == '1' and is_singular() and (empty($slider_id) or !isset($slider_id))){
|
305 |
+
global $post;
|
306 |
+
$post_id = $post->ID;
|
307 |
+
$slider_id = get_slider_for_the_post($post_id);
|
|
|
|
|
|
|
308 |
}
|
309 |
+
|
310 |
+
if(empty($slider_id) or !isset($slider_id)) $slider_id = '1';
|
311 |
if(!empty($slider_id)){
|
312 |
$r_array = carousel_posts_on_slider($smooth_slider['no_posts'], $offset, $slider_id, '0');
|
313 |
$slider_handle='smooth_slider_'.$slider_id;
|
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.5
|
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;
|
32 |
$smooth_slider = get_option('smooth_slider_options');
|
33 |
-
$smooth_db_version='2.5'; //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.5",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' ) ){
|
@@ -94,7 +94,6 @@ $default_slider = array('speed'=>'7',
|
|
94 |
'shortcode'=>'1',
|
95 |
'rand'=>'0',
|
96 |
'ver'=>'j',
|
97 |
-
'support'=>'0',
|
98 |
'fouc'=>'0',
|
99 |
'fx'=>'scrollHorz',
|
100 |
'css'=>'',
|
@@ -250,7 +249,7 @@ global $smooth_slider;
|
|
250 |
global $wpdb, $table_prefix, $post;
|
251 |
$table_name = $table_prefix.SLIDER_TABLE;
|
252 |
|
253 |
-
if(isset($_POST['slider']) and !isset($_POST['slider_name'])) {
|
254 |
$slider_id = '1';
|
255 |
if(is_post_on_any_slider($post_id)){
|
256 |
$sql = "DELETE FROM $table_name where post_id = '$post_id'";
|
@@ -540,6 +539,9 @@ add_action('publish_post', 'remove_from_slider');
|
|
540 |
add_action('edit_post', 'remove_from_slider');
|
541 |
add_action('deleted_post','delete_from_slider_table');
|
542 |
|
|
|
|
|
|
|
543 |
function smooth_slider_plugin_url( $path = '' ) {
|
544 |
global $wp_version;
|
545 |
if ( version_compare( $wp_version, '2.8', '<' ) ) { // Using WordPress 2.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.5.1
|
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;
|
32 |
$smooth_slider = get_option('smooth_slider_options');
|
33 |
+
$smooth_db_version='2.5.1'; //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.5.1",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' ) ){
|
94 |
'shortcode'=>'1',
|
95 |
'rand'=>'0',
|
96 |
'ver'=>'j',
|
|
|
97 |
'fouc'=>'0',
|
98 |
'fx'=>'scrollHorz',
|
99 |
'css'=>'',
|
249 |
global $wpdb, $table_prefix, $post;
|
250 |
$table_name = $table_prefix.SLIDER_TABLE;
|
251 |
|
252 |
+
if(isset($_POST['slider']) and !isset($_POST['slider_name'])) {
|
253 |
$slider_id = '1';
|
254 |
if(is_post_on_any_slider($post_id)){
|
255 |
$sql = "DELETE FROM $table_name where post_id = '$post_id'";
|
539 |
add_action('edit_post', 'remove_from_slider');
|
540 |
add_action('deleted_post','delete_from_slider_table');
|
541 |
|
542 |
+
add_action('edit_attachment', 'add_to_slider');
|
543 |
+
add_action('delete_attachment','delete_from_slider_table');
|
544 |
+
|
545 |
function smooth_slider_plugin_url( $path = '' ) {
|
546 |
global $wp_version;
|
547 |
if ( version_compare( $wp_version, '2.8', '<' ) ) { // Using WordPress 2.7
|
uninstall.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
//This plugin creates an entry in the options database. When the plugin will be deleted, this code will automatically delete the database entry from the options Wordpress table.
|
3 |
delete_option('smooth_slider_options');
|
|
|
4 |
//This plugin creates its own database tables to save the post ids for the posts and pages added to Smooth Slider. When the plugin will be deleted, the database tables will also get deleted.
|
5 |
global $wpdb, $table_prefix;
|
6 |
|
@@ -13,4 +14,4 @@ $sql = "DROP TABLE $slider_meta;";
|
|
13 |
$wpdb->query($sql);
|
14 |
$sql = "DROP TABLE $slider_postmeta;";
|
15 |
$wpdb->query($sql);
|
16 |
-
?>
|
1 |
<?php
|
2 |
//This plugin creates an entry in the options database. When the plugin will be deleted, this code will automatically delete the database entry from the options Wordpress table.
|
3 |
delete_option('smooth_slider_options');
|
4 |
+
delete_option('smooth_db_version');
|
5 |
//This plugin creates its own database tables to save the post ids for the posts and pages added to Smooth Slider. When the plugin will be deleted, the database tables will also get deleted.
|
6 |
global $wpdb, $table_prefix;
|
7 |
|
14 |
$wpdb->query($sql);
|
15 |
$sql = "DROP TABLE $slider_postmeta;";
|
16 |
$wpdb->query($sql);
|
17 |
+
?>
|