var/cache/dev/twig/0c/0cdfc811b2b05ab1401d6c6e9e4ba2403c2a76e8f38218f3e77cbbb73f184fdc.php line 107

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/Product/index.html.twig */
  14. class __TwigTemplate_8ec13b9aa03e98134c7f18cfd2146f57c4d716fecd08887a740570e0a1d8eb56 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.             'banner' => [$this'block_banner'],
  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-large.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/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/Product/index.html.twig"));
  40.         $this->parent $this->loadTemplate("@SyliusShop/layout-large.html.twig""@SyliusShop/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 4
  48.     public function block_banner($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""banner"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  55.         // line 5
  56.         echo "    ";
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 9
  63.     public function block_content($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  70.         // line 10
  71.         echo "
  72.    ";
  73.         // line 19
  74.         echo "
  75.         <div class=\"grid-list-products\">
  76.     ";
  77.         // line 22
  78.         $this->displayBlock('breadcrumb'$context$blocks);
  79.         // line 29
  80.         echo "    <div class=\"filters\">
  81.     ";
  82.         // line 32
  83.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.product:filters", ["originalRequest" => twig_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.'32$this->source); })()), "request", [], "any"falsefalsefalse32)]));
  84.         echo "
  85.     ";
  86.         // line 39
  87.         echo "
  88.     ";
  89.         // line 41
  90.         echo "
  91.     </div>
  92.     <div class=\"column-list-products\">
  93.         ";
  94.         // line 46
  95.         $macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@SyliusShop/Product/index.html.twig"46)->unwrap();
  96.         // line 47
  97.         echo "        ";
  98.         $macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""@SyliusShop/Product/index.html.twig"47)->unwrap();
  99.         // line 48
  100.         echo "
  101.         <div class=\"ui breadcrumb desktop-only\">
  102.             <a href=\"";
  103.         // line 50
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  105.         echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  106.             <div class=\"divider\"> / </div>
  107.             <a href=\"#\" class=\"section\">";
  108.         // line 52
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html"nulltrue);
  110.         echo "</a>
  111.         </div>
  112.         <h1 class=\"page__title\">
  113.             <span class=\"page__tagline\">";
  114.         // line 56
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html"nulltrue);
  116.         echo "</span>
  117.             ";
  118.         // line 57
  119.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.decouvrez"), "html"nulltrue);
  120.         echo "
  121.         </h1>
  122.         <p>
  123.          ";
  124.         // line 60
  125.         echo $this->env->getFunction('bitbag_cms_render_block')->getCallable()("intro_listeproduit");
  126.         echo "
  127.         </p>
  128.         <div class=\"ui clearing hidden divider\"></div>
  129.         ";
  130.         // line 70
  131.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'70$this->source); })()), "data", [], "any"falsefalsefalse70)) > 0)) {
  132.             // line 71
  133.             echo "            <div class=\"products__card-grid\" id=\"products\" ";
  134.             echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("products");
  135.             echo ">
  136.                 ";
  137.             // line 72
  138.             $context['_parent'] = $context;
  139.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'72$this->source); })()), "data", [], "any"falsefalsefalse72));
  140.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  141.                 // line 73
  142.                 echo "                    ";
  143.                 echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.box", ["product" => $context["product"]]);
  144.                 echo "
  145.                 ";
  146.             }
  147.             $_parent $context['_parent'];
  148.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  149.             $context array_intersect_key($context$_parent) + $_parent;
  150.             // line 75
  151.             echo "            </div>
  152.             <div class=\"ui hidden divider\"></div>
  153.             ";
  154.             // line 78
  155.             echo twig_call_macro($macros["pagination"], "macro_simple", [twig_get_attribute($this->env$this->source, (isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'78$this->source); })()), "data", [], "any"falsefalsefalse78), ["next_message" => ">""prev_message" => "<"]], 78$context$this->getSourceContext());
  156.             echo "
  157.         ";
  158.         } else {
  159.             // line 80
  160.             echo "           <p class=\"message\">
  161.                 ";
  162.             // line 81
  163.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.no_results_shop"), "html"nulltrue);
  164.             echo "
  165.             <p>
  166.         ";
  167.         }
  168.         // line 84
  169.         echo "
  170.     </div>
  171. </div>
  172. ";
  173.         
  174.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  175.         
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  177.     }
  178.     // line 22
  179.     public function block_breadcrumb($context, array $blocks = [])
  180.     {
  181.         $macros $this->macros;
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  186.         // line 23
  187.         echo "        <div class=\"ui breadcrumb mobile-only\">
  188.             <a href=\"";
  189.         // line 24
  190.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  191.         echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  192.             <div class=\"divider\"> / </div>
  193.             <a href=\"#\" class=\"section\">";
  194.         // line 26
  195.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html"nulltrue);
  196.         echo "</a>
  197.         </div>
  198.     ";
  199.         
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  201.         
  202.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  203.     }
  204.     public function getTemplateName()
  205.     {
  206.         return "@SyliusShop/Product/index.html.twig";
  207.     }
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     public function getDebugInfo()
  213.     {
  214.         return array (  236 => 26,  231 => 24,  228 => 23,  218 => 22,  205 => 84,  199 => 81,  196 => 80,  191 => 78,  186 => 75,  177 => 73,  173 => 72,  168 => 71,  166 => 70,  153 => 60,  147 => 57,  143 => 56,  136 => 52,  131 => 50,  127 => 48,  124 => 47,  122 => 46,  115 => 41,  112 => 39,  107 => 32,  102 => 29,  100 => 22,  95 => 19,  90 => 10,  80 => 9,  70 => 5,  60 => 4,  37 => 1,);
  215.     }
  216.     public function getSourceContext()
  217.     {
  218.         return new Source("{% extends '@SyliusShop/layout-large.html.twig' %}
  219. {% block banner %}
  220.     {# render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) #}
  221. {% endblock %}
  222. {% block content %}
  223.    {#
  224. {{ render(url('sylius_shop_partial_taxon_show_by_slug', {
  225.     'slug': app.request.attributes.get('slug'),
  226.     'template': '@SyliusShop/Taxon/_header.html.twig'
  227. })) }}
  228.         #}
  229.         <div class=\"grid-list-products\">
  230.     {% block breadcrumb %}
  231.         <div class=\"ui breadcrumb mobile-only\">
  232.             <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  233.             <div class=\"divider\"> / </div>
  234.             <a href=\"#\" class=\"section\">{{ 'sylius.ui.boutiqueenligne'|trans }}</a>
  235.         </div>
  236.     {% endblock %}
  237.     <div class=\"filters\">
  238.     {{ render(controller('sylius.controller.product:filters', {'originalRequest': app.request})) }}
  239.     {# render(url('app_shop_partial_product_filters', {
  240.         'template': '@SyliusShop/Product/_filters.html.twig',
  241.         'orequest': app.request.request
  242.         })) #}
  243.     {# include '@SyliusShop/Product/_filters.html.twig' #}
  244.     </div>
  245.     <div class=\"column-list-products\">
  246.         {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  247.         {% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  248.         <div class=\"ui breadcrumb desktop-only\">
  249.             <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  250.             <div class=\"divider\"> / </div>
  251.             <a href=\"#\" class=\"section\">{{ 'sylius.ui.boutiqueenligne'|trans }}</a>
  252.         </div>
  253.         <h1 class=\"page__title\">
  254.             <span class=\"page__tagline\">{{ 'sylius.ui.boutiqueenligne'|trans }}</span>
  255.             {{ 'sylius.ui.decouvrez'|trans }}
  256.         </h1>
  257.         <p>
  258.          {{ bitbag_cms_render_block('intro_listeproduit') }}
  259.         </p>
  260.         <div class=\"ui clearing hidden divider\"></div>
  261.         {% if resources.data|length > 0 %}
  262.             <div class=\"products__card-grid\" id=\"products\" {{ sylius_test_html_attribute('products') }}>
  263.                 {% for product in resources.data %}
  264.                     {{ sylius_template_event('sylius.shop.product.index.box', {'product': product}) }}
  265.                 {% endfor %}
  266.             </div>
  267.             <div class=\"ui hidden divider\"></div>
  268.             {{ pagination.simple(resources.data, {\"next_message\": \">\", \"prev_message\": \"<\" } ) }}
  269.         {% else %}
  270.            <p class=\"message\">
  271.                 {{ 'sylius.ui.no_results_shop'|trans }}
  272.             <p>
  273.         {% endif %}
  274.     </div>
  275. </div>
  276. {% endblock %}
  277. ""@SyliusShop/Product/index.html.twig""/home/mons/site/www/templates/bundles/SyliusShopBundle/Product/index.html.twig");
  278.     }
  279. }