<?php if ( ! empty( $settings->link ) ) : ?>
<a href="<?php echo $settings->link; ?>" class="fl-icon-wrap" target="<?php echo $settings->link_target; ?>" aria-label="link to <?php echo $settings->link; ?>"<?php echo ( '_blank' == $settings->link_target ) ? ' rel="noopener"' : '';?>>
<?php else: ?>
<div class="fl-icon-wrap">
<?php endif; ?>

<?php
	echo IconPress__getSvgIcon(array(
		'id' => $settings->icon,
	));
 ?>

<?php if ( ! empty( $settings->link ) ) : ?>
</a>
<?php else: ?>
</div>
<?php endif; ?>