var/cache/dev/twig/c0/c0c4f5a4410210bf1a26a276f7c8236d1ab9dab0514f4a78a2dfde8728fb50c4.php line 82

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. /* website/includes/search-form-section.html.twig */
  14. class __TwigTemplate_afa00d553788ca6f404ebb114b12d47be7adb1b0061f65cd830ff30f431b0e9f extends 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.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/includes/search-form-section.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/includes/search-form-section.html.twig"));
  33.         // line 1
  34.         $macros["__internal_b338744bdc6e4444a2355805afb5237c7bc29cd323930e7491be4f32beb3f403"] = $this->macros["__internal_b338744bdc6e4444a2355805afb5237c7bc29cd323930e7491be4f32beb3f403"] = $this->loadTemplate("utils.html.twig""website/includes/search-form-section.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "<form class=\"busca\" action=\"";
  37.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("productListSearch");
  38.         echo "\" method=\"GET\">
  39.     ";
  40.         // line 3
  41.         if ((( !(isset($context["isDarkTheme"]) || array_key_exists("isDarkTheme"$context) ? $context["isDarkTheme"] : (function () { throw new RuntimeError('Variable "isDarkTheme" does not exist.'3$this->source); })()) && (isset($context["hasProducts"]) || array_key_exists("hasProducts"$context) ? $context["hasProducts"] : (function () { throw new RuntimeError('Variable "hasProducts" does not exist.'3$this->source); })())) && (=== twig_compare(twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'3$this->source); })())), 0)))) {
  42.             // line 4
  43.             echo "        <button type=\"button\" id=\"btn_categorias\" class=\"btn-categorias\">
  44.             <i class=\"ico\">";
  45.             // line 5
  46.             echo twig_call_macro($macros["__internal_b338744bdc6e4444a2355805afb5237c7bc29cd323930e7491be4f32beb3f403"], "macro_ico", ["apps"], 5$context$this->getSourceContext());
  47.             echo "</i>
  48.             <span>";
  49.             // line 6
  50.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories""search_form"), "html"nulltrue);
  51.             echo "</span>
  52.             <i class=\"ico\">";
  53.             // line 7
  54.             echo twig_call_macro($macros["__internal_b338744bdc6e4444a2355805afb5237c7bc29cd323930e7491be4f32beb3f403"], "macro_ico", ["chevron-down"], 7$context$this->getSourceContext());
  55.             echo "</i>
  56.         </button>
  57.         <div class=\"box-categorias\">
  58.             <div>
  59.                 ";
  60.             // line 11
  61.             $context['_parent'] = $context;
  62.             $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'11$this->source); })()));
  63.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  64.                 // line 12
  65.                 echo "                    ";
  66.                 if (twig_get_attribute($this->env$this->source$context["category"], "hasProduct", [], "method"falsefalsefalse12)) {
  67.                     // line 13
  68.                     echo "                        <a href=\"";
  69.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("productListCategory", ["type" => "produtos""slug" => twig_get_attribute($this->env$this->source$context["category"], "slug", [], "any"falsefalsefalse13)]), "html"nulltrue);
  70.                     echo "\">
  71.                             ";
  72.                     // line 14
  73.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse14), "html"nulltrue);
  74.                     echo "
  75.                         </a>
  76.                     ";
  77.                 }
  78.                 // line 17
  79.                 echo "                ";
  80.             }
  81.             $_parent $context['_parent'];
  82.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  83.             $context array_intersect_key($context$_parent) + $_parent;
  84.             // line 18
  85.             echo "            </div>
  86.         </div>
  87.     ";
  88.         }
  89.         // line 21
  90.         echo "    <input type=\"text\" id=\"search\" name=\"search\" placeholder=\"";
  91.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("course_to_study""search_form"), "html"nulltrue);
  92.         echo "\" autocomplete=\"off\">
  93.     <button type=\"submit\" class=\"btn-buscar\">
  94.         <i>";
  95.         // line 23
  96.         echo twig_call_macro($macros["__internal_b338744bdc6e4444a2355805afb5237c7bc29cd323930e7491be4f32beb3f403"], "macro_ico", ["search"], 23$context$this->getSourceContext());
  97.         echo "</i>
  98.     </button>
  99.     <div id=\"search_suggestions\" class=\"search-suggestions\" data-status=\"start\" request=\"";
  100.         // line 25
  101.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("productListSuggestionSearch");
  102.         echo "\">
  103.         <span class=\"item item-start\">
  104.             <i class=\"type-search\"></i>
  105.             <span>";
  106.         // line 29
  107.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("course_to_study""search_form"), "html"nulltrue);
  108.         echo "</span>
  109.         </span>
  110.         <span class=\"item item-wait\">
  111.             <i class=\"type-search\"></i>
  112.             <span>";
  113.         // line 34
  114.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("searching_for""search_form"), "html"nulltrue);
  115.         echo " <b class=\"js--search-term\">&hellip;</b></span>
  116.         </span>
  117.         <span class=\"item item-end-empty\">
  118.             <i class=\"type-search\"></i>
  119.             <span>";
  120.         // line 39
  121.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("no_results_for""search_form"), "html"nulltrue);
  122.         echo " <b class=\"js--search-term\">&hellip;</b></span>
  123.         </span>
  124.         <a id=\"init_link\" class=\"item item-end-full\" href=\"\">
  125.             <i class=\"type-search\"></i>
  126.             <span>";
  127.         // line 44
  128.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_all_courses_with""search_form"), "html"nulltrue);
  129.         echo " <b class=\"js--search-term\">&hellip;</b></span>
  130.         </a>
  131.         <div class=\"loader-container\">
  132.             <i class=\"loader\">";
  133.         // line 48
  134.         echo twig_call_macro($macros["__internal_b338744bdc6e4444a2355805afb5237c7bc29cd323930e7491be4f32beb3f403"], "macro_ico", ["loader-wish"], 48$context$this->getSourceContext());
  135.         echo "</i>
  136.         </div>
  137.         <nav id=\"search_suggestions_links\" class=\"found-links\"></nav>
  138.     </div>
  139. </form>";
  140.         
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  142.         
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  144.     }
  145.     public function getTemplateName()
  146.     {
  147.         return "website/includes/search-form-section.html.twig";
  148.     }
  149.     public function isTraitable()
  150.     {
  151.         return false;
  152.     }
  153.     public function getDebugInfo()
  154.     {
  155.         return array (  148 => 48,  141 => 44,  133 => 39,  125 => 34,  117 => 29,  110 => 25,  105 => 23,  99 => 21,  94 => 18,  88 => 17,  82 => 14,  77 => 13,  74 => 12,  70 => 11,  63 => 7,  59 => 6,  55 => 5,  52 => 4,  50 => 3,  45 => 2,  43 => 1,);
  156.     }
  157.     public function getSourceContext()
  158.     {
  159.         return new Source("{% from 'utils.html.twig' import ico %}
  160. <form class=\"busca\" action=\"{{ path('productListSearch') }}\" method=\"GET\">
  161.     {% if not isDarkTheme and hasProducts and categories|length > 0 %}
  162.         <button type=\"button\" id=\"btn_categorias\" class=\"btn-categorias\">
  163.             <i class=\"ico\">{{ ico('apps') }}</i>
  164.             <span>{{ getLanguage('categories', 'search_form') }}</span>
  165.             <i class=\"ico\">{{ ico('chevron-down') }}</i>
  166.         </button>
  167.         <div class=\"box-categorias\">
  168.             <div>
  169.                 {% for category in categories %}
  170.                     {% if category.hasProduct() %}
  171.                         <a href=\"{{ path('productListCategory', { type: 'produtos', slug: category.slug }) }}\">
  172.                             {{ category.category }}
  173.                         </a>
  174.                     {% endif %}
  175.                 {% endfor %}
  176.             </div>
  177.         </div>
  178.     {% endif %}
  179.     <input type=\"text\" id=\"search\" name=\"search\" placeholder=\"{{ getLanguage('course_to_study', 'search_form') }}\" autocomplete=\"off\">
  180.     <button type=\"submit\" class=\"btn-buscar\">
  181.         <i>{{ ico('search') }}</i>
  182.     </button>
  183.     <div id=\"search_suggestions\" class=\"search-suggestions\" data-status=\"start\" request=\"{{ path('productListSuggestionSearch') }}\">
  184.         <span class=\"item item-start\">
  185.             <i class=\"type-search\"></i>
  186.             <span>{{ getLanguage('course_to_study', 'search_form') }}</span>
  187.         </span>
  188.         <span class=\"item item-wait\">
  189.             <i class=\"type-search\"></i>
  190.             <span>{{ getLanguage('searching_for', 'search_form') }} <b class=\"js--search-term\">&hellip;</b></span>
  191.         </span>
  192.         <span class=\"item item-end-empty\">
  193.             <i class=\"type-search\"></i>
  194.             <span>{{ getLanguage('no_results_for', 'search_form') }} <b class=\"js--search-term\">&hellip;</b></span>
  195.         </span>
  196.         <a id=\"init_link\" class=\"item item-end-full\" href=\"\">
  197.             <i class=\"type-search\"></i>
  198.             <span>{{ getLanguage('see_all_courses_with', 'search_form') }} <b class=\"js--search-term\">&hellip;</b></span>
  199.         </a>
  200.         <div class=\"loader-container\">
  201.             <i class=\"loader\">{{ ico('loader-wish') }}</i>
  202.         </div>
  203.         <nav id=\"search_suggestions_links\" class=\"found-links\"></nav>
  204.     </div>
  205. </form>""website/includes/search-form-section.html.twig""/var/www/html/templates/website/includes/search-form-section.html.twig");
  206.     }
  207. }