templates/layouts/common/default.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'common', section: (pageSection is defined ? pageSection : 'unknown') } %}
  5. {% include 'includes/common/head.html.twig' %}
  6. {% if pageAttributes.section is defined and pageAttributes.section == 'sim' %}
  7. {% include 'includes/sim/stylesheets.html.twig' %}
  8. {% endif %}
  9. {% block head_scripts_requirements %}{% endblock %}
  10. {% if paymentScripts is defined and paymentScripts %}
  11. {% include 'includes/ticketing/payment-scripts.html.twig' %}
  12. {% endif %}
  13. </head>
  14. <body class="is-Layout_Common_Default is-Layout_WithNavMenu {{ pageAttributes.bodyClasses is defined ? ' ' ~ pageAttributes.bodyClasses : '' }}{{ (display_mode is defined and display_mode == constant('App\\EventSubscriber\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW')) ? ' is-Layout_WebView' : '' }}">
  15. {% include 'includes/common/accessibility-quick-links.twig' %}
  16. {% include 'includes/common/body-begin-scripts.html.twig' %}
  17. <div id="body">
  18. {# Declare default empty blocks so block() never throws when child doesn't override.
  19. Hidden in HTML comments so any child override doesn't render visibly. #}
  20. <!--{% block footer_positioning_mobile %}{% endblock %}-->
  21. <!--{% block footer_positioning_desktop %}{% endblock %}-->
  22. {% if enable_web_harmony is defined and enable_web_harmony == true %}
  23. {% include 'includes/common/web-harmony.html.twig' with {
  24. footer_positioning_mobile: block('footer_positioning_mobile'),
  25. footer_positioning_desktop: block('footer_positioning_desktop'),
  26. } %}
  27. {% else %}
  28. {% include 'includes/common/default-header.html.twig' %}
  29. {% endif %}
  30. <div class="is-container" id="is-Content">
  31. {% include 'includes/common/mask.html.twig' with {global: true, id:'is-Global-Mask'} %}
  32. {% if display_mode != constant('App\\EventSubscriber\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW') and steps is defined and steps is not empty %}
  33. <div class="is-text-center">
  34. {% include 'includes/ticketing/header-steps.html.twig' %}
  35. </div>
  36. {% endif %}
  37. <main id="is-Main" role="main" tabindex="-1">
  38. {% block content %}{% endblock %}
  39. </main>
  40. </div>
  41. {% if enable_web_harmony is not defined or enable_web_harmony == false %}
  42. {{ render(controller('App\\Controller\\PageController::getFooterAction', { 'filigree': (filigree is defined) ? filigree : false } )) }}
  43. {% endif %}
  44. </div>
  45. {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  46. {% include 'pages/account/userLogin.html.twig' %}
  47. {% endif %}
  48. {% if (isPdfPrint is not defined or isPdfPrint == false) %}
  49. {% include 'includes/common/default-nav.html.twig' %}
  50. {% endif %}
  51. {# Include plugins, utils, etc. files #}
  52. {% if pageAttributes.section == 'sim' %}
  53. {% include 'includes/sim/body-end-scripts.html.twig' %}
  54. {% endif %}
  55. {% block body_end_scripts_requirements %}{% endblock %}
  56. </body>
  57. </html>