28 lines
1.0 KiB
PHP
28 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Single Product Meta
|
|
*
|
|
* @author WooThemes
|
|
* @package WooCommerce/Templates
|
|
* @version 1.6.4
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
global $post, $product;
|
|
?>
|
|
<div class="product_meta">
|
|
|
|
<?php do_action( 'woocommerce_product_meta_start' ); ?>
|
|
|
|
<?php if ( $product->is_type( array( 'simple', 'variable' ) ) && get_option( 'woocommerce_enable_sku' ) == 'yes' && $product->get_sku() ) : ?>
|
|
<span itemprop="productID" class="sku_wrapper"><?php _e( 'SKU:', 'woocommerce' ); ?> <span class="sku"><?php echo $product->get_sku(); ?></span>.</span>
|
|
<?php endif; ?>
|
|
|
|
<?php echo $product->get_categories( ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', sizeof( get_the_terms( $post->ID, 'product_cat' ) ), 'woocommerce' ) . ' ', '.</span>' ); ?>
|
|
|
|
<?php echo $product->get_tags( ', ', '<span class="tagged_as">' . _n( 'Tag:', 'Tags:', sizeof( get_the_terms( $post->ID, 'product_tag' ) ), 'woocommerce' ) . ' ', '.</span>' ); ?>
|
|
|
|
<?php do_action( 'woocommerce_product_meta_end' ); ?>
|
|
|
|
</div>
|