var/cache/dev/twig/04/04e5b122ead9e55410ed2803d3ae3006d59d4c52a858c1e167fd56d2639f9483.php line 200

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. /* @BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig */
  14. class __TwigTemplate_0f7c8e65b5c3cf674e3fc1dd2fd28454de8b66e7d75f3f12a6c4a0f11f16b9ea 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.             'metatags' => [$this'block_metatags'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'content' => [$this'block_content'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@SyliusShop/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"));
  42.         // line 3
  43.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  44.         // line 5
  45.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"5)->unwrap();
  46.         // line 6
  47.         $macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"6)->unwrap();
  48.         // line 1
  49.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"1);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     // line 7
  57.     public function block_title($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  64.         // line 8
  65.         echo "    ";
  66.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'8$this->source); })()), "metaTitle", [], "any"falsefalsefalse8))) {
  67.             // line 9
  68.             echo "        ";
  69.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'9$this->source); })()), "metaTitle", [], "any"falsefalsefalse9), "html"nulltrue);
  70.             echo " | ";
  71.             $this->displayParentBlock("title"$context$blocks);
  72.             echo "
  73.     ";
  74.         } else {
  75.             // line 11
  76.             echo "        ";
  77.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'11$this->source); })()), "name", [], "any"falsefalsefalse11), "html"nulltrue);
  78.             echo " | ";
  79.             $this->displayParentBlock("title"$context$blocks);
  80.             echo "
  81.     ";
  82.         }
  83.         
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  85.         
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  87.     }
  88.     // line 14
  89.     public function block_metatags($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  96.         // line 15
  97.         echo "    ";
  98.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'15$this->source); })()), "metaKeywords", [], "any"falsefalsefalse15))) {
  99.             // line 16
  100.             echo "        <meta name=\"keywords\" content=\"";
  101.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'16$this->source); })()), "metaKeywords", [], "any"falsefalsefalse16), "html"nulltrue);
  102.             echo "\"/>
  103.     ";
  104.         }
  105.         // line 18
  106.         echo "    ";
  107.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'18$this->source); })()), "metaDescription", [], "any"falsefalsefalse18))) {
  108.             // line 19
  109.             echo "        <meta name=\"description\" content=\"";
  110.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'19$this->source); })()), "metaDescription", [], "any"falsefalsefalse19), "html"nulltrue);
  111.             echo "\"/>
  112.     ";
  113.         }
  114.         
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  116.         
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  118.     }
  119.     // line 23
  120.     public function block_stylesheets($context, array $blocks = [])
  121.     {
  122.         $macros $this->macros;
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  127.         // line 24
  128.         echo "    ";
  129.         $this->displayParentBlock("stylesheets"$context$blocks);
  130.         echo "
  131.     ";
  132.         // line 26
  133.         $this->loadTemplate("@SyliusUi/_stylesheets.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"26)->display(twig_array_merge($context, ["path" => "bundles/bitbagsyliuselasticsearchplugin/css/bitbag-autocomplete-search.css"]));
  134.         
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  136.         
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  138.     }
  139.     // line 29
  140.     public function block_content($context, array $blocks = [])
  141.     {
  142.         $macros $this->macros;
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  145.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  147.         // line 30
  148.         echo "    <main class=\"main home\">
  149.         <div class=\"container\">
  150.             <div class=\"row\">
  151.                 <div class=\"col-12 col-md-4 col-lg-3\">
  152.                     ";
  153.         // line 34
  154.         $this->loadTemplate("@SyliusShop/Product/Index/_sidebar.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"34)->display($context);
  155.         // line 35
  156.         echo "                </div>
  157.                 <div class=\"col-12 col-md-8 col-lg-9\">
  158.                     ";
  159.         // line 37
  160.         $this->loadTemplate("@SyliusShop/Product/Index/_header.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"37)->display($context);
  161.         // line 38
  162.         echo "
  163.                     ";
  164.         // line 39
  165.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'39$this->source); })()), 'form_start', ["method" => "GET""attr" => ["class" => "ui loadable form"]]);
  166.         echo "
  167.                     ";
  168.         // line 41
  169.         $this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_main.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"41)->display($context);
  170.         // line 42
  171.         echo "                    ";
  172.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'42$this->source); })()), 'form_end', ["render_rest" => false]);
  173.         echo "
  174.                 </div>
  175.             </div>
  176.         </div>
  177.     </main>
  178. ";
  179.         
  180.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  181.         
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  183.     }
  184.     // line 49
  185.     public function block_javascripts($context, array $blocks = [])
  186.     {
  187.         $macros $this->macros;
  188.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  192.         // line 50
  193.         echo "    ";
  194.         $this->displayParentBlock("javascripts"$context$blocks);
  195.         echo "
  196.     ";
  197.         // line 52
  198.         $this->loadTemplate("@SyliusUi/_javascripts.html.twig""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"52)->display(twig_array_merge($context, ["path" => "bundles/bitbagsyliuselasticsearchplugin/js/bitbag-autocomplete-search.js"]));
  199.         // line 53
  200.         echo "
  201.     <script type=\"application/javascript\">
  202.         ";
  203.         // line 56
  204.         echo "    </script>
  205. ";
  206.         
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  208.         
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  210.     }
  211.     public function getTemplateName()
  212.     {
  213.         return "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig";
  214.     }
  215.     public function isTraitable()
  216.     {
  217.         return false;
  218.     }
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  241 => 56,  237 => 53,  235 => 52,  229 => 50,  219 => 49,  202 => 42,  200 => 41,  195 => 39,  192 => 38,  190 => 37,  186 => 35,  184 => 34,  178 => 30,  168 => 29,  158 => 26,  152 => 24,  142 => 23,  128 => 19,  125 => 18,  119 => 16,  116 => 15,  106 => 14,  90 => 11,  82 => 9,  79 => 8,  69 => 7,  58 => 1,  56 => 6,  54 => 5,  52 => 3,  39 => 1,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  226. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  227. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  228. {% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
  229. {%- block title %}
  230.     {% if taxon.metaTitle is not empty %}
  231.         {{ taxon.metaTitle }} | {{ parent() }}
  232.     {% else %}
  233.         {{ taxon.name }} | {{ parent() }}
  234.     {% endif %}
  235. {% endblock -%}
  236. {% block metatags %}
  237.     {% if taxon.metaKeywords is not empty %}
  238.         <meta name=\"keywords\" content=\"{{ taxon.metaKeywords }}\"/>
  239.     {% endif %}
  240.     {% if taxon.metaDescription is not empty %}
  241.         <meta name=\"description\" content=\"{{ taxon.metaDescription }}\"/>
  242.     {% endif %}
  243. {% endblock %}
  244. {% block stylesheets %}
  245.     {{ parent() }}
  246.     {% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'bundles/bitbagsyliuselasticsearchplugin/css/bitbag-autocomplete-search.css'} %}
  247. {% endblock %}
  248. {% block content %}
  249.     <main class=\"main home\">
  250.         <div class=\"container\">
  251.             <div class=\"row\">
  252.                 <div class=\"col-12 col-md-4 col-lg-3\">
  253.                     {% include '@SyliusShop/Product/Index/_sidebar.html.twig' %}
  254.                 </div>
  255.                 <div class=\"col-12 col-md-8 col-lg-9\">
  256.                     {% include '@SyliusShop/Product/Index/_header.html.twig' %}
  257.                     {{ form_start(form, {'method': 'GET', 'attr': {'class': 'ui loadable form'}}) }}
  258.                     {% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_main.html.twig' %}
  259.                     {{ form_end(form, {'render_rest': false}) }}
  260.                 </div>
  261.             </div>
  262.         </div>
  263.     </main>
  264. {% endblock %}
  265. {% block javascripts %}
  266.     {{ parent() }}
  267.     {% include '@SyliusUi/_javascripts.html.twig' with {'path': 'bundles/bitbagsyliuselasticsearchplugin/js/bitbag-autocomplete-search.js'} %}
  268.     <script type=\"application/javascript\">
  269.         {# \$(document).autocompleteSearch('#products-search', '{{ url('bitbag_sylius_elasticsearch_plugin_shop_auto_complete_product_name') }}?query={query}') #}
  270.     </script>
  271. {% endblock %}
  272. ""@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig""/home/forge/new.profilteam.cz/templates/bundles/BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig");
  273.     }
  274. }