{"id":2838,"date":"2026-03-03T12:31:13","date_gmt":"2026-03-03T11:31:13","guid":{"rendered":"https:\/\/the-signaturecollection.com\/?uicore-tb=restaurant-pop-up"},"modified":"2026-03-09T18:03:46","modified_gmt":"2026-03-09T17:03:46","slug":"restaurant-pop-up","status":"publish","type":"uicore-tb","link":"https:\/\/the-signaturecollection.com\/eng\/?uicore-tb=restaurant-pop-up","title":{"rendered":"restaurant pop up"},"content":{"rendered":"\t\t<div data-elementor-type=\"uicore-tb\" data-elementor-id=\"2838\" class=\"elementor elementor-2838\" data-elementor-post-type=\"uicore-tb\">\n\t\t\t\t<div class=\"elementor-element elementor-element-63f2e622 ignore-toc e-con-full e-flex e-con e-parent\" data-id=\"63f2e622\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-40923620 e-con-full e-flex e-con e-child\" data-id=\"40923620\" data-element_type=\"container\" data-e-type=\"container\" id=\"icihotel\">\n\t\t\t\t<div class=\"elementor-element elementor-element-86ad1b3 elementor-widget elementor-widget-shortcode\" data-id=\"86ad1b3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div id=\"phm-map-popup-target\"><\/div>\n\n<script>\n(function () {\n  function isMobile() {\n    return window.matchMedia(\"(max-width: 767px)\").matches;\n  }\n\n  function moveMapIntoPopup() {\n    if (!isMobile()) return;\n\n    \/\/ Popup UiCore ouvert\n    var activePopup = document.querySelector(\".ui-popup-2838.ui-popup-active\");\n    if (!activePopup) return;\n\n    \/\/ Zone cible dans le popup\n    var target = activePopup.querySelector(\"#phm-map-popup-target\");\n    if (!target) return;\n\n    \/\/ La map (\u00e0 d\u00e9placer)\n    var map = document.querySelector(\".phm-rest-map\");\n    if (!map) return;\n\n    \/\/ D\u00e9j\u00e0 d\u00e9plac\u00e9e\n    if (target.contains(map)) return;\n\n    \/\/ D\u00e9place la map dans le popup\n    target.appendChild(map);\n\n    \/\/ Refresh (utile pour beaucoup de maps)\n    setTimeout(function () {\n      window.dispatchEvent(new Event(\"resize\"));\n    }, 250);\n  }\n\n  \/\/ 1) Tentative au chargement\n  document.addEventListener(\"DOMContentLoaded\", function () {\n    \/\/ 2) Observer le DOM : d\u00e8s que le popup devient \"active\", on d\u00e9place\n    var obs = new MutationObserver(function () {\n      moveMapIntoPopup();\n    });\n\n    obs.observe(document.body, {\n      childList: true,\n      subtree: true,\n      attributes: true,\n      attributeFilter: [\"class\"]\n    });\n\n    \/\/ 3) Et une tentative imm\u00e9diate au cas o\u00f9\n    moveMapIntoPopup();\n  });\n})();\n<\/script><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"author":1,"featured_media":0,"template":"","class_list":["post-2838","uicore-tb","type-uicore-tb","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/uicore-tb\/2838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/uicore-tb"}],"about":[{"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/types\/uicore-tb"}],"author":[{"embeddable":true,"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":12,"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/uicore-tb\/2838\/revisions"}],"predecessor-version":[{"id":2860,"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/uicore-tb\/2838\/revisions\/2860"}],"wp:attachment":[{"href":"https:\/\/the-signaturecollection.com\/eng\/wp-json\/wp\/v2\/media?parent=2838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}