var/cache/dev/twig/0d/0de13b34d6f321b11c598ed62d31fd70.php line 48

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. /* product/search.html.twig */
  14. class __TwigTemplate_dd1b0803af81ba120d95780597789635 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/search.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/search.html.twig"));
  38.         $this->parent $this->loadTemplate("layouts/layout.html.twig""product/search.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         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.'4$this->source); })())) < 1)) {
  55.             // line 5
  56.             echo "<h3 class=\"text-center\">";
  57.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shop.empty-result"), "html"nulltrue);
  58.             echo "</h3>
  59. <h2 class=\"text-center\">";
  60.             // line 6
  61.             echo twig_escape_filter($this->envtwig_upper_filter($this->env, (isset($context["term"]) || array_key_exists("term"$context) ? $context["term"] : (function () { throw new RuntimeError('Variable "term" does not exist.'6$this->source); })())), "html"nulltrue);
  62.             echo "</h2>
  63. ";
  64.         } else {
  65.             // line 8
  66.             echo "<h2>";
  67.             echo twig_escape_filter($this->envtwig_upper_filter($this->env, (isset($context["term"]) || array_key_exists("term"$context) ? $context["term"] : (function () { throw new RuntimeError('Variable "term" does not exist.'8$this->source); })())), "html"nulltrue);
  68.             echo "</h2>
  69. <form id=\"js_filterfield\" action=\"\" method=\"get\">
  70.     <input type=\"hidden\" name=\"term\" value=\"";
  71.             // line 10
  72.             echo twig_escape_filter($this->env, (isset($context["term"]) || array_key_exists("term"$context) ? $context["term"] : (function () { throw new RuntimeError('Variable "term" does not exist.'10$this->source); })()), "html"nulltrue);
  73.             echo "\"/>
  74.     <div class=\"productList\" id=\"js-productlist\">
  75.         ";
  76.             // line 13
  77.             $this->loadTemplate("product/listing_content.html.twig""product/search.html.twig"13)->display(twig_array_merge($context, ["productListing" => (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'13$this->source); })()), "language" => (isset($context["language"]) || array_key_exists("language"$context) ? $context["language"] : (function () { throw new RuntimeError('Variable "language" does not exist.'13$this->source); })())]));
  78.             // line 14
  79.             echo "    </div>
  80. </form>
  81. ";
  82.         }
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.     }
  88.     public function getTemplateName()
  89.     {
  90.         return "product/search.html.twig";
  91.     }
  92.     public function isTraitable()
  93.     {
  94.         return false;
  95.     }
  96.     public function getDebugInfo()
  97.     {
  98.         return array (  94 => 14,  92 => 13,  86 => 10,  80 => 8,  75 => 6,  70 => 5,  68 => 4,  58 => 3,  35 => 1,);
  99.     }
  100.     public function getSourceContext()
  101.     {
  102.         return new Source("{% extends 'layouts/layout.html.twig' %}
  103. {% block content %}
  104. {% if products|length < 1 %}
  105. <h3 class=\"text-center\">{{ 'shop.empty-result' | trans }}</h3>
  106. <h2 class=\"text-center\">{{ term | upper }}</h2>
  107. {% else  %}
  108. <h2>{{ term | upper }}</h2>
  109. <form id=\"js_filterfield\" action=\"\" method=\"get\">
  110.     <input type=\"hidden\" name=\"term\" value=\"{{ term }}\"/>
  111.     <div class=\"productList\" id=\"js-productlist\">
  112.         {% include \"product/listing_content.html.twig\" with {'productListing': products, 'language': language} %}
  113.     </div>
  114. </form>
  115. {% endif %}
  116. {% endblock %}""product/search.html.twig""/www/htdocs/w0189996/pimcore-demo/templates/product/search.html.twig");
  117.     }
  118. }