var/cache/dev/twig/b6/b6b73a68dcd5dc50ab551ca96cfc7f06.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. /* @SyliusShop/Product/Index/_main.html.twig */
  14. class __TwigTemplate_7d7ef42e040d166b0df07e599a5968ab 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Index/_main.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Index/_main.html.twig"));
  33.         // line 1
  34.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusShop/Common/Macro/messages.html.twig""@SyliusShop/Product/Index/_main.html.twig"1)->unwrap();
  35.         // line 2
  36.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusShop/Common/Macro/pagination.html.twig""@SyliusShop/Product/Index/_main.html.twig"2)->unwrap();
  37.         // line 3
  38.         echo 
  39. ";
  40.         // line 4
  41.         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.'4$this->source); })()), "data", [], "any"falsefalsefalse4)) > 0)) {
  42.             // line 5
  43.             echo "    <div class=\"categ-bottom\">
  44.         <div class=\"res-filtre\">
  45.             <strong class=\"nbre-article\">";
  46.             // line 7
  47.             echo twig_escape_filter($this->envtwig_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.'7$this->source); })()), "data", [], "any"falsefalsefalse7)), "html"nulltrue);
  48.             echo " ";
  49.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.taxon.articles"), "html"nulltrue);
  50.             echo " </strong>
  51.             <span>Votre séléction :</span>
  52.             <span class=\"filtre\"><a href=\"#\">Halal</a></span><span class=\"filtre\"><a href=\"#\">test</a></span>
  53.             
  54.         </div>
  55.         <div class=\"liste-articles\">
  56.             <div class=\"row-article clear-float\" ";
  57.             // line 13
  58.             echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("products");
  59.             echo ">
  60.             
  61.                 ";
  62.             // line 15
  63.             $context['_parent'] = $context;
  64.             $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.'15$this->source); })()), "data", [], "any"falsefalsefalse15));
  65.             $context['loop'] = [
  66.               'parent' => $context['_parent'],
  67.               'index0' => 0,
  68.               'index'  => 1,
  69.               'first'  => true,
  70.             ];
  71.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  72.                 $length count($context['_seq']);
  73.                 $context['loop']['revindex0'] = $length 1;
  74.                 $context['loop']['revindex'] = $length;
  75.                 $context['loop']['length'] = $length;
  76.                 $context['loop']['last'] = === $length;
  77.             }
  78.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  79.                 // line 16
  80.                 echo "                    <div class=\"col-20-top\">
  81.                         ";
  82.                 // line 17
  83.                 $this->loadTemplate("@SyliusShop/Product/_box.html.twig""@SyliusShop/Product/Index/_main.html.twig"17)->display($context);
  84.                 // line 18
  85.                 echo "                    </div>
  86.                 ";
  87.                 ++$context['loop']['index0'];
  88.                 ++$context['loop']['index'];
  89.                 $context['loop']['first'] = false;
  90.                 if (isset($context['loop']['length'])) {
  91.                     --$context['loop']['revindex0'];
  92.                     --$context['loop']['revindex'];
  93.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  94.                 }
  95.             }
  96.             $_parent $context['_parent'];
  97.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  98.             $context array_intersect_key($context$_parent) + $_parent;
  99.             // line 20
  100.             echo "            </div>
  101.         </div>
  102.     </div>
  103.     ";
  104.             // line 24
  105.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.before_pagination", ["products" => 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.'24$this->source); })()), "data", [], "any"falsefalsefalse24)]);
  106.             echo "
  107.     <div class=\"d-flex justify-content-end mt-3\">
  108.         ";
  109.             // line 27
  110.             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.'27$this->source); })()), "data", [], "any"falsefalsefalse27)], 27$context$this->getSourceContext());
  111.             echo "
  112.     </div>
  113. ";
  114.         } else {
  115.             // line 30
  116.             echo "    <div class=\"mt-3\">
  117.     ";
  118.             // line 31
  119.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 31$context$this->getSourceContext());
  120.             echo "
  121.     </div>
  122. ";
  123.         }
  124.         // line 33
  125.         echo 
  126. ";
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.     }
  132.     public function getTemplateName()
  133.     {
  134.         return "@SyliusShop/Product/Index/_main.html.twig";
  135.     }
  136.     public function isTraitable()
  137.     {
  138.         return false;
  139.     }
  140.     public function getDebugInfo()
  141.     {
  142.         return array (  136 => 33,  130 => 31,  127 => 30,  121 => 27,  115 => 24,  109 => 20,  94 => 18,  92 => 17,  89 => 16,  72 => 15,  67 => 13,  56 => 7,  52 => 5,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  143.     }
  144.     public function getSourceContext()
  145.     {
  146.         return new Source("{% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  147. {% import '@SyliusShop/Common/Macro/pagination.html.twig' as pagination %}
  148.  
  149. {% if resources.data|length > 0 %}
  150.     <div class=\"categ-bottom\">
  151.         <div class=\"res-filtre\">
  152.             <strong class=\"nbre-article\">{{resources.data|length}} {{'app.taxon.articles' |trans}} </strong>
  153.             <span>Votre séléction :</span>
  154.             <span class=\"filtre\"><a href=\"#\">Halal</a></span><span class=\"filtre\"><a href=\"#\">test</a></span>
  155.             
  156.         </div>
  157.         <div class=\"liste-articles\">
  158.             <div class=\"row-article clear-float\" {{ sylius_test_html_attribute('products') }}>
  159.             
  160.                 {% for product in resources.data %}
  161.                     <div class=\"col-20-top\">
  162.                         {% include '@SyliusShop/Product/_box.html.twig' %}
  163.                     </div>
  164.                 {% endfor %}
  165.             </div>
  166.         </div>
  167.     </div>
  168.     {{ sylius_template_event('sylius.shop.product.index.before_pagination', {'products': resources.data}) }}
  169.     <div class=\"d-flex justify-content-end mt-3\">
  170.         {{ pagination.simple(resources.data) }}
  171.     </div>
  172. {% else %}
  173.     <div class=\"mt-3\">
  174.     {{ messages.info('sylius.ui.no_results_to_display') }}
  175.     </div>
  176. {% endif %} 
  177. ""@SyliusShop/Product/Index/_main.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Index/_main.html.twig");
  178.     }
  179. }