{# navigation ul #}
{# - item ( Onze oplossingen ) ul>ul #}
{# - subitem ( [icon] koel en vriescellen ) ul>ul>ul #}
{# - subsubitem (Koelen) #}
{# - subsubitem (vriezen) #}
{# - subsubitem (speciale toepassingen) #}
{# - subitem ( [icon] ProcesKoeling ) ul>ul>ul #}
{# - subsubitem (2-a) #}
{# - subsubitem (2-b) #}
{# - subitem ( [icon] Klimaatbeheersing ) ul>ul>ul #}
{# - subsubitem (3-a) #}
{# - subsubitem (3-b) #}
{# - subitem ( [icon] Klimaatbeheersing ) ul>ul>ul #}
{# - subsubitem (4-a) #}
{# - subsubitem (4-b) #}
{# - subsubitem (4-c) #}
{# - item (branches) ul>ul #}
{# - voedingsindustrie #}
{# - subitem #}
{# - subitem #}
{# - item (actueel) #}
{# - item (projecten) #}
{# - item (over Coolworld) ul>ul #}
{# - subitem #}
{# - subitem #}
{# - subitem #}
{#- item (Werken bij) #}
<ul class="{{ editmode ? "" : "lg:flex font-bold text-base" }}">
{% for mainNavigationItem in pimcore_block('mainNavigationItems', {'limit': 6,'class':"navigation editmode-iterator-styling" }).iterator %}
<li
class="px-5 border-b w-full py-2.5 border-b-gray-200 lg:border-none lg:px-0 lg:py-0 lg:mr-4 lg:border-red xl:mr-6 lg:w-auto"
x-data="{ isOpen: false }"
@mouseover="window.innerWidth > 1024 ? isOpen = true : ''"
@mouseover.away = "isOpen = false"
>
<div class="flex items-center justify-between lg:justify-start">
{{ pimcore_link('link', {'class': "lg:text-white no-underline relative py-2"}) }}
{% if pimcore_block('subnavigationitems').getCount %}
<button
class="ml-2 cursor-pointer text-gray lg:text-white py-1 px-1.5"
:class="{ 'rotate-180': isOpen }"
@click="isOpen = !isOpen"
>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="10"><path fill="currentColor" fill-rule="evenodd" d="m.39 2.36 6.73 6.964c.24.248.575.388.926.388.35 0 .685-.14.925-.388l6.732-6.964a1.206 1.206 0 0 0-.068-1.748l-.114-.09a1.297 1.297 0 0 0-1.669.154L8.045 6.684 2.239.677A1.295 1.295 0 0 0 .456.612 1.205 1.205 0 0 0 .389 2.36Z"/></svg>
</button>
{% endif %}
</div>
{% if editmode or pimcore_block('subnavigationitems').getCount %}
<ul
class="{{ editmode ?: "subnavigation" }} font-normal pt-2.5 lg:z-30 lg:-ml-6 lg:absolute lg:drop-shadow-2xl lg:bg-white lg:rounded-md lg:py-6 lg:pl-6 lg:min-w-[200px]"
x-show="isOpen"
{% if not editmode %}{# Anders verspringt dit block bij het openen van de pagina voordat Alpine wordt uitgevoerd. #}
style="display:none;"
{% endif %}
>
{% for subNavigationItem in pimcore_block('subnavigationitems', {'class':"subnavigation editmode-iterator-styling"}).iterator %}
<li
class="flex flex-col items-center py-3.5 text-gray-900 border-t border-b-gray-200 lg:border-none relative lg:py-0.5 lg:pr-6 "
x-data="{ isOpen: false }"
@mouseover="window.innerWidth > 1024 ? isOpen = true : ''"
@mouseover.away = "isOpen = false"
>
<div class="flex items-center w-full group">
{% if not pimcore_image('inline-icon').isEmpty() or editmode %}
<span class="flex items-center w-8 h-8 mr-2 lg:w-5 lg:h-5 shrink-0">
{{ pimcore_image('inline-icon', {
'class': 'inline-block editor-inline-icon',
"thumbnail": "navigation-icon",
"title": "(optioneel) Icoon",
"width": 32,
"height": 32,
'hidetext': true,
'pictureAttributes':
{
'class': 'block'
}
}) }}
</span>
{% endif %}
<span class="flex items-center justify-between w-full text-gray-900 group-hover:text-blue">
{{ pimcore_link('sublink', {'class': "lg:w-1/2 lg:grow lg:font-normal font-bold lg:mr-4"}) }}
{% if pimcore_block('subsubnavigationitems').getCount %}
<button
class="py-1 px-1.5 mr-1 lg:mr-0 text-gray lg:rotate-0 cursor-pointer group-hover:text-blue"
:class="isOpen ? '-rotate-90' : 'rotate-90 lg:rotate-0'"
@click="isOpen = !isOpen"
>
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="16"><path fill="currentColor" fill-rule="evenodd" d="m2.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L2.406.343A1.206 1.206 0 0 0 .657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L6.731 8 .722 13.807a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/></svg>
</button>
{% endif %}
</span>
</div>
{% if pimcore_block('subsubnavigationitems').getCount %}
<ul
class="subsubnavigation {{ editmode ?: "w-full px-0 mt-3 lg:absolute lg:top-0 bg-white lg:py-6 lg:px-6 lg:-mt-6 lg:translate-x-full lg:rounded-md lg:drop-shadow-2xl" }}"
x-show="isOpen"
>
{% endif %}
{% for subSubNavigationItem in pimcore_block('subsubnavigationitems', {'class':"subsubnavigation editmode-iterator-styling"}).iterator %}
<li class="py-3 border-t border-gray-200 lg:border-none lg:py-0">
{{ pimcore_link('subsublink', {'class': "text-gray-900 hover:text-blue py-0.5 block"}) }}
</li>
{% endfor %}
{% if pimcore_block('subsubnavigationitems').getCount %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
<style>
.editmode-iterator-styling {
background-color: white;
font-family: 'Aller', sans-serif;
padding: 1rem;
}
.editmode-iterator-styling a {
color: #000;
text-decoration: none;
}
.editmode-iterator-styling a:hover {
text-decoration: underline;
}
.editmode-iterator-styling.navigation,
.editmode-iterator-styling.subnavigation,
.editmode-iterator-styling.subsubnavigation {
border: 1px dashed #ccc;
border-radius: 5px;
margin-bottom: 10px;
}
.editmode-iterator-styling.subnavigation,
.editmode-iterator-styling.subsubnavigation {
margin-top: 20px;
}
.inline-icon {
display: inline-block;
}
.editor-inline-icon {
min-width: 125px;
margin-bottom: 10px;
}
.pimcore_block_buttons {
margin: 5px 0 10px 0;
}
/*ul {*/
/* list-style: none;*/
/* padding: 0;*/
/*}*/
</style>