<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig */
class __TwigTemplate_d344ef1240790d810ebea3e4386e27e8 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig"));
// line 3
$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); })()), [0 => "@SyliusUi/Form/theme.html.twig", 1 => "Context/Shop/ProductCategory/formTheme.html.twig"], true);
// line 5
$macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 5)->unwrap();
// line 6
$macros["pagination"] = $this->macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 6)->unwrap();
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo " ";
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.', 9, $this->source); })()), 'form_start', ["method" => "GET", "attr" => ["class" => "ui loadable form"]]);
echo "
<div class=\"ui stackable grid\">
<div class=\"four wide column\">
<div id=\"filters-vertical\" class=\"ui fluid vertical menu product-filters\">
<div class=\"ui accordion filters-accordion\">
<div class=\"title\">
<div class=\"header item\">
";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.filter_results"), "html", null, true);
echo "
<i class=\"dropdown icon\"></i>
</div>
</div>
<div class=\"content\">
";
// line 21
$this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_filterForm.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 21)->display($context);
// line 22
echo " </div>
</div>
</div>
</div>
<div class=\"twelve wide column\">
<h1 class=\"ui monster section dividing header\">
";
// line 28
echo twig_escape_filter($this->env, 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.', 28, $this->source); })()), "name", [], "any", false, false, false, 28), "html", null, true);
echo "
";
// line 29
echo $this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\RenderBannerExtension']->renderBanner("Context/Shop/Blog/banner.html.twig");
echo "
";
// line 30
$this->loadTemplate("Context/Common/Banner/_categoryBanner.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 30)->display($context);
// line 31
echo " <div class=\"sub header\">";
echo twig_escape_filter($this->env, 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.', 31, $this->source); })()), "description", [], "any", false, false, false, 31), "html", null, true);
echo "</div>
</h1>
<div class=\"ui segment\">
<div class=\"ui stackable grid\">
<div class=\"five wide column\">
";
// line 36
$this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_sorting.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 36)->display($context);
// line 37
echo " ";
$this->loadTemplate("@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_pagination.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 37)->display($context);
// line 38
echo " </div>
<div class=\"eleven wide column\">
<div class=\"ui search\" id=\"products-search\">
<div class=\"ui fluid large left icon input\">
";
// line 42
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 42, $this->source); })()), "name", [], "any", false, false, false, 42), 'widget', ["attr" => ["placeholder" => "sylius.ui.search", "class" => "prompt"]]);
echo "
<i class=\"search icon\"></i>
</div>
</div>
</div>
</div>
</div>
";
// line 50
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.', 50, $this->source); })())) > 0)) {
// line 51
echo " <div class=\"category-products-grid\" id=\"products\">
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 52, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 53
echo " ";
$this->loadTemplate("@SyliusShop/Product/_box.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 53)->display($context);
// line 54
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " </div>
<div class=\"ui hidden divider\"></div>
";
// line 58
echo twig_call_macro($macros["pagination"], "macro_simple", [(isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 58, $this->source); })())], 58, $context, $this->getSourceContext());
echo "
";
} else {
// line 60
echo " ";
echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 60, $context, $this->getSourceContext());
echo "
";
}
// line 62
echo " </div>
</div>
<button type=\"submit\" style=\"display: none\">
<i class=\"search icon\"></i>
";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_elasticsearch_plugin.ui.filter"), "html", null, true);
echo "
</button>
";
// line 68
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.', 68, $this->source); })()), 'form_end', ["render_rest" => false]);
echo "
";
// line 70
$this->loadTemplate("@SyliusShop/Common/Sections/digitalEcosystem.html.twig", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", 70)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 216 => 70, 211 => 68, 206 => 66, 200 => 62, 194 => 60, 189 => 58, 184 => 55, 170 => 54, 167 => 53, 150 => 52, 147 => 51, 145 => 50, 134 => 42, 128 => 38, 125 => 37, 123 => 36, 114 => 31, 112 => 30, 108 => 29, 104 => 28, 96 => 22, 94 => 21, 86 => 16, 75 => 9, 65 => 8, 54 => 1, 52 => 6, 50 => 5, 48 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% form_theme form with ['@SyliusUi/Form/theme.html.twig', 'Context/Shop/ProductCategory/formTheme.html.twig'] %}
{% import '@SyliusUi/Macro/messages.html.twig' as messages %}
{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
{% block content %}
{{ form_start(form, {'method': 'GET', 'attr': {'class': 'ui loadable form'}}) }}
<div class=\"ui stackable grid\">
<div class=\"four wide column\">
<div id=\"filters-vertical\" class=\"ui fluid vertical menu product-filters\">
<div class=\"ui accordion filters-accordion\">
<div class=\"title\">
<div class=\"header item\">
{{ 'bitbag_sylius_elasticsearch_plugin.ui.filter_results'|trans }}
<i class=\"dropdown icon\"></i>
</div>
</div>
<div class=\"content\">
{% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_filterForm.html.twig' %}
</div>
</div>
</div>
</div>
<div class=\"twelve wide column\">
<h1 class=\"ui monster section dividing header\">
{{ taxon.name }}
{{ bitbag_cms_render_banner('Context/Shop/Blog/banner.html.twig') }}
{% include 'Context/Common/Banner/_categoryBanner.html.twig' %}
<div class=\"sub header\">{{ taxon.description }}</div>
</h1>
<div class=\"ui segment\">
<div class=\"ui stackable grid\">
<div class=\"five wide column\">
{% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_sorting.html.twig' %}
{% include '@BitBagSyliusElasticsearchPlugin/Shop/Product/Index/_pagination.html.twig' %}
</div>
<div class=\"eleven wide column\">
<div class=\"ui search\" id=\"products-search\">
<div class=\"ui fluid large left icon input\">
{{ form_widget(form.name, {'attr': {'placeholder': 'sylius.ui.search', 'class': 'prompt'}}) }}
<i class=\"search icon\"></i>
</div>
</div>
</div>
</div>
</div>
{% if products|length > 0 %}
<div class=\"category-products-grid\" id=\"products\">
{% for product in products %}
{% include '@SyliusShop/Product/_box.html.twig' %}
{% endfor %}
</div>
<div class=\"ui hidden divider\"></div>
{{ pagination.simple(products) }}
{% else %}
{{ messages.info('sylius.ui.no_results_to_display') }}
{% endif %}
</div>
</div>
<button type=\"submit\" style=\"display: none\">
<i class=\"search icon\"></i>
{{ 'bitbag_sylius_elasticsearch_plugin.ui.filter'|trans }}
</button>
{{ form_end(form, {'render_rest': false}) }}
{% include \"@SyliusShop/Common/Sections/digitalEcosystem.html.twig\" %}
{% endblock %}
", "@BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig", "/srv/open_marketplace/templates/bundles/BitBagSyliusElasticsearchPlugin/Shop/Product/index.html.twig");
}
}