Skip to content

Commit e0b866b

Browse files
committed
Merge branch 'release/1.63.3'
2 parents f186509 + 804bc80 commit e0b866b

File tree

11 files changed

+32
-22
lines changed

11 files changed

+32
-22
lines changed

base/inc/fields/builder.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class="siteorigin-page-builder-field"
2424
>
2525
<p>
2626
<button class="button-secondary siteorigin-panels-display-builder">
27-
<?php _e( 'Open Builder', 'siteorigin-panels' ); ?>
27+
<?php esc_html_e( 'Open Builder', 'so-widgets-bundle' ); ?>
2828
</button>
2929
</p>
3030
<input

base/inc/fields/error.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SiteOrigin_Widget_Field_Error extends SiteOrigin_Widget_Field_Base {
1414
protected $message;
1515

1616
protected function render_field( $value, $instance ) {
17-
printf( __( $this->message, 'so-widgets-bundle' ) );
17+
echo esc_html( $this->message );
1818
}
1919

2020
protected function sanitize_field_input( $value, $instance ) {

base/inc/fields/factory.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function create_field( $field_name, $field_options, SiteOrigin_Widget $fo
3232
'',
3333
array(
3434
'type' => 'error',
35-
'message' => 'The class \'' . $field_class . '\' could not be found. Please make sure you specified the correct field type and that the class exists.',
35+
// Translators: %s is the field class that could not be found.
36+
'message' => sprintf(
37+
'The class \'%s\' could not be found. Please make sure you specified the correct field type and that the class exists.',
38+
'so-widgets-bundle',
39+
$field_class ),
3640
)
3741
);
3842
}

readme.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets
109109

110110
== Changelog ==
111111

112+
= 1.63.3 - 11 October 2024 =
113+
* Button: Renamed Justify alignment to Full Width.
114+
* Button: Update to ensure Justify full-width output in conjunction with the Atom theme.
115+
* Blog: Removed generic Read More CSS class to avoid conflicts.
116+
* Improved field error translation handling.
117+
112118
= 1.63.2 - 23 September 2024 =
113119
* Blog: Output Filtered taxonomy directly.
114120
* Blog: Prevented multiple Blog Widgets on a page from "stacking" pagination.

widgets/blog/blog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function get_widget_form() {
125125
),
126126
'featured_image_size' => array(
127127
'type' => 'image-size',
128-
'label' => __( 'Featured Image Size', 'siteorigin-premium' ),
128+
'label' => __( 'Featured Image Size', 'so-widgets-bundle' ),
129129
'custom_size' => true,
130130
'state_handler' => array(
131131
'featured_image[show]' => array( 'show' ),
@@ -1278,7 +1278,7 @@ public function override_read_more( $settings, $setup = true ) {
12781278
}
12791279

12801280
public function alter_read_more_link( $link ) {
1281-
return '<a class="sow-more-link more-link excerpt" href="' . esc_url( get_permalink() ) . '"> ' . esc_html( get_query_var( 'siteorigin_blog_read_more' ) ) . '<span class="sow-more-link-arrow">&rarr;</span></a>';
1281+
return '<a class="sow-more-link" href="' . esc_url( get_permalink() ) . '"> ' . esc_html( get_query_var( 'siteorigin_blog_read_more' ) ) . '<span class="sow-more-link-arrow">&rarr;</span></a>';
12821282
}
12831283

12841284
public function alter_excerpt_more_indicator( $indicator ) {

widgets/blog/css/style.less

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,17 @@
6969
}
7070

7171
.sow-more-link {
72+
background: none;
73+
border: none;
74+
box-shadow: none;
75+
display: block;
76+
float: none;
77+
font-size: 1em;
78+
font-weight: normal;
79+
margin-top: 26px;
7280
padding: 0;
7381
text-decoration: none;
7482

75-
&.excerpt {
76-
background: none;
77-
border: none;
78-
box-shadow: none;
79-
display: block;
80-
float: none;
81-
font-size: 1em;
82-
font-weight: normal;
83-
margin-top: 26px;
84-
}
85-
8683
&:focus,
8784
&:hover {
8885
text-decoration: none;

widgets/button/button.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function get_widget_form() {
126126
'left' => __( 'Left', 'so-widgets-bundle' ),
127127
'right' => __( 'Right', 'so-widgets-bundle' ),
128128
'center' => __( 'Center', 'so-widgets-bundle' ),
129-
'justify' => __( 'Justify', 'so-widgets-bundle' ),
129+
'justify' => __( 'Full Width', 'so-widgets-bundle' ),
130130
),
131131
),
132132
'mobile_align' => array(
@@ -137,7 +137,7 @@ public function get_widget_form() {
137137
'left' => __( 'Left', 'so-widgets-bundle' ),
138138
'right' => __( 'Right', 'so-widgets-bundle' ),
139139
'center' => __( 'Center', 'so-widgets-bundle' ),
140-
'justify' => __( 'Justify', 'so-widgets-bundle' ),
140+
'justify' => __( 'Full Width', 'so-widgets-bundle' ),
141141
),
142142
),
143143
'theme' => array(

widgets/button/styles/atom.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
border-color: lighten(@border_color, 2%) @border_color darken(@border_color, 3%) @border_color;
5353
border: 1px solid;
5454
color: @text_color !important;
55-
display: inline-block;
5655
font-size: @font_size;
5756
font-style: @button_font_style;
5857
padding-block: @padding;

widgets/button/tpl/default.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
$add_anchor = ! empty( $href ) ||
1414
apply_filters( 'siteorigin_widgets_button_always_add_anchor', true );
1515
?>
16-
<div class="ow-button-base ow-button-align-<?php echo esc_attr( $align ); ?>">
16+
<div class="ow-button-base ow-button-align-<?php echo esc_attr( $align ); ?>"<?php
17+
if ( $align === 'justify' ) {
18+
echo ' style="display: block;"';
19+
}
20+
?>>
1721
<?php if ( $add_anchor ) { ?>
1822
<a
1923
<?php if ( ! empty( $href ) ) { ?>

widgets/cta/cta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function get_widget_form() {
113113
'fields' => array(
114114
'title_tag' => array(
115115
'type' => 'select',
116-
'label' => __( 'Title HTML Tag', 'siteorigin-premium' ),
116+
'label' => __( 'Title HTML Tag', 'so-widgets-bundle' ),
117117
'default' => 'h4',
118118
'options' => array(
119119
'h1' => __( 'H1', 'so-widgets-bundle' ),

widgets/editor/editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function process_more_quicktag( $content ) {
141141
if ( ! empty( $matches[1] ) ) {
142142
$more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) );
143143
} else {
144-
$more_link_text = __( 'Read More', 'siteorigin-panels' );
144+
$more_link_text = __( 'Read More', 'so-widgets-bundle' );
145145
}
146146
$more_link = apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
147147
$content .= '<p>' . $more_link . '</p>';

0 commit comments

Comments
 (0)