{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% if sonata_page.isInlineEditionOn %}
    <div id="cms-block-{{ block.id }}"
         class="cms-block{% if block.hasParent() %} cms-block-element{% endif %}{% block block_class %}{% endblock %}"
        {% if sonata_page.isEditor and block.page is defined %}
            data-id="{{ block.id }}"
            data-name="{{ block.name }}"
            data-role="{% block block_role %}block{% endblock %}"
            data-page-id="{{ block.page.id }}"
        {% endif %}
        >
{% elseif sonata_page.isEditor() %}
    <!-- start rendering, block.id: {{ block.id }} - page.id: {{ block.page.id }} - name: {{ block.name }} -->
{% endif %}

{% block block %}EMPTY CONTENT{% endblock %}

{% if sonata_page.isInlineEditionOn %}
    </div>
{% elseif sonata_page.isEditor() %}
    <!-- end rendering, block.id: {{ block.id }} - page.id: {{ block.page.id }} - name: {{ block.name }} -->
{% endif %}
{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% if sonata_page.isInlineEditionOn %}
    <div id="cms-block-{{ block.id }}"
         class="cms-block{% if block.hasParent() %} cms-block-element{% endif %}{% block block_class %}{% endblock %}"
        {% if sonata_page.isEditor and block.page is defined %}
            data-id="{{ block.id }}"
            data-name="{{ block.name }}"
            data-role="{% block block_role %}block{% endblock %}"
            data-page-id="{{ block.page.id }}"
        {% endif %}
        >
{% elseif sonata_page.isEditor() %}
    <!-- start rendering, block.id: {{ block.id }} - page.id: {% if block.page is defined %}{{ block.page.id }}{% else %}no related page{% endif %} - name: {{ block.name }} -->
{% endif %}

{% block block %}EMPTY CONTENT{% endblock %}

{% if sonata_page.isInlineEditionOn %}
    </div>
{% elseif sonata_page.isEditor() %}
    <!-- end rendering, block.id: {{ block.id }} - page.id: {% if block.page is defined %}{{ block.page.id }}{% else %}no related page{% endif %}  - name: {{ block.name }} -->
{% endif %}
Fix regression with page detection
Fix regression with page detection
