Meteor Slides - Version 1.5.5

Version Description

  • Added support for responsive images using srcset in WordPress 4.4
  • Updated stylesheet with conflict fixes for the TwentySixteen theme
Download this release

Release Info

Developer jleuze
Plugin Icon 128x128 Meteor Slides
Version 1.5.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.5

css/meteor-slides.css CHANGED
@@ -1,4 +1,4 @@
1
- /* Stylesheet for the Meteor Slides 1.5.4 slideshow
2
 
3
  Copy "meteor-slides.css" from "/meteor-slides/css/" to your theme's directory to replace
4
  the plugin's default stylesheet.
@@ -125,13 +125,14 @@ ul.meteor-nav li {
125
  }
126
  .meteor-slides .meteor-nav a {
127
  border: none;
 
128
  display: block;
129
  outline: none;
130
  position: absolute;
131
  text-indent: -9999px;
132
  width: 27px;
133
  height: 100%;
134
- transition: all 0 ease 0;
135
  z-index: 998;
136
  }
137
  .meteor-nav .prev a {
@@ -179,6 +180,7 @@ header#branding .meteor-buttons {
179
  .meteor-slides .meteor-buttons a {
180
  background: url('../images/buttons.png') no-repeat bottom left;
181
  border: none;
 
182
  display: block;
183
  float: left;
184
  width: 9px;
@@ -186,7 +188,7 @@ header#branding .meteor-buttons {
186
  margin: 0 3px 0 0 !important;
187
  outline: none;
188
  text-indent: -9999px;
189
- transition: all 0 ease 0;
190
  }
191
  .meteor-buttons a:hover {
192
  background: url('../images/buttons.png') no-repeat bottom right;
1
+ /* Stylesheet for the Meteor Slides 1.5.5 slideshow
2
 
3
  Copy "meteor-slides.css" from "/meteor-slides/css/" to your theme's directory to replace
4
  the plugin's default stylesheet.
125
  }
126
  .meteor-slides .meteor-nav a {
127
  border: none;
128
+ box-shadow: none;
129
  display: block;
130
  outline: none;
131
  position: absolute;
132
  text-indent: -9999px;
133
  width: 27px;
134
  height: 100%;
135
+ transition: all 0s ease 0s;
136
  z-index: 998;
137
  }
138
  .meteor-nav .prev a {
180
  .meteor-slides .meteor-buttons a {
181
  background: url('../images/buttons.png') no-repeat bottom left;
182
  border: none;
183
+ box-shadow: none;
184
  display: block;
185
  float: left;
186
  width: 9px;
188
  margin: 0 3px 0 0 !important;
189
  outline: none;
190
  text-indent: -9999px;
191
+ transition: all 0s ease 0s;
192
  }
193
  .meteor-buttons a:hover {
194
  background: url('../images/buttons.png') no-repeat bottom right;
includes/meteor-slideshow.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /* Loop template for the Meteor Slides 1.5.4 slideshow
3
 
4
  Copy "meteor-slideshow.php" from "/meteor-slides/" to your theme's directory to replace
5
  the plugin's default slideshow loop.
1
  <?php
2
+ /* Loop template for the Meteor Slides 1.5.5 slideshow
3
 
4
  Copy "meteor-slideshow.php" from "/meteor-slides/" to your theme's directory to replace
5
  the plugin's default slideshow loop.
js/slideshow.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Script for the Meteor Slides 1.5.4 slideshow
2
 
3
  Copy "slideshow.js" from "/meteor-slides/js/" to your theme's directory to replace
4
  the plugin's default slideshow script.
1
+ /* Script for the Meteor Slides 1.5.5 slideshow
2
 
3
  Copy "slideshow.js" from "/meteor-slides/js/" to your theme's directory to replace
4
  the plugin's default slideshow script.
meteor-slides-plugin.php CHANGED
@@ -6,7 +6,7 @@
6
  Author: Josh Leuze
7
  Author URI: http://jleuze.com/
8
  License: GPL2
9
- Version: 1.5.4
10
  */
11
 
