<li <?php wc_product_class($layout); ?>>
	<?php if ( $item_ad->is_featured() ) { ?><div class="ribbon-featured"><?php if (get_theme_mod( 'charsoogh_featured_badge_title' )) : echo get_theme_mod( 'charsoogh_featured_badge_title'); else: echo __('Featured' ,'charsoogh'); endif; ?></div><?php } ?>
		<div class="wrapper">
			<?php if($bookmark){ ?>
				<span class="favorite_<?php echo $post->ID; ?> bookmark" data-toggle="tooltip" data-placement="top" title="<?php _e('Add to Featured' , 'charsoogh'); ?>"><?php _e('Add to Featured' , 'charsoogh'); ?></span>
			<?php } ?>
			<?php if($visit){ ?>
			<span class="ad_visit"><?php echo getPostViews(get_the_ID()); ?></span>
			<?php } ?>
					<div class="image">
						<?php
						if($city == '1'){
						if(get_the_terms( get_the_ID(), 'city_categories')){ ?>
							<h4 class="location">
								<?php
								$terms = wp_get_post_terms( get_the_ID(), 'city_categories', array( 'order' => 'DESC') );
								if(is_rtl()):
								$sep = ' <i class="fa fa-angle-left" aria-hidden="true"></i> ';
								else:
								$sep = ' <i class="fa fa-angle-right" aria-hidden="true"></i> ';
								endif;
								foreach ( $terms as $term ) {
									$url = get_term_link($term->slug, 'city_categories');
									if ($term->parent == 0){echo "<a href='{$url}'>{$term->name}</a>";}
								}
								foreach ( $terms as $term ) {
									$url = get_term_link($term->slug, 'city_categories');
									if ($term->parent != 0){echo $sep . "<a href='{$url}'>{$term->name}</a>";}
								}
								?>
							</h4>
					<?php } } ?>
							<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="title">
								<?php woocommerce_template_loop_product_thumbnail(); ?>
								 </a>
					</div>
					<?php if($price == '1'){ ?>
					<?php woocommerce_template_loop_price(); ?>
					<?php } ?>
					<div class="meta">
						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="title">
							<h2><?php the_title(); ?></h2>
						</a>
						<?php if($meta == '1'){ ?>
							<?php if (in_array('date', $meta_data)) { ?>
								<figure>
									<?php if (empty(get_theme_mod( 'charsoogh_date_type')) || get_theme_mod( 'charsoogh_date_type') == 'advanced') : ?>
										<i class="fa fa-calendar-o"></i><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . __(' Ago' , 'charsoogh'); ?>
									<?php else: ?>
										<i class="fa fa-calendar-o"></i><?php echo get_the_date(); ?>
									<?php endif; ?>
								</figure>
						<?php } ?>
						<?php if (in_array('category', $meta_data)) { ?>
							<figure>
									<i class="fa fa-folder-open-o"></i><?php the_terms( get_the_ID(), 'product_cat', '', " ", '' );?>
							</figure>
							<?php } ?>
							<?php } ?>
							<?php if($bookmark == '1'){ ?>
								<script>user_favorite(<?php echo $post->ID; ?>);</script>
								<?php } ?>
					</div>
					<!--end meta-->
					<!--end description-->
			</div>
</li>
