SiteOrigin Widgets Bundle - Version 1.11.2

Version Description

  • 27 November 2017 =
  • Fix compatibility with Beaver Builder Lite.
  • Tabs: Recalculate height on resize.
Download this release

Release Info

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

Code changes from version 1.11.1 to 1.11.2

compat/beaver-builder/sowb-beaver-builder.js CHANGED
@@ -108,8 +108,11 @@ var sowb = window.sowb || {};
108
  }
109
  }
110
 
111
- // Merge in the original settings in case legacy fields haven't rendered yet.
112
- settings = $.extend( {}, FLBuilder._getOriginalSettings( form ), settings );
 
 
 
113
  settings[ name ] = sowbWidgetValues;
114
  // Return the settings.
115
  return settings;
108
  }
109
  }
110
 
111
+ if ( typeof FLBuilder._getOriginalSettings === 'function' ) {
112
+ // Merge in the original settings in case legacy fields haven't rendered yet.
113
+ settings = $.extend( {}, FLBuilder._getOriginalSettings( form ), settings );
114
+ }
115
+
116
  settings[ name ] = sowbWidgetValues;
117
  // Return the settings.
118
  return settings;
compat/beaver-builder/sowb-beaver-builder.min.js CHANGED
@@ -1 +1 @@
1
- var sowb=window.sowb||{};!function(e){"undefined"!=typeof FLBuilder&&(sowb.orig_FLBuilder_initJQueryReadyFix=FLBuilder._initJQueryReadyFix,FLBuilder._initJQueryReadyFix=function(){},sowb.orig_FLBuilder_getSettings=FLBuilder._getSettings,FLBuilder._getSettings=function(i){FLBuilder._updateEditorFields();var r=i.serializeArray(),t=0,n=0,d="",l="",o="",u=[],s=[],a={},g=sowbForms.getWidgetFormValues(i.find(".siteorigin-widget-form"));for(t=0;t<r.length;t++)if(d=r[t].value.replace(/\r/gm,""),!(r[t].name.indexOf("flrich")>-1))if(r[t].name.indexOf("[")>-1){for(l=r[t].name.replace(/\[(.*)\]/,""),o=r[t].name.replace(l,""),u=[],s=o.match(/\[[^\]]*\]/g),n=0;n<s.length;n++)"[]"!=s[n]&&u.push(s[n].replace(/\[|\]/g,""));var f=function(e,i,r,t){0==t.length?e[r]=i:(void 0===e[r]&&(e[r]={}),f(e[r],i,t.shift(),t))};if(u.length>0){var c=u.slice();void 0===a[l]&&(a[l]={}),f(a[l],d,c.shift(),c)}else void 0===a[l]&&(a[l]=[]),a[l].push(d)}else a[r[t].name]=d;for(o in a)if(void 0!==a["as_values_"+o]){a[o]=e.grep(a["as_values_"+o].split(","),function(e){return""!==e}).join(",");try{delete a["as_values_"+o]}catch(e){}}return a=e.extend({},FLBuilder._getOriginalSettings(i),a),a[l]=g,a}),e(document).on("fl-builder.preview-rendered fl-builder.layout-rendered",".fl-builder-content",function(){e(sowb).trigger("setup_widgets")})}(jQuery),window.sowb=sowb;
1
+ var sowb=window.sowb||{};!function(e){"undefined"!=typeof FLBuilder&&(sowb.orig_FLBuilder_initJQueryReadyFix=FLBuilder._initJQueryReadyFix,FLBuilder._initJQueryReadyFix=function(){},sowb.orig_FLBuilder_getSettings=FLBuilder._getSettings,FLBuilder._getSettings=function(i){FLBuilder._updateEditorFields();var r=i.serializeArray(),t=0,n=0,d="",l="",o="",u=[],s=[],a={},g=sowbForms.getWidgetFormValues(i.find(".siteorigin-widget-form"));for(t=0;t<r.length;t++)if(d=r[t].value.replace(/\r/gm,""),!(r[t].name.indexOf("flrich")>-1))if(r[t].name.indexOf("[")>-1){for(l=r[t].name.replace(/\[(.*)\]/,""),o=r[t].name.replace(l,""),u=[],s=o.match(/\[[^\]]*\]/g),n=0;n<s.length;n++)"[]"!=s[n]&&u.push(s[n].replace(/\[|\]/g,""));var f=function(e,i,r,t){0==t.length?e[r]=i:(void 0===e[r]&&(e[r]={}),f(e[r],i,t.shift(),t))};if(u.length>0){var c=u.slice();void 0===a[l]&&(a[l]={}),f(a[l],d,c.shift(),c)}else void 0===a[l]&&(a[l]=[]),a[l].push(d)}else a[r[t].name]=d;for(o in a)if(void 0!==a["as_values_"+o]){a[o]=e.grep(a["as_values_"+o].split(","),function(e){return""!==e}).join(",");try{delete a["as_values_"+o]}catch(e){}}return"function"==typeof FLBuilder._getOriginalSettings&&(a=e.extend({},FLBuilder._getOriginalSettings(i),a)),a[l]=g,a}),e(document).on("fl-builder.preview-rendered fl-builder.layout-rendered",".fl-builder-content",function(){e(sowb).trigger("setup_widgets")})}(jQuery),window.sowb=sowb;
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.9
5
- Stable tag: 1.11.1
6
- Build time: 2017-11-24T15:23:28+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/contribution/
@@ -54,6 +54,10 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
54
 
