var/cache/dev/twig/0e/0ee8c6d461392fa35ee730560902b70a.php line 81

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