woocommerce/templates/single-product/tabs.php

26 lines
477 B
PHP
Raw Normal View History

2011-12-09 20:16:34 +00:00
<?php
/**
2012-08-14 18:05:45 +00:00
* Single Product tabs
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
2011-12-09 20:16:34 +00:00
*/
2012-04-03 09:34:02 +00:00
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2012-04-03 09:34:02 +00:00
// Get tabs
ob_start();
2012-08-14 18:05:45 +00:00
do_action('woocommerce_product_tabs');
2012-04-03 09:34:02 +00:00
$tabs = trim( ob_get_clean() );
if ( ! empty( $tabs ) ) : ?>
<div class="woocommerce_tabs">
<ul class="tabs">
<?php echo $tabs; ?>
</ul>
<?php do_action('woocommerce_product_tab_panels'); ?>
</div>
<?php endif; ?>