SiteOrigin Widgets Bundle - Version 1.42.1

Version Description

  • 23 September 2022 =
  • Blog: Updated settings CSS specificity.
  • Blog: Resolved error when loading posts using Ajax.
  • Google Maps: Prevented Google logo from being hidden by theme styles.
Download this release

Release Info

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

Code changes from version 1.42.0 to 1.42.1

readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: widget, button, slider, hero, google maps, image, carousel, lottie, featur
3
  Requires at least: 4.2
4
  Tested up to: 6.0
5
  Requires PHP: 5.6.20
6
- Stable tag: 1.42.0
7
- Build time: 2022-09-21T19:50:52+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis, alexgso
10
  Donate link: https://siteorigin.com/downloads/premium/
@@ -106,6 +106,11 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets
106
 
107
  == Changelog ==
108
 
 
 
 
 
 
109
  = 1.42.0 - 21 September 2022 =
110
  * Blog: Added a `Featured Image Size` setting.
111
  * Blog: Increased Alternate template featured image to full-width on mobile.
3
  Requires at least: 4.2
4
  Tested up to: 6.0
5
  Requires PHP: 5.6.20
6
+ Stable tag: 1.42.1
7
+ Build time: 2022-09-23T20:23:14+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis, alexgso
10
  Donate link: https://siteorigin.com/downloads/premium/
106
 
107
  == Changelog ==
108
 
109
+ = 1.42.1 - 23 September 2022 =
110
+ * Blog: Updated settings CSS specificity.
111
+ * Blog: Resolved error when loading posts using Ajax.
112
+ * Google Maps: Prevented Google logo from being hidden by theme styles.
113
+
114
  = 1.42.0 - 21 September 2022 =
115
  * Blog: Added a `Featured Image Size` setting.
116
  * Blog: Increased Alternate template featured image to full-width on mobile.
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.42.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.42.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.42.1
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.42.1' );
16
  define( 'SOW_BUNDLE_BASE_FILE', __FILE__ );
17
 
18
  // Allow JS suffix to be pre-set.
widgets/blog/blog.php CHANGED
@@ -1000,7 +1000,7 @@ class SiteOrigin_Widget_Blog_Widget extends SiteOrigin_Widget {
1000
  <?php endif;
1001
  }
1002
 
1003
- public function post_featured_image( $settings, $categories = false, $size = 'full' ) {
1004
  if ( $settings['featured_image'] && has_post_thumbnail() ) : ?>
1005
  <div class="sow-entry-thumbnail">
1006
  <?php if ( $categories && $settings['categories'] && has_category() ) : ?>
1000
  <?php endif;
1001
  }
1002
 
