<div class="fl-number fl-number-<?php echo sanitize_html_class( $settings->layout ); ?>">
<?php if ( 'circle' == $settings->layout ) : ?>
	<div class="fl-number-circle-container">
		<div class="fl-number-text">
			<?php if ( ! empty( $settings->before_number_text ) ) : ?>
				<span class="fl-number-before-text"><?php echo $settings->before_number_text; ?></span>
			<?php endif; ?>

			<?php $module->render_number(); ?>

			<?php if ( ! empty( $settings->after_number_text ) ) : ?>
				<span class="fl-number-after-text"><?php echo $settings->after_number_text; ?></span>
			<?php endif; ?>
		</div>
		<?php $module->render_circle_bar(); ?>
	</div>
<?php elseif ( 'bars' == $settings->layout ) : ?>
	<div class="fl-number-text fl-number-position-<?php echo esc_attr( $settings->number_position ); ?>">
		<?php if ( ! empty( $settings->before_number_text ) ) : ?>
			<span class="fl-number-before-text"><?php echo $settings->before_number_text; ?></span>
		<?php endif; ?>

		<?php $position = $settings->number_position ? $settings->number_position : 'default'; ?>

		<?php if ( 'hidden' == $position ) : ?>
			<div class="fl-number-bars-container">
				<div class="fl-number-bar">
				<?php $module->render_number(); ?>
				</div>
			</div>
		<?php elseif ( 'above' == $position ) : ?>
			<?php $module->render_number(); ?>
			<div class="fl-number-bars-container">
				<div class="fl-number-bar"></div>
			</div>
		<?php elseif ( 'below' == $position ) : ?>
			<div class="fl-number-bars-container">
				<div class="fl-number-bar"></div>
			</div>
			<?php $module->render_number(); ?>
		<?php else : ?>
			<div class="fl-number-bars-container">
				<div class="fl-number-bar">
					<?php $module->render_number(); ?>
				</div>
			</div>
		<?php endif; ?>

		<?php if ( ! empty( $settings->after_number_text ) ) : ?>
			<span class="fl-number-after-text"><?php echo $settings->after_number_text; ?></span>
		<?php endif; ?>

	</div>
<?php else : ?>
	<div class="fl-number-text">
		<?php if ( ! empty( $settings->before_number_text ) ) : ?>
			<span class="fl-number-before-text"><?php echo $settings->before_number_text; ?></span>
		<?php endif; ?>

		<?php $module->render_number(); ?>

		<?php if ( ! empty( $settings->after_number_text ) ) : ?>
			<span class="fl-number-after-text"><?php echo $settings->after_number_text; ?></span>
		<?php endif; ?>
	</div>
<?php endif; ?>
</div>
