<?php if (!defined('ABSPATH')) exit; ?>

<div <?php echo $this->get_render_attribute_string( 'attr_container' ); ?>>

	<?php if( $separator_enabled ) : ?>
		<div <?php echo $this->get_render_attribute_string( 'attr_separator' ); ?>>
			<?php include __DIR__ . '/separator.php'; ?>
			<div class="gem-button-separator-button">
	<?php endif; ?>
	<<?= $tag; ?> <?php echo $this->get_render_attribute_string( 'link' ); ?>>
		<span class="gem-inner-wrapper-btn">
			<?php if(!empty($settings['button_icon']['value'])) : ?>
				<span class="gem-button-icon">
					<?php \Elementor\Icons_Manager::render_icon( $settings['button_icon'], [ 'aria-hidden' => 'true' ] ); ?>
				</span>
			<?php endif; ?>
			<span <?php echo $this->get_render_attribute_string( 'button_text' ); ?>>
				<?php echo wp_kses( $settings[ 'button_text' ], 'post' ); ?>
			</span>
		</span>
	</<?= $tag; ?>>

	<?php if( $separator_enabled ) : ?>
			</div>
			<?php include __DIR__ . '/separator.php'; ?>
		</div>
	<?php endif; ?>

</div>