<?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;
/* @SyliusShop/Product/index.html.twig */
class __TwigTemplate_8ec13b9aa03e98134c7f18cfd2146f57c4d716fecd08887a740570e0a1d8eb56 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'banner' => [$this, 'block_banner'],
'content' => [$this, 'block_content'],
'breadcrumb' => [$this, 'block_breadcrumb'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout-large.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/index.html.twig"));
$this->parent = $this->loadTemplate("@SyliusShop/layout-large.html.twig", "@SyliusShop/Product/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
// line 5
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 10
echo "
";
// line 19
echo "
<div class=\"grid-list-products\">
";
// line 22
$this->displayBlock('breadcrumb', $context, $blocks);
// line 29
echo " <div class=\"filters\">
";
// line 32
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.product:filters", ["originalRequest" => twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "request", [], "any", false, false, false, 32)]));
echo "
";
// line 39
echo "
";
// line 41
echo "
</div>
<div class=\"column-list-products\">
";
// line 46
$macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig", "@SyliusShop/Product/index.html.twig", 46)->unwrap();
// line 47
echo " ";
$macros["pagination"] = $this->loadTemplate("@SyliusUi/Macro/pagination.html.twig", "@SyliusShop/Product/index.html.twig", 47)->unwrap();
// line 48
echo "
<div class=\"ui breadcrumb desktop-only\">
<a href=\"";
// line 50
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
<div class=\"divider\"> / </div>
<a href=\"#\" class=\"section\">";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html", null, true);
echo "</a>
</div>
<h1 class=\"page__title\">
<span class=\"page__tagline\">";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html", null, true);
echo "</span>
";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.decouvrez"), "html", null, true);
echo "
</h1>
<p>
";
// line 60
echo $this->env->getFunction('bitbag_cms_render_block')->getCallable()("intro_listeproduit");
echo "
</p>
<div class=\"ui clearing hidden divider\"></div>
";
// line 70
if ((twig_length_filter($this->env, 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.', 70, $this->source); })()), "data", [], "any", false, false, false, 70)) > 0)) {
// line 71
echo " <div class=\"products__card-grid\" id=\"products\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("products");
echo ">
";
// line 72
$context['_parent'] = $context;
$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.', 72, $this->source); })()), "data", [], "any", false, false, false, 72));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 73
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.index.box", ["product" => $context["product"]]);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo " </div>
<div class=\"ui hidden divider\"></div>
";
// line 78
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.', 78, $this->source); })()), "data", [], "any", false, false, false, 78), ["next_message" => ">", "prev_message" => "<"]], 78, $context, $this->getSourceContext());
echo "
";
} else {
// line 80
echo " <p class=\"message\">
";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.no_results_shop"), "html", null, true);
echo "
<p>
";
}
// line 84
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 22
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 23
echo " <div class=\"ui breadcrumb mobile-only\">
<a href=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
<div class=\"divider\"> / </div>
<a href=\"#\" class=\"section\">";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html", null, true);
echo "</a>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 236 => 26, 231 => 24, 228 => 23, 218 => 22, 205 => 84, 199 => 81, 196 => 80, 191 => 78, 186 => 75, 177 => 73, 173 => 72, 168 => 71, 166 => 70, 153 => 60, 147 => 57, 143 => 56, 136 => 52, 131 => 50, 127 => 48, 124 => 47, 122 => 46, 115 => 41, 112 => 39, 107 => 32, 102 => 29, 100 => 22, 95 => 19, 90 => 10, 80 => 9, 70 => 5, 60 => 4, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout-large.html.twig' %}
{% block banner %}
{# render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) #}
{% endblock %}
{% block content %}
{#
{{ render(url('sylius_shop_partial_taxon_show_by_slug', {
'slug': app.request.attributes.get('slug'),
'template': '@SyliusShop/Taxon/_header.html.twig'
})) }}
#}
<div class=\"grid-list-products\">
{% block breadcrumb %}
<div class=\"ui breadcrumb mobile-only\">
<a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
<div class=\"divider\"> / </div>
<a href=\"#\" class=\"section\">{{ 'sylius.ui.boutiqueenligne'|trans }}</a>
</div>
{% endblock %}
<div class=\"filters\">
{{ render(controller('sylius.controller.product:filters', {'originalRequest': app.request})) }}
{# render(url('app_shop_partial_product_filters', {
'template': '@SyliusShop/Product/_filters.html.twig',
'orequest': app.request.request
})) #}
{# include '@SyliusShop/Product/_filters.html.twig' #}
</div>
<div class=\"column-list-products\">
{% import '@SyliusUi/Macro/messages.html.twig' as messages %}
{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %}
<div class=\"ui breadcrumb desktop-only\">
<a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
<div class=\"divider\"> / </div>
<a href=\"#\" class=\"section\">{{ 'sylius.ui.boutiqueenligne'|trans }}</a>
</div>
<h1 class=\"page__title\">
<span class=\"page__tagline\">{{ 'sylius.ui.boutiqueenligne'|trans }}</span>
{{ 'sylius.ui.decouvrez'|trans }}
</h1>
<p>
{{ bitbag_cms_render_block('intro_listeproduit') }}
</p>
<div class=\"ui clearing hidden divider\"></div>
{% if resources.data|length > 0 %}
<div class=\"products__card-grid\" id=\"products\" {{ sylius_test_html_attribute('products') }}>
{% for product in resources.data %}
{{ sylius_template_event('sylius.shop.product.index.box', {'product': product}) }}
{% endfor %}
</div>
<div class=\"ui hidden divider\"></div>
{{ pagination.simple(resources.data, {\"next_message\": \">\", \"prev_message\": \"<\" } ) }}
{% else %}
<p class=\"message\">
{{ 'sylius.ui.no_results_shop'|trans }}
<p>
{% endif %}
</div>
</div>
{% endblock %}
", "@SyliusShop/Product/index.html.twig", "/home/mons/site/www/templates/bundles/SyliusShopBundle/Product/index.html.twig");
}
}