customer-riverside/web/modules/custom/riverside_pt/templates/riverside-pt-header.html.twig

48 lines
1.4 KiB
Twig
Raw Normal View History

2026-05-14 20:23:54 -08:00
<header class="rpt-header" role="banner">
<div class="rpt-header__inner">
<a class="rpt-header__brand" href="{{ home_url }}">{{ site_name }}</a>
<nav class="rpt-header__nav" id="rpt-main-nav" aria-label="Main navigation">
<ul class="rpt-header__list">
{% for item in menu_items %}
{% if not item.is_cta %}
<li class="rpt-header__item">
<a class="rpt-header__link{% if current_path == item.url %} is-active{% endif %}"
href="{{ item.url }}">{{ item.title }}</a>
</li>
{% endif %}
{% endfor %}
2026-05-16 08:52:21 -08:00
{% set has_cta = false %}
2026-05-14 20:23:54 -08:00
{% for item in menu_items %}
2026-05-16 08:52:21 -08:00
{% if item.is_cta %}{% set has_cta = true %}{% endif %}
2026-05-14 20:23:54 -08:00
{% endfor %}
2026-05-16 08:52:21 -08:00
{% if has_cta %}
<div class="rpt-header__items--cta">
{% for item in menu_items %}
{% if item.is_cta %}
<li class="rpt-header__item rpt-header__item--cta">
<a class="rpt-header__cta" href="{{ item.url }}">{{ item.title }}</a>
</li>
{% endif %}
{% endfor %}
</div>
{% endif %}
2026-05-14 20:23:54 -08:00
</ul>
</nav>
<button class="rpt-header__hamburger"
aria-expanded="false"
aria-controls="rpt-main-nav"
aria-label="Toggle navigation">
<span></span>
<span></span>
<span></span>
</button>
</div>
</header>