<?php
if( empty( $settings->banner_image ) ){
            $settings->banner_image_src = '';
}
$banner_image_alt = $module->get_alt();

$info_banner_id = rand(1000, 9999);
?>

<div class="uabb-module-content uabb-ultb3-box <?php echo $settings->banner_image_effect; ?>">
	<?php
	if( $settings->cta_type == 'module' && !empty( $settings->link ) ) {
		echo '<a href="' . $settings->link . '" target="' . $settings->link_target . '" '. BB_Ultimate_Addon_Helper::get_link_rel( $settings->link_target, 0, 0 ) .' class="uabb-infobanner-module-link"></a>';
	}

	if( isset( $settings->banner_image_src ) ) {
		if( $settings->banner_image_src != '' ) {
			if($settings->overlay_color != '') ?>
				<div class="uabb-ultb3-box-overlay"></div>
				<img class="uabb-ultb3-img <?php echo $settings->banner_image_alignemnt; ?>" alt="<?php echo $banner_image_alt; ?>" src="<?php echo $settings->banner_image_src; ?>">
		<?php
		}
	} ?>

	<div id="info-banner-<?php echo $info_banner_id; ?>" class="uabb-ultb3-info <?php echo $settings->banner_alignemnt; ?>" data-animation-delay="03">

		<?php

		echo '<' . $settings->tag_selection. ' class="uabb-ultb3-title">';
        echo $settings->banner_title;
        echo '</' . $settings->tag_selection . '>';

		?>

		<div class="uabb-ultb3-desc uabb-text-editor">
			<?php global $wp_embed;
					echo wpautop( $wp_embed->autoembed( $settings->banner_desc ) ) ;
			?>
		</div>
		<?php
		if( $settings->cta_type == 'link' || $settings->cta_type == 'button' ) {

			// Link CTA
			$module->render_link();
			// Button CTA 
			$module->render_button();
		}
		?>
	</div>
</div>
