<?php
/**
 * This file should be used to render each module instance.
 * You have access to two variables in this file:
 *
 * $module An instance of your module class.
 * $settings The module's settings.
 *
 * @package UABB Ribbon Module
 */

?>

<div class="uabb-ribbon-wrap">
	<<?php echo esc_attr( $settings->text_tag_selection ); ?> class="uabb-ribbon">		
		<span class="uabb-left-ribb flips"><i class="<?php echo esc_attr( $settings->left_icon ); ?>"></i></span>
		<span class="uabb-ribbon-text">
			<?php
			if ( 'yes' === $settings->stitching ) {
				?>
				<div class="uabb-ribbon-stitches-top"></div> <?php } ?>
				<span class="uabb-ribbon-text-title"><?php echo $settings->title; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span>
			<?php
			if ( 'yes' === $settings->stitching ) {
				?>
				<div class="uabb-ribbon-stitches-bottom"></div> <?php } ?>
		</span>		
		<span class="uabb-right-ribb flips"><i class="<?php echo esc_attr( $settings->right_icon ); ?>"></i></span>
	</<?php echo esc_attr( $settings->text_tag_selection ); ?>>
</div>
