{% if wireFrame.wireFrameFile is defined and wireFrame.wireFrameFile != null %}
{% set wireFrameFile = wireFrame.wireFrameFile %}
{% else %}
{% set wireFrameFile = 'eshopLayoutBasic.html.twig' %}
{% endif %}
{% extends wireFrameFile %}
{% block page_contents %}
{#{% if homePage is defined and homePage is not null and homePage.seoTitle is defined and homePage.seoTitle is not null %}#}
{# {% block title %}{{ homePage.seoTitle }}{% endblock %}#}
{# {% block description %}{{ homePage.seoDescription }}{% endblock %}#}
{#{% elseif seoData.seoTitle is defined and seoData.seoTitle != '' %}#}
{# {% block title2 %}{{ seoData.seoTitle }}{% endblock %}#}
{# {% block description2 %}{{ seoData.seoDescription2 }}{% endblock %}#}
{#{% endif %}#}
{% if eshop.isIsVirtualReality is defined and eshop.isIsVirtualReality == true %}
{% block head %}
<!-- X3D requirements -->
<script type='text/javascript' src='{{ asset('assets/x3dom/x3dom.js') }}'> </script>
<!-- X_ICTE requirements -->
<link rel="stylesheet" type="text/css" href="https://create3000.github.io/code/x_ite/latest/dist/x_ite.css"/>
<script type="text/javascript" src="https://create3000.github.io/code/x_ite/latest/dist/x_ite.min.js"></script>
{% endblock %}
{% endif %}
{# bluf #}
<div class="eshopHome2">
{% if homePage is defined and homePage.webPageContent is defined %}
{{ homePage.webPageContent|raw }}
{% endif %}
</div>
<div class="categories categoriesHome">
{% for cat in childNodes %}
{% if cat.isHidden != true and cat.isActive %}
<div class="categoryBox2 categoryBoxHome">
<div class="categoryBox">
{% if cat.image1 != "" %}
{% if 'http' in cat.image1 %}
{% set imagePath = cat.image1 %}
{% set imageThumbPath = cat.image1 %}
{% else %}
{% set imagePath = 'users/' ~ user.userName ~ '/images/' ~ cat.image1 %}
{% set imageThumbPath = 'users/' ~ user.userName ~ '/images/' ~ cat.image1 %}
{% endif %}
<!-- we display image thumb -->
<div class="categoryThumb categoryThumbHome">
<a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/category/{{ cat.categoryId }}">
<img src="{{ asset(imageThumbPath) }}" alt="Category Image" border="0" class="categoryThumbImg">
</a>
</div>
{% endif %}
<div class="categoryTitle categoryTitleHome">
<a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/category/{{ cat.categoryId }}" class="categoryLink">
{{ cat.categoryName }}
</a>
</div>
</div>
{% set subCats = [] %}
{% set subNodes = cat.children %}
{% for subNode in subNodes %}
{% if subNode.eshopId == eshop.eshopId and subNode.isActive %}
{% set subCats = subCats|merge([subNode]) %}
{% endif %}
{% endfor %}
{% if subCats|length > 0 %}
<div class="subCategoryBox2">
{% for subCat in subCats %}
<div class="subCategoryLabel">
<a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/category/{{ subCat.categoryId }}" class="subCategoryLink">{{ subCat.categoryName }}</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
<br><br>
{% endblock %}