Нема описа

product-attributes.php 1.3KB

12345678910111213141516171819202122232425262728293031323334
  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://docs.woocommerce.com/document/template-structure/
  16. * @package WooCommerce\Templates
  17. * @version 3.6.0
  18. */
  19. defined( 'ABSPATH' ) || exit;
  20. if ( ! $product_attributes ) {
  21. return;
  22. }
  23. ?>
  24. <table class="woocommerce-product-attributes shop_attributes">
  25. <?php foreach ( $product_attributes as $product_attribute_key => $product_attribute ) : ?>
  26. <tr class="woocommerce-product-attributes-item woocommerce-product-attributes-item--<?php echo esc_attr( $product_attribute_key ); ?>">
  27. <th class="woocommerce-product-attributes-item__label"><?php echo wp_kses_post( $product_attribute['label'] ); ?></th>
  28. <td class="woocommerce-product-attributes-item__value"><?php echo wp_kses_post( $product_attribute['value'] ); ?></td>
  29. </tr>
  30. <?php endforeach; ?>
  31. </table>