var/cache/dev/twig/94/94ec69d34d7a73b5055d4684cc65cbe6.php line 195

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. /* Shop/list.html.twig */
  14. class __TwigTemplate_8581aac9306aac82ce324486e5783c7c 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "product.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/list.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/list.html.twig"));
  40.         $this->parent $this->loadTemplate("product.html.twig""Shop/list.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "<script src=\"/website/static/js/productfilters.js\" defer></script>
  57.   
  58.   
  59.     
  60.     <!-- Added Comment- -->
  61.     <div class=\"breadcrumb-block\">
  62.         <div class=\"container\">
  63.           <!-- breadcrumb of the page -->
  64.           <ul class=\"breadcrumb\">
  65.               <li><a href=\"/";
  66.         // line 13
  67.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'13$this->source); })()), 13$this->source), "html"nulltrue);
  68.         echo "\" class=\"home\">";
  69.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.home"), "html"nulltrue);
  70.         echo "</a></li>
  71.             
  72.               <li><a href=\"";
  73.         // line 15
  74.         ((((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'15$this->source); })()) || (isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'15$this->source); })()))) ? (print ("")) : (print (twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product-landing", ["prefix" => (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'15$this->source); })())], false), "html"nulltrue))));
  75.         echo "\">";
  76.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.our-products"), "html"nulltrue);
  77.         echo "</a></li>
  78.               ";
  79.         // line 16
  80.         $context["parenturl"] = "";
  81.         // line 17
  82.         echo "              ";
  83.         if ((array_key_exists("category"$context) &&  !twig_test_empty((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'17$this->source); })())))) {
  84.             // line 18
  85.             echo "                    ";
  86.             $context["parentcategory"] = twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'18$this->source); })()), "getParent", [], "method"falsefalsetrue18);
  87.             // line 19
  88.             echo "                    ";
  89.             $context["heading"] = twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'19$this->source); })()), "getName", [], "method"falsefalsetrue19);
  90.             // line 20
  91.             echo "                    ";
  92.             if ((((isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'20$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'20$this->source); })()), "getType", [], "method"falsefalsetrue20) == "object")) && (twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'20$this->source); })()), "getClassname", [], "method"falsefalsetrue20) == "CategoryAlcoholType"))) {
  93.                 // line 21
  94.                 echo "                          ";
  95.                 $context["parenturl"] = twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'21$this->source); })()), "getDetailUrl", [["rootCategory" => (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'21$this->source); })()), "document" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'21$this->source); })())]], "method"falsefalsetrue21);
  96.                 // line 22
  97.                 echo "                        
  98.                           <li><a href=\"";
  99.                 // line 23
  100.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parenturl"]) || array_key_exists("parenturl"$context) ? $context["parenturl"] : (function () { throw new RuntimeError('Variable "parenturl" does not exist.'23$this->source); })()), 23$this->source), "html"nulltrue);
  101.                 echo "\">";
  102.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory"$context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.'23$this->source); })()), "getName", [], "method"falsefalsetrue23), 23$this->source), "html"nulltrue);
  103.                 echo "</a></li>
  104.                     ";
  105.             }
  106.             // line 25
  107.             echo "              ";
  108.         } elseif (((array_key_exists("BrandName"$context) &&  !twig_test_empty((isset($context["BrandName"]) || array_key_exists("BrandName"$context) ? $context["BrandName"] : (function () { throw new RuntimeError('Variable "BrandName" does not exist.'25$this->source); })()))) && (twig_length_filter($this->env, (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'25$this->source); })())) != 0))) {
  109.             // line 26
  110.             echo "                    ";
  111.             $context["heading"] = (isset($context["BrandName"]) || array_key_exists("BrandName"$context) ? $context["BrandName"] : (function () { throw new RuntimeError('Variable "BrandName" does not exist.'26$this->source); })());
  112.             // line 27
  113.             echo "                    <li><a href=\"";
  114.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parenturl"]) || array_key_exists("parenturl"$context) ? $context["parenturl"] : (function () { throw new RuntimeError('Variable "parenturl" does not exist.'27$this->source); })()), 27$this->source), "html"nulltrue);
  115.             echo "\">";
  116.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["BrandName"]) || array_key_exists("BrandName"$context) ? $context["BrandName"] : (function () { throw new RuntimeError('Variable "BrandName" does not exist.'27$this->source); })()), 27$this->source), "html"nulltrue);
  117.             echo "</a></li>
  118.               ";
  119.         } else {
  120.             // line 29
  121.             echo "                    ";
  122.             $context["heading"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.our-products");
  123.             echo " \t\t\t
  124.               ";
  125.         }
  126.         // line 31
  127.         echo "                  <li class=\"active\">";
  128.         (((array_key_exists("category"$context) &&  !twig_test_empty((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'31$this->source); })())))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'31$this->source); })()), "getName", [], "method"falsefalsetrue31), "html"nulltrue))) : (print ("")));
  129.         echo "</li>
  130.           </ul>
  131.         </div>
  132.     </div>
  133.     <div class=\"container\">
  134.     ";
  135.         // line 36
  136.         if ((twig_length_filter($this->env, (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'36$this->source); })())) == 0)) {
  137.             // line 37
  138.             echo "        <div class=\"heading-holder\">
  139.           <h1>";
  140.             // line 38
  141.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.search.results"), "html"nulltrue);
  142.             echo "</h1>
  143.         </div>
  144.         <h3>";
  145.             // line 40
  146.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shop.empty-result"), "html"nulltrue);
  147.             echo "</h3>
  148.     ";
  149.         } else {
  150.             // line 42
  151.             echo "        <div class=\"heading-holder\">
  152.           <!-- main heading of the page -->
  153.           <h1>";
  154.             // line 44
  155.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["heading"]) || array_key_exists("heading"$context) ? $context["heading"] : (function () { throw new RuntimeError('Variable "heading" does not exist.'44$this->source); })()), 44$this->source), "html"nulltrue);
  156.             echo "</h1>
  157.         </div>
  158.         <div class=\"row\">
  159.           <div class=\"col-sm-4 col-md-3\">
  160.             <div class=\"filter-block\">
  161.               <a href=\"#\" class=\"filter-opener\">filter products</a>
  162.               <div class=\"filter-slide\">
  163.                 <!-- filter form of the page -->
  164.                 <form class=\"filter-form\" id=\"js_filterfield\" action=\"\" method=\"get\">
  165.           
  166.                      ";
  167.             // line 54
  168.             if (twig_get_attribute($this->env$this->source, (isset($context["filterDefinitionObject"]) || array_key_exists("filterDefinitionObject"$context) ? $context["filterDefinitionObject"] : (function () { throw new RuntimeError('Variable "filterDefinitionObject" does not exist.'54$this->source); })()), "getFilters", [], "method"falsefalsetrue54)) {
  169.                 // line 55
  170.                 echo "                        <div class=\"widget\">
  171.                             ";
  172.                 // line 56
  173.                 $context['_parent'] = $context;
  174.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["filterDefinitionObject"]) || array_key_exists("filterDefinitionObject"$context) ? $context["filterDefinitionObject"] : (function () { throw new RuntimeError('Variable "filterDefinitionObject" does not exist.'56$this->source); })()), "getFilters", [], "method"falsefalsetrue56));
  175.                 foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
  176.                     // line 57
  177.                     echo "                                ";
  178.                     if ((twig_get_attribute($this->env$this->source$context["filter"], "getLabel", [], "method"falsefalsetrue57) != "Country Availability")) {
  179.                         // line 58
  180.                         echo "                                      ";
  181.                         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["filterService"]) || array_key_exists("filterService"$context) ? $context["filterService"] : (function () { throw new RuntimeError('Variable "filterService" does not exist.'58$this->source); })()), "getFilterFrontend", [$context["filter"], (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'58$this->source); })()), (isset($context["currentFilter"]) || array_key_exists("currentFilter"$context) ? $context["currentFilter"] : (function () { throw new RuntimeError('Variable "currentFilter" does not exist.'58$this->source); })())], "method"falsefalsetrue58), 58$this->source);
  182.                         echo "
  183.                                 ";
  184.                     }
  185.                     // line 60
  186.                     echo "                            ";
  187.                 }
  188.                 $_parent $context['_parent'];
  189.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']);
  190.                 $context array_intersect_key($context$_parent) + $_parent;
  191.                 // line 61
  192.                 echo "                        </div>
  193.                     ";
  194.             }
  195.             // line 63
  196.             echo "                    ";
  197.             if ((array_key_exists("search"$context) &&  !twig_test_empty((isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'63$this->source); })())))) {
  198.                 // line 64
  199.                 echo "                        <input name=\"search\" value=\"";
  200.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'64$this->source); })()), 64$this->source), "html"nulltrue);
  201.                 echo "\" type=\"hidden\"/>
  202.                     ";
  203.             }
  204.             // line 66
  205.             echo "                </form>
  206.               </div>
  207.             </div>
  208.           </div>
  209.           <div class=\"col-sm-8 col-md-9\">
  210.              ";
  211.             // line 71
  212.             $this->loadTemplate("Shop/includes/pagination.html.twig""Shop/list.html.twig"71)->display($context);
  213.             // line 72
  214.             echo "            
  215.             
  216.             <div class=\"product-list same-height-holder\">
  217.               ";
  218.             // line 75
  219.             $this->loadTemplate("Shop/list/products.html.twig""Shop/list.html.twig"75)->display(twig_array_merge($context, ["products" => (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'75$this->source); })()), "locale" => (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'75$this->source); })()), "country" => (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'75$this->source); })()), "lastlogin" => (isset($context["lastlogin"]) || array_key_exists("lastlogin"$context) ? $context["lastlogin"] : (function () { throw new RuntimeError('Variable "lastlogin" does not exist.'75$this->source); })()), "preview" => (isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'75$this->source); })()), "editmode" => (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'75$this->source); })())]));
  220.             echo 
  221.             </div>
  222.             
  223.             ";
  224.             // line 78
  225.             $this->loadTemplate("Shop/includes/pagination.html.twig""Shop/list.html.twig"78)->display($context);
  226.             // line 79
  227.             echo "
  228.           </div>
  229.         </div>
  230.       </div>
  231.     ";
  232.         }
  233.         // line 84
  234.         echo "    </div>
  235. ";
  236.         
  237.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  238.         
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  240.     }
  241.     /**
  242.      * @codeCoverageIgnore
  243.      */
  244.     public function getTemplateName()
  245.     {
  246.         return "Shop/list.html.twig";
  247.     }
  248.     /**
  249.      * @codeCoverageIgnore
  250.      */
  251.     public function isTraitable()
  252.     {
  253.         return false;
  254.     }
  255.     /**
  256.      * @codeCoverageIgnore
  257.      */
  258.     public function getDebugInfo()
  259.     {
  260.         return array (  248 => 84,  241 => 79,  239 => 78,  233 => 75,  228 => 72,  226 => 71,  219 => 66,  213 => 64,  210 => 63,  206 => 61,  200 => 60,  194 => 58,  191 => 57,  187 => 56,  184 => 55,  182 => 54,  169 => 44,  165 => 42,  160 => 40,  155 => 38,  152 => 37,  150 => 36,  141 => 31,  135 => 29,  127 => 27,  124 => 26,  121 => 25,  114 => 23,  111 => 22,  108 => 21,  105 => 20,  102 => 19,  99 => 18,  96 => 17,  94 => 16,  88 => 15,  81 => 13,  70 => 4,  60 => 3,  37 => 1,);
  261.     }
  262.     public function getSourceContext()
  263.     {
  264.         return new Source("{% extends 'product.html.twig' %}
  265. {% block content %}
  266. <script src=\"/website/static/js/productfilters.js\" defer></script>
  267.   
  268.   
  269.     
  270.     <!-- Added Comment- -->
  271.     <div class=\"breadcrumb-block\">
  272.         <div class=\"container\">
  273.           <!-- breadcrumb of the page -->
  274.           <ul class=\"breadcrumb\">
  275.               <li><a href=\"/{{ locale }}\" class=\"home\">{{ \"espirits.header.home\"|trans }}</a></li>
  276.             
  277.               <li><a href=\"{{ editmode or preview ? '' : path('product-landing',{ prefix: locale }, false) }}\">{{ \"espirits.header.our-products\"| trans }}</a></li>
  278.               {% set parenturl = '' %}
  279.               {% if category is defined and category is not empty %}
  280.                     {% set parentcategory = category.getParent() %}
  281.                     {% set heading = category.getName() %}
  282.                     {% if parentcategory and parentcategory.getType() == \"object\" and parentcategory.getClassname() == \"CategoryAlcoholType\" %}
  283.                           {% set parenturl = parentcategory.getDetailUrl({\"rootCategory\" : parentcategory, \"document\" : document}) %}
  284.                         
  285.                           <li><a href=\"{{ parenturl }}\">{{ parentcategory.getName() }}</a></li>
  286.                     {% endif %}
  287.               {% elseif BrandName is defined and BrandName is not empty and products|length != 0 %}
  288.                     {% set heading = BrandName %}
  289.                     <li><a href=\"{{ parenturl }}\">{{ BrandName }}</a></li>
  290.               {% else %}
  291.                     {% set heading = \"espirits.header.our-products\"|trans %} \t\t\t
  292.               {% endif %}
  293.                   <li class=\"active\">{{ category is defined and category is not empty ? category.getName() : \"\" }}</li>
  294.           </ul>
  295.         </div>
  296.     </div>
  297.     <div class=\"container\">
  298.     {% if products|length == 0 %}
  299.         <div class=\"heading-holder\">
  300.           <h1>{{ \"espirits.search.results\"|trans }}</h1>
  301.         </div>
  302.         <h3>{{ \"shop.empty-result\"|trans }}</h3>
  303.     {% else %}
  304.         <div class=\"heading-holder\">
  305.           <!-- main heading of the page -->
  306.           <h1>{{ heading }}</h1>
  307.         </div>
  308.         <div class=\"row\">
  309.           <div class=\"col-sm-4 col-md-3\">
  310.             <div class=\"filter-block\">
  311.               <a href=\"#\" class=\"filter-opener\">filter products</a>
  312.               <div class=\"filter-slide\">
  313.                 <!-- filter form of the page -->
  314.                 <form class=\"filter-form\" id=\"js_filterfield\" action=\"\" method=\"get\">
  315.           
  316.                      {% if filterDefinitionObject.getFilters() %}
  317.                         <div class=\"widget\">
  318.                             {% for filter in filterDefinitionObject.getFilters() %}
  319.                                 {% if filter.getLabel() != 'Country Availability' %}
  320.                                       {{ filterService.getFilterFrontend(filter, products, currentFilter)|raw }}
  321.                                 {% endif %}
  322.                             {% endfor %}
  323.                         </div>
  324.                     {% endif %}
  325.                     {% if search is defined and search is not empty %}
  326.                         <input name=\"search\" value=\"{{ search }}\" type=\"hidden\"/>
  327.                     {% endif %}
  328.                 </form>
  329.               </div>
  330.             </div>
  331.           </div>
  332.           <div class=\"col-sm-8 col-md-9\">
  333.              {% include 'Shop/includes/pagination.html.twig' %}
  334.             
  335.             
  336.             <div class=\"product-list same-height-holder\">
  337.               {% include 'Shop/list/products.html.twig' with {'products' : products, 'locale' : locale, 'country' : country, 'lastlogin' : lastlogin, 'preview' : preview, 'editmode' : editmode} %} 
  338.             </div>
  339.             
  340.             {% include 'Shop/includes/pagination.html.twig' %}
  341.           </div>
  342.         </div>
  343.       </div>
  344.     {% endif %}
  345.     </div>
  346. {% endblock %}
  347. ""Shop/list.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Shop/list.html.twig");
  348.     }
  349.     
  350.     public function checkSecurity()
  351.     {
  352.         static $tags = array("set" => 16"if" => 17"for" => 56"include" => 71);
  353.         static $filters = array("escape" => 13"trans" => 13"length" => 25"raw" => 58);
  354.         static $functions = array("path" => 15);
  355.         try {
  356.             $this->sandbox->checkSecurity(
  357.                 ['set''if''for''include'],
  358.                 ['escape''trans''length''raw'],
  359.                 ['path']
  360.             );
  361.         } catch (SecurityError $e) {
  362.             $e->setSourceContext($this->source);
  363.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  364.                 $e->setTemplateLine($tags[$e->getTagName()]);
  365.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  366.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  367.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  368.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  369.             }
  370.             throw $e;
  371.         }
  372.     }
  373. }