var/cache/dev/twig/2e/2ef88738fd4fb04340d47e7a8445d9e97300cee256efab8203c4567fa97660c8.php line 40

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. /* @SyliusShop/Brand/Product/index.html.twig */
  14. class __TwigTemplate_c631a5b18d08ce162156cf21d8d4325682a9337641913aada355805f5b4f8606 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.             'breadcrumb' => [$this'block_breadcrumb'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@SyliusShop/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Brand/Product/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Brand/Product/index.html.twig"));
  40.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Brand/Product/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.products"), "html"nulltrue);
  56.         echo " | ";
  57.         $this->displayParentBlock("title"$context$blocks);
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.         
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  62.     }
  63.     // line 5
  64.     public function block_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  71.         // line 6
  72.         echo "    <div class=\"max-container-5 px-0\">
  73.         ";
  74.         // line 7
  75.         $this->displayBlock('breadcrumb'$context$blocks);
  76.         // line 10
  77.         echo "        <div class=\" py-2 py-md-3 my-2 my-md-3\">
  78.             ";
  79.         // line 11
  80.         $this->loadTemplate("@SyliusShop/Brand/Product/Index/_header.html.twig""@SyliusShop/Brand/Product/index.html.twig"11)->display(twig_array_merge($context, ["brand" => (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'11$this->source); })())]));
  81.         // line 12
  82.         echo "        </div>
  83.         ";
  84.         // line 13
  85.         if ((twig_length_filter($this->env, (isset($context["taxons"]) || array_key_exists("taxons"$context) ? $context["taxons"] : (function () { throw new RuntimeError('Variable "taxons" does not exist.'13$this->source); })())) > 0)) {
  86.             // line 19
  87.             echo "            ";
  88.             $context['_parent'] = $context;
  89.             $context['_seq'] = twig_ensure_traversable((isset($context["taxons"]) || array_key_exists("taxons"$context) ? $context["taxons"] : (function () { throw new RuntimeError('Variable "taxons" does not exist.'19$this->source); })()));
  90.             foreach ($context['_seq'] as $context["_key"] => $context["taxon"]) {
  91.                 // line 20
  92.                 echo "                 <div class=\"text-grey font-seize py-3\">Catégorie :  <a href=\"";
  93.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("monsieurbiz_sylius_search_taxon", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxon"], "taxon", [], "any"falsefalsefalse20), "translations", [], "any"falsefalsefalse20), 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.'20$this->source); })()), "request", [], "any"falsefalsefalse20), "locale", [], "any"falsefalsefalse20), [], "array"falsefalsefalse20), "slug", [], "any"falsefalsefalse20)]), "html"nulltrue);
  94.                 echo "\" class=\"color-orange\">";
  95.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxon"], "taxon", [], "any"falsefalsefalse20), "name", [], "any"falsefalsefalse20), "html"nulltrue);
  96.                 echo "</a></div>
  97.                 <div class=\"liste-articles pt-md-4 pt-2 pb-md-4 pb-2 mt-xl-2 px-lg-0 px-3\">
  98.                     <div class=\"row mx-n2 mx-n3 mx-lg-n3p mx-xs-n2\" id=\"";
  99.                 // line 22
  100.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["taxon"], "taxon", [], "any"falsefalsefalse22), "name", [], "any"falsefalsefalse22), "html"nulltrue);
  101.                 echo "\">
  102.                         ";
  103.                 // line 23
  104.                 $context['_parent'] = $context;
  105.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["taxon"], "products", [], "any"falsefalsefalse23));
  106.                 foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  107.                     // line 24
  108.                     echo "                            <div class=\"col-lg-3 col-md-4 col-sm-6 col-12 px-3 mb-md-3 mb-4 px-lg-3p mb-lg-5p px-xs-2\">
  109.                                 ";
  110.                     // line 25
  111.                     $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@SyliusShop/Brand/Product/index.html.twig"25)->display(twig_to_array(["product" => $context["product"]]));
  112.                     // line 26
  113.                     echo "                            </div>
  114.                         ";
  115.                 }
  116.                 $_parent $context['_parent'];
  117.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  118.                 $context array_intersect_key($context$_parent) + $_parent;
  119.                 // line 28
  120.                 echo "                    </div>
  121.                 </div>
  122.             ";
  123.             }
  124.             $_parent $context['_parent'];
  125.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxon'], $context['_parent'], $context['loop']);
  126.             $context array_intersect_key($context$_parent) + $_parent;
  127.             // line 31
  128.             echo "        ";
  129.         } else {
  130.             // line 32
  131.             echo "            <span style=\"text-align: center;display: block;\">Il n'y a aucun produit pour le moment...</span>
  132.         ";
  133.         }
  134.         // line 34
  135.         echo "    </div>
  136. ";
  137.         
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  139.         
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  141.     }
  142.     // line 7
  143.     public function block_breadcrumb($context, array $blocks = [])
  144.     {
  145.         $macros $this->macros;
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  150.         // line 8
  151.         echo "            ";
  152.         $this->loadTemplate("@SyliusShop/Brand/Product/Index/_breadcrumb.html.twig""@SyliusShop/Brand/Product/index.html.twig"8)->display(twig_array_merge($context, ["brand" => (isset($context["brand"]) || array_key_exists("brand"$context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.'8$this->source); })())]));
  153.         // line 9
  154.         echo "        ";
  155.         
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  157.         
  158.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  159.     }
  160.     public function getTemplateName()
  161.     {
  162.         return "@SyliusShop/Brand/Product/index.html.twig";
  163.     }
  164.     public function isTraitable()
  165.     {
  166.         return false;
  167.     }
  168.     public function getDebugInfo()
  169.     {
  170.         return array (  178 => 9,  175 => 8,  165 => 7,  154 => 34,  150 => 32,  147 => 31,  139 => 28,  132 => 26,  130 => 25,  127 => 24,  123 => 23,  119 => 22,  111 => 20,  106 => 19,  104 => 13,  101 => 12,  99 => 11,  96 => 10,  94 => 7,  91 => 6,  81 => 5,  60 => 3,  37 => 1,);
  171.     }
  172.     public function getSourceContext()
  173.     {
  174.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  175. {% block title %}{{ 'sylius.ui.products'|trans }} | {{ parent() }}{% endblock %}
  176. {% block content %}
  177.     <div class=\"max-container-5 px-0\">
  178.         {% block breadcrumb %}
  179.             {% include '@SyliusShop/Brand/Product/Index/_breadcrumb.html.twig' with { 'brand' : brand } %}
  180.         {% endblock %}
  181.         <div class=\" py-2 py-md-3 my-2 my-md-3\">
  182.             {% include '@SyliusShop/Brand/Product/Index/_header.html.twig' with { 'brand' : brand } %}
  183.         </div>
  184.         {% if taxons|length > 0 %}
  185. {#            <div>#}
  186. {#                {% for taxon in taxons %}#}
  187. {#                    <div class=\"mb-2\"><a href=\"#{{ taxon.taxon.code }}\" class=\"color-blue-s text-uppercase font-18\"><strong>{{ taxon.taxon.code }}</strong></a></div>#}
  188. {#                {% endfor %}#}
  189. {#            </div>#}
  190.             {% for taxon in taxons %}
  191.                  <div class=\"text-grey font-seize py-3\">Catégorie :  <a href=\"{{ path('monsieurbiz_sylius_search_taxon', {slug: taxon.taxon.translations[app.request.locale].slug}) }}\" class=\"color-orange\">{{ taxon.taxon.name }}</a></div>
  192.                 <div class=\"liste-articles pt-md-4 pt-2 pb-md-4 pb-2 mt-xl-2 px-lg-0 px-3\">
  193.                     <div class=\"row mx-n2 mx-n3 mx-lg-n3p mx-xs-n2\" id=\"{{ taxon.taxon.name }}\">
  194.                         {% for product in taxon.products %}
  195.                             <div class=\"col-lg-3 col-md-4 col-sm-6 col-12 px-3 mb-md-3 mb-4 px-lg-3p mb-lg-5p px-xs-2\">
  196.                                 {% include '@SyliusShop/Product/_box.html.twig' with {'product': product} only %}
  197.                             </div>
  198.                         {% endfor %}
  199.                     </div>
  200.                 </div>
  201.             {% endfor %}
  202.         {% else %}
  203.             <span style=\"text-align: center;display: block;\">Il n'y a aucun produit pour le moment...</span>
  204.         {% endif %}
  205.     </div>
  206. {%  endblock %}
  207. ""@SyliusShop/Brand/Product/index.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Brand/Product/index.html.twig");
  208.     }
  209. }