<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig */
class __TwigTemplate_6994c695c4bfa45807a122b38672066d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'element_recipe_list' => [$this, 'block_element_recipe_list'],
'rcp_element_recipe_listing_wrapper' => [$this, 'block_rcp_element_recipe_listing_wrapper'],
'rcp_block_filter_panel' => [$this, 'block_rcp_block_filter_panel'],
];
}
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", "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig"));
// line 1
$this->displayBlock('element_recipe_list', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_element_recipe_list($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", "element_recipe_list"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_recipe_list"));
// line 2
echo " ";
$context["searchResult"] = sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 2);
// line 3
echo " ";
$context["config"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "fieldConfig", [], "any", false, false, false, 3), "elements", [], "any", false, false, false, 3);
// line 4
echo "
";
// line 5
$context["rcpId"] = sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "id", [], "any", false, false, false, 5);
// line 6
echo " ";
$context["rcpWrapper"] = ("cms-element-recipe-listing-wrapper-" . ($context["rcpId"] ?? null));
// line 7
echo "
";
// line 8
$context["filterUrl"] = null;
// line 9
echo " ";
$context["dataUrl"] = null;
// line 10
echo "
";
// line 11
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 11), "navigation", [], "any", false, false, false, 11), "active", [], "any", false, false, false, 11), "id", [], "any", false, false, false, 11)) {
// line 12
echo " ";
$context["filterUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend.cms.navigation.filter", ["navigationId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 12), "navigation", [], "any", false, false, false, 12), "active", [], "any", false, false, false, 12), "id", [], "any", false, false, false, 12)]);
// line 13
echo " ";
$context["dataUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend.cms.navigation.page", ["navigationId" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "header", [], "any", false, false, false, 13), "navigation", [], "any", false, false, false, 13), "active", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13)]);
// line 14
echo " ";
}
// line 15
echo "
";
// line 16
$context["params"] = ["slots" => sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "id", [], "any", false, false, false, 16), "no-aggregations" => 1];
// line 17
echo "
";
// line 18
$this->displayBlock('rcp_element_recipe_listing_wrapper', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function block_rcp_element_recipe_listing_wrapper($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", "rcp_element_recipe_listing_wrapper"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "rcp_element_recipe_listing_wrapper"));
// line 19
echo "
";
// line 20
$this->displayBlock('rcp_block_filter_panel', $context, $blocks);
// line 31
echo "
";
// line 32
$this->loadTemplate("@NdsRecipeManager/rcpmanager/recipe/listing.html.twig", "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig", 32)->display(twig_array_merge($context, ["searchResult" => // line 33
($context["searchResult"] ?? null), "dataUrl" => // line 34
($context["dataUrl"] ?? null), "filterUrl" => // line 35
($context["filterUrl"] ?? null), "params" => // line 36
($context["params"] ?? null), "config" => // line 37
($context["config"] ?? null), "rcpWrapper" => // line 38
($context["rcpWrapper"] ?? null), "rcpId" => // line 39
($context["rcpId"] ?? null)]));
// line 41
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_rcp_block_filter_panel($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", "rcp_block_filter_panel"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "rcp_block_filter_panel"));
// line 21
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "enableFilter", [], "any", false, false, false, 21), "value", [], "any", false, false, false, 21)) {
// line 22
echo " ";
$this->loadTemplate("@LDSCustom/rcpmanager/listing/recipe-filter-panel.html.twig", "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig", 22)->display(twig_array_merge($context, ["config" => // line 23
($context["config"] ?? null), "listing" => // line 24
($context["searchResult"] ?? null), "sidebar" => false, "rcpWrapper" => // line 26
($context["rcpWrapper"] ?? null), "rcpId" => // line 27
($context["rcpId"] ?? null)]));
// line 29
echo " ";
}
// line 30
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig";
}
public function getDebugInfo()
{
return array ( 178 => 30, 175 => 29, 173 => 27, 172 => 26, 171 => 24, 170 => 23, 168 => 22, 165 => 21, 155 => 20, 145 => 41, 143 => 39, 142 => 38, 141 => 37, 140 => 36, 139 => 35, 138 => 34, 137 => 33, 136 => 32, 133 => 31, 131 => 20, 128 => 19, 109 => 18, 106 => 17, 104 => 16, 101 => 15, 98 => 14, 95 => 13, 92 => 12, 90 => 11, 87 => 10, 84 => 9, 82 => 8, 79 => 7, 76 => 6, 74 => 5, 71 => 4, 68 => 3, 65 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% block element_recipe_list %}
{% set searchResult = element.data %}
{% set config = element.fieldConfig.elements %}
{% set rcpId = element.id %}
{% set rcpWrapper = 'cms-element-recipe-listing-wrapper-' ~ rcpId %}
{% set filterUrl = null %}
{% set dataUrl = null %}
{% if page.header.navigation.active.id %}
{% set filterUrl = url('frontend.cms.navigation.filter', { navigationId: page.header.navigation.active.id }) %}
{% set dataUrl = url('frontend.cms.navigation.page', { navigationId: page.header.navigation.active.id }) %}
{% endif %}
{% set params = { slots: element.id, 'no-aggregations': 1 } %}
{% block rcp_element_recipe_listing_wrapper %}
{% block rcp_block_filter_panel %}
{% if config.enableFilter.value %}
{% sw_include '@Storefront/rcpmanager/listing/recipe-filter-panel.html.twig' with {
config: config,
listing: searchResult,
sidebar: false,
rcpWrapper: rcpWrapper,
rcpId: rcpId,
} %}
{% endif %}
{% endblock %}
{% sw_include '@Storefront/rcpmanager/recipe/listing.html.twig' with {
searchResult: searchResult,
dataUrl: dataUrl,
filterUrl: filterUrl,
params: params,
config: config,
rcpWrapper: rcpWrapper,
rcpId: rcpId,
} %}
{% endblock %}
{% endblock %}
", "@NdsRecipeManager/storefront/element/cms-element-recipe-list.html.twig", "/var/customers/webs/kew/htdocs6/vendor/store.shopware.com/ndsrecipemanager/src/Resources/views/storefront/element/cms-element-recipe-list.html.twig");
}
}