add-to-cart
1 month ago
tabs
1 year ago
back-in-stock-form.php
10 months ago
meta.php
1 year ago
photoswipe.php
10 months ago
price.php
2 years ago
product-attributes.php
1 year ago
product-image.php
5 months ago
product-thumbnails.php
1 year ago
rating.php
2 years ago
related.php
9 months ago
review-meta.php
2 years ago
review-rating.php
2 years ago
review.php
2 years ago
sale-flash.php
2 years ago
share.php
2 years ago
short-description.php
2 years ago
stock.php
2 years ago
title.php
2 years ago
up-sells.php
1 year ago
product-attributes.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Product attributes |
| 4 | * |
| 5 | * Used by list_attributes() in the products class. |
| 6 | * |
| 7 | * This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-attributes.php. |
| 8 | * |
| 9 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 10 | * (the theme developer) will need to copy the new files to your theme to |
| 11 | * maintain compatibility. We try to do this as little as possible, but it does |
| 12 | * happen. When this occurs the version of the template file will be bumped and |
| 13 | * the readme will list any important changes. |
| 14 | * |
| 15 | * @see https://woocommerce.com/document/template-structure/ |
| 16 | * @package WooCommerce\Templates |
| 17 | * @version 9.3.0 |
| 18 | */ |
| 19 | |
| 20 | defined( 'ABSPATH' ) || exit; |
| 21 | |
| 22 | if ( ! $product_attributes ) { |
| 23 | return; |
| 24 | } |
| 25 | ?> |
| 26 | <table class="woocommerce-product-attributes shop_attributes" aria-label="<?php esc_attr_e( 'Product Details', 'woocommerce' ); ?>"> |
| 27 | <?php foreach ( $product_attributes as $product_attribute_key => $product_attribute ) : ?> |
| 28 | <tr class="woocommerce-product-attributes-item woocommerce-product-attributes-item--<?php echo esc_attr( $product_attribute_key ); ?>"> |
| 29 | <th class="woocommerce-product-attributes-item__label" scope="row"><?php echo wp_kses_post( $product_attribute['label'] ); ?></th> |
| 30 | <td class="woocommerce-product-attributes-item__value"><?php echo wp_kses_post( $product_attribute['value'] ); ?></td> |
| 31 | </tr> |
| 32 | <?php endforeach; ?> |
| 33 | </table> |
| 34 |