<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* front/modules/menu/main.html.twig */
class __TwigTemplate_da595e63db7eeb900de4a1b59518b63e 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", "front/modules/menu/main.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/menu/main.html.twig"));
// line 1
yield "<div class=\"main-nav\">
<div class=\"ctn top-ctn cf\">
";
// line 11
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
yield "\" class=\"logo\">
";
// line 12
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 12, $this->source); })()), "isExpert", [], "method", false, false, false, 12)) {
// line 13
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo-experts.png"), "html", null, true);
yield "\" alt=\"Vivog\" width=\"344\" height=\"145\">
";
} else {
// line 15
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo-top.svg"), "html", null, true);
yield "\" alt=\"Vivog\" width=\"350\" height=\"147\">
";
}
// line 17
yield " </a>
";
// line 18
yield from $this->loadTemplate("front/search/form.html.twig", "front/modules/menu/main.html.twig", 18)->unwrap()->yield($context);
// line 19
yield " ";
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\CustomerController::block"));
yield "
";
// line 20
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\Modules\\WishlistController::block"));
yield "
";
// line 21
yield from $this->loadTemplate("front/cart/block.html.twig", "front/modules/menu/main.html.twig", 21)->unwrap()->yield($context);
// line 22
yield " <a class=\"toggle-menu tablet mobile\">
<div id=\"bt-burger\">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</a>
</div>
";
// line 31
yield (isset($context["cache"]) || array_key_exists("cache", $context) ? $context["cache"] : (function () { throw new RuntimeError('Variable "cache" does not exist.', 31, $this->source); })());
yield "
<div class=\"ctn mobile mobile-search\">
";
// line 33
yield from $this->loadTemplate("front/search/form.html.twig", "front/modules/menu/main.html.twig", 33)->unwrap()->yield($context);
// line 34
yield " </div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/modules/menu/main.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 101 => 34, 99 => 33, 94 => 31, 83 => 22, 81 => 21, 77 => 20, 72 => 19, 70 => 18, 67 => 17, 61 => 15, 55 => 13, 53 => 12, 48 => 11, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"main-nav\">
<div class=\"ctn top-ctn cf\">
{# <a class=\"toggle-menu tablet desktop\">
<div id=\"bt-burger\">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</a>#}
<a href=\"{{ path('index') }}\" class=\"logo\">
{% if customerMgr.isExpert() %}
<img src=\"{{ asset('img/logo-experts.png') }}\" alt=\"Vivog\" width=\"344\" height=\"145\">
{% else %}
<img src=\"{{ asset('img/logo-top.svg') }}\" alt=\"Vivog\" width=\"350\" height=\"147\">
{% endif %}
</a>
{% include 'front/search/form.html.twig' %}
{{ render(controller('App\\\\Controller\\\\Front\\\\CustomerController::block')) }}
{{ render(controller('App\\\\Controller\\\\Front\\\\Modules\\\\WishlistController::block')) }}
{% include 'front/cart/block.html.twig' %}
<a class=\"toggle-menu tablet mobile\">
<div id=\"bt-burger\">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</a>
</div>
{{ cache|raw }}
<div class=\"ctn mobile mobile-search\">
{% include 'front/search/form.html.twig' %}
</div>
</div>", "front/modules/menu/main.html.twig", "/var/www/dogcat.com/v2-test/templates/front/modules/menu/main.html.twig");
}
}