var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/02/02a422b293e1a28e13fa9e74759a29e392f271c8ad02b1d3364dc6a687c10512.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig */
  16. class __TwigTemplate_925113c261a42c310169e4be30415a6b3bd3ecb494e70c6a1fc2ab3ace2e7702 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'component_filter_panel_items_container' => [$this'block_component_filter_panel_items_container'],
  26.             'component_filter_panel_item_category' => [$this'block_component_filter_panel_item_category'],
  27.             'component_filter_panel_item_author' => [$this'block_component_filter_panel_item_author'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@Storefront/storefront/component/listing/filter-panel.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig"));
  42.         $this->parent $this->loadTemplate("@Storefront/storefront/component/listing/filter-panel.html.twig""@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_component_filter_panel_items_container($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_items_container"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_items_container"));
  57.         // line 4
  58.         echo "    <div class=\"filter-panel-items-container\">
  59.         ";
  60.         // line 5
  61.         $this->displayBlock('component_filter_panel_item_category'$context$blocks);
  62.         // line 20
  63.         echo "
  64.         ";
  65.         // line 21
  66.         $this->displayBlock('component_filter_panel_item_author'$context$blocks);
  67.         // line 36
  68.         echo "    </div>
  69. ";
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 5
  76.     public function block_component_filter_panel_item_category($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_item_category"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_item_category"));
  83.         // line 6
  84.         echo "            ";
  85.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "showCategoryFilter", [], "any"falsefalsefalse6), "value", [], "any"falsefalsefalse6)) {
  86.             // line 7
  87.             echo "                ";
  88.             $context["blogCategories"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["listing"] ?? null), "aggregations", [], "any"falsefalsefalse7), "get", [=> "blogCategories"], "method"falsefalsefalse7);
  89.             // line 8
  90.             echo "                ";
  91.             if ( !twig_test_empty(sw_get_attribute($this->env$this->source, ($context["blogCategories"] ?? null), "entities", [], "any"falsefalsefalse8))) {
  92.                 // line 9
  93.                 echo "                    ";
  94.                 $context["blogCategoriesSorted"] = twig_sort_filter($this->envsw_get_attribute($this->env$this->source, ($context["blogCategories"] ?? null), "entities", [], "any"falsefalsefalse9), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_lower_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["a"] ?? null), "translated", [], "any"falsefalsefalse9), "name", [], "any"falsefalsefalse9)) > twig_lower_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["b"] ?? null), "translated", [], "any"falsefalsefalse9), "name", [], "any"falsefalsefalse9))); });
  95.                 // line 10
  96.                 echo "
  97.                     ";
  98.                 // line 11
  99.                 $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
  100. ($context["blogCategoriesSorted"] ?? null), "sidebar" =>                 // line 13
  101. ($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"))]));
  102.                 // line 17
  103.                 echo "                ";
  104.             }
  105.             // line 18
  106.             echo "            ";
  107.         }
  108.         // line 19
  109.         echo "        ";
  110.         
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  112.         
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  114.     }
  115.     // line 21
  116.     public function block_component_filter_panel_item_author($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_item_author"));
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_filter_panel_item_author"));
  123.         // line 22
  124.         echo "            ";
  125.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "showAuthorFilter", [], "any"falsefalsefalse22), "value", [], "any"falsefalsefalse22)) {
  126.             // line 23
  127.             echo "                ";
  128.             $context["authors"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["listing"] ?? null), "aggregations", [], "any"falsefalsefalse23), "get", [=> "authors"], "method"falsefalsefalse23);
  129.             // line 24
  130.             echo "                ";
  131.             if ( !twig_test_empty(sw_get_attribute($this->env$this->source, ($context["authors"] ?? null), "entities", [], "any"falsefalsefalse24))) {
  132.                 // line 25
  133.                 echo "                    ";
  134.                 $context["authorsSorted"] = twig_sort_filter($this->envsw_get_attribute($this->env$this->source, ($context["authors"] ?? null), "entities", [], "any"falsefalsefalse25), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_lower_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["a"] ?? null), "translated", [], "any"falsefalsefalse25), "name", [], "any"falsefalsefalse25)) > twig_lower_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["b"] ?? null), "translated", [], "any"falsefalsefalse25), "name", [], "any"falsefalsefalse25))); });
  135.                 // line 26
  136.                 echo "
  137.                     ";
  138.                 // line 27
  139.                 $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
  140. ($context["authorsSorted"] ?? null), "sidebar" =>                 // line 29
  141. ($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"))]));
  142.                 // line 33
  143.                 echo "                ";
  144.             }
  145.             // line 34
  146.             echo "            ";
  147.         }
  148.         // line 35
  149.         echo "        ";
  150.         
  151.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  152.         
  153.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  154.     }
  155.     public function getTemplateName()
  156.     {
  157.         return "@SasBlogModule/storefront/component/listing/blog-filter-panel.html.twig";
  158.     }
  159.     public function isTraitable()
  160.     {
  161.         return false;
  162.     }
  163.     public function getDebugInfo()
  164.     {
  165.         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,);
  166.     }
  167.     public function getSourceContext()
  168.     {
  169.         return new Source("{% sw_extends '@Storefront/storefront/component/listing/filter-panel.html.twig' %}
  170. {% block component_filter_panel_items_container %}
  171.     <div class=\"filter-panel-items-container\">
  172.         {% block component_filter_panel_item_category %}
  173.             {% if config.showCategoryFilter.value %}
  174.                 {% set blogCategories = listing.aggregations.get('blogCategories') %}
  175.                 {% if not blogCategories.entities is empty %}
  176.                     {% set blogCategoriesSorted = blogCategories.entities|sort((a, b) => a.translated.name|lower > b.translated.name|lower) %}
  177.                     {% sw_include '@Storefront/storefront/component/listing/filter/filter-multi-select.html.twig' with {
  178.                         elements: blogCategoriesSorted,
  179.                         sidebar: sidebar,
  180.                         name: 'categories',
  181.                         displayName: 'sas-blog.listing.filterBlogCategoriesDisplayName'|trans|sw_sanitize
  182.                     } %}
  183.                 {% endif %}
  184.             {% endif %}
  185.         {% endblock %}
  186.         {% block component_filter_panel_item_author %}
  187.             {% if config.showAuthorFilter.value %}
  188.                 {% set authors = listing.aggregations.get('authors') %}
  189.                 {% if not authors.entities is empty %}
  190.                     {% set authorsSorted = authors.entities|sort((a, b) => a.translated.name|lower > b.translated.name|lower) %}
  191.                     {% sw_include '@Storefront/storefront/component/listing/filter/filter-multi-select.html.twig' with {
  192.                         elements: authorsSorted,
  193.                         sidebar: sidebar,
  194.                         name: 'authors',
  195.                         displayName: 'sas-blog.listing.filterBlogAuthorDisplayName'|trans|sw_sanitize
  196.                     } %}
  197.                 {% endif %}
  198.             {% endif %}
  199.         {% endblock %}
  200.     </div>
  201. {% endblock %}
  202. ""@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");
  203.     }
  204. }