<?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;
/* @SasBlogModule/storefront/element/cms-element-blog.html.twig */
class __TwigTemplate_4308e43188810705995993beb1a70e0d5b2e92275013a6f343d608c28149aed2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'sas_element_blog_listing' => [$this, 'block_sas_element_blog_listing'],
'sas_element_blog_listing_wrapper' => [$this, 'block_sas_element_blog_listing_wrapper'],
'sas_block_filter_panel' => [$this, 'block_sas_block_filter_panel'],
];
}
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", "@SasBlogModule/storefront/element/cms-element-blog.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SasBlogModule/storefront/element/cms-element-blog.html.twig"));
// line 1
$this->displayBlock('sas_element_blog_listing', $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_sas_element_blog_listing($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", "sas_element_blog_listing"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sas_element_blog_listing"));
// line 2
echo "
";
// line 4
echo " ";
$context["searchResult"] = sw_get_attribute($this->env, $this->source, ($context["element"] ?? null), "data", [], "any", false, false, false, 4);
// line 5
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, 5), "elements", [], "any", false, false, false, 5);
// line 6
echo "
";
// line 7
$context["slot"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 7), "firstElementOfType", [0 => "blog"], "method", false, false, false, 7);
// line 8
echo "
";
// line 9
$context["filterUrl"] = null;
// line 10
echo " ";
$context["dataUrl"] = null;
// line 11
echo "
";
// line 12
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, 12), "navigation", [], "any", false, false, false, 12), "active", [], "any", false, false, false, 12), "id", [], "any", false, false, false, 12)) {
// line 13
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, 13), "navigation", [], "any", false, false, false, 13), "active", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13)]);
// line 14
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, 14), "navigation", [], "any", false, false, false, 14), "active", [], "any", false, false, false, 14), "id", [], "any", false, false, false, 14)]);
// line 15
echo " ";
}
// line 16
echo "
";
// line 17
$context["params"] = ["slots" => sw_get_attribute($this->env, $this->source, ($context["slot"] ?? null), "id", [], "any", false, false, false, 17), "no-aggregations" => 1];
// line 18
echo "
";
// line 19
$this->displayBlock('sas_element_blog_listing_wrapper', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_sas_element_blog_listing_wrapper($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", "sas_element_blog_listing_wrapper"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sas_element_blog_listing_wrapper"));
// line 20
echo " ";
$this->displayBlock('sas_block_filter_panel', $context, $blocks);
// line 32
echo "
";
// line 33
$this->loadTemplate("@SasBlogModule/storefront/component/blog/listing.html.twig", "@SasBlogModule/storefront/element/cms-element-blog.html.twig", 33)->display(twig_array_merge($context, ["searchResult" => // line 34
($context["searchResult"] ?? null), "dataUrl" => // line 35
($context["dataUrl"] ?? null), "filterUrl" => // line 36
($context["filterUrl"] ?? null), "params" => // line 37
($context["params"] ?? null), "config" => // line 38
($context["config"] ?? null)]));
// line 40
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_sas_block_filter_panel($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", "sas_block_filter_panel"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sas_block_filter_panel"));
// line 21
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "showCategoryFilter", [], "any", false, false, false, 21), "value", [], "any", false, false, false, 21) || sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "showAuthorFilter", [], "any", false, false, false, 21), "value", [], "any", false, false, false, 21))) {
// line 22
echo " <div id=\"filter-panel-wrapper\"
class=\"filter-panel-wrapper\"
data-offcanvas-filter-content=\"true\">
";
// line 25
$this->loadTemplate("@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig", "@SasBlogModule/storefront/element/cms-element-blog.html.twig", 25)->display(twig_array_merge($context, ["listing" => // line 26
($context["searchResult"] ?? null), "sidebar" => false]));
// line 29
echo " </div>
";
}
// line 31
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SasBlogModule/storefront/element/cms-element-blog.html.twig";
}
public function getDebugInfo()
{
return array ( 176 => 31, 172 => 29, 170 => 26, 169 => 25, 164 => 22, 161 => 21, 151 => 20, 141 => 40, 139 => 38, 138 => 37, 137 => 36, 136 => 35, 135 => 34, 134 => 33, 131 => 32, 128 => 20, 109 => 19, 106 => 18, 104 => 17, 101 => 16, 98 => 15, 95 => 14, 92 => 13, 90 => 12, 87 => 11, 84 => 10, 82 => 9, 79 => 8, 77 => 7, 74 => 6, 71 => 5, 68 => 4, 65 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% block sas_element_blog_listing %}
{# @var result \\Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\EntitySearchResult #}
{% set searchResult = element.data %}
{% set config = element.fieldConfig.elements %}
{% set slot = page.cmsPage.firstElementOfType('blog') %}
{% 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: slot.id, 'no-aggregations': 1 } %}
{% block sas_element_blog_listing_wrapper %}
{% block sas_block_filter_panel %}
{% if config.showCategoryFilter.value or config.showAuthorFilter.value %}
<div id=\"filter-panel-wrapper\"
class=\"filter-panel-wrapper\"
data-offcanvas-filter-content=\"true\">
{% sw_include '@Storefront/storefront/component/listing/blog-filter-panel.html.twig' with {
listing: searchResult,
sidebar: false
} %}
</div>
{% endif %}
{% endblock %}
{% sw_include '@Storefront/storefront/component/blog/listing.html.twig' with {
searchResult: searchResult,
dataUrl: dataUrl,
filterUrl: filterUrl,
params: params,
config: config
} %}
{% endblock %}
{% endblock %}
", "@SasBlogModule/storefront/element/cms-element-blog.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SasBlogModule/src/Resources/views/storefront/element/cms-element-blog.html.twig");
}
}