var/cache/dev/twig/99/99b1ab66a34357b10f594fb8ff981998.php line 58

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* Front/Channel/showTrainingList.html.twig */
  18. class __TwigTemplate_8d79ba727d8b2e6b859f53ddebb90801 extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'inner_content' => [$this, 'block_inner_content'],
  33. ];
  34. }
  35. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  36. {
  37. // line 1
  38. return $this->parent ??= $this->load("Front/Channel/show.html.twig", 1);
  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", "Front/Channel/showTrainingList.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", "Front/Channel/showTrainingList.html.twig"));
  47. $this->parent = $this->load("Front/Channel/show.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 3
  53. /**
  54. * @return iterable<null|scalar|\Stringable>
  55. */
  56. public function block_inner_content(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", "inner_content"));
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
  63. // line 4
  64. yield "
  65. ";
  66. // line 5
  67. $context["arrayBreadcrumb"] = [["label" => CoreExtension::getAttribute($this->env, $this->source, // line 7
  68. (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_show", ["channelId" => CoreExtension::getAttribute($this->env, $this->source, // line 8
  69. (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 8, $this->source); })()), "id", [], "any", false, false, false, 8)])], ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.breadcrumb.trainings")]];
  70. // line 14
  71. yield "
  72. <div class=\"mt-5\">
  73. ";
  74. // line 16
  75. yield from $this->load("Partial/Breadcrumb/breadcrumb.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["arrayBreadcrumb" => (isset($context["arrayBreadcrumb"]) || array_key_exists("arrayBreadcrumb", $context) ? $context["arrayBreadcrumb"] : (function () { throw new RuntimeError('Variable "arrayBreadcrumb" does not exist.', 16, $this->source); })())]));
  76. // line 17
  77. yield " </div>
  78. <div class=\"row\" id=\"our-trainings\">
  79. <div class=\"mt-2 col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
  80. <div class=\"section-title-type-formation\">
  81. <h2 class=\"ml-0\">
  82. ";
  83. // line 23
  84. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.tabs.home.subtitles.trainings.label", ["%count%" => (isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 23, $this->source); })())]), "html", null, true);
  85. yield "
  86. </h2>
  87. </div>
  88. </div>
  89. </div>
  90. <div class=\"row font-poppins\">
  91. <div class=\"col-12\">
  92. ";
  93. // line 31
  94. yield from $this->load("Front/Channel/search_type.html.twig", 31)->unwrap()->yield($context);
  95. // line 32
  96. yield " </div>
  97. ";
  98. // line 34
  99. if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 34, $this->source); })()))) {
  100. // line 35
  101. yield " <div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
  102. ";
  103. // line 36
  104. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.search_result", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 36, $this->source); })())]), "html", null, true);
  105. yield "
  106. </div>
  107. ";
  108. // line 39
  109. if (((isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 39, $this->source); })()) == 0)) {
  110. // line 40
  111. yield " <div class=\"col-12 mt-4 text-center\">
  112. <div>
  113. <img src=\"";
  114. // line 42
  115. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/search-no-result.svg", "common"), "html", null, true);
  116. yield "\" alt=\"No result\"/>
  117. </div>
  118. <div class=\"mt-4\">
  119. ";
  120. // line 45
  121. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.no_result", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 45, $this->source); })())]), "html", null, true);
  122. yield "
  123. </div>
  124. <div>
  125. ";
  126. // line 48
  127. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.search.try_new_search", ["%input%" => (isset($context["searchInput"]) || array_key_exists("searchInput", $context) ? $context["searchInput"] : (function () { throw new RuntimeError('Variable "searchInput" does not exist.', 48, $this->source); })())]), "html", null, true);
  128. yield "
  129. </div>
  130. </div>
  131. ";
  132. }
  133. // line 52
  134. yield " ";
  135. }
  136. // line 53
  137. yield " </div>
  138. <div class=\"row mt-4\">
  139. ";
  140. // line 56
  141. $context['_parent'] = $context;
  142. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["trainings"]) || array_key_exists("trainings", $context) ? $context["trainings"] : (function () { throw new RuntimeError('Variable "trainings" does not exist.', 56, $this->source); })()));
  143. foreach ($context['_seq'] as $context["_key"] => $context["training"]) {
  144. // line 57
  145. yield " <div class=\"col-12 col-md-6 col-lg-4 mb-4\">
  146. ";
  147. // line 58
  148. yield (string) $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("TrainingCard", ["training" => $context["training"]]);
  149. yield "
  150. </div>
  151. ";
  152. }
  153. $_parent = $context['_parent'];
  154. unset($context['_seq'], $context['_key'], $context['training'], $context['_parent']);
  155. $context = array_intersect_key($context, $_parent);
  156. $context += $_parent;
  157. // line 61
  158. yield " </div>
  159. <div class=\"pagination mb-5\">
  160. ";
  161. // line 63
  162. yield (string) $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["trainings"]) || array_key_exists("trainings", $context) ? $context["trainings"] : (function () { throw new RuntimeError('Variable "trainings" does not exist.', 63, $this->source); })()));
  163. yield "
  164. </div>
  165. ";
  166. // line 66
  167. yield from $this->load("Front/Channel/find-us-contact-us.html.twig", 66)->unwrap()->yield(CoreExtension::merge($context, ["channel" => (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 66, $this->source); })())]));
  168. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  170. return; yield;
  171. }
  172. /**
  173. * @codeCoverageIgnore
  174. */
  175. public function getTemplateName(): string
  176. {
  177. return "Front/Channel/showTrainingList.html.twig";
  178. }
  179. /**
  180. * @codeCoverageIgnore
  181. */
  182. public function isTraitable(): bool
  183. {
  184. return false;
  185. }
  186. /**
  187. * @codeCoverageIgnore
  188. */
  189. public function getDefaultEscapeStrategy(): string|false
  190. {
  191. return "html";
  192. }
  193. /**
  194. * @codeCoverageIgnore
  195. */
  196. public function getDebugInfo(): array
  197. {
  198. return array ( 190 => 66, 184 => 63, 180 => 61, 170 => 58, 167 => 57, 163 => 56, 158 => 53, 155 => 52, 148 => 48, 142 => 45, 136 => 42, 132 => 40, 130 => 39, 124 => 36, 121 => 35, 119 => 34, 115 => 32, 113 => 31, 102 => 23, 94 => 17, 92 => 16, 88 => 14, 86 => 8, 85 => 7, 84 => 5, 81 => 4, 68 => 3, 45 => 1,);
  199. }
  200. public function getSourceContext(): Source
  201. {
  202. return new Source("{% extends \x27Front/Channel/show.html.twig\x27 %}
  203. {% block inner_content %}
  204. {% set arrayBreadcrumb = [
  205. {
  206. \x27label\x27: channel.name,
  207. \x27path\x27: path(\x27front_channel_show\x27, {\x27channelId\x27: channel.id})
  208. },
  209. {
  210. \x27label\x27 : \x27front.channel.show.breadcrumb.trainings\x27|trans,
  211. }
  212. ] %}
  213. <div class=\"mt-5\">
  214. {% include \x27Partial/Breadcrumb/breadcrumb.html.twig\x27 with {\x27arrayBreadcrumb\x27 : arrayBreadcrumb } %}
  215. </div>
  216. <div class=\"row\" id=\"our-trainings\">
  217. <div class=\"mt-2 col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
  218. <div class=\"section-title-type-formation\">
  219. <h2 class=\"ml-0\">
  220. {{ \x27front.channel.show.tabs.home.subtitles.trainings.label\x27|trans({\x27%count%\x27: count_trainings}) }}
  221. </h2>
  222. </div>
  223. </div>
  224. </div>
  225. <div class=\"row font-poppins\">
  226. <div class=\"col-12\">
  227. {% include \x27Front/Channel/search_type.html.twig\x27 %}
  228. </div>
  229. {% if searchInput is not empty %}
  230. <div class=\"col-12 mt-4 font-weight-bold\" style=\"font-size: 1.2rem;\">
  231. {{ \x27front.channel.show.search.search_result\x27|trans({\x27%input%\x27: searchInput}) }}
  232. </div>
  233. {% if count_trainings == 0 %}
  234. <div class=\"col-12 mt-4 text-center\">
  235. <div>
  236. <img src=\"{{ asset(\x27build/common/search-no-result.svg\x27, \x27common\x27) }}\" alt=\"No result\"/>
  237. </div>
  238. <div class=\"mt-4\">
  239. {{ \x27front.channel.show.search.no_result\x27|trans({\x27%input%\x27: searchInput}) }}
  240. </div>
  241. <div>
  242. {{ \x27front.channel.show.search.try_new_search\x27|trans({\x27%input%\x27: searchInput}) }}
  243. </div>
  244. </div>
  245. {% endif %}
  246. {% endif %}
  247. </div>
  248. <div class=\"row mt-4\">
  249. {% for training in trainings %}
  250. <div class=\"col-12 col-md-6 col-lg-4 mb-4\">
  251. {{ component(\x27TrainingCard\x27, { training: training }) }}
  252. </div>
  253. {% endfor %}
  254. </div>
  255. <div class=\"pagination mb-5\">
  256. {{ knp_pagination_render(trainings) }}
  257. </div>
  258. {% include \x27Front/Channel/find-us-contact-us.html.twig\x27 with {\x27channel\x27 : channel} %}
  259. {% endblock inner_content %}", "Front/Channel/showTrainingList.html.twig", "/var/www/html/templates/Front/Channel/showTrainingList.html.twig");
  260. }
  261. }