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
|
|
|
|
2012-10-15 10:57:58 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
|
2011-12-11 14:40:25 +00:00
|
|
|
global $woocommerce, $post, $product;
|
2011-12-09 22:44:03 +00:00
|
|
|
|
2012-04-05 08:46:39 +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() ) ) {
|
|
|
|
?>
|
2012-04-28 17:28:18 +00:00
|
|
|
<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>
|
2012-04-05 08:46:39 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|