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

22 lines
649 B
PHP
Raw Normal View History

2012-08-14 18:05:45 +00:00
<?php
/**
* Attributes tab
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2012-08-14 18:05:45 +00:00
global $product;
2011-12-12 11:35:54 +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-10-16 09:45:33 +00:00
<li class="attributes_tab"><a href="#tab-attributes"><?php echo apply_filters('woocommerce_product_additional_information_tab_title', __( 'Additional Information', 'woocommerce' )); ?></a></li>
<?php
}
?>