var/cache/dev/twig/6f/6f46596bd44773f5f25632035ba948c4.php line 74

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\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* modules/search-widget/schedule/stoparea-schedules.html.twig */
  16. class __TwigTemplate_8a7394cb887e850727fe5106dc432221 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "modules/search-widget/schedule/stoparea-schedules.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "modules/search-widget/schedule/stoparea-schedules.html.twig"));
  38. // line 1
  39. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["validator"]) || array_key_exists("validator", $context) ? $context["validator"] : (function () { throw new RuntimeError('Variable "validator" does not exist.', 1, $this->source); })()), "error", [], "any", false, false, false, 1) == 1)) {
  40. // line 2
  41. yield " ";
  42. $context['_parent'] = $context;
  43. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["validator"]) || array_key_exists("validator", $context) ? $context["validator"] : (function () { throw new RuntimeError('Variable "validator" does not exist.', 2, $this->source); })()), "errors", [], "any", false, false, false, 2));
  44. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  45. // line 3
  46. yield " <div class=\"is-Alert is-Alert_Warning\" role=\"alert\">
  47. <i class=\"is-Icon is-Icon-com-alert-triangle\" aria-hidden=\"true\"></i> ";
  48. // line 4
  49. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 4), "html", null, true);
  50. yield "
  51. </div>
  52. ";
  53. }
  54. $_parent = $context['_parent'];
  55. unset($context['_seq'], $context['_key'], $context['error'], $context['_parent']);
  56. $context = array_intersect_key($context, $_parent) + $_parent;
  57. } else {
  58. // line 8
  59. $context["realtime"] = false;
  60. // line 9
  61. yield "<div id=\"is-StopAreaSchedules\">
  62. <div id=\"is-StopAreaNextDepartures\" class=\"is-Tab-Content\">
  63. ";
  64. // line 11
  65. yield from $this->load("modules/search-widget/schedule/stoparea/next_departures.html.twig", 11)->unwrap()->yield($context);
  66. // line 12
  67. yield " </div>
  68. <div id=\"is-StopAreaLines\" class=\"is-Tab-Content\">
  69. ";
  70. // line 14
  71. yield from $this->load("modules/search-widget/schedule/stoparea/lines.html.twig", 14)->unwrap()->yield(CoreExtension::merge($context, ["limit" => 0]));
  72. // line 15
  73. yield " </div>
  74. </div>
  75. ";
  76. }
  77. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79. yield from [];
  80. }
  81. /**
  82. * @codeCoverageIgnore
  83. */
  84. public function getTemplateName(): string
  85. {
  86. return "modules/search-widget/schedule/stoparea-schedules.html.twig";
  87. }
  88. /**
  89. * @codeCoverageIgnore
  90. */
  91. public function isTraitable(): bool
  92. {
  93. return false;
  94. }
  95. /**
  96. * @codeCoverageIgnore
  97. */
  98. public function getDebugInfo(): array
  99. {
  100. return array ( 82 => 15, 80 => 14, 76 => 12, 74 => 11, 70 => 9, 68 => 8, 58 => 4, 55 => 3, 50 => 2, 48 => 1,);
  101. }
  102. public function getSourceContext(): Source
  103. {
  104. return new Source("{% if validator.error == 1 %}
  105. {% for error in validator.errors %}
  106. <div class=\"is-Alert is-Alert_Warning\" role=\"alert\">
  107. <i class=\"is-Icon is-Icon-com-alert-triangle\" aria-hidden=\"true\"></i> {{ error.message }}
  108. </div>
  109. {% endfor %}
  110. {% else %}
  111. {% set realtime = false %}
  112. <div id=\"is-StopAreaSchedules\">
  113. <div id=\"is-StopAreaNextDepartures\" class=\"is-Tab-Content\">
  114. {% include \"modules/search-widget/schedule/stoparea/next_departures.html.twig\" %}
  115. </div>
  116. <div id=\"is-StopAreaLines\" class=\"is-Tab-Content\">
  117. {% include \"modules/search-widget/schedule/stoparea/lines.html.twig\" with { \x27limit\x27: 0 } %}
  118. </div>
  119. </div>
  120. {% endif %}
  121. ", "modules/search-widget/schedule/stoparea-schedules.html.twig", "/var/www/html/templates/modules/search-widget/schedule/stoparea-schedules.html.twig");
  122. }
  123. }