var/cache/dev/twig/24/2436886252bb77d83d6523b15e4ec96e.php line 143

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/Layout/Header/_content.html.twig */
  14. class __TwigTemplate_0ddd4fb5d8c4c76eaf480c6cd3fc9cd3 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/Layout/Header/_content.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/Layout/Header/_content.html.twig"));
  33.         // line 1
  34.         echo "
  35. ";
  36.         // line 2
  37.         $context["block_phone"] = $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.'2$this->source); })()), "channel", [], "any"falsefalsefalse2), "code", [], "any"falsefalsefalse2));
  38.         // line 3
  39.         $context["block_phone_sce"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("num_telephone_sce"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.         // line 4
  41.         $context["block_opening_time"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("horaires_ouverture"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.'4$this->source); })()), "channel", [], "any"falsefalsefalse4), "code", [], "any"falsefalsefalse4));
  42.         // line 5
  43.         echo "<div class=\"col-auto right-bloc-head  order-md-3\">
  44.     <div class=\"row no-gutters align-items-center\">
  45.         <div class=\"col-auto pr-3 d-none d-xl-block hidden-fixed\">
  46.             <a href=\"tel:";
  47.         // line 8
  48.         if (twig_get_attribute($this->env$this->source, ($context["block_phone"] ?? null), "link", [], "any"truetruefalse8)) {
  49.             echo twig_get_attribute($this->env$this->source, (isset($context["block_phone"]) || array_key_exists("block_phone"$context) ? $context["block_phone"] : (function () { throw new RuntimeError('Variable "block_phone" does not exist.'8$this->source); })()), "link", [], "any"falsefalsefalse8);
  50.         } else {
  51.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.block_phone"), "html"nulltrue);
  52.         }
  53.         echo "\" class=\"ctc-header\">
  54.                 <strong>";
  55.         // line 9
  56.         if (twig_get_attribute($this->env$this->source, ($context["block_phone"] ?? null), "link", [], "any"truetruefalse9)) {
  57.             echo twig_get_attribute($this->env$this->source, (isset($context["block_phone"]) || array_key_exists("block_phone"$context) ? $context["block_phone"] : (function () { throw new RuntimeError('Variable "block_phone" does not exist.'9$this->source); })()), "link", [], "any"falsefalsefalse9);
  58.         } else {
  59.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.phone_number"), "html"nulltrue);
  60.         }
  61.         echo "</strong>
  62.                 
  63.             </a>
  64.             <a href=\"tel:";
  65.         // line 12
  66.         if (twig_get_attribute($this->env$this->source, ($context["phone_number_sce"] ?? null), "link", [], "any"truetruefalse12)) {
  67.             echo twig_get_attribute($this->env$this->source, (isset($context["block_phone_sce"]) || array_key_exists("block_phone_sce"$context) ? $context["block_phone_sce"] : (function () { throw new RuntimeError('Variable "block_phone_sce" does not exist.'12$this->source); })()), "link", [], "any"falsefalsefalse12);
  68.         } else {
  69.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.phone_number_sce"), "html"nulltrue);
  70.         }
  71.         echo "\" class=\"service-header\">
  72.                 <strong>";
  73.         // line 13
  74.         if (twig_get_attribute($this->env$this->source, ($context["phone_number_sce"] ?? null), "link", [], "any"truetruefalse13)) {
  75.             echo twig_get_attribute($this->env$this->source, (isset($context["block_phone_sce"]) || array_key_exists("block_phone_sce"$context) ? $context["block_phone_sce"] : (function () { throw new RuntimeError('Variable "block_phone_sce" does not exist.'13$this->source); })()), "link", [], "any"falsefalsefalse13);
  76.         } else {
  77.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.phone_number_sce"), "html"nulltrue);
  78.         }
  79.         echo "</strong>
  80.                 ";
  81.         // line 14
  82.         if ((isset($context["block_opening_time"]) || array_key_exists("block_opening_time"$context) ? $context["block_opening_time"] : (function () { throw new RuntimeError('Variable "block_opening_time" does not exist.'14$this->source); })())) {
  83.             // line 15
  84.             echo "                    <span>
  85.                         ";
  86.             // line 16
  87.             echo twig_get_attribute($this->env$this->source, (isset($context["block_opening_time"]) || array_key_exists("block_opening_time"$context) ? $context["block_opening_time"] : (function () { throw new RuntimeError('Variable "block_opening_time" does not exist.'16$this->source); })()), "content", [], "any"falsefalsefalse16);
  88.             echo "
  89.                     </span>
  90.                 ";
  91.         } else {
  92.             // line 18
  93.             echo "  
  94.                     <span>";
  95.             // line 19
  96.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.opening_time"), "html"nulltrue);
  97.             echo "</span>
  98.                 ";
  99.         }
  100.         // line 21
  101.         echo "                
  102.             </a>
  103.         </div>
  104.         <div class=\" other-link-top col-lg col-12\">
  105.             <ul class=\"clear-float\">
  106.                 ";
  107.         // line 27
  108.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header.content");
  109.         echo "
  110.                 ";
  111.         // line 28
  112.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'28$this->source); })()), "user", [], "any"falsefalsefalse28)) {
  113.             // line 29
  114.             echo "                <li class=\"\">
  115.                     ";
  116.             // line 31
  117.             echo "                <a href=\"";
  118.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_wishlist_list_products");
  119.             echo "\" class=\"wishlist-link link-other\" title=\"";
  120.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.my_wishlist"), "html"nulltrue);
  121.             echo "\"><strong class=\"ico-wishlist-link\"></strong><span>";
  122.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.my_wishlist"), "html"nulltrue);
  123.             echo "</span></a></li>
  124.                 ";
  125.         }
  126.         // line 33
  127.         echo "                ";
  128.         echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.layout.before_security_widget");
  129.         echo "
  130.                 ";
  131.         // line 35
  132.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.shop.security_widget:renderAction"));
  133.         echo "
  134.                 ";
  135.         // line 37
  136.         echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.layout.after_security_widget");
  137.         echo "
  138.                 <li class=\"li-panier\" id=\"contenuPanierCommun\">
  139.                     <div id=\"contenuPanierCommunWidget\">
  140.                         ";
  141.         // line 41
  142.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_cart_summary", ["template" => "@SyliusShop/Cart/_widget.html.twig"]));
  143.         echo "
  144.                     </div>
  145.                     <div id=\"contenuPanierCommunPopup\">
  146.                         ";
  147.         // line 44
  148.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_cart_summary", ["template" => "@SyliusShop/Cart/Widget/_popup.html.twig"]));
  149.         echo "
  150.                     </div>
  151.                 </li>
  152.             </ul>
  153.         </div>
  154.     </div>
  155. </div>
  156. ";
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.         
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  161.     }
  162.     public function getTemplateName()
  163.     {
  164.         return "@SyliusShop/Layout/Header/_content.html.twig";
  165.     }
  166.     public function isTraitable()
  167.     {
  168.         return false;
  169.     }
  170.     public function getDebugInfo()
  171.     {
  172.         return array (  161 => 44,  155 => 41,  148 => 37,  143 => 35,  137 => 33,  127 => 31,  124 => 29,  122 => 28,  118 => 27,  110 => 21,  105 => 19,  102 => 18,  96 => 16,  93 => 15,  91 => 14,  83 => 13,  75 => 12,  65 => 9,  57 => 8,  52 => 5,  50 => 4,  48 => 3,  46 => 2,  43 => 1,);
  173.     }
  174.     public function getSourceContext()
  175.     {
  176.         return new Source("
  177. {% set block_phone = app_get_blocks('num_telephone', sylius.channel.code )  %}
  178. {% set block_phone_sce = app_get_blocks('num_telephone_sce', sylius.channel.code )  %}
  179. {% set block_opening_time = app_get_blocks('horaires_ouverture', sylius.channel.code )  %}
  180. <div class=\"col-auto right-bloc-head  order-md-3\">
  181.     <div class=\"row no-gutters align-items-center\">
  182.         <div class=\"col-auto pr-3 d-none d-xl-block hidden-fixed\">
  183.             <a href=\"tel:{%  if block_phone.link is defined %}{{block_phone.link|raw}}{%  else  %}{{'app.header.block_phone'|trans}}{%  endif  %}\" class=\"ctc-header\">
  184.                 <strong>{%  if block_phone.link is defined %}{{block_phone.link|raw}}{%  else  %}{{'app.header.phone_number'|trans}}{%  endif  %}</strong>
  185.                 
  186.             </a>
  187.             <a href=\"tel:{%  if phone_number_sce.link is defined %}{{block_phone_sce.link|raw}}{%  else  %}{{'app.header.phone_number_sce'|trans}}{%  endif  %}\" class=\"service-header\">
  188.                 <strong>{%  if phone_number_sce.link is defined %}{{block_phone_sce.link|raw}}{%  else  %}{{'app.header.phone_number_sce'|trans}}{%  endif  %}</strong>
  189.                 {% if block_opening_time %}
  190.                     <span>
  191.                         {{ block_opening_time.content|raw }}
  192.                     </span>
  193.                 {% else %}  
  194.                     <span>{{'app.header.opening_time'|trans}}</span>
  195.                 {% endif %}
  196.                 
  197.             </a>
  198.         </div>
  199.         <div class=\" other-link-top col-lg col-12\">
  200.             <ul class=\"clear-float\">
  201.                 {{ sylius_template_event('sylius.shop.layout.header.content') }}
  202.                 {% if app.user %}
  203.                 <li class=\"\">
  204.                     {#{% include '@BitBagSyliusWishlistPlugin/Header/_wishlistHeader.html.twig' %}#}
  205.                 <a href=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_list_products') }}\" class=\"wishlist-link link-other\" title=\"{{'app.header.my_wishlist'|trans}}\"><strong class=\"ico-wishlist-link\"></strong><span>{{'app.header.my_wishlist'|trans}}</span></a></li>
  206.                 {% endif %}
  207.                 {{ sonata_block_render_event('sylius.shop.layout.before_security_widget') }}
  208.                 {{ render(controller('sylius.controller.shop.security_widget:renderAction')) }}
  209.                 {{ sonata_block_render_event('sylius.shop.layout.after_security_widget') }}
  210.                 <li class=\"li-panier\" id=\"contenuPanierCommun\">
  211.                     <div id=\"contenuPanierCommunWidget\">
  212.                         {{ render(url('sylius_shop_partial_cart_summary', {'template': '@SyliusShop/Cart/_widget.html.twig'})) }}
  213.                     </div>
  214.                     <div id=\"contenuPanierCommunPopup\">
  215.                         {{ render(url('sylius_shop_partial_cart_summary', {'template': '@SyliusShop/Cart/Widget/_popup.html.twig'})) }}
  216.                     </div>
  217.                 </li>
  218.             </ul>
  219.         </div>
  220.     </div>
  221. </div>
  222. ""@SyliusShop/Layout/Header/_content.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Layout/Header/_content.html.twig");
  223.     }
  224. }