global $post, $location_class, $display_mode, $byt_theme_globals, $byt_locations_post_type, $byt_accommodations_post_type, $byt_tours_post_type, $byt_cruises_post_type, $byt_car_rentals_post_type; $enable_accommodations = $byt_theme_globals->enable_accommodations(); $enable_cruises = $byt_theme_globals->enable_cruises(); $enable_tours = $byt_theme_globals->enable_tours(); $enable_car_rentals = $byt_theme_globals->enable_car_rentals(); $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(); $show_self_catered_count_in_location_items = $byt_theme_globals->show_self_catered_count_in_location_items(); $show_hotel_count_in_location_items = $byt_theme_globals->show_hotel_count_in_location_items(); $show_cruise_count_in_location_items = $byt_theme_globals->show_cruise_count_in_location_items(); $show_tour_count_in_location_items = $byt_theme_globals->show_tour_count_in_location_items(); $show_car_rental_count_in_location_items = $byt_theme_globals->show_car_rental_count_in_location_items(); $location_id = $post->ID; $location_obj = new byt_location($post); $base_id = $location_obj->get_base_id(); $location_image = $location_obj->get_main_image(); if (empty($location_image)) { $location_image = BYT_Theme_Utils::get_file_uri('/images/uploads/img.jpg'); } $hotel_count = $self_catered_count = $cruise_count = $tour_count = $car_rental_count = 0; if ($show_hotel_count_in_location_items) { $hotel_count = (int) $byt_accommodations_post_type->list_accommodations_count(0, -1, 'post_title', 'ASC', $location_id, array(), array(), array(), false, false); } if ($show_self_catered_count_in_location_items) { $self_catered_count = (int) $byt_accommodations_post_type->list_accommodations_count(0, -1, 'post_title', 'ASC', $location_id, array(), array(), array(), false, true); } if ($show_cruise_count_in_location_items) { $cruise_count = (int) $byt_cruises_post_type->list_cruises_count(0, -1, 'post_title', 'ASC', $location_id); } if ($show_tour_count_in_location_items) {