enable_reviews();$enable_accommodations = $bookyourtravel_theme_globals->enable_accommodations();$current_user = wp_get_current_user();$user_info = get_userdata($current_user->ID);$price_decimal_places = $bookyourtravel_theme_globals->get_price_decimal_places();$default_currency_symbol = $bookyourtravel_theme_globals->get_default_currency_symbol();$show_currency_symbol_after = $bookyourtravel_theme_globals->show_currency_symbol_after();$default_results_view = $bookyourtravel_theme_globals->get_search_results_default_view();$custom_search_results_page = $bookyourtravel_theme_globals->get_custom_search_results_page_url();$request_car_types = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('car_types', true);$request_car_rental_tags = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('car_rental_tags', true);$request_tour_types = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('tour_types', true);$request_tour_tags= BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('tour_tags', true);$request_cruise_types = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('cruise_types', true);$request_cruise_tags = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('cruise_tags', true);$request_accommodation_types = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('accommodation_types', true);$request_accommodation_tags = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('accommodation_tags', true);$request_cabin_types = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('cabin_types', true);$request_prices = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('price', true);$search_term = isset($_GET['term']) ? sanitize_text_field($_GET['term']) : '';$location_id = isset($_GET['l']) ? intval(wp_kses($_GET['l'], array())) : 0; $age = isset($_GET['age']) ? intval(wp_kses($_GET['age'], array())) : 0; $stars = isset($_GET['stars']) ? intval(wp_kses($_GET['stars'], array())) : 0; $rating = isset($_GET['rating']) ? intval(wp_kses($_GET['rating'], array())) : 0; $guests = isset($_GET['guests']) ? intval(wp_kses($_GET['guests'], array())) : 0; $cabins = isset($_GET['cabins']) ? intval(wp_kses($_GET['cabins'], array())) : 0; $rooms = isset($_GET['rooms']) ? intval(wp_kses($_GET['rooms'], array())) : 0; $what = isset($_GET['what']) ? intval(wp_kses($_GET['what'], array())) : 1; $sort_by = isset($_GET['sb']) ? intval(wp_kses($_GET['sb'], array())) : 1; $sort_order = isset($_GET['so']) ? intval(wp_kses($_GET['so'], array())) : 1;$date_from = isset($_GET['from']) && !empty($_GET['from']) ? date('Y-m-d', strtotime(sanitize_text_field($_GET['from']))) : null;$date_to = isset($_GET['to']) && !empty($_GET['to']) ? date('Y-m-d', strtotime(sanitize_text_field($_GET['to']))) : null;$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;$posts_per_page = $bookyourtravel_theme_globals->get_search_results_posts_per_page();$search_args = array();$search_args['date_from'] = $date_from;$search_args['date_to'] = $date_to;$search_args['keyword'] = $search_term;$search_args['prices'] = $request_prices;$search_args['price_range_bottom'] = $bookyourtravel_theme_globals->get_price_range_bottom();$search_args['price_range_increment'] = $bookyourtravel_theme_globals->get_price_range_increment();$search_args['price_range_count'] = $bookyourtravel_theme_globals->get_price_range_count();$search_args['search_only_available'] = $bookyourtravel_theme_globals->search_only_available_properties();if ($what == 1) { $sort_order = $sort_order == '1' ? 'ASC' : 'DESC'; if (isset($sort_by)) { switch ($sort_by) { case '1' : $sort_by = 'min_price';break;// price case '2' : $sort_by = 'star_count';break;// star count case '3' : $sort_by = 'review_score';break;// star count default : $sort_by = 'accommodations.post_title';break; } } else { $sort_by = 'accommodations.post_title'; } $search_args['rating'] = $rating; $search_args['rooms'] = $rooms; $search_args['stars'] = $stars; $results = $bookyourtravel_accommodation_helper->list_accommodations ( $paged, $posts_per_page, $sort_by, $sort_order, $location_id, $request_accommodation_types, array(), $search_args, false); $current_url = $custom_search_results_page . '?l=' . $location_id . '&from=' . urlencode($date_from) . '&to=' . urlencode($date_to) . '&term=' . $search_term . '&what=' . $what;} else if ($what == 2) { $search_args['age'] = $age; $sort_by = $sort_by == '1' ? 'price' : 'car_rentals.post_title'; $sort_order = $sort_order == '1' ? 'ASC' : 'DESC'; $results = $bookyourtravel_car_rental_helper->list_car_rentals($paged, $posts_per_page, $sort_by, $sort_order, $location_id, $request_car_types, array(), $search_args); $current_url = $custom_search_results_page . '?l=' . $location_id . '&from=' . urlencode($date_from) . '&to=' . urlencode($date_to) . '&term=' . $search_term . '&what=' . $what;} else if ($what == 3) { $search_args['rating'] = $rating; $search_args['guests'] = $guests; $sort_by = $sort_by == '1' ? 'min_price' : 'tours.post_title'; $sort_order = $sort_order == '1' ? 'ASC' : 'DESC'; $results = $bookyourtravel_tour_helper->list_tours($paged, $posts_per_page, $sort_by, $sort_order, $location_id,$request_tour_types, array(), $search_args); $current_url = $custom_search_results_page . '?l=' . $location_id . '&from=' . urlencode($date_from) . '&term=' . $search_term . '&what=' . $what; } else if ($what == 4) { $search_args['rating'] = $rating; $search_args['guests'] = $guests; $search_args['cabins'] = $cabins; $sort_by = $sort_by == '1' ? 'min_price' : 'cruises.post_title'; $sort_order = $sort_order == '1' ? 'ASC' : 'DESC'; $results = $bookyourtravel_cruise_helper->list_cruises($paged, $posts_per_page, $sort_by, $sort_order, $location_id, $request_cruise_types, array(), $search_args); $current_url = $custom_search_results_page . '?l=' . $location_id . '&from=' . urlencode($date_from) . '&what=' . $what;}$page_id = $post->ID;$page_custom_fields = get_post_custom( $page_id);$page_sidebar_positioning = null;if (isset($page_custom_fields['page_sidebar_positioning'])) { $page_sidebar_positioning = $page_custom_fields['page_sidebar_positioning'][0]; $page_sidebar_positioning = empty($page_sidebar_positioning) ? '' : $page_sidebar_positioning;}$section_class = 'full-width';$item_class = 'one-fourth';if ($page_sidebar_positioning == 'both') { $section_class = 'one-half'; $item_class = 'one-half';} else if ($page_sidebar_positioning == 'left' || $page_sidebar_positioning == 'right') { $section_class = 'three-fourth'; $item_class = 'one-third';}?>

Sort by

Unfortunately no results match your search criteria. Please try searching for something else.