var/cache/dev/twig/b2/b23378f64929707ab510cb2dbfbdda93.php line 183

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/_header.html.twig */
  14. class __TwigTemplate_1d014aa8c58d419514c4997682e05abb extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/_header.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/_header.html.twig"));
  33.         // line 1
  34.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/_header.html.twig"1)->unwrap();
  35.         // line 2
  36.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  37.             // line 3
  38.             echo "    ";
  39.             $context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texte_header_client_connecte"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'3$this->source); })()), "channel", [], "any"falsefalsefalse3), "code", [], "any"falsefalsefalse3));
  40.         } else {
  41.             // line 5
  42.             echo "    ";
  43.             $context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texte_header_client_non_connecte"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'5$this->source); })()), "channel", [], "any"falsefalsefalse5), "code", [], "any"falsefalsefalse5));
  44.         }
  45.         // line 7
  46.         echo "
  47. ";
  48.         // line 8
  49.         $context["block_welcome_pack"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("welcome_pack"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'8$this->source); })()), "channel", [], "any"falsefalsefalse8), "code", [], "any"falsefalsefalse8));
  50.         // line 9
  51.         $context["texteperso_header"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_header"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'9$this->source); })()), "channel", [], "any"falsefalsefalse9), "code", [], "any"falsefalsefalse9));
  52.         // line 10
  53.         echo "<div class=\"header-top d-none d-md-block hidden-fixed\">
  54.     <div class=\"container px-0 position-relative\">
  55.         <div class=\"col text-lg-center text-left d-none d-lg-block\">
  56.             <div class=\"swiper-container bann-header\">
  57.                 <div class=\"swiper-wrapper\">
  58.                 ";
  59.         // line 15
  60.         if (twig_get_attribute($this->env$this->source, ($context["block"] ?? null), "content", [], "any"truetruefalse15)) {
  61.             // line 16
  62.             echo "                    <div class=\"swiper-slide\">
  63.                         ";
  64.             // line 17
  65.             echo twig_get_attribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'17$this->source); })()), "content", [], "any"falsefalsefalse17);
  66.             echo "
  67.                     </div>
  68.                 ";
  69.         }
  70.         // line 20
  71.         echo "                ";
  72.         if (((isset($context["block_welcome_pack"]) || array_key_exists("block_welcome_pack"$context) ? $context["block_welcome_pack"] : (function () { throw new RuntimeError('Variable "block_welcome_pack" does not exist.'20$this->source); })()) && twig_get_attribute($this->env$this->source, ($context["block_welcome_pack"] ?? null), "content", [], "any"truetruefalse20))) {
  73.             // line 21
  74.             echo "                    <div class=\"swiper-slide\">
  75.                         ";
  76.             // line 22
  77.             echo twig_get_attribute($this->env$this->source, (isset($context["block_welcome_pack"]) || array_key_exists("block_welcome_pack"$context) ? $context["block_welcome_pack"] : (function () { throw new RuntimeError('Variable "block_welcome_pack" does not exist.'22$this->source); })()), "content", [], "any"falsefalsefalse22);
  78.             echo "
  79.                     </div>
  80.                 ";
  81.         }
  82.         // line 25
  83.         echo "                ";
  84.         if (twig_get_attribute($this->env$this->source, ($context["texteperso_header"] ?? null), "content", [], "any"truetruefalse25)) {
  85.             // line 26
  86.             echo "                    <div class=\"swiper-slide\">
  87.                         ";
  88.             // line 27
  89.             echo twig_get_attribute($this->env$this->source, (isset($context["texteperso_header"]) || array_key_exists("texteperso_header"$context) ? $context["texteperso_header"] : (function () { throw new RuntimeError('Variable "texteperso_header" does not exist.'27$this->source); })()), "content", [], "any"falsefalsefalse27);
  90.             echo "
  91.                     </div>
  92.                 ";
  93.         }
  94.         // line 30
  95.         echo "                </div>
  96.             </div>
  97.         </div>
  98.         <div class=\"d-flex justify-content-end align-items-center right-top-header\">
  99.             <ul class=\"li-unstyled d-flex justify-content-end align-items-center top-header-nav\">
  100.                 <li><a href=\"";
  101.         // line 35
  102.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_contact_request");
  103.         echo "\" title=\"";
  104.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.write_us"), "html"nulltrue);
  105.         echo "\"><span>";
  106.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.write_us"), "html"nulltrue);
  107.         echo "</span></a></li>
  108.                 ";
  109.         // line 36
  110.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  111.             // line 37
  112.             echo "                <li>
  113.                     <a href=\"";
  114.             // line 38
  115.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_account_profile_update");
  116.             echo "\" title=\"";
  117.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.my_account"), "html"nulltrue);
  118.             echo "\"><span>";
  119.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.my_account"), "html"nulltrue);
  120.             echo "</span></a>
  121.                 </li>
  122.                 ";
  123.         } else {
  124.             // line 41
  125.             echo "                    <li>
  126.                         <a href=\"";
  127.             // line 42
  128.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  129.             echo "\" title=\"";
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in"), "html"nulltrue);
  131.             echo "\"><span>";
  132.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in"), "html"nulltrue);
  133.             echo " </span></a>
  134.                     </li>
  135.                 ";
  136.         }
  137.         // line 45
  138.         echo "            </ul>
  139.             <div class=\"head-locale-switcher d-flex align-items-center justify-content-end\">
  140.                 ";
  141.         // line 47
  142.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.topbar");
  143.         echo "
  144.             </div>
  145.         </div>
  146.     </div>
  147. </div>
  148.  
  149. <div class=\"header-sticky  px-0 \">
  150.     <div id=\"header\" class=\"px-xl-0 px-2\">
  151.         <div class=\"container px-0\">
  152.             <div class=\"row align-items-center\">
  153.                 <div class=\"menu-mobile-bloc\">
  154.                     <div class=\"all-product-nav\">
  155.                         <span class=\"d-flex align-items-center\">
  156.                             <svg class=\"burger-icon\" viewBox=\"0 0 30 30\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">
  157.                                 <g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
  158.                                     <g id=\"group-desktop\" fill-rule=\"nonzero\">
  159.                                         <path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  160.                                         <path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  161.                                         <path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  162.                                     </g>
  163.                                 </g>
  164.                             </svg> 
  165.                             <strong class=\"\">";
  166.         // line 69
  167.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.catalogue"), "html"nulltrue);
  168.         echo "</strong>
  169.                         </span>
  170.                     </div>
  171.                 </div>
  172.                 ";
  173.         // line 73
  174.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header.grid");
  175.         echo "
  176.             </div>
  177.         </div>
  178.     </div>
  179.     ";
  180.         // line 77
  181.         $this->loadTemplate("@SyliusShop/Layout/Header/_menu.html.twig""@SyliusShop/_header.html.twig"77)->display($context);
  182.         // line 78
  183.         echo "</div>
  184. ";
  185.         
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  187.         
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  189.     }
  190.     public function getTemplateName()
  191.     {
  192.         return "@SyliusShop/_header.html.twig";
  193.     }
  194.     public function isTraitable()
  195.     {
  196.         return false;
  197.     }
  198.     public function getDebugInfo()
  199.     {
  200.         return array (  192 => 78,  190 => 77,  183 => 73,  176 => 69,  151 => 47,  147 => 45,  137 => 42,  134 => 41,  124 => 38,  121 => 37,  119 => 36,  111 => 35,  104 => 30,  98 => 27,  95 => 26,  92 => 25,  86 => 22,  83 => 21,  80 => 20,  74 => 17,  71 => 16,  69 => 15,  62 => 10,  60 => 9,  58 => 8,  55 => 7,  51 => 5,  47 => 3,  45 => 2,  43 => 1,);
  201.     }
  202.     public function getSourceContext()
  203.     {
  204.         return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  205. {% if is_granted('ROLE_USER') %}
  206.     {% set block = app_get_blocks('texte_header_client_connecte', sylius.channel.code ) %}
  207. {% else %}
  208.     {% set block = app_get_blocks('texte_header_client_non_connecte', sylius.channel.code )  %}
  209. {% endif %}
  210. {% set block_welcome_pack = app_get_blocks('welcome_pack', sylius.channel.code ) %}
  211. {% set texteperso_header = app_get_blocks('texteperso_header', sylius.channel.code ) %}
  212. <div class=\"header-top d-none d-md-block hidden-fixed\">
  213.     <div class=\"container px-0 position-relative\">
  214.         <div class=\"col text-lg-center text-left d-none d-lg-block\">
  215.             <div class=\"swiper-container bann-header\">
  216.                 <div class=\"swiper-wrapper\">
  217.                 {% if block.content is defined %}
  218.                     <div class=\"swiper-slide\">
  219.                         {{ block.content|raw }}
  220.                     </div>
  221.                 {% endif %}
  222.                 {% if block_welcome_pack and block_welcome_pack.content is defined %}
  223.                     <div class=\"swiper-slide\">
  224.                         {{ block_welcome_pack.content|raw }}
  225.                     </div>
  226.                 {% endif %}
  227.                 {% if texteperso_header.content is defined %}
  228.                     <div class=\"swiper-slide\">
  229.                         {{ texteperso_header.content|raw }}
  230.                     </div>
  231.                 {% endif %}
  232.                 </div>
  233.             </div>
  234.         </div>
  235.         <div class=\"d-flex justify-content-end align-items-center right-top-header\">
  236.             <ul class=\"li-unstyled d-flex justify-content-end align-items-center top-header-nav\">
  237.                 <li><a href=\"{{ path('sylius_shop_contact_request') }}\" title=\"{{'app.header.write_us'|trans}}\"><span>{{'app.header.write_us'|trans}}</span></a></li>
  238.                 {% if is_granted('ROLE_USER') %}
  239.                 <li>
  240.                     <a href=\"{{ path('sylius_shop_account_profile_update') }}\" title=\"{{ 'sylius.ui.my_account'|trans }}\"><span>{{ 'sylius.ui.my_account'|trans }}</span></a>
  241.                 </li>
  242.                 {% else %}
  243.                     <li>
  244.                         <a href=\"{{ path('sylius_shop_login') }}\" title=\"{{ 'sylius.ui.sign_in'|trans }}\"><span>{{ 'sylius.ui.sign_in'|trans }} </span></a>
  245.                     </li>
  246.                 {% endif %}
  247.             </ul>
  248.             <div class=\"head-locale-switcher d-flex align-items-center justify-content-end\">
  249.                 {{ sylius_template_event('sylius.shop.layout.topbar') }}
  250.             </div>
  251.         </div>
  252.     </div>
  253. </div>
  254.  
  255. <div class=\"header-sticky  px-0 \">
  256.     <div id=\"header\" class=\"px-xl-0 px-2\">
  257.         <div class=\"container px-0\">
  258.             <div class=\"row align-items-center\">
  259.                 <div class=\"menu-mobile-bloc\">
  260.                     <div class=\"all-product-nav\">
  261.                         <span class=\"d-flex align-items-center\">
  262.                             <svg class=\"burger-icon\" viewBox=\"0 0 30 30\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">
  263.                                 <g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
  264.                                     <g id=\"group-desktop\" fill-rule=\"nonzero\">
  265.                                         <path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  266.                                         <path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  267.                                         <path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
  268.                                     </g>
  269.                                 </g>
  270.                             </svg> 
  271.                             <strong class=\"\">{{'app.header.catalogue'|trans}}</strong>
  272.                         </span>
  273.                     </div>
  274.                 </div>
  275.                 {{ sylius_template_event('sylius.shop.layout.header.grid') }}
  276.             </div>
  277.         </div>
  278.     </div>
  279.     {% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
  280. </div>
  281. ""@SyliusShop/_header.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/_header.html.twig");
  282.     }
  283. }