SiteOrigin Widgets Bundle - Version 1.8.5

Version Description

  • 27 April 2017 =
  • Fixed button hover class.
Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.8.5
Comparing to
See all releases

Code changes from version 1.8.4 to 1.8.5

compat/visual-composer/styles.css DELETED
@@ -1,13 +0,0 @@
1
- .siteorigin-widget-form .siteorigin-widget-field input {
2
- margin: 1px;
3
- padding: 2px 5px;
4
- }
5
- .siteorigin-widget-form .siteorigin-widget-field input[type="radio"] {
6
- width: inherit;
7
- }
8
- .siteorigin-widget-form .siteorigin-widget-field select {
9
- padding: 2px;
10
- height: 28px;
11
- width: inherit;
12
- margin: 1px;
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
  Requires at least: 4.2
4
  Tested up to: 4.7.4
5
- Stable tag: 1.8.2
6
- Build time: 2017-04-27T17:58:18+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/contribution/
@@ -54,6 +54,9 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.8.4 - 27 April 2017 =
58
  * Fixed button URLs.
59
  * Removed image `sizes` attribute when Jetpack Photon is enabled.
2
  Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
  Requires at least: 4.2
4
  Tested up to: 4.7.4
5
+ Stable tag: 1.8.4
6
+ Build time: 2017-04-30T11:08:55+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/contribution/
54
 
55
  == Changelog ==
56
 
57
+ = 1.8.5 - 27 April 2017 =
58
+ * Fixed button hover class.
59
+
60
  = 1.8.4 - 27 April 2017 =
61
  * Fixed button URLs.
62
  * Removed image `sizes` attribute when Jetpack Photon is enabled.
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
- Version: 1.8.4
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /lang
8
  Author: SiteOrigin
@@ -12,7 +12,7 @@ License: GPL3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
- define('SOW_BUNDLE_VERSION', '1.8.4');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
+ Version: 1.8.5
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /lang
8
  Author: SiteOrigin
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
+ define('SOW_BUNDLE_VERSION', '1.8.5');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
widgets/button/button.php CHANGED
@@ -230,11 +230,13 @@ class SiteOrigin_Widget_Button_Widget extends SiteOrigin_Widget {
230
  $button_attributes = array();
231
 
232
  $attributes = $instance['attributes'];
233
- if( ! empty( $attributes['classes'] ) ) {
234
- $classes = $attributes['classes'];
235
- if( !empty($instance['design']['hover']) ) {
236
- $classes .= ' ow-button-hover';
237
- }
 
 
238
  $button_attributes['class'] = $classes;
239
  }
240
 
230
  $button_attributes = array();
231
 
232
  $attributes = $instance['attributes'];
233
+
234
+ $classes = ! empty( $attributes['classes'] ) ? $attributes['classes'] : '';
235
+ if( !empty($instance['design']['hover']) ) {
236
+ $classes .= ' ow-button-hover';
237
+ }
238
+
239
+ if( ! empty( $classes ) ) {
240
  $button_attributes['class'] = $classes;
241
  }
242