Exemple #1
0
					<?php 
    if ($view_settings['show_categories']) {
        adventure_tours_render_tour_icons(array('before' => '<div class="atgrid__item__icons">', 'after' => '</div>'), $item_id);
    }
    ?>
				</div>
				<div class="atgrid__item__content">
					<h3 class="atgrid__item__title"><a href="<?php 
    echo esc_url($item_url);
    ?>
"><?php 
    echo esc_html($item->post->post_title);
    ?>
</a></h3>
					<div class="atgrid__item__description"><?php 
    echo adventure_tours_get_short_description($item->post, $view_settings['description_words_limit']);
    ?>
</div>
				</div>
				<div class="item-attributes">
					<?php 
    adventure_tours_render_product_attributes(array('before_each' => '<div class="item-attributes__item">', 'after_each' => '</div>', 'limit' => 2), $item_id);
    ?>
					<div class="item-attributes__item"><a href="<?php 
    echo esc_url($item_url);
    ?>
" class="item-attributes__link"><i class="fa fa-long-arrow-right"></i></a></div>
				</div>
			</div>
		</div>
	<?php 
Exemple #2
0
    ?>
						</div>

						<div class="atgrid__item__content">
							<h3 class="atgrid__item__title"><a href="<?php 
    echo esc_url($item_url);
    ?>
"><?php 
    echo esc_html($item->post->post_title);
    ?>
</a></h3>
						<?php 
    if ($description_words_limit > 0) {
        ?>
							<div class="atgrid__item__description"><?php 
        echo adventure_tours_get_short_description($item->post, $description_words_limit);
        ?>
</div>
						<?php 
    }
    ?>
						</div>
						<div class="item-attributes">
							<?php 
    adventure_tours_render_product_attributes(array('before_each' => '<div class="item-attributes__item">', 'after_each' => '</div>', 'limit' => 2), $post_id);
    ?>
							<div class="item-attributes__item">
								<a href="<?php 
    echo esc_url($item_url);
    ?>
" class="item-attributes__link"><i class="fa fa-long-arrow-right"></i></a>
Exemple #3
0
if ($is_banner) {
    echo ' tour-single-rise';
}
?>
">
	<main class="col-md-9" role="main" itemscope itemtype="http://schema.org/Product">
		<?php 
get_template_part('templates/tour/tabs');
?>

		<meta itemprop="name" content="<?php 
the_title();
?>
">
		<meta itemprop="description" content="<?php 
echo esc_attr(adventure_tours_get_short_description(null, 300));
?>
">
		<meta itemprop="url" content="<?php 
echo esc_url($tour_permalink);
?>
">
		<?php 
adventure_tours_render_template_part('templates/parts/scheme-price', '', array('product' => $product));
adventure_tours_render_template_part('templates/parts/scheme-rating', '', array('product' => $product));
?>
		<?php 
if ($tour_thumbnail_url) {
    ?>
			<meta itemprop="image" content="<?php 
    echo esc_url($tour_thumbnail_url);
Exemple #4
0
    if (!$attributes) {
        echo ' atlist__item__content--full-height';
    }
    ?>
">
				<div class="atlist__item__content__items">
					<div class="atlist__item__content__item">
						<h2 class="atlist__item__title"><a href="<?php 
    echo esc_url($permalink);
    ?>
"><?php 
    the_title();
    ?>
</a></h2>
						<div class="atlist__item__description"><?php 
    echo adventure_tours_get_short_description(null, $view_settings['description_words_limit']);
    ?>
</div>
					</div>
					<div class="atlist__item__content__item atlist__item__content__item--alternative">
						<?php 
    if (get_option('woocommerce_enable_review_rating') === 'yes') {
        $rating_count = $item->get_rating_count();
        $review_count = $item->get_review_count();
        $average = $item->get_average_rating();
        if ($rating_count > 0) {
            adventure_tours_renders_stars_rating($item->get_average_rating(), array('before' => '<div class="atlist__item__rating">', 'after' => '</div>'));
            echo '<div class="atlist__item__rating-value">' . $average . ' / ' . sprintf(_n('1 review', '%s reviews', $review_count, 'adventure-tours'), $review_count) . '</div>';
        }
    }
    ?>