55
  == Changelog ==
56
 
 
 
 
 
57
  = 1.11.1 - 24 November 2017 =
58
  * Hero: Allow for shortcodes to work.
59
  * Fix posts field not displaying selected values when multiple selected.
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.9
5
+ Stable tag: 1.11.2
6
+ Build time: 2017-11-27T16:49:12+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.11.2 - 27 November 2017 =
58
+ * Fix compatibility with Beaver Builder Lite.
59
+ * Tabs: Recalculate height on resize.
60
+
61
  = 1.11.1 - 24 November 2017 =
62
  * Hero: Allow for shortcodes to work.
63
  * Fix posts field not displaying selected values when multiple selected.
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.11.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.11.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.11.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.11.2');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
widgets/tabs/js/tabs.js CHANGED
@@ -20,9 +20,17 @@ jQuery( function ( $ ) {
20
  var $tabPanels = $tabPanelsContainer.find( '> .sow-tabs-panel' );
21
  $tabPanels.not( ':eq(' + selectedIndex + ')' ).hide();
22
 
23
- setTimeout( function () {
24
- $tabPanelsContainer.height( $tabPanels.eq( selectedIndex ).outerHeight() );
25
- }, 100 );
 
 
 
 
 
 
 
 
26
 
27
  var selectTab = function ( tab, preventHashChange ) {
28
  var $tab = $( tab );
@@ -45,9 +53,9 @@ jQuery( function ( $ ) {
45
  $( this ).trigger( 'show' );
46
  }
47
  );
48
- setTimeout( function () {
49
- $tabPanelsContainer.height( $tabPanels.eq( selectedIndex ).outerHeight() );
50
- }, 100 );
51
  if ( useAnchorTags && !preventHashChange ) {
52
  window.location.hash = $tab.data( 'anchor' );
53
  }
20
  var $tabPanels = $tabPanelsContainer.find( '> .sow-tabs-panel' );
21
  $tabPanels.not( ':eq(' + selectedIndex + ')' ).hide();
22
 
23
+ var setContainerHeight = function () {
24
+ var selTab = $this.find( '.sow-tabs-tab-selected' );
25
+
26
+ setTimeout( function () {
27
+ $tabPanelsContainer.height( $tabPanels.eq( selTab.index() ).outerHeight() );
28
+ }, 100 );
29
+ };
30
+
31
+ setContainerHeight();
32
+
33
+ $( window ).on( 'resize', setContainerHeight );
34
 
35
  var selectTab = function ( tab, preventHashChange ) {
36
  var $tab = $( tab );
53
  $( this ).trigger( 'show' );
54
  }
55
  );
56
+
57
+ setContainerHeight();
58
+
59
  if ( useAnchorTags && !preventHashChange ) {
60
  window.location.hash = $tab.data( 'anchor' );
61
  }
widgets/tabs/js/tabs.min.js CHANGED
@@ -1 +1 @@
1
- var sowb=window.sowb||{};jQuery(function(t){sowb.setupTabs=function(){t(".sow-tabs").each(function(a,s){var o=t(s),e=o.closest(".so-widget-sow-tabs"),n=e.data("useAnchorTags"),i=o.find("> .sow-tabs-panel-container"),w=o.find("> .sow-tabs-tab-container > .sow-tabs-tab"),c=o.find(".sow-tabs-tab-selected"),d=c.index(),h=i.find("> .sow-tabs-panel");h.not(":eq("+d+")").hide(),setTimeout(function(){i.height(h.eq(d).outerHeight())},100);var b=function(a,s){var o=t(a);if(o.is(".sow-tabs-tab-selected"))return!0;var e=o.index();if(e>-1){var c=w.filter(".sow-tabs-tab-selected");c.removeClass("sow-tabs-tab-selected");var d=c.index();h.eq(d).fadeOut("fast",function(){t(this).trigger("hide")}),o.addClass("sow-tabs-tab-selected"),h.eq(e).fadeIn("fast",function(){t(this).trigger("show")}),setTimeout(function(){i.height(h.eq(e).outerHeight())},100),n&&!s&&(window.location.hash=o.data("anchor"))}};if(w.click(function(){b(this)}),n){var r=function(){if(window.location.hash){var t=w.filter('[data-anchor="'+window.location.hash.replace("#","")+'"]');t&&b(t,!0)}};t(window).on("hashchange",r),window.location.hash?r():window.location.hash=c.data("anchor")}})},sowb.setupTabs(),t(sowb).on("setup_widgets",sowb.setupTabs)}),window.sowb=sowb;
1
+ var sowb=window.sowb||{};jQuery(function(a){sowb.setupTabs=function(){a(".sow-tabs").each(function(t,s){var o=a(s),e=o.closest(".so-widget-sow-tabs"),n=e.data("useAnchorTags"),i=o.find("> .sow-tabs-panel-container"),w=o.find("> .sow-tabs-tab-container > .sow-tabs-tab"),d=o.find(".sow-tabs-tab-selected"),c=d.index(),b=i.find("> .sow-tabs-panel");b.not(":eq("+c+")").hide();var r=function(){var a=o.find(".sow-tabs-tab-selected");setTimeout(function(){i.height(b.eq(a.index()).outerHeight())},100)};r(),a(window).on("resize",r);var h=function(t,s){var o=a(t);if(o.is(".sow-tabs-tab-selected"))return!0;var e=o.index();if(e>-1){var i=w.filter(".sow-tabs-tab-selected");i.removeClass("sow-tabs-tab-selected");var d=i.index();b.eq(d).fadeOut("fast",function(){a(this).trigger("hide")}),o.addClass("sow-tabs-tab-selected"),b.eq(e).fadeIn("fast",function(){a(this).trigger("show")}),r(),n&&!s&&(window.location.hash=o.data("anchor"))}};if(w.click(function(){h(this)}),n){var f=function(){if(window.location.hash){var a=w.filter('[data-anchor="'+window.location.hash.replace("#","")+'"]');a&&h(a,!0)}};a(window).on("hashchange",f),window.location.hash?f():window.location.hash=d.data("anchor")}})},sowb.setupTabs(),a(sowb).on("setup_widgets",sowb.setupTabs)}),window.sowb=sowb;