-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from lserwatka/EZP-21901
Fixed EZP-21901: DemoBundle: Convert all zone templates from legacy code to Twig
- Loading branch information
Showing
5 changed files
with
161 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div class="zone-layout-{{ zone_layout|lower }} row"> | ||
<div class="span12"> | ||
<section class="content-view-block"> | ||
{# Iterating over available blocks in 1st zone. #} | ||
{# Blocks are added in the admin interface. #} | ||
{% if zones[0].blocks %} | ||
{% for block in zones[0].blocks %} | ||
{{ render( | ||
controller( | ||
"ez_page:viewBlock", | ||
{ | ||
'block': block | ||
} | ||
) | ||
) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</div> | ||
<div class="span12"> | ||
<section class="content-view-block"> | ||
{# Iterating over available blocks in 2nd zone. #} | ||
{% if zones[1].blocks %} | ||
{% for block in zones[1].blocks %} | ||
{{ render( controller( "ez_page:viewBlock", {'block': block} ) ) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<div class="zone-layout-{{ zone_layout|lower }} row"> | ||
<div class="span8"> | ||
<section class="content-view-block"> | ||
{# Iterating over available blocks in 1st zone. #} | ||
{# Blocks are added in the admin interface. #} | ||
{% if zones[0].blocks %} | ||
{% for block in zones[0].blocks %} | ||
{{ render( | ||
controller( | ||
"ez_page:viewBlock", | ||
{ | ||
'block': block | ||
} | ||
) | ||
) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</div> | ||
<div class="span4"> | ||
<aside> | ||
<section class="content-view-block content-view-aside"> | ||
{# Iterating over available blocks in 2nd zone. #} | ||
{% if zones[1].blocks %} | ||
{% for block in zones[1].blocks %} | ||
{{ render( controller( "ez_page:viewBlock", {'block': block} ) ) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</aside> | ||
</div> | ||
<div class="span12"> | ||
<section class="content-view-block"> | ||
{# Iterating over available blocks in 3rd zone. #} | ||
{% if zones[2].blocks %} | ||
{% for block in zones[2].blocks %} | ||
{{ render( controller( "ez_page:viewBlock", {'block': block} ) ) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<div class="zone-layout-{{ zone_layout|lower }} row"> | ||
<div class="span4"> | ||
<aside> | ||
<section class="content-view-block content-view-aside"> | ||
{# Iterating over available blocks in 1st zone. #} | ||
{# Blocks are added in the admin interface. #} | ||
{% if zones[0].blocks %} | ||
{% for block in zones[0].blocks %} | ||
{{ render( | ||
controller( | ||
"ez_page:viewBlock", | ||
{ | ||
'block': block | ||
} | ||
) | ||
) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</aside> | ||
</div> | ||
<div class="span8"> | ||
<section> | ||
{# Iterating over available blocks in 2nd zone. #} | ||
{% if zones[1].blocks %} | ||
{% for block in zones[1].blocks %} | ||
{{ render( controller( "ez_page:viewBlock", {'block': block} ) ) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</div> | ||
<div class="span12"> | ||
<section class="content-view-block"> | ||
{# Iterating over available blocks in 3rd zone. #} | ||
{% if zones[2].blocks %} | ||
{% for block in zones[2].blocks %} | ||
{{ render( controller( "ez_page:viewBlock", {'block': block} ) ) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<section class="content-view-block content-view-aside"> | ||
{# Iterating over available blocks in 1st zone. #} | ||
{# Blocks are added in the admin interface. #} | ||
{% if zones[0].blocks %} | ||
{% for block in zones[0].blocks %} | ||
{{ render( | ||
controller( | ||
"ez_page:viewBlock", | ||
{ | ||
'block': block | ||
} | ||
) | ||
) }} | ||
{% if not loop.last %} | ||
<div class="block-separator"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</section> |