var/cache/dev/twig/41/41248ba0c62ad3e5e254c8627b675a43d148c8d65be03bf61a590dd0c83a366d.php line 33

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_09d7ff28daee306d4cb5fdfa48d95aae72a9966a4187a96cddb7be1301532d91 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/_header.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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.         echo "        ";
  37.         $context["block_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.'2$this->source); })()), "channel", [], "any"falsefalsefalse2), "code", [], "any"falsefalsefalse2));
  38.         // line 3
  39.         echo "        <div class=\"header-sticky  px-0 d-flex flex-column\">
  40.             <div id=\"header\" class=\" order-lg-2  px-2 px-lg-0 \">
  41.                 <div class=\"row align-items-center justify-content-center\">
  42.                     <div class=\"menu-mobile-bloc\"><a href=\"#\" class=\"toggle-menu\" title=\"MENU\"><img src=\"";
  43.         // line 6
  44.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/ico_menu_m.svg"), "html"nulltrue);
  45.         echo "\" alt=\"\" class=\"\"><span>";
  46.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.menu"), "html"nulltrue);
  47.         echo "</span></a></div>
  48.                     ";
  49.         // line 7
  50.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header.grid");
  51.         echo "
  52.                 </div>
  53.                 <div class=\"parent-search\">
  54.                     <div class=\"center-search w-100\">
  55.                         <div class=\"left-search\">
  56.                             <div class=\"search-bottom\">
  57.                                 <span class=\"close-search bg-gradient-orange\"> <i class=\"icon-cancel\"></i></span>
  58.                                 <div class=\"search-top\">
  59.                                 ";
  60.         // line 16
  61.         $this->loadTemplate("@MonsieurBizSyliusSearchPlugin/Header/form.html.twig""@SyliusShop/_header.html.twig"16)->display($context);
  62.         // line 17
  63.         echo "                                </div>
  64.                             </div>
  65.                         </div>
  66.                     </div>
  67.                 </div>
  68.             </div>
  69.             <div class=\"top-header px-0 order-lg-1\">
  70.                 <div class=\"phrase-admin text-center\">
  71.                     &nbsp;
  72.                     ";
  73.         // line 27
  74.         $context["amountFrancoPort"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getAmountFrancoPort();
  75.         // line 28
  76.         echo "                    ";
  77.         if ((isset($context["amountFrancoPort"]) || array_key_exists("amountFrancoPort"$context) ? $context["amountFrancoPort"] : (function () { throw new RuntimeError('Variable "amountFrancoPort" does not exist.'28$this->source); })())) {
  78.             // line 29
  79.             echo "                        ";
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.free_delivery"), "html"nulltrue);
  81.             echo "  ";
  82.             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"falsefalsefalse29), 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"falsefalsefalse29)], 29$context$this->getSourceContext());
  83.             echo " ";
  84.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.buy"), "html"nulltrue);
  85.             echo "
  86.                     ";
  87.         }
  88.         // line 31
  89.         echo "                </div>
  90.                 ";
  91.         // line 32
  92.         $context["block_tel"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("num_telephone"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.'32$this->source); })()), "channel", [], "any"falsefalsefalse32), "code", [], "any"falsefalsefalse32));
  93.         // line 33
  94.         echo "                <div class=\"absolute-md\">
  95.                     <ul class=\"link-top-ul d-flex justify-content-lg-end justify-content-center pt-0 align-items-center\">
  96.                         <li class=\"d-none d-lg-block\"><a href=\"";
  97.         // line 35
  98.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tel"), "html"nulltrue);
  99.         echo ":";
  100.         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); })()))) {
  101.             if (twig_get_attribute($this->env$this->source, ($context["block_tel"] ?? null), "link", [], "any"truetruefalse35)) {
  102.                 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"falsefalsefalse35);
  103.             }
  104.         } else {
  105.             echo " ";
  106.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.numtel"), "html"nulltrue);
  107.         }
  108.         echo " \"> ";
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.tel"), "html"nulltrue);
  110.         echo " : <span class=\"color-orange\">";
  111.         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); })()))) {
  112.             if (twig_get_attribute($this->env$this->source, ($context["block_tel"] ?? null), "link", [], "any"truetruefalse35)) {
  113.                 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"falsefalsefalse35);
  114.             }
  115.         } else {
  116.             echo " ";
  117.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.numtel"), "html"nulltrue);
  118.         }
  119.         echo "</span></a></li>
  120.                         <li class=\"d-none d-lg-block\"><a href=\"https://6nergies.fr/devis-gratuit/\" title=\"";
  121.         // line 36
  122.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.free_quote"), "html"nulltrue);
  123.         echo "\">";
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.free_quote"), "html"nulltrue);
  125.         echo "</a></li>
  126.                         ";
  127.         // line 42
  128.         echo "                    </ul>
  129.                 </div>
  130.             </div>
  131.         </div>
  132. ";
  133.         
  134.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  135.         
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  137.     }
  138.     public function getTemplateName()
  139.     {
  140.         return "@SyliusShop/_header.html.twig";
  141.     }
  142.     public function isTraitable()
  143.     {
  144.         return false;
  145.     }
  146.     public function getDebugInfo()
  147.     {
  148.         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,);
  149.     }
  150.     public function getSourceContext()
  151.     {
  152.         return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  153.         {% set block_header = app_get_blocks('texteperso_header', sylius.channel.code )  %}
  154.         <div class=\"header-sticky  px-0 d-flex flex-column\">
  155.             <div id=\"header\" class=\" order-lg-2  px-2 px-lg-0 \">
  156.                 <div class=\"row align-items-center justify-content-center\">
  157.                     <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>
  158.                     {{ sylius_template_event('sylius.shop.layout.header.grid') }}
  159.                 </div>
  160.                 <div class=\"parent-search\">
  161.                     <div class=\"center-search w-100\">
  162.                         <div class=\"left-search\">
  163.                             <div class=\"search-bottom\">
  164.                                 <span class=\"close-search bg-gradient-orange\"> <i class=\"icon-cancel\"></i></span>
  165.                                 <div class=\"search-top\">
  166.                                 {% include '@MonsieurBizSyliusSearchPlugin/Header/form.html.twig'%}
  167.                                 </div>
  168.                             </div>
  169.                         </div>
  170.                     </div>
  171.                 </div>
  172.             </div>
  173.             <div class=\"top-header px-0 order-lg-1\">
  174.                 <div class=\"phrase-admin text-center\">
  175.                     &nbsp;
  176.                     {% set amountFrancoPort = app_get_amount_franco_port() %}
  177.                     {% if amountFrancoPort %}
  178.                         {{'app.homepage.free_delivery'|trans}}  {{ money.format(amountFrancoPort['amountFrancoPort'], amountFrancoPort['currencyCode']) }} {{'app.homepage.buy'|trans}}
  179.                     {% endif %}
  180.                 </div>
  181.                 {% set block_tel = app_get_blocks('num_telephone', sylius.channel.code )  %}
  182.                 <div class=\"absolute-md\">
  183.                     <ul class=\"link-top-ul d-flex justify-content-lg-end justify-content-center pt-0 align-items-center\">
  184.                         <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>
  185.                         <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>
  186.                         {#{% if is_granted('ROLE_USER') %}
  187.                             <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>
  188.                         {% else %}
  189.                             <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>
  190.                         {% endif %}#}
  191.                     </ul>
  192.                 </div>
  193.             </div>
  194.         </div>
  195. ""@SyliusShop/_header.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/_header.html.twig");
  196.     }
  197. }