-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.twig
32 lines (30 loc) · 1.3 KB
/
footer.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "twig/_footer.twig" %}
{# using `section_content_list_blocks` instead of `section_content` to render only title and listing contentblocks of the section #}
{% block footer_content %}
<div class="shpr-footer-block section">
{% for section in sections %}
<h2 class="title is-3 is-size-4-mobile is-spaced">{{ section|title|default(__("Contact")) }}</h2>
{% with { 'section': section, 'title_class': 'is-5' }%}
{{ block('section_content_list_blocks', 'section_blocks.twig') }}
{%- endwith -%}
{% endfor %}
</div>
{% endblock %}
{# Example whaving concact form using boltforms extension #}
{# {% block footer_content %}
<div class="shpr-footer-block section">
<div class="columns">
<div class="column">
{% for section in sections %}
<h2 class="title is-3 is-size-4-mobile is-spaced">{{ section|title|default(__("Contact")) }}</h2>
{% with { 'section': section, 'title_class': 'is-5' }%}
{{ block('section_content_list_blocks', 'section_blocks.twig') }}
{%- endwith -%}
{% endfor %}
</div>
<div class="column">
{{ boltform('contact') }}
</div>
</div>
</div>
{% endblock %} #}