var/cache/website/dev/twig/bd/bdd4f79fe55a570b25741181e9b3ec06.php line 57

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/thumbnails.html.twig */
  17. class __TwigTemplate_86607556d4698293fc84dc212ec84a2d 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. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'content' => [$this, 'block_content'],
  32. 'javascripts' => [$this, 'block_javascripts'],
  33. ];
  34. }
  35. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  36. {
  37. // line 1
  38. return "base.html.twig";
  39. }
  40. protected function doDisplay(array $context, array $blocks = []): iterable
  41. {
  42. $macros = $this->macros;
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/thumbnails.html.twig"));
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/thumbnails.html.twig"));
  47. $this->parent = $this->load("base.html.twig", 1);
  48. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51. }
  52. // line 4
  53. /**
  54. * @return iterable<null|scalar|\Stringable>
  55. */
  56. public function block_page_class(array $context, array $blocks = []): iterable
  57. {
  58. $macros = $this->macros;
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  63. // line 5
  64. yield "\tpage
  65. ";
  66. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68. yield from [];
  69. }
  70. // line 8
  71. /**
  72. * @return iterable<null|scalar|\Stringable>
  73. */
  74. public function block_stylesheets(array $context, array $blocks = []): iterable
  75. {
  76. $macros = $this->macros;
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  79. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  81. // line 9
  82. yield "\t";
  83. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  84. yield "
  85. \t<link rel=\"stylesheet\" href=\"";
  86. // line 10
  87. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/chunks/pages/thumbnails.css"), "html", null, true);
  88. yield "\"/>
  89. ";
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92. yield from [];
  93. }
  94. // line 13
  95. /**
  96. * @return iterable<null|scalar|\Stringable>
  97. */
  98. public function block_content(array $context, array $blocks = []): iterable
  99. {
  100. $macros = $this->macros;
  101. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  105. // line 14
  106. yield "
  107. \t";
  108. // line 15
  109. $context["pageType"] = ((array_key_exists("pageType", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["pageType"]) || array_key_exists("pageType", $context) ? $context["pageType"] : (function () { throw new RuntimeError('Variable "pageType" does not exist.', 15, $this->source); })()), null)) : (null));
  110. // line 16
  111. yield "\t";
  112. $context["bannerId"] = ("banner-" . Twig\Extension\CoreExtension::random($this->env->getCharset()));
  113. // line 17
  114. yield "
  115. \t";
  116. // line 24
  117. yield "\t<div class=\"banner\" id=";
  118. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["bannerId"]) || array_key_exists("bannerId", $context) ? $context["bannerId"] : (function () { throw new RuntimeError('Variable "bannerId" does not exist.', 24, $this->source); })()), "html", null, true);
  119. yield ">
  120. \t\t<div class=\"media\">
  121. \t\t\t";
  122. // line 26
  123. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "bannerMedia", [], "any", true, true, false, 26) && !(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 26, $this->source); })()), "bannerMedia", [], "any", false, false, false, 26)))) {
  124. // line 27
  125. yield "\t\t\t\t";
  126. $context["media"] = $this->extensions['Sulu\Bundle\MediaBundle\Twig\MediaTwigExtension']->resolveMediaFunction(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 27, $this->source); })()), "bannerMedia", [], "any", false, false, false, 27), "id", [], "any", false, false, false, 27), 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.', 27, $this->source); })()), "request", [], "any", false, false, false, 27), "locale", [], "any", false, false, false, 27));
  127. // line 28
  128. yield "\t\t\t\t";
  129. $context["mediaUrl"] = $this->extensions['App\Twig\MediaExtension']->getMediaOriginalUrl((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 28, $this->source); })()));
  130. // line 29
  131. yield "\t\t\t\t";
  132. $context["mediaMimeType"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["media"] ?? null), "mimeType", [], "any", true, true, false, 29)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 29, $this->source); })()), "mimeType", [], "any", false, false, false, 29), "")) : (""));
  133. // line 30
  134. yield "\t\t\t\t";
  135. $context["isVideoBanner"] = ((is_string($_v0 = (isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 30, $this->source); })())) && is_string($_v1 = "video/") && str_starts_with($_v0, $_v1)) || CoreExtension::matches("/.(mp4|webm|ogg)(\\?.*)?\$/i", (isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 30, $this->source); })())));
  136. // line 31
  137. yield "
  138. \t\t\t\t";
  139. // line 32
  140. if ((($tmp = (isset($context["isVideoBanner"]) || array_key_exists("isVideoBanner", $context) ? $context["isVideoBanner"] : (function () { throw new RuntimeError('Variable "isVideoBanner" does not exist.', 32, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  141. // line 33
  142. yield "\t\t\t\t\t<video class=\"banner-media\" autoplay muted loop playsinline preload=\"metadata\">
  143. \t\t\t\t\t\t<source src=\"";
  144. // line 34
  145. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaUrl"]) || array_key_exists("mediaUrl", $context) ? $context["mediaUrl"] : (function () { throw new RuntimeError('Variable "mediaUrl" does not exist.', 34, $this->source); })()), "html", null, true);
  146. yield "\" type=\"";
  147. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mediaMimeType"]) || array_key_exists("mediaMimeType", $context) ? $context["mediaMimeType"] : (function () { throw new RuntimeError('Variable "mediaMimeType" does not exist.', 34, $this->source); })()), "html", null, true);
  148. yield "\">
  149. \t\t\t\t\t\tVotre navigateur ne supporte pas la lecture de vidéos.
  150. \t\t\t\t\t</video>
  151. \t\t\t\t";
  152. } else {
  153. // line 38
  154. yield "\t\t\t\t\t";
  155. $context["imageUrl"] = $this->extensions['App\Twig\MediaExtension']->getMediaUrlWithFallback((isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 38, $this->source); })()), "1200x");
  156. // line 39
  157. yield "\t\t\t\t\t<img class=\"banner-media\" src=\"";
  158. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["imageUrl"]) || array_key_exists("imageUrl", $context) ? $context["imageUrl"] : (function () { throw new RuntimeError('Variable "imageUrl" does not exist.', 39, $this->source); })()), "html", null, true);
  159. yield "\" alt=\"";
  160. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["media"] ?? null), "title", [], "any", true, true, false, 39)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["media"]) || array_key_exists("media", $context) ? $context["media"] : (function () { throw new RuntimeError('Variable "media" does not exist.', 39, $this->source); })()), "title", [], "any", false, false, false, 39), "")) : ("")), "html", null, true);
  161. yield "\"/>
  162. \t\t\t\t";
  163. }
  164. // line 41
  165. yield "\t\t\t";
  166. }
  167. // line 42
  168. yield "\t\t</div>
  169. \t\t<div class=\"text\">
  170. \t\t\t<h1>";
  171. // line 45
  172. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "bannerTitle", [], "any", true, true, false, 45)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 45, $this->source); })()), "bannerTitle", [], "any", false, false, false, 45), "Découvrir ...")) : ("Découvrir ...")), "html", null, true);
  173. yield "</h1>
  174. \t\t\t<div>
  175. \t\t\t\t";
  176. // line 47
  177. yield (string) ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "bannerDesc", [], "any", true, true, false, 47)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 47, $this->source); })()), "bannerDesc", [], "any", false, false, false, 47), "")) : (""));
  178. yield "
  179. \t\t\t</div>
  180. \t\t</div>
  181. \t</div>
  182. \t<div class=\"container-fluid\">
  183. \t\t<div class=\"row\">
  184. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  185. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 thumbnails-page\">
  186. \t\t\t\t";
  187. // line 55
  188. $context['_parent'] = $context;
  189. $context['_seq'] = CoreExtension::ensureTraversable(((array_key_exists("companiesDatas", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["companiesDatas"]) || array_key_exists("companiesDatas", $context) ? $context["companiesDatas"] : (function () { throw new RuntimeError('Variable "companiesDatas" does not exist.', 55, $this->source); })()), [])) : ([])));
  190. foreach ($context['_seq'] as $context["_key"] => $context["company"]) {
  191. // line 56
  192. yield "\t\t\t\t\t<div class=\"thumbnail animation1\">
  193. \t\t\t\t\t\t<div class=\"head-thumbnail\">
  194. \t\t\t\t\t\t\t<img src=\"";
  195. // line 58
  196. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["company"], "logo", [], "any", true, true, false, 58)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "logo", [], "any", false, false, false, 58), $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/placeholders/menu.jpg"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/placeholders/menu.jpg"))), "html", null, true);
  197. yield "\" alt=\"";
  198. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["company"], "name", [], "any", true, true, false, 58)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "name", [], "any", false, false, false, 58), "Compagnie inconnue")) : ("Compagnie inconnue")), "html", null, true);
  199. yield "\"/>
  200. \t\t\t\t\t\t</div>
  201. \t\t\t\t\t\t<a href=\"\" class=\"btn style2 little reverse_color\">
  202. \t\t\t\t\t\t\tVoir tous les départs<br>";
  203. // line 61
  204. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["company"], "name", [], "any", true, true, false, 61)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "name", [], "any", false, false, false, 61), "")) : ("")), "html", null, true);
  205. yield "
  206. \t\t\t\t\t\t</a>
  207. \t\t\t\t\t</div>
  208. \t\t\t\t";
  209. }
  210. $_parent = $context['_parent'];
  211. unset($context['_seq'], $context['_key'], $context['company'], $context['_parent']);
  212. $context = array_intersect_key($context, $_parent);
  213. $context += $_parent;
  214. // line 65
  215. yield "\t\t\t</div>
  216. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  217. \t\t</div>
  218. \t</div>
  219. \t<style>
  220. \t\t#";
  221. // line 73
  222. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["bannerId"]) || array_key_exists("bannerId", $context) ? $context["bannerId"] : (function () { throw new RuntimeError('Variable "bannerId" does not exist.', 73, $this->source); })()), "html", null, true);
  223. yield "
  224. \t{
  225. \t\t--text-banner-color: ";
  226. // line 75
  227. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "textBannerColor", [], "any", true, true, false, 75)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 75, $this->source); })()), "textBannerColor", [], "any", false, false, false, 75), "#FFFFFF")) : ("#FFFFFF")), "html", null, true);
  228. yield "
  229. \t\t;
  230. \t\t--filter-banner-color: ";
  231. // line 77
  232. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\HexToRgbaConverterTwigExtension']->hexToRgba(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "filterBannerColor", [], "any", true, true, false, 77)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 77, $this->source); })()), "filterBannerColor", [], "any", false, false, false, 77), "#000000")) : ("#000000")), ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "filterBannerOpacity", [], "any", true, true, false, 77)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 77, $this->source); })()), "filterBannerOpacity", [], "any", false, false, false, 77), 0.5)) : (0.5))), "html", null, true);
  233. yield "
  234. \t\t;
  235. \t}
  236. \t</style>
  237. ";
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  239. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  240. yield from [];
  241. }
  242. // line 84
  243. /**
  244. * @return iterable<null|scalar|\Stringable>
  245. */
  246. public function block_javascripts(array $context, array $blocks = []): iterable
  247. {
  248. $macros = $this->macros;
  249. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  250. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  251. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  252. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  253. // line 85
  254. yield "\t";
  255. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  256. yield "
  257. \t<script type=\"module\" src=\"";
  258. // line 86
  259. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/pages/thumbnails.js"), "html", null, true);
  260. yield "\"></script>
  261. ";
  262. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  263. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  264. yield from [];
  265. }
  266. /**
  267. * @codeCoverageIgnore
  268. */
  269. public function getTemplateName(): string
  270. {
  271. return "pages/thumbnails.html.twig";
  272. }
  273. /**
  274. * @codeCoverageIgnore
  275. */
  276. public function isTraitable(): bool
  277. {
  278. return false;
  279. }
  280. /**
  281. * @codeCoverageIgnore
  282. */
  283. public function getDebugInfo(): array
  284. {
  285. return array ( 302 => 86, 297 => 85, 284 => 84, 267 => 77, 262 => 75, 257 => 73, 247 => 65, 236 => 61, 228 => 58, 224 => 56, 220 => 55, 209 => 47, 204 => 45, 199 => 42, 196 => 41, 188 => 39, 185 => 38, 176 => 34, 173 => 33, 171 => 32, 168 => 31, 165 => 30, 162 => 29, 159 => 28, 156 => 27, 154 => 26, 148 => 24, 144 => 17, 141 => 16, 139 => 15, 136 => 14, 123 => 13, 110 => 10, 105 => 9, 92 => 8, 80 => 5, 67 => 4, 44 => 1,);
  286. }
  287. public function getSourceContext(): Source
  288. {
  289. return new Source("{% extends \x27base.html.twig\x27 %}
  290. {% block page_class %}
  291. \tpage
  292. {% endblock %}
  293. {% block stylesheets %}
  294. \t{{ parent() }}
  295. \t<link rel=\"stylesheet\" href=\"{{ asset(\x27build/website/chunks/pages/thumbnails.css\x27) }}\"/>
  296. {% endblock %}
  297. {% block content %}
  298. \t{% set pageType = pageType|default(null) %}
  299. \t{% set bannerId = \x27banner-\x27 ~ random() %}
  300. \t{# pageType existants :
  301. \t\t destinations
  302. \t\t companies
  303. \t\t special_offers
  304. \t\t river_cruises #}
  305. \t<div class=\"banner\" id={{ bannerId }}>
  306. \t\t<div class=\"media\">
  307. \t\t\t{% if content.bannerMedia is defined and content.bannerMedia is not null %}
  308. \t\t\t\t{% set media = sulu_resolve_media(content.bannerMedia.id, app.request.locale) %}
  309. \t\t\t\t{% set mediaUrl = sulu_media_original_url(media) %}
  310. \t\t\t\t{% set mediaMimeType = media.mimeType|default(\x27\x27) %}
  311. \t\t\t\t{% set isVideoBanner = mediaMimeType starts with \x27video/\x27 or mediaUrl matches \x27/\\.(mp4|webm|ogg)(\\\\?.*)?\$/i\x27 %}
  312. \t\t\t\t{% if isVideoBanner %}
  313. \t\t\t\t\t<video class=\"banner-media\" autoplay muted loop playsinline preload=\"metadata\">
  314. \t\t\t\t\t\t<source src=\"{{ mediaUrl }}\" type=\"{{ mediaMimeType }}\">
  315. \t\t\t\t\t\tVotre navigateur ne supporte pas la lecture de vidéos.
  316. \t\t\t\t\t</video>
  317. \t\t\t\t{% else %}
  318. \t\t\t\t\t{% set imageUrl = sulu_media_url(media, \x271200x\x27) %}
  319. \t\t\t\t\t<img class=\"banner-media\" src=\"{{ imageUrl }}\" alt=\"{{ media.title|default(\x27\x27) }}\"/>
  320. \t\t\t\t{% endif %}
  321. \t\t\t{% endif %}
  322. \t\t</div>
  323. \t\t<div class=\"text\">
  324. \t\t\t<h1>{{ content.bannerTitle| default(\x27Découvrir ...\x27) }}</h1>
  325. \t\t\t<div>
  326. \t\t\t\t{{ content.bannerDesc|default(\x27\x27)|raw }}
  327. \t\t\t</div>
  328. \t\t</div>
  329. \t</div>
  330. \t<div class=\"container-fluid\">
  331. \t\t<div class=\"row\">
  332. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  333. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 thumbnails-page\">
  334. \t\t\t\t{% for company in companiesDatas|default([]) %}
  335. \t\t\t\t\t<div class=\"thumbnail animation1\">
  336. \t\t\t\t\t\t<div class=\"head-thumbnail\">
  337. \t\t\t\t\t\t\t<img src=\"{{ company.logo|default(asset(\"img/placeholders/menu.jpg\")) }}\" alt=\"{{ company.name|default(\x27Compagnie inconnue\x27) }}\"/>
  338. \t\t\t\t\t\t</div>
  339. \t\t\t\t\t\t<a href=\"\" class=\"btn style2 little reverse_color\">
  340. \t\t\t\t\t\t\tVoir tous les départs<br>{{ company.name|default(\x27\x27) }}
  341. \t\t\t\t\t\t</a>
  342. \t\t\t\t\t</div>
  343. \t\t\t\t{% endfor %}
  344. \t\t\t</div>
  345. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12\"></div>
  346. \t\t</div>
  347. \t</div>
  348. \t<style>
  349. \t\t#{{ bannerId }}
  350. \t{
  351. \t\t--text-banner-color: {{content.textBannerColor|default(\"#FFFFFF\")}}
  352. \t\t;
  353. \t\t--filter-banner-color: {{content.filterBannerColor|default(\"#000000\")|hex_to_rgba(content.filterBannerOpacity|default(0.5))}}
  354. \t\t;
  355. \t}
  356. \t</style>
  357. {% endblock %}
  358. {% block javascripts %}
  359. \t{{ parent() }}
  360. \t<script type=\"module\" src=\"{{ asset(\x27build/website/pages/thumbnails.js\x27) }}\"></script>
  361. {% endblock %}
  362. ", "pages/thumbnails.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/thumbnails.html.twig");
  363. }
  364. }