12
  /* Copyright 2015 Josh Leuze (email : mail@jleuze.com)
@@ -212,7 +212,20 @@
212
  add_image_size( 'featured-slide-thumb', 250, 9999 );
213
 
214
  }
215
-
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  // Adds CSS for the slideshow
217
 
218
  add_action( 'wp_enqueue_scripts', 'meteorslides_css' );
@@ -246,7 +259,7 @@
246
  function meteorslides_javascript() {
247
 
248
  $meteor_options = get_option( 'meteorslides_options' );
249
-
250
  if( !is_admin() ) {
251
 
252
  wp_enqueue_script( 'jquery' );
6
  Author: Josh Leuze
7
  Author URI: http://jleuze.com/
8
  License: GPL2
9
+ Version: 1.5.5
10
  */
11
 
12
  /* Copyright 2015 Josh Leuze (email : mail@jleuze.com)
212
  add_image_size( 'featured-slide-thumb', 250, 9999 );
213
 
214
  }
215
+
216
+ // Updates max srcset size for Slide images larger than 1600px
217
+
218
+ add_filter( 'max_srcset_image_width', 'meteorslides_filter_max_srcset', 10, 2 );
219
+
220
+ function meteorslides_filter_max_srcset( $max_width, $size_array ) {
221
+ $meteor_options = get_option( 'meteorslides_options' );
222
+ $meteor_slide_width = $meteor_options['slide_width'];
223
+ if ( $meteor_slide_width > 1600 ) {
224
+ $max_width = $meteor_slide_width;
225
+ }
226
+ return $max_width;
227
+ }
228
+
229
  // Adds CSS for the slideshow
230
 
231
  add_action( 'wp_enqueue_scripts', 'meteorslides_css' );
259
  function meteorslides_javascript() {
260
 
261
  $meteor_options = get_option( 'meteorslides_options' );
262
+
263
  if( !is_admin() ) {
264
 
265
  wp_enqueue_script( 'jquery' );
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Meteor Slides ===
2
  Contributors: jleuze
3
- Donate link: http://jleuze.com/donate/
4
  Tags: custom post types, image, jquery, responsive, slide, slider, slides, slideshow
5
- Requires at least: 4.2
6
- Tested up to: 4.3
7
- Stable tag: 1.5.4
8
 
9
  Easily create responsive slideshows with WordPress that are mobile friendly and simple to customize.
10
 
@@ -108,6 +108,10 @@ If the Slides menu is missing, you probably have the [Members](http://wordpress.
108
  7. Meteor Slides Widget
109
 
110
  == Changelog ==
 
 
 
 
111
  = 1.5.4 =
112
  * Updated slideshow widget to use PHP 5 constructor
113
 
@@ -207,6 +211,9 @@ If the Slides menu is missing, you probably have the [Members](http://wordpress.
207
 
208
  == Upgrade Notice ==
209
 
 
 
 
210
  = 1.5.4 =
211
  Meteor Slides 1.5.4 has an updated slideshow widget which uses the PHP 5 constructor for WordPress 4.3 compatibility.
212
 
1
  === Meteor Slides ===
2
  Contributors: jleuze
3
+ Donate link: http://jleuze.com/go/paypal/
4
  Tags: custom post types, image, jquery, responsive, slide, slider, slides, slideshow
5
+ Requires at least: 4.4
6
+ Tested up to: 4.4
7
+ Stable tag: 1.5.5
8
 
9
  Easily create responsive slideshows with WordPress that are mobile friendly and simple to customize.
10
 
108
  7. Meteor Slides Widget
109
 
110
  == Changelog ==
111
+ = 1.5.5 =
112
+ * Added support for responsive images using srcset in WordPress 4.4
113
+ * Updated stylesheet with conflict fixes for the TwentySixteen theme
114
+
115
  = 1.5.4 =
116
  * Updated slideshow widget to use PHP 5 constructor
117
 
211
 
212
  == Upgrade Notice ==
213
 
214
+ = 1.5.5 =
215
+ Meteor Slides 1.5.5 has been updated with theme conflict fixes and support for responsive images using srcset in WordPress 4.4.
216
+
217
  = 1.5.4 =
218
  Meteor Slides 1.5.4 has an updated slideshow widget which uses the PHP 5 constructor for WordPress 4.3 compatibility.
219