<?php
use Twig\Environment;
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;
/* @SyliusShop/_header.html.twig */
class __TwigTemplate_1d014aa8c58d419514c4997682e05abb extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/_header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/_header.html.twig"));
// line 1
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/_header.html.twig", 1)->unwrap();
// line 2
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 3
echo " ";
$context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texte_header_client_connecte", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 3), "code", [], "any", false, false, false, 3));
} else {
// line 5
echo " ";
$context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texte_header_client_non_connecte", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 5), "code", [], "any", false, false, false, 5));
}
// line 7
echo "
";
// line 8
$context["block_welcome_pack"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("welcome_pack", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 8), "code", [], "any", false, false, false, 8));
// line 9
$context["texteperso_header"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_header", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 9), "code", [], "any", false, false, false, 9));
// line 10
echo "<div class=\"header-top d-none d-md-block hidden-fixed\">
<div class=\"container px-0 position-relative\">
<div class=\"col text-lg-center text-left d-none d-lg-block\">
<div class=\"swiper-container bann-header\">
<div class=\"swiper-wrapper\">
";
// line 15
if (twig_get_attribute($this->env, $this->source, ($context["block"] ?? null), "content", [], "any", true, true, false, 15)) {
// line 16
echo " <div class=\"swiper-slide\">
";
// line 17
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", false, false, false, 17);
echo "
</div>
";
}
// line 20
echo " ";
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", true, true, false, 20))) {
// line 21
echo " <div class=\"swiper-slide\">
";
// line 22
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", false, false, false, 22);
echo "
</div>
";
}
// line 25
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["texteperso_header"] ?? null), "content", [], "any", true, true, false, 25)) {
// line 26
echo " <div class=\"swiper-slide\">
";
// line 27
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", false, false, false, 27);
echo "
</div>
";
}
// line 30
echo " </div>
</div>
</div>
<div class=\"d-flex justify-content-end align-items-center right-top-header\">
<ul class=\"li-unstyled d-flex justify-content-end align-items-center top-header-nav\">
<li><a href=\"";
// line 35
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_contact_request");
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.write_us"), "html", null, true);
echo "\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.write_us"), "html", null, true);
echo "</span></a></li>
";
// line 36
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 37
echo " <li>
<a href=\"";
// line 38
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_account_profile_update");
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.my_account"), "html", null, true);
echo "\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.my_account"), "html", null, true);
echo "</span></a>
</li>
";
} else {
// line 41
echo " <li>
<a href=\"";
// line 42
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in"), "html", null, true);
echo "\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in"), "html", null, true);
echo " </span></a>
</li>
";
}
// line 45
echo " </ul>
<div class=\"head-locale-switcher d-flex align-items-center justify-content-end\">
";
// line 47
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.topbar");
echo "
</div>
</div>
</div>
</div>
<div class=\"header-sticky px-0 \">
<div id=\"header\" class=\"px-xl-0 px-2\">
<div class=\"container px-0\">
<div class=\"row align-items-center\">
<div class=\"menu-mobile-bloc\">
<div class=\"all-product-nav\">
<span class=\"d-flex align-items-center\">
<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\">
<g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
<g id=\"group-desktop\" fill-rule=\"nonzero\">
<path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
</g>
</g>
</svg>
<strong class=\"\">";
// line 69
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.catalogue"), "html", null, true);
echo "</strong>
</span>
</div>
</div>
";
// line 73
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header.grid");
echo "
</div>
</div>
</div>
";
// line 77
$this->loadTemplate("@SyliusShop/Layout/Header/_menu.html.twig", "@SyliusShop/_header.html.twig", 77)->display($context);
// line 78
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/_header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% if is_granted('ROLE_USER') %}
{% set block = app_get_blocks('texte_header_client_connecte', sylius.channel.code ) %}
{% else %}
{% set block = app_get_blocks('texte_header_client_non_connecte', sylius.channel.code ) %}
{% endif %}
{% set block_welcome_pack = app_get_blocks('welcome_pack', sylius.channel.code ) %}
{% set texteperso_header = app_get_blocks('texteperso_header', sylius.channel.code ) %}
<div class=\"header-top d-none d-md-block hidden-fixed\">
<div class=\"container px-0 position-relative\">
<div class=\"col text-lg-center text-left d-none d-lg-block\">
<div class=\"swiper-container bann-header\">
<div class=\"swiper-wrapper\">
{% if block.content is defined %}
<div class=\"swiper-slide\">
{{ block.content|raw }}
</div>
{% endif %}
{% if block_welcome_pack and block_welcome_pack.content is defined %}
<div class=\"swiper-slide\">
{{ block_welcome_pack.content|raw }}
</div>
{% endif %}
{% if texteperso_header.content is defined %}
<div class=\"swiper-slide\">
{{ texteperso_header.content|raw }}
</div>
{% endif %}
</div>
</div>
</div>
<div class=\"d-flex justify-content-end align-items-center right-top-header\">
<ul class=\"li-unstyled d-flex justify-content-end align-items-center top-header-nav\">
<li><a href=\"{{ path('sylius_shop_contact_request') }}\" title=\"{{'app.header.write_us'|trans}}\"><span>{{'app.header.write_us'|trans}}</span></a></li>
{% if is_granted('ROLE_USER') %}
<li>
<a href=\"{{ path('sylius_shop_account_profile_update') }}\" title=\"{{ 'sylius.ui.my_account'|trans }}\"><span>{{ 'sylius.ui.my_account'|trans }}</span></a>
</li>
{% else %}
<li>
<a href=\"{{ path('sylius_shop_login') }}\" title=\"{{ 'sylius.ui.sign_in'|trans }}\"><span>{{ 'sylius.ui.sign_in'|trans }} </span></a>
</li>
{% endif %}
</ul>
<div class=\"head-locale-switcher d-flex align-items-center justify-content-end\">
{{ sylius_template_event('sylius.shop.layout.topbar') }}
</div>
</div>
</div>
</div>
<div class=\"header-sticky px-0 \">
<div id=\"header\" class=\"px-xl-0 px-2\">
<div class=\"container px-0\">
<div class=\"row align-items-center\">
<div class=\"menu-mobile-bloc\">
<div class=\"all-product-nav\">
<span class=\"d-flex align-items-center\">
<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\">
<g id=\"burger\" stroke=\"none\" stroke-width=\"0\" fill=\"#fff\" fill-rule=\"evenodd\">
<g id=\"group-desktop\" fill-rule=\"nonzero\">
<path d=\"M5,7.625 L25,7.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,15.125 L25,15.125\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
<path d=\"M5,22.625 L25,22.625\" stroke-width=\"1.875\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>
</g>
</g>
</svg>
<strong class=\"\">{{'app.header.catalogue'|trans}}</strong>
</span>
</div>
</div>
{{ sylius_template_event('sylius.shop.layout.header.grid') }}
</div>
</div>
</div>
{% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
</div>
", "@SyliusShop/_header.html.twig", "/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/_header.html.twig");
}
}