var/cache/dev/twig/11/1109f8005dfc77253e93cc79ff6f9872.php line 61

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* front/main/home.html.twig */
  18. class __TwigTemplate_64e0234aa0877d5c50811166727474a8 extends Template
  19. {
  20.     private Source $source;
  21.     /**
  22.      * @var array<string, MacroNamespace>
  23.      */
  24.     private array $macros = [];
  25.     private \Twig\Runtime\EscaperRuntime $escaper;
  26.     public function __construct(Environment $env)
  27.     {
  28.         parent::__construct($env);
  29.         $this->source = $this->getSourceContext();
  30.         $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31.         $this->blocks = [
  32.             'title' => [$this, 'block_title'],
  33.             'SEO' => [$this, 'block_SEO'],
  34.             'stylesheets' => [$this, 'block_stylesheets'],
  35.             'container' => [$this, 'block_container'],
  36.         ];
  37.     }
  38.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  39.     {
  40.         // line 1
  41.         return $this->parent ??= $this->load("front/base_front.html.twig", 1);
  42.     }
  43.     protected function doDisplay(array $context, array $blocks = []): iterable
  44.     {
  45.         $macros = $this->macros;
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/main/home.html.twig"));
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/main/home.html.twig"));
  50.         $this->parent = $this->load("front/base_front.html.twig", 1);
  51.         yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 3
  58.     /**
  59.      * @return iterable<null|scalar|\Stringable>
  60.      */
  61.     public function block_title(array $context, array $blocks = []): iterable
  62.     {
  63.         $macros = $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  68.         yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["homePage"]) || array_key_exists("homePage", $context) ? $context["homePage"] : (function () { throw new RuntimeError('Variable "homePage" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3), "html", null, true);
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.         return; yield;
  74.     }
  75.     // line 5
  76.     /**
  77.      * @return iterable<null|scalar|\Stringable>
  78.      */
  79.     public function block_SEO(array $context, array $blocks = []): iterable
  80.     {
  81.         $macros = $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "SEO"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "SEO"));
  86.         // line 6
  87.         yield "    ";
  88.         if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["seo"]) || array_key_exists("seo", $context) ? $context["seo"] : (function () { throw new RuntimeError('Variable "seo" does not exist.', 6, $this->source); })()), "homeSeoTitle", [], "any", false, false, false, 6))) {
  89.             // line 7
  90.             yield "        <meta name=\"title\" content=\"";
  91.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["seo"]) || array_key_exists("seo", $context) ? $context["seo"] : (function () { throw new RuntimeError('Variable "seo" does not exist.', 7, $this->source); })()), "homeSeoTitle", [], "any", false, false, false, 7), "html", null, true);
  92.             yield "\">
  93.     ";
  94.         }
  95.         // line 9
  96.         yield "    ";
  97.         if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["seo"]) || array_key_exists("seo", $context) ? $context["seo"] : (function () { throw new RuntimeError('Variable "seo" does not exist.', 9, $this->source); })()), "homeSeoDescription", [], "any", false, false, false, 9))) {
  98.             // line 10
  99.             yield "        <meta name=\"description\" content=\"";
  100.             yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["seo"]) || array_key_exists("seo", $context) ? $context["seo"] : (function () { throw new RuntimeError('Variable "seo" does not exist.', 10, $this->source); })()), "homeSeoDescription", [], "any", false, false, false, 10), "html", null, true);
  101.             yield "\">
  102.     ";
  103.         }
  104.         
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106.         
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108.         return; yield;
  109.     }
  110.     // line 14
  111.     /**
  112.      * @return iterable<null|scalar|\Stringable>
  113.      */
  114.     public function block_stylesheets(array $context, array $blocks = []): iterable
  115.     {
  116.         $macros = $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  121.         // line 15
  122.         yield "    ";
  123.         yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  124.         yield "
  125. ";
  126.         
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  128.         
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130.         return; yield;
  131.     }
  132.     // line 18
  133.     /**
  134.      * @return iterable<null|scalar|\Stringable>
  135.      */
  136.     public function block_container(array $context, array $blocks = []): iterable
  137.     {
  138.         $macros = $this->macros;
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
  143.         // line 19
  144.         yield "    ";
  145.         // line 20
  146.         yield "    ";
  147.         yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "front/main/subheader/slider.html.twig");
  148.         yield "
  149.  <div ";
  150.         // line 21
  151.         yield (string) $this->extensions['Symfony\UX\React\Twig\ReactComponentExtension']->renderReactComponent("HomeTabs/HomeSearchTabs", ["p_locale" => (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 22
  152. ($context["app"] ?? null), "session", [], "any", false, true, false, 22), "get", ["_locale"], "method", true, true, false, 22) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "session", [], "any", false, false, false, 22), "get", ["_locale"], "method", false, false, false, 22)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "session", [], "any", false, false, false, 22), "get", ["_locale"], "method", false, false, false, 22)) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "locale", [], "any", false, false, false, 22))), "p_autocomplete" => true, "p_hotel" => CoreExtension::getAttribute($this->env, $this->source,         // line 24
  153. (isset($context["modules"]) || array_key_exists("modules", $context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.', 24, $this->source); })()), "Hotel", [], "array", false, false, false, 24), "p_flight" => CoreExtension::getAttribute($this->env, $this->source,         // line 25
  154. (isset($context["modules"]) || array_key_exists("modules", $context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.', 25, $this->source); })()), "Flight", [], "array", false, false, false, 25), "p_transfer" => CoreExtension::getAttribute($this->env, $this->source,         // line 26
  155. (isset($context["modules"]) || array_key_exists("modules", $context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.', 26, $this->source); })()), "Transfer", [], "array", false, false, false, 26), "p_hotelSuggestions" =>         // line 27
  156. (isset($context["hotelSuggestions"]) || array_key_exists("hotelSuggestions", $context) ? $context["hotelSuggestions"] : (function () { throw new RuntimeError('Variable "hotelSuggestions" does not exist.', 27, $this->source); })()), "p_flightSuggestions" =>         // line 28
  157. (isset($context["flightSuggestions"]) || array_key_exists("flightSuggestions", $context) ? $context["flightSuggestions"] : (function () { throw new RuntimeError('Variable "flightSuggestions" does not exist.', 28, $this->source); })()), "p_transferSuggestions" =>         // line 29
  158. (isset($context["transferSuggestions"]) || array_key_exists("transferSuggestions", $context) ? $context["transferSuggestions"] : (function () { throw new RuntimeError('Variable "transferSuggestions" does not exist.', 29, $this->source); })()), "p_SearchByMap" =>         // line 30
  159. (isset($context["isSearchByMap"]) || array_key_exists("isSearchByMap", $context) ? $context["isSearchByMap"] : (function () { throw new RuntimeError('Variable "isSearchByMap" does not exist.', 30, $this->source); })()), "p_tripSelectorVariant" =>         // line 31
  160. (isset($context["tripSelectorVariant"]) || array_key_exists("tripSelectorVariant", $context) ? $context["tripSelectorVariant"] : (function () { throw new RuntimeError('Variable "tripSelectorVariant" does not exist.', 31, $this->source); })()), "p_tripSelectorWrapperClassName" => "col-12 col-md-8 col-lg-4", "p_showNationality" => ((        // line 33
  161. array_key_exists("showHotelNationality", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["showHotelNationality"]) || array_key_exists("showHotelNationality", $context) ? $context["showHotelNationality"] : (function () { throw new RuntimeError('Variable "showHotelNationality" does not exist.', 33, $this->source); })()), false)) : (false))]);
  162.         // line 35
  163.         yield ">
  164. ";
  165.         // line 37
  166.         yield "    </div>>
  167.     ";
  168.         // line 39
  169.         yield "    ";
  170.         $context['_parent'] = $context;
  171.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["zones"]) || array_key_exists("zones", $context) ? $context["zones"] : (function () { throw new RuntimeError('Variable "zones" does not exist.', 39, $this->source); })()));
  172.         $context['loop'] = [
  173.           'parent' => $context['_parent'],
  174.           'index0' => 0,
  175.           'index'  => 1,
  176.           'first'  => true,
  177.         ];
  178.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  179.             $length = count($context['_seq']);
  180.             $context['loop']['revindex0'] = $length - 1;
  181.             $context['loop']['revindex'] = $length;
  182.             $context['loop']['length'] = $length;
  183.             $context['loop']['last'] = 1 === $length;
  184.         }
  185.         foreach ($context['_seq'] as $context["_key"] => $context["zone"]) {
  186.             // line 40
  187.             yield "        ";
  188.             if (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["zone"], "active", [], "any", false, false, false, 40)) && $tmp instanceof Markup ? (string) $tmp : $tmp) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["zone"], "items", [], "any", false, false, false, 40)))) {
  189.                 // line 41
  190.                 yield "            ";
  191.                 yield (string) Twig\Extension\CoreExtension::include($this->env, $context, (("front/main/zones/zone" . CoreExtension::getAttribute($this->env, $this->source, $context["zone"], "view", [], "any", false, false, false, 41)) . ".html.twig"));
  192.                 yield "
  193.         ";
  194.             }
  195.             // line 43
  196.             yield "    ";
  197.             ++$context['loop']['index0'];
  198.             ++$context['loop']['index'];
  199.             $context['loop']['first'] = false;
  200.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  201.                 --$context['loop']['revindex0'];
  202.                 --$context['loop']['revindex'];
  203.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  204.             }
  205.         }
  206.         $_parent = $context['_parent'];
  207.         unset($context['_seq'], $context['_key'], $context['zone'], $context['_parent'], $context['loop']);
  208.         $context = array_intersect_key($context, $_parent);
  209.         $context += $_parent;
  210.         // line 44
  211.         yield "    ";
  212.         // line 45
  213.         yield "    ";
  214.         yield (string) Twig\Extension\CoreExtension::include($this->env, $context, (("front/main/sections/section_b2b_" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 45, $this->source); })()), "request", [], "any", false, false, false, 45), "locale", [], "any", false, false, false, 45)) . ".html.twig"));
  215.         yield "
  216.     ";
  217.         // line 47
  218.         yield "    ";
  219.         yield from $this->load("front/_faq.html.twig", 47)->unwrap()->yield(CoreExtension::toArray(["faqs" => (isset($context["faqs"]) || array_key_exists("faqs", $context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.', 47, $this->source); })())]));
  220.         // line 48
  221.         yield "
  222. ";
  223.         
  224.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  225.         
  226.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  227.         return; yield;
  228.     }
  229.     /**
  230.      * @codeCoverageIgnore
  231.      */
  232.     public function getTemplateName(): string
  233.     {
  234.         return "front/main/home.html.twig";
  235.     }
  236.     /**
  237.      * @codeCoverageIgnore
  238.      */
  239.     public function isTraitable(): bool
  240.     {
  241.         return false;
  242.     }
  243.     /**
  244.      * @codeCoverageIgnore
  245.      */
  246.     public function getDefaultEscapeStrategy(): string|false
  247.     {
  248.         return "html";
  249.     }
  250.     /**
  251.      * @codeCoverageIgnore
  252.      */
  253.     public function getDebugInfo(): array
  254.     {
  255.         return array (  251 => 48,  248 => 47,  243 => 45,  241 => 44,  226 => 43,  220 => 41,  217 => 40,  199 => 39,  196 => 37,  193 => 35,  191 => 33,  190 => 31,  189 => 30,  188 => 29,  187 => 28,  186 => 27,  185 => 26,  184 => 25,  183 => 24,  182 => 22,  181 => 21,  176 => 20,  174 => 19,  161 => 18,  147 => 15,  134 => 14,  119 => 10,  116 => 9,  110 => 7,  107 => 6,  94 => 5,  71 => 3,  48 => 1,);
  256.     }
  257.     public function getSourceContext(): Source
  258.     {
  259.         return new Source("{% extends \x27front/base_front.html.twig\x27 %}
  260. {% block title %}{{ homePage.title }}{% endblock %}
  261. {% block SEO %}
  262.     {% if seo.homeSeoTitle is not empty %}
  263.         <meta name=\"title\" content=\"{{ seo.homeSeoTitle }}\">
  264.     {% endif %}
  265.     {% if seo.homeSeoDescription is not empty %}
  266.         <meta name=\"description\" content=\"{{ seo.homeSeoDescription }}\">
  267.     {% endif %}
  268. {% endblock %}
  269. {% block stylesheets %}
  270.     {{ parent() }}
  271. {% endblock %}
  272. {% block container %}
  273.     {# <!-- Banner Area --> #}
  274.     {{ include(\x27front/main/subheader/slider.html.twig\x27) }}
  275.  <div {{ react_component(\x27HomeTabs/HomeSearchTabs\x27, {
  276.         p_locale : app.session.get(\x27_locale\x27) ?? app.request.locale,
  277.         p_autocomplete : true,
  278.         p_hotel : modules[\x27Hotel\x27],
  279.         p_flight : modules[\x27Flight\x27],
  280.         p_transfer : modules[\x27Transfer\x27],
  281.         p_hotelSuggestions : hotelSuggestions,
  282.         p_flightSuggestions : flightSuggestions,
  283.         p_transferSuggestions : transferSuggestions,
  284.         p_SearchByMap : isSearchByMap,
  285.         p_tripSelectorVariant : tripSelectorVariant,
  286.         p_tripSelectorWrapperClassName : \x27col-12 col-md-8 col-lg-4\x27,
  287.         p_showNationality : showHotelNationality|default(false),
  288.     }) }}>
  289. {#        Loading... <i class=\"fas fa-cog fa-spin fa-3x\"></i>#}
  290.     </div>>
  291.     {# {{ include(\x27front/main/recent_search/recent_search_hotel.html.twig\x27) }} #}
  292.     {% for zone in zones %}
  293.         {% if zone.active and zone.items is not empty %}
  294.             {{ include (\x27front/main/zones/zone\x27~zone.view~\x27.html.twig\x27) }}
  295.         {% endif %}
  296.     {% endfor %}
  297.     {#{{ include(\x27front/main/sections/sections_top_\x27 ~ app.request.locale ~ \x27.html.twig\x27) }}#}
  298.     {{ include(\x27front/main/sections/section_b2b_\x27 ~ app.request.locale ~ \x27.html.twig\x27) }}
  299.     {#  {{ include(\x27front/main/sections/sections_bottom_\x27 ~ app.request.locale ~ \x27.html.twig\x27) }} #}
  300.     {% include \x27front/_faq.html.twig\x27 with { faqs: faqs } only %}
  301. {% endblock %}
  302. ", "front/main/home.html.twig", "/home/sunazur/public_html/templates/front/main/home.html.twig");
  303.     }
  304. }