{"id":44,"date":"2026-10-08T00:46:54","date_gmt":"2026-10-07T22:46:54","guid":{"rendered":"https:\/\/demo.swissai.dev\/pizzeria\/en\/agenda\/"},"modified":"2026-10-08T00:46:54","modified_gmt":"2026-10-07T22:46:54","slug":"agenda","status":"publish","type":"page","link":"https:\/\/demo.swissai.dev\/pizzeria\/en\/agenda\/","title":{"rendered":"Agenda"},"content":{"rendered":"\n<div class=\"wp-block-group sd-section sd-page-head has-global-padding is-layout-constrained wp-container-core-group-is-layout-d1c35fb7 wp-block-group-is-layout-constrained\">\n\n<p class=\"sd-eyebrow\">Agenda<\/p><h1>The reservations taken by the assistant<\/h1><p class=\"sd-lead\">Today and the next six days, refreshed every twenty seconds. Names shortened and numbers masked: they belong to visitors. The agenda is emptied every night at four.<\/p>\n\n<\/div>\n\n\n<div class=\"wp-block-group sd-section sd-last has-global-padding is-layout-constrained wp-container-core-group-is-layout-d1c35fb7 wp-block-group-is-layout-constrained\">\n\n<div class=\"sd-agenda\" id=\"sd-agenda-1\" data-cfg=\"{&quot;ajax&quot;:&quot;https:\\\/\\\/demo.swissai.dev\\\/pizzeria\\\/wp-admin\\\/admin-ajax.php&quot;,&quot;type&quot;:&quot;tables&quot;,&quot;business&quot;:&quot;restaurant&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;labels&quot;:{&quot;time&quot;:&quot;Time&quot;,&quot;service&quot;:&quot;Service&quot;,&quot;people&quot;:&quot;People&quot;,&quot;name&quot;:&quot;Name&quot;,&quot;phone&quot;:&quot;Phone&quot;,&quot;today&quot;:&quot;today&quot;,&quot;updated&quot;:&quot;Updated at&quot;,&quot;empty&quot;:&quot;no appointment in the next seven days&quot;,&quot;error&quot;:&quot;Agenda not available right now.&quot;,&quot;min&quot;:&quot;min&quot;},&quot;names&quot;:[]}\"><p class=\"sd-agenda-status\"><\/p><div class=\"sd-agenda-days\"><\/div><\/div><script>(function () {\n\tvar box = document.getElementById(\"sd-agenda-1\");\n\tvar cfg = JSON.parse(box.getAttribute('data-cfg'));\n\tvar L = cfg.labels, status = box.querySelector('.sd-agenda-status'), days = box.querySelector('.sd-agenda-days');\n\tfunction esc(s) { return String(s).replace(\/[&<>\"]\/g, function (c) { return { '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;' }[c]; }); }\n\tfunction render(d) {\n\t\tif (d.error) { status.textContent = L.error || d.error; return; }\n\t\tstatus.textContent = (L.updated || 'Updated') + ' ' + d.updated + (d.count ? '' : ' \u00b7 ' + (L.empty || ''));\n\t\tvar h = '';\n\t\td.days.forEach(function (day) {\n\t\t\th += '<section class=\"sd-agenda-day' + (day.today ? ' is-today' : '') + '\"><h3>' + esc(day.label) + (day.today ? ' <span>' + esc(L.today || '') + '<\/span>' : '') + '<\/h3><table><thead><tr><th>' + esc(L.time || '') + '<\/th><th>' + esc(cfg.type === 'tables' ? (L.people || '') : (L.service || '')) + '<\/th><th>' + esc(L.name || '') + '<\/th><th>' + esc(L.phone || '') + '<\/th><\/tr><\/thead><tbody>';\n\t\t\tday.rows.forEach(function (r) {\n\t\t\t\tvar what = cfg.type === 'tables' ? esc(r.what) : esc(cfg.names[r.what] || r.what) + (r.minutes ? ' <small>' + r.minutes + ' ' + esc(L.min || 'min') + '<\/small>' : '');\n\t\t\t\th += '<tr><td>' + esc(r.time) + '<\/td><td>' + what + '<\/td><td>' + esc(r.name) + '<\/td><td>' + esc(r.phone) + '<\/td><\/tr>';\n\t\t\t});\n\t\t\th += '<\/tbody><\/table><\/section>';\n\t\t});\n\t\tdays.innerHTML = h;\n\t}\n\tfunction load() {\n\t\tfetch(cfg.ajax + '?action=sd_agenda&type=' + cfg.type + '&business=' + encodeURIComponent(cfg.business) + '&lang=' + cfg.lang, { cache: 'no-store' })\n\t\t\t.then(function (r) { return r.json(); }).then(render).catch(function () { status.textContent = L.error || 'Error'; });\n\t}\n\tload();\n\tsetInterval(load, 20000);\n})();<\/script>\n\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Agenda The reservations taken by the assistant Today and the next six days, refreshed every twenty seconds. Names shortened and numbers masked: they belong to visitors. The agenda is emptied every night at four.<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":12,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-44","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/pages\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":1,"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/pages\/44\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/pages\/44\/revisions\/45"}],"up":[{"embeddable":true,"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/pages\/12"}],"wp:attachment":[{"href":"https:\/\/demo.swissai.dev\/pizzeria\/wp-json\/wp\/v2\/media?parent=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}