$data ) : ?>
'',
/**
* Content.
*/
'content_type' => 'text',
'content' => '',
'html_block_id' => '',
/***
* Tab Icon.
*/
'icon_libraries' => 'fontawesome',
'icon_position' => 'top',
'image' => '',
'image_size' => '30x30',
/***
* Icon libraries.
*/
'icon_fontawesome' => '',
'icon_openiconic' => '',
'icon_typicons' => '',
'icon_entypo' => '',
'icon_linecons' => '',
'icon_monosocial' => '',
'icon_material' => '',
),
$shortcode_data[0]
);
$content_type = $shortcode_data[0]['content_type'];
$loop_title_classes_wrapper = '';
$loop_content_classes_wrapper = '';
if ( 0 === $index && 'first' === $args['state'] ) {
$loop_title_classes_wrapper .= ' wd-active';
$loop_content_classes_wrapper .= ' wd-active';
}
$loop_title_classes_wrapper .= $title_classes;
$loop_content_classes_wrapper .= $content_classes;
$icon_library = '';
if ( ! empty( $shortcode_data[0]['icon_libraries'] ) ) {
$icon_library = $shortcode_data[0][ 'icon_' . $shortcode_data[0]['icon_libraries'] ];
vc_icon_element_fonts_enqueue( $shortcode_data[0]['icon_libraries'] );
}
$icon_output = '';
if ( ! empty( $shortcode_data[0]['image'] ) ) {
$icon_output = woodmart_display_icon( $shortcode_data[0]['image'], $shortcode_data[0]['image_size'], 128 ); // phpcs:ignore
if ( woodmart_is_svg( wp_get_attachment_image_src( $shortcode_data[0]['image'] )[0] ) ) {
$icon_output = woodmart_get_svg_html( $shortcode_data[0]['image'], $shortcode_data[0]['image_size'] );
}
} elseif ( ! empty( $icon_library ) ) {
$icon_output = '
';
}
?>