{"id":1865,"date":"2024-11-25T09:00:03","date_gmt":"2024-11-25T07:00:03","guid":{"rendered":"https:\/\/royalhotel.bg\/booking\/"},"modified":"2025-01-31T12:07:50","modified_gmt":"2025-01-31T10:07:50","slug":"booking","status":"publish","type":"page","link":"https:\/\/royalhotel.bg\/en\/booking\/","title":{"rendered":"Booking"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1865\" class=\"elementor elementor-1865 elementor-1147\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0ae9acc e-flex e-con-boxed e-con e-parent\" data-id=\"0ae9acc\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9f04c27 elementor-hidden-desktop elementor-hidden-tablet elementor-hidden-mobile elementor-widget elementor-widget-heading\" data-id=\"9f04c27\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Book now<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0de40eb elementor-widget elementor-widget-html\" data-id=\"0de40eb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- start Booking form script -->\n<div class=\"be-wrapper\">\n    <div id=\"be-block-select\">\n    \t<select id=\"be-hotel-select\"><\/select>\n    <\/div>\n    <div id=\"be-booking-form\"><\/div>\n<\/div>\n<script type=\"text\/javascript\">\n  var select = document.getElementById(\"be-hotel-select\");\n  select.addEventListener('change', function () {\n    var hotel_id = \"hotel_id\";\n    var regex = new RegExp(\/hotel_id=\\d+\/g);\n    var getParams = window.location.search;\n    var params_str = hotel_id + \"=\" + this.value;\n    var path = \"\";\n    if (getParams.indexOf(hotel_id) != -1) {\n      path = getParams.replace(regex, params_str);\n    } else {\n      if (getParams == \"\") {\n        path = getParams + '?' + params_str;\n      } else {\n        path = getParams + '&' + params_str;\n      }\n    }\n    window.history.pushState(false, false, path);\n  });\n<\/script>\n<!-- end Booking form script -->\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Book now<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1865","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/pages\/1865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/comments?post=1865"}],"version-history":[{"count":2,"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/pages\/1865\/revisions"}],"predecessor-version":[{"id":1868,"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/pages\/1865\/revisions\/1868"}],"wp:attachment":[{"href":"https:\/\/royalhotel.bg\/en\/wp-json\/wp\/v2\/media?parent=1865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}