<?php
global $post;
$plan_id = listing_get_metabox_by_ID('Plan_id',$post->ID);
if(!empty($plan_id)){
	$plan_id = $plan_id;
}else{
	$plan_id = 'none';
}
$tags_show = 'true';
if($plan_id=="none"){
	$tags_show = 'true';
}

$tags = get_the_terms( $post->ID ,'features');
if(!empty($tags)){ 
	if($tags_show=="true"){?>
		<div class="post-row padding-bottom-20">
			<!-- <div class="post-row-header clearfix margin-bottom-15"><h3><?php echo esc_html__('Features', 'listingpro'); ?></h3></div> -->
			<ul class="features list-style-none clearfix">
				<?php 
					foreach($tags as $tag) {
						$icon = listingpro_get_term_meta( $tag->term_id ,'lp_features_icon');
						?>								
					<li>
						<a href="<?php echo get_term_link($tag); ?>" class="parimary-link">
							<span class="tick-icon">
								<?php if(!empty($icon)) { ?>
									<i class="fa <?php echo esc_attr($icon); ?>"></i>
								<?php }else { ?>
									<i class="fa fa-check"></i>
								<?php } ?>
							</span>
							<?php echo esc_html($tag->name); ?>
						</a>
					</li>
				<?php } ?>
			</ul>
		</div>
	<?php } ?>
<?php } ?>