var/cache/dev_h00fd8923ecf393ec0b25403e00167bec/twig/1e/1e2274ba88e5ff8c9b9082a8e37a485751fdf6e3325ae491a3b74b2c97d6843f.php line 43

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. /* @Storefront/storefront/utilities/offcanvas.html.twig */
  16. class __TwigTemplate_347c19f72a87811a7a2a1dd31ed290fa 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.             'utilities_offcanvas_meta' => [$this'block_utilities_offcanvas_meta'],
  27.             'utilities_offcanvas' => [$this'block_utilities_offcanvas'],
  28.             'utilities_offcanvas_header' => [$this'block_utilities_offcanvas_header'],
  29.             'utilities_offcanvas_close' => [$this'block_utilities_offcanvas_close'],
  30.             'utilities_offcanvas_close_icon' => [$this'block_utilities_offcanvas_close_icon'],
  31.             'utilities_offcanvas_close_text' => [$this'block_utilities_offcanvas_close_text'],
  32.             'utilities_offcanvas_content_container' => [$this'block_utilities_offcanvas_content_container'],
  33.             'utilities_offcanvas_content' => [$this'block_utilities_offcanvas_content'],
  34.         ];
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/utilities/offcanvas.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/utilities/offcanvas.html.twig"));
  43.         // line 8
  44.         echo "
  45. ";
  46.         // line 9
  47.         $context["isAjaxOffcanvas"] = false;
  48.         // line 10
  49.         echo "
  50. ";
  51.         // line 11
  52.         $this->displayBlock('utilities_offcanvas_meta'$context$blocks);
  53.         // line 17
  54.         echo "
  55. ";
  56.         // line 18
  57.         $this->displayBlock('utilities_offcanvas'$context$blocks);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.     }
  63.     // line 11
  64.     public function block_utilities_offcanvas_meta($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_meta"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_meta"));
  71.         // line 12
  72.         echo "    ";
  73.         // line 13
  74.         echo "    ";
  75.         if (( !sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse13), "xmlHttpRequest", [], "any"falsefalsefalse13) && ($context["isAjaxOffcanvas"] ?? null))) {
  76.             // line 14
  77.             echo "        ";
  78.             $this->loadTemplate("@Storefront/storefront/layout/meta.html.twig""@Storefront/storefront/utilities/offcanvas.html.twig"14)->display($context);
  79.             // line 15
  80.             echo "    ";
  81.         }
  82.         
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84.         
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  86.     }
  87.     // line 18
  88.     public function block_utilities_offcanvas($context, array $blocks = [])
  89.     {
  90.         $macros $this->macros;
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas"));
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas"));
  95.         // line 19
  96.         echo "    ";
  97.         // line 20
  98.         echo "    ";
  99.         if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("v6.5.0.0")) {
  100.             // line 21
  101.             echo "        ";
  102.             $this->displayBlock('utilities_offcanvas_header'$context$blocks);
  103.             // line 37
  104.             echo "    ";
  105.         } else {
  106.             // line 38
  107.             echo "        ";
  108.             $this->displayBlock("utilities_offcanvas_close"$context$blocks);
  109.             echo "
  110.     ";
  111.         }
  112.         // line 40
  113.         echo "
  114.     ";
  115.         // line 41
  116.         $this->displayBlock('utilities_offcanvas_content_container'$context$blocks);
  117.         
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  119.         
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  121.     }
  122.     // line 21
  123.     public function block_utilities_offcanvas_header($context, array $blocks = [])
  124.     {
  125.         $macros $this->macros;
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_header"));
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_header"));
  130.         // line 22
  131.         echo "            <div class=\"offcanvas-header p-0\">
  132.                 ";
  133.         // line 23
  134.         $this->displayBlock('utilities_offcanvas_close'$context$blocks);
  135.         // line 35
  136.         echo "            </div>
  137.         ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     // line 23
  144.     public function block_utilities_offcanvas_close($context, array $blocks = [])
  145.     {
  146.         $macros $this->macros;
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close"));
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close"));
  151.         // line 24
  152.         echo "                    ";
  153.         // line 25
  154.         echo "                    <button class=\"btn btn-light offcanvas-close js-offcanvas-close";
  155.         if ( !$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("v6.5.0.0")) {
  156.             echo " btn-block sticky-top";
  157.         }
  158.         echo "\">
  159.                         ";
  160.         // line 26
  161.         $this->displayBlock('utilities_offcanvas_close_icon'$context$blocks);
  162.         // line 29
  163.         echo "
  164.                         ";
  165.         // line 30
  166.         $this->displayBlock('utilities_offcanvas_close_text'$context$blocks);
  167.         // line 33
  168.         echo "                    </button>
  169.                 ";
  170.         
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  172.         
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  174.     }
  175.     // line 26
  176.     public function block_utilities_offcanvas_close_icon($context, array $blocks = [])
  177.     {
  178.         $macros $this->macros;
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close_icon"));
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close_icon"));
  183.         // line 27
  184.         echo "                            ";
  185.         ((function () use ($context$blocks) {
  186.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  187.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  188.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/utilities/offcanvas.html.twig"27);
  189.         })())->display(twig_array_merge($context, ["size" => "sm""name" => "x"]));
  190.         // line 28
  191.         echo "                        ";
  192.         
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194.         
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  196.     }
  197.     // line 30
  198.     public function block_utilities_offcanvas_close_text($context, array $blocks = [])
  199.     {
  200.         $macros $this->macros;
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close_text"));
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_close_text"));
  205.         // line 31
  206.         echo "                            ";
  207.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.offcanvasCloseMenu"));
  208.         echo "
  209.                         ";
  210.         
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  212.         
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  214.     }
  215.     // line 41
  216.     public function block_utilities_offcanvas_content_container($context, array $blocks = [])
  217.     {
  218.         $macros $this->macros;
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content_container"));
  221.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content_container"));
  223.         // line 42
  224.         echo "        ";
  225.         // line 43
  226.         echo "        <div class=\"";
  227.         if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\FeatureFlagExtension']->feature("v6.5.0.0")) {
  228.             echo "offcanvas-body";
  229.         } else {
  230.             echo "offcanvas-content-container";
  231.         }
  232.         echo "\">
  233.             ";
  234.         // line 44
  235.         $this->displayBlock('utilities_offcanvas_content'$context$blocks);
  236.         // line 45
  237.         echo "        </div>
  238.     ";
  239.         
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  241.         
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  243.     }
  244.     // line 44
  245.     public function block_utilities_offcanvas_content($context, array $blocks = [])
  246.     {
  247.         $macros $this->macros;
  248.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  249.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content"));
  250.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  251.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""utilities_offcanvas_content"));
  252.         
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  254.         
  255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  256.     }
  257.     public function getTemplateName()
  258.     {
  259.         return "@Storefront/storefront/utilities/offcanvas.html.twig";
  260.     }
  261.     public function isTraitable()
  262.     {
  263.         return false;
  264.     }
  265.     public function getDebugInfo()
  266.     {
  267.         return array (  292 => 44,  281 => 45,  279 => 44,  270 => 43,  268 => 42,  258 => 41,  245 => 31,  235 => 30,  225 => 28,  216 => 27,  206 => 26,  195 => 33,  193 => 30,  190 => 29,  188 => 26,  181 => 25,  179 => 24,  169 => 23,  158 => 35,  156 => 23,  153 => 22,  143 => 21,  133 => 41,  130 => 40,  124 => 38,  121 => 37,  118 => 21,  115 => 20,  113 => 19,  103 => 18,  92 => 15,  89 => 14,  86 => 13,  84 => 12,  74 => 11,  64 => 18,  61 => 17,  59 => 11,  56 => 10,  54 => 9,  51 => 8,);
  268.     }
  269.     public function getSourceContext()
  270.     {
  271.         return new Source("{#
  272.     @deprecated tag:v6.5.0 - Announcement:
  273.     Bootstrap v5 comes with its own OffCanvas component.
  274.     This template will be adjusted to use Bootstraps OffCanvas markup.
  275.     @see https://getbootstrap.com/docs/5.1/components/offcanvas
  276. #}
  277. {% set isAjaxOffcanvas = false %}
  278. {% block utilities_offcanvas_meta %}
  279.     {# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
  280.     {% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
  281.         {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  282.     {% endif %}
  283. {% endblock %}
  284. {% block utilities_offcanvas %}
  285.     {# @deprecated tag:v6.5.0 - Bootstrap v5 adds `.offcanvas-header` wrapper #}
  286.     {% if feature('v6.5.0.0') %}
  287.         {% block utilities_offcanvas_header %}
  288.             <div class=\"offcanvas-header p-0\">
  289.                 {% block utilities_offcanvas_close %}
  290.                     {# @deprecated tag:v6.5.0 - Bootstrap v5 will not require classes `.btn-block .sticky-top`. Only `.offcanvas-body` will be scrollable #}
  291.                     <button class=\"btn btn-light offcanvas-close js-offcanvas-close{% if not feature('v6.5.0.0') %} btn-block sticky-top{% endif %}\">
  292.                         {% block utilities_offcanvas_close_icon %}
  293.                             {% sw_icon 'x' style { 'size': 'sm' } %}
  294.                         {% endblock %}
  295.                         {% block utilities_offcanvas_close_text %}
  296.                             {{ \"general.offcanvasCloseMenu\"|trans|sw_sanitize }}
  297.                         {% endblock %}
  298.                     </button>
  299.                 {% endblock %}
  300.             </div>
  301.         {% endblock %}
  302.     {% else %}
  303.         {{ block('utilities_offcanvas_close') }}
  304.     {% endif %}
  305.     {% block utilities_offcanvas_content_container %}
  306.         {# @deprecated tag:v6.5.0 - Bootstrap v5 will use class `.offcanvas-body` to wrap the offcanvas content #}
  307.         <div class=\"{% if feature('v6.5.0.0') %}offcanvas-body{% else %}offcanvas-content-container{% endif %}\">
  308.             {% block utilities_offcanvas_content %}{% endblock %}
  309.         </div>
  310.     {% endblock %}
  311. {% endblock %}
  312. ""@Storefront/storefront/utilities/offcanvas.html.twig""/var/www/shopware6/vendor/shopware/storefront/Resources/views/storefront/utilities/offcanvas.html.twig");
  313.     }
  314. }