woocommerce/templates/single-product/tabs/attributes.php

29 lines
751 B
PHP
Raw Normal View History

2011-12-09 22:44:03 +00:00
<?php
/**
2012-08-14 18:05:45 +00:00
* Attributes tab
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
2011-12-09 22:44:03 +00:00
*/
2012-08-14 18:05:45 +00:00
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $woocommerce, $post, $product;
2011-12-09 22:44:03 +00:00
$show_attr = ( get_option( 'woocommerce_enable_dimension_product_attributes' ) == 'yes' ? true : false );
if ( $product->has_attributes() || ( $show_attr && $product->has_dimensions() ) || ( $show_attr && $product->has_weight() ) ) {
?>
<div class="panel entry-content" id="tab-attributes">
2012-08-14 18:05:45 +00:00
2012-10-16 09:45:33 +00:00
<?php $heading = apply_filters('woocommerce_product_additional_information_heading', __( 'Additional Information', 'woocommerce' )); ?>
2012-08-14 18:05:45 +00:00
2012-04-03 09:34:02 +00:00
<h2><?php echo $heading; ?></h2>
2012-08-14 18:05:45 +00:00
2012-04-03 09:34:02 +00:00
<?php $product->list_attributes(); ?>
2012-08-14 18:05:45 +00:00
2012-04-03 09:34:02 +00:00
</div>
<?php
}
?>