2012-04-13 17:33:51 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-11-03 13:53:50 +00:00
|
|
|
* Product attributes
|
2012-04-13 17:33:51 +00:00
|
|
|
*
|
2015-11-03 13:31:20 +00:00
|
|
|
* Used by list_attributes() in the products class.
|
2012-08-14 18:05:45 +00:00
|
|
|
*
|
2015-11-03 13:31:20 +00:00
|
|
|
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-attributes.php.
|
2015-10-01 14:07:20 +00:00
|
|
|
*
|
2016-02-12 11:28:41 +00:00
|
|
|
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
|
|
|
* (the theme developer) will need to copy the new files to your theme to
|
|
|
|
* maintain compatibility. We try to do this as little as possible, but it does
|
|
|
|
* happen. When this occurs the version of the template file will be bumped and
|
|
|
|
* the readme will list any important changes.
|
2015-10-01 14:07:20 +00:00
|
|
|
*
|
2019-01-16 12:25:19 +00:00
|
|
|
* @see https://docs.woocommerce.com/document/template-structure/
|
2020-08-05 16:36:24 +00:00
|
|
|
* @package WooCommerce\Templates
|
2019-01-16 12:25:19 +00:00
|
|
|
* @version 3.6.0
|
2012-04-13 17:33:51 +00:00
|
|
|
*/
|
|
|
|
|
2019-01-16 12:25:19 +00:00
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
|
|
|
|
if ( ! $product_attributes ) {
|
|
|
|
return;
|
2014-02-25 15:33:02 +00:00
|
|
|
}
|
2012-04-13 17:33:51 +00:00
|
|
|
?>
|
2019-01-16 12:25:19 +00:00
|
|
|
<table class="woocommerce-product-attributes shop_attributes">
|
|
|
|
<?php foreach ( $product_attributes as $product_attribute_key => $product_attribute ) : ?>
|
|
|
|
<tr class="woocommerce-product-attributes-item woocommerce-product-attributes-item--<?php echo esc_attr( $product_attribute_key ); ?>">
|
|
|
|
<th class="woocommerce-product-attributes-item__label"><?php echo wp_kses_post( $product_attribute['label'] ); ?></th>
|
|
|
|
<td class="woocommerce-product-attributes-item__value"><?php echo wp_kses_post( $product_attribute['value'] ); ?></td>
|
2012-04-13 17:33:51 +00:00
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
2014-02-25 15:33:02 +00:00
|
|
|
</table>
|