| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template variables: |
| 4 |
* |
| 5 |
* @var $controllers array Widgets/Addons Settings |
| 6 |
*/ |
| 7 |
|
| 8 |
// Do not allow directly accessing this file. |
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit( 'This script cannot be accessed directly.' ); |
| 11 |
} |
| 12 |
use RadiusTheme\SB\Helpers\Fns; |
| 13 |
|
| 14 |
global $product; |
| 15 |
if ( empty( $product ) ) { |
| 16 |
return; |
| 17 |
} |
| 18 |
|
| 19 |
ob_start(); |
| 20 |
do_action( 'woocommerce_product_additional_information', $product ); |
| 21 |
$content = ob_get_clean(); |
| 22 |
|
| 23 |
if ( empty( $content ) ) { |
| 24 |
return; |
| 25 |
} |
| 26 |
|
| 27 |
?> |
| 28 |
<div class="rtsb-product-additional-information"> |
| 29 |
<?php $heading = apply_filters( 'woocommerce_product_additional_information_heading', __( 'Additional information', 'shopbuilder' ) ); ?> |
| 30 |
<?php if ( $heading ) : ?> |
| 31 |
<h2><?php echo esc_html( $heading ); ?></h2> |
| 32 |
<?php endif; ?> |
| 33 |
<?php Fns::print_html( $content, true ); ?> |
| 34 |
</div> |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|