var/cache/website/dev/twig/30/303f15606305527f637963f0e01719df.php line 208

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\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* pages/ddd_page.html.twig */
  17. class __TwigTemplate_4b5c7b3186435985a8becc9ead76cc8f extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'page_class' => [$this, 'block_page_class'],
  30. 'header_search' => [$this, 'block_header_search'],
  31. 'header_search_mobile' => [$this, 'block_header_search_mobile'],
  32. 'stylesheets' => [$this, 'block_stylesheets'],
  33. 'javascripts' => [$this, 'block_javascripts'],
  34. 'content' => [$this, 'block_content'],
  35. 'modals' => [$this, 'block_modals'],
  36. ];
  37. }
  38. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  39. {
  40. // line 1
  41. return "base.html.twig";
  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", "pages/ddd_page.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", "pages/ddd_page.html.twig"));
  50. $this->parent = $this->load("base.html.twig", 1);
  51. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54. }
  55. // line 3
  56. /**
  57. * @return iterable<null|scalar|\Stringable>
  58. */
  59. public function block_page_class(array $context, array $blocks = []): iterable
  60. {
  61. $macros = $this->macros;
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  66. // line 4
  67. yield "\tpage ddd
  68. ";
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71. yield from [];
  72. }
  73. // line 7
  74. /**
  75. * @return iterable<null|scalar|\Stringable>
  76. */
  77. public function block_header_search(array $context, array $blocks = []): iterable
  78. {
  79. $macros = $this->macros;
  80. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  82. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  84. // line 8
  85. yield "\t";
  86. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88. yield from [];
  89. }
  90. // line 11
  91. /**
  92. * @return iterable<null|scalar|\Stringable>
  93. */
  94. public function block_header_search_mobile(array $context, array $blocks = []): iterable
  95. {
  96. $macros = $this->macros;
  97. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  99. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  101. // line 12
  102. yield "\t";
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105. yield from [];
  106. }
  107. // line 15
  108. /**
  109. * @return iterable<null|scalar|\Stringable>
  110. */
  111. public function block_stylesheets(array $context, array $blocks = []): iterable
  112. {
  113. $macros = $this->macros;
  114. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  118. // line 16
  119. yield "\t";
  120. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  121. yield "
  122. \t";
  123. // line 17
  124. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("ddd_styles");
  125. yield "
  126. ";
  127. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129. yield from [];
  130. }
  131. // line 20
  132. /**
  133. * @return iterable<null|scalar|\Stringable>
  134. */
  135. public function block_javascripts(array $context, array $blocks = []): iterable
  136. {
  137. $macros = $this->macros;
  138. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  140. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  142. // line 21
  143. yield "\t";
  144. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  145. yield "
  146. \t";
  147. // line 22
  148. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("ddd_page");
  149. yield "
  150. ";
  151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  152. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153. yield from [];
  154. }
  155. // line 25
  156. /**
  157. * @return iterable<null|scalar|\Stringable>
  158. */
  159. public function block_content(array $context, array $blocks = []): iterable
  160. {
  161. $macros = $this->macros;
  162. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  163. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  164. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  165. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  166. // line 26
  167. yield "
  168. \t<div class=\"container-fluid\">
  169. \t\t<div class=\"row\">
  170. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  171. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12\">
  172. \t\t\t\t";
  173. // line 32
  174. yield from $this->load("./pages/ddd.html.twig", 32)->unwrap()->yield($context);
  175. // line 33
  176. yield "\t\t\t</div>
  177. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  178. \t\t</div>
  179. \t</div>
  180. ";
  181. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183. yield from [];
  184. }
  185. // line 40
  186. /**
  187. * @return iterable<null|scalar|\Stringable>
  188. */
  189. public function block_modals(array $context, array $blocks = []): iterable
  190. {
  191. $macros = $this->macros;
  192. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  193. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  194. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  196. // line 41
  197. yield "\t";
  198. yield from $this->yieldParentBlock("modals", $context, $blocks);
  199. yield "
  200. \t";
  201. // line 42
  202. $context["cruise"] = ((array_key_exists("cruise", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["cruise"]) || array_key_exists("cruise", $context) ? $context["cruise"] : (function () { throw new RuntimeError('Variable "cruise" does not exist.', 42, $this->source); })()), (((($tmp = 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.', 42, $this->source); })()), "request", [], "any", false, false, false, 42), "get", ["croisiere"], "method", false, false, false, 42)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['App\Twig\Cruise\CruiseExtension']->getCruiseById(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.', 42, $this->source); })()), "request", [], "any", false, false, false, 42), "get", ["croisiere"], "method", false, false, false, 42))) : (null)))) : ((((($tmp = 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.', 42, $this->source); })()), "request", [], "any", false, false, false, 42), "get", ["croisiere"], "method", false, false, false, 42)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['App\Twig\Cruise\CruiseExtension']->getCruiseById(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.', 42, $this->source); })()), "request", [], "any", false, false, false, 42), "get", ["croisiere"], "method", false, false, false, 42))) : (null))));
  203. // line 43
  204. yield "\t";
  205. $context["hasAtmospheres"] = ((array_key_exists("hasAtmospheres", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["hasAtmospheres"]) || array_key_exists("hasAtmospheres", $context) ? $context["hasAtmospheres"] : (function () { throw new RuntimeError('Variable "hasAtmospheres" does not exist.', 43, $this->source); })()), (((($tmp = (isset($context["cruise"]) || array_key_exists("cruise", $context) ? $context["cruise"] : (function () { throw new RuntimeError('Variable "cruise" does not exist.', 43, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['App\Twig\Cabin\CabinDatasTreeExtension']->cruiseHasAtmospheres((isset($context["cruise"]) || array_key_exists("cruise", $context) ? $context["cruise"] : (function () { throw new RuntimeError('Variable "cruise" does not exist.', 43, $this->source); })()))) : (false)))) : ((((($tmp = (isset($context["cruise"]) || array_key_exists("cruise", $context) ? $context["cruise"] : (function () { throw new RuntimeError('Variable "cruise" does not exist.', 43, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['App\Twig\Cabin\CabinDatasTreeExtension']->cruiseHasAtmospheres((isset($context["cruise"]) || array_key_exists("cruise", $context) ? $context["cruise"] : (function () { throw new RuntimeError('Variable "cruise" does not exist.', 43, $this->source); })()))) : (false))));
  206. // line 44
  207. yield "\t";
  208. yield from $this->load("pages/_includes/ddd/_mobile_recap_modal.html.twig", 44)->unwrap()->yield(CoreExtension::merge($context, ["cruise" => // line 45
  209. (isset($context["cruise"]) || array_key_exists("cruise", $context) ? $context["cruise"] : (function () { throw new RuntimeError('Variable "cruise" does not exist.', 45, $this->source); })()), "hasAtmospheres" => // line 46
  210. (isset($context["hasAtmospheres"]) || array_key_exists("hasAtmospheres", $context) ? $context["hasAtmospheres"] : (function () { throw new RuntimeError('Variable "hasAtmospheres" does not exist.', 46, $this->source); })()), "company" => (( // line 47
  211. array_key_exists("company", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 47, $this->source); })()), null)) : (null)), "companyLogoUrl" => (( // line 48
  212. array_key_exists("companyLogoUrl", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["companyLogoUrl"]) || array_key_exists("companyLogoUrl", $context) ? $context["companyLogoUrl"] : (function () { throw new RuntimeError('Variable "companyLogoUrl" does not exist.', 48, $this->source); })()), null)) : (null)), "shipMainImageUrl" => (( // line 49
  213. array_key_exists("shipMainImageUrl", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["shipMainImageUrl"]) || array_key_exists("shipMainImageUrl", $context) ? $context["shipMainImageUrl"] : (function () { throw new RuntimeError('Variable "shipMainImageUrl" does not exist.', 49, $this->source); })()), null)) : (null))]));
  214. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  216. yield from [];
  217. }
  218. /**
  219. * @codeCoverageIgnore
  220. */
  221. public function getTemplateName(): string
  222. {
  223. return "pages/ddd_page.html.twig";
  224. }
  225. /**
  226. * @codeCoverageIgnore
  227. */
  228. public function isTraitable(): bool
  229. {
  230. return false;
  231. }
  232. /**
  233. * @codeCoverageIgnore
  234. */
  235. public function getDebugInfo(): array
  236. {
  237. return array ( 273 => 49, 272 => 48, 271 => 47, 270 => 46, 269 => 45, 267 => 44, 264 => 43, 262 => 42, 257 => 41, 244 => 40, 228 => 33, 226 => 32, 218 => 26, 205 => 25, 192 => 22, 187 => 21, 174 => 20, 161 => 17, 156 => 16, 143 => 15, 132 => 12, 119 => 11, 108 => 8, 95 => 7, 83 => 4, 70 => 3, 47 => 1,);
  238. }
  239. public function getSourceContext(): Source
  240. {
  241. return new Source("{% extends \x27base.html.twig\x27 %}
  242. {% block page_class %}
  243. \tpage ddd
  244. {% endblock %}
  245. {% block header_search %}
  246. \t{# Page DDD : pas de barre de recherche #}
  247. {% endblock %}
  248. {% block header_search_mobile %}
  249. \t{# Page DDD : pas de barre de recherche #}
  250. {% endblock %}
  251. {% block stylesheets %}
  252. \t{{ parent() }}
  253. \t{{ encore_entry_link_tags(\x27ddd_styles\x27) }}
  254. {% endblock %}
  255. {% block javascripts %}
  256. \t{{ parent() }}
  257. \t{{ encore_entry_script_tags(\x27ddd_page\x27) }}
  258. {% endblock %}
  259. {% block content %}
  260. \t<div class=\"container-fluid\">
  261. \t\t<div class=\"row\">
  262. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  263. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12\">
  264. \t\t\t\t{% include \x27./pages/ddd.html.twig\x27 %}
  265. \t\t\t</div>
  266. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  267. \t\t</div>
  268. \t</div>
  269. {% endblock %}
  270. {% block modals %}
  271. \t{{ parent() }}
  272. \t{% set cruise = cruise|default(app.request.get(\x27croisiere\x27) ? getCruiseById(app.request.get(\x27croisiere\x27)) : null) %}
  273. \t{% set hasAtmospheres = hasAtmospheres|default(cruise ? cruiseHasAtmospheres(cruise) : false) %}
  274. \t{% include \x27pages/_includes/ddd/_mobile_recap_modal.html.twig\x27 with {
  275. \t\tcruise: cruise,
  276. \t\thasAtmospheres: hasAtmospheres,
  277. \t\tcompany: company|default(null),
  278. \t\tcompanyLogoUrl: companyLogoUrl|default(null),
  279. \t\tshipMainImageUrl: shipMainImageUrl|default(null),
  280. \t} %}
  281. {% endblock %}
  282. ", "pages/ddd_page.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/ddd_page.html.twig");
  283. }
  284. }