<?php 
/**
 * Banner Template
 */
?>
<div id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class );?>">
	<div class="banner-wrapper" <?php echo $link_on_box_title;?>>
		<?php if( ! empty( $image_html ) ){ ?>
			<div class="banner-image-wrap">			
				<div class="banner-image">
					<?php echo $image_html;?>
				</div>			
			</div>
		<?php } ?>
		<?php if( ! empty( $title ) || ! empty( $subtitle ) || ! empty( $content ) || ! empty( $button_text ) ) { ?>
			<div class="banner-content-wrap">
				<div class="banner-content">
					<?php if(! empty( $subtitle ) ) { ?>
						<div class="banner-subtitle-wrap slideinup banner-subtitle-<?php echo esc_attr($subtitle_style);?>">
							<span class="banner-subtitle"><?php echo $subtitle; ?></span>
						</div>
					<?php }
					if(! empty( $title ) ) { ?>
					<div class="banner-title-wrap slideinup">
						<h3 class="banner-title"> <?php echo $title; ?></h3>
					</div>				
					<?php }					
					if(! empty( $content ) ) { ?>
						<div class="banner-content-text">
							<?php echo do_shortcode($content); ?>
						</div>
					<?php }
					if(! empty( $button_text ) ) { ?>
						<div class="banner-button pls-button slideinup">
							<a href="<?php echo $link_url;?>" target="<?php echo esc_attr($link_target);?>" class="<?php echo esc_attr( $button_class );?>"><?php echo $button_text;?></a>
						</div>
					<?php } ?>
				</div>
				
			</div>
		<?php } ?>
	</div>
</div>
