Easing Slider - Version 3.0.8

Version Description

  • June 24th, 2016 =
  • Fixed bug that would prevent slider(s) from obeying dimensions correctly when displaying multiple on a single page.
  • Fixed bug that would prevent uninstallation on PHP versions less than 5.3.
Download this release

Release Info

Developer MatthewRuddy
Plugin Icon 128x128 Easing Slider
Version 3.0.8
Comparing to
See all releases

Code changes from version 3.0.7 to 3.0.8

bower.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "Easing Slider",
3
- "version": "3.0.7",
4
  "homepage": "https://github.com/easingslider/easing-slider",
5
  "authors": [
6
  "MatthewRuddy <info@matthewruddy.com>"
1
  {
2
  "name": "Easing Slider",
3
+ "version": "3.0.8",
4
  "homepage": "https://github.com/easingslider/easing-slider",
5
  "authors": [
6
  "MatthewRuddy <info@matthewruddy.com>"
easing-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easing Slider
4
  * Plugin URI: http://easingslider.com/
5
  * Description: A simple WordPress plugin for creating beautiful sliders.
6
- * Version: 3.0.7
7
  * Author: Matthew Ruddy
8
  * Author URI: http://matthewruddy.com
9
  * License: GPL2
@@ -25,7 +25,7 @@ if ( ! defined('ABSPATH')) {
25
  /**
26
  * Define constants
27
  */
28
- define('EASINGSLIDER_VERSION', '3.0.7');
29
  define('EASINGSLIDER_NAME', 'Easing Slider');
30
  define('EASINGSLIDER_API_URL', 'http://easingslider.com/');
31
  define('EASINGSLIDER_PLUGIN_DIR', plugin_dir_path(__FILE__));
3
  * Plugin Name: Easing Slider
4
  * Plugin URI: http://easingslider.com/
5
  * Description: A simple WordPress plugin for creating beautiful sliders.
6
+ * Version: 3.0.8
7
  * Author: Matthew Ruddy
8
  * Author URI: http://matthewruddy.com
9
  * License: GPL2
25
  /**
26
  * Define constants
27
  */
28
+ define('EASINGSLIDER_VERSION', '3.0.8');
29
  define('EASINGSLIDER_NAME', 'Easing Slider');
30
  define('EASINGSLIDER_API_URL', 'http://easingslider.com/');
31
  define('EASINGSLIDER_PLUGIN_DIR', plugin_dir_path(__FILE__));
languages/easingslider.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easing Slider 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easing-slider\n"
7
  "POT-Creation-Date: 2016-06-17 13:08:23+00:00\n"
8
  "MIME-Version: 1.0\n"
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easing Slider 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easing-slider\n"
7
  "POT-Creation-Date: 2016-06-17 13:08:23+00:00\n"
8
  "MIME-Version: 1.0\n"
package.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "easing-slider",
3
  "title": "Easing Slider",
4
- "version": "3.0.7",
5
  "devDependencies": {
6
  "grunt": "0.4.5",
7
  "grunt-contrib-concat": "^0.5.1",
1
  {
2
  "name": "easing-slider",
3
  "title": "Easing Slider",
4
+ "version": "3.0.8",
5
  "devDependencies": {
6
  "grunt": "0.4.5",
7
  "grunt-contrib-concat": "^0.5.1",
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: MatthewRuddy
4
  Tags: slider, wordpress slider, carousel, image slider, responsive slider, slide, slider, slideshow, wordpress slideshow, youtube slider, photo slider, banner rotator, best slider, content slider, fullwidth slider, gallery, hardware accelerate, mobile slider,post slider, swipe, touch slider, page slider, slider plugin, slider shortcode
5
  Requires at least: 4.5
6
  Tested up to: 4.6
7
- Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -89,6 +89,10 @@ This is easy. When editing a slider in the "All Sliders" admin area, simply clic
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 3.0.7 - June 17th, 2016 =
93
  * Added CSS property to ensure slider item `max-width` is always `auto`.
94
  * Fixed issue in Javascript that would break initial slider height set under some circumstances.
@@ -123,7 +127,7 @@ This is easy. When editing a slider in the "All Sliders" admin area, simply clic
123
 
124
  = 3.0.1 - June 3rd, 2016 =
125
  * Fixed bug that prevented lazy loading icon from showing when loading is in progress.
126
- * Minimum requirement checks now occur before any PHP v5.3 namespaced code gets loaded, thus preventing fatal errors.
127
 
128
  = 3.0.0 - June 3rd, 2016 =
129
  * A complete internal rebuild, now fully compatible with current versions of WordPress and those coming in the future. Marks the start of a new product direction for Easing Slider, and a renewed committment to continued development!
4
  Tags: slider, wordpress slider, carousel, image slider, responsive slider, slide, slider, slideshow, wordpress slideshow, youtube slider, photo slider, banner rotator, best slider, content slider, fullwidth slider, gallery, hardware accelerate, mobile slider,post slider, swipe, touch slider, page slider, slider plugin, slider shortcode
5
  Requires at least: 4.5
6
  Tested up to: 4.6
7
+ Stable tag: 3.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
89
 
90
  == Changelog ==
91
 
92
+ = 3.0.8 - June 24th, 2016 =
93
+ * Fixed bug that would prevent slider(s) from obeying dimensions correctly when displaying multiple on a single page.
94
+ * Fixed bug that would prevent uninstallation on PHP versions less than 5.3.
95
+
96
  = 3.0.7 - June 17th, 2016 =
97
  * Added CSS property to ensure slider item `max-width` is always `auto`.
98
  * Fixed issue in Javascript that would break initial slider height set under some circumstances.
127
 
128
  = 3.0.1 - June 3rd, 2016 =
129
  * Fixed bug that prevented lazy loading icon from showing when loading is in progress.
130
+ * Minimum requirement checks now occur before any PHP 5.3 namespaced code gets loaded, thus preventing fatal errors.
131
 
132
  = 3.0.0 - June 3rd, 2016 =
133
  * A complete internal rebuild, now fully compatible with current versions of WordPress and those coming in the future. Marks the start of a new product direction for Easing Slider, and a renewed committment to continued development!
src/Plugin/helpers.php CHANGED
@@ -86,6 +86,7 @@ if ( ! function_exists('easingslider_container_classes')) {
86
  // Base classes
87
  $classes = array(
88
  'easingslider',
 
89
  'easingslider-container'
90
  );
91
 
@@ -203,7 +204,7 @@ if ( ! function_exists('easingslider_inline_styles')) {
203
  $styles = '';
204
 
205
  // Styling for "width" and "height"
206
- $styles .= '.easingslider { ';
207
  if (true == $slider->full_width) {
208
  $styles .= 'width: 100%; ';
209
  } else {
@@ -213,7 +214,7 @@ if ( ! function_exists('easingslider_inline_styles')) {
213
 
214
  // Styling for slide dimensions
215
  if (false == $slider->auto_height) {
216
- $styles .= '.easingslider-image { ';
217
  $styles .= 'max-height: '. absint($slider->height) .'px; ';
218
  $styles .= 'max-width: '. absint($slider->width) .'px; ';
219
  $styles .= "}\n";
@@ -221,7 +222,7 @@ if ( ! function_exists('easingslider_inline_styles')) {
221
 
222
  // Styling for "fade" transition speed
223
  if ($slider->transition_effect) {
224
- $styles .= '.easingslider-fade-in, .easingslider-fade-out { ';
225
  $styles .= '-webkit-animation-duration: '. absint($slider->transition_duration) .'ms; ';
226
  $styles .= '-moz-animation-duration: '. absint($slider->transition_duration) .'ms; ';
227
  $styles .= 'animation-duration: '. absint($slider->transition_duration) .'ms; ';
86
  // Base classes
87
  $classes = array(
88
  'easingslider',
89
+ 'easingslider-'. absint($slider->ID),
90
  'easingslider-container'
91
  );
92
 
204
  $styles = '';
205
 
206
  // Styling for "width" and "height"
207
+ $styles .= '.easingslider-'. absint($slider->ID) .' { ';
208
  if (true == $slider->full_width) {
209
  $styles .= 'width: 100%; ';
210
  } else {
214
 
215
  // Styling for slide dimensions
216
  if (false == $slider->auto_height) {
217
+ $styles .= '.easingslider-'. absint($slider->ID) .' .easingslider-image { ';
218
  $styles .= 'max-height: '. absint($slider->height) .'px; ';
219
  $styles .= 'max-width: '. absint($slider->width) .'px; ';
220
  $styles .= "}\n";
222
 
223
  // Styling for "fade" transition speed
224
  if ($slider->transition_effect) {
225
+ $styles .= '.easingslider-'. absint($slider->ID) .' .easingslider-fade-in, .easingslider-fade-out { ';
226
  $styles .= '-webkit-animation-duration: '. absint($slider->transition_duration) .'ms; ';
227
  $styles .= '-moz-animation-duration: '. absint($slider->transition_duration) .'ms; ';
228
  $styles .= 'animation-duration: '. absint($slider->transition_duration) .'ms; ';
uninstall.php CHANGED
@@ -5,17 +5,22 @@ if ( ! defined('WP_UNINSTALL_PLUGIN')) {
5
  exit;
6
  }
7
 
8
- // Load Easing Slider file
9
- include_once('easing-slider.php');
10
 
11
- // Get plugin instance
12
- $plugin = Easing_Slider();
13
 
14
- // Get settings
15
- $settings = $plugin->settings();
 
 
 
 
 
 
 
 
 
16
 
17
- // Run removal, if enabled by the user.
18
- if (true === $settings['remove_data']) {
19
- $uninstaller = $plugin->uninstaller();
20
- $uninstaller->uninstall();
21
  }
5
  exit;
6
  }
7
 
8
+ // Don't run installation on PHP version less than v5.3. Will cause errors.
9
+ if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
10
 
11
+ // Load Easing Slider file
12
+ include_once('easing-slider.php');
13
 
14
+ // Get plugin instance
15
+ $plugin = Easing_Slider();
16
+
17
+ // Get settings
18
+ $settings = $plugin->settings();
19
+
20
+ // Run removal, if enabled by the user.
21
+ if (true === $settings['remove_data']) {
22
+ $uninstaller = $plugin->uninstaller();
23
+ $uninstaller->uninstall();
24
+ }
25
 
 
 
 
 
26
  }