<?php
$default_settings = [
    'banner_image' => '',
    'banner_logo' => '',
    'banner_title' => '',
    'ct_animate' => '',
];
$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' => 'full',
	));
	$thumbnail = $img['thumbnail'];

	$img_logo = ct_get_image_by_size( array(
		'attach_id'  => $banner_logo['id'],
		'thumb_size' => 'full',
	));
	$thumbnail_logo = $img_logo['thumbnail'];

	?>
	<div class="ct-banner ct-banner1 <?php echo esc_attr($ct_animate); ?>">
		<div class="ct-banner-inner">
			<div class="ct-banner-image">
				<?php echo wp_kses_post($thumbnail); ?>
			</div>
			<div class="ct-banner-meta bg-image">
				<div class="ct-banner-title">
					<div class="ct-banner-logo">
						<?php echo wp_kses_post($thumbnail_logo); ?>
					</div>
					<span><?php echo esc_attr($banner_title); ?></span>
				</div>
			</div>
		</div>
	</div>
<?php endif; ?>