{"id":2689,"date":"2019-07-24T15:40:31","date_gmt":"2019-07-24T13:40:31","guid":{"rendered":"https:\/\/www.samoens.com\/?page_id=2689"},"modified":"2026-04-12T10:21:45","modified_gmt":"2026-04-12T08:21:45","slug":"page-d-exemple","status":"publish","type":"page","link":"https:\/\/www.samoens.com\/en\/","title":{"rendered":"Accueil"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_section el_id=&#8221;3blocs_ete&#8221;][\/vc_section][vc_section el_id=&#8221;3blocs_hiver&#8221;][\/vc_section][vc_row][vc_column]\n          <div class=\"moteurRecherche\">\n        <form id=\"formSearch\" action=\"\" method=\"post\">\n                  <\/form>\n      <\/div>\n      \n    \n    \n    \n\n    <div class=\"col-sm-12 colonneitems\">\n                <div class=\"inner\" id=\"listItems0\"><\/div>\n                <div class=\"loader\" id=\"loader0\" hidden><img decoding=\"async\" src=\"\/wp-content\/themes\/samoens\/img\/loader.svg\" alt=\"Loader\"><\/div>\n                 <div class=\"voirplusctn\"><button onclick=\"displayItems0();\" id=\"voirlasuite0\" class=\"voirplus\">Voir la suite<\/button><\/div>\n              <\/div>\n    <script type=\"text\/javascript\">\n      \n              var layers0 = [];\n      var mymap0;\n      var page0 = 0;\n      var allItems0 = [];\n      var items0 = [];\n      var fields0 = [];\n      var nbPerPg0 = 8;\n            function bindMarker(id){\n        var markerToBind = layers0[id];\n        if (markerToBind) {\n          markerToBind.openPopup();\n          markerToBind.setIcon(myIconRed);\n        }\n      }\n\n      function unbindMarker(id){\n        var markerToBind = layers0[id];\n        if (markerToBind) {\n          markerToBind.setIcon(myIcon);\n        }\n      }\n\n      function displayItems0()\n      {\n        var aspect = \"\";\n        var old_height = $(window).height();  \/\/store document height before modifications\n        var old_scroll = $(window).scrollTop(); \/\/remember the scroll position\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        for (var i = deb; i < fin; i++) {\n          if (items0[i]) {\n            itemsToShow[count] = items0[i];\n            fieldsToShow[count] = fields0[items0[i].ID];\n            jQuery('#voirlasuite0').css('visibility', 'visible');\n          } else {\n            jQuery('#voirlasuite0').css('visibility', 'hidden');\n          }\n          count++;\n        }\n        jQuery.ajax({\n          url: 'https:\/\/www.samoens.com\/wp-content\/plugins\/yatadata-shortcodes\/includes\/ajax\/get_articlesyatadata.php',\n                      data: {'lang' : \"en\", 'saison': \"ete\", 'libelle': \"libelleEn\", 'nlist': 0, 'items': itemsToShow, 'fields': fieldsToShow, 'aspect': aspect},\n            \n          type: 'post',\n          dataType: 'html',\n          success: function(code_html, statut){\n            jQuery('#loader0').hide();\n            if(code_html){\n                jQuery(code_html).appendTo('#listItems0');\n            }else{\n                var aucunresultat = \"Aucun r\u00e9sultat\";\n                jQuery('<p class=\"aucun-resultat\">'+aucunresultat+'<\/p>').appendTo('#listItems0');\n            }\n\n            $(window).scrollTop(old_scroll + $(window).height() - old_height); \/\/restore \"scroll position\"\n          }\n        });\n      }\n\n      jQuery(function(){\n        function initMap()\n        {\n          \/\/ mymap0 = L.map('mapid0', { dragging: !L.Browser.mobile }).setView([46.083431, 6.727270], 15);\n          mymap0 = L.map('mapid0', { gestureHandling: true }).setView([46.083431, 6.727270], 15);\n          \n          L.tileLayer('https:\/\/{s}.tile.openstreetmap.fr\/hot\/{z}\/{x}\/{y}.png', {\n          \tmaxZoom: 19,\n          \tattribution: '&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 displayAllMarkers()\n        {\n          allItems0.forEach(item => displayMarker(item));\n        }\n\n        function displayMarker(item)\n        {\n          var itemID = item.ID;\n          var fieldItem = fields0[itemID];\n          if (fieldItem.localisation.geolocalisation) {\n            if (fieldItem.localisation.geolocalisation.geoJson) {\n              var lat = fieldItem.localisation.geolocalisation.geoJson.coordinates[1];\n              var lng = fieldItem.localisation.geolocalisation.geoJson.coordinates[0];\n              var title = item.post_title;\n              var popuphtml = \"<div><a href='\"+ item.guid +\"'><p><b>\"+ title +\"<\/b><\/p><\/a><\/div>\";\n              var marker = L.marker([lat, lng], {icon: myIcon}).addTo(mymap0);\n              marker.bindPopup(popuphtml);\n              layers0[itemID] = marker;\n            }\n          }\n        }\n\n        function datasToArr(datas)\n        {\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            BeautifyDatas.push(data[0]);\n            BeautifyDatas.push(data[1]);\n          });\n\n          return BeautifyDatas;\n        }\n\n        function submitForm(){\n          jQuery('#formSearch').submit();\n        }\n\n        jQuery('#formSearch').on('submit', function(e){\n          e.preventDefault();\n          items0 = getItems(jQuery(this).serialize());\n          page0 = 0;\n          jQuery('#listItems0').html('');\n          displayItems0();\n        });\n\n        function getItems(datas)\n        {\n          datas = datasToArr(datas);\n          var newItems = [];\n          console.log(datas);\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 (value == '' || !value) {\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 date = item.date.split('||');\n                \/\/ if(date.length > 1){\n                \/\/   dateDebSplit = date[0];\n                \/\/   dateFinSplit = date[1];\n                \/\/ }else{\n                \/\/   dateDebSplit = date[0];\n                \/\/   dateFinSplit = date[0];\n                \/\/ }\n                var DateDebTest = item.date.split('-').join('');\n                var DateFinTest = item.date.split('-').join('');\n                \/\/ if (item.ID == '553437') {\n                \/\/   console.log(item.date);\n                \/\/   \/\/console.log(DateFinTest);\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                  \/\/certaines fiches n'ont pas de capacit\u00e9 ou de nbr de chambres, il faut les afficher quand m\u00eame\n                  if(index != 'NBREEMPLACEMENTS' && index != 'CAPACITEACCUEIL' && index != 'NBRECOUVERTS'){\n                    addThis = false;\n                  }else{\n                    var values = value.split('-');\n                    if(parseInt(values[0], 10) != 0){\n                      addThis = false;\n                    }\n                  }\n                } else {\n                  var testValue = fields0[item.ID][index];\n                  if (typeof testValue != 'string') {\n                    testValue = testValue.toString();\n                  }\n                  if (index == 'tarifChDbl' || index == 'NBREPERS' || index == 'NBREEMPLACEMENTS' || index == 'nuitee' || index == 'tarifSemaine' || index == 'tarifResto' || index == 'CAPACITEACCUEIL' || index == 'NBRECOUVERTS') {\n                    type = 'range';\n                  }\n                  if (index == 'datesOuverture') {\n                    value = wpFeSanitizeTitle(value.split('%2F').reverse().join('\/'));\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\n                    if (wpFeSanitizeTitle(testValue).indexOf(value) == -1) {\n                      addThis = false;\n                    }\n                  }\n                }\n              }\n            }\n\n            if (addThis) {\n              newItems.push(item);\n            }\n          });\n          return newItems;\n        }\n\n\n                if (jQuery('#formSearch').length) {\n          \/\/ console.log('ITEMS : ');\n          \/\/ console.log(jQuery('#formSearch').length);\n          jQuery('#formSearch').submit();\n          \/\/ displayItems0();\n        } else {\n                    displayItems0();\n                  }\n\n              });\n    <\/script>\n    [\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_section el_id=&#8221;3blocs_ete&#8221;][\/vc_section][vc_section el_id=&#8221;3blocs_hiver&#8221;][\/vc_section][vc_row][vc_column][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":592580,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-accueil-regiondo.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2689","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Samo\u00ebns, an authentic ski resort and village in Haute-Savoie<\/title>\n<meta name=\"description\" content=\"Nestling in the heart of the Grand Massif ski area and less than 1 hour from Geneva, Samo\u00ebns will make your holidays unforgettable in summer and winter alike.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.samoens.com\/en\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Samo\u00ebns, an authentic ski resort and village in Haute-Savoie\" \/>\n<meta property=\"og:description\" content=\"Nestling in the heart of the Grand Massif ski area and less than 1 hour from Geneva, Samo\u00ebns will make your holidays unforgettable in summer and winter alike.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.samoens.com\/en\/\" \/>\n<meta property=\"og:site_name\" content=\"Samo\u00ebns, station de ski et village authentique en Haute-Savoie\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-12T08:21:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.samoens.com\/wp-content\/uploads\/2019\/07\/slide1-e1564663681347.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.samoens.com\/en\/\",\"url\":\"https:\/\/www.samoens.com\/en\/\",\"name\":\"Samo\u00ebns, an authentic ski resort and village in Haute-Savoie\",\"isPartOf\":{\"@id\":\"https:\/\/www.samoens.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.samoens.com\/en\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.samoens.com\/en\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.samoens.com\/wp-content\/uploads\/2024\/12\/Village-de-Samoens-en-ete.jpg\",\"datePublished\":\"2019-07-24T13:40:31+00:00\",\"dateModified\":\"2026-04-12T08:21:45+00:00\",\"description\":\"Nestling in the heart of the Grand Massif ski area and less than 1 hour from Geneva, Samo\u00ebns will make your holidays unforgettable in summer and winter alike.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.samoens.com\/en\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.samoens.com\/en\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.samoens.com\/en\/#primaryimage\",\"url\":\"https:\/\/www.samoens.com\/wp-content\/uploads\/2024\/12\/Village-de-Samoens-en-ete.jpg\",\"contentUrl\":\"https:\/\/www.samoens.com\/wp-content\/uploads\/2024\/12\/Village-de-Samoens-en-ete.jpg\",\"width\":2048,\"height\":1534},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.samoens.com\/en\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.samoens.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accueil\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.samoens.com\/#website\",\"url\":\"https:\/\/www.samoens.com\/\",\"name\":\"Samo\u00ebns, station de ski et village authentique en Haute-Savoie\",\"description\":\"Nich\u00e9e au coeur du domaine skiable du Grand Massif et \u00e0 moins d&#039;1h de Gen\u00e8ve, Samo\u00ebns rendra vos vacances inoubliables en \u00e9t\u00e9 comme en hiver\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.samoens.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Samo\u00ebns, an authentic ski resort and village in Haute-Savoie","description":"Nestling in the heart of the Grand Massif ski area and less than 1 hour from Geneva, Samo\u00ebns will make your holidays unforgettable in summer and winter alike.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.samoens.com\/en\/","og_locale":"en_US","og_type":"article","og_title":"Samo\u00ebns, an authentic ski resort and village in Haute-Savoie","og_description":"Nestling in the heart of the Grand Massif ski area and less than 1 hour from Geneva, Samo\u00ebns will make your holidays unforgettable in summer and winter alike.","og_url":"https:\/\/www.samoens.com\/en\/","og_site_name":"Samo\u00ebns, station de ski et village authentique en Haute-Savoie","article_modified_time":"2026-04-12T08:21:45+00:00","og_image":[{"url":"https:\/\/www.samoens.com\/wp-content\/uploads\/2019\/07\/slide1-e1564663681347.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.samoens.com\/en\/","url":"https:\/\/www.samoens.com\/en\/","name":"Samo\u00ebns, an authentic ski resort and village in Haute-Savoie","isPartOf":{"@id":"https:\/\/www.samoens.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.samoens.com\/en\/#primaryimage"},"image":{"@id":"https:\/\/www.samoens.com\/en\/#primaryimage"},"thumbnailUrl":"https:\/\/www.samoens.com\/wp-content\/uploads\/2024\/12\/Village-de-Samoens-en-ete.jpg","datePublished":"2019-07-24T13:40:31+00:00","dateModified":"2026-04-12T08:21:45+00:00","description":"Nestling in the heart of the Grand Massif ski area and less than 1 hour from Geneva, Samo\u00ebns will make your holidays unforgettable in summer and winter alike.","breadcrumb":{"@id":"https:\/\/www.samoens.com\/en\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.samoens.com\/en\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.samoens.com\/en\/#primaryimage","url":"https:\/\/www.samoens.com\/wp-content\/uploads\/2024\/12\/Village-de-Samoens-en-ete.jpg","contentUrl":"https:\/\/www.samoens.com\/wp-content\/uploads\/2024\/12\/Village-de-Samoens-en-ete.jpg","width":2048,"height":1534},{"@type":"BreadcrumbList","@id":"https:\/\/www.samoens.com\/en\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.samoens.com\/en\/"},{"@type":"ListItem","position":2,"name":"Accueil"}]},{"@type":"WebSite","@id":"https:\/\/www.samoens.com\/#website","url":"https:\/\/www.samoens.com\/","name":"Samo\u00ebns, station de ski et village authentique en Haute-Savoie","description":"Nich\u00e9e au coeur du domaine skiable du Grand Massif et \u00e0 moins d&#039;1h de Gen\u00e8ve, Samo\u00ebns rendra vos vacances inoubliables en \u00e9t\u00e9 comme en hiver","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.samoens.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/pages\/2689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/comments?post=2689"}],"version-history":[{"count":6,"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/pages\/2689\/revisions"}],"predecessor-version":[{"id":607561,"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/pages\/2689\/revisions\/607561"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/media\/592580"}],"wp:attachment":[{"href":"https:\/\/www.samoens.com\/en\/wp-json\/wp\/v2\/media?parent=2689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}