<?php
/**
 * If this file is called directly, abort.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="wpmozo_alert_box_inner">
		<?php if ( ! empty( $settings['alert_box_image']['url'] ) ) { ?>
	<div class="wpmozo_alert_box_image_wrap <?php echo esc_attr( $use_alert_box_image ); ?>">
		<img decoding="async" src="<?php echo esc_url( $alert_box_image ); ?>" alt="<?php echo esc_attr( $alert_box_image_alt ); ?>">
	</div>
	<?php } else if ( ! empty( $settings['alert_box_icon']['value'] ) ) { ?>
	<div class="wpmozo_alert_box_image_wrap <?php echo esc_attr( $use_alert_box_image ); ?>">
		<span class="wpmozo_alert_box_icon">
			<?php
			\Elementor\Icons_Manager::render_icon(
				$settings['alert_box_icon'],
				array(
					'aria-hidden' => 'true',
					'class'       => 'wpmozo_alert_icon',
				)
			);
			?>
		</span>
	</div>
	<?php } ?>
	<div class="wpmozo_alert_box_content">
		<?php if( '' !== $alert_title ){ ?>
		<<?php echo esc_html( $title_heading_level ); ?> class="wpmozo_alert_box_title"><?php echo esc_html( $alert_title ); ?></<?php echo esc_html( $title_heading_level ); ?>>
		<?php } ?>
		<?php if( '' !== $alert_description ){ ?>
		<div class="wpmozo_alert_box_description"><?php echo esc_html( $alert_description ); ?></div>
		<?php } ?>
		<?php if ( 'yes' === $show_alert_button && '' !== $button_url ) { ?>
		<div class="wpmozo_button_wrapper">
			<a class="wpmozo_button" href="<?php echo esc_url( $button_url ); ?>"><?php echo esc_html( $button_text ); ?>
			<?php
			\Elementor\Icons_Manager::render_icon(
				$settings['button_icon'],
				array(
					'aria-hidden' => 'true',
					'class'       => 'wpmozo_button_icon',
				)
			);
			?>
			</a>
		</div>
		<?php } ?>
	</div>
	<?php if ( 'yes' === $show_close_button ) { ?>
		<a href="#" class="wpmozo_alert_box_close_btn">
		<span class="wpmozo_close_icon">x</span>
		</a>
	<?php } ?>	
</div>
<?php