<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* composantsPages/homeComponents/preview/service.html.twig */
class __TwigTemplate_10468fd61e271686984f0de2b37cbc02 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "composantsPages/homeComponents/preview/service.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "composantsPages/homeComponents/preview/service.html.twig"));
// line 1
yield "<section id=\"page-content\" class=\"sidebar-right\">
<div class=\"container\">
<div class=\"row\">
<div class=\"content col-lg-9\">
<div id=\"service\" class=\"single-post\">
<div class=\"post-item\">
<div class=\"post-item-wrap\">
<div class=\"post-image\">
<a href=\"\">
<img alt=\"";
// line 13
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);
yield "\" ";
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))));
yield ">
</a>
</div>
<div class=\"post-item-description\">
<h2>";
// line 17
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);
yield "</h2>
<div class=\"service-content\">
<div>";
// line 19
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);
yield "</div>
</div>
</div>
<div class=\"post-navigation\">
";
// line 23
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)) {
// line 24
yield " <a href=\"";
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);
yield "\" class=\"post-prev\">
<div class=\"post-prev-title\"><span>";
// line 25
yield $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.previous");
yield "</span>";
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);
yield "</div>
</a>
";
}
// line 28
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("services");
yield "\" class=\"post-all\">
<i class=\"icon-grid\"> </i>
</a>
";
// line 31
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)) {
// line 32
yield " <a href=\"";
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);
yield "\" class=\"post-next\">
<div class=\"post-next-title\"><span>";
// line 33
yield $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.next");
yield "</span>";
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);
yield "</div>
</a>
";
}
// line 36
yield " </div>
</div>
</div>
</div>
</div>
<div class=\"sidebar sticky-sidebar col-lg-3\">
<div class=\"widget\">
<h2 class=\"widget-title\">";
// line 48
yield $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.other");
yield "</h2>
<div class=\"post-thumbnail-list\">
";
// line 50
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
// line 51
yield " <div class=\"post-thumbnail-entry\">
<img alt=\"";
// line 52
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);
yield "\" ";
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))));
yield ">
<div class=\"post-thumbnail-content\">
<a href=\"";
// line 54
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);
yield "\">";
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);
yield "</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['service'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
yield "
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "composantsPages/homeComponents/preview/service.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("<section id=\"page-content\" class=\"sidebar-right\">
<div class=\"container\">
<div class=\"row\">
<div class=\"content col-lg-9\">
<div id=\"service\" class=\"single-post\">
<div class=\"post-item\">
<div class=\"post-item-wrap\">
<div class=\"post-image\">
<a href=\"\">
<img alt=\"{{ service.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ service.image)) | raw }}>
</a>
</div>
<div class=\"post-item-description\">
<h2>{{ service.titre }}</h2>
<div class=\"service-content\">
<div>{{ service.displayContent | raw }}</div>
</div>
</div>
<div class=\"post-navigation\">
{% if previousService is not null %}
<a href=\"{{ path('service',{'id' : previousService.id}) }}\" class=\"post-prev\">
<div class=\"post-prev-title\"><span>{{ 'components.service_preview.previous' | admintrans | raw }}</span>{{ previousService.titre }}</div>
</a>
{% endif %}
<a href=\"{{ path('services') }}\" class=\"post-all\">
<i class=\"icon-grid\"> </i>
</a>
{% if nextService is not null %}
<a href=\"{{ path('service',{'id' : nextService.id}) }}\" class=\"post-next\">
<div class=\"post-next-title\"><span>{{ 'components.service_preview.next' | admintrans | raw }}</span>{{ nextService.titre }}</div>
</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class=\"sidebar sticky-sidebar col-lg-3\">
<div class=\"widget\">
<h2 class=\"widget-title\">{{ 'components.service_preview.other' | admintrans | raw }}</h2>
<div class=\"post-thumbnail-list\">
{% for service in otherServices %}
<div class=\"post-thumbnail-entry\">
<img alt=\"{{ service.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ service.image)) | raw }}>
<div class=\"post-thumbnail-content\">
<a href=\"{{ path('service',{'id' : service.id}) }}\">{{ service.titre }}</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</section>
", "composantsPages/homeComponents/preview/service.html.twig", "/app/templates/composantsPages/homeComponents/preview/service.html.twig");
}
}