var/cache/dev/twig/d4/d490534ef3b4c043260bf850e982984e.php line 38

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. /* composantsPages/homeComponents/preview/service.html.twig */
  16. class __TwigTemplate_10468fd61e271686984f0de2b37cbc02 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", "composantsPages/homeComponents/preview/service.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", "composantsPages/homeComponents/preview/service.html.twig"));
  38. // line 1
  39. yield "<section id=\"page-content\" class=\"sidebar-right\">
  40. <div class=\"container\">
  41. <div class=\"row\">
  42. <div class=\"content col-lg-9\">
  43. <div id=\"service\" class=\"single-post\">
  44. <div class=\"post-item\">
  45. <div class=\"post-item-wrap\">
  46. <div class=\"post-image\">
  47. <a href=\"\">
  48. <img alt=\"";
  49. // line 13
  50. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 13, $this->source); })()), "altDescription", [], "any", false, false, false, 13), "html", null, true);
  51. yield "\" ";
  52. yield $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 13, $this->source); })()), "image", [], "any", false, false, false, 13))));
  53. yield ">
  54. </a>
  55. </div>
  56. <div class=\"post-item-description\">
  57. <h2>";
  58. // line 17
  59. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 17, $this->source); })()), "titre", [], "any", false, false, false, 17), "html", null, true);
  60. yield "</h2>
  61. <div class=\"service-content\">
  62. <div>";
  63. // line 19
  64. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 19, $this->source); })()), "displayContent", [], "any", false, false, false, 19);
  65. yield "</div>
  66. </div>
  67. </div>
  68. <div class=\"post-navigation\">
  69. ";
  70. // line 23
  71. if ((($tmp = !(null === (isset($context["previousService"]) || array_key_exists("previousService", $context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.', 23, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  72. // line 24
  73. yield " <a href=\"";
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["previousService"]) || array_key_exists("previousService", $context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.', 24, $this->source); })()), "id", [], "any", false, false, false, 24)]), "html", null, true);
  75. yield "\" class=\"post-prev\">
  76. <div class=\"post-prev-title\"><span>";
  77. // line 25
  78. yield $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.previous");
  79. yield "</span>";
  80. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["previousService"]) || array_key_exists("previousService", $context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.', 25, $this->source); })()), "titre", [], "any", false, false, false, 25), "html", null, true);
  81. yield "</div>
  82. </a>
  83. ";
  84. }
  85. // line 28
  86. yield " <a href=\"";
  87. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("services");
  88. yield "\" class=\"post-all\">
  89. <i class=\"icon-grid\"> </i>
  90. </a>
  91. ";
  92. // line 31
  93. if ((($tmp = !(null === (isset($context["nextService"]) || array_key_exists("nextService", $context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.', 31, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  94. // line 32
  95. yield " <a href=\"";
  96. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["nextService"]) || array_key_exists("nextService", $context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.', 32, $this->source); })()), "id", [], "any", false, false, false, 32)]), "html", null, true);
  97. yield "\" class=\"post-next\">
  98. <div class=\"post-next-title\"><span>";
  99. // line 33
  100. yield $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.next");
  101. yield "</span>";
  102. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["nextService"]) || array_key_exists("nextService", $context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.', 33, $this->source); })()), "titre", [], "any", false, false, false, 33), "html", null, true);
  103. yield "</div>
  104. </a>
  105. ";
  106. }
  107. // line 36
  108. yield " </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <div class=\"sidebar sticky-sidebar col-lg-3\">
  114. <div class=\"widget\">
  115. <h2 class=\"widget-title\">";
  116. // line 48
  117. yield $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.other");
  118. yield "</h2>
  119. <div class=\"post-thumbnail-list\">
  120. ";
  121. // line 50
  122. $context['_parent'] = $context;
  123. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["otherServices"]) || array_key_exists("otherServices", $context) ? $context["otherServices"] : (function () { throw new RuntimeError('Variable "otherServices" does not exist.', 50, $this->source); })()));
  124. foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  125. // line 51
  126. yield " <div class=\"post-thumbnail-entry\">
  127. <img alt=\"";
  128. // line 52
  129. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "altDescription", [], "any", false, false, false, 52), "html", null, true);
  130. yield "\" ";
  131. yield $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . CoreExtension::getAttribute($this->env, $this->source, $context["service"], "image", [], "any", false, false, false, 52))));
  132. yield ">
  133. <div class=\"post-thumbnail-content\">
  134. <a href=\"";
  135. // line 54
  136. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 54)]), "html", null, true);
  137. yield "\">";
  138. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["service"], "titre", [], "any", false, false, false, 54), "html", null, true);
  139. yield "</a>
  140. </div>
  141. </div>
  142. ";
  143. }
  144. $_parent = $context['_parent'];
  145. unset($context['_seq'], $context['_key'], $context['service'], $context['_parent']);
  146. $context = array_intersect_key($context, $_parent) + $_parent;
  147. // line 58
  148. yield "
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </section>
  155. ";
  156. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158. yield from [];
  159. }
  160. /**
  161. * @codeCoverageIgnore
  162. */
  163. public function getTemplateName(): string
  164. {
  165. return "composantsPages/homeComponents/preview/service.html.twig";
  166. }
  167. /**
  168. * @codeCoverageIgnore
  169. */
  170. public function isTraitable(): bool
  171. {
  172. return false;
  173. }
  174. /**
  175. * @codeCoverageIgnore
  176. */
  177. public function getDebugInfo(): array
  178. {
  179. return array ( 165 => 58, 153 => 54, 146 => 52, 143 => 51, 139 => 50, 134 => 48, 120 => 36, 112 => 33, 107 => 32, 105 => 31, 98 => 28, 90 => 25, 85 => 24, 83 => 23, 76 => 19, 71 => 17, 62 => 13, 48 => 1,);
  180. }
  181. public function getSourceContext(): Source
  182. {
  183. return new Source("<section id=\"page-content\" class=\"sidebar-right\">
  184. <div class=\"container\">
  185. <div class=\"row\">
  186. <div class=\"content col-lg-9\">
  187. <div id=\"service\" class=\"single-post\">
  188. <div class=\"post-item\">
  189. <div class=\"post-item-wrap\">
  190. <div class=\"post-image\">
  191. <a href=\"\">
  192. <img alt=\"{{ service.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ service.image)) | raw }}>
  193. </a>
  194. </div>
  195. <div class=\"post-item-description\">
  196. <h2>{{ service.titre }}</h2>
  197. <div class=\"service-content\">
  198. <div>{{ service.displayContent | raw }}</div>
  199. </div>
  200. </div>
  201. <div class=\"post-navigation\">
  202. {% if previousService is not null %}
  203. <a href=\"{{ path('service',{'id' : previousService.id}) }}\" class=\"post-prev\">
  204. <div class=\"post-prev-title\"><span>{{ 'components.service_preview.previous' | admintrans | raw }}</span>{{ previousService.titre }}</div>
  205. </a>
  206. {% endif %}
  207. <a href=\"{{ path('services') }}\" class=\"post-all\">
  208. <i class=\"icon-grid\"> </i>
  209. </a>
  210. {% if nextService is not null %}
  211. <a href=\"{{ path('service',{'id' : nextService.id}) }}\" class=\"post-next\">
  212. <div class=\"post-next-title\"><span>{{ 'components.service_preview.next' | admintrans | raw }}</span>{{ nextService.titre }}</div>
  213. </a>
  214. {% endif %}
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. <div class=\"sidebar sticky-sidebar col-lg-3\">
  221. <div class=\"widget\">
  222. <h2 class=\"widget-title\">{{ 'components.service_preview.other' | admintrans | raw }}</h2>
  223. <div class=\"post-thumbnail-list\">
  224. {% for service in otherServices %}
  225. <div class=\"post-thumbnail-entry\">
  226. <img alt=\"{{ service.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ service.image)) | raw }}>
  227. <div class=\"post-thumbnail-content\">
  228. <a href=\"{{ path('service',{'id' : service.id}) }}\">{{ service.titre }}</a>
  229. </div>
  230. </div>
  231. {% endfor %}
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </section>
  238. ", "composantsPages/homeComponents/preview/service.html.twig", "/app/templates/composantsPages/homeComponents/preview/service.html.twig");
  239. }
  240. }