<?php } else { ?> <?php adventure_tours_renders_tour_badge(array('tour_id' => $item_id, 'wrap_css_class' => 'atgrid__item__angle-wrap', 'css_class' => 'atgrid__item__angle')); ?> <?php if ($price_html) { printf('<div class="atgrid__item__price"><a href="%s" class="atgrid__item__price__button">%s</a></div>', esc_url($item_url), $price_html); } ?> <?php } ?> <?php adventure_tours_renders_stars_rating($item->get_average_rating(), array('before' => '<div class="atgrid__item__rating">', 'after' => '</div>')); ?> <?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>
echo esc_url($product_permalink); ?> "><?php echo esc_html($product->get_title()); ?> </a> </div> <?php printf('<div class="product_list_widget__item__price">%s</div>', $product->get_price_html()); ?> <?php if (!empty($show_rating)) { ?> <?php $average = $product->get_average_rating(); adventure_tours_renders_stars_rating(ceil($average), array('before' => '<div class="product_list_widget__item__rating">', 'after' => '</div>')); ?> <?php } else { ?> <a href="<?php echo esc_url($product_permalink); ?> " class="product_list_widget__item__button"><?php esc_html_e('View', 'adventure-tours'); ?> </a> <?php } ?> </div>
?> <div class="tour-reviews__item__name" itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><?php comment_author(); ?> </span></div> </div> <div class="tour-reviews__item__content"> <div class="tour-reviews__item__content__top"> <?php do_action('woocommerce_review_before_comment_meta', $comment); ?> <?php if ($rating && get_option('woocommerce_enable_review_rating') == 'yes') { ?> <?php adventure_tours_renders_stars_rating($rating, array('before' => '<div class="tour-reviews__item__rating">', 'after' => '</div>')); ?> <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> <meta itemprop="ratingValue" content="<?php echo esc_html($rating); ?> "> </span> <?php } ?> <div class="tour-reviews__item__date"><?php echo get_comment_date(wc_date_format()); ?> </div> </div>
if (get_option('woocommerce_enable_review_rating') === 'no') { return; } $rating_count = $product->get_rating_count(); $review_count = $product->get_review_count(); $average = $product->get_average_rating(); if ($rating_count > 0) { ?> <div class="woocommerce-product-rating"> <div class="woocommerce-product-rating__stars" title="<?php printf(esc_html__('Rated %s out of 5', 'adventure-tours'), $average); ?> "> <?php adventure_tours_renders_stars_rating(ceil($average)); ?> </div> <?php if (comments_open()) { ?> <a href="#shopreviews" class="woocommerce-review-link" rel="nofollow">(<?php printf(_n('%s customer review', '%s customer reviews', $review_count, 'adventure-tours'), '<span class="count">' . $review_count . '</span>'); ?> )</a><?php } ?> </div> <?php adventure_tours_render_template_part('templates/parts/scheme-rating', '', array('product' => $product));
?> <p class="header-section__description"><?php echo esc_html($banner_subtitle); ?> </p> <?php } ?> <?php // for single tour and single product if (is_singular('product') && 'yes' === get_option('woocommerce_enable_review_rating')) { $product = wc_get_product(); $review_count = (int) $product->get_review_count(); $rating_average = ceil($product->get_average_rating()); if ($review_count && $rating_average) { echo '<div class="header-section__rating">'; adventure_tours_renders_stars_rating($rating_average); printf('(' . _n('1 review', '%s reviews', $review_count, 'adventure-tours') . ')', $review_count); echo '</div>'; } } ?> </div> </div> <?php if ($is_image) { printf('<div class="header-section__simple-image%s">%s<img src="%s" alt="%s"></div>', $breadcrumbs_html ? ' header-section__simple-image--with-breadcrumbs' : '', $mask_html, esc_url($banner_image), esc_attr($title)); } ?> </div>
<div class="shortcode-tour-reviews__item__info"> <?php echo get_avatar($review->user_id > 0 ? $review->user_id : $review->comment_author_email, 95); ?> <div class="shortcode-tour-reviews__item__info__name"><?php echo esc_html($review->comment_author); ?> </div> </div> <div class="shortcode-tour-reviews__item__content"> <h3 class="shortcode-tour-reviews__item__title"><a href="<?php echo esc_url(get_permalink($review->comment_post_ID)); ?> "><?php echo esc_html($review->post_title); ?> </a></h3> <div class="shortcode-tour-reviews__item__description"><?php echo esc_html($review->comment_content); ?> </div> <?php adventure_tours_renders_stars_rating(get_comment_meta($review->comment_ID, 'rating', true), array('before' => '<div class="shortcode-tour-reviews__item__rating">', 'after' => '</div>')); ?> </div> </div> <?php } ?> </div>
<div id="comments" class="tour-reviews margin-top"> <div class="section-title title title--small title--center title--decoration-bottom-center title--underline"> <h3 class="title__primary"><?php esc_html_e('Tour Reviews', 'adventure-tours'); ?> </h3> </div> <?php if (get_option('woocommerce_enable_review_rating') === 'yes') { $rating_count = $product->get_rating_count(); $review_count = $product->get_review_count(); $average = $product->get_average_rating(); if ($rating_count > 0) { echo '<div class="margin-left margin-right padding-top padding-bottom tour-reviews__rating-total">'; adventure_tours_renders_stars_rating(ceil($average), array('before' => '<div class="tour-reviews__rating-total__stars">', 'after' => '</div>')); echo '<div class="tour-reviews__rating-total__text">' . $average . ' ' . esc_html__('based on', 'adventure-tours') . ' ' . sprintf(_n('1 review', '%s reviews', $review_count, 'adventure-tours'), $review_count) . '</div>'; echo '</div>'; } } ?> <div class="tour-reviews__items"> <?php if (have_comments()) { ?> <?php wp_list_comments(apply_filters('woocommerce_product_review_list_args', array('callback' => 'woocommerce_comments'))); ?> <?php } else { ?>