<?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;
/* components/menu.html.twig */
class __TwigTemplate_0d1255772226ad29b66c77d069ddae9f extends 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", "components/menu.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/menu.html.twig"));
// line 1
echo "<header id=\"header\" class=\" submenu-light header-always-fixed\" data-fullwidth=\"true\" ";
if ((array_key_exists("transparent", $context) && (isset($context["transparent"]) || array_key_exists("transparent", $context) ? $context["transparent"] : (function () { throw new RuntimeError('Variable "transparent" does not exist.', 1, $this->source); })()))) {
echo " data-transparent=\"true\" ";
}
echo ">
";
// line 2
$context["general"] = twig_get_attribute($this->env, $this->source, (isset($context["generalS"]) || array_key_exists("generalS", $context) ? $context["generalS"] : (function () { throw new RuntimeError('Variable "generalS" does not exist.', 2, $this->source); })()), "general", [], "any", false, false, false, 2);
// line 3
echo " <div class=\"header-inner\">
<div class=\"container-wide flex-row\">
<div class=\"mobile-action d-xl-none z-index-top ";
// line 5
echo ((twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 5, $this->source); })()), "hidePhoneOnMobile", [], "any", false, false, false, 5)) ? ("d-sm-none") : (""));
echo "\">
<a class=\"special btn btn-success text-light\" style=\"z-index: 10;\" href=\"";
// line 6
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
echo "\">";
echo $this->extensions['App\Twig\TransExtension']->trans("menu.contact");
echo "</a>
<h4 class=\" lh-0 pt-3\" style=\"z-index: 10;\" ><a style=\"color:#210e0e; font-size: 1em\" href=\"tel:";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 7, $this->source); })()), "telephone", [], "any", false, false, false, 7), "html", null, true);
echo "\"> <span class=\"fa fa-mobile-alt\"></span> ";
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 7, $this->source); })()), "telephone", [], "any", false, false, false, 7), [" " => "."]), "html", null, true);
echo " </a></h4>
</div>
<div id=\"logo\">
<a href=\"";
// line 10
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\" class=\"sm-relative\" style=\" top: 50%; -ms-transform: translateY(-50%); transform: translateY(-50%); max-width: 65%\">
<span class=\"logo-default\"><img height=\"80\" width=\"250\" ";
// line 11
echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/upload/logo-dark.png"));
echo " alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 11, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 11), "html", null, true);
echo "\" style=\"object-fit: contain\"></span>
<span class=\"logo-dark\"><img height=\"80\" width=\"250\" ";
// line 12
echo $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/upload/logo-light.png");
echo " alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 12, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 12), "html", null, true);
echo "\" style=\"object-fit: contain\"></span>
<span class=\"logo-responsive\"><img height=\"80\" width=\"250\" ";
// line 13
echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/upload/logo-petit.png"));
echo " alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 13, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 13), "html", null, true);
echo "\" style=\"object-fit: contain\"></span>
</a>
</div>
<div id=\"mainMenu-trigger\">
<a class=\"lines-button x\"><span class=\"lines\"></span></a>
</div>
<div id=\"mainMenu\" class=\"menu-creative\">
<div class=\"container\">
<nav>
<ul>
";
// line 27
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["menuS"]) || array_key_exists("menuS", $context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.', 27, $this->source); })()), "menu", [], "any", false, false, false, 27), "parDefaut", [], "any", false, false, false, 27)) {
// line 28
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "#presentation\" class=\"scroll-to\">";
echo $this->extensions['App\Twig\TransExtension']->trans("menu.entreprise");
echo "</a></li>
<li><a href=\"";
// line 29
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("realisations");
echo "\">";
echo $this->extensions['App\Twig\TransExtension']->trans("menu.realisations");
echo "</a></li>
<li><a href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blogs");
echo "#presentation\" class=\"scroll-to\">";
echo $this->extensions['App\Twig\TransExtension']->trans("menu.blogs");
echo "</a></li>
<li><a href=\"";
// line 31
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("actualites");
echo "\">";
echo $this->extensions['App\Twig\TransExtension']->trans("menu.actualites");
echo "</a></li>
";
} else {
// line 34
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["menuS"]) || array_key_exists("menuS", $context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.', 34, $this->source); })()), "menu", [], "any", false, false, false, 34), "elements", [], "any", false, false, false, 34));
foreach ($context['_seq'] as $context["_key"] => $context["menuElement"]) {
// line 35
echo " ";
if (($context["menuElement"] == "entreprise")) {
// line 36
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "#presentation\" class=\"scroll-to\">";
echo $this->extensions['App\Twig\TransExtension']->trans(("menu." . $context["menuElement"]));
echo "</a></li>
";
} elseif (( // line 37
$context["menuElement"] == "services")) {
// line 38
echo " <li class=\"dropdown\">
<a href=\"";
// line 39
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($context["menuElement"]);
echo "\">";
echo $this->extensions['App\Twig\TransExtension']->trans(("menu." . $context["menuElement"]));
echo "</a>
<ul class=\"dropdown-menu\">
";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["menuS"]) || array_key_exists("menuS", $context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.', 41, $this->source); })()), "services", [], "any", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 42
echo " <li>
<a href=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 43)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "titre", [], "any", false, false, false, 43), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " </ul>
</li>
";
} else {
// line 49
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($context["menuElement"]);
echo "\">";
echo $this->extensions['App\Twig\TransExtension']->trans(("menu." . $context["menuElement"]));
echo "</a></li>
";
}
// line 51
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuElement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " ";
}
// line 53
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 54
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
echo "\">Back office</a></li>
<li><a href=\"";
// line 55
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cc");
echo "\"><i class=\"fa fa-refresh\"></i></a></li>
";
}
// line 57
echo " <li><a class=\"special btn btn-success text-light\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
echo "\">";
echo $this->extensions['App\Twig\TransExtension']->trans("menu.contact");
echo "</a></li>
</ul>
<div class=\"text-center telephone-button\">
<h4 class=\" lh-0\">
<a style=\"color:#210e0e\" href=\"tel:";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 61, $this->source); })()), "telephone", [], "any", false, false, false, 61), "html", null, true);
echo "\">
<span class=\"fa fa-mobile-alt\"></span> ";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 62, $this->source); })()), "telephone", [], "any", false, false, false, 62), "html", null, true);
echo "
</a>
";
// line 64
if (twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 64, $this->source); })()), "fixe", [], "any", false, false, false, 64)) {
// line 65
echo " |
<a style=\"color:#210e0e\" href=\"tel:";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 66, $this->source); })()), "fixe", [], "any", false, false, false, 66), "html", null, true);
echo "\">
<span class=\"fa fa-phone\"></span> ";
// line 67
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 67, $this->source); })()), "fixe", [], "any", false, false, false, 67), "html", null, true);
echo "
</a>
";
}
// line 70
echo " </h4>
</div>
</nav>
</div>
</div>
</div>
</div>
</header>
<div class=\"container-xl\">
<div class=\"row justify-content-between\">
";
// line 82
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["menuS"]) || array_key_exists("menuS", $context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.', 82, $this->source); })()), "menuActions", [], "any", false, false, false, 82));
foreach ($context['_seq'] as $context["_key"] => $context["menuAction"]) {
// line 83
echo " <div class=\"col-lg-3 col-sm-6\">
<a class=\"btn w-100 mb-0 rounded-0\" href=\"";
// line 84
(((twig_get_attribute($this->env, $this->source, $context["menuAction"], "lien", [], "any", true, true, false, 84) && !(null === twig_get_attribute($this->env, $this->source, $context["menuAction"], "lien", [], "any", false, false, false, 84)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuAction"], "lien", [], "any", false, false, false, 84), "html", null, true))) : (print ("#")));
echo "\" style=\"background-color: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuAction"], "couleur", [], "any", false, false, false, 84), "html", null, true);
echo "; border-color: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuAction"], "couleur", [], "any", false, false, false, 84), "html", null, true);
echo "; color : ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuAction"], "couleurTexte", [], "any", false, false, false, 84), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuAction"], "titre", [], "any", false, false, false, 84), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuAction'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "components/menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 290 => 87, 273 => 84, 270 => 83, 266 => 82, 252 => 70, 246 => 67, 242 => 66, 239 => 65, 237 => 64, 232 => 62, 228 => 61, 218 => 57, 213 => 55, 208 => 54, 205 => 53, 202 => 52, 196 => 51, 188 => 49, 183 => 46, 172 => 43, 169 => 42, 165 => 41, 158 => 39, 155 => 38, 153 => 37, 146 => 36, 143 => 35, 138 => 34, 130 => 31, 124 => 30, 118 => 29, 111 => 28, 109 => 27, 90 => 13, 84 => 12, 78 => 11, 74 => 10, 66 => 7, 60 => 6, 56 => 5, 52 => 3, 50 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<header id=\"header\" class=\" submenu-light header-always-fixed\" data-fullwidth=\"true\" {% if transparent is defined and transparent %} data-transparent=\"true\" {% endif %}>
{% set general = generalS.general %}
<div class=\"header-inner\">
<div class=\"container-wide flex-row\">
<div class=\"mobile-action d-xl-none z-index-top {{ general.hidePhoneOnMobile ? 'd-sm-none' : ''}}\">
<a class=\"special btn btn-success text-light\" style=\"z-index: 10;\" href=\"{{ path('contact') }}\">{{ 'menu.contact' | admintrans | raw }}</a>
<h4 class=\" lh-0 pt-3\" style=\"z-index: 10;\" ><a style=\"color:#210e0e; font-size: 1em\" href=\"tel:{{ general.telephone}}\"> <span class=\"fa fa-mobile-alt\"></span> {{ general.telephone | replace({' ' : '.'}) }} </a></h4>
</div>
<div id=\"logo\">
<a href=\"{{ path('home') }}\" class=\"sm-relative\" style=\" top: 50%; -ms-transform: translateY(-50%); transform: translateY(-50%); max-width: 65%\">
<span class=\"logo-default\"><img height=\"80\" width=\"250\" {{ responsive_src(asset('images/upload/logo-dark.png')) | raw }} alt=\"{{ general.nomEntreprise }}\" style=\"object-fit: contain\"></span>
<span class=\"logo-dark\"><img height=\"80\" width=\"250\" {{ asset('images/upload/logo-light.png') | raw }} alt=\"{{ general.nomEntreprise }}\" style=\"object-fit: contain\"></span>
<span class=\"logo-responsive\"><img height=\"80\" width=\"250\" {{ responsive_src(asset('images/upload/logo-petit.png')) | raw }} alt=\"{{ general.nomEntreprise }}\" style=\"object-fit: contain\"></span>
</a>
</div>
<div id=\"mainMenu-trigger\">
<a class=\"lines-button x\"><span class=\"lines\"></span></a>
</div>
<div id=\"mainMenu\" class=\"menu-creative\">
<div class=\"container\">
<nav>
<ul>
{% if menuS.menu.parDefaut %}
<li><a href=\"{{ path('home') }}#presentation\" class=\"scroll-to\">{{ 'menu.entreprise' | admintrans | raw }}</a></li>
<li><a href=\"{{ path('realisations') }}\">{{ 'menu.realisations' | admintrans | raw }}</a></li>
<li><a href=\"{{ path('blogs') }}#presentation\" class=\"scroll-to\">{{ 'menu.blogs' | admintrans | raw }}</a></li>
<li><a href=\"{{ path('actualites') }}\">{{ 'menu.actualites' | admintrans | raw }}</a></li>
{% else %}
{% for menuElement in menuS.menu.elements %}
{% if menuElement == 'entreprise' %}
<li><a href=\"{{ path('home') }}#presentation\" class=\"scroll-to\">{{ ('menu.'~menuElement) | admintrans | raw }}</a></li>
{% elseif menuElement == 'services' %}
<li class=\"dropdown\">
<a href=\"{{ path(menuElement) }}\">{{ ('menu.'~menuElement) | admintrans | raw }}</a>
<ul class=\"dropdown-menu\">
{% for service in menuS.services %}
<li>
<a href=\"{{ path('service',{'id' : service.id}) }}\">{{ service.titre }}</a>
</li>
{% endfor %}
</ul>
</li>
{% else %}
<li><a href=\"{{ path(menuElement) }}\">{{ ('menu.'~menuElement) | admintrans | raw }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<li><a href=\"{{ path('admin') }}\">Back office</a></li>
<li><a href=\"{{ path('cc') }}\"><i class=\"fa fa-refresh\"></i></a></li>
{% endif %}
<li><a class=\"special btn btn-success text-light\" href=\"{{ path('contact') }}\">{{ 'menu.contact' | admintrans | raw }}</a></li>
</ul>
<div class=\"text-center telephone-button\">
<h4 class=\" lh-0\">
<a style=\"color:#210e0e\" href=\"tel:{{ general.telephone }}\">
<span class=\"fa fa-mobile-alt\"></span> {{ general.telephone }}
</a>
{% if general.fixe %}
|
<a style=\"color:#210e0e\" href=\"tel:{{ general.fixe }}\">
<span class=\"fa fa-phone\"></span> {{ general.fixe }}
</a>
{% endif %}
</h4>
</div>
</nav>
</div>
</div>
</div>
</div>
</header>
<div class=\"container-xl\">
<div class=\"row justify-content-between\">
{% for menuAction in menuS.menuActions %}
<div class=\"col-lg-3 col-sm-6\">
<a class=\"btn w-100 mb-0 rounded-0\" href=\"{{ menuAction.lien ?? \"#\" }}\" style=\"background-color: {{ menuAction.couleur }}; border-color: {{ menuAction.couleur }}; color : {{ menuAction.couleurTexte }}\">{{ menuAction.titre }}</a>
</div>
{% endfor %}
</div>
</div>
", "components/menu.html.twig", "/var/www/vhosts/bsbroyalconstruction.fr/etoiles-batiment.spidertec.fr/httpdocs/templates/components/menu.html.twig");
}
}