File: //home/scientificreligi/www/wp-content/plugins/auteur-framework/elements/product-tabs/template.php
<?php
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
/**
* @var $element UBE_Element_Auteur_Product_Tabs
*/
$atts = $element->get_settings();
$wrapper_classes = array(
'woocommerce',
'gsf-product_tabs',
'ube-product-tabs',
$atts['tabs_align'],
);
$element->set_render_attribute('wrapper', array(
'class' => $wrapper_classes
));
$post_image_size = isset($atts['image_size']) ? $atts['image_size'] : 'medium';
$post_image_width = isset($atts['post_image_width']) ? $atts['post_image_width'] : '400';
$post_layout = isset($atts['post_layout']) ? $atts['post_layout'] : 'grid';
$post_image_ratio_width = isset($atts['post_image_ratio_width']) ? $atts['post_image_ratio_width'] : '';
$post_image_ratio_height = isset($atts['post_image_ratio_height']) ? $atts['post_image_ratio_height'] : '';
$settings = array(
'post_layout' => $post_layout,
'image_size' => $post_image_size,
'image_width' => array(
'width' => $post_image_width
),
'image_ratio_custom' => array(
'width' => $post_image_ratio_width,
'height' => $post_image_ratio_height
)
);
$element->prepare_display($atts,array(),$settings);
?>
<div <?php $element->print_render_attribute_string('wrapper') ?>>
<?php if (function_exists('G5Plus_Auteur')) {G5Plus_Auteur()->woocommerce()->archive_markup($element->_query_args, $element->_settings);} ?>
</div>