Clermont-ferrand

Réservez en ligne Votre Chambre

Meilleurs Prix Garantis :

array( 'timeout' => 60 ) ) ); /* * Init API url */ $urlReviews = 'https://guestapp.me/rest/reviews.json?access_token='.$token.'&establishment_id_guestapp='.$guestappEstablishmentId.'&count=100'; $urlEstablishment = 'https://guestapp.me/rest/establishment.json?access_token='.$token.'&establishment_id_guestapp='.$guestappEstablishmentId; try { /* * Fetch reviews * (Display reviews) */ $data = null; if ($apcEnabled) { $data = apc_fetch($urlReviews); $data = $data ? $data : null; } if (is_null($data)) { $data = file_get_contents($urlReviews, 0, $ctx); if ($apcEnabled) { apc_add($urlReviews, $data, 4*60*60); // 4 Hour caching } } if (empty($data)) { return; } $reviewsData = json_decode($data); } catch (Exception $e) {}; try { /* * Fetch establishment data * (Display information and review aggregate) */ $dataEstablishment = file_get_contents($urlEstablishment, 0, $ctx); $establishementData = json_decode($dataEstablishment); } catch (Exception $e) {}; /* * Available languages */ $available_language = array(); foreach($reviewsData->reviews as $reviewCount => $review) { array_push($available_language, strtolower($review->language_code)); } $available_language = array_unique($available_language); /* * Config */ $displayLanguage = ''; // Display all reviews if empty $defaultLanguage = 'fr'; // Never empty (fr/de/es/it/nl/en) $staytype = array( "business" => array( "fr" => "Affaires", "en" => "Business", "de" => "Geschäftlich", "es" => "Negocios", "it" => "Affari", "nl" => "Zakelijk", ), "romantic" => array( "fr" => "En couple", "en" => "As a couple", "de" => "Als Paar", "es" => "En pareja", "it" => "In coppla", "nl" => "Met uw partner", ), "family" => array( "fr" => "En famille", "en" => "In family", "de" => "Mit der Famille", "es" => "En familia", "it" => "In famiglia", "nl" => "Met het gezin", ), "friend" => array( "fr" => "Entre amis", "en" => "With friends", "de" => "Mit Freunden", "es" => "Con amigos", "it" => "Tra amici", "nl" => "Met vrienden", ), "solo" => array( "fr" => "Seul", "en" => "Single", "de" => "Allein", "es" => "Solo", "it" => "Solo", "nl" => "alleen", ), ); $schema = null; switch($establishementData->establishment_type) { case "camping": case "hôtel": $schema = "LodgingBusiness"; break; default: $schema = "LocalBusiness"; break; } ?>
average_rate != null): ?>
average_rate, 1) ?>
10

establishment_name ?>

total_reviews > 0): ?>

Note moyenne sur total_reviews ?> avis

average_ratings): ?>
total_reviews > 0) : ?>
total_reviews > 0) : ?>
average_ratings as $key => $value ) { if ($value != "") { ?>
{$defaultLanguage}) : ?> {$defaultLanguage}; ?> value ?>/10
total_reviews > 0) : ?>
reviews as $reviewCount => $review) : ?> language_code) != strtolower($displayLanguage)) { $styles = "display:none;"; } ?>
ratings_by_language): ?>
global_rate ?> 10

type) : ?>  - type][$defaultLanguage]; ?>

title)): ?> title ?> comment ?> responses) && !empty($review->responses)): ?>
Réponse de establishment_name ?> :

responses{0}->content ?>
Le responses{0}->datetime ?>


Publié le creation_date_timestamp) ?> ratings_by_language): ?> (Voir plus)

ratings_by_language as $key => $value) { ?> value != "") { ?>
{$defaultLanguage}) : ?> {$defaultLanguage}; ?> value ?>/10

authenticity_url): ?> Avis vérifié par <? echo $identity ?>

Aucun avis disponible...