var/cache/dev/twig/c1/c18f54655be68b420c5d431d291109227ed7c59a875813927bbfbd2e4c3bb57f.php line 33

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/product/product-category-section.html.twig */
  14. class __TwigTemplate_85b2bf8789cff92098c9dcfb965f8968f30fc07fcbb4f36e0d4d2108ca200cd5 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/product/product-category-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/product/product-category-section.html.twig"));
  33.         // line 1
  34.         $macros["__internal_84ec053fdd118f4a7b405a006a03f7de1c344fc7699137858777c9d7c79ba885"] = $this->macros["__internal_84ec053fdd118f4a7b405a006a03f7de1c344fc7699137858777c9d7c79ba885"] = $this->loadTemplate("utils.html.twig""website/product/product-category-section.html.twig"1)->unwrap();
  35.         // line 2
  36.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["productCategories"]) || array_key_exists("productCategories"$context) ? $context["productCategories"] : (function () { throw new RuntimeError('Variable "productCategories" does not exist.'2$this->source); })())), 0))) {
  37.             // line 3
  38.             echo "\t";
  39.             $context["visibles"] = 10;
  40.             // line 4
  41.             echo "\t<section 
  42. \t\tclass=\"pag-sec ";
  43.             // line 5
  44.             if ((array_key_exists("section"$context) && twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'5$this->source); })()), "background", [], "any"falsefalsefalse5))) {
  45.                 echo " sec-bg-alt ";
  46.             }
  47.             echo "\">
  48. \t    <div id=\"categories-container\" class=\"container\" data-status=\"principal\">
  49. \t        <header class=\"tit-sec tx-centro\">
  50. \t            <h2>";
  51.             // line 8
  52.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("main_categories""home"), "html"nulltrue);
  53.             echo "</h2>
  54. \t        </header>
  55. \t        <div class=\"nuvem-tags\">
  56. \t        \t";
  57.             // line 11
  58.             $context['_parent'] = $context;
  59.             $context['_seq'] = twig_ensure_traversable((isset($context["productCategories"]) || array_key_exists("productCategories"$context) ? $context["productCategories"] : (function () { throw new RuntimeError('Variable "productCategories" does not exist.'11$this->source); })()));
  60.             foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
  61.                 // line 12
  62.                 echo "\t        \t\t<a href=\"";
  63.                 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["productCategory"], "slug", [], "any"falsefalsefalse12)]), "html"nulltrue);
  64.                 echo "\" class=\"tag";
  65.                 echo ((twig_get_attribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsefalse12)) ? (" icon") : (" txt"));
  66.                 echo "\">
  67. \t        \t\t\t";
  68.                 // line 13
  69.                 if (twig_get_attribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsefalse13)) {
  70.                     // line 14
  71.                     echo "\t        \t\t\t\t";
  72.                     echo twig_call_macro($macros["__internal_84ec053fdd118f4a7b405a006a03f7de1c344fc7699137858777c9d7c79ba885"], "macro_imgUpload", [twig_get_attribute($this->env$this->source$context["productCategory"], "icon", [], "any"falsefalsefalse14), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_OTHERS"), "category-icon"twig_get_attribute($this->env$this->source$context["productCategory"], "category", [], "any"falsefalsefalse14)], 14$context$this->getSourceContext());
  73.                     echo "
  74. \t        \t\t\t";
  75.                 }
  76.                 // line 16
  77.                 echo "\t        \t\t\t";
  78.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["productCategory"], "category", [], "any"falsefalsefalse16), "html"nulltrue);
  79.                 echo "
  80. \t        \t\t</a>
  81. \t            ";
  82.             }
  83.             $_parent $context['_parent'];
  84.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productCategory'], $context['_parent'], $context['loop']);
  85.             $context array_intersect_key($context$_parent) + $_parent;
  86.             // line 19
  87.             echo "\t        </div>
  88. \t        <footer>
  89. \t        \t";
  90.             // line 21
  91.             if ((=== twig_compare(twig_length_filter($this->env, (isset($context["productCategories"]) || array_key_exists("productCategories"$context) ? $context["productCategories"] : (function () { throw new RuntimeError('Variable "productCategories" does not exist.'21$this->source); })())), (isset($context["visibles"]) || array_key_exists("visibles"$context) ? $context["visibles"] : (function () { throw new RuntimeError('Variable "visibles" does not exist.'21$this->source); })())))) {
  92.                 // line 22
  93.                 echo "\t\t        \t<button id=\"btn-categories\" class=\"btn-ver\">
  94. \t\t        \t\t<span class=\"txt-show\">";
  95.                 // line 23
  96.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_all""home"), "html"nulltrue);
  97.                 echo "</span>
  98. \t\t        \t\t<span class=\"txt-hide\">";
  99.                 // line 24
  100.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_main""home"), "html"nulltrue);
  101.                 echo "</span>
  102. \t\t        \t</button>
  103. \t        \t";
  104.             }
  105.             // line 27
  106.             echo "\t        </footer>
  107. \t    </div>
  108. \t</section>
  109. ";
  110.         }
  111.         
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  113.         
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  115.     }
  116.     public function getTemplateName()
  117.     {
  118.         return "website/product/product-category-section.html.twig";
  119.     }
  120.     public function isTraitable()
  121.     {
  122.         return false;
  123.     }
  124.     public function getDebugInfo()
  125.     {
  126.         return array (  115 => 27,  109 => 24,  105 => 23,  102 => 22,  100 => 21,  96 => 19,  86 => 16,  80 => 14,  78 => 13,  71 => 12,  67 => 11,  61 => 8,  53 => 5,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  127.     }
  128.     public function getSourceContext()
  129.     {
  130.         return new Source("{% from 'utils.html.twig' import imgUpload %}
  131. {% if productCategories|length > 0 %}
  132. \t{% set visibles = 10 %}
  133. \t<section 
  134. \t\tclass=\"pag-sec {% if section is defined and section.background %} sec-bg-alt {% endif %}\">
  135. \t    <div id=\"categories-container\" class=\"container\" data-status=\"principal\">
  136. \t        <header class=\"tit-sec tx-centro\">
  137. \t            <h2>{{ getLanguage('main_categories', 'home') }}</h2>
  138. \t        </header>
  139. \t        <div class=\"nuvem-tags\">
  140. \t        \t{% for productCategory in productCategories %}
  141. \t        \t\t<a href=\"{{ path('productListCategory', { type: 'produtos', slug: productCategory.slug }) }}\" class=\"tag{{ (productCategory.icon)? ' icon' : ' txt' }}\">
  142. \t        \t\t\t{% if productCategory.icon %}
  143. \t        \t\t\t\t{{ imgUpload(productCategory.icon, enum('AbstractEnum::PATH_OTHERS'), 'category-icon', productCategory.category) }}
  144. \t        \t\t\t{% endif %}
  145. \t        \t\t\t{{ productCategory.category }}
  146. \t        \t\t</a>
  147. \t            {% endfor %}
  148. \t        </div>
  149. \t        <footer>
  150. \t        \t{% if productCategories|length > visibles %}
  151. \t\t        \t<button id=\"btn-categories\" class=\"btn-ver\">
  152. \t\t        \t\t<span class=\"txt-show\">{{ getLanguage('see_all', 'home') }}</span>
  153. \t\t        \t\t<span class=\"txt-hide\">{{ getLanguage('see_main', 'home') }}</span>
  154. \t\t        \t</button>
  155. \t        \t{% endif %}
  156. \t        </footer>
  157. \t    </div>
  158. \t</section>
  159. {% endif %}""website/product/product-category-section.html.twig""/var/www/html/templates/website/product/product-category-section.html.twig");
  160.     }
  161. }