</span>
				<?php 
}
?>
				
				<?php 
if ($score_out_of_10 > 0) {
    ?>
<span class="rating"><?php 
    echo $score_out_of_10;
    ?>
 / 10</span><?php 
}
?>
				<?php 
BYT_Theme_Utils::render_field("description", "", "", BYT_Theme_Utils::strip_tags_and_shorten($accommodation_obj->get_description(), 100), "", true);
?>
				<?php 
$tags = $accommodation_obj->get_tags();
if (count($tags) > 0) {
    ?>
				<div class="tags">
					<ul>
						<?php 
    foreach ($tags as $tag) {
        echo '<li>' . $tag->name . '</li>';
    }
    ?>
						
					</ul>
				</div>
Example #2
0
}
?>
<aside id="secondary" class="right-sidebar widget-area" role="complementary">
	<ul>
		<li>
			<article class="tour-details clearfix">
				<h1><?php 
echo $car_rental_obj->get_title();
?>
</h1>
				<span class="address"><?php 
echo $pick_up_location_title;
?>
</span>
				<?php 
BYT_Theme_Utils::render_field("description", "", "", BYT_Theme_Utils::strip_tags_and_shorten($car_rental_obj->get_description(), 100), "", true);
?>
				<?php 
$tags = $car_rental_obj->get_tags();
if (count($tags) > 0) {
    ?>
				<div class="tags">
					<ul>
						<?php 
    foreach ($tags as $tag) {
        echo '<li>' . $tag->name . '</li>';
    }
    ?>
						
					</ul>
				</div>
Example #3
0
$base_id = $tour_obj->get_base_id();
$reviews_total = $byt_reviews_post_type->get_reviews_count($base_id);
$price_decimal_places = $byt_theme_globals->get_price_decimal_places();
$default_currency_symbol = $byt_theme_globals->get_default_currency_symbol();
$show_currency_symbol_after = $byt_theme_globals->show_currency_symbol_after();
$tour_image = $tour_obj->get_main_image();
if (empty($tour_image)) {
    $tour_image = BYT_Theme_Utils::get_file_uri('/images/uploads/img.jpg');
}
$is_price_per_group = $tour_obj->get_is_price_per_group();
$score_out_of_10 = 0;
if ($reviews_total > 0) {
    $review_score = $tour_obj->get_custom_field('review_score', false);
    $score_out_of_10 = round($review_score * 10);
}
$tour_description_html = BYT_Theme_Utils::strip_tags_and_shorten($tour_obj->get_description(), 100) . '<a href="' . $tour_obj->get_permalink() . '">' . __('More info', 'bookyourtravel') . '</a>';
$current_date = date('Y-m-d', time());
$tour_min_price = $byt_tours_post_type->get_tour_min_price($tour_id, $current_date);
$tour_location = $tour_obj->get_location();
$tour_location_title = '';
if ($tour_location) {
    $tour_location_title = $tour_location->get_title();
}
if (empty($display_mode) || $display_mode == 'card') {
    ?>
<!--tour item-->
<article class="tour_item <?php 
    echo $tour_class;
    ?>
">
	<div>