{"id":20351,"date":"2020-07-16T16:55:16","date_gmt":"2020-07-16T14:55:16","guid":{"rendered":"https:\/\/www.saone-tourisme.fr\/im-here\/100-rives-de-saone\/restaurants\/"},"modified":"2021-12-23T09:17:05","modified_gmt":"2021-12-23T08:17:05","slug":"where-to-eat","status":"publish","type":"page","link":"https:\/\/www.saone-tourisme.fr\/en\/im-here\/100-rives-de-saone\/where-to-eat\/","title":{"rendered":"Where to eat?"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]<\/p>\n<h1>TAKE A SEAT<\/h1>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<h2 class=\"chapeau\">Burgundy is the region of excellent food and drink. Whether you\u2019re looking for a light bite or a good hearty meal, our restaurants have something to suit you, with traditional and regional cuisine. However, don\u2019t leave without enjoying a delicious meal or discovering our fish specialities.<\/h2>\n<p>[\/vc_column_text]<div class='vc_row wpb_row vc_row-fluid chapeau custom_bg vc_row-has-fill'>\n\t<div class=\"wpb_column vc_column_container vc_col-sm-12\">\n\t\t<div class=\"vc_column-inner\"><\/div>\n\t<\/div>\n<\/div>\n\n<script>\n\tlayers = [];\n\tif(jQuery('.wpb_content_element').length > 0){\n\t\tjQuery('.custom_bg .vc_column_container .vc_column-inner').append(jQuery('.wpb_content_element'));\n\t\tjQuery('.contenuPage').prepend(jQuery('.custom_bg'));\n\t\tjQuery('.custom_bg').css('background-color', '#0a9a9b');\n\t}\n\t\n<\/script>\n\n<!-- CARTE ET LISTE -->\n<div class=\"row\" style=\"max-width:1500px; margin:auto;\">\n\n\t<!-- MOTEUR DE RECHERCHE -->\n\t\n\t<!-- CARTE -->\n\t<div class=\"col-lg-6 col-md-5 col-sm-6 mapvueliste\">\n\t\t<div id=\"blocmap\" class=\"mapliste\"><\/div>\n\t<\/div>\n\t<script>\n\t\tvar mylatlng = [47.050737, 5.190913];\n\t\tvar mymap = L.map('blocmap', { dragging: !L.Browser.mobile }).setView(mylatlng, 11);\n\t\tvar layerMarker = L.layerGroup().addTo(mymap);\n\t\tL.tileLayer('https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png', {maxZoom: 19,\tattribution: '&copy; <a href=\"http:\/\/www.openstreetmap.org\/copyright\">OpenStreetMap<\/a>'}).addTo(mymap);\n\t<\/script>\n\n\t<!-- DEBUT LISTE -->\n\t<div id='listcat' class=\"listeItems col-lg-6 col-md-7 col-sm-6\">\n\t<\/div>\n<\/div>\n\n<script>\n\tjQuery('document').ready(function(){\n\t\tjQuery('body > .row').replaceWith(jQuery('.contenuPage .row'));\n\t});\n<\/script>      <script src=\"https:\/\/code.jquery.com\/jquery-3.3.1.min.js\" charset=\"utf-8\"><\/script>\n      <script type=\"text\/javascript\">\n    var canSearch = true;\n    var lang = 'en';\n    var items = [302510,302480,302494,302524,302496,302512,302504,302514,302482,302500,302498,302508,302486,302490,302492,302484,302520,302506,302516,302488,302518,302502,302522];\n    var showItems = '';\n    var fields = [];\n    var layers = [];\n    var lastpage = 0;\n    var newLoad = true;\n    var tmpl = 'srit';\n    var filters = false;\n    var end = false;\n    function loadList(){\n      if (!newLoad) {\n        \/\/ displayItems();\n      }\n    }\n\n    jQuery(window).scroll(function (event) {\n      jQuery(this).delay(1000).queue(function(){\n        var scroll = jQuery(window).scrollTop();\n        var bottom = jQuery('#listcat').offset().top + jQuery('#listcat').outerHeight(true) - 500;\n\n        if (bottom <= scroll && !end && lastpage != 0) {\n          getItems();\n        }\n        jQuery(this).dequeue();\n      });\n    });\n\n    function getItems(){\n      if (showItems == '') {\n        var itemsToShow = JSON.stringify(items);\n      } else {\n        var itemsToShow = JSON.stringify(showItems);\n      }\n      if (showItems !== '') {\n        if (showItems.length == 0) {\n          jQuery('#listcat').html('<p>Aucun r\u00e9sultat<\/p>');\n          jQuery('#loader').hide();\n          return;\n        }\n      }\n      var url = 'https:\/\/www.saone-tourisme.fr\/wp-content\/plugins\/TourinsoftMVC\/models\/frontend\/ajaxScriptManager.php?getPosts=true';\n      jQuery.ajax({\n        url: url,\n        type: 'post',\n        data: 'lastpage='+lastpage+'&lang='+lang+'&items='+itemsToShow+'&tmpl='+tmpl,\n        success: function(result, status){\n          jQuery('#loader').hide();\n          if (result) {\n            jQuery(result).appendTo('#listcat');\n          } else {\n            end = true;\n          }\n          \/\/ console.log(result);\n          lastpage++;\n          \/\/ displayItems();\n          \/\/ loadMarkers();\n        }\n      });\n    }\n\n    jQuery('.formreserver').on('submit', function(e){\n      newLoad = true;\n      lastpage = 0;\n      \/\/showItems = '';\n      e.preventDefault();\n      var datas = jQuery(this).serialize();\n      jQuery('#listcat').html('');\n      jQuery('#loader').show();\n      deleteMarkers();\n      if (canSearch) {\n        canSearch = false;\n        getSearch(datas);\n      }\n    });\n\n\n    function getSearch(datas){\n      var url = 'https:\/\/www.saone-tourisme.fr\/wp-content\/plugins\/TourinsoftMVC\/models\/frontend\/ajaxScriptManager.php?getSearch=true';\n      jQuery.ajax({\n        url: url,\n        type: 'post',\n        data: 'items='+JSON.stringify(items)+'&'+datas,\n        success: function(result, status){\n          canSearch = true;\n          console.log(result);\n          if (result) {\n            showItems = JSON.parse(result);\n            \/\/ jQuery(result).appendTo('#listcat');\n            end = false;\n          } else {\n            end = true;\n          }\n          getItems();\n        }\n      });\n    }\n    function deleteMarkers(){\n      layers.forEach(function(layer){\n        mymap.removeLayer(layer);\n      });\n      layers = [];\n      layerMarker.clearLayers();\n    }\n\n    function bindMarker(id){\n      var markerToBind = layers[id];\n      markerToBind.openPopup();\n    }\n\n    function setMarkers(markers) {\n      markers = JSON.parse(markers);\n      \/\/ var myIcon = L.icon({\n      \/\/   iconUrl: \"\/wp-content\/themes\/samoens\/img\/marker.png\",\n      \/\/   iconSize: [25,41],\n      \/\/   iconAnchor: [12,40],\n      \/\/   popupAnchor: [1, -40]\n      \/\/ });\n\n      jQuery.each(markers,function(index, marker, array){\n        layers.push(L.marker([marker.MarkerListLat, marker.MarkerListLng]).bindPopup(\"<a href=\\'\"+marker.MarkerListUrl+\"\\'><p><b>\"+marker.MarkerListTitle+\"<\/b><\/p><img width=\\'200px\\' src=\\'\"+marker.MarkerListImg+\" \\'><p>\"+marker.MarkerListInfo+\"<\/p><\/a>\").addTo(mymap));\n      });\n    }\n\n    getItems();\n    <\/script>\n      [\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] TAKE A SEAT [\/vc_column_text][vc_column_text] Burgundy is the region of excellent food and drink. Whether you\u2019re looking for a light bite or a good hearty meal, our restaurants have something to suit you, with traditional and regional cuisine. However, don\u2019t leave without enjoying a delicious meal or discovering our fish specialities. [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":2585,"parent":18944,"menu_order":645,"comment_status":"closed","ping_status":"closed","template":"template_liste.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-20351","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/pages\/20351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/comments?post=20351"}],"version-history":[{"count":2,"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/pages\/20351\/revisions"}],"predecessor-version":[{"id":20353,"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/pages\/20351\/revisions\/20353"}],"up":[{"embeddable":true,"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/pages\/18944"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/media\/2585"}],"wp:attachment":[{"href":"https:\/\/www.saone-tourisme.fr\/en\/wp-json\/wp\/v2\/media?parent=20351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}