<?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/Layout/Header/_content.html.twig */
class __TwigTemplate_0ddd4fb5d8c4c76eaf480c6cd3fc9cd3 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/Layout/Header/_content.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/Layout/Header/_content.html.twig"));
// line 1
echo "
";
// line 2
$context["block_phone"] = $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.', 2, $this->source); })()), "channel", [], "any", false, false, false, 2), "code", [], "any", false, false, false, 2));
// line 3
$context["block_phone_sce"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("num_telephone_sce", 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));
// line 4
$context["block_opening_time"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("horaires_ouverture", 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.', 4, $this->source); })()), "channel", [], "any", false, false, false, 4), "code", [], "any", false, false, false, 4));
// line 5
echo "<div class=\"col-auto right-bloc-head order-md-3\">
<div class=\"row no-gutters align-items-center\">
<div class=\"col-auto pr-3 d-none d-xl-block hidden-fixed\">
<a href=\"tel:";
// line 8
if (twig_get_attribute($this->env, $this->source, ($context["block_phone"] ?? null), "link", [], "any", true, true, false, 8)) {
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", false, false, false, 8);
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.block_phone"), "html", null, true);
}
echo "\" class=\"ctc-header\">
<strong>";
// line 9
if (twig_get_attribute($this->env, $this->source, ($context["block_phone"] ?? null), "link", [], "any", true, true, false, 9)) {
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", false, false, false, 9);
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.phone_number"), "html", null, true);
}
echo "</strong>
</a>
<a href=\"tel:";
// line 12
if (twig_get_attribute($this->env, $this->source, ($context["phone_number_sce"] ?? null), "link", [], "any", true, true, false, 12)) {
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", false, false, false, 12);
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.phone_number_sce"), "html", null, true);
}
echo "\" class=\"service-header\">
<strong>";
// line 13
if (twig_get_attribute($this->env, $this->source, ($context["phone_number_sce"] ?? null), "link", [], "any", true, true, false, 13)) {
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", false, false, false, 13);
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.phone_number_sce"), "html", null, true);
}
echo "</strong>
";
// line 14
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); })())) {
// line 15
echo " <span>
";
// line 16
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", false, false, false, 16);
echo "
</span>
";
} else {
// line 18
echo "
<span>";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.opening_time"), "html", null, true);
echo "</span>
";
}
// line 21
echo "
</a>
</div>
<div class=\" other-link-top col-lg col-12\">
<ul class=\"clear-float\">
";
// line 27
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header.content");
echo "
";
// line 28
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", false, false, false, 28)) {
// line 29
echo " <li class=\"\">
";
// line 31
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_wishlist_list_products");
echo "\" class=\"wishlist-link link-other\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.my_wishlist"), "html", null, true);
echo "\"><strong class=\"ico-wishlist-link\"></strong><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.header.my_wishlist"), "html", null, true);
echo "</span></a></li>
";
}
// line 33
echo " ";
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.layout.before_security_widget");
echo "
";
// line 35
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.shop.security_widget:renderAction"));
echo "
";
// line 37
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.layout.after_security_widget");
echo "
<li class=\"li-panier\" id=\"contenuPanierCommun\">
<div id=\"contenuPanierCommunWidget\">
";
// line 41
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"]));
echo "
</div>
<div id=\"contenuPanierCommunPopup\">
";
// line 44
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"]));
echo "
</div>
</li>
</ul>
</div>
</div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Layout/Header/_content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("
{% set block_phone = app_get_blocks('num_telephone', sylius.channel.code ) %}
{% set block_phone_sce = app_get_blocks('num_telephone_sce', sylius.channel.code ) %}
{% set block_opening_time = app_get_blocks('horaires_ouverture', sylius.channel.code ) %}
<div class=\"col-auto right-bloc-head order-md-3\">
<div class=\"row no-gutters align-items-center\">
<div class=\"col-auto pr-3 d-none d-xl-block hidden-fixed\">
<a href=\"tel:{% if block_phone.link is defined %}{{block_phone.link|raw}}{% else %}{{'app.header.block_phone'|trans}}{% endif %}\" class=\"ctc-header\">
<strong>{% if block_phone.link is defined %}{{block_phone.link|raw}}{% else %}{{'app.header.phone_number'|trans}}{% endif %}</strong>
</a>
<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\">
<strong>{% if phone_number_sce.link is defined %}{{block_phone_sce.link|raw}}{% else %}{{'app.header.phone_number_sce'|trans}}{% endif %}</strong>
{% if block_opening_time %}
<span>
{{ block_opening_time.content|raw }}
</span>
{% else %}
<span>{{'app.header.opening_time'|trans}}</span>
{% endif %}
</a>
</div>
<div class=\" other-link-top col-lg col-12\">
<ul class=\"clear-float\">
{{ sylius_template_event('sylius.shop.layout.header.content') }}
{% if app.user %}
<li class=\"\">
{#{% include '@BitBagSyliusWishlistPlugin/Header/_wishlistHeader.html.twig' %}#}
<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>
{% endif %}
{{ sonata_block_render_event('sylius.shop.layout.before_security_widget') }}
{{ render(controller('sylius.controller.shop.security_widget:renderAction')) }}
{{ sonata_block_render_event('sylius.shop.layout.after_security_widget') }}
<li class=\"li-panier\" id=\"contenuPanierCommun\">
<div id=\"contenuPanierCommunWidget\">
{{ render(url('sylius_shop_partial_cart_summary', {'template': '@SyliusShop/Cart/_widget.html.twig'})) }}
</div>
<div id=\"contenuPanierCommunPopup\">
{{ render(url('sylius_shop_partial_cart_summary', {'template': '@SyliusShop/Cart/Widget/_popup.html.twig'})) }}
</div>
</li>
</ul>
</div>
</div>
</div>
", "@SyliusShop/Layout/Header/_content.html.twig", "/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Layout/Header/_content.html.twig");
}
}