<?php
/**
 * @var $type
 * @var $target
 * @var $class
 * @var $label
 */

if ( $type == 'post' ) { ?>

	<input type="submit" name="<?php echo $target; ?>" class="ui button <?php echo $class; ?>" value="<?php echo $label; ?>" />

<?php } elseif ( $type == 'link' ) { ?>

	<a class="ui button <?php echo $class; ?>" href="<?php echo $target; ?>">

		<?php echo $label; ?>

	</a>

<?php } else { ?>

	<span class="ui button <?php echo $class; ?>"><?php echo $label; ?></span>

<?php }