{# @copyright Copyright (C) 2010-2024 Combodo SAS #} {# @license http://opensource.org/licenses/AGPL-3.0 #} {% apply spaceless %} {% set sId = oLayout.GetId() | sanitize(constant('utils::ENUM_SANITIZATION_FILTER_VARIABLE_NAME')) %} {% set bHasOnInitOrOnDomReadyScripts = aPage.aJsInlineOnInit is not empty or aPage.aJsInlineOnDomReady is not empty %} {% if bEscapeContent %} {{ render_block(oLayout, {aPage: aPage})|escape }} {% else %} {{ render_block(oLayout, {aPage: aPage}) }} {% endif %} {% block iboPageJsInlineEarly %} {% for sJsInline in aPage.aJsInlineEarly %} {# We put each scripts in a dedicated script tag to prevent massive failure if 1 script is broken (eg. missing semi-colon or non closed multi-line comment) #} {% endfor %} {% endblock %} {% block iboPageJsInlineLive %} {% for sJsInline in aPage.aJsInlineLive %} {# We put each scripts in a dedicated script tag to prevent massive failure if 1 script is broken (eg. missing semi-colon or non closed multi-line comment) #} {% endfor %} {% endblock %} {% if bHasOnInitOrOnDomReadyScripts %} {% endif %} {% set sPromiseId = aPage.sPromiseId %} {% if aPage.aJsFiles is not empty %} {% block iboPageJsFiles %} {% endblock %} {% else %} {% if bHasOnInitOrOnDomReadyScripts %} {% block iboPageJsInlineOnDomReady %} {% endblock %} {% endif %} {% endif %} {% if aDeferredBlocks is not empty %} {% for oBlock in aDeferredBlocks %} {{ render_block(oBlock, {aPage: aPage})|raw }} {% endfor %} {% endif %} {% if sDeferredContent %} {% endif %} {% block iboPageCssFiles %} {% if aPage.aCssFiles is not empty %} {% endif %} {% endblock %} {{ aPage.sCapturedOutput|raw }} {% endapply %}