GravTheme/templates/partials/header.html.twig

100 lines
5.9 KiB
Plaintext
Raw Normal View History

2023-09-02 11:11:48 +00:00
{% macro menu(menuid,pages) %}
<!-- UNSEARCHABLE -->
<div id="{{ menuid }}">
<div id="{{ menuid }}_container">
<div class="hamburger-button hamburger-component">
<div>
<div>
<div class="hamburger-bar"></div>
<div class="hamburger-bar"></div>
<div class="hamburger-bar"></div>
</div>
</div>
</div>
<div class="hamburger-menu-background-container hamburger-component">
<div class="hamburger-menu-background menu-mobile menu-mobile-animated hidden">
<div class="hamburger-menu-close-button"><span>&times;</span></div>
</div>
</div>
<ul class="menu-mobile-animated hidden">
{%- for page in pages.children.visible %}{% set active_page = (page.active or page.activeChild) ? 'imMnMnCurrent' : '' %}<li class="{% if page.isFirst() %} imMnMnFirst {% elseif page.isLast() %} imMnMnLast {% else %} imMnMnMiddle {% endif %} {% if page.children.visible.count > 0 %} imLevel {% else %} imPage {% endif %} {{ active_page }}">
2023-09-12 06:11:02 +00:00
<a class="main-nav-label" href="{% if page.routable %}{{ page.url(true)|e }}{% else %}#{% endif %}" {% if page.header.external_url %}target="_blank"{% endif %}>{{ page.menu }}</a>
2023-09-02 11:11:48 +00:00
{%- if page.children.visible.count > 0 %}
<ul data-original-position="open-bottom" class="open-bottom">
{%- for cpage in page.children.visible %}
{% set active_cpage = (cpage.active or cpage.activeChild) ? 'imMnMnCurrent' : '' %}
<li class="{% if cpage.isFirst() %}imMnMnFirst{% elseif cpage.isLast() %}imMnMnLast{% else %}imMnMnMiddle{% endif %} imLevel {{ active_cpage }}">
2023-09-12 06:11:02 +00:00
<a class="sub-nav-label" href="{{ cpage.url(true)|e }}" {% if cpage.header.external_url %}target="_blank"{% endif %}>{{ cpage.menu }}</a>
2023-09-02 11:11:48 +00:00
</li>
{% endfor -%}
</ul>
{% endif -%}
</li>{% endfor -%}
</ul>
</div>
</div><!-- UNSEARCHABLE END -->
{% endmacro %}
<header id="imHeader">
<h1 class="imHidden">4Creative</h1>
<div id="imHeaderObjects">
<div id="imHeader_imObjectImage_02_wrapper" class="template-object-wrapper">
<div id="imHeader_imObjectImage_02">
<div id="imHeader_imObjectImage_02_container">
<img loading="lazy" alt="4Creative Logo" style="width: 180px; height: 180px; position: relative; left: 0px; top: 0px; user-select: none;" width="180" height="180" unselectable="on" src="{{ media['image://4Creative-logo.png'].url|e }}">
</div>
2023-09-02 11:11:48 +00:00
</div>
</div>
<div id="imHeader_imMenuObject_04_wrapper" class="template-object-wrapper">
{{ _self.menu('imHeader_imMenuObject_04',pages) }}
<script>
var imHeader_imMenuObject_04_settings = {
'menuId': 'imHeader_imMenuObject_04',
'responsiveMenuEffect': 'reveal',
'responsiveMenuLevelOpenEvent': 'mouseover',
'animationDuration': 1000,
}
x5engine.boot.push(function () { x5engine.initMenu(imHeader_imMenuObject_04_settings) });
$(function () { $('#imHeader_imMenuObject_04_container ul li').not('.imMnMnSeparator').each(function () { var $this = $(this), timeout = 0; $this.on('mouseenter', function () { if ($(this).parents('#imHeader_imMenuObject_04_container-menu-opened').length > 0) return; clearTimeout(timeout); setTimeout(function () { $this.children('ul, .multiple-column').stop(false, false).fadeIn(); }, 250); }).on('mouseleave', function () { if ($(this).parents('#imHeader_imMenuObject_04_container-menu-opened').length > 0) return; timeout = setTimeout(function () { $this.children('ul, .multiple-column').stop(false, false).fadeOut(); }, 250); }); }); });
</script>
</div>
<div id="imHeader_imObjectTitle_05_wrapper" class="template-object-wrapper">
<div id="imHeader_imObjectTitle_05"><span id="imHeader_imObjectTitle_05_text">Weltenverbund im Opensim</span></div>
</div>
<div id="imHeader_imObjectTitle_06_wrapper" class="template-object-wrapper">
<div id="imHeader_imObjectTitle_06"><span id="imHeader_imObjectTitle_06_text">Weltenverbund im Opensim</span></div>
</div>
<div id="imHeader_imObjectTitle_07_wrapper" class="template-object-wrapper">
<div id="imHeader_imObjectTitle_07"><span id="imHeader_imObjectTitle_07_text">Weltenverbund im Opensim</span></div>
</div>
</div>
</header>
<div id="imStickyBarContainer">
<div id="imStickyBarGraphics"></div>
<div id="imStickyBar">
<div id="imStickyBarObjects">
<div id="imStickyBar_imMenuObject_01_wrapper" class="template-object-wrapper">
{{ _self.menu('imStickyBar_imMenuObject_01',pages) }}
<script>
var imStickyBar_imMenuObject_01_settings = {
'menuId': 'imStickyBar_imMenuObject_01',
'responsiveMenuEffect': 'slide',
'responsiveMenuLevelOpenEvent': 'mouseover',
'animationDuration': 1000,
}
x5engine.boot.push(function () { x5engine.initMenu(imStickyBar_imMenuObject_01_settings) });
$(function () { $('#imStickyBar_imMenuObject_01_container ul li').not('.imMnMnSeparator').each(function () { var $this = $(this), timeout = 0; $this.on('mouseenter', function () { if ($(this).parents('#imStickyBar_imMenuObject_01_container-menu-opened').length > 0) return; clearTimeout(timeout); setTimeout(function () { $this.children('ul, .multiple-column').stop(false, false).fadeIn(); }, 250); }).on('mouseleave', function () { if ($(this).parents('#imStickyBar_imMenuObject_01_container-menu-opened').length > 0) return; timeout = setTimeout(function () { $this.children('ul, .multiple-column').stop(false, false).fadeOut(); }, 250); }); }); });
</script>
</div>
<div id="imStickyBar_imObjectImage_02_wrapper" class="template-object-wrapper">
<div id="imStickyBar_imObjectImage_02">
<img loading="lazy" alt="4Creative Logo transparent" style="width: 110px; height: 64px; position: relative; left: 0px; top: 0px; user-select: none;" width="110" height="64" unselectable="on" src="{{ media['image://4Creative-logo-transp.png'].url|e }}">
2023-09-02 11:11:48 +00:00
</div>
</div>
</div>
</div>
</div>
<a class="imHidden" href="#imGoToCont" title="Überspringen Sie das Hauptmenü">Direkt zum Seiteninhalt</a>
<div id="imSideBar">
<div id="imSideBarObjects"></div>
</div>