Version Description
- Fixed jQuery.mobile enqueued with the wrong URL since 1.2.1 on older WordPress releases
- Fixed some deprecation notices about jQuery.fn.bind() with WordPress 5.7
Download this release
Release Info
Developer | Cryout Creations |
Plugin | Serious Slider |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- cryout-serious-slider.php +7 -6
- readme.txt +7 -3
- resources/slider.js +3 -3
cryout-serious-slider.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Plugin Name: Cryout Serious Slider
|
3 |
Plugin URI: https://www.cryoutcreations.eu/wordpress-plugins/cryout-serious-slider
|
4 |
Description: A highly efficient SEO friendly fully translatable accessibility ready free image slider for WordPress. Seriously!
|
5 |
-
Version: 1.2.
|
6 |
Author: Cryout Creations
|
7 |
Author URI: https://www.cryoutcreations.eu
|
8 |
Text Domain: cryout-serious-slider
|
@@ -15,7 +15,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
15 |
|
16 |
class Cryout_Serious_Slider {
|
17 |
|
18 |
-
public $version = "1.2.
|
19 |
public $options = array();
|
20 |
public $shortcode_tag = 'serious-slider';
|
21 |
public $mce_tag = 'serious_slider';
|
@@ -210,12 +210,13 @@ class Cryout_Serious_Slider {
|
|
210 |
* frontend enqueues
|
211 |
***********************/
|
212 |
public function enqueue_scripts() {
|
213 |
-
if(version_compare(get_bloginfo('version'),'5.6', '<') )
|
214 |
// jQuery-mobile 1.4.5 for WP < 5.6
|
215 |
-
wp_enqueue_script( 'cryout-serious-slider-jquerymobile', plugins_url( 'resources/jquery.mobile.custom-
|
216 |
-
else
|
217 |
// jQuery-mobile 1.5.0-rc for WP 5.6 with jQuery 3.5 and no jQuery-Migrate
|
218 |
wp_enqueue_script( 'cryout-serious-slider-jquerymobile', plugins_url( 'resources/jquery.mobile.custom.min.js', __FILE__ ), array('jquery'), $this->version );
|
|
|
219 |
wp_enqueue_script( 'cryout-serious-slider-script', plugins_url( 'resources/slider.js', __FILE__ ), NULL, $this->version );
|
220 |
} // enqueue_scripts()
|
221 |
|
@@ -912,4 +913,4 @@ class Cryout_Serious_Slider {
|
|
912 |
/* * * * get things going * * * */
|
913 |
$cryout_serious_slider = new Cryout_Serious_Slider;
|
914 |
|
915 |
-
// EOF
|
2 |
Plugin Name: Cryout Serious Slider
|
3 |
Plugin URI: https://www.cryoutcreations.eu/wordpress-plugins/cryout-serious-slider
|
4 |
Description: A highly efficient SEO friendly fully translatable accessibility ready free image slider for WordPress. Seriously!
|
5 |
+
Version: 1.2.2
|
6 |
Author: Cryout Creations
|
7 |
Author URI: https://www.cryoutcreations.eu
|
8 |
Text Domain: cryout-serious-slider
|
15 |
|
16 |
class Cryout_Serious_Slider {
|
17 |
|
18 |
+
public $version = "1.2.2";
|
19 |
public $options = array();
|
20 |
public $shortcode_tag = 'serious-slider';
|
21 |
public $mce_tag = 'serious_slider';
|
210 |
* frontend enqueues
|
211 |
***********************/
|
212 |
public function enqueue_scripts() {
|
213 |
+
if(version_compare(get_bloginfo('version'),'5.6', '<') ) {
|
214 |
// jQuery-mobile 1.4.5 for WP < 5.6
|
215 |
+
wp_enqueue_script( 'cryout-serious-slider-jquerymobile', plugins_url( 'resources/jquery.mobile.custom-1.4.5.min.js', __FILE__ ), array('jquery'), $this->version );
|
216 |
+
} else {
|
217 |
// jQuery-mobile 1.5.0-rc for WP 5.6 with jQuery 3.5 and no jQuery-Migrate
|
218 |
wp_enqueue_script( 'cryout-serious-slider-jquerymobile', plugins_url( 'resources/jquery.mobile.custom.min.js', __FILE__ ), array('jquery'), $this->version );
|
219 |
+
}
|
220 |
wp_enqueue_script( 'cryout-serious-slider-script', plugins_url( 'resources/slider.js', __FILE__ ), NULL, $this->version );
|
221 |
} // enqueue_scripts()
|
222 |
|
913 |
/* * * * get things going * * * */
|
914 |
$cryout_serious_slider = new Cryout_Serious_Slider;
|
915 |
|
916 |
+
// EOF
|
readme.txt
CHANGED
@@ -6,9 +6,9 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
6 |
Tags: slider, slideshow, image slider, responsive slider, wordpress slider
|
7 |
Text Domain: cryout-serious-slider
|
8 |
Requires at least: 4.5
|
9 |
-
Requires PHP: 5.
|
10 |
-
Tested up to: 5.7.
|
11 |
-
Stable tag: 1.2.
|
12 |
|
13 |
Serious Slider is a highly efficient SEO friendly fully translatable accessibility ready free image slider for WordPress. Seriously!
|
14 |
|
@@ -100,6 +100,10 @@ Serious Slider works with all WordPress themes and has been designed to integrat
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
103 |
= 1.2.1 =
|
104 |
* Updated bundled jQuery-Mobile to 1.5-rc for WordPress 5.6+ without jQuery-Migrate and fixed JavaScript errors
|
105 |
* Fixed panels overlapping on smaller screens on the edit slider screen
|
6 |
Tags: slider, slideshow, image slider, responsive slider, wordpress slider
|
7 |
Text Domain: cryout-serious-slider
|
8 |
Requires at least: 4.5
|
9 |
+
Requires PHP: 5.6
|
10 |
+
Tested up to: 5.7.1
|
11 |
+
Stable tag: 1.2.2
|
12 |
|
13 |
Serious Slider is a highly efficient SEO friendly fully translatable accessibility ready free image slider for WordPress. Seriously!
|
14 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 1.2.2 =
|
104 |
+
* Fixed jQuery.mobile enqueued with the wrong URL since 1.2.1 on older WordPress releases
|
105 |
+
* Fixed some deprecation notices about jQuery.fn.bind() with WordPress 5.7
|
106 |
+
|
107 |
= 1.2.1 =
|
108 |
* Updated bundled jQuery-Mobile to 1.5-rc for WordPress 5.6+ without jQuery-Migrate and fixed JavaScript errors
|
109 |
* Fixed panels overlapping on smaller screens on the edit slider screen
|
resources/slider.js
CHANGED
@@ -341,12 +341,12 @@ if (typeof jQuery === 'undefined') {
|
|
341 |
|
342 |
/* swipe support for mobile devices */
|
343 |
jQuery(document).ready(function() {
|
344 |
-
jQuery(".cryout-serious-slider").swiperight
|
345 |
jQuery(this).carousel('prev');
|
346 |
});
|
347 |
-
jQuery(".cryout-serious-slider").swipeleft
|
348 |
jQuery(this).carousel('next');
|
349 |
});
|
350 |
});
|
351 |
|
352 |
-
/* FIN */
|
341 |
|
342 |
/* swipe support for mobile devices */
|
343 |
jQuery(document).ready(function() {
|
344 |
+
jQuery(".cryout-serious-slider").on('swiperight', function() {
|
345 |
jQuery(this).carousel('prev');
|
346 |
});
|
347 |
+
jQuery(".cryout-serious-slider").on('swipeleft', function() {
|
348 |
jQuery(this).carousel('next');
|
349 |
});
|
350 |
});
|
351 |
|
352 |
+
/* FIN */
|