Version Description
- 27 November 2017 =
- Fix compatibility with Beaver Builder Lite.
- Tabs: Recalculate height on resize.
Download this release
Release Info
Developer | gpriday |
Plugin | 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 |
-
|
112 |
-
|
|
|
|
|
|
|
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.
|
6 |
-
Build time: 2017-11-
|
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.
|
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.
|
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 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
var selectTab = function ( tab, preventHashChange ) {
|
28 |
var $tab = $( tab );
|
@@ -45,9 +53,9 @@ jQuery( function ( $ ) {
|
|
45 |
$( this ).trigger( 'show' );
|
46 |
}
|
47 |
);
|
48 |
-
|
49 |
-
|
50 |
-
|
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(
|
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;
|