var/cache/website/dev/twig/ff/ffc29fff417327bf0fb73de8e3f1d4b5.php line 54

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/_includes/base/_header.html.twig */
  17. class __TwigTemplate_9abc3d469a28ed4ad35df14bcb230fe2 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->parent = false;
  29. $this->blocks = [
  30. ];
  31. }
  32. protected function doDisplay(array $context, array $blocks = []): iterable
  33. {
  34. $macros = $this->macros;
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/base/_header.html.twig"));
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/base/_header.html.twig"));
  39. // line 1
  40. $context["mode"] = ((array_key_exists("mode", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 1, $this->source); })()), "desktop")) : ("desktop"));
  41. // line 2
  42. yield "
  43. ";
  44. // line 3
  45. $context["headerSnippet"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("header_croisiland_area", "main-website");
  46. // line 4
  47. if ( !(null === (isset($context["headerSnippet"]) || array_key_exists("headerSnippet", $context) ? $context["headerSnippet"] : (function () { throw new RuntimeError('Variable "headerSnippet" does not exist.', 4, $this->source); })()))) {
  48. // line 5
  49. yield " ";
  50. yield from $this->load("_snippets/header_croisiland.html.twig", 5)->unwrap()->yield(CoreExtension::merge($context, ["content" => ((CoreExtension::getAttribute($this->env, $this->source, // line 6
  51. ($context["headerSnippet"] ?? null), "content", [], "any", true, true, false, 6)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["headerSnippet"]) || array_key_exists("headerSnippet", $context) ? $context["headerSnippet"] : (function () { throw new RuntimeError('Variable "headerSnippet" does not exist.', 6, $this->source); })()), "content", [], "any", false, false, false, 6), null)) : (null)), "mode" => // line 7
  52. (isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 7, $this->source); })())]));
  53. } else {
  54. // line 10
  55. yield " <div class=\"header-default\">
  56. <p class=\"text-muted\">
  57. Header par défaut - Veuillez définir un snippet pour l\x27area \x27header_croisiland_area\x27 dans l\x27admin Sulu.
  58. </p>
  59. </div>
  60. ";
  61. }
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64. yield from [];
  65. }
  66. /**
  67. * @codeCoverageIgnore
  68. */
  69. public function getTemplateName(): string
  70. {
  71. return "pages/_includes/base/_header.html.twig";
  72. }
  73. /**
  74. * @codeCoverageIgnore
  75. */
  76. public function isTraitable(): bool
  77. {
  78. return false;
  79. }
  80. /**
  81. * @codeCoverageIgnore
  82. */
  83. public function getDebugInfo(): array
  84. {
  85. return array ( 64 => 10, 61 => 7, 60 => 6, 58 => 5, 56 => 4, 54 => 3, 51 => 2, 49 => 1,);
  86. }
  87. public function getSourceContext(): Source
  88. {
  89. return new Source("{% set mode = mode|default(\x27desktop\x27) %}
  90. {% set headerSnippet = sulu_snippet_load_by_area(\x27header_croisiland_area\x27, \x27main-website\x27) %}
  91. {% if headerSnippet is not null %}
  92. {% include \x27_snippets/header_croisiland.html.twig\x27 with {
  93. \x27content\x27: headerSnippet.content|default(null),
  94. \x27mode\x27: mode,
  95. } %}
  96. {% else %}
  97. <div class=\"header-default\">
  98. <p class=\"text-muted\">
  99. Header par défaut - Veuillez définir un snippet pour l\x27area \x27header_croisiland_area\x27 dans l\x27admin Sulu.
  100. </p>
  101. </div>
  102. {% endif %}
  103. ", "pages/_includes/base/_header.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/base/_header.html.twig");
  104. }
  105. }