<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* composantsPages/homeComponents/preview/service.html.twig */
class __TwigTemplate_acc8a1fd7c27f0ba5c94e78be6c166d4 extends Template
{
private $source;
private $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 = [])
{
$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
echo "<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
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "\" ";
echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . twig_get_attribute($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))));
echo ">
</a>
</div>
<div class=\"post-item-description\">
<h2>";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</h2>
<div class=\"service-content\">
<div>";
// line 19
echo twig_get_attribute($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);
echo "</div>
</div>
</div>
<div class=\"post-navigation\">
";
// line 23
if ( !(null === (isset($context["previousService"]) || array_key_exists("previousService", $context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.', 23, $this->source); })()))) {
// line 24
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($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);
echo "\" class=\"post-prev\">
<div class=\"post-prev-title\"><span>";
// line 25
echo $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.previous");
echo "</span>";
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</div>
</a>
";
}
// line 28
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("services");
echo "\" class=\"post-all\">
<i class=\"icon-grid\"> </i>
</a>
";
// line 31
if ( !(null === (isset($context["nextService"]) || array_key_exists("nextService", $context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.', 31, $this->source); })()))) {
// line 32
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($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);
echo "\" class=\"post-next\">
<div class=\"post-next-title\"><span>";
// line 33
echo $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.next");
echo "</span>";
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</div>
</a>
";
}
// line 36
echo " </div>
</div>
</div>
</div>
</div>
<div class=\"sidebar sticky-sidebar col-lg-3\">
<div class=\"widget\">
<h2 class=\"widget-title\">";
// line 48
echo $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.other");
echo "</h2>
<div class=\"post-thumbnail-list\">
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((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
echo " <div class=\"post-thumbnail-entry\">
<img alt=\"";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "altDescription", [], "any", false, false, false, 52), "html", null, true);
echo "\" ";
echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . twig_get_attribute($this->env, $this->source, $context["service"], "image", [], "any", false, false, false, 52))));
echo ">
<div class=\"post-thumbnail-content\">
<a href=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($this->env, $this->source, $context["service"], "id", [], "any", false, false, false, 54)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["service"], "titre", [], "any", false, false, false, 54), "html", null, true);
echo "</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo "
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "composantsPages/homeComponents/preview/service.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 160 => 58, 148 => 54, 141 => 52, 138 => 51, 134 => 50, 129 => 48, 115 => 36, 107 => 33, 102 => 32, 100 => 31, 93 => 28, 85 => 25, 80 => 24, 78 => 23, 71 => 19, 66 => 17, 57 => 13, 43 => 1,);
}
public function getSourceContext()
{
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", "/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/composantsPages/homeComponents/preview/service.html.twig");
}
}