Ejemplo n.º 1
0
		</div>

		<div class="swiper-container swiper-slider">
			<div class="swiper-wrapper">
			<?php 
foreach ($items as $item) {
    ?>
				<?php 
    $detail_url = get_term_link($item->slug, 'tour_category');
    ?>
				<div class="swiper-slide tours-type__item">
					<a href="<?php 
    echo esc_url($detail_url);
    ?>
" class="tours-type__item__image"><?php 
    adventure_tours_render_category_thumbnail($item);
    ?>
</a>
					<div class="tours-type__item__title"><?php 
    echo esc_html($item->name);
    ?>
</div>
				</div>
			<?php 
}
?>
			</div>
		</div>
	</div>
</div>
Ejemplo n.º 2
0
if ($catIndex > 0 && 0 == $catIndex % 2) {
    echo '<div class="product-category__row-separator clearfix visible-sm visible-xs"></div>';
}
$catIndex++;
adventure_tours_di('register')->setVar('tour_category_el_index', $catIndex);
?>
<div class="<?php 
echo esc_attr($wrapper_class);
?>
">
	<div class="product-category">
		<a href="<?php 
echo esc_url($category_link);
?>
" class="product-category__image"><?php 
echo adventure_tours_render_category_thumbnail($category);
?>
</a>
		<div class="product-category__content">
		<?php 
printf('<h3 class="product-category__title"><a href="%s">%s</a></h3>', esc_url($category_link), esc_html($category->name));
?>
		<?php 
if ($category->description) {
    ?>
			<div class="product-category__description"><?php 
    echo wc_format_content($category->description);
    ?>
</div>
		<?php 
}