var/cache/dev/twig/e1/e18223e12ae59daa5f6eae517d75450c6d23da177772b358f71276e7136dc15c.php line 48

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-list.html.twig */
  14. class __TwigTemplate_f32ac5d0b756da3c0be4b22d0c02960909569bc0d16ad31cc0c2e72b64f7752d 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->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "website/main.template.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-list.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-list.html.twig"));
  38.         $this->parent $this->loadTemplate("website/main.template.html.twig""website/product/product-list.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "
  55.     ";
  56.         // line 5
  57.         $this->loadTemplate("website/includes/search-section.html.twig""website/product/product-list.html.twig"5)->display($context);
  58.         // line 6
  59.         echo "
  60.     ";
  61.         // line 7
  62.         $this->loadTemplate("website/product/product-list.html.twig""website/product/product-list.html.twig"7"1032694901")->display(twig_array_merge($context, ["pageTitle" => (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'7$this->source); })())]));
  63.         // line 12
  64.         echo "
  65. \t<div class=\"container\">
  66. \t\t<div class=\"products-list\">
  67. \t\t\t";
  68.         // line 15
  69.         $context['_parent'] = $context;
  70.         $context['_seq'] = twig_ensure_traversable((isset($context["productOffers"]) || array_key_exists("productOffers"$context) ? $context["productOffers"] : (function () { throw new RuntimeError('Variable "productOffers" does not exist.'15$this->source); })()));
  71.         $context['loop'] = [
  72.           'parent' => $context['_parent'],
  73.           'index0' => 0,
  74.           'index'  => 1,
  75.           'first'  => true,
  76.         ];
  77.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  78.             $length count($context['_seq']);
  79.             $context['loop']['revindex0'] = $length 1;
  80.             $context['loop']['revindex'] = $length;
  81.             $context['loop']['length'] = $length;
  82.             $context['loop']['last'] = === $length;
  83.         }
  84.         foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  85.             // line 16
  86.             echo "\t\t\t\t";
  87.             $this->loadTemplate("website/product/product-item-box-default.html.twig""website/product/product-list.html.twig"16)->display(twig_array_merge($context, ["item" => $context["course"]]));
  88.             // line 17
  89.             echo "\t\t\t";
  90.             ++$context['loop']['index0'];
  91.             ++$context['loop']['index'];
  92.             $context['loop']['first'] = false;
  93.             if (isset($context['loop']['length'])) {
  94.                 --$context['loop']['revindex0'];
  95.                 --$context['loop']['revindex'];
  96.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  97.             }
  98.         }
  99.         $_parent $context['_parent'];
  100.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  101.         $context array_intersect_key($context$_parent) + $_parent;
  102.         // line 18
  103.         echo "\t\t</div>
  104. \t</div>
  105. ";
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     public function getTemplateName()
  112.     {
  113.         return "website/product/product-list.html.twig";
  114.     }
  115.     public function isTraitable()
  116.     {
  117.         return false;
  118.     }
  119.     public function getDebugInfo()
  120.     {
  121.         return array (  117 => 18,  103 => 17,  100 => 16,  83 => 15,  78 => 12,  76 => 7,  73 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
  122.     }
  123.     public function getSourceContext()
  124.     {
  125.         return new Source("{% extends 'website/main.template.html.twig' %}
  126. {% block body %}
  127.     {% include 'website/includes/search-section.html.twig' %}
  128.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: title }%}
  129.         {% block migalhas %}
  130. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;<span>{{ title }}</span>
  131.         {% endblock %}
  132.     {% endembed %}
  133. \t<div class=\"container\">
  134. \t\t<div class=\"products-list\">
  135. \t\t\t{% for course in productOffers %}
  136. \t\t\t\t{% include 'website/product/product-item-box-default.html.twig' with {'item': course } %}
  137. \t\t\t{% endfor %}
  138. \t\t</div>
  139. \t</div>
  140. {% endblock %}""website/product/product-list.html.twig""/var/www/html/templates/website/product/product-list.html.twig");
  141.     }
  142. }
  143. /* website/product/product-list.html.twig */
  144. class __TwigTemplate_f32ac5d0b756da3c0be4b22d0c02960909569bc0d16ad31cc0c2e72b64f7752d___1032694901 extends Template
  145. {
  146.     private $source;
  147.     private $macros = [];
  148.     public function __construct(Environment $env)
  149.     {
  150.         parent::__construct($env);
  151.         $this->source $this->getSourceContext();
  152.         $this->blocks = [
  153.             'migalhas' => [$this'block_migalhas'],
  154.         ];
  155.     }
  156.     protected function doGetParent(array $context)
  157.     {
  158.         // line 7
  159.         return "website/includes/page-title.html.twig";
  160.     }
  161.     protected function doDisplay(array $context, array $blocks = [])
  162.     {
  163.         $macros $this->macros;
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-list.html.twig"));
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-list.html.twig"));
  168.         $this->parent $this->loadTemplate("website/includes/page-title.html.twig""website/product/product-list.html.twig"7);
  169.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  170.         
  171.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  172.         
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  174.     }
  175.     // line 8
  176.     public function block_migalhas($context, array $blocks = [])
  177.     {
  178.         $macros $this->macros;
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  182.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  183.         // line 9
  184.         echo "\t\t\t<a href=\"";
  185.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  186.         echo "\">";
  187.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home""product"), "html"nulltrue);
  188.         echo "</a>&ensp;/&ensp;<span>";
  189.         echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'9$this->source); })()), "html"nulltrue);
  190.         echo "</span>
  191.         ";
  192.         
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  194.         
  195.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  196.     }
  197.     public function getTemplateName()
  198.     {
  199.         return "website/product/product-list.html.twig";
  200.     }
  201.     public function isTraitable()
  202.     {
  203.         return false;
  204.     }
  205.     public function getDebugInfo()
  206.     {
  207.         return array (  224 => 9,  214 => 8,  191 => 7,  117 => 18,  103 => 17,  100 => 16,  83 => 15,  78 => 12,  76 => 7,  73 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
  208.     }
  209.     public function getSourceContext()
  210.     {
  211.         return new Source("{% extends 'website/main.template.html.twig' %}
  212. {% block body %}
  213.     {% include 'website/includes/search-section.html.twig' %}
  214.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: title }%}
  215.         {% block migalhas %}
  216. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'product') }}</a>&ensp;/&ensp;<span>{{ title }}</span>
  217.         {% endblock %}
  218.     {% endembed %}
  219. \t<div class=\"container\">
  220. \t\t<div class=\"products-list\">
  221. \t\t\t{% for course in productOffers %}
  222. \t\t\t\t{% include 'website/product/product-item-box-default.html.twig' with {'item': course } %}
  223. \t\t\t{% endfor %}
  224. \t\t</div>
  225. \t</div>
  226. {% endblock %}""website/product/product-list.html.twig""/var/www/html/templates/website/product/product-list.html.twig");
  227.     }
  228. }