var/cache/dev/twig/d6/d67c96aad24937674d0c4d23c4e10cde071d3916b02e686877a63b10b2a7e9d4.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/index.html.twig */
  14. class __TwigTemplate_762fe4d98f2415a977b8ac72c29204252a25e82e7b198c81f3caadd8f7f01b07 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/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/index.html.twig"));
  40.         // line 2
  41.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusShop/Common/Macro/messages.html.twig""@SyliusShop/Brand/index.html.twig"2)->unwrap();
  42.         // line 1
  43.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Brand/index.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.brands"), "html"nulltrue);
  59.         echo " | ";
  60.         $this->displayParentBlock("title"$context$blocks);
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  65.     }
  66.     // line 5
  67.     public function block_content($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         // line 6
  75.         echo "<div class=\"px-2\">
  76.     <div class=\"max-container-5 px-0\">
  77.         ";
  78.         // line 8
  79.         $this->displayBlock('breadcrumb'$context$blocks);
  80.         // line 11
  81.         echo "        <div class=\"py-2 py-md-3 my-2 text-center\">
  82.             ";
  83.         // line 12
  84.         $this->loadTemplate("@SyliusShop/Brand/Index/_header.html.twig""@SyliusShop/Brand/index.html.twig"12)->display($context);
  85.         // line 13
  86.         echo "        </div>
  87.         
  88.         ";
  89.         // line 15
  90.         if ((twig_length_filter($this->env, (isset($context["brands"]) || array_key_exists("brands"$context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.'15$this->source); })())) > 0)) {
  91.             // line 16
  92.             echo "            <div class=\"row mx-n2 mx-md-n3 py-md-4 py-3\">
  93.                 ";
  94.             // line 17
  95.             $context['_parent'] = $context;
  96.             $context['_seq'] = twig_ensure_traversable((isset($context["brands"]) || array_key_exists("brands"$context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.'17$this->source); })()));
  97.             $context['loop'] = [
  98.               'parent' => $context['_parent'],
  99.               'index0' => 0,
  100.               'index'  => 1,
  101.               'first'  => true,
  102.             ];
  103.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  104.                 $length count($context['_seq']);
  105.                 $context['loop']['revindex0'] = $length 1;
  106.                 $context['loop']['revindex'] = $length;
  107.                 $context['loop']['length'] = $length;
  108.                 $context['loop']['last'] = === $length;
  109.             }
  110.             foreach ($context['_seq'] as $context["_key"] => $context["brand"]) {
  111.                 // line 18
  112.                 echo "                    <div class=\"col-lg-3 col-md-4 col-6 px-2 px-md-3 mb-lg-5 mb-md-4 mb-3\">
  113.                         <div class=\"h-100 bg-kit border\">
  114.                             <a href=\"";
  115.                 // line 20
  116.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_brand_product_index", ["code" => twig_get_attribute($this->env$this->source$context["brand"], "code", [], "any"falsefalsefalse20)]), "html"nulltrue);
  117.                 echo "\" >
  118.                                 ";
  119.                 // line 21
  120.                 $this->loadTemplate("@SyliusShop/Brand/Box/_content.html.twig""@SyliusShop/Brand/index.html.twig"21)->display(twig_array_merge($context, ["brand" => $context["brand"]]));
  121.                 // line 22
  122.                 echo "                            </a>
  123.                         </div>
  124.                     </div>
  125.                 ";
  126.                 ++$context['loop']['index0'];
  127.                 ++$context['loop']['index'];
  128.                 $context['loop']['first'] = false;
  129.                 if (isset($context['loop']['length'])) {
  130.                     --$context['loop']['revindex0'];
  131.                     --$context['loop']['revindex'];
  132.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  133.                 }
  134.             }
  135.             $_parent $context['_parent'];
  136.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['brand'], $context['_parent'], $context['loop']);
  137.             $context array_intersect_key($context$_parent) + $_parent;
  138.             // line 26
  139.             echo "            </div>
  140.         ";
  141.         } else {
  142.             // line 28
  143.             echo "            <div class=\"max-content text-center py-4\">
  144.                 <div class=\"d-inline-block\">";
  145.             // line 29
  146.             echo twig_call_macro($macros["messages"], "macro_info", ["app.common.no_brand"], 29$context$this->getSourceContext());
  147.             echo "</div> 
  148.             </div>
  149.         ";
  150.         }
  151.         // line 32
  152.         echo "    </div>
  153. </div>
  154. ";
  155.         
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  157.         
  158.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  159.     }
  160.     // line 8
  161.     public function block_breadcrumb($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(), "block""breadcrumb"));
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  168.         // line 9
  169.         echo "            ";
  170.         $this->loadTemplate("@SyliusShop/Brand/Index/_breadcrumb.html.twig""@SyliusShop/Brand/index.html.twig"9)->display($context);
  171.         // line 10
  172.         echo "        ";
  173.         
  174.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  175.         
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  177.     }
  178.     public function getTemplateName()
  179.     {
  180.         return "@SyliusShop/Brand/index.html.twig";
  181.     }
  182.     public function isTraitable()
  183.     {
  184.         return false;
  185.     }
  186.     public function getDebugInfo()
  187.     {
  188.         return array (  196 => 10,  193 => 9,  183 => 8,  171 => 32,  165 => 29,  162 => 28,  158 => 26,  141 => 22,  139 => 21,  135 => 20,  131 => 18,  114 => 17,  111 => 16,  109 => 15,  105 => 13,  103 => 12,  100 => 11,  98 => 8,  94 => 6,  84 => 5,  63 => 3,  52 => 1,  50 => 2,  37 => 1,);
  189.     }
  190.     public function getSourceContext()
  191.     {
  192.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  193. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  194. {% block title %}{{ 'app.ui.brands'|trans }} | {{ parent() }}{% endblock %}
  195. {% block content %}
  196. <div class=\"px-2\">
  197.     <div class=\"max-container-5 px-0\">
  198.         {% block breadcrumb %}
  199.             {% include '@SyliusShop/Brand/Index/_breadcrumb.html.twig' %}
  200.         {% endblock %}
  201.         <div class=\"py-2 py-md-3 my-2 text-center\">
  202.             {% include '@SyliusShop/Brand/Index/_header.html.twig' %}
  203.         </div>
  204.         
  205.         {% if brands|length > 0 %}
  206.             <div class=\"row mx-n2 mx-md-n3 py-md-4 py-3\">
  207.                 {% for brand in brands %}
  208.                     <div class=\"col-lg-3 col-md-4 col-6 px-2 px-md-3 mb-lg-5 mb-md-4 mb-3\">
  209.                         <div class=\"h-100 bg-kit border\">
  210.                             <a href=\"{{ path('app_shop_brand_product_index', {'code' : brand.code}) }}\" >
  211.                                 {% include \"@SyliusShop/Brand/Box/_content.html.twig\" with {'brand' : brand } %}
  212.                             </a>
  213.                         </div>
  214.                     </div>
  215.                 {% endfor %}
  216.             </div>
  217.         {% else %}
  218.             <div class=\"max-content text-center py-4\">
  219.                 <div class=\"d-inline-block\">{{ messages.info('app.common.no_brand') }}</div> 
  220.             </div>
  221.         {% endif %}
  222.     </div>
  223. </div>
  224. {%  endblock %}
  225. ""@SyliusShop/Brand/index.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Brand/index.html.twig");
  226.     }
  227. }