예제 #1
0
파일: index.php 프로젝트: alikris/OTA
				<p><?php 
    _e('We apologize for any inconvenience, please hit back on your browser or if you are an admin, enter some content.', 'bookyourtravel');
    ?>
</p>
			</div>
		</article>
		<?php 
}
?>
		<!--bottom navigation-->
		<nav class="page-navigation bottom-nav">
			<a href="#" class="scroll-to-top" title="<?php 
esc_attr_e('Back up', 'bookyourtravel');
?>
"><?php 
_e('Back up', 'bookyourtravel');
?>
</a> 
			<div class="pager">
			<?php 
global $wp_query;
BYT_Theme_Utils::display_pager($wp_query->max_num_pages);
?>
			</div>
		</nav>
		<!--//bottom navigation-->
	</section>
	<!--//three-fourth content-->
<?php 
get_sidebar('right');
get_footer();
예제 #2
0
		</div>
		<nav class="page-navigation bottom-nav">
			<!--back up button-->
			<a href="#" class="scroll-to-top" title="<?php 
    esc_attr_e('Back up', 'bookyourtravel');
    ?>
"><?php 
    _e('Back up', 'bookyourtravel');
    ?>
</a> 
			<!--//back up button-->
			<!--pager-->
			<div class="pager">
				<?php 
    $total_results = $accommodation_results['total'];
    BYT_Theme_Utils::display_pager(ceil($total_results / $posts_per_page));
    ?>
			</div>
		</nav>
	<?php 
}
// end if ( $query->have_posts() )
?>
	</div><!--//deals clearfix-->
</section>
<?php 
wp_reset_postdata();
wp_reset_query();
if ($page_sidebar_positioning == 'both' || $page_sidebar_positioning == 'right') {
    get_sidebar('right');
}
		<section id="car_rentals" class="tab-content <?php 
            echo $first_display_tab == 'car_rentals' ? 'initial' : '';
            ?>
">
			<div class="deals">
			<?php 
            $car_rental_results = $byt_car_rentals_post_type->list_car_rentals(0, -1, 'post_title', 'ASC', $location_id);
            if (count($car_rental_results) > 0 && $car_rental_results['total'] > 0) {
                foreach ($car_rental_results['results'] as $car_rental_result) {
                    global $post, $car_rental_class;
                    $post = $car_rental_result;
                    setup_postdata($post);
                    $car_rental_class = 'full-width';
                    get_template_part('includes/parts/car_rental', 'item');
                }
            } else {
                echo '<p>' . __('Unfortunately there are no car rental offers at this location at the moment.', 'bookyourtravel') . '</p>';
            }
            ?>
			<?php 
            BYT_Theme_Utils::render_tab_extra_fields('location_extra_fields', $location_extra_fields, 'car_rentals', $location_obj);
            ?>
			</div>
		</section>		
		<!--/Car rentals-->	
		<?php 
        }
        ?>
	
		<?php 
        foreach ($tab_array as $tab) {