var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/27/2715ea9ed65b761f4362bf2cc1ee3abcde4ea034029a7e64ceff2e203b8160cd.php line 111

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/element/cms-element-blog.html.twig */
  16. class __TwigTemplate_4308e43188810705995993beb1a70e0d5b2e92275013a6f343d608c28149aed2 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->parent false;
  25.         $this->blocks = [
  26.             'sas_element_blog_listing' => [$this'block_sas_element_blog_listing'],
  27.             'sas_element_blog_listing_wrapper' => [$this'block_sas_element_blog_listing_wrapper'],
  28.             'sas_block_filter_panel' => [$this'block_sas_block_filter_panel'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SasBlogModule/storefront/element/cms-element-blog.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SasBlogModule/storefront/element/cms-element-blog.html.twig"));
  38.         // line 1
  39.         $this->displayBlock('sas_element_blog_listing'$context$blocks);
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     public function block_sas_element_blog_listing($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sas_element_blog_listing"));
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sas_element_blog_listing"));
  52.         // line 2
  53.         echo "
  54.     ";
  55.         // line 4
  56.         echo "    ";
  57.         $context["searchResult"] = sw_get_attribute($this->env$this->source, ($context["element"] ?? null), "data", [], "any"falsefalsefalse4);
  58.         // line 5
  59.         echo "    ";
  60.         $context["config"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["element"] ?? null), "fieldConfig", [], "any"falsefalsefalse5), "elements", [], "any"falsefalsefalse5);
  61.         // line 6
  62.         echo "
  63.     ";
  64.         // line 7
  65.         $context["slot"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse7), "firstElementOfType", [=> "blog"], "method"falsefalsefalse7);
  66.         // line 8
  67.         echo "
  68.     ";
  69.         // line 9
  70.         $context["filterUrl"] = null;
  71.         // line 10
  72.         echo "    ";
  73.         $context["dataUrl"] = null;
  74.         // line 11
  75.         echo "
  76.     ";
  77.         // line 12
  78.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse12), "navigation", [], "any"falsefalsefalse12), "active", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12)) {
  79.             // line 13
  80.             echo "        ";
  81.             $context["filterUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend.cms.navigation.filter", ["navigationId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse13), "navigation", [], "any"falsefalsefalse13), "active", [], "any"falsefalsefalse13), "id", [], "any"falsefalsefalse13)]);
  82.             // line 14
  83.             echo "        ";
  84.             $context["dataUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("frontend.cms.navigation.page", ["navigationId" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse14), "navigation", [], "any"falsefalsefalse14), "active", [], "any"falsefalsefalse14), "id", [], "any"falsefalsefalse14)]);
  85.             // line 15
  86.             echo "    ";
  87.         }
  88.         // line 16
  89.         echo "
  90.     ";
  91.         // line 17
  92.         $context["params"] = ["slots" => sw_get_attribute($this->env$this->source, ($context["slot"] ?? null), "id", [], "any"falsefalsefalse17), "no-aggregations" => 1];
  93.         // line 18
  94.         echo "
  95.     ";
  96.         // line 19
  97.         $this->displayBlock('sas_element_blog_listing_wrapper'$context$blocks);
  98.         
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.     }
  103.     public function block_sas_element_blog_listing_wrapper($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sas_element_blog_listing_wrapper"));
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sas_element_blog_listing_wrapper"));
  110.         // line 20
  111.         echo "        ";
  112.         $this->displayBlock('sas_block_filter_panel'$context$blocks);
  113.         // line 32
  114.         echo "
  115.         ";
  116.         // line 33
  117.         $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
  118. ($context["searchResult"] ?? null), "dataUrl" =>         // line 35
  119. ($context["dataUrl"] ?? null), "filterUrl" =>         // line 36
  120. ($context["filterUrl"] ?? null), "params" =>         // line 37
  121. ($context["params"] ?? null), "config" =>         // line 38
  122. ($context["config"] ?? null)]));
  123.         // line 40
  124.         echo "    ";
  125.         
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  127.         
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  129.     }
  130.     // line 20
  131.     public function block_sas_block_filter_panel($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sas_block_filter_panel"));
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sas_block_filter_panel"));
  138.         // line 21
  139.         echo "            ";
  140.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "showCategoryFilter", [], "any"falsefalsefalse21), "value", [], "any"falsefalsefalse21) || sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["config"] ?? null), "showAuthorFilter", [], "any"falsefalsefalse21), "value", [], "any"falsefalsefalse21))) {
  141.             // line 22
  142.             echo "                <div id=\"filter-panel-wrapper\"
  143.                      class=\"filter-panel-wrapper\"
  144.                      data-offcanvas-filter-content=\"true\">
  145.                     ";
  146.             // line 25
  147.             $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
  148. ($context["searchResult"] ?? null), "sidebar" => false]));
  149.             // line 29
  150.             echo "                </div>
  151.             ";
  152.         }
  153.         // line 31
  154.         echo "        ";
  155.         
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  157.         
  158.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  159.     }
  160.     public function getTemplateName()
  161.     {
  162.         return "@SasBlogModule/storefront/element/cms-element-blog.html.twig";
  163.     }
  164.     public function getDebugInfo()
  165.     {
  166.         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,);
  167.     }
  168.     public function getSourceContext()
  169.     {
  170.         return new Source("{% block sas_element_blog_listing %}
  171.     {# @var result \\Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\EntitySearchResult #}
  172.     {% set searchResult = element.data %}
  173.     {% set config = element.fieldConfig.elements %}
  174.     {% set slot = page.cmsPage.firstElementOfType('blog') %}
  175.     {% set filterUrl = null %}
  176.     {% set dataUrl = null %}
  177.     {% if page.header.navigation.active.id %}
  178.         {% set filterUrl = url('frontend.cms.navigation.filter', { navigationId: page.header.navigation.active.id }) %}
  179.         {% set dataUrl = url('frontend.cms.navigation.page', { navigationId: page.header.navigation.active.id }) %}
  180.     {% endif %}
  181.     {% set params = { slots: slot.id, 'no-aggregations': 1 } %}
  182.     {% block sas_element_blog_listing_wrapper %}
  183.         {% block sas_block_filter_panel %}
  184.             {% if config.showCategoryFilter.value or config.showAuthorFilter.value %}
  185.                 <div id=\"filter-panel-wrapper\"
  186.                      class=\"filter-panel-wrapper\"
  187.                      data-offcanvas-filter-content=\"true\">
  188.                     {% sw_include '@Storefront/storefront/component/listing/blog-filter-panel.html.twig' with {
  189.                         listing: searchResult,
  190.                         sidebar: false
  191.                     } %}
  192.                 </div>
  193.             {% endif %}
  194.         {% endblock %}
  195.         {% sw_include '@Storefront/storefront/component/blog/listing.html.twig' with {
  196.             searchResult: searchResult,
  197.             dataUrl: dataUrl,
  198.             filterUrl: filterUrl,
  199.             params: params,
  200.             config: config
  201.         } %}
  202.     {% endblock %}
  203. {% endblock %}
  204. ""@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");
  205.     }
  206. }