Skip to content

Commit

Permalink
Merge branch 'release/1.7.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Mar 17, 2020
2 parents c51982e + 270c27a commit ff858c1
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
7 changes: 7 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ Original design files are available on [Google Drive](https://drive.google.com/f

== Changelog ==

= 1.7.10 - 17 March 2020 =
* Minor adjustments to Theme Settings labels and descriptions.
* Updated footer widget mobile padding.
* Updated Customizer settings CSS.
* WooCommerce: Added product meta styling.
* SiteOrigin Premium: Added WooCommerce Template Builder single meta compatibility.

= 1.7.9 - 09 December 2019 =
* WooCommerce Archive Buttons: Improved alignment when equal columns setting in use.
* Added admin Block Editor styles.
Expand Down
14 changes: 13 additions & 1 deletion sass/woocommerce/_product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
line-height: 2.5;
}

// SO Premium WC Template Builder.
.panel-grid-cell p.price {
float: none;
line-height: normal;
margin-bottom: 1.5em;
}

div.entry-summary {
margin-top: 0;
width: 54%;
Expand Down Expand Up @@ -142,14 +149,19 @@
line-height: normal;
}

.product-under-title-meta {
.product-under-title-meta,
.product_meta {
color: $color__text_medium;
font-size: 0.8em;
line-height: 1.4em;
margin-top: -0.5em;
margin-bottom: 1em;
}

.posted_in {
display: block;
}

#comments h2 {
margin-top: 0;
color: $color__text_dark;
Expand Down
11 changes: 10 additions & 1 deletion woocommerce.css

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

3 changes: 3 additions & 0 deletions woocommerce/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ function siteorigin_north_woocommerce_output_upsells() {
endif;

if ( ! function_exists( 'siteorigin_north_woocommerce_template_single_undertitle_meta' ) ) :
if ( ( class_exists( 'SiteOrigin_Premium' ) ) && ( class_exists( 'SiteOrigin_Premium_Plugin_WooCommerce_Templates' ) ) ) {
return;
}
function siteorigin_north_woocommerce_template_single_undertitle_meta() {
wc_get_template( 'single-product/meta-undertitle.php' );
}
Expand Down
27 changes: 27 additions & 0 deletions woocommerce/single-product/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@
global $post, $product;

?>

<?php

if ( ( class_exists( 'SiteOrigin_Premium' ) ) && ( class_exists( 'SiteOrigin_Premium_Plugin_WooCommerce_Templates' ) ) ) : ?>

<div class="product_meta">

<?php do_action( 'woocommerce_product_meta_start' ); ?>

<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?>

<span class="sku_wrapper"><?php esc_html_e( 'SKU:', 'woocommerce' ); ?> <span class="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku : esc_html__( 'N/A', 'woocommerce' ); ?></span></span>

<?php endif; ?>

<?php echo wc_get_product_category_list( $product->get_id(), ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '</span>' ); ?>

<?php echo wc_get_product_tag_list( $product->get_id(), ', ', '<span class="tagged_as">' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'woocommerce' ) . ' ', '</span>' ); ?>

<?php do_action( 'woocommerce_product_meta_end' ); ?>

</div>

<?php else : ?>

<div class="product_meta">

<?php do_action( 'woocommerce_product_meta_start' ); ?>
Expand All @@ -26,3 +51,5 @@
<?php do_action( 'woocommerce_product_meta_end' ); ?>

</div>

<?php endif; ?>

0 comments on commit ff858c1

Please sign in to comment.