<?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_09d7ff28daee306d4cb5fdfa48d95aae72a9966a4187a96cddb7be1301532d91 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/_header.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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
echo " ";
$context["block_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.', 2, $this->source); })()), "channel", [], "any", false, false, false, 2), "code", [], "any", false, false, false, 2));
// line 3
echo " <div class=\"header-sticky px-0 d-flex flex-column\">
<div id=\"header\" class=\" order-lg-2 px-2 px-lg-0 \">
<div class=\"row align-items-center justify-content-center\">
<div class=\"menu-mobile-bloc\"><a href=\"#\" class=\"toggle-menu\" title=\"MENU\"><img src=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/ico_menu_m.svg"), "html", null, true);
echo "\" alt=\"\" class=\"\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.menu"), "html", null, true);
echo "</span></a></div>
";
// line 7
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header.grid");
echo "
</div>
<div class=\"parent-search\">
<div class=\"center-search w-100\">
<div class=\"left-search\">
<div class=\"search-bottom\">
<span class=\"close-search bg-gradient-orange\"> <i class=\"icon-cancel\"></i></span>
<div class=\"search-top\">
";
// line 16
$this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Header/form.html.twig", "@SyliusShop/_header.html.twig", 16)->display($context);
// line 17
echo " </div>
</div>
</div>
</div>
</div>
</div>
<div class=\"top-header px-0 order-lg-1\">
<div class=\"phrase-admin text-center\">
";
// line 27
$context["amountFrancoPort"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getAmountFrancoPort();
// line 28
echo " ";
if ((isset($context["amountFrancoPort"]) || array_key_exists("amountFrancoPort", $context) ? $context["amountFrancoPort"] : (function () { throw new RuntimeError('Variable "amountFrancoPort" does not exist.', 28, $this->source); })())) {
// line 29
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.free_delivery"), "html", null, true);
echo " ";
echo twig_call_macro($macros["money"], "macro_format", [twig_get_attribute($this->env, $this->source, (isset($context["amountFrancoPort"]) || array_key_exists("amountFrancoPort", $context) ? $context["amountFrancoPort"] : (function () { throw new RuntimeError('Variable "amountFrancoPort" does not exist.', 29, $this->source); })()), "amountFrancoPort", [], "array", false, false, false, 29), twig_get_attribute($this->env, $this->source, (isset($context["amountFrancoPort"]) || array_key_exists("amountFrancoPort", $context) ? $context["amountFrancoPort"] : (function () { throw new RuntimeError('Variable "amountFrancoPort" does not exist.', 29, $this->source); })()), "currencyCode", [], "array", false, false, false, 29)], 29, $context, $this->getSourceContext());
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.buy"), "html", null, true);
echo "
";
}
// line 31
echo " </div>
";
// line 32
$context["block_tel"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("num_telephone", 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.', 32, $this->source); })()), "channel", [], "any", false, false, false, 32), "code", [], "any", false, false, false, 32));
// line 33
echo " <div class=\"absolute-md\">
<ul class=\"link-top-ul d-flex justify-content-lg-end justify-content-center pt-0 align-items-center\">
<li class=\"d-none d-lg-block\"><a href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tel"), "html", null, true);
echo ":";
if ( !(null === (isset($context["block_tel"]) || array_key_exists("block_tel", $context) ? $context["block_tel"] : (function () { throw new RuntimeError('Variable "block_tel" does not exist.', 35, $this->source); })()))) {
if (twig_get_attribute($this->env, $this->source, ($context["block_tel"] ?? null), "link", [], "any", true, true, false, 35)) {
echo twig_get_attribute($this->env, $this->source, (isset($context["block_tel"]) || array_key_exists("block_tel", $context) ? $context["block_tel"] : (function () { throw new RuntimeError('Variable "block_tel" does not exist.', 35, $this->source); })()), "link", [], "any", false, false, false, 35);
}
} else {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.numtel"), "html", null, true);
}
echo " \"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tel"), "html", null, true);
echo " : <span class=\"color-orange\">";
if ( !(null === (isset($context["block_tel"]) || array_key_exists("block_tel", $context) ? $context["block_tel"] : (function () { throw new RuntimeError('Variable "block_tel" does not exist.', 35, $this->source); })()))) {
if (twig_get_attribute($this->env, $this->source, ($context["block_tel"] ?? null), "link", [], "any", true, true, false, 35)) {
echo twig_get_attribute($this->env, $this->source, (isset($context["block_tel"]) || array_key_exists("block_tel", $context) ? $context["block_tel"] : (function () { throw new RuntimeError('Variable "block_tel" does not exist.', 35, $this->source); })()), "link", [], "any", false, false, false, 35);
}
} else {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.numtel"), "html", null, true);
}
echo "</span></a></li>
<li class=\"d-none d-lg-block\"><a href=\"https://6nergies.fr/devis-gratuit/\" title=\"";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.free_quote"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.free_quote"), "html", null, true);
echo "</a></li>
";
// line 42
echo " </ul>
</div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@SyliusShop/_header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 139 => 42, 133 => 36, 109 => 35, 105 => 33, 103 => 32, 100 => 31, 90 => 29, 87 => 28, 85 => 27, 73 => 17, 71 => 16, 59 => 7, 53 => 6, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% set block_header = app_get_blocks('texteperso_header', sylius.channel.code ) %}
<div class=\"header-sticky px-0 d-flex flex-column\">
<div id=\"header\" class=\" order-lg-2 px-2 px-lg-0 \">
<div class=\"row align-items-center justify-content-center\">
<div class=\"menu-mobile-bloc\"><a href=\"#\" class=\"toggle-menu\" title=\"MENU\"><img src=\"{{ asset('images/ico_menu_m.svg') }}\" alt=\"\" class=\"\"><span>{{'app.header.menu' |trans}}</span></a></div>
{{ sylius_template_event('sylius.shop.layout.header.grid') }}
</div>
<div class=\"parent-search\">
<div class=\"center-search w-100\">
<div class=\"left-search\">
<div class=\"search-bottom\">
<span class=\"close-search bg-gradient-orange\"> <i class=\"icon-cancel\"></i></span>
<div class=\"search-top\">
{% include '@MonsieurBizSyliusSearchPlugin/Header/form.html.twig'%}
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"top-header px-0 order-lg-1\">
<div class=\"phrase-admin text-center\">
{% set amountFrancoPort = app_get_amount_franco_port() %}
{% if amountFrancoPort %}
{{'app.homepage.free_delivery'|trans}} {{ money.format(amountFrancoPort['amountFrancoPort'], amountFrancoPort['currencyCode']) }} {{'app.homepage.buy'|trans}}
{% endif %}
</div>
{% set block_tel = app_get_blocks('num_telephone', sylius.channel.code ) %}
<div class=\"absolute-md\">
<ul class=\"link-top-ul d-flex justify-content-lg-end justify-content-center pt-0 align-items-center\">
<li class=\"d-none d-lg-block\"><a href=\"{{'app.ui.tel'|trans}}:{% if block_tel is not null %}{% if block_tel.link is defined %}{{ block_tel.link|raw }}{% endif %}{% else %} {{'app.ui.numtel'|trans}}{% endif %} \"> {{'app.ui.tel'|trans}} : <span class=\"color-orange\">{% if block_tel is not null %}{% if block_tel.link is defined %}{{ block_tel.link|raw }}{% endif %}{% else %} {{'app.ui.numtel'|trans}}{% endif %}</span></a></li>
<li class=\"d-none d-lg-block\"><a href=\"https://6nergies.fr/devis-gratuit/\" title=\"{{'app.common.free_quote'|trans}}\">{{'app.common.free_quote'|trans}}</a></li>
{#{% if is_granted('ROLE_USER') %}
<li class=\"d-none d-lg-block\"><a href=\"{{ path('sylius_shop_account_dashboard') }}\" title=\"{{'app.common.pro_space'|trans}}\">{{'app.common.pro_space'|trans}}</a></li>
{% else %}
<li class=\"d-none d-lg-block\"><a href=\"{{ path('arobases_sylius_professional_customer_shop_register') }}\" title=\"{{'app.common.pro_space'|trans}}\">{{'app.common.pro_space'|trans}}</a></li>
{% endif %}#}
</ul>
</div>
</div>
</div>
", "@SyliusShop/_header.html.twig", "/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/_header.html.twig");
}
}