1003
+ static public function post_featured_image( $settings, $categories = false, $size = 'full' ) {
1004
  if ( $settings['featured_image'] && has_post_thumbnail() ) : ?>
1005
  <div class="sow-entry-thumbnail">
1006
  <?php if ( $categories && $settings['categories'] && has_category() ) : ?>
widgets/blog/styles/alternate.less CHANGED
@@ -53,11 +53,6 @@
53
  .sow-blog-posts article {
54
  background: @post_background;
55
  border: 1px solid @post_border_color;
56
- }
57
-
58
- article {
59
- background: @post_background;
60
- border: 1px solid @post_border_color;
61
  margin-left: 0;
62
  margin-right: 0;
63
  margin-top: 0;
53
  .sow-blog-posts article {
54
  background: @post_background;
55
  border: 1px solid @post_border_color;
 
 
 
 
 
56
  margin-left: 0;
57
  margin-right: 0;
58
  margin-top: 0;
widgets/blog/styles/grid.less CHANGED
@@ -51,7 +51,6 @@
51
  @pagination_width: default;
52
 
53
  .sow-blog-layout-grid {
54
-
55
  .sow-blog-posts {
56
  column-gap: @column_spacing;
57
  display: grid;
@@ -64,76 +63,73 @@
64
  @media (max-width: @responsive_breakpoint) {
65
  width: 100%;
66
  }
67
- }
68
- }
69
-
70
- article {
71
 
72
- .sow-entry-header {
73
 
74
- .sow-entry-title {
75
- font-family: @title_font;
76
- font-size: @title_font_size;
77
- font-style: @title_font_style;
78
- font-weight: @title_font_weight;
79
 
80
- a {
81
- color: @title_color;
82
 
83
- &:hover,
84
- &:focus {
85
- color: @title_color_hover;
 
86
  }
87
  }
88
- }
89
 
90
- .sow-entry-meta {
91
- font-family: @meta_font;
92
- font-size: @meta_font_size;
93
- font-style: @meta_font_style;
94
- font-weight: @meta_font_weight;
95
-
96
- span {
97
- color: @meta_color;
98
 
99
- a {
100
  color: @meta_color;
101
 
102
- &:hover,
103
- &:focus {
104
- color: @meta_color_hover;
 
 
 
 
105
  }
106
  }
107
- }
108
 
109
- &:not(:last-child)::after {
110
- font-size: @meta_font_size;
 
111
  }
112
  }
113
- }
114
 
115
- .sow-entry-content {
116
- color: @content_color;
117
- font-family: @content_font;
118
- font-size: @content_font_size;
119
- font-style: @content_font_style;
120
- font-weight: @content_font_weight;
121
 
122
- a {
123
- color: @content_link;
124
 
125
- &:hover,
126
- &:focus {
127
- color: @content_link_hover;
 
128
  }
129
  }
130
- }
131
 
132
- .sow-more-link {
133
- font-family: @content_font;
134
- font-size: @content_font_size;
135
- font-style: @content_font_style;
136
- font-weight: @content_font_weight;
 
137
  }
138
  }
139
 
51
  @pagination_width: default;
52
 
53
  .sow-blog-layout-grid {
 
54
  .sow-blog-posts {
55
  column-gap: @column_spacing;
56
  display: grid;
63
  @media (max-width: @responsive_breakpoint) {
64
  width: 100%;
65
  }
 
 
 
 
66
 
67
+ .sow-entry-header {
68
 
69
+ .sow-entry-title {
70
+ font-family: @title_font;
71
+ font-size: @title_font_size;
72
+ font-style: @title_font_style;
73
+ font-weight: @title_font_weight;
74
 
75
+ a {
76
+ color: @title_color;
77
 
78
+ &:hover,
79
+ &:focus {
80
+ color: @title_color_hover;
81
+ }
82
  }
83
  }
 
84
 
85
+ .sow-entry-meta {
86
+ font-family: @meta_font;
87
+ font-size: @meta_font_size;
88
+ font-style: @meta_font_style;
89
+ font-weight: @meta_font_weight;
 
 
 
90
 
91
+ span {
92
  color: @meta_color;
93
 
94
+ a {
95
+ color: @meta_color;
96
+
97
+ &:hover,
98
+ &:focus {
99
+ color: @meta_color_hover;
100
+ }
101
  }
102
  }
 
103
 
104
+ &:not(:last-child)::after {
105
+ font-size: @meta_font_size;
106
+ }
107
  }
108
  }
 
109
 
110
+ .sow-entry-content {
111
+ color: @content_color;
112
+ font-family: @content_font;
113
+ font-size: @content_font_size;
114
+ font-style: @content_font_style;
115
+ font-weight: @content_font_weight;
116
 
117
+ a {
118
+ color: @content_link;
119
 
120
+ &:hover,
121
+ &:focus {
122
+ color: @content_link_hover;
123
+ }
124
  }
125
  }
 
126
 
127
+ .sow-more-link {
128
+ font-family: @content_font;
129
+ font-size: @content_font_size;
130
+ font-style: @content_font_style;
131
+ font-weight: @content_font_weight;
132
+ }
133
  }
134
  }
135
 
widgets/blog/styles/masonry.less CHANGED
@@ -62,7 +62,7 @@
62
 
63
  .sow-blog-layout-masonry {
64
 
65
- article {
66
  width: @column_width;
67
 
68
  @media (max-width: @responsive_breakpoint) {
62
 
63
  .sow-blog-layout-masonry {
64
 
65
+ .sow-blog-posts article {
66
  width: @column_width;
67
 
68
  @media (max-width: @responsive_breakpoint) {
widgets/blog/styles/offset.less CHANGED
@@ -61,7 +61,7 @@
61
 
62
  .sow-blog-layout-offset {
63
 
64
- article {
65
 
66
  .sow-blog-entry-offset {
67
  color: @offset_post_meta_color;
61
 
62
  .sow-blog-layout-offset {
63
 
64
+ .sow-blog-posts article {
65
 
66
  .sow-blog-entry-offset {
67
  color: @offset_post_meta_color;
widgets/blog/styles/portfolio.less CHANGED
@@ -56,6 +56,50 @@
56
  column-gap: 1.1667%;
57
  display: grid;
58
  grid-template-columns: repeat( @columns, 1fr );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
  & when( @categories = 1 ) {
@@ -91,50 +135,6 @@
91
  }
92
  }
93
 
94
- article {
95
- margin-bottom: 30px;
96
- padding: 0 1.1667%;
97
- width: @column_width;
98
-
99
- @media (max-width: @responsive_breakpoint) {
100
- width: 100%;
101
- }
102
-
103
- .sow-entry-thumbnail {
104
-
105
- &:hover .sow-entry-overlay {
106
- background: @featured_image_hover_overlay_color;
107
- border: 2px solid @featured_image_border_color;
108
- }
109
-
110
- .sow-entry-title {
111
- color: @featured_image_post_title_color;
112
- font-family: @featured_image_post_title_font;
113
- font-size: @featured_image_post_title_font_size;
114
- font-style: @featured_image_post_title_font_style;
115
- font-weight: @featured_image_post_title_font_weight;
116
- }
117
-
118
- & when( @categories = 1 ) {
119
- .sow-entry-divider {
120
- margin: @featured_image_divider_border_margin 0;
121
- border: @featured_image_divider_border_thickness solid @featured_image_divider_border_color;
122
- }
123
-
124
- .sow-entry-project-type {
125
- color: @featured_image_post_meta_color;
126
- font-family: @featured_image_post_meta_font;
127
- font-size: @featured_image_post_meta_font_size;
128
- font-style: @featured_image_post_meta_font_style;
129
- font-weight: @featured_image_post_meta_font_weight;
130
- letter-spacing: 1px;
131
- line-height: 1.7333;
132
- text-transform: uppercase;
133
- }
134
- }
135
- }
136
- }
137
-
138
  .sow-post-navigation {
139
 
140
  .sow-nav-links {
56
  column-gap: 1.1667%;
57
  display: grid;
58
  grid-template-columns: repeat( @columns, 1fr );
59
+
60
+ article {
61
+ margin-bottom: 30px;
62
+ padding: 0 1.1667%;
63
+ width: @column_width;
64
+
65
+ @media (max-width: @responsive_breakpoint) {
66
+ width: 100%;
67
+ }
68
+
69
+ .sow-entry-thumbnail {
70
+
71
+ &:hover .sow-entry-overlay {
72
+ background: @featured_image_hover_overlay_color;
73
+ border: 2px solid @featured_image_border_color;
74
+ }
75
+
76
+ .sow-entry-title {
77
+ color: @featured_image_post_title_color;
78
+ font-family: @featured_image_post_title_font;
79
+ font-size: @featured_image_post_title_font_size;
80
+ font-style: @featured_image_post_title_font_style;
81
+ font-weight: @featured_image_post_title_font_weight;
82
+ }
83
+
84
+ & when( @categories = 1 ) {
85
+ .sow-entry-divider {
86
+ margin: @featured_image_divider_border_margin 0;
87
+ border: @featured_image_divider_border_thickness solid @featured_image_divider_border_color;
88
+ }
89
+
90
+ .sow-entry-project-type {
91
+ color: @featured_image_post_meta_color;
92
+ font-family: @featured_image_post_meta_font;
93
+ font-size: @featured_image_post_meta_font_size;
94
+ font-style: @featured_image_post_meta_font_style;
95
+ font-weight: @featured_image_post_meta_font_weight;
96
+ letter-spacing: 1px;
97
+ line-height: 1.7333;
98
+ text-transform: uppercase;
99
+ }
100
+ }
101
+ }
102
+ }
103
  }
104
 
105
  & when( @categories = 1 ) {
135
  }
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  .sow-post-navigation {
139
 
140
  .sow-nav-links {
widgets/blog/styles/standard.less CHANGED
@@ -48,7 +48,7 @@
48
 
49
  .sow-blog-layout-standard {
50
 
51
- article {
52
 
53
  .sow-blog-content-wrapper {
54
  background: @post_background;
48
 
49
  .sow-blog-layout-standard {
50
 
51
+ .sow-blog-posts article {
52
 
53
  .sow-blog-content-wrapper {
54
  background: @post_background;
widgets/blog/tpl/alternate.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php $thumbnail_class = ! $settings['featured_image'] || ! has_post_thumbnail() ? 'sow-no-thumbnail' : ''; ?>
2
  <article id="post-<?php the_ID(); ?>" <?php post_class( "sow-blog-columns $thumbnail_class" ); ?> style="display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 30px;">
3
- <?php $this->post_featured_image( $settings ); ?>
4
  <div class="sow-blog-content-wrapper">
5
  <header class="sow-entry-header" style="margin-bottom: 18px;">
6
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
1
  <?php $thumbnail_class = ! $settings['featured_image'] || ! has_post_thumbnail() ? 'sow-no-thumbnail' : ''; ?>
2
  <article id="post-<?php the_ID(); ?>" <?php post_class( "sow-blog-columns $thumbnail_class" ); ?> style="display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 30px;">
3
+ <?php SiteOrigin_Widget_Blog_Widget::post_featured_image( $settings ); ?>
4
  <div class="sow-blog-content-wrapper">
5
  <header class="sow-entry-header" style="margin-bottom: 18px;">
6
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
widgets/blog/tpl/grid.php CHANGED
@@ -1,5 +1,5 @@
1
  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="margin: 0 0 30px;">
2
- <?php $this->post_featured_image( $settings ); ?>
3
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 33px;">
4
  <header class="sow-entry-header" style="margin-bottom: 20px;">
5
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
1
  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="margin: 0 0 30px;">
2
+ <?php SiteOrigin_Widget_Blog_Widget::post_featured_image( $settings ); ?>
3
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 33px;">
4
  <header class="sow-entry-header" style="margin-bottom: 20px;">
5
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
widgets/blog/tpl/masonry.php CHANGED
@@ -1,5 +1,5 @@
1
  <article id="post-<?php the_ID(); ?>" <?php post_class( 'sow-masonry-item' ); ?>>
2
- <?php $this->post_featured_image( $settings, true ); ?>
3
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 33px;">
4
  <header class="sow-entry-header" style="margin-bottom: 20px;">
5
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
1
  <article id="post-<?php the_ID(); ?>" <?php post_class( 'sow-masonry-item' ); ?>>
2
+ <?php SiteOrigin_Widget_Blog_Widget::post_featured_image( $settings ); ?>
3
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 33px;">
4
  <header class="sow-entry-header" style="margin-bottom: 20px;">
5
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
widgets/blog/tpl/offset.php CHANGED
@@ -52,7 +52,7 @@
52
  <?php endif; ?>
53
  </div>
54
  <div class="sow-blog-entry" style="width: 78%;">
55
- <?php $this->post_featured_image( $settings ); ?>
56
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 33px;">
57
  <header class="sow-entry-header" style="margin-bottom: 20px;">
58
  <?php
52
  <?php endif; ?>
53
  </div>
54
  <div class="sow-blog-entry" style="width: 78%;">
55
+ <?php SiteOrigin_Widget_Blog_Widget::post_featured_image( $settings ); ?>
56
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 33px;">
57
  <header class="sow-entry-header" style="margin-bottom: 20px;">
58
  <?php
widgets/blog/tpl/standard.php CHANGED
@@ -1,5 +1,5 @@
1
  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="margin: 0 0 40px">
2
- <?php $this->post_featured_image( $settings ); ?>
3
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 38px;">
4
  <header class="sow-entry-header" style="margin-bottom: 20px;">
5
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
1
  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="margin: 0 0 40px">
2
+ <?php SiteOrigin_Widget_Blog_Widget::post_featured_image( $settings ); ?>
3
  <div class="sow-blog-content-wrapper" style="padding: 25px 30px 38px;">
4
  <header class="sow-entry-header" style="margin-bottom: 20px;">
5
  <?php SiteOrigin_Widget_Blog_Widget::generate_post_title(); ?>
widgets/google-map/styles/default.less CHANGED
@@ -24,6 +24,11 @@
24
  max-width: none;
25
  zoom: normal;
26
  }
 
 
 
 
 
27
  }
28
 
29
  & when ( @map_consent = 1 ) {
24
  max-width: none;
25
  zoom: normal;
26
  }
27
+
28
+ // Reset the position of all divs to prevent a potential situation where the Google Maps logo could be hidden by unrelated CSS.
29
+ div {
30
+ position: initial;
31
+ }
32
  }
33
 
34
  & when ( @map_consent = 1 ) {