$img_id, 'thumb_size' => $img_size, 'class' => 'info-icon image-' . $i ) );
$src = isset( $img['p_img_large'][0] ) ? $img['p_img_large'][0] : '';
$image_output = $img['thumbnail'];
} elseif ( function_exists( 'woodmart_get_image_url' ) ) {
$src = woodmart_get_image_url(
$img_id,
'image',
array(
'image_size' => $img_size,
'image' => array(
'id' => $img_id,
),
)
);
$image_output = woodmart_get_image_html( // phpcs:ignore
array(
'image_size' => $img_size,
'image' => array(
'id' => $img_id,
),
),
'image'
);
}
if( woodmart_is_svg( $src ) ) {
if ( $svg_animation == 'yes' ) {
woodmart_enqueue_js_library( 'vivus' );
wp_add_inline_script('woodmart-theme', 'jQuery(document).ready(function($) {
if ( $("#' . esc_js( $rand ) . '").length > 0 ) {
new Vivus("' . esc_js( $rand ) . '", {
type: "delayed",
duration: 200,
start: "inViewport",
animTimingFunction: Vivus.EASE_OUT
});
}
});', 'after');
}
echo '
' . woodmart_get_any_svg( $src, $rand ) . '
';
} else {
echo $image_output;
}
?>
' . $subtitle . '
';
}
if( ! empty( $title ) ) {
echo '<'. $title_tag .' class="info-box-title title' . esc_attr( $title_class ) . '">' . $title . ''. $title_tag .'>';
}
?>
';
echo woodmart_shortcode_button( array(
'title' => $btn_text,
'link' => $link,
'color' => $btn_color,
'style' => $btn_style,
'size' => $btn_size,
'align' => $alignment,
'shape' => $btn_shape,
) );
echo '