<?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/component/listing/blog-filter-panel.html.twig */
class __TwigTemplate_925113c261a42c310169e4be30415a6b3bd3ecb494e70c6a1fc2ab3ace2e7702 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_filter_panel_items_container' => [$this, 'block_component_filter_panel_items_container'],
'component_filter_panel_item_category' => [$this, 'block_component_filter_panel_item_category'],
'component_filter_panel_item_author' => [$this, 'block_component_filter_panel_item_author'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/component/listing/filter-panel.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", "@SasBlogModule/storefront/component/listing/blog-filter-panel.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/component/listing/blog-filter-panel.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/component/listing/filter-panel.html.twig", "@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_component_filter_panel_items_container($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", "component_filter_panel_items_container"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_filter_panel_items_container"));
// line 4
echo " <div class=\"filter-panel-items-container\">
";
// line 5
$this->displayBlock('component_filter_panel_item_category', $context, $blocks);
// line 20
echo "
";
// line 21
$this->displayBlock('component_filter_panel_item_author', $context, $blocks);
// line 36
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_component_filter_panel_item_category($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", "component_filter_panel_item_category"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_filter_panel_item_category"));
// line 6
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "showCategoryFilter", [], "any", false, false, false, 6), "value", [], "any", false, false, false, 6)) {
// line 7
echo " ";
$context["blogCategories"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "aggregations", [], "any", false, false, false, 7), "get", [0 => "blogCategories"], "method", false, false, false, 7);
// line 8
echo " ";
if ( !twig_test_empty(sw_get_attribute($this->env, $this->source, ($context["blogCategories"] ?? null), "entities", [], "any", false, false, false, 8))) {
// line 9
echo " ";
$context["blogCategoriesSorted"] = twig_sort_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["blogCategories"] ?? null), "entities", [], "any", false, false, false, 9), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_lower_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["a"] ?? null), "translated", [], "any", false, false, false, 9), "name", [], "any", false, false, false, 9)) > twig_lower_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["b"] ?? null), "translated", [], "any", false, false, false, 9), "name", [], "any", false, false, false, 9))); });
// line 10
echo "
";
// line 11
$this->loadTemplate("@Storefront/storefront/component/listing/filter/filter-multi-select.html.twig", "@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig", 11)->display(twig_array_merge($context, ["elements" => // line 12
($context["blogCategoriesSorted"] ?? null), "sidebar" => // line 13
($context["sidebar"] ?? null), "name" => "categories", "displayName" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sas-blog.listing.filterBlogCategoriesDisplayName"))]));
// line 17
echo " ";
}
// line 18
echo " ";
}
// line 19
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_component_filter_panel_item_author($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", "component_filter_panel_item_author"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_filter_panel_item_author"));
// line 22
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["config"] ?? null), "showAuthorFilter", [], "any", false, false, false, 22), "value", [], "any", false, false, false, 22)) {
// line 23
echo " ";
$context["authors"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["listing"] ?? null), "aggregations", [], "any", false, false, false, 23), "get", [0 => "authors"], "method", false, false, false, 23);
// line 24
echo " ";
if ( !twig_test_empty(sw_get_attribute($this->env, $this->source, ($context["authors"] ?? null), "entities", [], "any", false, false, false, 24))) {
// line 25
echo " ";
$context["authorsSorted"] = twig_sort_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["authors"] ?? null), "entities", [], "any", false, false, false, 25), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_lower_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["a"] ?? null), "translated", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25)) > twig_lower_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["b"] ?? null), "translated", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25))); });
// line 26
echo "
";
// line 27
$this->loadTemplate("@Storefront/storefront/component/listing/filter/filter-multi-select.html.twig", "@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig", 27)->display(twig_array_merge($context, ["elements" => // line 28
($context["authorsSorted"] ?? null), "sidebar" => // line 29
($context["sidebar"] ?? null), "name" => "authors", "displayName" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sas-blog.listing.filterBlogAuthorDisplayName"))]));
// line 33
echo " ";
}
// line 34
echo " ";
}
// line 35
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 171 => 35, 168 => 34, 165 => 33, 163 => 29, 162 => 28, 161 => 27, 158 => 26, 155 => 25, 152 => 24, 149 => 23, 146 => 22, 136 => 21, 126 => 19, 123 => 18, 120 => 17, 118 => 13, 117 => 12, 116 => 11, 113 => 10, 110 => 9, 107 => 8, 104 => 7, 101 => 6, 91 => 5, 80 => 36, 78 => 21, 75 => 20, 73 => 5, 70 => 4, 60 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/listing/filter-panel.html.twig' %}
{% block component_filter_panel_items_container %}
<div class=\"filter-panel-items-container\">
{% block component_filter_panel_item_category %}
{% if config.showCategoryFilter.value %}
{% set blogCategories = listing.aggregations.get('blogCategories') %}
{% if not blogCategories.entities is empty %}
{% set blogCategoriesSorted = blogCategories.entities|sort((a, b) => a.translated.name|lower > b.translated.name|lower) %}
{% sw_include '@Storefront/storefront/component/listing/filter/filter-multi-select.html.twig' with {
elements: blogCategoriesSorted,
sidebar: sidebar,
name: 'categories',
displayName: 'sas-blog.listing.filterBlogCategoriesDisplayName'|trans|sw_sanitize
} %}
{% endif %}
{% endif %}
{% endblock %}
{% block component_filter_panel_item_author %}
{% if config.showAuthorFilter.value %}
{% set authors = listing.aggregations.get('authors') %}
{% if not authors.entities is empty %}
{% set authorsSorted = authors.entities|sort((a, b) => a.translated.name|lower > b.translated.name|lower) %}
{% sw_include '@Storefront/storefront/component/listing/filter/filter-multi-select.html.twig' with {
elements: authorsSorted,
sidebar: sidebar,
name: 'authors',
displayName: 'sas-blog.listing.filterBlogAuthorDisplayName'|trans|sw_sanitize
} %}
{% endif %}
{% endif %}
{% endblock %}
</div>
{% endblock %}
", "@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SasBlogModule/src/Resources/views/storefront/component/listing/blog-filter-panel.html.twig");
}
}