var/cache/dev/twig/0a/0af322aec5f438f56135776e1a403dd7.php line 85

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* front/modules/menu/main.html.twig */
  16. class __TwigTemplate_889fb268327d93827f327da7672c3e6e extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/menu/main.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/menu/main.html.twig"));
  38. // line 1
  39. yield "<div class=\"main-nav\">
  40. <div class=\"ctn top-ctn cf\">
  41. ";
  42. // line 11
  43. yield " <a href=\"";
  44. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
  45. yield "\" class=\"logo\">
  46. ";
  47. // line 12
  48. if ((($tmp = 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)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  49. // line 13
  50. yield " <img src=\"";
  51. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo-experts.png"), "html", null, true);
  52. yield "\" alt=\"Vivog\" width=\"344\" height=\"145\">
  53. ";
  54. } else {
  55. // line 15
  56. yield " <img src=\"";
  57. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo-top.svg"), "html", null, true);
  58. yield "\" alt=\"Vivog\" width=\"350\" height=\"147\">
  59. ";
  60. }
  61. // line 17
  62. yield " </a>
  63. ";
  64. // line 18
  65. yield from $this->load("front/search/form.html.twig", 18)->unwrap()->yield($context);
  66. // line 19
  67. yield " ";
  68. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\CustomerController::block"));
  69. yield "
  70. ";
  71. // line 20
  72. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\Modules\\WishlistController::block"));
  73. yield "
  74. ";
  75. // line 21
  76. yield from $this->load("front/cart/block.html.twig", 21)->unwrap()->yield($context);
  77. // line 22
  78. yield " <a class=\"toggle-menu tablet mobile\">
  79. <div id=\"bt-burger\">
  80. <span></span>
  81. <span></span>
  82. <span></span>
  83. <span></span>
  84. </div>
  85. </a>
  86. </div>
  87. ";
  88. // line 31
  89. yield (isset($context["cache"]) || array_key_exists("cache", $context) ? $context["cache"] : (function () { throw new RuntimeError('Variable "cache" does not exist.', 31, $this->source); })());
  90. yield "
  91. <div class=\"ctn mobile mobile-search\">
  92. ";
  93. // line 33
  94. yield from $this->load("front/search/form.html.twig", 33)->unwrap()->yield($context);
  95. // line 34
  96. yield " </div>
  97. </div>";
  98. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100. yield from [];
  101. }
  102. /**
  103. * @codeCoverageIgnore
  104. */
  105. public function getTemplateName(): string
  106. {
  107. return "front/modules/menu/main.html.twig";
  108. }
  109. /**
  110. * @codeCoverageIgnore
  111. */
  112. public function isTraitable(): bool
  113. {
  114. return false;
  115. }
  116. /**
  117. * @codeCoverageIgnore
  118. */
  119. public function getDebugInfo(): array
  120. {
  121. return array ( 105 => 34, 103 => 33, 98 => 31, 87 => 22, 85 => 21, 81 => 20, 76 => 19, 74 => 18, 71 => 17, 65 => 15, 59 => 13, 57 => 12, 52 => 11, 48 => 1,);
  122. }
  123. public function getSourceContext(): Source
  124. {
  125. return new Source("<div class=\"main-nav\">
  126. <div class=\"ctn top-ctn cf\">
  127. {# <a class=\"toggle-menu tablet desktop\">
  128. <div id=\"bt-burger\">
  129. <span></span>
  130. <span></span>
  131. <span></span>
  132. <span></span>
  133. </div>
  134. </a>#}
  135. <a href=\"{{ path('index') }}\" class=\"logo\">
  136. {% if customerMgr.isExpert() %}
  137. <img src=\"{{ asset('img/logo-experts.png') }}\" alt=\"Vivog\" width=\"344\" height=\"145\">
  138. {% else %}
  139. <img src=\"{{ asset('img/logo-top.svg') }}\" alt=\"Vivog\" width=\"350\" height=\"147\">
  140. {% endif %}
  141. </a>
  142. {% include 'front/search/form.html.twig' %}
  143. {{ render(controller('App\\\\Controller\\\\Front\\\\CustomerController::block')) }}
  144. {{ render(controller('App\\\\Controller\\\\Front\\\\Modules\\\\WishlistController::block')) }}
  145. {% include 'front/cart/block.html.twig' %}
  146. <a class=\"toggle-menu tablet mobile\">
  147. <div id=\"bt-burger\">
  148. <span></span>
  149. <span></span>
  150. <span></span>
  151. <span></span>
  152. </div>
  153. </a>
  154. </div>
  155. {{ cache|raw }}
  156. <div class=\"ctn mobile mobile-search\">
  157. {% include 'front/search/form.html.twig' %}
  158. </div>
  159. </div>", "front/modules/menu/main.html.twig", "/var/www/dogcat.com/v2-test/templates/front/modules/menu/main.html.twig");
  160. }
  161. }