{# /** * OTS Signs — Layout Designer Page (with embed mode support) * * Overrides the Xibo core layout-designer-page.twig to add an embeddable * layout editor mode for use inside an iframe in external applications. * * Usage: * Normal: /layout/designer/{layoutId} * Embed: /layout/designer/{layoutId}?embed=1 * * In embed mode: * - All CMS navigation is hidden (sidebar, topbar, help pane) * - Back/Exit buttons in the editor toolbar are hidden * - postMessage events are sent to the parent window: * xibo:editor:ready, xibo:editor:save, xibo:editor:publish, xibo:editor:exit * - Parent can send: xibo:editor:requestSave * * Copyright (C) 2020-2026 Xibo Signage Ltd * Copyright (C) 2026 Oribi Technology Services * * Licensed under the GNU Affero General Public License v3.0 */ #} {% extends "authed.twig" %} {% import "inline.twig" as inline %} {% block title %}{{ "Layout Editor"|trans }} | {% endblock %} {% set hideNavigation = "1" %} {% set forceHide = true %} {% block headContent %} {{ parent() }} {# Embed mode: early body class to prevent FOUC #} {% endblock %} {% block pageContent %}
{% endblock %} {% block javaScript %} {# Add common files #} {% include "editorTranslations.twig" %} {% include "editorVars.twig" %} {# ── Embed mode: postMessage bridge ──────────────────────── #} {% endblock %}