<?php
$default_settings = [
    'banner_image' => '',
    'ct_animate' => '',
    'ct_animate_delay' => '',
];
$settings = array_merge($default_settings, $settings);
extract($settings);
if(!empty($banner_image['id'])) : 

	$img = ct_get_image_by_size( array(
		'attach_id'  => $banner_image['id'],
		'thumb_size' => '500x432',
	));
	$thumbnail = $img['thumbnail'];

	?>
	<div class="ct-banner layout1 <?php echo esc_attr($ct_animate); ?>" data-wow-delay="<?php echo esc_attr($ct_animate_delay); ?>ms">
		<div class="ct-banner-inner">
			<div class="ct-banner-image">
				<?php echo wp_kses_post($thumbnail); ?>
			</div>
            <?php if( ! empty( $image_small['url'] ) ) : 
                $img_small  = ct_get_image_by_size( array(
                    'attach_id'  => $image_small['id'],
                    'thumb_size' => '270x220',
                ) );
                $thumbnail_small    = $img_small['thumbnail'];
                ?>
                <div class="ct-image-small">
                    <div class="inner-image-small">
                        <?php echo wp_kses_post($thumbnail_small); ?>        
                    </div>
                </div>
            <?php endif; ?>
            <?php if( ! empty( $image_small2['url'] ) ) : 
                $img_small2  = ct_get_image_by_size( array(
                    'attach_id'  => $image_small2['id'],
                    'thumb_size' => '320x220',
                ) );
                $thumbnail_small2    = $img_small2['thumbnail'];
                ?>
                <div class="ct-image-small2">
                    <div class="inner-image-small">
                        <?php echo wp_kses_post($thumbnail_small2); ?>        
                    </div>
                </div>
            <?php endif; ?>
		</div>
	</div>
<?php endif; ?>