get_link_html_start( $setting->get_image_target() ) );
// Print image.
Helper::print_unescaped_internal_string( $object->get_image_html( $setting->lazy_load_image() ) );
if ( $setting->should_show_title() || $setting->should_show_caption() ) {
echo '
';
if ( $setting->should_show_title() ) {
echo '
' . esc_html( $object->get_title() ) . '
';
}
if ( $setting->should_show_caption() ) {
echo '
' . esc_html( $object->get_caption() ) . '
';
}
echo '
';
}
// Print end anchor tag for lightbox and external link.
Helper::print_unescaped_internal_string( $object->get_link_html_end() );
// For swiper, add placeholder element for lazy loading.
if ( $setting->is_using_swiper() && $setting->lazy_load_image() ) {
echo '
';
}
?>