{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {%- block sonata_page_html_tag -%} {% endblock %} {% block sonata_page_head %} {{ sonata_seo_title() }} {{ sonata_seo_metadatas() }} {% block sonata_page_stylesheets %} {% block page_stylesheets %} {# Deprecated block #} {% for stylesheet in sonata_page.assets.stylesheets %} {% endfor %} {% endblock %} {% endblock %} {% block sonata_page_javascripts %} {% block page_javascripts %} {# Deprecated block #} {% for js in sonata_page.assets.javascripts %} {% endfor %} {% endblock %} {% endblock %} {% endblock %} {% block sonata_page_body_tag %} {% endblock %} {% block sonata_page_top_bar %} {% block page_top_bar %} {# Deprecated block #} {% if sonata_page.isEditor or ( app.user and is_granted('ROLE_PREVIOUS_ADMIN') ) %} {% if sonata_page.isEditor and sonata_page.isInlineEditionOn %} {% endif %} {% endif %} {% endblock %} {% endblock %} {% block sonata_page_container %} {% block page_container %}{% endblock %} {# Deprecated block #} {% endblock %} {% block sonata_page_asset_footer %} {% block page_asset_footer %} {# Deprecated block #} {% if page is defined %} {% if page.javascript is not empty %} {% endif %} {% if page.stylesheet is not empty %} {% endif %} {% endif %} {# These includes can be done only at this point as all blocks are loaded, Limition : this does not work if a global page is loaded from an ESI tag inside a container block #} {{ sonata_block_include_stylesheets('screen', app.request.basePath) }} {{ sonata_block_include_javascripts('screen', app.request.basePath) }} {% endblock %} {% endblock %}