SiteOrigin Widgets Bundle - Version 1.28.0

Version Description

  • 26 December 2021 =
  • Accordion: Set closed panels to hidden prior to loading.
  • Anything Carousel: Added a new Animation setting. Choose between Ease or Linear.
  • Features: Set Feature admin label to Icon title or Title text if available.
Download this release

Release Info

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

Code changes from version 1.27.0 to 1.28.0

base/inc/widgets/base-carousel.class.php CHANGED
@@ -223,6 +223,15 @@ abstract class SiteOrigin_Widget_Base_Carousel extends SiteOrigin_Widget {
223
  'type' => 'checkbox',
224
  'label' => __( 'Navigation dots', 'so-widgets-bundle' ),
225
  ),
 
 
 
 
 
 
 
 
 
226
  'animation_speed' => array(
227
  'type' => 'number',
228
  'label' => __( 'Animation speed', 'so-widgets-bundle' ),
@@ -360,6 +369,7 @@ abstract class SiteOrigin_Widget_Base_Carousel extends SiteOrigin_Widget {
360
  $variables = array(
361
  'loop' => isset( $settings['loop'] ) ? $settings['loop'] : true,
362
  'dots' => isset( $settings['dots'] ) ? $settings['dots'] : true,
 
363
  'animation_speed' => ! empty( $settings['animation_speed'] ) ? $settings['animation_speed'] : 800,
364
  'autoplay' => isset( $settings['autoplay'] ) ? $settings['autoplay'] : false,
365
  'pauseOnHover' => isset( $settings['autoplay_pause_hover'] ) ? $settings['autoplay_pause_hover'] : false,
223
  'type' => 'checkbox',
224
  'label' => __( 'Navigation dots', 'so-widgets-bundle' ),
225
  ),
226
+ 'animation' => array(
227
+ 'type' => 'select',
228
+ 'label' => __( 'Animation', 'so-widgets-bundle' ),
229
+ 'default' => 'Ease',
230
+ 'options' => array(
231
+ 'ease' => __( 'Ease', 'so-widgets-bundle' ),
232
+ 'linear' => __( 'Linear', 'so-widgets-bundle' ),
233
+ ),
234
+ ),
235
  'animation_speed' => array(
236
  'type' => 'number',
237
  'label' => __( 'Animation speed', 'so-widgets-bundle' ),
369
  $variables = array(
370
  'loop' => isset( $settings['loop'] ) ? $settings['loop'] : true,
371
  'dots' => isset( $settings['dots'] ) ? $settings['dots'] : true,
372
+ 'animation' => isset( $settings['animation'] ) ? $settings['animation'] : 'ease',
373
  'animation_speed' => ! empty( $settings['animation_speed'] ) ? $settings['animation_speed'] : 800,
374
  'autoplay' => isset( $settings['autoplay'] ) ? $settings['autoplay'] : false,
375
  'pauseOnHover' => isset( $settings['autoplay_pause_hover'] ) ? $settings['autoplay_pause_hover'] : false,
js/carousel.js CHANGED
@@ -34,6 +34,7 @@ jQuery( function ( $ ) {
34
  infinite: ! $$.data( 'ajax-url' )&& $$.data( 'carousel_settings' ).loop,
35
  variableWidth: $$.data( 'variable_width' ),
36
  accessibility: false,
 
37
  speed: carouselSettings.animation_speed,
38
  autoplay: carouselSettings.autoplay,
39
  autoplaySpeed: carouselSettings.autoplaySpeed,
34
  infinite: ! $$.data( 'ajax-url' )&& $$.data( 'carousel_settings' ).loop,
35
  variableWidth: $$.data( 'variable_width' ),
36
  accessibility: false,
37
+ cssEase: carouselSettings.animation,
38
  speed: carouselSettings.animation_speed,
39
  autoplay: carouselSettings.autoplay,
40
  autoplaySpeed: carouselSettings.autoplaySpeed,
js/carousel.min.js CHANGED
@@ -1 +1 @@
1
- var sowb=window.sowb||{};jQuery((function(i){sowb.setupCarousel=function(){i.fn.setSlideTo=function(s){$item=i(this);var e=$item.slick("slickGetOption","slidesToShow"),o=$item.slick("slickGetOption","slidesToScroll");$item.slick("slickSetOption","slidesToShow",1),$item.slick("slickSetOption","slidesToScroll",1),$item.slick("slickGoTo",s),$item.slick("slickSetOption","slidesToShow",e),$item.slick("slickSetOption","slidesToScroll",o)},i(".sow-carousel-wrapper").each((function(){var s=i(this),e=s.find(".sow-carousel-items"),o=s.data("responsive"),t=s.data("carousel_settings");e.not(".slick-initialized").slick({arrows:!1,dots:t.dots,rows:0,rtl:"rtl"==s.data("dir"),touchThreshold:20,infinite:!s.data("ajax-url")&&s.data("carousel_settings").loop,variableWidth:s.data("variable_width"),accessibility:!1,speed:t.animation_speed,autoplay:t.autoplay,autoplaySpeed:t.autoplaySpeed,pauseOnHover:t.pauseOnHover,slidesToScroll:o.desktop_slides_to_scroll,slidesToShow:void 0===o.desktop_slides_to_show?o.desktop_slides_to_scroll:o.desktop_slides_to_show,responsive:[{breakpoint:o.tablet_portrait_breakpoint,settings:{slidesToScroll:o.tablet_portrait_slides_to_scroll,slidesToShow:void 0===o.tablet_portrait_slides_to_show?o.tablet_portrait_slides_to_scroll:o.tablet_portrait_slides_to_show}},{breakpoint:o.mobile_breakpoint,settings:{slidesToScroll:o.mobile_slides_to_scroll,slidesToShow:void 0===o.mobile_slides_to_show?o.mobile_slides_to_scroll:o.mobile_slides_to_show}}]}),t.item_overflow&&(e.css("width",""),e.css("opacity","")),e.on("swipe",(function(i,e,o){s.parent().parent().find(".sow-carousel-"+("left"==o?"next":"prev")).trigger("touchend")})),s.parent().parent().find(".sow-carousel-previous, .sow-carousel-next").on("click touchend",(function(e,o){e.preventDefault();var t=s.find(".sow-carousel-items"),l=t.find(".sow-carousel-item").length,a=l>=s.data("item_count"),c=Math.ceil(t.outerWidth()/t.find(".sow-carousel-item").outerWidth(!0)),r=t.slick("slickGetOption","slidesToScroll"),d=l-c;"post"==s.data("widget")&&d++,a||(t.slick("slickCurrentSlide")+c>=l-1||t.slick("slickCurrentSlide")+r>d)&&i(sowb).trigger("carousel_load_new_items",[s,t,o]),i(this).hasClass("sow-carousel-next")?a&&t.slick("slickCurrentSlide")>=d?s.data("carousel_settings").loop&&t.slick("slickGoTo",0):t.slick("slickCurrentSlide")+r>d?t.setSlideTo(d):t.slick("slickNext"):i(this).hasClass("sow-carousel-previous")&&(s.data("carousel_settings").loop&&0==t.slick("slickCurrentSlide")?t.slick("slickGoTo",d):t.slick("slickPrev"))})),t.dots&&s.data("variable_width")&&(s.find(".slick-dots li").off("click.slick"),s.find(".slick-dots li").on("click touchend",(function(){var s=i(this).index(),o=e.find(".sow-carousel-item").length,t=Math.ceil(e.outerWidth()/e.find(".sow-carousel-item").outerWidth(!0)),l=o-t;s+t>=o?(e.slick("slickGoTo",l),$dots=i(this).parent(),$dots.find(".slick-active").removeClass("slick-active"),$dots.children().eq(s).addClass("slick-active")):e.slick("slickGoTo",s)})))})),i(sowb).trigger("carousel_setup"),i(document).on("keydown",".sow-carousel-navigation a",(function(s){13!=s.keyCode&&32!=s.keyCode||(s.preventDefault(),i(this).trigger("click"))})),i(document).on("keyup",".sow-carousel-item",(function(s){if(13==s.keyCode&&i(this).find("h3 a")[0].click(),37==s.keyCode||39==s.keyCode){var e=i(this).parents(".sow-carousel-wrapper"),o=e.find(".sow-carousel-items"),t=o.find(".sow-carousel-item").length,l=i(this).data("slick-index"),a=t-(t===e.data("item_count")?0:1);if(37==s.keyCode)--l<0&&(l=a);else if(39==s.keyCode&&++l>=a){if(e.data("fetching"))return;e.parent().find(".sow-carousel-next").trigger("click",!0)}o.slick("slickGoTo",l,!0),e.find(".sow-carousel-item").prop("tabindex",-1),e.find('.sow-carousel-item[data-slick-index="'+l+'"]').trigger("focus").prop("tabindex",0)}})),i(window).on("resize load",(function(){i(".sow-carousel-wrapper").each((function(){var s=i(this),e=s.find(".sow-carousel-items.slick-initialized"),o=Math.ceil(e.outerWidth()/e.find(".sow-carousel-item").outerWidth(!0)),t=s.parent().parent().find(".sow-carousel-navigation");o>=s.data("item_count")?(t.hide(),e.slick("slickSetOption","touchMove",!1),e.slick("slickSetOption","draggable",!1)):t.not(":visible")&&(t.show(),e.slick("slickSetOption","touchMove",!0),e.slick("slickSetOption","draggable",!0));var l=s.data("responsive");window.matchMedia("(min-width: "+l.tablet_portrait_breakpoint+"px) and (max-width: "+l.tablet_landscape_breakpoint+"px) and (orientation: landscape)").matches&&(e.slick("slickSetOption","slidesToShow",l.tablet_landscape_slides),e.slick("slickSetOption","slidesToScroll",l.tablet_landscape_slides))})),i(".sow-carousel-item:first-of-type").prop("tabindex",0)}))},sowb.setupCarousel(),i(sowb).on("setup_widgets",sowb.setupCarousel)})),window.sowb=sowb;
1
+ var sowb=window.sowb||{};jQuery((function(i){sowb.setupCarousel=function(){i.fn.setSlideTo=function(s){$item=i(this);var e=$item.slick("slickGetOption","slidesToShow"),o=$item.slick("slickGetOption","slidesToScroll");$item.slick("slickSetOption","slidesToShow",1),$item.slick("slickSetOption","slidesToScroll",1),$item.slick("slickGoTo",s),$item.slick("slickSetOption","slidesToShow",e),$item.slick("slickSetOption","slidesToScroll",o)},i(".sow-carousel-wrapper").each((function(){var s=i(this),e=s.find(".sow-carousel-items"),o=s.data("responsive"),t=s.data("carousel_settings");e.not(".slick-initialized").slick({arrows:!1,dots:t.dots,rows:0,rtl:"rtl"==s.data("dir"),touchThreshold:20,infinite:!s.data("ajax-url")&&s.data("carousel_settings").loop,variableWidth:s.data("variable_width"),accessibility:!1,cssEase:t.animation,speed:t.animation_speed,autoplay:t.autoplay,autoplaySpeed:t.autoplaySpeed,pauseOnHover:t.pauseOnHover,slidesToScroll:o.desktop_slides_to_scroll,slidesToShow:void 0===o.desktop_slides_to_show?o.desktop_slides_to_scroll:o.desktop_slides_to_show,responsive:[{breakpoint:o.tablet_portrait_breakpoint,settings:{slidesToScroll:o.tablet_portrait_slides_to_scroll,slidesToShow:void 0===o.tablet_portrait_slides_to_show?o.tablet_portrait_slides_to_scroll:o.tablet_portrait_slides_to_show}},{breakpoint:o.mobile_breakpoint,settings:{slidesToScroll:o.mobile_slides_to_scroll,slidesToShow:void 0===o.mobile_slides_to_show?o.mobile_slides_to_scroll:o.mobile_slides_to_show}}]}),t.item_overflow&&(e.css("width",""),e.css("opacity","")),e.on("swipe",(function(i,e,o){s.parent().parent().find(".sow-carousel-"+("left"==o?"next":"prev")).trigger("touchend")})),s.parent().parent().find(".sow-carousel-previous, .sow-carousel-next").on("click touchend",(function(e,o){e.preventDefault();var t=s.find(".sow-carousel-items"),l=t.find(".sow-carousel-item").length,a=l>=s.data("item_count"),c=Math.ceil(t.outerWidth()/t.find(".sow-carousel-item").outerWidth(!0)),r=t.slick("slickGetOption","slidesToScroll"),n=l-c;"post"==s.data("widget")&&n++,a||(t.slick("slickCurrentSlide")+c>=l-1||t.slick("slickCurrentSlide")+r>n)&&i(sowb).trigger("carousel_load_new_items",[s,t,o]),i(this).hasClass("sow-carousel-next")?a&&t.slick("slickCurrentSlide")>=n?s.data("carousel_settings").loop&&t.slick("slickGoTo",0):t.slick("slickCurrentSlide")+r>n?t.setSlideTo(n):t.slick("slickNext"):i(this).hasClass("sow-carousel-previous")&&(s.data("carousel_settings").loop&&0==t.slick("slickCurrentSlide")?t.slick("slickGoTo",n):t.slick("slickPrev"))})),t.dots&&s.data("variable_width")&&(s.find(".slick-dots li").off("click.slick"),s.find(".slick-dots li").on("click touchend",(function(){var s=i(this).index(),o=e.find(".sow-carousel-item").length,t=Math.ceil(e.outerWidth()/e.find(".sow-carousel-item").outerWidth(!0)),l=o-t;s+t>=o?(e.slick("slickGoTo",l),$dots=i(this).parent(),$dots.find(".slick-active").removeClass("slick-active"),$dots.children().eq(s).addClass("slick-active")):e.slick("slickGoTo",s)})))})),i(sowb).trigger("carousel_setup"),i(document).on("keydown",".sow-carousel-navigation a",(function(s){13!=s.keyCode&&32!=s.keyCode||(s.preventDefault(),i(this).trigger("click"))})),i(document).on("keyup",".sow-carousel-item",(function(s){if(13==s.keyCode&&i(this).find("h3 a")[0].click(),37==s.keyCode||39==s.keyCode){var e=i(this).parents(".sow-carousel-wrapper"),o=e.find(".sow-carousel-items"),t=o.find(".sow-carousel-item").length,l=i(this).data("slick-index"),a=t-(t===e.data("item_count")?0:1);if(37==s.keyCode)--l<0&&(l=a);else if(39==s.keyCode&&++l>=a){if(e.data("fetching"))return;e.parent().find(".sow-carousel-next").trigger("click",!0)}o.slick("slickGoTo",l,!0),e.find(".sow-carousel-item").prop("tabindex",-1),e.find('.sow-carousel-item[data-slick-index="'+l+'"]').trigger("focus").prop("tabindex",0)}})),i(window).on("resize load",(function(){i(".sow-carousel-wrapper").each((function(){var s=i(this),e=s.find(".sow-carousel-items.slick-initialized"),o=Math.ceil(e.outerWidth()/e.find(".sow-carousel-item").outerWidth(!0)),t=s.parent().parent().find(".sow-carousel-navigation");o>=s.data("item_count")?(t.hide(),e.slick("slickSetOption","touchMove",!1),e.slick("slickSetOption","draggable",!1)):t.not(":visible")&&(t.show(),e.slick("slickSetOption","touchMove",!0),e.slick("slickSetOption","draggable",!0));var l=s.data("responsive");window.matchMedia("(min-width: "+l.tablet_portrait_breakpoint+"px) and (max-width: "+l.tablet_landscape_breakpoint+"px) and (orientation: landscape)").matches&&(e.slick("slickSetOption","slidesToShow",l.tablet_landscape_slides),e.slick("slickSetOption","slidesToScroll",l.tablet_landscape_slides))})),i(".sow-carousel-item:first-of-type").prop("tabindex",0)}))},sowb.setupCarousel(),i(sowb).on("setup_widgets",sowb.setupCarousel)})),window.sowb=sowb;
lang/so-widgets-bundle.pot CHANGED
@@ -296,7 +296,7 @@ msgstr ""
296
  msgid "When opening the panel, scroll the user to the top of the panel."
297
  msgstr ""
298
 
299
- #: widgets/accordion/accordion.php:71, widgets/accordion/accordion.php:84, widgets/anything-carousel/anything-carousel.php:52, widgets/anything-carousel/anything-carousel.php:68, widgets/contact/contact.php:48, widgets/cta/cta.php:64, widgets/editor/editor.php:35, widgets/features/features.php:133, widgets/icon/icon.php:68, widgets/post-carousel/post-carousel.php:230, widgets/price-table/price-table.php:42, widgets/price-table/price-table.php:61, widgets/simple-masonry/simple-masonry.php:44, widgets/simple-masonry/simple-masonry.php:85, widgets/social-media-buttons/social-media-buttons.php:54, widgets/tabs/tabs.php:71, widgets/tabs/tabs.php:84, widgets/taxonomy/taxonomy.php:34, widgets/testimonial/testimonial.php:41, widgets/video/video.php:33, base/inc/fields/posts.class.php:108
300
  msgid "Title"
301
  msgstr ""
302
 
@@ -328,7 +328,7 @@ msgstr ""
328
  msgid "Closed"
329
  msgstr ""
330
 
331
- #: widgets/accordion/accordion.php:110, widgets/contact/contact.php:328, widgets/cta/cta.php:74, widgets/hero/hero.php:254, widgets/layout-slider/layout-slider.php:222, widgets/slider/slider.php:134, widgets/tabs/tabs.php:100, widgets/testimonial/testimonial.php:184, base/inc/widgets/base-carousel.class.php:268
332
  msgid "Design"
333
  msgstr ""
334
 
@@ -396,15 +396,15 @@ msgstr ""
396
  msgid "Item"
397
  msgstr ""
398
 
399
- #: widgets/anything-carousel/anything-carousel.php:95, widgets/button/button.php:203, widgets/contact/contact.php:382, widgets/contact/contact.php:432, widgets/features/features.php:138, widgets/features/features.php:159, widgets/features/features.php:180, widgets/headline/headline.php:88, widgets/headline/headline.php:169, base/inc/widgets/base-carousel.class.php:292
400
  msgid "Font"
401
  msgstr ""
402
 
403
- #: widgets/anything-carousel/anything-carousel.php:99, widgets/button/button.php:209, widgets/contact/contact.php:387, widgets/contact/contact.php:437, widgets/contact/contact.php:619, base/inc/widgets/base-carousel.class.php:296
404
  msgid "Font size"
405
  msgstr ""
406
 
407
- #: widgets/anything-carousel/anything-carousel.php:103, widgets/contact/contact.php:392, widgets/contact/contact.php:516, widgets/contact/contact.php:685, widgets/features/features.php:147, widgets/features/features.php:168, widgets/features/features.php:189, widgets/google-map/google-map.php:368, widgets/headline/headline.php:80, widgets/headline/headline.php:161, widgets/headline/headline.php:231, widgets/icon/icon.php:36, widgets/taxonomy/taxonomy.php:56, base/inc/widgets/base-carousel.class.php:300
408
  msgid "Color"
409
  msgstr ""
410
 
@@ -412,19 +412,19 @@ msgstr ""
412
  msgid "Margin"
413
  msgstr ""
414
 
415
- #: widgets/anything-carousel/anything-carousel.php:112, widgets/button/button.php:104, widgets/features/features.php:65, widgets/image-grid/image-grid.php:133, widgets/image-grid/image-grid.php:153
416
  msgid "Top"
417
  msgstr ""
418
 
419
- #: widgets/anything-carousel/anything-carousel.php:116, widgets/button/button.php:105, widgets/button/button.php:131, widgets/button/button.php:142, widgets/contact/contact.php:403, widgets/contact/contact.php:418, widgets/contact/contact.php:647, widgets/cta/cta.php:103, widgets/features/features.php:66, widgets/headline/headline.php:102, widgets/headline/headline.php:112, widgets/headline/headline.php:183, widgets/headline/headline.php:193, widgets/headline/headline.php:248, widgets/headline/headline.php:257, widgets/icon/icon.php:50, widgets/image/image.php:50, widgets/image/image.php:62, widgets/image-grid/image-grid.php:136, widgets/image-grid/image-grid.php:166, widgets/simple-masonry/simple-masonry.php:216, widgets/social-media-buttons/social-media-buttons.php:153, widgets/social-media-buttons/social-media-buttons.php:164, widgets/testimonial/testimonial.php:256
420
  msgid "Right"
421
  msgstr ""
422
 
423
- #: widgets/anything-carousel/anything-carousel.php:120, widgets/button/button.php:106, widgets/features/features.php:67, widgets/image-grid/image-grid.php:139, widgets/image-grid/image-grid.php:155
424
  msgid "Bottom"
425
  msgstr ""
426
 
427
- #: widgets/anything-carousel/anything-carousel.php:124, widgets/button/button.php:107, widgets/button/button.php:130, widgets/button/button.php:141, widgets/contact/contact.php:402, widgets/contact/contact.php:417, widgets/contact/contact.php:646, widgets/cta/cta.php:102, widgets/features/features.php:68, widgets/headline/headline.php:101, widgets/headline/headline.php:111, widgets/headline/headline.php:182, widgets/headline/headline.php:192, widgets/headline/headline.php:247, widgets/headline/headline.php:256, widgets/icon/icon.php:49, widgets/image/image.php:49, widgets/image/image.php:61, widgets/image-grid/image-grid.php:142, widgets/image-grid/image-grid.php:164, widgets/simple-masonry/simple-masonry.php:215, widgets/social-media-buttons/social-media-buttons.php:152, widgets/social-media-buttons/social-media-buttons.php:163, widgets/testimonial/testimonial.php:255
428
  msgid "Left"
429
  msgstr ""
430
 
@@ -468,7 +468,7 @@ msgstr ""
468
  msgid "SiteOrigin Button"
469
  msgstr ""
470
 
471
- #: widgets/button/button.php:33, widgets/contact/contact.php:785, widgets/features/features.php:339, widgets/headline/headline.php:37, widgets/social-media-buttons/social-media-buttons.php:33, base/inc/widgets/base-slider.class.php:222
472
  msgid "Responsive Breakpoint"
473
  msgstr ""
474
 
@@ -496,11 +496,11 @@ msgstr ""
496
  msgid "The Destination URL will be downloaded when a user clicks on the button."
497
  msgstr ""
498
 
499
- #: widgets/button/button.php:81, widgets/button/button.php:85, widgets/features/features.php:76, widgets/icon/icon.php:31, widgets/price-table/price-table.php:119
500
  msgid "Icon"
501
  msgstr ""
502
 
503
- #: widgets/button/button.php:90, widgets/features/features.php:86, widgets/price-table/price-table.php:123, widgets/social-media-buttons/social-media-buttons.php:82
504
  msgid "Icon color"
505
  msgstr ""
506
 
@@ -804,7 +804,7 @@ msgstr ""
804
  msgid "Subject"
805
  msgstr ""
806
 
807
- #: widgets/contact/contact.php:154, widgets/features/features.php:111, widgets/features/features.php:154, widgets/headline/headline.php:53, widgets/headline/headline.php:134, widgets/price-table/price-table.php:111, widgets/taxonomy/taxonomy.php:51, widgets/testimonial/testimonial.php:83
808
  msgid "Text"
809
  msgstr ""
810
 
@@ -916,7 +916,7 @@ msgstr ""
916
  msgid "Audio"
917
  msgstr ""
918
 
919
- #: widgets/contact/contact.php:288, widgets/contact/contact.php:511, widgets/features/features.php:143, widgets/features/features.php:164, widgets/features/features.php:185, widgets/icon/icon.php:41
920
  msgid "Size"
921
  msgstr ""
922
 
@@ -1253,127 +1253,127 @@ msgstr ""
1253
  msgid "Feature"
1254
  msgstr ""
1255
 
1256
- #: widgets/features/features.php:56
1257
  msgid "Icon container color"
1258
  msgstr ""
1259
 
1260
- #: widgets/features/features.php:63
1261
  msgid "Icon container position"
1262
  msgstr ""
1263
 
1264
- #: widgets/features/features.php:81, widgets/social-media-buttons/social-media-buttons.php:78
1265
  msgid "Icon title"
1266
  msgstr ""
1267
 
1268
- #: widgets/features/features.php:93
1269
  msgid "Icon image"
1270
  msgstr ""
1271
 
1272
- #: widgets/features/features.php:94
1273
  msgid "Use your own icon image."
1274
  msgstr ""
1275
 
1276
- #: widgets/features/features.php:100
1277
  msgid "Icon image size"
1278
  msgstr ""
1279
 
1280
- #: widgets/features/features.php:106, widgets/image/image.php:69
1281
  msgid "Title text"
1282
  msgstr ""
1283
 
1284
- #: widgets/features/features.php:116
1285
  msgid "More link text"
1286
  msgstr ""
1287
 
1288
- #: widgets/features/features.php:121
1289
  msgid "More link URL"
1290
  msgstr ""
1291
 
1292
- #: widgets/features/features.php:128
1293
  msgid "Font Design"
1294
  msgstr ""
1295
 
1296
- #: widgets/features/features.php:175
1297
  msgid "More Link"
1298
  msgstr ""
1299
 
1300
- #: widgets/features/features.php:198
1301
  msgid "Icon container shape"
1302
  msgstr ""
1303
 
1304
- #: widgets/features/features.php:205
1305
  msgid "Icon container size"
1306
  msgstr ""
1307
 
1308
- #: widgets/features/features.php:211, widgets/social-media-buttons/social-media-buttons.php:117
1309
  msgid "Icon size"
1310
  msgstr ""
1311
 
1312
- #: widgets/features/features.php:217
1313
  msgid "Use icon size for custom icon"
1314
  msgstr ""
1315
 
1316
- #: widgets/features/features.php:223
1317
  msgid "Title text HTML tag"
1318
  msgstr ""
1319
 
1320
- #: widgets/features/features.php:226, widgets/headline/headline.php:69, widgets/headline/headline.php:150, base/inc/widgets/base-carousel.class.php:281
1321
  msgid "H1"
1322
  msgstr ""
1323
 
1324
- #: widgets/features/features.php:227, widgets/headline/headline.php:70, widgets/headline/headline.php:151, base/inc/widgets/base-carousel.class.php:282
1325
  msgid "H2"
1326
  msgstr ""
1327
 
1328
- #: widgets/features/features.php:228, widgets/headline/headline.php:71, widgets/headline/headline.php:152, base/inc/widgets/base-carousel.class.php:283
1329
  msgid "H3"
1330
  msgstr ""
1331
 
1332
- #: widgets/features/features.php:229, widgets/headline/headline.php:72, widgets/headline/headline.php:153, base/inc/widgets/base-carousel.class.php:284
1333
  msgid "H4"
1334
  msgstr ""
1335
 
1336
- #: widgets/features/features.php:230, widgets/headline/headline.php:73, widgets/headline/headline.php:154, base/inc/widgets/base-carousel.class.php:285
1337
  msgid "H5"
1338
  msgstr ""
1339
 
1340
- #: widgets/features/features.php:231, widgets/headline/headline.php:74, widgets/headline/headline.php:155, base/inc/widgets/base-carousel.class.php:286
1341
  msgid "H6"
1342
  msgstr ""
1343
 
1344
- #: widgets/features/features.php:237
1345
  msgid "Features per row"
1346
  msgstr ""
1347
 
1348
- #: widgets/features/features.php:243
1349
  msgid "Responsive layout"
1350
  msgstr ""
1351
 
1352
- #: widgets/features/features.php:249
1353
  msgid "Link feature title to more URL"
1354
  msgstr ""
1355
 
1356
- #: widgets/features/features.php:259
1357
  msgid "Link icon to more URL"
1358
  msgstr ""
1359
 
1360
- #: widgets/features/features.php:269
1361
  msgid "Link feature column to more URL"
1362
  msgstr ""
1363
 
1364
- #: widgets/features/features.php:281
1365
  msgid "Open more URL in a new window"
1366
  msgstr ""
1367
 
1368
- #: widgets/features/features.php:341
1369
  msgid "This setting controls when the features widget will collapse for mobile devices. The default value is 520px"
1370
  msgstr ""
1371
 
1372
- #: widgets/features/features.php:350
1373
  msgid "Add an feature icon title tooltip with %sSiteOrigin Premium%s"
1374
  msgstr ""
1375
 
1376
- #: widgets/features/features.php:355
1377
  msgid "Use Google Fonts right inside the Features Widget with %sSiteOrigin Premium%s"
1378
  msgstr ""
1379
 
@@ -1856,11 +1856,11 @@ msgstr ""
1856
  msgid "Headline"
1857
  msgstr ""
1858
 
1859
- #: widgets/headline/headline.php:66, widgets/headline/headline.php:147, base/inc/widgets/base-carousel.class.php:278
1860
  msgid "HTML Tag"
1861
  msgstr ""
1862
 
1863
- #: widgets/headline/headline.php:75, widgets/headline/headline.php:156, base/inc/widgets/base-carousel.class.php:287
1864
  msgid "Paragraph"
1865
  msgstr ""
1866
 
@@ -2836,7 +2836,7 @@ msgstr ""
2836
  msgid "Video Playback"
2837
  msgstr ""
2838
 
2839
- #: widgets/video/video.php:101, base/inc/widgets/base-carousel.class.php:233, base/inc/widgets/base-slider.class.php:61, base/inc/widgets/base-slider.class.php:201
2840
  msgid "Autoplay"
2841
  msgstr ""
2842
 
@@ -3213,35 +3213,47 @@ msgstr ""
3213
  msgid "Navigation dots"
3214
  msgstr ""
3215
 
3216
- #: base/inc/widgets/base-carousel.class.php:228, base/inc/widgets/base-slider.class.php:84
 
 
 
 
 
 
 
 
 
 
 
 
3217
  msgid "Animation speed"
3218
  msgstr ""
3219
 
3220
- #: base/inc/widgets/base-carousel.class.php:244, base/inc/widgets/base-slider.class.php:75
3221
  msgid "Autoplay pause on hover"
3222
  msgstr ""
3223
 
3224
- #: base/inc/widgets/base-carousel.class.php:253, base/inc/widgets/base-slider.class.php:91
3225
  msgid "Timeout"
3226
  msgstr ""
3227
 
3228
- #: base/inc/widgets/base-carousel.class.php:273
3229
  msgid "Item title"
3230
  msgstr ""
3231
 
3232
- #: base/inc/widgets/base-carousel.class.php:380
3233
  msgid "Next"
3234
  msgstr ""
3235
 
3236
- #: base/inc/widgets/base-carousel.class.php:380
3237
  msgid "Next Posts"
3238
  msgstr ""
3239
 
3240
- #: base/inc/widgets/base-carousel.class.php:386
3241
  msgid "Previous"
3242
  msgstr ""
3243
 
3244
- #: base/inc/widgets/base-carousel.class.php:386
3245
  msgid "Previous Posts"
3246
  msgstr ""
3247
 
296
  msgid "When opening the panel, scroll the user to the top of the panel."
297
  msgstr ""
298
 
299
+ #: widgets/accordion/accordion.php:71, widgets/accordion/accordion.php:84, widgets/anything-carousel/anything-carousel.php:52, widgets/anything-carousel/anything-carousel.php:68, widgets/contact/contact.php:48, widgets/cta/cta.php:64, widgets/editor/editor.php:35, widgets/features/features.php:140, widgets/icon/icon.php:68, widgets/post-carousel/post-carousel.php:230, widgets/price-table/price-table.php:42, widgets/price-table/price-table.php:61, widgets/simple-masonry/simple-masonry.php:44, widgets/simple-masonry/simple-masonry.php:85, widgets/social-media-buttons/social-media-buttons.php:54, widgets/tabs/tabs.php:71, widgets/tabs/tabs.php:84, widgets/taxonomy/taxonomy.php:34, widgets/testimonial/testimonial.php:41, widgets/video/video.php:33, base/inc/fields/posts.class.php:108
300
  msgid "Title"
301
  msgstr ""
302
 
328
  msgid "Closed"
329
  msgstr ""
330
 
331
+ #: widgets/accordion/accordion.php:110, widgets/contact/contact.php:328, widgets/cta/cta.php:74, widgets/hero/hero.php:254, widgets/layout-slider/layout-slider.php:222, widgets/slider/slider.php:134, widgets/tabs/tabs.php:100, widgets/testimonial/testimonial.php:184, base/inc/widgets/base-carousel.class.php:277
332
  msgid "Design"
333
  msgstr ""
334
 
396
  msgid "Item"
397
  msgstr ""
398
 
399
+ #: widgets/anything-carousel/anything-carousel.php:95, widgets/button/button.php:203, widgets/contact/contact.php:382, widgets/contact/contact.php:432, widgets/features/features.php:145, widgets/features/features.php:166, widgets/features/features.php:187, widgets/headline/headline.php:88, widgets/headline/headline.php:169, base/inc/widgets/base-carousel.class.php:301
400
  msgid "Font"
401
  msgstr ""
402
 
403
+ #: widgets/anything-carousel/anything-carousel.php:99, widgets/button/button.php:209, widgets/contact/contact.php:387, widgets/contact/contact.php:437, widgets/contact/contact.php:619, base/inc/widgets/base-carousel.class.php:305
404
  msgid "Font size"
405
  msgstr ""
406
 
407
+ #: widgets/anything-carousel/anything-carousel.php:103, widgets/contact/contact.php:392, widgets/contact/contact.php:516, widgets/contact/contact.php:685, widgets/features/features.php:154, widgets/features/features.php:175, widgets/features/features.php:196, widgets/google-map/google-map.php:368, widgets/headline/headline.php:80, widgets/headline/headline.php:161, widgets/headline/headline.php:231, widgets/icon/icon.php:36, widgets/taxonomy/taxonomy.php:56, base/inc/widgets/base-carousel.class.php:309
408
  msgid "Color"
409
  msgstr ""
410
 
412
  msgid "Margin"
413
  msgstr ""
414
 
415
+ #: widgets/anything-carousel/anything-carousel.php:112, widgets/button/button.php:104, widgets/features/features.php:72, widgets/image-grid/image-grid.php:133, widgets/image-grid/image-grid.php:153
416
  msgid "Top"
417
  msgstr ""
418
 
419
+ #: widgets/anything-carousel/anything-carousel.php:116, widgets/button/button.php:105, widgets/button/button.php:131, widgets/button/button.php:142, widgets/contact/contact.php:403, widgets/contact/contact.php:418, widgets/contact/contact.php:647, widgets/cta/cta.php:103, widgets/features/features.php:73, widgets/headline/headline.php:102, widgets/headline/headline.php:112, widgets/headline/headline.php:183, widgets/headline/headline.php:193, widgets/headline/headline.php:248, widgets/headline/headline.php:257, widgets/icon/icon.php:50, widgets/image/image.php:50, widgets/image/image.php:62, widgets/image-grid/image-grid.php:136, widgets/image-grid/image-grid.php:166, widgets/simple-masonry/simple-masonry.php:216, widgets/social-media-buttons/social-media-buttons.php:153, widgets/social-media-buttons/social-media-buttons.php:164, widgets/testimonial/testimonial.php:256
420
  msgid "Right"
421
  msgstr ""
422
 
423
+ #: widgets/anything-carousel/anything-carousel.php:120, widgets/button/button.php:106, widgets/features/features.php:74, widgets/image-grid/image-grid.php:139, widgets/image-grid/image-grid.php:155
424
  msgid "Bottom"
425
  msgstr ""
426
 
427
+ #: widgets/anything-carousel/anything-carousel.php:124, widgets/button/button.php:107, widgets/button/button.php:130, widgets/button/button.php:141, widgets/contact/contact.php:402, widgets/contact/contact.php:417, widgets/contact/contact.php:646, widgets/cta/cta.php:102, widgets/features/features.php:75, widgets/headline/headline.php:101, widgets/headline/headline.php:111, widgets/headline/headline.php:182, widgets/headline/headline.php:192, widgets/headline/headline.php:247, widgets/headline/headline.php:256, widgets/icon/icon.php:49, widgets/image/image.php:49, widgets/image/image.php:61, widgets/image-grid/image-grid.php:142, widgets/image-grid/image-grid.php:164, widgets/simple-masonry/simple-masonry.php:215, widgets/social-media-buttons/social-media-buttons.php:152, widgets/social-media-buttons/social-media-buttons.php:163, widgets/testimonial/testimonial.php:255
428
  msgid "Left"
429
  msgstr ""
430
 
468
  msgid "SiteOrigin Button"
469
  msgstr ""
470
 
471
+ #: widgets/button/button.php:33, widgets/contact/contact.php:785, widgets/features/features.php:346, widgets/headline/headline.php:37, widgets/social-media-buttons/social-media-buttons.php:33, base/inc/widgets/base-slider.class.php:222
472
  msgid "Responsive Breakpoint"
473
  msgstr ""
474
 
496
  msgid "The Destination URL will be downloaded when a user clicks on the button."
497
  msgstr ""
498
 
499
+ #: widgets/button/button.php:81, widgets/button/button.php:85, widgets/features/features.php:83, widgets/icon/icon.php:31, widgets/price-table/price-table.php:119
500
  msgid "Icon"
501
  msgstr ""
502
 
503
+ #: widgets/button/button.php:90, widgets/features/features.php:93, widgets/price-table/price-table.php:123, widgets/social-media-buttons/social-media-buttons.php:82
504
  msgid "Icon color"
505
  msgstr ""
506
 
804
  msgid "Subject"
805
  msgstr ""
806
 
807
+ #: widgets/contact/contact.php:154, widgets/features/features.php:118, widgets/features/features.php:161, widgets/headline/headline.php:53, widgets/headline/headline.php:134, widgets/price-table/price-table.php:111, widgets/taxonomy/taxonomy.php:51, widgets/testimonial/testimonial.php:83
808
  msgid "Text"
809
  msgstr ""
810
 
916
  msgid "Audio"
917
  msgstr ""
918
 
919
+ #: widgets/contact/contact.php:288, widgets/contact/contact.php:511, widgets/features/features.php:150, widgets/features/features.php:171, widgets/features/features.php:192, widgets/icon/icon.php:41
920
  msgid "Size"
921
  msgstr ""
922
 
1253
  msgid "Feature"
1254
  msgstr ""
1255
 
1256
+ #: widgets/features/features.php:63
1257
  msgid "Icon container color"
1258
  msgstr ""
1259
 
1260
+ #: widgets/features/features.php:70
1261
  msgid "Icon container position"
1262
  msgstr ""
1263
 
1264
+ #: widgets/features/features.php:88, widgets/social-media-buttons/social-media-buttons.php:78
1265
  msgid "Icon title"
1266
  msgstr ""
1267
 
1268
+ #: widgets/features/features.php:100
1269
  msgid "Icon image"
1270
  msgstr ""
1271
 
1272
+ #: widgets/features/features.php:101
1273
  msgid "Use your own icon image."
1274
  msgstr ""
1275
 
1276
+ #: widgets/features/features.php:107
1277
  msgid "Icon image size"
1278
  msgstr ""
1279
 
1280
+ #: widgets/features/features.php:113, widgets/image/image.php:69
1281
  msgid "Title text"
1282
  msgstr ""
1283
 
1284
+ #: widgets/features/features.php:123
1285
  msgid "More link text"
1286
  msgstr ""
1287
 
1288
+ #: widgets/features/features.php:128
1289
  msgid "More link URL"
1290
  msgstr ""
1291
 
1292
+ #: widgets/features/features.php:135
1293
  msgid "Font Design"
1294
  msgstr ""
1295
 
1296
+ #: widgets/features/features.php:182
1297
  msgid "More Link"
1298
  msgstr ""
1299
 
1300
+ #: widgets/features/features.php:205
1301
  msgid "Icon container shape"
1302
  msgstr ""
1303
 
1304
+ #: widgets/features/features.php:212
1305
  msgid "Icon container size"
1306
  msgstr ""
1307
 
1308
+ #: widgets/features/features.php:218, widgets/social-media-buttons/social-media-buttons.php:117
1309
  msgid "Icon size"
1310
  msgstr ""
1311
 
1312
+ #: widgets/features/features.php:224
1313
  msgid "Use icon size for custom icon"
1314
  msgstr ""
1315
 
1316
+ #: widgets/features/features.php:230
1317
  msgid "Title text HTML tag"
1318
  msgstr ""
1319
 
1320
+ #: widgets/features/features.php:233, widgets/headline/headline.php:69, widgets/headline/headline.php:150, base/inc/widgets/base-carousel.class.php:290
1321
  msgid "H1"
1322
  msgstr ""
1323
 
1324
+ #: widgets/features/features.php:234, widgets/headline/headline.php:70, widgets/headline/headline.php:151, base/inc/widgets/base-carousel.class.php:291
1325
  msgid "H2"
1326
  msgstr ""
1327
 
1328
+ #: widgets/features/features.php:235, widgets/headline/headline.php:71, widgets/headline/headline.php:152, base/inc/widgets/base-carousel.class.php:292
1329
  msgid "H3"
1330
  msgstr ""
1331
 
1332
+ #: widgets/features/features.php:236, widgets/headline/headline.php:72, widgets/headline/headline.php:153, base/inc/widgets/base-carousel.class.php:293
1333
  msgid "H4"
1334
  msgstr ""
1335
 
1336
+ #: widgets/features/features.php:237, widgets/headline/headline.php:73, widgets/headline/headline.php:154, base/inc/widgets/base-carousel.class.php:294
1337
  msgid "H5"
1338
  msgstr ""
1339
 
1340
+ #: widgets/features/features.php:238, widgets/headline/headline.php:74, widgets/headline/headline.php:155, base/inc/widgets/base-carousel.class.php:295
1341
  msgid "H6"
1342
  msgstr ""
1343
 
1344
+ #: widgets/features/features.php:244
1345
  msgid "Features per row"
1346
  msgstr ""
1347
 
1348
+ #: widgets/features/features.php:250
1349
  msgid "Responsive layout"
1350
  msgstr ""
1351
 
1352
+ #: widgets/features/features.php:256
1353
  msgid "Link feature title to more URL"
1354
  msgstr ""
1355
 
1356
+ #: widgets/features/features.php:266
1357
  msgid "Link icon to more URL"
1358
  msgstr ""
1359
 
1360
+ #: widgets/features/features.php:276
1361
  msgid "Link feature column to more URL"
1362
  msgstr ""
1363
 
1364
+ #: widgets/features/features.php:288
1365
  msgid "Open more URL in a new window"
1366
  msgstr ""
1367
 
1368
+ #: widgets/features/features.php:348
1369
  msgid "This setting controls when the features widget will collapse for mobile devices. The default value is 520px"
1370
  msgstr ""
1371
 
1372
+ #: widgets/features/features.php:357
1373
  msgid "Add an feature icon title tooltip with %sSiteOrigin Premium%s"
1374
  msgstr ""
1375
 
1376
+ #: widgets/features/features.php:362
1377
  msgid "Use Google Fonts right inside the Features Widget with %sSiteOrigin Premium%s"
1378
  msgstr ""
1379
 
1856
  msgid "Headline"
1857
  msgstr ""
1858
 
1859
+ #: widgets/headline/headline.php:66, widgets/headline/headline.php:147, base/inc/widgets/base-carousel.class.php:287
1860
  msgid "HTML Tag"
1861
  msgstr ""
1862
 
1863
+ #: widgets/headline/headline.php:75, widgets/headline/headline.php:156, base/inc/widgets/base-carousel.class.php:296
1864
  msgid "Paragraph"
1865
  msgstr ""
1866
 
2836
  msgid "Video Playback"
2837
  msgstr ""
2838
 
2839
+ #: widgets/video/video.php:101, base/inc/widgets/base-carousel.class.php:242, base/inc/widgets/base-slider.class.php:61, base/inc/widgets/base-slider.class.php:201
2840
  msgid "Autoplay"
2841
  msgstr ""
2842
 
3213
  msgid "Navigation dots"
3214
  msgstr ""
3215
 
3216
+ #: base/inc/widgets/base-carousel.class.php:228
3217
+ msgid "Animation"
3218
+ msgstr ""
3219
+
3220
+ #: base/inc/widgets/base-carousel.class.php:231
3221
+ msgid "Ease"
3222
+ msgstr ""
3223
+
3224
+ #: base/inc/widgets/base-carousel.class.php:232
3225
+ msgid "Linear"
3226
+ msgstr ""
3227
+
3228
+ #: base/inc/widgets/base-carousel.class.php:237, base/inc/widgets/base-slider.class.php:84
3229
  msgid "Animation speed"
3230
  msgstr ""
3231
 
3232
+ #: base/inc/widgets/base-carousel.class.php:253, base/inc/widgets/base-slider.class.php:75
3233
  msgid "Autoplay pause on hover"
3234
  msgstr ""
3235
 
3236
+ #: base/inc/widgets/base-carousel.class.php:262, base/inc/widgets/base-slider.class.php:91
3237
  msgid "Timeout"
3238
  msgstr ""
3239
 
3240
+ #: base/inc/widgets/base-carousel.class.php:282
3241
  msgid "Item title"
3242
  msgstr ""
3243
 
3244
+ #: base/inc/widgets/base-carousel.class.php:390
3245
  msgid "Next"
3246
  msgstr ""
3247
 
3248
+ #: base/inc/widgets/base-carousel.class.php:390
3249
  msgid "Next Posts"
3250
  msgstr ""
3251
 
3252
+ #: base/inc/widgets/base-carousel.class.php:396
3253
  msgid "Previous"
3254
  msgstr ""
3255
 
3256
+ #: base/inc/widgets/base-carousel.class.php:396
3257
  msgid "Previous Posts"
3258
  msgstr ""
3259
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: widget, button, slider, hero, google maps, image, carousel, features, icon
3
  Requires at least: 4.2
4
  Tested up to: 5.8
5
  Requires PHP: 5.6.20
6
- Stable tag: 1.27.0
7
- Build time: 2021-12-17T22:50:43+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis, alexgso
10
  Donate link: https://siteorigin.com/downloads/premium/
@@ -100,6 +100,11 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets
100
 
101
  == Changelog ==
102
 
 
 
 
 
 
103
  = 1.27.0 - 17 December 2021 =
104
  * Price Table: Added new Header, Featured and Feature text color settings.
105
  * Slider Widgets: Prevented potential settings migration error.
3
  Requires at least: 4.2
4
  Tested up to: 5.8
5
  Requires PHP: 5.6.20
6
+ Stable tag: 1.28.0
7
+ Build time: 2021-12-26T17:41:53+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis, alexgso
10
  Donate link: https://siteorigin.com/downloads/premium/
100
 
101
  == Changelog ==
102
 
103
+ = 1.28.0 - 26 December 2021 =
104
+ * Accordion: Set closed panels to hidden prior to loading.
105
+ * Anything Carousel: Added a new Animation setting. Choose between Ease or Linear.
106
+ * Features: Set Feature admin label to Icon title or Title text if available.
107
+
108
  = 1.27.0 - 17 December 2021 =
109
  * Price Table: Added new Header, Featured and Feature text color settings.
110
  * Slider Widgets: Prevented potential settings migration error.
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A highly customizable collection of widgets, ready to be used anywhere, neatly bundled into a single plugin.
5
- Version: 1.27.0
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.27.0');
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 highly customizable collection of widgets, ready to be used anywhere, neatly bundled into a single plugin.
5
+ Version: 1.28.0
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.28.0');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
widgets/accordion/js/accordion.js CHANGED
@@ -12,7 +12,6 @@ jQuery( function ( $ ) {
12
  }
13
 
14
  var $accordionPanels = $( element ).find( '> .sow-accordion-panel' );
15
- $accordionPanels.not( '.sow-accordion-panel-open' ).children( '.sow-accordion-panel-content' ).hide();
16
  var openPanels = $accordionPanels.filter( '.sow-accordion-panel-open' ).toArray();
17
 
18
  var updateHash = function () {
12
  }
13
 
14
  var $accordionPanels = $( element ).find( '> .sow-accordion-panel' );
 
15
  var openPanels = $accordionPanels.filter( '.sow-accordion-panel-open' ).toArray();
16
 
17
  var updateHash = function () {
widgets/accordion/js/accordion.min.js CHANGED
@@ -1 +1 @@
1
- var sowb=window.sowb||{};jQuery((function(o){sowb.setupAccordion=function(){o(".sow-accordion").each((function(n,e){var a=o(this).closest(".so-widget-sow-accordion");if(a.data("initialized"))return o(this);var i=o(e).find("> .sow-accordion-panel");i.not(".sow-accordion-panel-open").children(".sow-accordion-panel-content").hide();var t=i.filter(".sow-accordion-panel-open").toArray(),c=function(){},r=function(n,e){var a=n.offset().top-90;e?o("body,html").animate({scrollTop:a},200):window.scrollTo(0,a)},s=function(n,e,a){var i=o(n);if(!i.is(".sow-accordion-panel-open")){i.find("> .sow-accordion-panel-content").slideDown({start:function(){o(window).trigger("resize"),o(sowb).trigger("setup_widgets")},complete:function(){a&&sowAccordion.scrollto_after_change&&(i.offset().top<window.scrollY||i.offset().top+i.height()>window.scrollY)&&r(i,!0),o(this).trigger("show")}}),i.find("> .sow-accordion-panel-header-container > .sow-accordion-panel-header").attr("aria-expanded",!0),i.addClass("sow-accordion-panel-open"),t.push(n);var d=o(n).parents(".sow-accordion-panel");d.length&&!d.hasClass("sow-accordion-panel-open")&&s(d.get(0),!0),e||c()}},d=function(n,e){var a=o(n);a.is(".sow-accordion-panel-open")&&(a.find("> .sow-accordion-panel-content").slideUp((function(){o(this).trigger("hide")})),a.find("> .sow-accordion-panel-header-container > .sow-accordion-panel-header").attr("aria-expanded",!1),a.removeClass("sow-accordion-panel-open"),t.splice(t.indexOf(n),1),e||c())};if(i.find("> .sow-accordion-panel-header-container > .sow-accordion-panel-header").on("click keydown",(function(n){if("keydown"==n.type){if(13!==n.keyCode&&32!==n.keyCode)return;n.preventDefault()}var e=o(this),i=a.data("maxOpenPanels"),c=e.closest(".sow-accordion-panel");if(c.is(".sow-accordion-panel-open")?d(c.get(0)):s(c.get(0),!1,!0),!isNaN(i)&&i>0&&t.length>i){var r=0;o.each(t.reverse(),(function(o,n){r!==i?r++:d(t[o])}))}})),a.data("useAnchorTags")){var l;c=function(){l&&clearTimeout(l),l=setTimeout((function(){for(var n=[],e=o(".sow-accordion-panel-open").toArray(),a=0;a<e.length;a++){var i=o(e[a]).data("anchor");if(i){var t=o(e[a]).parents(".sow-accordion-panel");(!t.length||t.length&&t.hasClass("sow-accordion-panel-open"))&&(n[a]=i)}}n&&n.length?window.location.hash=n.join(","):window.location.hash&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}),100)};var w=function(){for(var n=i.toArray(),e=window.location.hash.substring(1).split(","),a=0;a<n.length;a++){var t=n[a],c=o(t).data("anchor");e.some((function(o){return decodeURI(c)===decodeURI(o)}))?s(t,!0,!0):d(t,!0)}};o(window).on("hashchange",w),window.location.hash?w():c();var p=a.data("initialScrollPanel");if(window.location.hash&&t.length)setTimeout((function(){r(o(t[0]))}),500);else if(p>0){var h=p>i.length?i.last():i.eq(p-1);setTimeout((function(){r(h)}),500)}}a.data("initialized",!0)}))},sowb.setupAccordion(),o(sowb).on("setup_widgets",sowb.setupAccordion)})),window.sowb=sowb;
1
+ var sowb=window.sowb||{};jQuery((function(o){sowb.setupAccordion=function(){o(".sow-accordion").each((function(n,e){var a=o(this).closest(".so-widget-sow-accordion");if(a.data("initialized"))return o(this);var i=o(e).find("> .sow-accordion-panel"),t=i.filter(".sow-accordion-panel-open").toArray(),c=function(){},r=function(n,e){var a=n.offset().top-90;e?o("body,html").animate({scrollTop:a},200):window.scrollTo(0,a)},s=function(n,e,a){var i=o(n);if(!i.is(".sow-accordion-panel-open")){i.find("> .sow-accordion-panel-content").slideDown({start:function(){o(window).trigger("resize"),o(sowb).trigger("setup_widgets")},complete:function(){a&&sowAccordion.scrollto_after_change&&(i.offset().top<window.scrollY||i.offset().top+i.height()>window.scrollY)&&r(i,!0),o(this).trigger("show")}}),i.find("> .sow-accordion-panel-header-container > .sow-accordion-panel-header").attr("aria-expanded",!0),i.addClass("sow-accordion-panel-open"),t.push(n);var d=o(n).parents(".sow-accordion-panel");d.length&&!d.hasClass("sow-accordion-panel-open")&&s(d.get(0),!0),e||c()}},d=function(n,e){var a=o(n);a.is(".sow-accordion-panel-open")&&(a.find("> .sow-accordion-panel-content").slideUp((function(){o(this).trigger("hide")})),a.find("> .sow-accordion-panel-header-container > .sow-accordion-panel-header").attr("aria-expanded",!1),a.removeClass("sow-accordion-panel-open"),t.splice(t.indexOf(n),1),e||c())};if(i.find("> .sow-accordion-panel-header-container > .sow-accordion-panel-header").on("click keydown",(function(n){if("keydown"==n.type){if(13!==n.keyCode&&32!==n.keyCode)return;n.preventDefault()}var e=o(this),i=a.data("maxOpenPanels"),c=e.closest(".sow-accordion-panel");if(c.is(".sow-accordion-panel-open")?d(c.get(0)):s(c.get(0),!1,!0),!isNaN(i)&&i>0&&t.length>i){var r=0;o.each(t.reverse(),(function(o,n){r!==i?r++:d(t[o])}))}})),a.data("useAnchorTags")){var l;c=function(){l&&clearTimeout(l),l=setTimeout((function(){for(var n=[],e=o(".sow-accordion-panel-open").toArray(),a=0;a<e.length;a++){var i=o(e[a]).data("anchor");if(i){var t=o(e[a]).parents(".sow-accordion-panel");(!t.length||t.length&&t.hasClass("sow-accordion-panel-open"))&&(n[a]=i)}}n&&n.length?window.location.hash=n.join(","):window.location.hash&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}),100)};var w=function(){for(var n=i.toArray(),e=window.location.hash.substring(1).split(","),a=0;a<n.length;a++){var t=n[a],c=o(t).data("anchor");e.some((function(o){return decodeURI(c)===decodeURI(o)}))?s(t,!0,!0):d(t,!0)}};o(window).on("hashchange",w),window.location.hash?w():c();var p=a.data("initialScrollPanel");if(window.location.hash&&t.length)setTimeout((function(){r(o(t[0]))}),500);else if(p>0){var h=p>i.length?i.last():i.eq(p-1);setTimeout((function(){r(h)}),500)}}a.data("initialized",!0)}))},sowb.setupAccordion(),o(sowb).on("setup_widgets",sowb.setupAccordion)})),window.sowb=sowb;
widgets/accordion/tpl/default.php CHANGED
@@ -33,7 +33,13 @@ if( !empty( $instance['title'] ) ) {
33
  </div>
34
  </div>
35
 
36
- <div class="sow-accordion-panel-content" role="region" aria-labelledby="accordion-label-<?php echo sanitize_title_with_dashes( $panel['anchor'] ); ?>" id="accordion-content-<?php echo sanitize_title_with_dashes( $panel['anchor'] ); ?>">
 
 
 
 
 
 
37
  <div class="sow-accordion-panel-border" tabindex="0">
38
  <?php $this->render_panel_content( $panel, $instance ); ?>
39
  </div>
33
  </div>
34
  </div>
35
 
36
+ <div
37
+ class="sow-accordion-panel-content"
38
+ role="region"
39
+ aria-labelledby="accordion-label-<?php echo sanitize_title_with_dashes( $panel['anchor'] ); ?>"
40
+ id="accordion-content-<?php echo sanitize_title_with_dashes( $panel['anchor'] ); ?>"
41
+ <?php if ( $panel['initial_state'] == 'closed' ) echo 'style="display: none;"'; ?>
42
+ >
43
  <div class="sow-accordion-panel-border" tabindex="0">
44
  <?php $this->render_panel_content( $panel, $instance ); ?>
45
  </div>
widgets/features/features.php CHANGED
@@ -44,9 +44,16 @@ class SiteOrigin_Widget_Features_Widget extends SiteOrigin_Widget {
44
  'label' => __( 'Features', 'so-widgets-bundle' ),
45
  'item_name' => __( 'Feature', 'so-widgets-bundle' ),
46
  'item_label' => array(
47
- 'selector' => "[id*='features-title']",
48
- 'update_event' => 'change',
49
- 'value_method' => 'val'
 
 
 
 
 
 
 
50
  ),
51
  'fields' => array(
52
 
44
  'label' => __( 'Features', 'so-widgets-bundle' ),
45
  'item_name' => __( 'Feature', 'so-widgets-bundle' ),
46
  'item_label' => array(
47
+ 'selectorArray' => array(
48
+ array(
49
+ 'selector' => '[id*="features-title"]',
50
+ 'valueMethod' => 'val'
51
+ ),
52
+ array(
53
+ 'selector' => '[id*="features-icon"]',
54
+ 'valueMethod' => 'val'
55
+ ),
56
+ ),
57
  ),
58
  'fields' => array(
59