var/cache/website/dev/twig/6e/6e53213221bb865c0ab09842689a5380e27e2b69c44cc46bf64b17f51e81ffe6.php line 130

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. /* blocks/preview-content.html.twig */
  15. class __TwigTemplate_6795ac7fcee7465cd23a7192f3de1c36230235e506fc8a056fa09a6d351df5c5 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/preview-content.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/preview-content.html.twig"));
  34.         // line 1
  35.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "title", [], "any"truetruefalse1) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'1$this->source); })()), "title", [], "any"falsefalsefalse1)))) {
  36.             // line 2
  37.             yield "\t<section class=\"preview-thematique mt-80px mb-80px apercu-bloc\">
  38. \t\t<div class=\"preview-thematique-header prelative br8 p-";
  39.             // line 3
  40.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "title_position", [], "any"truetruefalse3) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'3$this->source); })()), "title_position", [], "any"falsefalsefalse3)))) {
  41.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'3$this->source); })()), "title_position", [], "any"falsefalsefalse3), "html"nulltrue);
  42.             }
  43.             yield "\">
  44. \t\t\t<div class=\"magic-margin\"></div>
  45. \t\t\t<div class=\"preview-thematique-title shadow-standard w100 cwhite br8\" ";
  46.             // line 5
  47.             if (CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'5$this->source); })()), "bg_color", [], "any"falsefalsefalse5)) {
  48.                 yield " style=\"background: ";
  49.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'5$this->source); })()), "bg_color", [], "any"falsefalsefalse5), "html"nulltrue);
  50.                 yield "\" ";
  51.             }
  52.             yield ">
  53. \t\t\t\t";
  54.             // line 6
  55.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "icon", [], "any"truetruefalse6) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'6$this->source); })()), "icon", [], "any"falsefalsefalse6)))) {
  56.                 // line 7
  57.                 yield "\t\t\t\t\t<svg class=\"";
  58.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'7$this->source); })()), "icon", [], "any"falsefalsefalse7), 0, [], "array"falsefalsefalse7), "html"nulltrue);
  59.                 yield "\" aria-hidden=\"true\" focusable=\"false\">
  60. \t\t\t\t\t\t<use xlink:href='#";
  61.                 // line 8
  62.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'8$this->source); })()), "icon", [], "any"falsefalsefalse8), 0, [], "array"falsefalsefalse8), "html"nulltrue);
  63.                 yield "'/>
  64. \t\t\t\t\t</svg>
  65. \t\t\t\t";
  66.             }
  67.             // line 11
  68.             yield "\t\t\t\t<h2>";
  69.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'11$this->source); })()), "title", [], "any"falsefalsefalse11), "html"nulltrue);
  70.             yield "</h2>
  71. \t\t\t\t";
  72.             // line 12
  73.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "chapo", [], "any"truetruefalse12) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'12$this->source); })()), "chapo", [], "any"falsefalsefalse12)))) {
  74.                 // line 13
  75.                 yield "\t\t\t\t\t<p class=\"lh24\">";
  76.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'13$this->source); })()), "chapo", [], "any"falsefalsefalse13), "html"nulltrue);
  77.                 yield "</p>
  78. \t\t\t\t";
  79.             }
  80.             // line 15
  81.             yield "\t\t\t</div>
  82. \t\t\t<div class=\"preview-thematique-image shadow-standard w100\">
  83. \t\t\t\t";
  84.             // line 17
  85.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "image", [], "any"truetruefalse17) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'17$this->source); })()), "image", [], "any"falsefalsefalse17)))) {
  86.                 // line 18
  87.                 yield "\t\t\t\t\t<img src=\"";
  88.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18), "formats", [], "any"falsefalsefalse18), "600x.webp", [], "array"falsefalsefalse18), "html"nulltrue);
  89.                 yield "\" srcset=\"";
  90.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18), "formats", [], "any"falsefalsefalse18), "300x.webp", [], "array"falsefalsefalse18), "html"nulltrue);
  91.                 yield " 300w, ";
  92.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18), "formats", [], "any"falsefalsefalse18), "600x.webp", [], "array"falsefalsefalse18), "html"nulltrue);
  93.                 yield " 600w, ";
  94.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18), "formats", [], "any"falsefalsefalse18), "1000x.webp", [], "array"falsefalsefalse18), "html"nulltrue);
  95.                 yield " 1000w\" sizes=\"646px\" alt=\"";
  96.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AltImageExtension']->getCopyrightOrDescriptionOrTitle(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18)), "html"nulltrue);
  97.                 yield "\" class=\"br8\" loading=\"lazy\" width=\"";
  98.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18), "fileVersion", [], "any"falsefalsefalse18), "properties", [], "any"falsefalsefalse18), "width", [], "any"falsefalsefalse18), "html"nulltrue);
  99.                 yield "\" height=\"";
  100.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'18$this->source); })()), "image", [], "any"falsefalsefalse18), "fileVersion", [], "any"falsefalsefalse18), "properties", [], "any"falsefalsefalse18), "height", [], "any"falsefalsefalse18), "html"nulltrue);
  101.                 yield "\">
  102. \t\t\t\t";
  103.             }
  104.             // line 20
  105.             yield "\t\t\t</div>
  106. \t\t</div>
  107. \t\t";
  108.             // line 22
  109.             if (((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "articles", [], "any"truetruefalse22) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'22$this->source); })()), "articles", [], "any"falsefalsefalse22))) && (=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'22$this->source); })()), "articles", [], "any"falsefalsefalse22)), 0)))) {
  110.                 // line 23
  111.                 yield "\t\t\t";
  112.                 yield from                 $this->loadTemplate("blocks/preview-content-logic.html.twig""blocks/preview-content.html.twig"23)->unwrap()->yield(CoreExtension::merge($context, ["articles" => CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'23$this->source); })()), "articles", [], "any"falsefalsefalse23)]));
  113.                 // line 24
  114.                 yield "\t\t";
  115.             }
  116.             // line 25
  117.             yield "\t\t";
  118.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "categories", [], "any"truetruefalse25) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'25$this->source); })()), "categories", [], "any"falsefalsefalse25)))) {
  119.                 // line 26
  120.                 yield "\t\t\t";
  121.                 yield from                 $this->loadTemplate("blocks/preview-thematiques-logic.html.twig""blocks/preview-content.html.twig"26)->unwrap()->yield(CoreExtension::merge($context, ["categories" => CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'26$this->source); })()), "categories", [], "any"falsefalsefalse26)]));
  122.                 // line 27
  123.                 yield "\t\t";
  124.             }
  125.             // line 28
  126.             yield "\t\t";
  127.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "link", [], "any"truetruefalse28) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'28$this->source); })()), "link", [], "any"falsefalsefalse28)))) {
  128.                 // line 29
  129.                 yield "\t\t\t<div class=\"tac\">
  130. \t\t\t\t<a href=\"";
  131.                 // line 30
  132.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'30$this->source); })()), "link", [], "any"falsefalsefalse30), "html"nulltrue);
  133.                 yield "\" class=\"CTA diblock nodeco lh28 mt-40px ma w100\"><img src=\"/resources/img/plus-icon.svg\" alt=\"Lien\" class=\"mr-8px\" loading=\"lazy\" width=\"15\" height=\"14\">";
  134.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'30$this->source); })()), "link_text", [], "any"falsefalsefalse30), "html"nulltrue);
  135.                 yield "</a>
  136. \t\t\t</div>
  137. \t\t";
  138.             }
  139.             // line 33
  140.             yield "\t\t<hr class=\"bold\">
  141. \t</section>
  142. ";
  143.         }
  144.         
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  146.         
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  148.         return; yield '';
  149.     }
  150.     /**
  151.      * @codeCoverageIgnore
  152.      */
  153.     public function getTemplateName()
  154.     {
  155.         return "blocks/preview-content.html.twig";
  156.     }
  157.     /**
  158.      * @codeCoverageIgnore
  159.      */
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function getDebugInfo()
  168.     {
  169.         return array (  149 => 33,  141 => 30,  138 => 29,  135 => 28,  132 => 27,  129 => 26,  126 => 25,  123 => 24,  120 => 23,  118 => 22,  114 => 20,  96 => 18,  94 => 17,  90 => 15,  84 => 13,  82 => 12,  77 => 11,  71 => 8,  66 => 7,  64 => 6,  56 => 5,  49 => 3,  46 => 2,  44 => 1,);
  170.     }
  171.     public function getSourceContext()
  172.     {
  173.         return new Source("{% if block.title is defined and block.title is not empty %}
  174. \t<section class=\"preview-thematique mt-80px mb-80px apercu-bloc\">
  175. \t\t<div class=\"preview-thematique-header prelative br8 p-{% if block.title_position is defined and block.title_position is not empty %}{{ block.title_position }}{% endif %}\">
  176. \t\t\t<div class=\"magic-margin\"></div>
  177. \t\t\t<div class=\"preview-thematique-title shadow-standard w100 cwhite br8\" {% if block.bg_color %} style=\"background: {{ block.bg_color }}\" {% endif %}>
  178. \t\t\t\t{% if block.icon is defined and block.icon is not empty %}
  179. \t\t\t\t\t<svg class=\"{{ block.icon[0] }}\" aria-hidden=\"true\" focusable=\"false\">
  180. \t\t\t\t\t\t<use xlink:href='#{{ block.icon[0] }}'/>
  181. \t\t\t\t\t</svg>
  182. \t\t\t\t{% endif %}
  183. \t\t\t\t<h2>{{ block.title }}</h2>
  184. \t\t\t\t{% if block.chapo is defined and block.chapo is not empty %}
  185. \t\t\t\t\t<p class=\"lh24\">{{ block.chapo }}</p>
  186. \t\t\t\t{% endif %}
  187. \t\t\t</div>
  188. \t\t\t<div class=\"preview-thematique-image shadow-standard w100\">
  189. \t\t\t\t{% if block.image is defined and block.image is not empty %}
  190. \t\t\t\t\t<img src=\"{{ block.image.formats['600x.webp'] }}\" srcset=\"{{ block.image.formats['300x.webp'] }} 300w, {{ block.image.formats['600x.webp'] }} 600w, {{ block.image.formats['1000x.webp'] }} 1000w\" sizes=\"646px\" alt=\"{{ block.image | copyright_or_description_or_title }}\" class=\"br8\" loading=\"lazy\" width=\"{{ block.image.fileVersion.properties.width }}\" height=\"{{ block.image.fileVersion.properties.height }}\">
  191. \t\t\t\t{% endif %}
  192. \t\t\t</div>
  193. \t\t</div>
  194. \t\t{% if block.articles is defined and block.articles is not empty and block.articles|length > 0 %}
  195. \t\t\t{% include \"blocks/preview-content-logic.html.twig\" with {articles: block.articles} %}
  196. \t\t{% endif %}
  197. \t\t{% if block.categories is defined and block.categories is not empty %}
  198. \t\t\t{% include \"blocks/preview-thematiques-logic.html.twig\" with {categories: block.categories} %}
  199. \t\t{% endif %}
  200. \t\t{% if block.link is defined and block.link is not empty %}
  201. \t\t\t<div class=\"tac\">
  202. \t\t\t\t<a href=\"{{ block.link }}\" class=\"CTA diblock nodeco lh28 mt-40px ma w100\"><img src=\"/resources/img/plus-icon.svg\" alt=\"Lien\" class=\"mr-8px\" loading=\"lazy\" width=\"15\" height=\"14\">{{ block.link_text }}</a>
  203. \t\t\t</div>
  204. \t\t{% endif %}
  205. \t\t<hr class=\"bold\">
  206. \t</section>
  207. {% endif %}""blocks/preview-content.html.twig""/var/www/html/templates/blocks/preview-content.html.twig");
  208.     }
  209. }