Skip to content

Commit

Permalink
Merge branch 'release/1.18.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Mar 6, 2021
2 parents b8b7692 + 7d7af6e commit 7a0c1ea
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 88 deletions.
7 changes: 6 additions & 1 deletion inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ function siteorigin_north_body_classes( $classes ) {
$classes[] = 'equalize-rows';
}

} elseif ( ! siteorigin_setting( 'masthead_text_above' ) && ! is_active_sidebar( 'topbar-sidebar' ) ) {
if ( wc_post_content_has_shortcode( 'products' ) ) {
$classes[] = 'woocommerce';
}
}

elseif ( ! siteorigin_setting( 'masthead_text_above' ) && ! is_active_sidebar( 'topbar-sidebar' ) ) {
$classes[] = 'no-topbar';
}

Expand Down
2 changes: 1 addition & 1 deletion inc/settings
30 changes: 15 additions & 15 deletions inc/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,15 +574,15 @@ function siteorigin_north_settings_custom_css( $css ) {
#page ::selection {
background-color: ${branding_accent};
}
button,input[type="button"],input[type="reset"],input[type="submit"] {
button,input[type=button],input[type=reset],input[type=submit] {
color: ${fonts_text_dark};
.font( ${fonts_headings} );
}
button:hover,button:active,button:focus,input[type="button"]:hover,input[type="button"]:active,input[type="button"]:focus,input[type="reset"]:hover,input[type="reset"]:active,input[type="reset"]:focus,input[type="submit"]:hover,input[type="submit"]:active,input[type="submit"]:focus {
button:hover,button:active,button:focus,input[type=button]:hover,input[type=button]:active,input[type=button]:focus,input[type=reset]:hover,input[type=reset]:active,input[type=reset]:focus,input[type=submit]:hover,input[type=submit]:active,input[type=submit]:focus {
background: ${branding_accent_dark};
border-color: ${branding_accent_dark};
}
input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="tel"],textarea {
input[type=text],input[type=email],input[type=url],input[type=password],input[type=search],input[type=tel],textarea {
background: ${fonts_field_background};
color: ${fonts_text_medium};
.font( ${fonts_details} );
Expand Down Expand Up @@ -648,7 +648,7 @@ function siteorigin_north_settings_custom_css( $css ) {
#header-search {
background: ${masthead_background_color};
}
#header-search input[type="search"] {
#header-search input[type=search] {
.font( ${fonts_details} );
}
#header-search #close-search .svg-icon-close path {
Expand All @@ -667,20 +667,20 @@ function siteorigin_north_settings_custom_css( $css ) {
background: .rgba( ${responsive_mobile_menu_background_color}, ${responsive_mobile_menu_background_opacity});
.font( ${fonts_menu} );
}
#mobile-navigation form input[type="search"] {
#mobile-navigation form input[type=search] {
border-bottom: 1px solid ${responsive_mobile_menu_text_color};
color: ${responsive_mobile_menu_text_color};
}
#mobile-navigation form input[type="search"]::-webkit-input-placeholder {
#mobile-navigation form input[type=search]::-webkit-input-placeholder {
color: .rgba( ${responsive_mobile_menu_text_color}, 0.7);
}
#mobile-navigation form input[type="search"]::-moz-placeholder {
#mobile-navigation form input[type=search]::-moz-placeholder {
color: .rgba( ${responsive_mobile_menu_text_color}, 0.7);
}
#mobile-navigation form input[type="search"]:-moz-placeholder {
#mobile-navigation form input[type=search]:-moz-placeholder {
color: .rgba( ${responsive_mobile_menu_text_color}, 0.7);
}
#mobile-navigation form input[type="search"]:-ms-input-placeholder {
#mobile-navigation form input[type=search]:-ms-input-placeholder {
color: .rgba( ${responsive_mobile_menu_text_color}, 0.7);
}
#mobile-navigation ul li a {
Expand Down Expand Up @@ -824,13 +824,13 @@ function siteorigin_north_settings_custom_css( $css ) {
background: ${branding_accent};
border-color: ${branding_accent};
}
.search-form button[type="submit"],.woocommerce-product-search button[type="submit"] {
.search-form button[type=submit],.woocommerce-product-search button[type=submit] {
color: ${fonts_text_medium};
}
.search-form button[type="submit"]:hover,.woocommerce-product-search button[type="submit"]:hover {
.search-form button[type=submit]:hover,.woocommerce-product-search button[type=submit]:hover {
color: ${fonts_text_dark};
}
.search-form button[type="submit"] svg path,.woocommerce-product-search button[type="submit"] svg path {
.search-form button[type=submit] svg path,.woocommerce-product-search button[type=submit] svg path {
fill: ${fonts_text_medium};
}
.post-pagination {
Expand Down Expand Up @@ -916,10 +916,10 @@ function siteorigin_north_wc_settings_custom_css( $css ) {
color: ${fonts_text_meta};
.font( ${fonts_details} );
}
.woocommerce #main ul.products li.product h3 {
.woocommerce ul.products li.product .woocommerce-loop-product__title a,.woocommerce ul.products li.product h3 {
color: ${fonts_text_dark};
}
.woocommerce #main ul.products li.product .price {
.woocommerce ul.products li.product .price {
.font( ${fonts_details} );
color: ${branding_accent};
}
Expand Down Expand Up @@ -948,7 +948,7 @@ function siteorigin_north_wc_settings_custom_css( $css ) {
background: ${branding_accent};
border-color: ${branding_accent};
}
.woocommerce.single #content div.product .product-under-title-meta {
.woocommerce.single #content div.product .product-under-title-meta,.woocommerce.single #content div.product .product_meta {
color: ${fonts_text_medium};
}
.woocommerce.single #content div.product #comments h2 {
Expand Down
20 changes: 14 additions & 6 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,23 @@ function siteorigin_north_display_icon( $type ) {

if ( ! function_exists( 'siteorigin_north_breadcrumbs' ) ) :
/**
* Display's breadcrumbs supported by Yoast SEO & Breadcrumb NavXT.
* Display's breadcrumbs supported by Breadcrumb NavXT, Rank Math, and Yoast SEO.
*/
function siteorigin_north_breadcrumbs() {
if ( function_exists('bcn_display') ) {
?><div class="breadcrumbs">
if ( function_exists( 'bcn_display' ) ) {
?>
<div class="breadcrumbs">
<?php bcn_display(); ?>
</div><?php
} elseif( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<div class="breadcrumbs">','</div>');
</div>
<?php
} elseif ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<div class="breadcrumbs">','</div>' );
} elseif ( function_exists( 'rank_math_the_breadcrumbs' ) ) {
?>
<div class="breadcrumbs">
<?php rank_math_the_breadcrumbs(); ?>
</div>
<?php
}
}
endif;
Expand Down
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: siteorigin

Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce

Tested up to: 5.6
Tested up to: 5.7
Requires at least: 4.7
Requires PHP: 5.6.20
License: GPLv2 or later
Expand Down Expand Up @@ -41,6 +41,7 @@ SiteOrigin North includes support for:
* [Jetpack Related Posts](https://jetpack.com/support/related-posts/)
* [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
* [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
* [Rank Math Breadcrumbs](https://wordpress.org/plugins/seo-by-rank-math/)
* [SiteOrigin Widgets Bundle](https://wordpress.org/plugins/so-widgets-bundle/)
* [SiteOrigin CSS](https://wordpress.org/plugins/so-css/)
* [Yet Another Related Posts Plugin (YARPP)](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
Expand Down Expand Up @@ -103,6 +104,12 @@ Original design files are available on [Google Drive](https://drive.google.com/f

== Changelog ==

= 1.18.0 - 06 March 2021 =
* WooCommerce: Improved product shortcode styling.
* WooCommerce: Fixed product shortcode quick view functionality.
* Added RankMath breadcrumb support.
* Updated SiteOrigin Settings framework.

= 1.17.19 - 15 January 2021 =
* Developer: Updated the Chosen minified JavaScript file.

Expand Down
99 changes: 49 additions & 50 deletions sass/woocommerce/_archives.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,69 +100,68 @@
padding-top: 8px;
}

#main {
ul.products {
li.product {
text-align: center;

@at-root .wc-columns-2#{&} {
margin: 0 5% 2.992em 0;
width: 47.5%;
}

@at-root .wc-columns-3#{&} {
margin: 0 3.8% 2.992em 0;
width: 30.8%;
}
ul.products {
li.product {
text-align: center;

@at-root .wc-columns-4#{&} {
margin: 0 3.333% 2.992em 0;
width: 22.5%;
}
@at-root .wc-columns-2#{&} {
margin: 0 5% 2.992em 0;
width: 47.5%;
}

@at-root .wc-columns-5#{&} {
margin: 0 2.9% 2.992em 0;
width: 17.68%;
}
@at-root .wc-columns-3#{&} {
margin: 0 3.8% 2.992em 0;
width: 30.8%;
}

@media (max-width: 600px) {
@at-root .wc-columns-4#{&} {
margin: 0 3.333% 2.992em 0;
width: 22.5%;
}

@at-root body.responsive#{&} {
margin-right: 0;
width: 100%;
}
}
@at-root .wc-columns-5#{&} {
margin: 0 2.9% 2.992em 0;
width: 17.68%;
}

a.added_to_cart {
font-size: 13px;
}
@media (max-width: 600px) {

&.last {
@at-root body.responsive#{&} {
margin-right: 0;
width: 100%;
}
}

.onsale {
padding: 0;
}
a.added_to_cart {
font-size: 13px;
}

h3 {
color: $color__text_dark;
margin-top: 0;
}
&.last {
margin-right: 0;
}

.star-rating {
margin: 0 auto 0.5em auto;
}
.onsale {
padding: 0;
}

.price {
font-family: $font__detail;
color: $color__primary_accent;
}
.woocommerce-loop-product__title a,
h3 {
color: $color__text_dark;
margin-top: 0;
}

.button {
margin-right: 5px;
margin-left: 5px;
}
.star-rating {
margin: 0 auto 0.5em auto;
}

.price {
font-family: $font__detail;
color: $color__primary_accent;
}

.button {
margin-right: 5px;
margin-left: 5px;
}
}

Expand Down
27 changes: 14 additions & 13 deletions woocommerce.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion woocommerce/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function siteorigin_north_woocommerce_enqueue_styles( $styles ) {
function siteorigin_north_woocommerce_enqueue_scripts( ){
if( !function_exists('is_woocommerce') ) return;

if( is_woocommerce() ) {
if ( is_woocommerce() || wc_post_content_has_shortcode( 'products' ) ) {
wp_enqueue_script( 'siteorigin-north-woocommerce', get_template_directory_uri() . '/js/woocommerce.js', array( 'jquery' ), SITEORIGIN_THEME_VERSION );
wp_localize_script( 'siteorigin-north-woocommerce', 'so_ajax', array ( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
}
Expand Down

0 comments on commit 7a0c1ea

Please sign in to comment.