<?php if ($route == 'my' && $action == 'favorite') { ?>

	<a href="javascript:;" title="<?php echo lang('haya_favorite_remove_favorite'); ?>" class="js-haya-favorite-remove" data-tid="<?php echo intval($_thread['tid']); ?>"> 
		<span class="icon iconfont">&#xe744;</span>
	<a>
<?php } ?>