{"id":398935,"date":"2020-08-10T09:45:04","date_gmt":"2020-08-10T09:45:04","guid":{"rendered":"https:\/\/www.valdeloire-foretdorleans.com\/group-accommodation\/"},"modified":"2022-01-14T12:50:32","modified_gmt":"2022-01-14T12:50:32","slug":"group-accommodation","status":"publish","type":"page","link":"https:\/\/www.valdeloire-foretdorleans.com\/en\/group-accommodation\/","title":{"rendered":"Group accommodation"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]<\/p>\n<p style=\"text-align: center;\"><strong>Family gatherings<\/strong>, <strong>cousin get-togethers<\/strong> or <strong>weekends with friends<\/strong> \u2013 we have the ideal venues for a <strong>fantastic time<\/strong>.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column]\n\n\n    <!-- DEBUT AFFICHAGE -->\n          <div class=\"moteurliste\">\n        <form id=\"formSearch\" class=\"theformlist\" action=\"\" method=\"post\">\n                  <\/form>\n      <\/div>\n    \n\n\n\n\n    <div class=\"listeitems\"><div class=\"col-sm-12 colonneitems sanscarte\"><div id=\"listItems0\"><\/div><div class=\"loadmore\"><div class=\"listloader\" id=\"loader0\" hidden><img decoding=\"async\" src=\"\/wp-content\/themes\/valdeloireetforet\/images\/loader.svg\" alt=\"Loader\"><\/div><button class=\"ye_boutGrand voirsuite\" onclick=\"displayItems0();\" id=\"voirlasuite0\">Voir la suite<\/button><\/div><\/div><\/div>\n    <!-- pour sticky ok -->\n    <div style=\"color: transparent;\">-<\/div>\n\n\n\n\n\n\n    <script type=\"text\/javascript\">\n      var layers0 = [];\n      var mymap0;\n      var page0 = 0;\n      var allItems0 = [{\"ID\":1197313,\"post_author\":\"0\",\"post_date\":\"2026-03-02 11:03:26\",\"post_date_gmt\":\"2026-03-02 11:03:26\",\"post_content\":\"\",\"post_title\":\"G\\u00eete des Basses Bruy\\u00e8res\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"gite-des-basses-bruyeres\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2026-03-02 11:03:26\",\"post_modified_gmt\":\"2026-03-02 11:03:26\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/gite-des-basses-bruyeres\\\/\",\"menu_order\":0,\"post_type\":\"articlesyatadata\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\",\"permalink\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/en\\\/gite-des-basses-bruyeres\\\/\"},{\"ID\":1197311,\"post_author\":\"0\",\"post_date\":\"2026-03-02 11:03:24\",\"post_date_gmt\":\"2026-03-02 11:03:24\",\"post_content\":\"\",\"post_title\":\"G\\u00eete du Verger\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"gite-de-sejour-labbat-gite-du-verger\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2026-03-02 11:03:24\",\"post_modified_gmt\":\"2026-03-02 11:03:24\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/gite-de-sejour-labbat-gite-du-verger\\\/\",\"menu_order\":0,\"post_type\":\"articlesyatadata\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\",\"permalink\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/en\\\/gite-de-sejour-labbat-gite-du-verger\\\/\"},{\"ID\":1197312,\"post_author\":\"0\",\"post_date\":\"2026-04-22 02:42:19\",\"post_date_gmt\":\"2026-04-22 02:42:19\",\"post_content\":\"\",\"post_title\":\"La ferme des Champs du Bois\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"les-champs-du-bois-maison-de-charme-en-foret\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2026-04-22 02:42:19\",\"post_modified_gmt\":\"2026-04-22 02:42:19\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/les-champs-du-bois-maison-de-charme-en-foret\\\/\",\"menu_order\":0,\"post_type\":\"articlesyatadata\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\",\"permalink\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/en\\\/les-champs-du-bois-maison-de-charme-en-foret\\\/\"}];\n      var items0 = [{\"ID\":1197313,\"post_author\":\"0\",\"post_date\":\"2026-03-02 11:03:26\",\"post_date_gmt\":\"2026-03-02 11:03:26\",\"post_content\":\"\",\"post_title\":\"G\\u00eete des Basses Bruy\\u00e8res\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"gite-des-basses-bruyeres\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2026-03-02 11:03:26\",\"post_modified_gmt\":\"2026-03-02 11:03:26\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/gite-des-basses-bruyeres\\\/\",\"menu_order\":0,\"post_type\":\"articlesyatadata\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\",\"permalink\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/en\\\/gite-des-basses-bruyeres\\\/\"},{\"ID\":1197311,\"post_author\":\"0\",\"post_date\":\"2026-03-02 11:03:24\",\"post_date_gmt\":\"2026-03-02 11:03:24\",\"post_content\":\"\",\"post_title\":\"G\\u00eete du Verger\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"gite-de-sejour-labbat-gite-du-verger\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2026-03-02 11:03:24\",\"post_modified_gmt\":\"2026-03-02 11:03:24\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/gite-de-sejour-labbat-gite-du-verger\\\/\",\"menu_order\":0,\"post_type\":\"articlesyatadata\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\",\"permalink\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/en\\\/gite-de-sejour-labbat-gite-du-verger\\\/\"},{\"ID\":1197312,\"post_author\":\"0\",\"post_date\":\"2026-04-22 02:42:19\",\"post_date_gmt\":\"2026-04-22 02:42:19\",\"post_content\":\"\",\"post_title\":\"La ferme des Champs du Bois\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"les-champs-du-bois-maison-de-charme-en-foret\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2026-04-22 02:42:19\",\"post_modified_gmt\":\"2026-04-22 02:42:19\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/les-champs-du-bois-maison-de-charme-en-foret\\\/\",\"menu_order\":0,\"post_type\":\"articlesyatadata\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\",\"permalink\":\"https:\\\/\\\/www.valdeloire-foretdorleans.com\\\/en\\\/les-champs-du-bois-maison-de-charme-en-foret\\\/\"}];\n      var fields0 = {\"1197313\":{\"SyndicObjectID\":\"HCOCEN045V504VAJ\",\"GmapLatitude\":47.940984299999996665064827539026737213134765625,\"GmapLongitude\":2.348137100000000199173655346385203301906585693359375,\"photos\":\"Home\\u00a9pixabay||Home-pixabay.jpg||pixabay||||non||oui||31\\\/12\\\/2029\",\"COMMUNE\":\"SURY-AUX-BOIS\",\"CAPACITE\":15,\"labels\":\"<img alt=\\\"G\\u00eetes de France\\\" title=\\\"G\\u00eetes de France\\\" src=\\\"https:\\\/\\\/cdt45.media.tourinsoft.eu\\\/upload\\\/Logo-GITES-DE-FRANCE.png\\\" \\\/>\",\"classementepi\":\"<img alt=\\\"3 \\u00e9pis\\\" title=\\\"3 \\u00e9pis\\\" src=\\\"https:\\\/\\\/cdt45.media.tourinsoft.eu\\\/upload\\\/3-Epis-0123456789.gif\\\" \\\/>\",\"OTadherent\":\"oui\",\"ObjectTypeName\":\"H\\u00e9bergements collectifs\"},\"1197311\":{\"SyndicObjectID\":\"HCOCEN045000IW\",\"GmapLatitude\":47.8585336000000012290911399759352207183837890625,\"GmapLongitude\":2.28722020000000014761099009774625301361083984375,\"photos\":\"SMA-HCO-Abbat-gite-du-verger_2017_GUIDE\\u00aeMoulle-044||SMA-HCO-Abbat-gite-du-verger-2017-GUIDE-Moulle-044.JPG||Moull\\u00e9||||oui||oui||31\\\/12\\\/2029##HCO-SMA_Gite_Verger_salle_2013\\u00aeMoull\\u00e9||HCO-SMA-Gite-Verger-salle-2013-Moulle.JPG||Moull\\u00e9||||non||oui||31\\\/12\\\/2029##HCO-SMA_gite_du_verger_buffet_2014\\u00aeZZZ||HCO-SMA-gite-du-verger-buffet-2014-ZZZ.jpg||Moull\\u00e9||||non||oui||31\\\/12\\\/2029##HCO-SMA_gite_du_verger_chambre_2014_01\\u00aeMoull\\u00e9||HCO-SMA-gite-du-verger-chambre-2014-01-Moulle.jpg||Moull\\u00e9||||non||oui||31\\\/12\\\/2029##HCO-SMA-Abbat_Gite_Verger-2013-Moull\\u00e9-100_1733||HCO-SMA-Abbat-Gite-Verger-2013-Moulle-100-1733.JPG||Moull\\u00e9||||non||oui||31\\\/12\\\/2029##HCO-SMA_gite_du_verger_salle_bain_2014\\u00aeMoull\\u00e9||HCO-SMA-gite-du-verger-salle-bain-2014-Moulle.jpg||Moull\\u00e9||||non||oui||31\\\/12\\\/2029##HCO-SMA_gite_du_verger_chambre_2014_03\\u00aeMoull\\u00e9||HCO-SMA-gite-du-verger-chambre-2014-03-Moulle.JPG||Moull\\u00e9||||non||oui||31\\\/12\\\/2029##HCO-SMA_gite_du_verger_exterieur_2014_01\\u00aeMoull\\u00e9||HCO-SMA-gite-du-verger-exterieur-2014-01-Moulle.JPG||Moull\\u00e9||||non||oui||31\\\/12\\\/2029\",\"COMMUNE\":\"SAINT-MARTIN-DABBAT\",\"CAPACITE\":35,\"labels\":\"<img alt=\\\"G\\u00eetes de France\\\" title=\\\"G\\u00eetes de France\\\" src=\\\"https:\\\/\\\/cdt45.media.tourinsoft.eu\\\/upload\\\/Logo-GITES-DE-FRANCE.png\\\" \\\/>\",\"classementepi\":\"<img alt=\\\"3 \\u00e9pis\\\" title=\\\"3 \\u00e9pis\\\" src=\\\"https:\\\/\\\/cdt45.media.tourinsoft.eu\\\/upload\\\/3-Epis-0123456789.gif\\\" \\\/>\",\"OTadherent\":\"oui\",\"ObjectTypeName\":\"H\\u00e9bergements collectifs\"},\"1197312\":{\"SyndicObjectID\":\"HCOCEN045V501D2Q\",\"GmapLatitude\":47.95030030000000209611243917606770992279052734375,\"GmapLongitude\":2.341796280000000063381548898178152740001678466796875,\"photos\":\"La cour IMG_20230821_150731636R||La-cour-IMG-20230821-150731636R.jpg||Spitz||||oui||oui||31\\\/12\\\/2030##Le grand salon||20260410-114442.jpg||Spitz||||non||oui||31\\\/12\\\/2030##SAB-LOC-les_champs_du_bois_salon-2016-Spitz-06080||SAB-LOC-les-champs-du-bois-salon-2016-Spitz-06080.JPG||Spitz||||non||oui||31\\\/12\\\/2030##Grand salon||Grand-salon.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Salle \\u00e0 manger du g\\u00eete Les champs du Bois \\u00e0 Sury-aux-Bois||Salle-amanger-du-gite-Les-champs-du-Bois-a-Sury-aux-Bois.jpg||Florence Rabouin||||non||oui||31\\\/12\\\/2030##Petit salon||Petit-salon-5.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##SAB-LOC-les_champs_du_bois_salon-2016-Spitz-06096||SAB-LOC-les-champs-du-bois-salon-2016-Spitz-06096.JPG||Spitz||||non||oui||31\\\/12\\\/2030##Le s\\u00e9jour||Le-sejour.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Grande pi\\u00e8ce \\u00e0 vivre du g\\u00eete Les Champs du Bois \\u00e0 Sury-aux-Bois||Grande-piece-a-vivre-du-gite-Les-Champs-du-Bois-a-Sury-aux-Bois.jpg||Florence Rabouin||||non||oui||31\\\/12\\\/2030##Cuisine||Cuisine-6.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##SAB-LOC-les_champs_du_bois_chambre-2016-Spitz-05855||SAB-LOC-les-champs-du-bois-chambre-2016-Spitz-05855.JPG||Spitz||||non||oui||31\\\/12\\\/2030##Cuisine||Cuisine-8.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Les champs du bois \\u00e0 Sury-aux-Bois||Les-champs-du-bois-a-Sury-aux-Bois-2.jpg||Florence Rabouin||||non||oui||31\\\/12\\\/2030##Chambre 1 (2personnes)||Chambre-1--2personnes-.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Ext\\u00e9rieur du g\\u00eete Les champs du bois\\u00e0 Sury-aux-Bois||Exterieur-du-gite-Les-champs-du-boisa-Sury-aux-Bois.jpg||Florence Rabouin||||non||oui||31\\\/12\\\/2030##Chambre 2 (2 personnes)||Chambre-2--2-personnes-.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Chambre 3 (2 personnes), g\\u00eete des \\u00e9curies||Chambre-3--2-personnes---gite-des-ecuries.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Chambre 4 (4 lits, 6 personnes) - espaces s\\u00e9par\\u00e9s par des rideaux occultants||Chambre-4--4-lits--6-personnes----espaces-separes-par-des-rideaux-occultants.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Chambre 5 (3 lits, 5 personnes) - espaces s\\u00e9par\\u00e9s par des rideaux occultants||Chambre-5--3-lits--5-personnes----espaces-separes-par-des-rideaux-occultants.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Chambre 6 (3 lits, 5 personnes) - espaces s\\u00e9par\\u00e9s par des rideaux occultants||Chambre-6--3-lits--5-personnes----espaces-separes-par-des-rideaux-occultants.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##S\\u00e9jour-cuisine du g\\u00eete des \\u00e9curies||Sejour-cuisine-du-gite-des-ecuries.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2026##Douche 1 dans la ferme||Douche-1-dans-la-ferme.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##Douche 2 - La renardi\\u00e8re||Douche-2---La-renardiere.jpg||Martin SPITZ||||non||oui||30\\\/04\\\/2030##Douche 3 - G\\u00eete des \\u00e9curies||Douche-3---Gite-des-ecuries.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##L'arriv\\u00e9e||L-arrivee.jpg||Martin SPitz||||non||oui||30\\\/04\\\/2030##Le boulodrome et le pr\\u00e9||Le-boulodrome-et-le-pre.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##La cour||La-cour-2.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030##La cour||La-cour-3.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2026##La mare||La-mare-2.jpg||Martin Spitz||||non||oui||30\\\/04\\\/2030\",\"COMMUNE\":\"SURY-AUX-BOIS\",\"CAPACITE\":22,\"ouvertureaccueil\":\"01\\\/01\\\/2026||31\\\/12\\\/2026||09:00||12:00||14:00||19:30||09:00||12:00||14:00||19:30||09:00||12:00||14:00||19:30||09:00||12:00||14:00||19:30||09:00||12:00||14:00||19:30||09:00||12:00||14:00||19:30||09:00||12:00||14:00||19:30||11:00||12:00||17:00||19:30||||\",\"tarifs\":\"Autre tarif||||W-end 2 nuit\\u00e9es||1500,00||1600,00||1500,00||1600,00||non##Autre tarif||||Semaine 7 nuit\\u00e9es||2900,00||3200,00||2900,00||3200,00||non##Autre tarif||||No\\u00ebl  4 nuits||2200,00||0,00||||||non\",\"OTadherent\":\"oui\",\"ObjectTypeName\":\"H\\u00e9bergements collectifs\"}};\n      var nbPerPg0 = 9;\n      \/\/console.log(allItems0);\n      \n      function bindMarker(id) {\n        var markerToBind = layers0[id];\n        if (markerToBind) {\n          markerToBind.openPopup();\n        }\n      }\n\n      function displayItems0() {\n        jQuery('#loader0').show();\n        var itemsToShow = [];\n        var fieldsToShow = [];\n        var deb = page0 * nbPerPg0;\n        var fin = deb + nbPerPg0;\n        var count = 0;\n        page0++;\n        var visibility_VoirSuite = true;\n\n\n        for (var i = deb; i < fin; i++) {\n          if (items0[i]) {\n            itemsToShow[count] = items0[i];\n            fieldsToShow[count] = fields0[items0[i].ID];\n          } else {\n            \/\/ jQuery('#voirlasuite0').css('visibility', 'hidden');\n            visibility_VoirSuite = false;\n          }\n          count++;\n        }\n        \/\/ console.log(itemsToShow);\n        jQuery.ajax({\n          url: 'https:\/\/www.valdeloire-foretdorleans.com\/wp-content\/plugins\/yatadata-shortcodes\/includes\/ajax\/get_articlesyatadata.php',\n          data: {\n            'items': itemsToShow,\n            'fields': fieldsToShow,\n            'nlist': 0          },\n          type: 'post',\n          dataType: 'html',\n          success: function(code_html, statut) {\n            jQuery('#loader0').hide();\n            jQuery(code_html).appendTo('#listItems0');\n            if (visibility_VoirSuite) {\n              jQuery('#voirlasuite0').css('visibility', 'visible');\n            } else {\n              jQuery('#voirlasuite0').css('visibility', 'hidden');\n            }\n          }\n        });\n      }\n\n      jQuery(function() {\n\n        function initMap() {\n          mymap0 = L.map('mapid0', {\n            gestureHandling: true\n          }).setView([47.86372108358519, 2.219991875139379], 11);\n          L.tileLayer('https:\/\/{s}.tile.openstreetmap.fr\/hot\/{z}\/{x}\/{y}.png', {\n            maxZoom: 19,\n            attribution: '&copy; <a href=\"https:\/\/www.openstreetmap.org\/copyright\">OpenStreetMap<\/a> contributors, Tiles style by <a href=\"https:\/\/www.hotosm.org\/\" target=\"_blank\">Humanitarian OpenStreetMap Team<\/a> hosted by <a href=\"https:\/\/openstreetmap.fr\/\" target=\"_blank\">OpenStreetMap France<\/a>'\n          }).addTo(mymap0);\n        }\n\n        function showAllMarkers() {\n          items0.forEach((item, i) => {\n            var latItem = fields0[item.ID]['GmapLatitude'];\n            var LngItem = fields0[item.ID]['GmapLongitude'];\n            if (latItem && LngItem) {\n              var markerIcon = L.icon({\n                iconUrl: 'https:\/\/www.valdeloire-foretdorleans.com\/wp-content\/themes\/valdeloireetforet\/images\/svg\/marker.svg',\n                iconSize: [22, 27],\n                iconAnchor: [11, 27],\n                popupAnchor: [0, -12]\n              });\n              var marker = L.marker([latItem, LngItem], {\n                icon: markerIcon\n              }).addTo(mymap0);\n              if (fields0[item.ID]['photos']) {\n                \/\/IMAGES\n                var photos = fields0[item.ID]['photos'];\n                photos = photos.split(\"##\");\n                var img = photos[0];\n                var laphoto = img.split(\"||\");\n                var laphotoREF = '';\n                if (laphoto[1] != '') {\n                  if (laphoto[5] == 'oui') {\n                    laphotoREF = laphoto[1];\n                  }\n                  lastphoto = laphoto[1];\n                }\n                laphoto = laphotoREF;\n\n                if(laphoto!=\"\"){\n                  \/\/$affichephoto = '\/wp-content\/plugins\/yatadata\/public\/multimedias\/'.fields0[item.ID].'\/'.end(explode('\/', $laphoto));\n                  img = 'https:\/\/www.valdeloire-foretdorleans.com\/wp-content\/plugins\/yatadata\/public\/multimedias\/' + fields0[item.ID]['SyndicObjectID'] + '\/' + laphoto;\n                }else{\n                  img = 'https:\/\/www.valdeloire-foretdorleans.com\/wp-content\/themes\/valdeloireetforet\/images\/noimg.jpg';\n                }\n              } else {\n                var img = 'https:\/\/www.valdeloire-foretdorleans.com\/wp-content\/themes\/valdeloireetforet\/images\/noimg.jpg';\n              }\n              var htmlPopup = \"<div class='yatadata__popup'><a href='\" + item.permalink + \"'><p>\" + item.post_title + \"<\/p><img width='250px' src='\" + img + \"'><\/a><\/div>\";\n              marker.bindPopup(htmlPopup);\n              layers0[item.ID] = marker;\n            }\n          });\n        }\n\n        function datasToArr(datas) {\n          var BeautifyDatas = [];\n          if (datas.indexOf('&')) {\n            datas = datas.split('&');\n          } else {\n            datas = [datas];\n          }\n\n          datas.forEach(function(data, index) {\n            data = data.split('=');\n            if (data[1] != '') {\n              BeautifyDatas.push(data[0]);\n              BeautifyDatas.push(data[1]);\n            }\n          });\n\n          return BeautifyDatas;\n        }\n\n        function submitForm() {\n          jQuery('#formSearch').submit();\n        }\n\n        jQuery('#formSearch').on('submit', function(e) {\n          \/\/ console.log(e);\n          jQuery('#voirlasuite0').css('visibility', 'hidden');\n          e.preventDefault();\n          items0 = getItems(jQuery(this).serialize());\n          page0 = 0;\n          jQuery('#listItems0').html('');\n          \/\/deleteMarkers();\n          \/\/showAllMarkers();\n          displayItems0();\n          if (items0.length == 0) {\n            jQuery('#listItems0').html('<p>Aucun r\u00e9sultat<\/p>');\n          }\n        });\n\n        function deleteMarkers() {\n          jQuery.each(mymap0._layers, function(ml) {\n            if (!mymap0._layers[ml]._url) {\n              mymap0._layers[ml].remove();\n            }\n          });\n        }\n\n        function getItems(datas) {\n          datas = datasToArr(datas);\n          var newItems = [];\n          if (datas.length == 0) {\n            \/\/newItems = items0;\n          }\n          console.log(newItems);\n          var itemsID = [];\n          allItems0.forEach(function(item, index) {\n            var addThis = true;\n            for (var i = 0; i < datas.length; i++) {\n              var index = datas[i];\n              i++;\n              var value = datas[i];\n              if (index == '') {\n                continue;\n              }\n              var type = '';\n              if (index == 'dateDeb' || index == 'dateFin') {\n                var dateTest = value.replace(\/%2F\/g, '\/');\n                dateTest = dateTest.split('\/').reverse().join('');\n                if (index == 'dateDeb') {\n                  var dateDeb = dateTest;\n                } else if (index == 'dateFin') {\n                  var dateFin = dateTest;\n                }\n                var DateDebTest = item.date.split('-').join('');\n                var DateFinTest = item.date.split('-').join('');\n\n                var testValue = fields0[item.ID]['ouvertureaccueil'];\n                if (testValue.indexOf('##') > -1) {\n                  testValue = testValue.split('##');\n                } else {\n                  testValue = [testValue];\n                }\n                var haveMatch = false;\n                testValue.forEach(function(val) {\n                  if (haveMatch) {\n                    return;\n                  }\n                  var datesValues = val.split('||');\n\n                  var DateDebTestPeriode = datesValues[0];\n                  if (DateDebTestPeriode.indexOf('\/') > -1) {\n                    DateDebTestPeriode = DateDebTestPeriode.split('\/').reverse().join('');\n                  } else {\n                    DateDebTestPeriode = DateDebTestPeriode.split('-').join('');\n                  }\n                  var DateFinTestPeriode = datesValues[1];\n                  if (DateFinTestPeriode.indexOf('\/') > -1) {\n                    DateFinTestPeriode = DateFinTestPeriode.split('\/').reverse().join('');\n                  } else {\n                    DateFinTestPeriode = DateFinTestPeriode.split('-').join('');\n                  }\n                  if (DateDebTest == DateDebTestPeriode) {\n                    DateFinTest = DateFinTestPeriode;\n                    haveMatch = true;\n                  }\n\n                });\n\n                if (dateFin && dateDeb && DateDebTest && DateFinTest) {\n                  if (parseInt(DateFinTest) < parseInt(dateDeb) || parseInt(DateDebTest) > parseInt(dateFin)) {\n                    addThis = false;\n                  }\n                }\n              } else {\n                if (!fields0[item.ID][index]) {\n                  addThis = false;\n                } else {\n                  var testValue = fields0[item.ID][index];\n                  if (typeof testValue != 'string') {\n                    testValue = testValue.toString();\n                  }\n                  if (index == 'nbchambresclassees' || index == 'CAPACITE' || index == 'capacitemaximumhebergement') {\n                    type = 'range';\n                  }\n                  if (type == 'range') {\n                    var values = value.split('-');\n                    if (testValue < parseInt(values[0], 10) || testValue > parseInt(values[1], 10)) {\n                      addThis = false;\n                    }\n                  } else {\n                    var testValues = testValue.split('||');\n                    if (testValues.length > 1) {\n                      if (wpFeSanitizeTitle(testValue).indexOf(value) == -1) {\n                        addThis = false;\n                      }\n                    } else {\n                      if (wpFeSanitizeTitle(testValue) != value) {\n                        addThis = false;\n                      }\n                    }\n                  }\n                }\n              }\n            }\n\n            if (addThis && !itemsID.includes(item.ID)) {\n              newItems.push(item);\n              itemsID.push(item.ID);\n            }\n          });\n          console.log(newItems);\n          return newItems;\n        }\n\n        \n        if (jQuery('#formSearch').length) {\n          \/\/ jQuery('#formSearch').submit();\n          displayItems0(); \n        } else {\n          displayItems0();\n        }\n      });\n    <\/script>\n[\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] Family gatherings, cousin get-togethers or weekends with friends \u2013 we have the ideal venues for a fantastic time. [\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-398935","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/pages\/398935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/comments?post=398935"}],"version-history":[{"count":1,"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/pages\/398935\/revisions"}],"predecessor-version":[{"id":1179838,"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/pages\/398935\/revisions\/1179838"}],"wp:attachment":[{"href":"https:\/\/www.valdeloire-foretdorleans.com\/en\/wp-json\/wp\/v2\/media?parent=398935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}