SiteOrigin Widgets Bundle - Version 1.11.6

Version Description

  • 14 March 2018 =
  • Hero: Add responsive height settings.
  • Added pikaday jQuery plugin and register pikaday scripts for front end too.
  • Features: item float clearing and padding mobile specific.
Download this release

Release Info

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

Code changes from version 1.11.5 to 1.11.6

js/lib/pikaday.jquery.js ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Pikaday jQuery plugin.
3
+ *
4
+ * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
5
+ */
6
+
7
+ (function (root, factory)
8
+ {
9
+ 'use strict';
10
+
11
+ if (typeof exports === 'object') {
12
+ // CommonJS module
13
+ factory(require('jquery'), require('pikaday'));
14
+ } else if (typeof define === 'function' && define.amd) {
15
+ // AMD. Register as an anonymous module.
16
+ define(['jquery', 'pikaday'], factory);
17
+ } else {
18
+ // Browser globals
19
+ factory(root.jQuery, root.Pikaday);
20
+ }
21
+ }(this, function ($, Pikaday)
22
+ {
23
+ 'use strict';
24
+
25
+ $.fn.pikaday = function()
26
+ {
27
+ var args = arguments;
28
+
29
+ if (!args || !args.length) {
30
+ args = [{ }];
31
+ }
32
+
33
+ return this.each(function()
34
+ {
35
+ var self = $(this),
36
+ plugin = self.data('pikaday');
37
+
38
+ if (!(plugin instanceof Pikaday)) {
39
+ if (typeof args[0] === 'object') {
40
+ var options = $.extend({}, args[0]);
41
+ options.field = self[0];
42
+ self.data('pikaday', new Pikaday(options));
43
+ }
44
+ } else {
45
+ if (typeof args[0] === 'string' && typeof plugin[args[0]] === 'function') {
46
+ plugin[args[0]].apply(plugin, Array.prototype.slice.call(args,1));
47
+
48
+ if (args[0] === 'destroy') {
49
+ self.removeData('pikaday');
50
+ }
51
+ }
52
+ }
53
+ });
54
+ };
55
+
56
+ }));
js/lib/pikaday.jquery.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){"use strict";"object"==typeof exports?t(require("jquery"),require("pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],t):t(e.jQuery,e.Pikaday)}(this,function(e,t){"use strict";e.fn.pikaday=function(){var a=arguments;return a&&a.length||(a=[{}]),this.each(function(){var i=e(this),n=i.data("pikaday");if(n instanceof t)"string"==typeof a[0]&&"function"==typeof n[a[0]]&&(n[a[0]].apply(n,Array.prototype.slice.call(a,1)),"destroy"===a[0]&&i.removeData("pikaday"));else if("object"==typeof a[0]){var r=e.extend({},a[0]);r.field=i[0],i.data("pikaday",new t(r))}})}});
lang/so-widgets-bundle.pot CHANGED
@@ -826,7 +826,7 @@ msgstr ""
826
  msgid "Button color"
827
  msgstr ""
828
 
829
- #: tmp/widgets/button/button.php:271, tmp/widgets/contact/contact.php:1137, tmp/widgets/hero/hero.php:485, tmp/widgets/layout-slider/layout-slider.php:181
830
  msgid "Text color"
831
  msgstr ""
832
 
@@ -1575,7 +1575,7 @@ msgstr ""
1575
  msgid "Open more URL in a new window"
1576
  msgstr ""
1577
 
1578
- #: tmp/widgets/features/features.php:593
1579
  msgid "Responsive Breakpoint"
1580
  msgstr ""
1581
 
@@ -2051,19 +2051,19 @@ msgstr ""
2051
  msgid "Sub Headline"
2052
  msgstr ""
2053
 
2054
- #: tmp/widgets/headline/headline.php:487, tmp/widgets/hero/hero.php:419
2055
  msgid "Use FitText"
2056
  msgstr ""
2057
 
2058
- #: tmp/widgets/headline/headline.php:489, tmp/widgets/hero/hero.php:421
2059
  msgid "Dynamically adjust your heading font size based on screen size."
2060
  msgstr ""
2061
 
2062
- #: tmp/widgets/headline/headline.php:515, tmp/widgets/hero/hero.php:447
2063
  msgid "FitText Compressor Strength"
2064
  msgstr ""
2065
 
2066
- #: tmp/widgets/headline/headline.php:517, tmp/widgets/hero/hero.php:449
2067
  msgid "How aggressively FitText should resize your heading."
2068
  msgstr ""
2069
 
@@ -2131,62 +2131,70 @@ msgstr ""
2131
  msgid "Design and Layout"
2132
  msgstr ""
2133
 
2134
- #: tmp/widgets/hero/hero.php:333, tmp/widgets/layout-slider/layout-slider.php:130
 
 
 
 
2135
  msgid "Top and bottom padding"
2136
  msgstr ""
2137
 
2138
- #: tmp/widgets/hero/hero.php:345, tmp/widgets/layout-slider/layout-slider.php:136
2139
  msgid "Extra top padding"
2140
  msgstr ""
2141
 
2142
- #: tmp/widgets/hero/hero.php:347, tmp/widgets/layout-slider/layout-slider.php:137
2143
  msgid "Additional padding added to the top of the slider"
2144
  msgstr ""
2145
 
2146
- #: tmp/widgets/hero/hero.php:359, tmp/widgets/layout-slider/layout-slider.php:143
2147
  msgid "Side padding"
2148
  msgstr ""
2149
 
2150
- #: tmp/widgets/hero/hero.php:371, tmp/widgets/layout-slider/layout-slider.php:149
2151
  msgid "Maximum container width"
2152
  msgstr ""
2153
 
2154
- #: tmp/widgets/hero/hero.php:383
2155
  msgid "Heading font"
2156
  msgstr ""
2157
 
2158
- #: tmp/widgets/hero/hero.php:395, tmp/widgets/layout-slider/layout-slider.php:155
2159
  msgid "Heading color"
2160
  msgstr ""
2161
 
2162
- #: tmp/widgets/hero/hero.php:407, tmp/widgets/layout-slider/layout-slider.php:161
2163
  msgid "Heading size"
2164
  msgstr ""
2165
 
2166
- #: tmp/widgets/hero/hero.php:469, tmp/widgets/layout-slider/layout-slider.php:167
2167
  msgid "Heading shadow intensity"
2168
  msgstr ""
2169
 
2170
- #: tmp/widgets/hero/hero.php:495, tmp/widgets/layout-slider/layout-slider.php:175
2171
  msgid "Text size"
2172
  msgstr ""
2173
 
2174
- #: tmp/widgets/hero/hero.php:505
2175
  msgid "Text font"
2176
  msgstr ""
2177
 
2178
- #: tmp/widgets/hero/hero.php:515
2179
  msgid "Text shadow intensity"
2180
  msgstr ""
2181
 
2182
- #: tmp/widgets/hero/hero.php:533
2183
  msgid "Link color"
2184
  msgstr ""
2185
 
2186
- #: tmp/widgets/hero/hero.php:543
2187
  msgid "Link Hover Color"
2188
  msgstr ""
2189
 
 
 
 
 
2190
  #: tmp/widgets/icon/icon.php:16
2191
  msgid "SiteOrigin Icon"
2192
  msgstr ""
826
  msgid "Button color"
827
  msgstr ""
828
 
829
+ #: tmp/widgets/button/button.php:271, tmp/widgets/contact/contact.php:1137, tmp/widgets/hero/hero.php:497, tmp/widgets/layout-slider/layout-slider.php:181
830
  msgid "Text color"
831
  msgstr ""
832
 
1575
  msgid "Open more URL in a new window"
1576
  msgstr ""
1577
 
1578
+ #: tmp/widgets/features/features.php:593, tmp/widgets/hero/hero.php:847
1579
  msgid "Responsive Breakpoint"
1580
  msgstr ""
1581
 
2051
  msgid "Sub Headline"
2052
  msgstr ""
2053
 
2054
+ #: tmp/widgets/headline/headline.php:487, tmp/widgets/hero/hero.php:431
2055
  msgid "Use FitText"
2056
  msgstr ""
2057
 
2058
+ #: tmp/widgets/headline/headline.php:489, tmp/widgets/hero/hero.php:433
2059
  msgid "Dynamically adjust your heading font size based on screen size."
2060
  msgstr ""
2061
 
2062
+ #: tmp/widgets/headline/headline.php:515, tmp/widgets/hero/hero.php:459
2063
  msgid "FitText Compressor Strength"
2064
  msgstr ""
2065
 
2066
+ #: tmp/widgets/headline/headline.php:517, tmp/widgets/hero/hero.php:461
2067
  msgid "How aggressively FitText should resize your heading."
2068
  msgstr ""
2069
 
2131
  msgid "Design and Layout"
2132
  msgstr ""
2133
 
2134
+ #: tmp/widgets/hero/hero.php:333
2135
+ msgid "Responsive Height"
2136
+ msgstr ""
2137
+
2138
+ #: tmp/widgets/hero/hero.php:345, tmp/widgets/layout-slider/layout-slider.php:130
2139
  msgid "Top and bottom padding"
2140
  msgstr ""
2141
 
2142
+ #: tmp/widgets/hero/hero.php:357, tmp/widgets/layout-slider/layout-slider.php:136
2143
  msgid "Extra top padding"
2144
  msgstr ""
2145
 
2146
+ #: tmp/widgets/hero/hero.php:359, tmp/widgets/layout-slider/layout-slider.php:137
2147
  msgid "Additional padding added to the top of the slider"
2148
  msgstr ""
2149
 
2150
+ #: tmp/widgets/hero/hero.php:371, tmp/widgets/layout-slider/layout-slider.php:143
2151
  msgid "Side padding"
2152
  msgstr ""
2153
 
2154
+ #: tmp/widgets/hero/hero.php:383, tmp/widgets/layout-slider/layout-slider.php:149
2155
  msgid "Maximum container width"
2156
  msgstr ""
2157
 
2158
+ #: tmp/widgets/hero/hero.php:395
2159
  msgid "Heading font"
2160
  msgstr ""
2161
 
2162
+ #: tmp/widgets/hero/hero.php:407, tmp/widgets/layout-slider/layout-slider.php:155
2163
  msgid "Heading color"
2164
  msgstr ""
2165
 
2166
+ #: tmp/widgets/hero/hero.php:419, tmp/widgets/layout-slider/layout-slider.php:161
2167
  msgid "Heading size"
2168
  msgstr ""
2169
 
2170
+ #: tmp/widgets/hero/hero.php:481, tmp/widgets/layout-slider/layout-slider.php:167
2171
  msgid "Heading shadow intensity"
2172
  msgstr ""
2173
 
2174
+ #: tmp/widgets/hero/hero.php:507, tmp/widgets/layout-slider/layout-slider.php:175
2175
  msgid "Text size"
2176
  msgstr ""
2177
 
2178
+ #: tmp/widgets/hero/hero.php:517
2179
  msgid "Text font"
2180
  msgstr ""
2181
 
2182
+ #: tmp/widgets/hero/hero.php:527
2183
  msgid "Text shadow intensity"
2184
  msgstr ""
2185
 
2186
+ #: tmp/widgets/hero/hero.php:545
2187
  msgid "Link color"
2188
  msgstr ""
2189
 
2190
+ #: tmp/widgets/hero/hero.php:555
2191
  msgid "Link Hover Color"
2192
  msgstr ""
2193
 
2194
+ #: tmp/widgets/hero/hero.php:851
2195
+ msgid "This setting controls when the Hero widget will switch to the responsive height for slides. This breakpoint will only be used if a responsive height is set in the hero settings. The default value is 780px"
2196
+ msgstr ""
2197
+
2198
  #: tmp/widgets/icon/icon.php:16
2199
  msgid "SiteOrigin Icon"
2200
  msgstr ""
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.1
5
- Stable tag: 1.11.5
6
- Build time: 2018-03-13T10:14:26+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/contribution/
@@ -65,6 +65,11 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
68
  = 1.11.5 - 13 March 2018 =
69
  * Features: Better feature padding removal on row ends.
70
  * Sliders: WCAG 2.4.4 compliance.
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.1
5
+ Stable tag: 1.11.6
6
+ Build time: 2018-03-14T15:47:12+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/contribution/
65
 
66
  == Changelog ==
67
 
68
+ = 1.11.6 - 14 March 2018 =
69
+ * Hero: Add responsive height settings.
70
+ * Added pikaday jQuery plugin and register pikaday scripts for front end too.
71
+ * Features: item float clearing and padding mobile specific.
72
+
73
  = 1.11.5 - 13 March 2018 =
74
  * Features: Better feature padding removal on row ends.
75
  * Sliders: WCAG 2.4.4 compliance.
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.5
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.5');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
@@ -776,6 +776,22 @@ class SiteOrigin_Widgets_Bundle {
776
  array( 'jquery' ),
777
  SOW_BUNDLE_VERSION
778
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
779
  }
780
 
781
  /**
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
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.6');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
776
  array( 'jquery' ),
777
  SOW_BUNDLE_VERSION
778
  );
779
+ wp_register_script(
780
+ 'sowb-pikaday',
781
+ plugin_dir_url( SOW_BUNDLE_BASE_FILE ) . 'js/lib/pikaday' . SOW_BUNDLE_JS_SUFFIX . '.js',
782
+ array( ),
783
+ '1.6.1'
784
+ );
785
+ wp_register_script(
786
+ 'sowb-pikaday-jquery',
787
+ plugin_dir_url( SOW_BUNDLE_BASE_FILE ) . 'js/lib/pikaday.jquery' . SOW_BUNDLE_JS_SUFFIX . '.js',
788
+ array( 'sowb-pikaday' ),
789
+ '1.6.1'
790
+ );
791
+ wp_register_style(
792
+ 'sowb-pikaday',
793
+ plugin_dir_url(__FILE__) . 'js/lib/pikaday.css'
794
+ );
795
  }
796
 
797
  /**
widgets/features/styles/default.less CHANGED
@@ -34,12 +34,15 @@
34
  padding: 0 25px;
35
  display: flex;
36
 
37
- &:nth-of-type(@{per_row}n+1) {
38
- padding-left: 0;
39
- }
 
 
40
 
41
- &:nth-of-type(@{per_row}n) {
42
- padding-right: 0;
 
43
  }
44
 
45
  &.sow-icon-container-position-top {
34
  padding: 0 25px;
35
  display: flex;
36
 
37
+ @media (min-width: @responsive_breakpoint) {
38
+ &:nth-of-type(@{per_row}n+1) {
39
+ padding-left: 0;
40
+ clear: left;
41
+ }
42
 
43
+ &:nth-of-type(@{per_row}n) {
44
+ padding-right: 0;
45
+ }
46
  }
47
 
48
  &.sow-icon-container-position-top {
widgets/hero/hero.php CHANGED
@@ -162,6 +162,12 @@ class SiteOrigin_Widget_Hero_Widget extends SiteOrigin_Widget_Base_Slider {
162
  'default' => 'default',
163
  ),
164
 
 
 
 
 
 
 
165
  'padding' => array(
166
  'type' => 'measurement',
167
  'label' => __('Top and bottom padding', 'so-widgets-bundle'),
@@ -368,7 +374,9 @@ class SiteOrigin_Widget_Hero_Widget extends SiteOrigin_Widget_Base_Slider {
368
  $meas_options['slide_padding_sides'] = $instance['design']['padding_sides'];
369
  $meas_options['slide_width'] = $instance['design']['width'];
370
  $meas_options['slide_height'] = $instance['design']['height'];
371
-
 
 
372
  $meas_options['heading_size'] = $instance['design']['heading_size'];
373
  $meas_options['text_size'] = $instance['design']['text_size'];
374
 
@@ -400,9 +408,26 @@ class SiteOrigin_Widget_Hero_Widget extends SiteOrigin_Widget_Base_Slider {
400
  }
401
  }
402
 
 
 
 
 
 
 
403
  return $less;
404
  }
405
 
 
 
 
 
 
 
 
 
 
 
 
406
  function add_default_measurement_unit($val) {
407
  if (!empty($val)) {
408
  if (!preg_match('/\d+([a-zA-Z%]+)/', $val)) {
162
  'default' => 'default',
163
  ),
164
 
165
+ 'height_responsive' => array(
166
+ 'type' => 'measurement',
167
+ 'label' => __( 'Responsive Height', 'so-widgets-bundle' ),
168
+ 'default' => 'default',
169
+ ),
170
+
171
  'padding' => array(
172
  'type' => 'measurement',
173
  'label' => __('Top and bottom padding', 'so-widgets-bundle'),
374
  $meas_options['slide_padding_sides'] = $instance['design']['padding_sides'];
375
  $meas_options['slide_width'] = $instance['design']['width'];
376
  $meas_options['slide_height'] = $instance['design']['height'];
377
+ if ( ! empty( $instance['design']['height_responsive'] ) ) {
378
+ $meas_options['slide_height_responsive'] = $instance['design']['height_responsive'];
379
+ }
380
  $meas_options['heading_size'] = $instance['design']['heading_size'];
381
  $meas_options['text_size'] = $instance['design']['text_size'];
382
 
408
  }
409
  }
410
 
411
+ $global_settings = $this->get_global_settings();
412
+
413
+ if ( ! empty( $global_settings['responsive_breakpoint'] ) ) {
414
+ $less_vars['responsive_breakpoint'] = $global_settings['responsive_breakpoint'];
415
+ }
416
+
417
  return $less;
418
  }
419
 
420
+ function get_settings_form() {
421
+ return array(
422
+ 'responsive_breakpoint' => array(
423
+ 'type' => 'measurement',
424
+ 'label' => __( 'Responsive Breakpoint', 'so-widgets-bundle' ),
425
+ 'default' => '780px',
426
+ 'description' => __( 'This setting controls when the Hero widget will switch to the responsive height for slides. This breakpoint will only be used if a responsive height is set in the hero settings. The default value is 780px', 'so-widgets-bundle' )
427
+ )
428
+ );
429
+ }
430
+
431
  function add_default_measurement_unit($val) {
432
  if (!empty($val)) {
433
  if (!preg_match('/\d+([a-zA-Z%]+)/', $val)) {
widgets/hero/styles/default.less CHANGED
@@ -25,6 +25,9 @@
25
  @heading_color: #FFFFFF;
26
  @heading_shadow: 50;
27
 
 
 
 
28
  .sow-slider-base {
29
 
30
  ul.sow-slider-images {
@@ -35,6 +38,14 @@
35
  max-width: @slide_width;
36
  height: @slide_height;
37
 
 
 
 
 
 
 
 
 
38
  h1,h2,h3,h4,h5,h6{
39
  line-height: 1.375em;
40
  color: @heading_color;
25
  @heading_color: #FFFFFF;
26
  @heading_shadow: 50;
27
 
28
+ @responsive_breakpoint: 780px;
29
+ @slide_height_responsive: default;
30
+
31
  .sow-slider-base {
32
 
33
  ul.sow-slider-images {
38
  max-width: @slide_width;
39
  height: @slide_height;
40
 
41
+ & when ( isnumber( @slide_height_responsive ) ) {
42
+ @media (max-width: @responsive_breakpoint) {
43
+ &{
44
+ height: @slide_height_responsive;
45
+ }
46
+ }
47
+ }
48
+
49
  h1,h2,h3,h4,h5,h6{
50
  line-height: 1.375em;
51
  color: @heading_color;