var/cache/dev/twig/1c/1c005c11bc3ba69411f359eeca61f124.php line 60

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. /* pages/sitemap/subnetwork-lines.html.twig */
  16. class __TwigTemplate_e8ce5be60f19d55351b4b083a092fc1d 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->blocks = [
  28. 'content' => [$this, 'block_content'],
  29. ];
  30. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 1
  34. return "layouts/common/default.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sitemap/subnetwork-lines.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sitemap/subnetwork-lines.html.twig"));
  43. // line 3
  44. $context["pageAttributes"] = ((array_key_exists("pageAttributes", $context)) ? ((isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 3, $this->source); })())) : (["group" => "sim", "section" => "sim"]));
  45. // line 5
  46. $context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.lines_schedules");
  47. // line 6
  48. $context["page_title"] = (((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 6, $this->source); })()) . " ") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subNetwork"]) || array_key_exists("subNetwork", $context) ? $context["subNetwork"] : (function () { throw new RuntimeError('Variable "subNetwork" does not exist.', 6, $this->source); })()), 0, [], "array", false, false, false, 6), "name", [], "any", false, false, false, 6));
  49. // line 1
  50. $this->parent = $this->load("layouts/common/default.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 8
  56. /**
  57. * @return iterable<null|scalar|\Stringable>
  58. */
  59. public function block_content(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", "content"));
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  66. // line 9
  67. yield " <a href=\"";
  68. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap");
  69. yield "\">";
  70. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.back"), "html", null, true);
  71. yield "</a>
  72. <h1 class=\"is-Page-H1\">";
  73. // line 10
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.lines_schedules"), "html", null, true);
  75. yield " ";
  76. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subNetwork"]) || array_key_exists("subNetwork", $context) ? $context["subNetwork"] : (function () { throw new RuntimeError('Variable "subNetwork" does not exist.', 10, $this->source); })()), 0, [], "array", false, false, false, 10), "name", [], "any", false, false, false, 10), "html", null, true);
  77. yield "</h1>
  78. <ul>
  79. ";
  80. // line 12
  81. $context['_parent'] = $context;
  82. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 12, $this->source); })()));
  83. foreach ($context['_seq'] as $context["_key"] => $context["line"]) {
  84. // line 13
  85. yield " ";
  86. $context["name"] = "";
  87. // line 14
  88. yield " ";
  89. if ((CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 14) == CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 14))) {
  90. // line 15
  91. yield " ";
  92. $context["name"] = CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 15);
  93. // line 16
  94. yield " ";
  95. } else {
  96. // line 17
  97. yield " ";
  98. $context["name"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 17) . " ") . CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 17));
  99. // line 18
  100. yield " ";
  101. }
  102. // line 19
  103. yield " ";
  104. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 19))) {
  105. // line 20
  106. yield " ";
  107. $context["sName"] = "-";
  108. // line 21
  109. yield " ";
  110. } else {
  111. // line 22
  112. yield " ";
  113. $context["sName"] = CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 22);
  114. // line 23
  115. yield " ";
  116. }
  117. // line 24
  118. yield " <li>
  119. <a href=\"";
  120. // line 25
  121. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("line.schedule.list", ["issubnet" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["line"], "subNetwork", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25), "ismode" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "mode", [], "any", false, false, false, 25), "islsn" => (isset($context["sName"]) || array_key_exists("sName", $context) ? $context["sName"] : (function () { throw new RuntimeError('Variable "sName" does not exist.', 25, $this->source); })()), "isdir" => "OUTWARD", "islid" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "id", [], "any", false, false, false, 25)]), "html", null, true);
  122. yield "\"
  123. title=\"";
  124. // line 26
  125. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 26), "html", null, true);
  126. yield "\">";
  127. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("line.schedules_new_format", ["line" => (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 26, $this->source); })()), "network" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["line"], "subNetwork", [], "any", false, false, false, 26), "name", [], "any", false, false, false, 26)]), "html", null, true);
  128. yield "
  129. </a>
  130. <a href=\"";
  131. // line 28
  132. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("line.schedule.print", ["issubnet" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["line"], "subNetwork", [], "any", false, false, false, 28), "name", [], "any", false, false, false, 28), "ismode" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "mode", [], "any", false, false, false, 28), "islsn" => (isset($context["sName"]) || array_key_exists("sName", $context) ? $context["sName"] : (function () { throw new RuntimeError('Variable "sName" does not exist.', 28, $this->source); })()), "isdir" => "OUTWARD", "islid" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "id", [], "any", false, false, false, 28)]), "html", null, true);
  133. yield "\"
  134. title=\"";
  135. // line 29
  136. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 29), "html", null, true);
  137. yield "\"> (";
  138. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("print_in"), "html", null, true);
  139. yield " PDF)
  140. </a>
  141. </li>
  142. ";
  143. }
  144. $_parent = $context['_parent'];
  145. unset($context['_seq'], $context['_key'], $context['line'], $context['_parent']);
  146. $context = array_intersect_key($context, $_parent) + $_parent;
  147. // line 33
  148. yield " </ul>
  149. ";
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152. yield from [];
  153. }
  154. /**
  155. * @codeCoverageIgnore
  156. */
  157. public function getTemplateName(): string
  158. {
  159. return "pages/sitemap/subnetwork-lines.html.twig";
  160. }
  161. /**
  162. * @codeCoverageIgnore
  163. */
  164. public function isTraitable(): bool
  165. {
  166. return false;
  167. }
  168. /**
  169. * @codeCoverageIgnore
  170. */
  171. public function getDebugInfo(): array
  172. {
  173. return array ( 164 => 33, 152 => 29, 148 => 28, 141 => 26, 137 => 25, 134 => 24, 131 => 23, 128 => 22, 125 => 21, 122 => 20, 119 => 19, 116 => 18, 113 => 17, 110 => 16, 107 => 15, 104 => 14, 101 => 13, 97 => 12, 90 => 10, 83 => 9, 70 => 8, 59 => 1, 57 => 6, 55 => 5, 53 => 3, 40 => 1,);
  174. }
  175. public function getSourceContext(): Source
  176. {
  177. return new Source("{% extends 'layouts/common/default.html.twig' %}
  178. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
  179. {% set title = 'sitemap.lines_schedules' | trans %}
  180. {% set page_title = title ~ ' ' ~ subNetwork[0].name %}
  181. {% block content %}
  182. <a href=\"{{ path('sitemap') }}\">{{ 'nav.back' | trans }}</a>
  183. <h1 class=\"is-Page-H1\">{{ 'sitemap.lines_schedules' | trans }} {{ subNetwork[0].name }}</h1>
  184. <ul>
  185. {% for line in lines %}
  186. {% set name = \"\" %}
  187. {% if line.sName == line.lName %}
  188. {% set name = line.sName %}
  189. {% else %}
  190. {% set name = line.sName ~ ' ' ~ line.lName %}
  191. {% endif %}
  192. {% if line.sName is empty %}
  193. {% set sName = \"-\" %}
  194. {% else %}
  195. {% set sName = line.sName %}
  196. {% endif %}
  197. <li>
  198. <a href=\"{{ path('line.schedule.list', {'issubnet': line.subNetwork.name, 'ismode': line.mode, 'islsn': sName, 'isdir': 'OUTWARD', 'islid': line.id}) }}\"
  199. title=\"{{ line.lName }}\">{{ 'line.schedules_new_format' | trans({ 'line' : name, 'network' : line.subNetwork.name }) }}
  200. </a>
  201. <a href=\"{{ path('line.schedule.print', {'issubnet': line.subNetwork.name, 'ismode': line.mode, 'islsn': sName, 'isdir': 'OUTWARD', 'islid': line.id}) }}\"
  202. title=\"{{ line.lName }}\"> ({{ 'print_in' | trans }} PDF)
  203. </a>
  204. </li>
  205. {% endfor %}
  206. </ul>
  207. {% endblock %}
  208. ", "pages/sitemap/subnetwork-lines.html.twig", "/var/www/html/templates/pages/sitemap/subnetwork-lines.html.twig");
  209. }
  210. }