123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- {% extends 'partials/base.html.twig' %}
- {% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
- {% import _self as macro %}
- {% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
- {% block javascripts %}
- {% if show_onpage_menu %}
- {% do assets.add('theme://js/singlepagenav.min.js') %}
- {% endif %}
- {{ parent() }}
- {% endblock %}
- {% block bottom %}
- {{ parent() }}
- {% endblock %}
- {% block header_navigation %}
- {% if show_onpage_menu %}
- <ul class="navigation">
- {% for module in page.collection() if module.template == 'blog' %}
- {% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
- <li><a class="{{ current_module }}" href="#{{ macro.pageLinkName(module.menu)|hyphenize }}">{{ module.menu }}</a></li>
- {% endfor %}
- {% for mitem in site.menu %}
- <li>
- <a {% if mitem.class %}class="{{ mitem.class }}"{% endif %} href="{{ mitem.url }}">
- {% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
- {{ mitem.text }}
- </a>
- </li>
- {% endfor %}
- </ul>
- {% else %}
- {{ parent() }}
- {% endif %}
- {% endblock %}
- {% block hero %}
- {% for module in page.collection() if module.template == 'modular/hero' %}
- <div id="{{ macro.pageLinkName(module.menu) }}"></div>
- {{ module.content|raw }}
- {% endfor %}
- {% endblock %}
- {% block body %}
- <section id="{{ macro.pageLinkName(page.menu) }}">
- {{page.content}}
- </section>
- {% for module in page.collection() if module.template == 'blog' %}
- <section id="{{ macro.pageLinkName(module.menu)|hyphenize }}">
- <h2>{{ module.title }}</h2>
- <div class="arrow"></div>
- <div>
- {{ module.content|raw }}
- {% for child in module.collection %}
- {% set gal = child.header.blog.config %}
- <section id="{{ macro.pageLinkName(child.menu)|hyphenize }}">
- {% if child.title %}
- <div class="title">
- <h3>{{ child.title }}</h3>
- </div>
- {% endif %}
- {% if child.content %}
- <div class="content">
- {{ child.content }}
- </div>
- {% endif %}
- <div class="images">
- {% for images in child.media.images %}
- {{ images.html }}
- <div class="content">
- {{ child.content }}
- </div>
- {% endfor %}
- </div>
- {% if gal %}
- <div class="owl-carousel">
- {% for item in child.collection %}
- <div class="galerie">
- {% for images in item.media.images %}
- <div class="images">
- {{ images.html }}
- </div>
- {% endfor %}
- <div class="content">
- {{ item.content }}
- </div>
- </div>
- {% endfor %}
- </div>
- {% else %}
- {% for item in child.collection %}
- <h4>{{ item.title }}</h4>
- {{ item.content }}
- <div class="images">
- {% for images in item.media.images %}
- {{ images.html }}
- {% endfor %}
- </div>
- {% endfor %}
- {% endif %}
- </section>
- {% endfor %}
- </div>
- </section>
- {% endfor %}
- {% endblock %}
|