var/cache/dev/twig/89/890d46cf517017437ff0b9042a2e1f99.php line 96

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* partials/variants/header_custom.html.twig */
  14. class __TwigTemplate_14a3fcd575fa7a802327c70f2bc9d146 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'header_class' => [$this'block_header_class'],
  25.             'notificationsbar' => [$this'block_notificationsbar'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""partials/variants/header_custom.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""partials/variants/header_custom.html.twig"));
  35.         // line 1
  36.         echo "<header class=\"header ";
  37.         $this->displayBlock('header_class'$context$blocks);
  38.         echo "\">
  39.     <div class=\"line-1\">
  40.         <div class=\"logo-mini\">
  41.           <a ";
  42.         // line 4
  43.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_link"""))) {
  44.             echo " href=\"/\" ";
  45.         } else {
  46.         }
  47.         echo " aria-label=\"";
  48.         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->sourcetwig_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"falsefalsefalse4), "getLocale", [], "method"falsefalsefalse4))), "html"nulltrue);
  49.         echo "\">
  50.             ";
  51.         // line 6
  52.         echo "            ";
  53.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_mobile"""))) {
  54.             // line 7
  55.             echo "              <img src=\"";
  56.             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"nulltrue);
  57.             echo twig_escape_filter($this->env_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_mobile""")), "html"nulltrue);
  58.             echo "\" alt=\"";
  59.             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->sourcetwig_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"falsefalsefalse7), "getLocale", [], "method"falsefalsefalse7))), "html"nulltrue);
  60.             echo " Logo\" class=\"d-lg-none\">
  61.             ";
  62.         }
  63.         // line 9
  64.         echo "            ";
  65.         // line 10
  66.         echo "             <img
  67.               src=\"";
  68.         // line 11
  69.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("custom/logomenu_contala_scroll.svg""global"), "html"nulltrue);
  70.         echo "\"
  71.               alt=\"logo-mini\"
  72.               ";
  73.         // line 13
  74.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_mobile"""))) {
  75.             echo " class=\"d-none d-lg-block\"";
  76.         }
  77.         echo " >
  78.           </a>
  79.         </div>
  80.       ";
  81.         // line 39
  82.         echo "
  83.         ";
  84.         // line 40
  85.         $this->loadTemplate("partials\\variants\\explore-watchtv.html.twig""partials/variants/header_custom.html.twig"40)->display($context);
  86.         // line 41
  87.         echo "
  88.         <div class=\"weather\"></div>
  89.         <div class=\"menu-top2\">
  90.           <ul class=\"navbar-nav\">
  91. \t\t\t\t\t  ";
  92.         // line 46
  93.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageContentController::RenderMenu", [], ["menu" => "menutop2"]));
  94.         echo "
  95. \t\t\t\t  </ul>
  96.         </div>
  97.         ";
  98.         // line 49
  99.         $this->loadTemplate("partials\\elements\\languages.twig""partials/variants/header_custom.html.twig"49)->display($context);
  100.         // line 50
  101.         echo "        ";
  102.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("results_pages"""))) {
  103.             // line 51
  104.             echo "          <div class=\"search\">
  105.             <a href=\"#\" class=\"js-search-bt\" aria-label=\"";
  106.             // line 52
  107.             echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("acess_to_search", [], "custom"));
  108.             echo "\">
  109.               ";
  110.             // line 53
  111.             echo $this->extensions['App\Twig\AppExtension']->fileGetContents($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("custom/search-icon.svg""global"));
  112.             echo "
  113.             </a>
  114.           </div>
  115.         ";
  116.         }
  117.         // line 62
  118.         echo "        <div class=\"col-menu-mobile\">
  119.             <button class=\"js-menumobile-hamburger\" aria-label=\"menu button\" type=\"button\">
  120.                 <span class=\"hamburger-box\">
  121.                     <span class=\"hamburger-inner\"></span>
  122.                 </span>
  123.             </button>
  124.         </div>
  125.     </div>
  126.     ";
  127.         // line 70
  128.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("notificationsbar_page"""))) {
  129.             // line 71
  130.             echo "        <div class=\"line-2\">
  131.             ";
  132.             // line 72
  133.             $this->displayBlock('notificationsbar'$context$blocks);
  134.             // line 75
  135.             echo "        </div>
  136.     ";
  137.         }
  138.         // line 77
  139.         echo "\t<div class=\"";
  140.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("container_fluid"""))) {
  141.             echo "container-fluid";
  142.         } else {
  143.             echo "container";
  144.         }
  145.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("showdesktophamburguermenu"""))) {
  146.             echo " position-relative align-items-center";
  147.         }
  148.         echo " last-line\">
  149. \t\t<div class=\"grid\">
  150.       <div class=\"logo\">
  151.         <a ";
  152.         // line 81
  153.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("logo_link"""))) {
  154.             echo " href=\"/\" ";
  155.         } else {
  156.         }
  157.         echo " aria-label=\"";
  158.         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->sourcetwig_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"falsefalsefalse81), "getLocale", [], "method"falsefalsefalse81))), "html"nulltrue);
  159.         echo "\">
  160.         ";
  161.         // line 85
  162.         echo "          <img src=\"";
  163.         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"nulltrue);
  164.         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"nulltrue);
  165.         echo "\" alt=\"";
  166.         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->sourcetwig_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"falsefalsefalse85), "getLocale", [], "method"falsefalsefalse85))), "html"nulltrue);
  167.         echo " Logo\" class=\"logo__default\" >
  168.           <img src=\"";
  169.         // line 86
  170.         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"nulltrue);
  171.         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"nulltrue);
  172.         echo "\" alt=\"";
  173.         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->sourcetwig_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"falsefalsefalse86), "getLocale", [], "method"falsefalsefalse86))), "html"nulltrue);
  174.         echo " Logo\" class=\"logo__transparent\">
  175.         </a>
  176.       </div>
  177.       ";
  178.         // line 91
  179.         $this->loadTemplate("partials\\variants\\explore-watchtv.html.twig""partials/variants/header_custom.html.twig"91)->display($context);
  180.         // line 92
  181.         echo "
  182.       <div class=\"menu-top2\">
  183.           <ul class=\"navbar-nav\">
  184. \t\t\t\t\t  ";
  185.         // line 95
  186.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageContentController::RenderMenu", [], ["menu" => "menutop2"]));
  187.         echo "
  188. \t\t\t\t  </ul>
  189.       </div>
  190. \t\t</div>
  191. \t</div>
  192.   <div class=\"menu-mobile\">
  193.     ";
  194.         // line 102
  195.         if ((_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("menubackgroundvideo""")) && ($this->extensions['App\Twig\AppExtension']->getConfig("desktophamburguermenustyle""") == "full_width_menu"))) {
  196.             // line 103
  197.             echo "      <div class=\"underlay\">
  198.         <video autoplay muted loop playsinline src=\"";
  199.             // line 104
  200.             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"nulltrue);
  201.             echo "\" type=\"video/mp4\" class=\"d-none d-lg-block\"></video>
  202.         <div class=\"mask d-none d-lg-block\"></div>
  203.       </div>
  204.     ";
  205.         }
  206.         // line 108
  207.         echo "    <div class=\"mwrapper\">
  208.       <ul class=\"navbar-nav\">
  209.           ";
  210.         // line 110
  211.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageContentController::RenderMenu", [], ["menu" => "menumobile"]));
  212.         echo "
  213.       </ul>
  214.     </div>
  215.     ";
  216.         // line 113
  217.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("contact_pages"""))) {
  218.             // line 114
  219.             echo "      ";
  220.             $context["contactpage"] = $this->extensions['App\Twig\AppExtension']->getPageInfo(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse114), "locale", [], "any"falsefalsefalse114), $this->extensions['App\Twig\AppExtension']->getConfig("contact_pages"""));
  221.             // line 115
  222.             echo "        <div class=\"btn-fixed-bottom\">
  223.           <a href=\"";
  224.             // line 116
  225.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse116), "html"nulltrue);
  226.             echo "\">
  227.             <span>";
  228.             // line 117
  229.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse117), "html"nulltrue);
  230.             echo "</span>
  231.           </a>
  232.         </div>
  233.     ";
  234.         }
  235.         // line 121
  236.         echo "
  237.     ";
  238.         // line 122
  239.         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)) {
  240.             // line 123
  241.             echo "      <div class=\"lang d-flex\">
  242.         ";
  243.             // line 124
  244.             $context['_parent'] = $context;
  245.             $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); })()));
  246.             foreach ($context['_seq'] as $context["_key"] => $context["alternateUrl"]) {
  247.                 // line 125
  248.                 echo "          <a class=\"";
  249.                 if ((twig_get_attribute($this->env$this->source$context["alternateUrl"], "language_code", [], "any"falsefalsefalse125) == (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'125$this->source); })()))) {
  250.                     echo "active";
  251.                 }
  252.                 echo "\" href=\"";
  253.                 echo twig_get_attribute($this->env$this->source$context["alternateUrl"], "url", [], "any"falsefalsefalse125);
  254.                 echo "\">
  255.             ";
  256.                 // line 126
  257.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["alternateUrl"], "language_code", [], "any"truetruefalse126)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["alternateUrl"], "language_code", [], "any"falsefalsefalse126))) : ("")), "html"nulltrue);
  258.                 echo "
  259.           </a>
  260.         ";
  261.             }
  262.             $_parent $context['_parent'];
  263.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['alternateUrl'], $context['_parent'], $context['loop']);
  264.             $context array_intersect_key($context$_parent) + $_parent;
  265.             // line 129
  266.             echo "      </div>
  267.     ";
  268.         }
  269.         // line 131
  270.         echo "  </div>
  271.   <div class=\"explore-pannel\" data-api-url=\"";
  272.         // line 133
  273.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_explore_options");
  274.         echo "?locale=";
  275.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse133), "locale", [], "any"falsefalsefalse133), "html"nulltrue);
  276.         echo "\">
  277.     <div class=\"explore-pannel-body h-100 custom-scroll\">
  278.       <div class=\"container\">
  279.         <div class=\"row h-100 py-lg-5\">
  280.           <div class=\"col-auto col-explore-pannel-body-logowidth d-none d-lg-block\">
  281.             <div class=\"explore-pannel-body-logowidth\"></div>
  282.           </div>
  283.           <div class=\"col col-search\">
  284.             <form id=\"formexplore\" class=\"explore-pannel-body-generalsearch\" action=\"/pt/pesquisa\" method=\"get\">
  285.               <div>
  286.                 <button id=\"btn_explore_close\" class=\"trigger-explore js-explore-bt\">
  287.                   <i class=\"fa-solid fa-xmark\"></i>
  288.                   <span>";
  289.         // line 145
  290.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close", [], "custom"));
  291.         echo "</span>
  292.                 </button>
  293.               </div>
  294.               ";
  295.         // line 149
  296.         echo "              <div class=\"form-group search-themes\">
  297.                 <label for=\"searchbox\" class=\"title-from-group\">";
  298.         // line 150
  299.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label_explore_search", [], "custom"));
  300.         echo "</label>
  301.                 <div class=\"wrapp-searchbox\">
  302.                 <select id=\"searchbox\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"";
  303.         // line 152
  304.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("placeholder_explore_search", [], "custom"), "html"nulltrue);
  305.         echo "\">
  306.                    ";
  307.         // line 162
  308.         echo "                  ";
  309.         // line 163
  310.         echo "                </select>
  311.                 </div>
  312.               </div>
  313.               ";
  314.         // line 167
  315.         echo "
  316.               ";
  317.         // line 169
  318.         echo "              <div class=\"form-group themes\">
  319.                 <div class=\"title-from-group d-flex justify-content-between align-items-center\">
  320.                   <span>";
  321.         // line 171
  322.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("main_themes", [], "custom"));
  323.         echo "</span>
  324.                   <button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('themes[]')\">
  325.                     ";
  326.         // line 173
  327.         echo twig_escape_filter($this->env_twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear", [], "custom"), "Reset filters"), "html"nulltrue);
  328.         echo "
  329.                   </button>
  330.                 </div>
  331.                 <div id=\"write-themes-box\">
  332.                   ";
  333.         // line 183
  334.         echo "                </div>
  335.               </div>
  336.               ";
  337.         // line 186
  338.         echo "              <div class=\"form-group sub-themes\" style=\"display: none;\">
  339.                 <div class=\"title-from-group d-flex justify-content-between align-items-center\">
  340.                   <span>";
  341.         // line 188
  342.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sub_themes", [], "custom"));
  343.         echo "</span>
  344.                   <button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('subthemes[]')\">
  345.                     ";
  346.         // line 190
  347.         echo twig_escape_filter($this->env_twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear", [], "custom"), "Reset filters"), "html"nulltrue);
  348.         echo "
  349.                   </button>
  350.                 </div>
  351.                 <div id=\"write-subthemes-box\">
  352.                 </div>
  353.               </div>
  354.               <div class=\"separator\"></div>
  355.               ";
  356.         // line 198
  357.         echo "              ";
  358.         // line 199
  359.         echo "              <div class=\"form-group tags-group\">
  360.                 <div class=\"title-from-group\">
  361.                   ";
  362.         // line 201
  363.         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?"));
  364.         echo "
  365.                 </div>
  366.                 <div class=\"wrapp-searchbox\">
  367.                   <select id=\"explore-tags\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"";
  368.         // line 204
  369.         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"nulltrue);
  370.         echo "\"></select>
  371.                 </div>
  372.               </div>
  373.               <div class=\"form-group selected-tags\">
  374.                 <div class=\"title-from-group d-flex justify-content-between align-items-center\">
  375.                   <span>";
  376.         // line 209
  377.         echo html_entity_decode(_twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("selected_tags", [], "custom"), "Tag(s)"));
  378.         echo "</span>
  379.                   <button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('tags[]')\">
  380.                     ";
  381.         // line 211
  382.         echo twig_escape_filter($this->env_twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear", [], "custom"), "Reset filters"), "html"nulltrue);
  383.         echo "
  384.                   </button>
  385.                 </div>
  386.                 <div id=\"write-tags-box\"></div>
  387.               </div>
  388.               <div class=\"separator\"></div>
  389.               ";
  390.         // line 218
  391.         echo "              ";
  392.         $context["filterKeys"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse218), "query", [], "any"falsefalsefalse218), "get", [=> "content_type"], "method"falsefalsefalse218);
  393.         // line 219
  394.         echo "              <div class=\"form-group content_type\">
  395.                 <div class=\"title-from-group\">";
  396.         // line 220
  397.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("content_types", [], "custom"));
  398.         echo "</div>
  399.                 <div class=\"form-check-inline\">
  400.                   <label class=\"content_type_label\" for=\"noticiais\">
  401.                     <input
  402.                       type=\"checkbox\"
  403.                       class=\"form-check-input content_type_option\"
  404.                       id=\"noticiais\"
  405.                       name=\"content_type[]\"
  406.                       value=\"news\"
  407.                       ";
  408.         // line 229
  409.         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); })())))) {
  410.             echo " checked ";
  411.         }
  412.         // line 230
  413.         echo "                      >Notícias
  414.                   </label>
  415.                 </div>
  416.                 <div class=\"form-check-inline\">
  417.                   <label class=\"content_type_label\" for=\"news_reports\">
  418.                     <input
  419.                       type=\"checkbox\"
  420.                       class=\"form-check-input content_type_option\"
  421.                       id=\"news_reports\"
  422.                       name=\"content_type[]\"
  423.                       value=\"news_reports\"
  424.                       ";
  425.         // line 241
  426.         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); })())))) {
  427.             echo " checked ";
  428.         }
  429.         // line 242
  430.         echo "                      >Reportagens
  431.                   </label>
  432.                 </div>
  433.                 <div class=\"form-check-inline\">
  434.                   <label class=\"content_type_label\" for=\"programs\">
  435.                     <input
  436.                       type=\"checkbox\"
  437.                       class=\"form-check-input content_type_option\"
  438.                       id=\"programs\"
  439.                       name=\"content_type[]\"
  440.                       value=\"programs\"
  441.                       ";
  442.         // line 253
  443.         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); })())))) {
  444.             echo " checked ";
  445.         }
  446.         // line 254
  447.         echo "                      >Programas
  448.                   </label>
  449.                 </div>
  450.                 <div class=\"form-check-inline\">
  451.                   <label class=\"content_type_label\" for=\"event\">
  452.                     <input
  453.                       type=\"checkbox\"
  454.                       class=\"form-check-input content_type_option\"
  455.                       id=\"event\"
  456.                       name=\"content_type[]\"
  457.                       value=\"event\"
  458.                       ";
  459.         // line 265
  460.         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); })())))) {
  461.             echo " checked ";
  462.         }
  463.         // line 266
  464.         echo "                      >Eventos
  465.                   </label>
  466.                 </div>
  467.               </div>
  468.               <div class=\"explore-pannel-body-generalsearch-footer\">
  469.                 <div class=\"container\">
  470.                   <div class=\"row\">
  471.                     <div class=\"col\">
  472.                       <div class=\"actions\">
  473.                         <button type=\"button\" class=\"reset2 js-reset-filters\" onclick=\"clearAllContent()\">
  474.                           ";
  475.         // line 276
  476.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("clear_all_filters", [], "custom"));
  477.         echo "
  478.                         </button>
  479.                         <button type=\"submit\" class=\"btn-secondary\">";
  480.         // line 278
  481.         echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("apply", [], "custom"));
  482.         echo "</button>
  483.                       </div>
  484.                     </div>
  485.                   </div>
  486.                 </div>
  487.               </div>
  488.             </form>
  489.           </div>
  490.         </div>
  491.       </div>
  492.     </div>
  493.   </div>
  494.   ";
  495.         // line 291
  496.         if (_twig_default_filter($this->extensions['App\Twig\AppExtension']->getConfig("results_pages"""))) {
  497.             // line 292
  498.             echo "    ";
  499.             $context["searchpage"] = $this->extensions['App\Twig\AppExtension']->getPageInfo(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse292), "locale", [], "any"falsefalsefalse292), $this->extensions['App\Twig\AppExtension']->getConfig("results_pages"""));
  500.             // line 293
  501.             echo "    <div class=\"search-pannel\">
  502.       <div class=\"search-pannel-body container\">
  503.         <div class=\"row\">
  504.           <div class=\"col-auto d-none d-lg-block\">
  505.             <div class=\"search-pannel-body-logowidth\"></div>
  506.           </div>
  507.           <div class=\"col col-search\">
  508.             <form action=\"";
  509.             // line 300
  510.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["searchpage"] ?? null), "url", [], "any"truetruefalse300)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["searchpage"] ?? null), "url", [], "any"falsefalsefalse300), "#")) : ("#")), "html"nulltrue);
  511.             echo "\" class=\"search-pannel-body-generalsearch\">
  512.               <input type=\"search\" name=\"p\" placeholder=\"";
  513.             // line 301
  514.             echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("placeholder_search", [], "custom"));
  515.             echo "\" class=\"form-control\">
  516.               <button id=\"btn-search-submit\" type=\"submit\" class=\"btn btn-secondary\" disabled>
  517.                 <span>";
  518.             // line 303
  519.             echo html_entity_decode($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("search_btn", [], "custom"));
  520.             echo "</span>
  521.               </button>
  522.               <button id=\"btn-search-close\" class=\"js-search-bt\">
  523.                   <i class=\"fa-solid fa-xmark\"></i>
  524.                   <span>Fechar</span>
  525.                 </button>
  526.             </form>
  527.           </div>
  528.         </div>
  529.       </div>
  530.     </div>
  531.   ";
  532.         }
  533.         // line 316
  534.         echo "</header>
  535. <script>
  536.   // Search field validation (keep this inline as it's template-specific)
  537.   document.addEventListener('DOMContentLoaded', function () {
  538.       const searchField = document.getElementsByName('p')[0];
  539.       const searchBtn = document.getElementById('btn-search-submit');
  540.       if (searchField) {
  541.           // Prevenir Enter apenas se o campo estiver vazio
  542.           searchField.addEventListener('keypress', function (event) {
  543.               if (event.key === 'Enter') {
  544.                   if (searchField.value.trim() === '') {
  545.                       event.preventDefault();
  546.                   }
  547.                   // Se tiver conteúdo, deixa o submit acontecer naturalmente
  548.               }
  549.           });
  550.           // Controlar o estado do botão
  551.           searchField.addEventListener('input', function () {
  552.               if (searchBtn) {
  553.                   if (searchField.value.trim() !== '') {
  554.                       searchBtn.disabled = false;
  555.                   } else {
  556.                       searchBtn.disabled = true;
  557.                   }
  558.               }
  559.           });
  560.       }
  561.   });
  562. </script>
  563. ";
  564.         
  565.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  566.         
  567.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  568.     }
  569.     // line 1
  570.     public function block_header_class($context, array $blocks = [])
  571.     {
  572.         $macros $this->macros;
  573.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  574.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_class"));
  575.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  576.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_class"));
  577.         echo "hs_1";
  578.         
  579.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  580.         
  581.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  582.     }
  583.     // line 72
  584.     public function block_notificationsbar($context, array $blocks = [])
  585.     {
  586.         $macros $this->macros;
  587.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  588.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""notificationsbar"));
  589.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  590.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""notificationsbar"));
  591.         // line 73
  592.         echo "                ";
  593.         $this->loadTemplate("partials\\elements\\notifications.twig""partials/variants/header_custom.html.twig"73)->display($context);
  594.         // line 74
  595.         echo "            ";
  596.         
  597.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  598.         
  599.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  600.     }
  601.     public function getTemplateName()
  602.     {
  603.         return "partials/variants/header_custom.html.twig";
  604.     }
  605.     public function isTraitable()
  606.     {
  607.         return false;
  608.     }
  609.     public function getDebugInfo()
  610.     {
  611.         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,);
  612.     }
  613.     public function getSourceContext()
  614.     {
  615.         return new Source("<header class=\"header {% block header_class %}hs_1{% endblock %}\">
  616.     <div class=\"line-1\">
  617.         <div class=\"logo-mini\">
  618.           <a {% if get_config('logo_link','')|default %} href=\"/\" {% else %}{% endif %} aria-label=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }}\">
  619.             {# {{ file_get_contents(asset('custom/mini-norte.svg', 'global'))|raw }} #}
  620.             {% if get_config('logo_mobile','')|default %}
  621.               <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\">
  622.             {% endif %}
  623.             {# <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 %} > #}
  624.              <img
  625.               src=\"{{ asset('custom/logomenu_contala_scroll.svg', 'global') }}\"
  626.               alt=\"logo-mini\"
  627.               {% if get_config('logo_mobile','')|default %} class=\"d-none d-lg-block\"{% endif %} >
  628.           </a>
  629.         </div>
  630.       {#  OLD TERRITORY #}
  631. {#        <div class=\"territory\">#}
  632. {#          <span class=\"primary-300\">#}
  633. {#            <a href=\"/\">{{ 'conta_la'|trans ({},'custom' )|html_entity_decode|raw }}</a>#}
  634. {#          </span>#}
  635. {#          <div class=\"select-territory \">#}
  636. {#              <div class=\"selected js-select-territory\">#}
  637. {#                <div>Portugal</div>#}
  638. {#                <div class=\"arrow\">#}
  639. {#                  {{ file_get_contents(asset('custom/arrow-down-icon.svg', 'global'))|raw }}#}
  640. {#                </div>#}
  641. {#              </div>#}
  642. {#              <ul class=\"card card-blur options\">#}
  643. {#                <li><a href=\"#\">Portugal</a></li>#}
  644. {#                <li><a href=\"#\">Norte</a></li>#}
  645. {#                <li><a href=\"#\">Centro</a></li>#}
  646. {#                <li><a href=\"#\">Sul</a></li>#}
  647. {#                <li><a href=\"#\">Rural</a></li>#}
  648. {#              </ul>#}
  649. {#          </div>#}
  650. {#        </div>#}
  651.         {% include \"partials\\\\variants\\\\explore-watchtv.html.twig\" %}
  652.         <div class=\"weather\"></div>
  653.         <div class=\"menu-top2\">
  654.           <ul class=\"navbar-nav\">
  655. \t\t\t\t\t  {{ render(controller('App\\\\Controller\\\\PageContentController::RenderMenu',[], {'menu': \"menutop2\"}) ) }}
  656. \t\t\t\t  </ul>
  657.         </div>
  658.         {% include \"partials\\\\elements\\\\languages.twig\" %}
  659.         {% if get_config('results_pages', '')|default %}
  660.           <div class=\"search\">
  661.             <a href=\"#\" class=\"js-search-bt\" aria-label=\"{{ 'acess_to_search'|trans ({},'custom' )|html_entity_decode|raw }}\">
  662.               {{ file_get_contents(asset('custom/search-icon.svg', 'global'))|raw }}
  663.             </a>
  664.           </div>
  665.         {% endif %}
  666. {#   TEMPORARY REMOVAL FOR v1.0     #}
  667. {#        {% if app.user is not null and app.user is instanceof('App\\\\Admin\\\\Entity\\\\StdWebUsers') %}#}
  668. {#          <div class=\"favorits\">Favoritos</div>#}
  669. {#        {% endif %}#}
  670. {#        {% include \"partials\\\\elements\\\\webusers.twig\" %}#}
  671.         <div class=\"col-menu-mobile\">
  672.             <button class=\"js-menumobile-hamburger\" aria-label=\"menu button\" type=\"button\">
  673.                 <span class=\"hamburger-box\">
  674.                     <span class=\"hamburger-inner\"></span>
  675.                 </span>
  676.             </button>
  677.         </div>
  678.     </div>
  679.     {% if get_config('notificationsbar_page', '')|default %}
  680.         <div class=\"line-2\">
  681.             {% block notificationsbar %}
  682.                 {% include \"partials\\\\elements\\\\notifications.twig\" %}
  683.             {% endblock %}
  684.         </div>
  685.     {% endif %}
  686. \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\">
  687. \t\t<div class=\"grid\">
  688.       <div class=\"logo\">
  689.         <a {% if get_config('logo_link','')|default %} href=\"/\" {% else %}{% endif %} aria-label=\"{{ get_config('default_meta_page_name',app.request.getLocale())|default }}\">
  690.         {# {% if get_config('logo_mobile','')|default %}
  691.           <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\">
  692.         {% endif %}                     #}
  693.           <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\" >
  694.           <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\">
  695.         </a>
  696.       </div>
  697.       {% include \"partials\\\\variants\\\\explore-watchtv.html.twig\" %}
  698.       <div class=\"menu-top2\">
  699.           <ul class=\"navbar-nav\">
  700. \t\t\t\t\t  {{ render(controller('App\\\\Controller\\\\PageContentController::RenderMenu',[], {'menu': \"menutop2\"}) ) }}
  701. \t\t\t\t  </ul>
  702.       </div>
  703. \t\t</div>
  704. \t</div>
  705.   <div class=\"menu-mobile\">
  706.     {% if get_config('menubackgroundvideo','')|default and get_config('desktophamburguermenustyle','') == \"full_width_menu\"  %}
  707.       <div class=\"underlay\">
  708.         <video autoplay muted loop playsinline src=\"{{ CDN_URL ~ get_config('menubackgroundvideo','') }}\" type=\"video/mp4\" class=\"d-none d-lg-block\"></video>
  709.         <div class=\"mask d-none d-lg-block\"></div>
  710.       </div>
  711.     {% endif %}
  712.     <div class=\"mwrapper\">
  713.       <ul class=\"navbar-nav\">
  714.           {{ render(controller('App\\\\Controller\\\\PageContentController::RenderMenu',[], {'menu': \"menumobile\"}) ) }}
  715.       </ul>
  716.     </div>
  717.     {% if get_config('contact_pages',\"\")|default %}
  718.       {% set contactpage = get_page_info(app.request.locale,get_config('contact_pages',\"\")) %}
  719.         <div class=\"btn-fixed-bottom\">
  720.           <a href=\"{{contactpage.url}}\">
  721.             <span>{{contactpage.title}}</span>
  722.           </a>
  723.         </div>
  724.     {% endif %}
  725.     {% if alternateUrls|length > 1 %}
  726.       <div class=\"lang d-flex\">
  727.         {% for alternateUrl in alternateUrls %}
  728.           <a class=\"{% if alternateUrl.language_code == locale %}active{% endif %}\" href=\"{{alternateUrl.url|raw}}\">
  729.             {{alternateUrl.language_code|default}}
  730.           </a>
  731.         {% endfor %}
  732.       </div>
  733.     {% endif %}
  734.   </div>
  735.   <div class=\"explore-pannel\" data-api-url=\"{{ path('api_explore_options') }}?locale={{ app.request.locale }}\">
  736.     <div class=\"explore-pannel-body h-100 custom-scroll\">
  737.       <div class=\"container\">
  738.         <div class=\"row h-100 py-lg-5\">
  739.           <div class=\"col-auto col-explore-pannel-body-logowidth d-none d-lg-block\">
  740.             <div class=\"explore-pannel-body-logowidth\"></div>
  741.           </div>
  742.           <div class=\"col col-search\">
  743.             <form id=\"formexplore\" class=\"explore-pannel-body-generalsearch\" action=\"/pt/pesquisa\" method=\"get\">
  744.               <div>
  745.                 <button id=\"btn_explore_close\" class=\"trigger-explore js-explore-bt\">
  746.                   <i class=\"fa-solid fa-xmark\"></i>
  747.                   <span>{{ 'close'|trans ({},'custom' )|html_entity_decode|raw }}</span>
  748.                 </button>
  749.               </div>
  750.               {# Pesquisa livre #}
  751.               <div class=\"form-group search-themes\">
  752.                 <label for=\"searchbox\" class=\"title-from-group\">{{ 'label_explore_search'|trans ({},'custom' )|html_entity_decode|raw }}</label>
  753.                 <div class=\"wrapp-searchbox\">
  754.                 <select id=\"searchbox\" class=\"selectpicker customselectpicker form-control\" multiple data-live-search=\"true\" title=\"{{ 'placeholder_explore_search'|trans ({},'custom' ) }}\">
  755.                    {# {% for i in 1..3 %}
  756.                   <optgroup label=\"Tema {{ i }}\">
  757.                     <option value=\"Tema {{ i }}\" class=\"theme d-none\">Tema {{ i }}</option>
  758.                     <option value=\"Sub-Tema.{{ i }}.1\" class=\"subtheme\">Sub-Tema.{{ i }}.1</option>
  759.                     <option value=\"Sub-Tema.{{ i }}.2\" class=\"subtheme\">Sub-Tema.{{ i }}.2</option>
  760.                     <option value=\"Sub-Tema.{{ i }}.3\" class=\"subtheme\">Sub-Tema.{{ i }}.3</option>
  761.                     <option value=\"Sub-Tema.{{ i }}.4\" class=\"subtheme\">Sub-Tema.{{ i }}.4</option>
  762.                   </optgroup>
  763.                   {% endfor %}                   #}
  764.                   {# Options are populated dynamically from /api/explore/options (Temas tree) #}
  765.                 </select>
  766.                 </div>
  767.               </div>
  768.               {# (Tags moved below content_type) #}
  769.               {# Temas #}
  770.               <div class=\"form-group themes\">
  771.                 <div class=\"title-from-group d-flex justify-content-between align-items-center\">
  772.                   <span>{{ 'main_themes'|trans ({},'custom' )|html_entity_decode|raw }}</span>
  773.                   <button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('themes[]')\">
  774.                     {{ 'clear'|trans({},'custom')|default('Reset filters') }}
  775.                   </button>
  776.                 </div>
  777.                 <div id=\"write-themes-box\">
  778.                   {# <div class=\"form-check-inline\">
  779.                       <label class=\"form-check-label\" for=\"politica\">
  780.                         <input type=\"checkbox\" class=\"form-check-input\" id=\"politica\" name=\"themes[]\" value=\"Politica\" checked>Política
  781.                       </label>
  782.                     </div>
  783.                   #}
  784.                 </div>
  785.               </div>
  786.               {# Sub-temas - kept for JS compatibility, hidden with CSS #}
  787.               <div class=\"form-group sub-themes\" style=\"display: none;\">
  788.                 <div class=\"title-from-group d-flex justify-content-between align-items-center\">
  789.                   <span>{{ 'sub_themes'|trans ({},'custom' )|html_entity_decode|raw }}</span>
  790.                   <button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('subthemes[]')\">
  791.                     {{ 'clear'|trans({},'custom')|default('Reset filters') }}
  792.                   </button>
  793.                 </div>
  794.                 <div id=\"write-subthemes-box\">
  795.                 </div>
  796.               </div>
  797.               <div class=\"separator\"></div>
  798.               {# Formatos #}
  799.               {# Tags searchable (now placed under content_type) #}
  800.               <div class=\"form-group tags-group\">
  801.                 <div class=\"title-from-group\">
  802.                   {{ 'label_explore_tag_search'|trans({},'custom')|default('Procura algo mais específico?')|html_entity_decode|raw }}
  803.                 </div>
  804.                 <div class=\"wrapp-searchbox\">
  805.                   <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>
  806.                 </div>
  807.               </div>
  808.               <div class=\"form-group selected-tags\">
  809.                 <div class=\"title-from-group d-flex justify-content-between align-items-center\">
  810.                   <span>{{ 'selected_tags'|trans({},'custom')|default('Tag(s)')|html_entity_decode|raw }}</span>
  811.                   <button type=\"button\" class=\"border-0 bg-transparent btn-primary btn-style-1\" onclick=\"clearCheckboxes('tags[]')\">
  812.                     {{ 'clear'|trans({},'custom')|default('Reset filters') }}
  813.                   </button>
  814.                 </div>
  815.                 <div id=\"write-tags-box\"></div>
  816.               </div>
  817.               <div class=\"separator\"></div>
  818.               {# Formatos #}
  819.               {% set filterKeys = app.request.query.get('content_type') %}
  820.               <div class=\"form-group content_type\">
  821.                 <div class=\"title-from-group\">{{ 'content_types'|trans ({},'custom' )|html_entity_decode|raw }}</div>
  822.                 <div class=\"form-check-inline\">
  823.                   <label class=\"content_type_label\" for=\"noticiais\">
  824.                     <input
  825.                       type=\"checkbox\"
  826.                       class=\"form-check-input content_type_option\"
  827.                       id=\"noticiais\"
  828.                       name=\"content_type[]\"
  829.                       value=\"news\"
  830.                       {% if filterKeys is defined and filterKeys is iterable and 'news' in filterKeys %} checked {% endif %}
  831.                       >Notícias
  832.                   </label>
  833.                 </div>
  834.                 <div class=\"form-check-inline\">
  835.                   <label class=\"content_type_label\" for=\"news_reports\">
  836.                     <input
  837.                       type=\"checkbox\"
  838.                       class=\"form-check-input content_type_option\"
  839.                       id=\"news_reports\"
  840.                       name=\"content_type[]\"
  841.                       value=\"news_reports\"
  842.                       {% if filterKeys is defined and filterKeys is iterable and 'news_reports' in filterKeys %} checked {% endif %}
  843.                       >Reportagens
  844.                   </label>
  845.                 </div>
  846.                 <div class=\"form-check-inline\">
  847.                   <label class=\"content_type_label\" for=\"programs\">
  848.                     <input
  849.                       type=\"checkbox\"
  850.                       class=\"form-check-input content_type_option\"
  851.                       id=\"programs\"
  852.                       name=\"content_type[]\"
  853.                       value=\"programs\"
  854.                       {% if filterKeys is defined and filterKeys is iterable and 'programs' in filterKeys %} checked {% endif %}
  855.                       >Programas
  856.                   </label>
  857.                 </div>
  858.                 <div class=\"form-check-inline\">
  859.                   <label class=\"content_type_label\" for=\"event\">
  860.                     <input
  861.                       type=\"checkbox\"
  862.                       class=\"form-check-input content_type_option\"
  863.                       id=\"event\"
  864.                       name=\"content_type[]\"
  865.                       value=\"event\"
  866.                       {% if filterKeys is defined and filterKeys is iterable and 'event' in filterKeys %} checked {% endif %}
  867.                       >Eventos
  868.                   </label>
  869.                 </div>
  870.               </div>
  871.               <div class=\"explore-pannel-body-generalsearch-footer\">
  872.                 <div class=\"container\">
  873.                   <div class=\"row\">
  874.                     <div class=\"col\">
  875.                       <div class=\"actions\">
  876.                         <button type=\"button\" class=\"reset2 js-reset-filters\" onclick=\"clearAllContent()\">
  877.                           {{ 'clear_all_filters'|trans ({},'custom' )|html_entity_decode|raw }}
  878.                         </button>
  879.                         <button type=\"submit\" class=\"btn-secondary\">{{ 'apply'|trans ({},'custom' )|html_entity_decode|raw }}</button>
  880.                       </div>
  881.                     </div>
  882.                   </div>
  883.                 </div>
  884.               </div>
  885.             </form>
  886.           </div>
  887.         </div>
  888.       </div>
  889.     </div>
  890.   </div>
  891.   {% if get_config('results_pages', '')|default %}
  892.     {% set searchpage=get_page_info(app.request.locale,get_config('results_pages','')) %}
  893.     <div class=\"search-pannel\">
  894.       <div class=\"search-pannel-body container\">
  895.         <div class=\"row\">
  896.           <div class=\"col-auto d-none d-lg-block\">
  897.             <div class=\"search-pannel-body-logowidth\"></div>
  898.           </div>
  899.           <div class=\"col col-search\">
  900.             <form action=\"{{searchpage.url|default('#')}}\" class=\"search-pannel-body-generalsearch\">
  901.               <input type=\"search\" name=\"p\" placeholder=\"{{ 'placeholder_search'|trans ({},'custom' )|html_entity_decode|raw }}\" class=\"form-control\">
  902.               <button id=\"btn-search-submit\" type=\"submit\" class=\"btn btn-secondary\" disabled>
  903.                 <span>{{ 'search_btn'|trans ({},'custom' )|html_entity_decode|raw }}</span>
  904.               </button>
  905.               <button id=\"btn-search-close\" class=\"js-search-bt\">
  906.                   <i class=\"fa-solid fa-xmark\"></i>
  907.                   <span>Fechar</span>
  908.                 </button>
  909.             </form>
  910.           </div>
  911.         </div>
  912.       </div>
  913.     </div>
  914.   {% endif %}
  915. </header>
  916. <script>
  917.   // Search field validation (keep this inline as it's template-specific)
  918.   document.addEventListener('DOMContentLoaded', function () {
  919.       const searchField = document.getElementsByName('p')[0];
  920.       const searchBtn = document.getElementById('btn-search-submit');
  921.       if (searchField) {
  922.           // Prevenir Enter apenas se o campo estiver vazio
  923.           searchField.addEventListener('keypress', function (event) {
  924.               if (event.key === 'Enter') {
  925.                   if (searchField.value.trim() === '') {
  926.                       event.preventDefault();
  927.                   }
  928.                   // Se tiver conteúdo, deixa o submit acontecer naturalmente
  929.               }
  930.           });
  931.           // Controlar o estado do botão
  932.           searchField.addEventListener('input', function () {
  933.               if (searchBtn) {
  934.                   if (searchField.value.trim() !== '') {
  935.                       searchBtn.disabled = false;
  936.                   } else {
  937.                       searchBtn.disabled = true;
  938.                   }
  939.               }
  940.           });
  941.       }
  942.   });
  943. </script>
  944. ""partials/variants/header_custom.html.twig""/var/www/html/theme/templates/partials/variants/header_custom.html.twig");
  945.     }
  946. }