'.$response['HotelInformationResponse']['HotelDetails']['propertyInformation'].'
'.htmlspecialchars_decode($propertyDescription).' '; return $html; } add_shortcode('adivaha_ds_HotelDescription','adivaha_ds_HotelDescription'); function adivaha_ds_HotelRating ($atts, $content = null) { $post_ID =get_the_ID(); $ds_hotelAPIData = get_post_meta($post_ID, 'ds_hotelAPIData', true ); $ds_hotelAPIData = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $ds_hotelAPIData); $ds_hotelAPIData = str_replace('"', '"', $ds_hotelAPIData); $response =json_decode( stripslashes($ds_hotelAPIData) , true ); $hotelRating =$response['HotelInformationResponse']['HotelSummary']['hotelRating']; return $hotelRating; } add_shortcode('adivaha_ds_HotelRating','adivaha_ds_HotelRating'); function adivaha_ds_HotelReview ($atts, $content = null) { $post_ID =get_the_ID(); $ds_hotelAPIData = get_post_meta($post_ID, 'ds_hotelAPIData', true ); $ds_hotelAPIData = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $ds_hotelAPIData); $ds_hotelAPIData = str_replace('"', '"', $ds_hotelAPIData); $response =json_decode( stripslashes($ds_hotelAPIData) , true ); $tripAdvisorRatingUrl =$response['HotelInformationResponse']['HotelSummary']['tripAdvisorRatingUrl']; return ''.htmlspecialchars_decode($areaInforamtion).'
'; } add_shortcode('adivaha_ds_HotelPointofInterest','adivaha_ds_HotelPointofInterest'); function adivaha_ds_HotelCheckInInstructions ($atts, $content = null) { $post_ID =get_the_ID(); $ds_hotelAPIData = get_post_meta($post_ID, 'ds_hotelAPIData', true ); $ds_hotelAPIData = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $ds_hotelAPIData); $ds_hotelAPIData = str_replace('"', '"', $ds_hotelAPIData); $response =json_decode( stripslashes($ds_hotelAPIData) , true ); $checkInInstructions =$response['HotelInformationResponse']['HotelDetails']['checkInInstructions']; return ''.htmlspecialchars_decode($checkInInstructions).'
'; } add_shortcode('adivaha_ds_HotelCheckInInstructions','adivaha_ds_HotelCheckInInstructions'); function adivaha_ds_HotelAmeneties(){ $post_ID =get_the_ID(); $ds_hotelAPIData = get_post_meta($post_ID, 'ds_hotelAPIData', true ); $ds_hotelAPIData = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $ds_hotelAPIData); $ds_hotelAPIData = str_replace('"', '"', $ds_hotelAPIData); $response =json_decode( stripslashes($ds_hotelAPIData) , true ); $PropertyAmenities =$response['HotelInformationResponse']['PropertyAmenities']; if($PropertyAmenities['size']>1){ $HotelAmenities =$PropertyAmenities['PropertyAmenity']; }else{ $HotelAmenities[] =$PropertyAmenities['PropertyAmenity']; } $html=''.$Trip_Advisor_Feedback_Long.'
'; } add_shortcode('adivaha_ds_TripAdvisorReview','adivaha_ds_TripAdvisorReview'); ?>