<?php
/**
 * @var $unique_id
 * @var $page
 * @var $id
 * @var $class
 * @var $is_error
 * @var $label_type
 * @var $label_icon
 * @var $title
 */
?>

<a data-unique-id="<?php echo $unique_id; ?>" data-page="<?php echo $page; ?>" data-pid="<?php echo $id; ?>" class="<?php echo $class; if ( $is_error ) { echo ' custom-offer-error'; } ?>">

	<?php if ( $label_type == 'icon' ) { ?>

		<i class="<?php echo $label_icon; ?> icon"></i>

	<?php } elseif ( $label_type == 'both' ) { ?>

		<i class="<?php echo $label_icon; ?> icon"></i><span class="text"><?php echo $title; ?></span>

	<?php } else {

		echo $title;

	} ?>

</a>