{% extends 'website/main.template.html.twig' %}
{% block headScripts %}
{% if activeMetrics == enum('ClientEnum::YES') %}
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3636984,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
{% endif %}
{% endblock %}
{% block bodyTag %}
<body id="body" class="home-body" data-theme="{{ isDarkTheme? 'dark':'light' }}"{% if isDarkTheme %} data-hide-deco="{{ hideBgDeco? 1:0 }}"{% endif %}>
{% endblock %}
{% block body %}
<div class="pag-home">
{% for homeSection, value in homeLayoutSections %}
{% if isPageSection(value) %}
{% include 'website/home/section.html.twig' with { section: value } %}
{% else %}
{% if homeSection == 'bannerSection' %}
{% set section = bannerSection %}
{% elseif homeSection == 'searchSection' %}
{% set section = searchSection %}
{% elseif homeSection == 'productCategorySection' %}
{% set section = productCategorySection %}
{% elseif homeSection == 'institutionalSection' %}
{% set section = institutionalSection %}
{% elseif homeSection == 'testimonialSection' %}
{% set section = testimonialSection %}
{% elseif homeSection == 'newsSection' %}
{% set section = newsSection %}
{% elseif homeSection == 'faqSection' %}
{% set section = faqSection %}
{% elseif homeSection == 'socialSection' %}
{% set section = socialSection %}
{% elseif homeSection == 'teacherSection' %}
{% set section = teacherSection %}
{% elseif homeSection == 'stampsSection' %}
{% set section = stampsSection %}
{% endif %}
{% if value.active == enum('ClientEnum::YES') %}
{% set sectionTemplate = getSection(homeSection) %}
{% if sectionTemplate %}
{% include sectionTemplate with {
layout: 'home',
theme: (isDarkTheme ? 'dark':'light')
}%}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% include 'website/includes/pwa.html.twig' %}
</div>
{% block newsletterSection %}
{% endblock %}
{% block socialSection %}
{% endblock %}
{% block institutionalSection %}
{% endblock %}
{% block stampsSection %}
{% endblock %}
{% endblock %}