<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* partials/variants/header_custom.html.twig */
class __TwigTemplate_14a3fcd575fa7a802327c70f2bc9d146 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'header_class' => [$this, 'block_header_class'],
'notificationsbar' => [$this, 'block_notificationsbar'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/variants/header_custom.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/variants/header_custom.html.twig"));
// line 1
echo "<header class=\"header ";
$this->displayBlock('header_class', $context, $blocks);
echo "\">
<div class=\"line-1\">
<div class=\"logo-mini\">
<a ";
// line 4
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_link", ""))) {
echo " href=\"/\" ";
} else {
}
echo " aria-label=\"";
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("default_meta_page_name", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "getLocale", [], "method", false, false, false, 4))), "html", null, true);
echo "\">
";
// line 6
echo " ";
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_mobile", ""))) {
// line 7
echo " <img src=\"";
echo twig_escape_filter($this->env, ((array_key_exists("CDN_URL", $context)) ? (_twig_default_filter((isset($context["CDN_URL"]) || array_key_exists("CDN_URL", $context) ? $context["CDN_URL"] : (function () { throw new RuntimeError('Variable "CDN_URL" does not exist.', 7, $this->source); })()))) : ("")), "html", null, true);
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_mobile", "")), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("default_meta_page_name", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "getLocale", [], "method", false, false, false, 7))), "html", null, true);
echo " Logo\" class=\"d-lg-none\">
";
}
// line 9
echo " ";
// line 10
echo " <img
src=\"";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("custom/logomenu_contala_scroll.svg", "global"), "html", null, true);
echo "\"
alt=\"logo-mini\"
";
// line 13
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_mobile", ""))) {
echo " class=\"d-none d-lg-block\"";
}
echo " >
</a>
</div>
";
// line 39
echo "
";
// line 40
$this->loadTemplate("partials\\variants\\explore-watchtv.html.twig", "partials/variants/header_custom.html.twig", 40)->display($context);
// line 41
echo "
<div class=\"weather\"></div>
<div class=\"menu-top2\">
<ul class=\"navbar-nav\">
\t\t\t\t\t ";
// line 46
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageContentController::RenderMenu", [], ["menu" => "menutop2"]));
echo "
\t\t\t\t </ul>
</div>
";
// line 49
$this->loadTemplate("partials\\elements\\languages.twig", "partials/variants/header_custom.html.twig", 49)->display($context);
// line 50
echo " ";
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("results_pages", ""))) {
// line 51
echo " <div class=\"search\">
<a href=\"#\" class=\"js-search-bt\" aria-label=\"";
// line 52
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("acess_to_search", [], "custom"));
echo "\">
";
// line 53
echo $this->extensions['App\Twig\AppExtension']->fileGetContents($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("custom/search-icon.svg", "global"));
echo "
</a>
</div>
";
}
// line 62
echo " <div class=\"col-menu-mobile\">
<button class=\"js-menumobile-hamburger\" aria-label=\"menu button\" type=\"button\">
<span class=\"hamburger-box\">
<span class=\"hamburger-inner\"></span>
</span>
</button>
</div>
</div>
";
// line 70
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("notificationsbar_page", ""))) {
// line 71
echo " <div class=\"line-2\">
";
// line 72
$this->displayBlock('notificationsbar', $context, $blocks);
// line 75
echo " </div>
";
}
// line 77
echo "\t<div class=\"";
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("container_fluid", ""))) {
echo "container-fluid";
} else {
echo "container";
}
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("showdesktophamburguermenu", ""))) {
echo " position-relative align-items-center";
}
echo " last-line\">
\t\t<div class=\"grid\">
<div class=\"logo\">
<a ";
// line 81
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_link", ""))) {
echo " href=\"/\" ";
} else {
}
echo " aria-label=\"";
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("default_meta_page_name", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 81, $this->source); })()), "request", [], "any", false, false, false, 81), "getLocale", [], "method", false, false, false, 81))), "html", null, true);
echo "\">
";
// line 85
echo " <img src=\"";
echo twig_escape_filter($this->env, ((array_key_exists("CDN_URL", $context)) ? (_twig_default_filter((isset($context["CDN_URL"]) || array_key_exists("CDN_URL", $context) ? $context["CDN_URL"] : (function () { throw new RuntimeError('Variable "CDN_URL" does not exist.', 85, $this->source); })()))) : ("")), "html", null, true);
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo", ""), $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("none.png", "global")), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("default_meta_page_name", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 85, $this->source); })()), "request", [], "any", false, false, false, 85), "getLocale", [], "method", false, false, false, 85))), "html", null, true);
echo " Logo\" class=\"logo__default\" >
<img src=\"";
// line 86
echo twig_escape_filter($this->env, ((array_key_exists("CDN_URL", $context)) ? (_twig_default_filter((isset($context["CDN_URL"]) || array_key_exists("CDN_URL", $context) ? $context["CDN_URL"] : (function () { throw new RuntimeError('Variable "CDN_URL" does not exist.', 86, $this->source); })()))) : ("")), "html", null, true);
echo twig_escape_filter($this->env, _twig_default_filter(_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_transparent_header", ""), $this->extensions['App\Twig\AppExtension']->getConfig("logo", "")), $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("none.png", "global")), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("default_meta_page_name", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "getLocale", [], "method", false, false, false, 86))), "html", null, true);
echo " Logo\" class=\"logo__transparent\">
</a>
</div>
";
// line 91
$this->loadTemplate("partials\\variants\\explore-watchtv.html.twig", "partials/variants/header_custom.html.twig", 91)->display($context);
// line 92
echo "
<div class=\"menu-top2\">
<ul class=\"navbar-nav\">
\t\t\t\t\t ";
// line 95
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageContentController::RenderMenu", [], ["menu" => "menutop2"]));
echo "
\t\t\t\t </ul>
</div>
\t\t</div>
\t</div>
<div class=\"menu-mobile\">
";
// line 102
if ((_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("menubackgroundvideo", "")) && ($this->extensions['App\Twig\AppExtension']->getConfig("desktophamburguermenustyle", "") == "full_width_menu"))) {
// line 103
echo " <div class=\"underlay\">
<video autoplay muted loop playsinline src=\"";
// line 104
echo twig_escape_filter($this->env, ((isset($context["CDN_URL"]) || array_key_exists("CDN_URL", $context) ? $context["CDN_URL"] : (function () { throw new RuntimeError('Variable "CDN_URL" does not exist.', 104, $this->source); })()) . $this->extensions['App\Twig\AppExtension']->getConfig("menubackgroundvideo", "")), "html", null, true);
echo "\" type=\"video/mp4\" class=\"d-none d-lg-block\"></video>
<div class=\"mask d-none d-lg-block\"></div>
</div>
";
}
// line 108
echo " <div class=\"mwrapper\">
<ul class=\"navbar-nav\">
";
// line 110
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageContentController::RenderMenu", [], ["menu" => "menumobile"]));
echo "
</ul>
</div>
";
// line 113
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("contact_pages", ""))) {
// line 114
echo " ";
$context["contactpage"] = $this->extensions['App\Twig\AppExtension']->getPageInfo(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 114, $this->source); })()), "request", [], "any", false, false, false, 114), "locale", [], "any", false, false, false, 114), $this->extensions['App\Twig\AppExtension']->getConfig("contact_pages", ""));
// line 115
echo " <div class=\"btn-fixed-bottom\">
<a href=\"";
// line 116
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contactpage"]) || array_key_exists("contactpage", $context) ? $context["contactpage"] : (function () { throw new RuntimeError('Variable "contactpage" does not exist.', 116, $this->source); })()), "url", [], "any", false, false, false, 116), "html", null, true);
echo "\">
<span>";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["contactpage"]) || array_key_exists("contactpage", $context) ? $context["contactpage"] : (function () { throw new RuntimeError('Variable "contactpage" does not exist.', 117, $this->source); })()), "title", [], "any", false, false, false, 117), "html", null, true);
echo "</span>
</a>
</div>
";
}
// line 121
echo "
";
// line 122
if ((twig_length_filter($this->env, (isset($context["alternateUrls"]) || array_key_exists("alternateUrls", $context) ? $context["alternateUrls"] : (function () { throw new RuntimeError('Variable "alternateUrls" does not exist.', 122, $this->source); })())) > 1)) {
// line 123
echo " <div class=\"lang d-flex\">
";
// line 124
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["alternateUrls"]) || array_key_exists("alternateUrls", $context) ? $context["alternateUrls"] : (function () { throw new RuntimeError('Variable "alternateUrls" does not exist.', 124, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["alternateUrl"]) {
// line 125
echo " <a class=\"";
if ((twig_get_attribute($this->env, $this->source, $context["alternateUrl"], "language_code", [], "any", false, false, false, 125) == (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 125, $this->source); })()))) {
echo "active";
}
echo "\" href=\"";
echo twig_get_attribute($this->env, $this->source, $context["alternateUrl"], "url", [], "any", false, false, false, 125);
echo "\">
";
// line 126
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["alternateUrl"], "language_code", [], "any", true, true, false, 126)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["alternateUrl"], "language_code", [], "any", false, false, false, 126))) : ("")), "html", null, true);
echo "
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['alternateUrl'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 129
echo " </div>
";
}
// line 131
echo " </div>
<div class=\"explore-pannel\" data-api-url=\"";
// line 133
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_explore_options");
echo "?locale=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 133, $this->source); })()), "request", [], "any", false, false, false, 133), "locale", [], "any", false, false, false, 133), "html", null, true);
echo "\">
<div class=\"explore-pannel-body h-100 custom-scroll\">
<div class=\"container\">
<div class=\"row h-100 py-lg-5\">
<div class=\"col-auto col-explore-pannel-body-logowidth d-none d-lg-block\">
<div class=\"explore-pannel-body-logowidth\"></div>
</div>
<div class=\"col col-search\">
<form id=\"formexplore\" class=\"explore-pannel-body-generalsearch\" action=\"/pt/pesquisa\" method=\"get\">
<div>
<button id=\"btn_explore_close\" class=\"trigger-explore js-explore-bt\">
<i class=\"fa-solid fa-xmark\"></i>
<span>";
// line 145
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close", [], "custom"));
echo "</span>
</button>
</div>
";
// line 149
echo " <div class=\"form-group search-themes\">
<label for=\"searchbox\" class=\"title-from-group\">";
// line 150
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_explore_search", [], "custom"));
echo "</label>
<div class=\"wrapp-searchbox\">
<select id=\"searchbox\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("placeholder_explore_search", [], "custom"), "html", null, true);
echo "\">
";
// line 162
echo " ";
// line 163
echo " </select>
</div>
</div>
";
// line 167
echo "
";
// line 169
echo " <div class=\"form-group themes\">
<div class=\"title-from-group d-flex justify-content-between align-items-center\">
<span>";
// line 171
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("main_themes", [], "custom"));
echo "</span>
<button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('themes[]')\">
";
// line 173
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear", [], "custom"), "Reset filters"), "html", null, true);
echo "
</button>
</div>
<div id=\"write-themes-box\">
";
// line 183
echo " </div>
</div>
";
// line 186
echo " <div class=\"form-group sub-themes\" style=\"display: none;\">
<div class=\"title-from-group d-flex justify-content-between align-items-center\">
<span>";
// line 188
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sub_themes", [], "custom"));
echo "</span>
<button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('subthemes[]')\">
";
// line 190
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear", [], "custom"), "Reset filters"), "html", null, true);
echo "
</button>
</div>
<div id=\"write-subthemes-box\">
</div>
</div>
<div class=\"separator\"></div>
";
// line 198
echo " ";
// line 199
echo " <div class=\"form-group tags-group\">
<div class=\"title-from-group\">
";
// line 201
echo html_entity_decode(_twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_explore_tag_search", [], "custom"), "Procura algo mais específico?"));
echo "
</div>
<div class=\"wrapp-searchbox\">
<select id=\"explore-tags\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"";
// line 204
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("placeholder_explore_tag_search", [], "custom"), "Selecione aqui as tags"), "html", null, true);
echo "\"></select>
</div>
</div>
<div class=\"form-group selected-tags\">
<div class=\"title-from-group d-flex justify-content-between align-items-center\">
<span>";
// line 209
echo html_entity_decode(_twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("selected_tags", [], "custom"), "Tag(s)"));
echo "</span>
<button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('tags[]')\">
";
// line 211
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear", [], "custom"), "Reset filters"), "html", null, true);
echo "
</button>
</div>
<div id=\"write-tags-box\"></div>
</div>
<div class=\"separator\"></div>
";
// line 218
echo " ";
$context["filterKeys"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 218, $this->source); })()), "request", [], "any", false, false, false, 218), "query", [], "any", false, false, false, 218), "get", [0 => "content_type"], "method", false, false, false, 218);
// line 219
echo " <div class=\"form-group content_type\">
<div class=\"title-from-group\">";
// line 220
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("content_types", [], "custom"));
echo "</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"noticiais\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"noticiais\"
name=\"content_type[]\"
value=\"news\"
";
// line 229
if (((array_key_exists("filterKeys", $context) && twig_test_iterable((isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 229, $this->source); })()))) && twig_in_filter("news", (isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 229, $this->source); })())))) {
echo " checked ";
}
// line 230
echo " >Notícias
</label>
</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"news_reports\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"news_reports\"
name=\"content_type[]\"
value=\"news_reports\"
";
// line 241
if (((array_key_exists("filterKeys", $context) && twig_test_iterable((isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 241, $this->source); })()))) && twig_in_filter("news_reports", (isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 241, $this->source); })())))) {
echo " checked ";
}
// line 242
echo " >Reportagens
</label>
</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"programs\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"programs\"
name=\"content_type[]\"
value=\"programs\"
";
// line 253
if (((array_key_exists("filterKeys", $context) && twig_test_iterable((isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 253, $this->source); })()))) && twig_in_filter("programs", (isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 253, $this->source); })())))) {
echo " checked ";
}
// line 254
echo " >Programas
</label>
</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"event\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"event\"
name=\"content_type[]\"
value=\"event\"
";
// line 265
if (((array_key_exists("filterKeys", $context) && twig_test_iterable((isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 265, $this->source); })()))) && twig_in_filter("event", (isset($context["filterKeys"]) || array_key_exists("filterKeys", $context) ? $context["filterKeys"] : (function () { throw new RuntimeError('Variable "filterKeys" does not exist.', 265, $this->source); })())))) {
echo " checked ";
}
// line 266
echo " >Eventos
</label>
</div>
</div>
<div class=\"explore-pannel-body-generalsearch-footer\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<div class=\"actions\">
<button type=\"button\" class=\"reset2 js-reset-filters\" onclick=\"clearAllContent()\">
";
// line 276
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear_all_filters", [], "custom"));
echo "
</button>
<button type=\"submit\" class=\"btn-secondary\">";
// line 278
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("apply", [], "custom"));
echo "</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
";
// line 291
if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("results_pages", ""))) {
// line 292
echo " ";
$context["searchpage"] = $this->extensions['App\Twig\AppExtension']->getPageInfo(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 292, $this->source); })()), "request", [], "any", false, false, false, 292), "locale", [], "any", false, false, false, 292), $this->extensions['App\Twig\AppExtension']->getConfig("results_pages", ""));
// line 293
echo " <div class=\"search-pannel\">
<div class=\"search-pannel-body container\">
<div class=\"row\">
<div class=\"col-auto d-none d-lg-block\">
<div class=\"search-pannel-body-logowidth\"></div>
</div>
<div class=\"col col-search\">
<form action=\"";
// line 300
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["searchpage"] ?? null), "url", [], "any", true, true, false, 300)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["searchpage"] ?? null), "url", [], "any", false, false, false, 300), "#")) : ("#")), "html", null, true);
echo "\" class=\"search-pannel-body-generalsearch\">
<input type=\"search\" name=\"p\" placeholder=\"";
// line 301
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("placeholder_search", [], "custom"));
echo "\" class=\"form-control\">
<button id=\"btn-search-submit\" type=\"submit\" class=\"btn btn-secondary\" disabled>
<span>";
// line 303
echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_btn", [], "custom"));
echo "</span>
</button>
<button id=\"btn-search-close\" class=\"js-search-bt\">
<i class=\"fa-solid fa-xmark\"></i>
<span>Fechar</span>
</button>
</form>
</div>
</div>
</div>
</div>
";
}
// line 316
echo "</header>
<script>
// Search field validation (keep this inline as it's template-specific)
document.addEventListener('DOMContentLoaded', function () {
const searchField = document.getElementsByName('p')[0];
const searchBtn = document.getElementById('btn-search-submit');
if (searchField) {
// Prevenir Enter apenas se o campo estiver vazio
searchField.addEventListener('keypress', function (event) {
if (event.key === 'Enter') {
if (searchField.value.trim() === '') {
event.preventDefault();
}
// Se tiver conteúdo, deixa o submit acontecer naturalmente
}
});
// Controlar o estado do botão
searchField.addEventListener('input', function () {
if (searchBtn) {
if (searchField.value.trim() !== '') {
searchBtn.disabled = false;
} else {
searchBtn.disabled = true;
}
}
});
}
});
</script>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 1
public function block_header_class($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_class"));
echo "hs_1";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 72
public function block_notificationsbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "notificationsbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "notificationsbar"));
// line 73
echo " ";
$this->loadTemplate("partials\\elements\\notifications.twig", "partials/variants/header_custom.html.twig", 73)->display($context);
// line 74
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "partials/variants/header_custom.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 627 => 74, 624 => 73, 614 => 72, 595 => 1, 553 => 316, 537 => 303, 532 => 301, 528 => 300, 519 => 293, 516 => 292, 514 => 291, 498 => 278, 493 => 276, 481 => 266, 477 => 265, 464 => 254, 460 => 253, 447 => 242, 443 => 241, 430 => 230, 426 => 229, 414 => 220, 411 => 219, 408 => 218, 399 => 211, 394 => 209, 386 => 204, 380 => 201, 376 => 199, 374 => 198, 364 => 190, 359 => 188, 355 => 186, 351 => 183, 344 => 173, 339 => 171, 335 => 169, 332 => 167, 327 => 163, 325 => 162, 321 => 152, 316 => 150, 313 => 149, 307 => 145, 290 => 133, 286 => 131, 282 => 129, 273 => 126, 264 => 125, 260 => 124, 257 => 123, 255 => 122, 252 => 121, 245 => 117, 241 => 116, 238 => 115, 235 => 114, 233 => 113, 227 => 110, 223 => 108, 216 => 104, 213 => 103, 211 => 102, 201 => 95, 196 => 92, 194 => 91, 183 => 86, 175 => 85, 166 => 81, 151 => 77, 147 => 75, 145 => 72, 142 => 71, 140 => 70, 130 => 62, 123 => 53, 119 => 52, 116 => 51, 113 => 50, 111 => 49, 105 => 46, 98 => 41, 96 => 40, 93 => 39, 83 => 13, 78 => 11, 75 => 10, 73 => 9, 64 => 7, 61 => 6, 52 => 4, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<header class=\"header {% block header_class %}hs_1{% endblock %}\">
<div class=\"line-1\">
<div class=\"logo-mini\">
<a {% if get_config('logo_link','')|default %} href=\"/\" {% else %}{% endif %} aria-label=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }}\">
{# {{ file_get_contents(asset('custom/mini-norte.svg', 'global'))|raw }} #}
{% if get_config('logo_mobile','')|default %}
<img src=\"{{CDN_URL|default}}{{get_config('logo_mobile','')|default}}\" alt=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }} Logo\" class=\"d-lg-none\">
{% endif %}
{# <img src=\"{{CDN_URL|default}}{{get_config('logomini_portugal','')|default(asset('none.png', 'global'))}}\" alt=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }} Logo\"{% if get_config('logo_mobile','')|default %} class=\"d-none d-lg-block\"{% endif %} > #}
<img
src=\"{{ asset('custom/logomenu_contala_scroll.svg', 'global') }}\"
alt=\"logo-mini\"
{% if get_config('logo_mobile','')|default %} class=\"d-none d-lg-block\"{% endif %} >
</a>
</div>
{# OLD TERRITORY #}
{# <div class=\"territory\">#}
{# <span class=\"primary-300\">#}
{# <a href=\"/\">{{ 'conta_la'|trans ({},'custom' )|html_entity_decode|raw }}</a>#}
{# </span>#}
{# <div class=\"select-territory \">#}
{# <div class=\"selected js-select-territory\">#}
{# <div>Portugal</div>#}
{# <div class=\"arrow\">#}
{# {{ file_get_contents(asset('custom/arrow-down-icon.svg', 'global'))|raw }}#}
{# </div>#}
{# </div>#}
{# <ul class=\"card card-blur options\">#}
{# <li><a href=\"#\">Portugal</a></li>#}
{# <li><a href=\"#\">Norte</a></li>#}
{# <li><a href=\"#\">Centro</a></li>#}
{# <li><a href=\"#\">Sul</a></li>#}
{# <li><a href=\"#\">Rural</a></li>#}
{# </ul>#}
{# </div>#}
{# </div>#}
{% include \"partials\\\\variants\\\\explore-watchtv.html.twig\" %}
<div class=\"weather\"></div>
<div class=\"menu-top2\">
<ul class=\"navbar-nav\">
\t\t\t\t\t {{ render(controller('App\\\\Controller\\\\PageContentController::RenderMenu',[], {'menu': \"menutop2\"}) ) }}
\t\t\t\t </ul>
</div>
{% include \"partials\\\\elements\\\\languages.twig\" %}
{% if get_config('results_pages', '')|default %}
<div class=\"search\">
<a href=\"#\" class=\"js-search-bt\" aria-label=\"{{ 'acess_to_search'|trans ({},'custom' )|html_entity_decode|raw }}\">
{{ file_get_contents(asset('custom/search-icon.svg', 'global'))|raw }}
</a>
</div>
{% endif %}
{# TEMPORARY REMOVAL FOR v1.0 #}
{# {% if app.user is not null and app.user is instanceof('App\\\\Admin\\\\Entity\\\\StdWebUsers') %}#}
{# <div class=\"favorits\">Favoritos</div>#}
{# {% endif %}#}
{# {% include \"partials\\\\elements\\\\webusers.twig\" %}#}
<div class=\"col-menu-mobile\">
<button class=\"js-menumobile-hamburger\" aria-label=\"menu button\" type=\"button\">
<span class=\"hamburger-box\">
<span class=\"hamburger-inner\"></span>
</span>
</button>
</div>
</div>
{% if get_config('notificationsbar_page', '')|default %}
<div class=\"line-2\">
{% block notificationsbar %}
{% include \"partials\\\\elements\\\\notifications.twig\" %}
{% endblock %}
</div>
{% endif %}
\t<div class=\"{% if get_config('container_fluid','')|default %}container-fluid{% else %}container{% endif %}{% if get_config('showdesktophamburguermenu','')|default %} position-relative align-items-center{% endif %} last-line\">
\t\t<div class=\"grid\">
<div class=\"logo\">
<a {% if get_config('logo_link','')|default %} href=\"/\" {% else %}{% endif %} aria-label=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }}\">
{# {% if get_config('logo_mobile','')|default %}
<img src=\"{{CDN_URL|default}}{{get_config('logo_mobile','')|default}}\" alt=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }} Logo\" class=\"d-lg-none\">
{% endif %} #}
<img src=\"{{CDN_URL|default}}{{get_config('logo','')|default(asset('none.png', 'global'))}}\" alt=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }} Logo\" class=\"logo__default\" >
<img src=\"{{CDN_URL|default}}{{get_config('logo_transparent_header','')|default(get_config('logo',''))|default(asset('none.png', 'global'))}}\" alt=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }} Logo\" class=\"logo__transparent\">
</a>
</div>
{% include \"partials\\\\variants\\\\explore-watchtv.html.twig\" %}
<div class=\"menu-top2\">
<ul class=\"navbar-nav\">
\t\t\t\t\t {{ render(controller('App\\\\Controller\\\\PageContentController::RenderMenu',[], {'menu': \"menutop2\"}) ) }}
\t\t\t\t </ul>
</div>
\t\t</div>
\t</div>
<div class=\"menu-mobile\">
{% if get_config('menubackgroundvideo','')|default and get_config('desktophamburguermenustyle','') == \"full_width_menu\" %}
<div class=\"underlay\">
<video autoplay muted loop playsinline src=\"{{ CDN_URL ~ get_config('menubackgroundvideo','') }}\" type=\"video/mp4\" class=\"d-none d-lg-block\"></video>
<div class=\"mask d-none d-lg-block\"></div>
</div>
{% endif %}
<div class=\"mwrapper\">
<ul class=\"navbar-nav\">
{{ render(controller('App\\\\Controller\\\\PageContentController::RenderMenu',[], {'menu': \"menumobile\"}) ) }}
</ul>
</div>
{% if get_config('contact_pages',\"\")|default %}
{% set contactpage = get_page_info(app.request.locale,get_config('contact_pages',\"\")) %}
<div class=\"btn-fixed-bottom\">
<a href=\"{{contactpage.url}}\">
<span>{{contactpage.title}}</span>
</a>
</div>
{% endif %}
{% if alternateUrls|length > 1 %}
<div class=\"lang d-flex\">
{% for alternateUrl in alternateUrls %}
<a class=\"{% if alternateUrl.language_code == locale %}active{% endif %}\" href=\"{{alternateUrl.url|raw}}\">
{{alternateUrl.language_code|default}}
</a>
{% endfor %}
</div>
{% endif %}
</div>
<div class=\"explore-pannel\" data-api-url=\"{{ path('api_explore_options') }}?locale={{ app.request.locale }}\">
<div class=\"explore-pannel-body h-100 custom-scroll\">
<div class=\"container\">
<div class=\"row h-100 py-lg-5\">
<div class=\"col-auto col-explore-pannel-body-logowidth d-none d-lg-block\">
<div class=\"explore-pannel-body-logowidth\"></div>
</div>
<div class=\"col col-search\">
<form id=\"formexplore\" class=\"explore-pannel-body-generalsearch\" action=\"/pt/pesquisa\" method=\"get\">
<div>
<button id=\"btn_explore_close\" class=\"trigger-explore js-explore-bt\">
<i class=\"fa-solid fa-xmark\"></i>
<span>{{ 'close'|trans ({},'custom' )|html_entity_decode|raw }}</span>
</button>
</div>
{# Pesquisa livre #}
<div class=\"form-group search-themes\">
<label for=\"searchbox\" class=\"title-from-group\">{{ 'label_explore_search'|trans ({},'custom' )|html_entity_decode|raw }}</label>
<div class=\"wrapp-searchbox\">
<select id=\"searchbox\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"{{ 'placeholder_explore_search'|trans ({},'custom' ) }}\">
{# {% for i in 1..3 %}
<optgroup label=\"Tema {{ i }}\">
<option value=\"Tema {{ i }}\" class=\"theme d-none\">Tema {{ i }}</option>
<option value=\"Sub-Tema.{{ i }}.1\" class=\"subtheme\">Sub-Tema.{{ i }}.1</option>
<option value=\"Sub-Tema.{{ i }}.2\" class=\"subtheme\">Sub-Tema.{{ i }}.2</option>
<option value=\"Sub-Tema.{{ i }}.3\" class=\"subtheme\">Sub-Tema.{{ i }}.3</option>
<option value=\"Sub-Tema.{{ i }}.4\" class=\"subtheme\">Sub-Tema.{{ i }}.4</option>
</optgroup>
{% endfor %} #}
{# Options are populated dynamically from /api/explore/options (Temas tree) #}
</select>
</div>
</div>
{# (Tags moved below content_type) #}
{# Temas #}
<div class=\"form-group themes\">
<div class=\"title-from-group d-flex justify-content-between align-items-center\">
<span>{{ 'main_themes'|trans ({},'custom' )|html_entity_decode|raw }}</span>
<button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('themes[]')\">
{{ 'clear'|trans({},'custom')|default('Reset filters') }}
</button>
</div>
<div id=\"write-themes-box\">
{# <div class=\"form-check-inline\">
<label class=\"form-check-label\" for=\"politica\">
<input type=\"checkbox\" class=\"form-check-input\" id=\"politica\" name=\"themes[]\" value=\"Politica\" checked>Política
</label>
</div>
#}
</div>
</div>
{# Sub-temas - kept for JS compatibility, hidden with CSS #}
<div class=\"form-group sub-themes\" style=\"display: none;\">
<div class=\"title-from-group d-flex justify-content-between align-items-center\">
<span>{{ 'sub_themes'|trans ({},'custom' )|html_entity_decode|raw }}</span>
<button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('subthemes[]')\">
{{ 'clear'|trans({},'custom')|default('Reset filters') }}
</button>
</div>
<div id=\"write-subthemes-box\">
</div>
</div>
<div class=\"separator\"></div>
{# Formatos #}
{# Tags searchable (now placed under content_type) #}
<div class=\"form-group tags-group\">
<div class=\"title-from-group\">
{{ 'label_explore_tag_search'|trans({},'custom')|default('Procura algo mais específico?')|html_entity_decode|raw }}
</div>
<div class=\"wrapp-searchbox\">
<select id=\"explore-tags\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"{{ 'placeholder_explore_tag_search'|trans({},'custom')|default('Selecione aqui as tags') }}\"></select>
</div>
</div>
<div class=\"form-group selected-tags\">
<div class=\"title-from-group d-flex justify-content-between align-items-center\">
<span>{{ 'selected_tags'|trans({},'custom')|default('Tag(s)')|html_entity_decode|raw }}</span>
<button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('tags[]')\">
{{ 'clear'|trans({},'custom')|default('Reset filters') }}
</button>
</div>
<div id=\"write-tags-box\"></div>
</div>
<div class=\"separator\"></div>
{# Formatos #}
{% set filterKeys = app.request.query.get('content_type') %}
<div class=\"form-group content_type\">
<div class=\"title-from-group\">{{ 'content_types'|trans ({},'custom' )|html_entity_decode|raw }}</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"noticiais\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"noticiais\"
name=\"content_type[]\"
value=\"news\"
{% if filterKeys is defined and filterKeys is iterable and 'news' in filterKeys %} checked {% endif %}
>Notícias
</label>
</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"news_reports\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"news_reports\"
name=\"content_type[]\"
value=\"news_reports\"
{% if filterKeys is defined and filterKeys is iterable and 'news_reports' in filterKeys %} checked {% endif %}
>Reportagens
</label>
</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"programs\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"programs\"
name=\"content_type[]\"
value=\"programs\"
{% if filterKeys is defined and filterKeys is iterable and 'programs' in filterKeys %} checked {% endif %}
>Programas
</label>
</div>
<div class=\"form-check-inline\">
<label class=\"content_type_label\" for=\"event\">
<input
type=\"checkbox\"
class=\"form-check-input content_type_option\"
id=\"event\"
name=\"content_type[]\"
value=\"event\"
{% if filterKeys is defined and filterKeys is iterable and 'event' in filterKeys %} checked {% endif %}
>Eventos
</label>
</div>
</div>
<div class=\"explore-pannel-body-generalsearch-footer\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<div class=\"actions\">
<button type=\"button\" class=\"reset2 js-reset-filters\" onclick=\"clearAllContent()\">
{{ 'clear_all_filters'|trans ({},'custom' )|html_entity_decode|raw }}
</button>
<button type=\"submit\" class=\"btn-secondary\">{{ 'apply'|trans ({},'custom' )|html_entity_decode|raw }}</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% if get_config('results_pages', '')|default %}
{% set searchpage=get_page_info(app.request.locale,get_config('results_pages','')) %}
<div class=\"search-pannel\">
<div class=\"search-pannel-body container\">
<div class=\"row\">
<div class=\"col-auto d-none d-lg-block\">
<div class=\"search-pannel-body-logowidth\"></div>
</div>
<div class=\"col col-search\">
<form action=\"{{searchpage.url|default('#')}}\" class=\"search-pannel-body-generalsearch\">
<input type=\"search\" name=\"p\" placeholder=\"{{ 'placeholder_search'|trans ({},'custom' )|html_entity_decode|raw }}\" class=\"form-control\">
<button id=\"btn-search-submit\" type=\"submit\" class=\"btn btn-secondary\" disabled>
<span>{{ 'search_btn'|trans ({},'custom' )|html_entity_decode|raw }}</span>
</button>
<button id=\"btn-search-close\" class=\"js-search-bt\">
<i class=\"fa-solid fa-xmark\"></i>
<span>Fechar</span>
</button>
</form>
</div>
</div>
</div>
</div>
{% endif %}
</header>
<script>
// Search field validation (keep this inline as it's template-specific)
document.addEventListener('DOMContentLoaded', function () {
const searchField = document.getElementsByName('p')[0];
const searchBtn = document.getElementById('btn-search-submit');
if (searchField) {
// Prevenir Enter apenas se o campo estiver vazio
searchField.addEventListener('keypress', function (event) {
if (event.key === 'Enter') {
if (searchField.value.trim() === '') {
event.preventDefault();
}
// Se tiver conteúdo, deixa o submit acontecer naturalmente
}
});
// Controlar o estado do botão
searchField.addEventListener('input', function () {
if (searchBtn) {
if (searchField.value.trim() !== '') {
searchBtn.disabled = false;
} else {
searchBtn.disabled = true;
}
}
});
}
});
</script>
", "partials/variants/header_custom.html.twig", "/var/www/html/theme/templates/partials/variants/header_custom.html.twig");
}
}