diff --git a/base/inc/fields/builder.class.php b/base/inc/fields/builder.class.php index ff0ba91df..81ace3ca2 100644 --- a/base/inc/fields/builder.class.php +++ b/base/inc/fields/builder.class.php @@ -24,7 +24,7 @@ class="siteorigin-page-builder-field" >
message, 'so-widgets-bundle' ) ); + echo esc_html( $this->message ); } protected function sanitize_field_input( $value, $instance ) { diff --git a/base/inc/fields/factory.class.php b/base/inc/fields/factory.class.php index 1927ebe07..c0d0ae581 100644 --- a/base/inc/fields/factory.class.php +++ b/base/inc/fields/factory.class.php @@ -32,7 +32,11 @@ public function create_field( $field_name, $field_options, SiteOrigin_Widget $fo '', array( 'type' => 'error', - 'message' => 'The class \'' . $field_class . '\' could not be found. Please make sure you specified the correct field type and that the class exists.', + // Translators: %s is the field class that could not be found. + 'message' => sprintf( + 'The class \'%s\' could not be found. Please make sure you specified the correct field type and that the class exists.', + 'so-widgets-bundle', + $field_class ), ) ); } diff --git a/readme.txt b/readme.txt index 106e4a218..62e332ca4 100644 --- a/readme.txt +++ b/readme.txt @@ -109,6 +109,12 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets == Changelog == += 1.63.3 - 11 October 2024 = +* Button: Renamed Justify alignment to Full Width. +* Button: Update to ensure Justify full-width output in conjunction with the Atom theme. +* Blog: Removed generic Read More CSS class to avoid conflicts. +* Improved field error translation handling. + = 1.63.2 - 23 September 2024 = * Blog: Output Filtered taxonomy directly. * Blog: Prevented multiple Blog Widgets on a page from "stacking" pagination. diff --git a/widgets/blog/blog.php b/widgets/blog/blog.php index 2b8819cc4..812f24f85 100644 --- a/widgets/blog/blog.php +++ b/widgets/blog/blog.php @@ -125,7 +125,7 @@ public function get_widget_form() { ), 'featured_image_size' => array( 'type' => 'image-size', - 'label' => __( 'Featured Image Size', 'siteorigin-premium' ), + 'label' => __( 'Featured Image Size', 'so-widgets-bundle' ), 'custom_size' => true, 'state_handler' => array( 'featured_image[show]' => array( 'show' ), @@ -1278,7 +1278,7 @@ public function override_read_more( $settings, $setup = true ) { } public function alter_read_more_link( $link ) { - return ' ' . esc_html( get_query_var( 'siteorigin_blog_read_more' ) ) . '→'; + return ' ' . esc_html( get_query_var( 'siteorigin_blog_read_more' ) ) . '→'; } public function alter_excerpt_more_indicator( $indicator ) { diff --git a/widgets/blog/css/style.less b/widgets/blog/css/style.less index 4e259db7a..7875cc728 100644 --- a/widgets/blog/css/style.less +++ b/widgets/blog/css/style.less @@ -69,20 +69,17 @@ } .sow-more-link { + background: none; + border: none; + box-shadow: none; + display: block; + float: none; + font-size: 1em; + font-weight: normal; + margin-top: 26px; padding: 0; text-decoration: none; - &.excerpt { - background: none; - border: none; - box-shadow: none; - display: block; - float: none; - font-size: 1em; - font-weight: normal; - margin-top: 26px; - } - &:focus, &:hover { text-decoration: none; diff --git a/widgets/button/button.php b/widgets/button/button.php index bc0a00bdb..fe5a92533 100644 --- a/widgets/button/button.php +++ b/widgets/button/button.php @@ -126,7 +126,7 @@ public function get_widget_form() { 'left' => __( 'Left', 'so-widgets-bundle' ), 'right' => __( 'Right', 'so-widgets-bundle' ), 'center' => __( 'Center', 'so-widgets-bundle' ), - 'justify' => __( 'Justify', 'so-widgets-bundle' ), + 'justify' => __( 'Full Width', 'so-widgets-bundle' ), ), ), 'mobile_align' => array( @@ -137,7 +137,7 @@ public function get_widget_form() { 'left' => __( 'Left', 'so-widgets-bundle' ), 'right' => __( 'Right', 'so-widgets-bundle' ), 'center' => __( 'Center', 'so-widgets-bundle' ), - 'justify' => __( 'Justify', 'so-widgets-bundle' ), + 'justify' => __( 'Full Width', 'so-widgets-bundle' ), ), ), 'theme' => array( diff --git a/widgets/button/styles/atom.less b/widgets/button/styles/atom.less index baee8fcd6..f40be83e8 100644 --- a/widgets/button/styles/atom.less +++ b/widgets/button/styles/atom.less @@ -52,7 +52,6 @@ border-color: lighten(@border_color, 2%) @border_color darken(@border_color, 3%) @border_color; border: 1px solid; color: @text_color !important; - display: inline-block; font-size: @font_size; font-style: @button_font_style; padding-block: @padding; diff --git a/widgets/button/tpl/default.php b/widgets/button/tpl/default.php index 74ba14ad4..6d580f5fd 100644 --- a/widgets/button/tpl/default.php +++ b/widgets/button/tpl/default.php @@ -13,7 +13,11 @@ $add_anchor = ! empty( $href ) || apply_filters( 'siteorigin_widgets_button_always_add_anchor', true ); ?> -