<?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;
/* bloc/_bloc_9.html.twig */
class __TwigTemplate_4287b53ac9bd371f4243c46f85284b3e1620e82cbb87935ef9c7b23989acc259 extends \Twig\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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bloc/_bloc_9.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bloc/_bloc_9.html.twig"));
// line 1
echo "<!-- TYPE_CONTENUS -->
";
// line 2
$context["lienBlocLignes"] = twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 2, $this->source); })()), "lienBlocLignesVisibles", [], "any", false, false, false, 2);
// line 3
echo "
";
// line 4
if ((twig_length_filter($this->env, (isset($context["lienBlocLignes"]) || array_key_exists("lienBlocLignes", $context) ? $context["lienBlocLignes"] : (function () { throw new RuntimeError('Variable "lienBlocLignes" does not exist.', 4, $this->source); })())) >= 2)) {
// line 5
echo " ";
$context["lienBlocLignesGauche"] = twig_slice($this->env, (isset($context["lienBlocLignes"]) || array_key_exists("lienBlocLignes", $context) ? $context["lienBlocLignes"] : (function () { throw new RuntimeError('Variable "lienBlocLignes" does not exist.', 5, $this->source); })()), 0, 1);
// line 6
echo " ";
$context["lienBlocLignesDroite"] = twig_slice($this->env, (isset($context["lienBlocLignes"]) || array_key_exists("lienBlocLignes", $context) ? $context["lienBlocLignes"] : (function () { throw new RuntimeError('Variable "lienBlocLignes" does not exist.', 6, $this->source); })()), 1);
// line 7
echo "
<div class=\"container\">
<div class=\"row small-gutters categories_grid\">
<div class=\"col-sm-12 col-md-6\">
";
// line 11
$context["ligne"] = twig_get_attribute($this->env, $this->source, twig_first($this->env, (isset($context["lienBlocLignesGauche"]) || array_key_exists("lienBlocLignesGauche", $context) ? $context["lienBlocLignesGauche"] : (function () { throw new RuntimeError('Variable "lienBlocLignesGauche" does not exist.', 11, $this->source); })())), "ligne", [], "any", false, false, false, 11);
// line 12
echo "
<a href=\"";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 13, $this->source); })()), "boutonLien", [], "any", false, false, false, 13), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 13, $this->source); })()), "boutonTitre", [], "any", false, false, false, 13), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 13, $this->source); })()), "boutonTarget", [], "any", false, false, false, 13) === true)) {
echo "target=\"_blank\"";
}
echo ">
";
// line 14
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 14, $this->source); })()), "image", [], "any", false, false, false, 14))) {
// line 15
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia(twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 15, $this->source); })()), "image", [], "any", false, false, false, 15), "700_604_thumbnail"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 15, $this->source); })()), "getAlt", [], "any", false, false, false, 15), "html", null, true);
echo "\" class=\"img-fluid\" />
";
} else {
// line 17
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/img_cat_home_1.jpg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 17, $this->source); })()), "getAlt", [], "any", false, false, false, 17), "html", null, true);
echo "\" class=\"img-fluid\" />
";
}
// line 19
echo " <div class=\"wrapper\">
<h2>";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 20, $this->source); })()), "titre", [], "any", false, false, false, 20), "html", null, true);
echo "</h2>
";
// line 21
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 21, $this->source); })()), "texte", [], "any", false, false, false, 21))) {
// line 22
echo " <p>";
echo strip_tags(twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 22, $this->source); })()), "texte", [], "any", false, false, false, 22));
echo "</p>
";
} else {
// line 24
echo " <p> </p>
";
}
// line 26
echo " </div>
</a>
</div>
<div class=\"col-sm-12 col-md-6\">
";
// line 31
if ((twig_length_filter($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 31, $this->source); })())) == 1)) {
// line 32
echo " ";
$context["ligne"] = twig_get_attribute($this->env, $this->source, twig_first($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 32, $this->source); })())), "ligne", [], "any", false, false, false, 32);
// line 33
echo "
<a href=\"";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 34, $this->source); })()), "boutonLien", [], "any", false, false, false, 34), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 34, $this->source); })()), "boutonTitre", [], "any", false, false, false, 34), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 34, $this->source); })()), "boutonTarget", [], "any", false, false, false, 34) === true)) {
echo "target=\"_blank\"";
}
echo ">
";
// line 35
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 35, $this->source); })()), "image", [], "any", false, false, false, 35))) {
// line 36
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia(twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 36, $this->source); })()), "image", [], "any", false, false, false, 36), "700_604_thumbnail"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 36, $this->source); })()), "getAlt", [], "any", false, false, false, 36), "html", null, true);
echo "\" class=\"img-fluid\" />
";
} else {
// line 38
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/img/img_cat_home_1.jpg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 38, $this->source); })()), "getAlt", [], "any", false, false, false, 38), "html", null, true);
echo "\" class=\"img-fluid\" />
";
}
// line 40
echo " <div class=\"wrapper\">
<h2>";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 41, $this->source); })()), "titre", [], "any", false, false, false, 41), "html", null, true);
echo "</h2>
";
// line 42
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 42, $this->source); })()), "texte", [], "any", false, false, false, 42))) {
// line 43
echo " <p>";
echo strip_tags(twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 43, $this->source); })()), "texte", [], "any", false, false, false, 43));
echo "</p>
";
} else {
// line 45
echo " <p> </p>
";
}
// line 47
echo " </div>
</a>
";
}
// line 50
echo "
";
// line 51
if ((twig_length_filter($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 51, $this->source); })())) > 1)) {
// line 52
echo " <div class=\"row small-gutters mt-md-0 mt-sm-2 ";
if ((twig_length_filter($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 52, $this->source); })())) == 4)) {
echo "five-items";
}
echo "\">
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 53, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["lienBlocLigne"]) {
// line 54
echo " ";
$context["ligne"] = twig_get_attribute($this->env, $this->source, $context["lienBlocLigne"], "ligne", [], "any", false, false, false, 54);
// line 55
echo "
";
// line 56
$context["thumbnail"] = "img_cat_home_3.jpg";
// line 57
echo " ";
$context["dimensions"] = "400_343_thumbnail";
// line 58
echo " ";
$context["class"] = "col-sm-6";
// line 59
echo " ";
if (((twig_length_filter($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 59, $this->source); })())) == 2) || ((twig_length_filter($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 59, $this->source); })())) == 3) && twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 59)))) {
// line 60
echo " ";
$context["thumbnail"] = "img_cat_home_4.jpg";
// line 61
echo " ";
$context["dimensions"] = "800_343_thumbnail";
// line 62
echo " ";
$context["class"] = "col-sm-12";
// line 63
echo " ";
}
// line 64
echo "
";
// line 65
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 65) || ((twig_length_filter($this->env, (isset($context["lienBlocLignesDroite"]) || array_key_exists("lienBlocLignesDroite", $context) ? $context["lienBlocLignesDroite"] : (function () { throw new RuntimeError('Variable "lienBlocLignesDroite" does not exist.', 65, $this->source); })())) == 4) && (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 65) == 3)))) {
// line 66
echo " ";
$context["class"] = ((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 66, $this->source); })()) . " mt-sm-2");
// line 67
echo " ";
}
// line 68
echo "
<div class=\"";
// line 69
echo twig_escape_filter($this->env, (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 69, $this->source); })()), "html", null, true);
echo "\">
<a href=\"";
// line 70
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 70, $this->source); })()), "boutonLien", [], "any", false, false, false, 70), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 70, $this->source); })()), "boutonTitre", [], "any", false, false, false, 70), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 70, $this->source); })()), "boutonTarget", [], "any", false, false, false, 70) === true)) {
echo "target=\"_blank\"";
}
echo ">
";
// line 71
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 71, $this->source); })()), "image", [], "any", false, false, false, 71))) {
// line 72
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia(twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 72, $this->source); })()), "image", [], "any", false, false, false, 72), (isset($context["dimensions"]) || array_key_exists("dimensions", $context) ? $context["dimensions"] : (function () { throw new RuntimeError('Variable "dimensions" does not exist.', 72, $this->source); })())), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 72, $this->source); })()), "getAlt", [], "any", false, false, false, 72), "html", null, true);
echo "\" class=\"img-fluid\" />
";
} else {
// line 74
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("build/img/" . (isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 74, $this->source); })()))), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 74, $this->source); })()), "getAlt", [], "any", false, false, false, 74), "html", null, true);
echo "\" class=\"img-fluid\" />
";
}
// line 76
echo " <div class=\"wrapper\">
<h2>";
// line 77
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 77, $this->source); })()), "titre", [], "any", false, false, false, 77), "html", null, true);
echo "</h2>
";
// line 78
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 78, $this->source); })()), "texte", [], "any", false, false, false, 78))) {
// line 79
echo " <p>";
echo strip_tags(twig_get_attribute($this->env, $this->source, (isset($context["ligne"]) || array_key_exists("ligne", $context) ? $context["ligne"] : (function () { throw new RuntimeError('Variable "ligne" does not exist.', 79, $this->source); })()), "texte", [], "any", false, false, false, 79));
echo "</p>
";
} else {
// line 81
echo " <p> </p>
";
}
// line 83
echo " </div>
</a>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lienBlocLigne'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " </div>
";
}
// line 89
echo " </div>
</div>
</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "bloc/_bloc_9.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 328 => 89, 324 => 87, 307 => 83, 303 => 81, 297 => 79, 295 => 78, 291 => 77, 288 => 76, 280 => 74, 272 => 72, 270 => 71, 260 => 70, 256 => 69, 253 => 68, 250 => 67, 247 => 66, 245 => 65, 242 => 64, 239 => 63, 236 => 62, 233 => 61, 230 => 60, 227 => 59, 224 => 58, 221 => 57, 219 => 56, 216 => 55, 213 => 54, 196 => 53, 189 => 52, 187 => 51, 184 => 50, 179 => 47, 175 => 45, 169 => 43, 167 => 42, 163 => 41, 160 => 40, 152 => 38, 144 => 36, 142 => 35, 132 => 34, 129 => 33, 126 => 32, 124 => 31, 117 => 26, 113 => 24, 107 => 22, 105 => 21, 101 => 20, 98 => 19, 90 => 17, 82 => 15, 80 => 14, 70 => 13, 67 => 12, 65 => 11, 59 => 7, 56 => 6, 53 => 5, 51 => 4, 48 => 3, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- TYPE_CONTENUS -->
{% set lienBlocLignes = bloc.lienBlocLignesVisibles %}
{% if lienBlocLignes|length >= 2 %}
{% set lienBlocLignesGauche = lienBlocLignes|slice(0, 1) %}
{% set lienBlocLignesDroite = lienBlocLignes|slice(1) %}
<div class=\"container\">
<div class=\"row small-gutters categories_grid\">
<div class=\"col-sm-12 col-md-6\">
{% set ligne = lienBlocLignesGauche|first.ligne %}
<a href=\"{{ ligne.boutonLien }}\" title=\"{{ ligne.boutonTitre }}\" {% if ligne.boutonTarget is same as(true) %}target=\"_blank\"{% endif %}>
{% if ligne.image is not null %}
<img src=\"{{ sonata_media(ligne.image, '700_604_thumbnail') }}\" alt=\"{{ ligne.getAlt }}\" class=\"img-fluid\" />
{% else %}
<img src=\"{{ asset('build/img/img_cat_home_1.jpg') }}\" alt=\"{{ ligne.getAlt }}\" class=\"img-fluid\" />
{% endif %}
<div class=\"wrapper\">
<h2>{{ ligne.titre }}</h2>
{% if ligne.texte is not null %}
<p>{{ ligne.texte|striptags|raw }}</p>
{% else %}
<p> </p>
{% endif %}
</div>
</a>
</div>
<div class=\"col-sm-12 col-md-6\">
{% if lienBlocLignesDroite|length == 1 %}
{% set ligne = lienBlocLignesDroite|first.ligne %}
<a href=\"{{ ligne.boutonLien }}\" title=\"{{ ligne.boutonTitre }}\" {% if ligne.boutonTarget is same as(true) %}target=\"_blank\"{% endif %}>
{% if ligne.image is not null %}
<img src=\"{{ sonata_media(ligne.image, '700_604_thumbnail') }}\" alt=\"{{ ligne.getAlt }}\" class=\"img-fluid\" />
{% else %}
<img src=\"{{ asset('build/img/img_cat_home_1.jpg') }}\" alt=\"{{ ligne.getAlt }}\" class=\"img-fluid\" />
{% endif %}
<div class=\"wrapper\">
<h2>{{ ligne.titre }}</h2>
{% if ligne.texte is not null %}
<p>{{ ligne.texte|striptags|raw }}</p>
{% else %}
<p> </p>
{% endif %}
</div>
</a>
{% endif %}
{% if lienBlocLignesDroite|length > 1 %}
<div class=\"row small-gutters mt-md-0 mt-sm-2 {% if lienBlocLignesDroite|length == 4 %}five-items{% endif %}\">
{% for lienBlocLigne in lienBlocLignesDroite %}
{% set ligne = lienBlocLigne.ligne %}
{% set thumbnail = 'img_cat_home_3.jpg' %}
{% set dimensions = '400_343_thumbnail' %}
{% set class = 'col-sm-6' %}
{% if lienBlocLignesDroite|length == 2 or (lienBlocLignesDroite|length == 3 and loop.last) %}
{% set thumbnail = 'img_cat_home_4.jpg' %}
{% set dimensions = '800_343_thumbnail' %}
{% set class = 'col-sm-12' %}
{% endif %}
{% if loop.last or (lienBlocLignesDroite|length == 4 and loop.index == 3) %}
{% set class = class ~ ' mt-sm-2' %}
{% endif %}
<div class=\"{{ class }}\">
<a href=\"{{ ligne.boutonLien }}\" title=\"{{ ligne.boutonTitre }}\" {% if ligne.boutonTarget is same as(true) %}target=\"_blank\"{% endif %}>
{% if ligne.image is not null %}
<img src=\"{{ sonata_media(ligne.image, dimensions) }}\" alt=\"{{ ligne.getAlt }}\" class=\"img-fluid\" />
{% else %}
<img src=\"{{ asset('build/img/'~thumbnail) }}\" alt=\"{{ ligne.getAlt }}\" class=\"img-fluid\" />
{% endif %}
<div class=\"wrapper\">
<h2>{{ ligne.titre }}</h2>
{% if ligne.texte is not null %}
<p>{{ ligne.texte|striptags|raw }}</p>
{% else %}
<p> </p>
{% endif %}
</div>
</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}", "bloc/_bloc_9.html.twig", "/home/promostamt/dev/templates/bloc/_bloc_9.html.twig");
}
}