<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* front/main/home.html.twig */
class __TwigTemplate_64e0234aa0877d5c50811166727474a8 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'title' => [$this, 'block_title'],
'SEO' => [$this, 'block_SEO'],
'stylesheets' => [$this, 'block_stylesheets'],
'container' => [$this, 'block_container'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("front/base_front.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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/main/home.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/main/home.html.twig"));
$this->parent = $this->load("front/base_front.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
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);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_SEO(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "SEO"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "SEO"));
// line 6
yield " ";
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))) {
// line 7
yield " <meta name=\"title\" content=\"";
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);
yield "\">
";
}
// line 9
yield " ";
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))) {
// line 10
yield " <meta name=\"description\" content=\"";
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);
yield "\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 14
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 15
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_container(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
// line 19
yield " ";
// line 20
yield " ";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "front/main/subheader/slider.html.twig");
yield "
<div ";
// line 21
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
($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
(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
(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
(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
(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
(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
(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
(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
(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
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))]);
// line 35
yield ">
";
// line 37
yield " </div>>
";
// line 39
yield " ";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["zone"]) {
// line 40
yield " ";
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)))) {
// line 41
yield " ";
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"));
yield "
";
}
// line 43
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['zone'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 44
yield " ";
// line 45
yield " ";
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"));
yield "
";
// line 47
yield " ";
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); })())]));
// line 48
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/main/home.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27front/base_front.html.twig\x27 %}
{% block title %}{{ homePage.title }}{% endblock %}
{% block SEO %}
{% if seo.homeSeoTitle is not empty %}
<meta name=\"title\" content=\"{{ seo.homeSeoTitle }}\">
{% endif %}
{% if seo.homeSeoDescription is not empty %}
<meta name=\"description\" content=\"{{ seo.homeSeoDescription }}\">
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block container %}
{# <!-- Banner Area --> #}
{{ include(\x27front/main/subheader/slider.html.twig\x27) }}
<div {{ react_component(\x27HomeTabs/HomeSearchTabs\x27, {
p_locale : app.session.get(\x27_locale\x27) ?? app.request.locale,
p_autocomplete : true,
p_hotel : modules[\x27Hotel\x27],
p_flight : modules[\x27Flight\x27],
p_transfer : modules[\x27Transfer\x27],
p_hotelSuggestions : hotelSuggestions,
p_flightSuggestions : flightSuggestions,
p_transferSuggestions : transferSuggestions,
p_SearchByMap : isSearchByMap,
p_tripSelectorVariant : tripSelectorVariant,
p_tripSelectorWrapperClassName : \x27col-12 col-md-8 col-lg-4\x27,
p_showNationality : showHotelNationality|default(false),
}) }}>
{# Loading... <i class=\"fas fa-cog fa-spin fa-3x\"></i>#}
</div>>
{# {{ include(\x27front/main/recent_search/recent_search_hotel.html.twig\x27) }} #}
{% for zone in zones %}
{% if zone.active and zone.items is not empty %}
{{ include (\x27front/main/zones/zone\x27~zone.view~\x27.html.twig\x27) }}
{% endif %}
{% endfor %}
{#{{ include(\x27front/main/sections/sections_top_\x27 ~ app.request.locale ~ \x27.html.twig\x27) }}#}
{{ include(\x27front/main/sections/section_b2b_\x27 ~ app.request.locale ~ \x27.html.twig\x27) }}
{# {{ include(\x27front/main/sections/sections_bottom_\x27 ~ app.request.locale ~ \x27.html.twig\x27) }} #}
{% include \x27front/_faq.html.twig\x27 with { faqs: faqs } only %}
{% endblock %}
", "front/main/home.html.twig", "/home/sunazur/public_html/templates/front/main/home.html.twig");
}
}