SiteOrigin Widgets Bundle - Version 1.17.2

Version Description

  • 21 July 2020 ==
  • Resolved button Less CSS bug.

=

Download this release

Release Info

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

Code changes from version 1.17.1 to 1.17.2

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: 5.5
5
- Stable tag: 1.17.1
6
- Build time: 2020-07-20T19:29:02+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/premium/
@@ -65,6 +65,9 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
65
 
66
  == Changelog ==
67
 
 
 
 
68
  == 1.17.1 - 20 July 2020 ==
69
  * Post Carousel: Prevented all posts from outputting. `10` will be output at a time if `Posts per page` isn't set.
70
  * Post Carousel: Inlined navigation buttons if a title is set.
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: 5.5
5
+ Stable tag: 1.17.2
6
+ Build time: 2020-07-21T09:02:06+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/premium/
65
 
66
  == Changelog ==
67
 
68
+ == 1.17.2 - 21 July 2020 ==
69
+ * Resolved button Less CSS bug.
70
+
71
  == 1.17.1 - 20 July 2020 ==
72
  * Post Carousel: Prevented all posts from outputting. `10` will be output at a time if `Posts per page` isn't set.
73
  * Post Carousel: Inlined navigation buttons if a title is set.
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.17.1
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.17.1');
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.17.2
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.17.2');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
widgets/button/button.php CHANGED
@@ -336,14 +336,14 @@ class SiteOrigin_Widget_Button_Widget extends SiteOrigin_Widget {
336
  if( empty( $instance ) || empty( $instance['design'] ) ) return array();
337
 
338
  $text_color = isset( $instance['design']['text_color'] ) ? $instance['design']['text_color'] : '';
339
- $button_color = isset ($instance['design']['hover_background_color'] ) ? $instance['design']['hover_background_color'] : '';
340
 
341
  $less_vars = array(
342
  'button_width' => isset( $instance['design']['width'] ) ? $instance['design']['width'] : '',
343
  'button_color' => $button_color,
344
- 'text_color' => $text_color,
345
- 'hover_text_color' => isset( $instance['design']['hover_text_color'] ) ? $instance['design']['hover_text_color'] : $text_color,
346
- 'hover_background_color' => isset( $instance['design']['hover_background_color'] ) ? $instance['design']['hover_background_color'] : $button_color,
347
  'font_size' => isset($instance['design']['font_size']) ? $instance['design']['font_size'] . 'em' : '',
348
  'rounding' => isset($instance['design']['rounding']) ? $instance['design']['rounding'] . 'em' : '',
349
  'padding' => isset($instance['design']['padding']) ? $instance['design']['padding'] . 'em' : '',
336
  if( empty( $instance ) || empty( $instance['design'] ) ) return array();
337
 
338
  $text_color = isset( $instance['design']['text_color'] ) ? $instance['design']['text_color'] : '';
339
+ $button_color = isset( $instance['design']['button_color'] ) ? $instance['design']['button_color'] : '';
340
 
341
  $less_vars = array(
342
  'button_width' => isset( $instance['design']['width'] ) ? $instance['design']['width'] : '',
343
  'button_color' => $button_color,
344
+ 'text_color' => $text_color,
345
+ 'hover_text_color' => ! empty( $instance['design']['hover_text_color'] ) ? $instance['design']['hover_text_color'] : $text_color,
346
+ 'hover_background_color' => ! empty( $instance['design']['hover_background_color'] ) ? $instance['design']['hover_background_color'] : $button_color,
347
  'font_size' => isset($instance['design']['font_size']) ? $instance['design']['font_size'] . 'em' : '',
348
  'rounding' => isset($instance['design']['rounding']) ? $instance['design']['rounding'] . 'em' : '',
349
  'padding' => isset($instance['design']['padding']) ? $instance['design']['padding'] . 'em' : '',