?> <span class="price"><?php echo ct_price($price, 'special'); ?> </span> </div> </a> </div> <div class="hotel_title"> <h3><?php echo esc_html(get_the_title($post_id)); ?> </h3> <div class="rating"> <?php ct_rating_smiles($star, 'icon-star-empty', 'icon-star voted'); ?> </div><!-- end rating --> <?php if (!empty($wishlist_link)) { ?> <div class="wishlist"> <a class="tooltip_flip tooltip-effect-1 btn-add-wishlist" href="#" data-post-id="<?php echo esc_attr($post_id); ?> "<?php echo in_array(ct_hotel_org_id($post_id), $wishlist) ? ' style="display:none;"' : ''; ?> ><span class="wishlist-sign">+</span><span class="tooltip-content-flip"><span class="tooltip-back"><?php esc_html_e('Add to wishlist', 'citytours'); ?>
</li> <?php } ?> </ul> </div> <div class="col-md-6"> <ul> <?php for ($i = $i; $i < count($review_fields); $i++) { ?> <li><?php echo esc_html($review_fields[$i], 'citytours'); ?> <div class="rating"><?php echo ct_rating_smiles($review_detail[$i]); ?> </div> </li> <?php } ?> </ul> </div> </div><!-- End row --> <hr> <div class="guest-reviews"> <?php $per_page = 10; $review_count = ct_get_review_html($post_id, 0, $per_page); ?>
function ct_get_review_html($post_id, $start_num = 0, $per_page = 10) { $reviews = ct_get_reviews($post_id, $start_num, $per_page); if (!empty($reviews)) { foreach ($reviews as $review) { $default = ""; $photo = ct_get_avatar(array('id' => $review['user_id'], 'email' => $review['reviewer_email'], 'size' => 76, 'class' => 'img-circle')); ?> <div class="review_strip_single guest-review"> <?php echo ct_get_avatar(array('id' => $review['user_id'], 'email' => $review['reviewer_email'], 'size' => 76, 'class' => 'img-circle')); ?> <small> - <?php echo date("M, d, Y", ct_strtotime($review['date'])); ?> -</small> <h4><?php echo esc_html($review['reviewer_name']); ?> </h4> <p><?php echo esc_html(stripslashes($review['review_text'])); ?> </p> <div class="rating"><?php ct_rating_smiles($review['review_rating']); ?> </div> </div><!-- End review strip --> <?php } } return count($reviews); }
echo get_the_post_thumbnail($post_id, array(330, 220)); ?> <?php if (!empty($tour_type)) { $icon_class = get_tax_meta($tour_type[0]->term_id, 'ct_tax_icon_class', true); echo '<div class="short_info">' . (empty($icon_class) ? '' : '<i class="' . $icon_class . '"></i>') . $tour_type[0]->name . ' </div>'; } ?> </a> </div> </div> <div class="clearfix visible-xs-block"></div> <div class="col-lg-6 col-md-6 col-sm-6"> <div class="tour_list_desc"> <div class="rating"><?php ct_rating_smiles($review); ?> <small>(<?php echo esc_html(ct_get_review_count($post_id)); ?> )</small></div> <h3><?php echo esc_html(get_the_title($post_id)); ?> </h3> <p><?php echo wp_kses_post($brief); ?> </p> </div> </div>
echo esc_url(remove_query_arg(array('rating_filter', 'page'))); ?> " data-arg="rating_filter"> <?php for ($i = 5; $i > 0; $i--) { $checked = in_array($i, $rating_filter) ? ' checked="checked"' : ''; ?> <li><label><input type="checkbox" name="rating_filter[]" value="<?php echo esc_attr($i); ?> "<?php echo $checked; ?> ><span class="rating"> <?php ct_rating_smiles($i); ?> </span></label></li> <?php } ?> </ul> </div> <?php } ?> <?php if (!empty($ct_options['tour_facility_filter'])) { ?>