var/cache/website/dev/twig/31/315155b49e2d92ef3d0bccf22dc48ab9e97caadcd5f651c9114393a8d82a12b6.php line 39

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. /* articles/newsletters.html.twig */
  15. class __TwigTemplate_24aff504ae7d2032530d8ee79f82ed72fba929af3e000f2016bf65d6a7b03afa 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->blocks = [
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""articles/newsletters.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""articles/newsletters.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""articles/newsletters.html.twig"1);
  40.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         yield "\t";
  56.         $context["name"] = "";
  57.         // line 5
  58.         yield "\t";
  59.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse5), "attributes", [], "any"falsetruefalse5), "get", ["structure"], "method"falsetruefalse5), "structure", [], "any"falsetruefalse5), "name", [], "any"truetruefalse5) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "attributes", [], "any"falsefalsefalse5), "get", ["structure"], "method"falsefalsefalse5), "structure", [], "any"falsefalsefalse5), "name", [], "any"falsefalsefalse5)))) {
  60.             // line 6
  61.             yield "\t\t";
  62.             $context["name"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", ["structure"], "method"falsefalsefalse6), "structure", [], "any"falsefalsefalse6), "name", [], "any"falsefalsefalse6);
  63.             // line 7
  64.             yield "\t";
  65.         }
  66.         // line 8
  67.         yield "\t";
  68.         $context["values"] = ["Actualités""Newsletters"];
  69.         // line 9
  70.         yield "\t";
  71.         yield from         $this->loadTemplate("articles-blocks/breadcrumb.html.twig""articles/newsletters.html.twig"9)->unwrap()->yield(CoreExtension::merge($context, ["titles" => (isset($context["values"]) || array_key_exists("values"$context) ? $context["values"] : (function () { throw new RuntimeError('Variable "values" does not exist.'9$this->source); })())]));
  72.         // line 10
  73.         yield "\t<section class=\"single-article-container\">
  74. \t\t<article>
  75. \t\t\t<div class=\"mlr-1em\">
  76. \t\t\t\t";
  77.         // line 13
  78.         yield from         $this->loadTemplate("articles-blocks/header.html.twig""articles/newsletters.html.twig"13)->unwrap()->yield($context);
  79.         // line 14
  80.         yield "\t\t\t\t";
  81.         // line 15
  82.         yield "\t\t\t\t";
  83.         yield from         $this->loadTemplate("articles/blocks/article-under-header.html.twig""articles/newsletters.html.twig"15)->unwrap()->yield($context);
  84.         // line 16
  85.         yield "\t\t\t\t";
  86.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["extension"] ?? null), "excerpt", [], "any"falsetruefalse16), "categories", [], "any"truetruefalse16) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["extension"]) || array_key_exists("extension"$context) ? $context["extension"] : (function () { throw new RuntimeError('Variable "extension" does not exist.'16$this->source); })()), "excerpt", [], "any"falsefalsefalse16), "categories", [], "any"falsefalsefalse16)))) {
  87.             // line 17
  88.             yield "\t\t\t\t\t";
  89.             $context["categories"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["extension"]) || array_key_exists("extension"$context) ? $context["extension"] : (function () { throw new RuntimeError('Variable "extension" does not exist.'17$this->source); })()), "excerpt", [], "any"falsefalsefalse17), "categories", [], "any"falsefalsefalse17);
  90.             // line 18
  91.             yield "\t\t\t\t\t";
  92.             yield from             $this->loadTemplate("blocks/previews-from-controller/blocks/categories.html.twig""articles/newsletters.html.twig"18)->unwrap()->yield($context);
  93.             // line 19
  94.             yield "\t\t\t\t";
  95.         }
  96.         // line 20
  97.         yield "\t\t\t\t";
  98.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["content"] ?? null), "chapo", [], "any"truetruefalse20) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'20$this->source); })()), "chapo", [], "any"falsefalsefalse20)))) {
  99.             // line 21
  100.             yield "\t\t\t\t\t<div class=\"fw500 lh28 fs20 text cgrey mt-40px\">";
  101.             yield CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'21$this->source); })()), "chapo", [], "any"falsefalsefalse21);
  102.             yield "</div>
  103. \t\t\t\t";
  104.         }
  105.         // line 23
  106.         yield "\t\t\t</div>
  107. \t\t\t";
  108.         // line 24
  109.         if (((CoreExtension::getAttribute($this->env$this->source, ($context["content"] ?? null), "main_content", [], "any"truetruefalse24) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'24$this->source); })()), "main_content", [], "any"falsefalsefalse24))) && (=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'24$this->source); })()), "main_content", [], "any"falsefalsefalse24)), 0)))) {
  110.             // line 25
  111.             yield "\t\t\t\t";
  112.             $context['_parent'] = $context;
  113.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'25$this->source); })()), "main_content", [], "any"falsefalsefalse25));
  114.             $context['loop'] = [
  115.               'parent' => $context['_parent'],
  116.               'index0' => 0,
  117.               'index'  => 1,
  118.               'first'  => true,
  119.             ];
  120.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  121.                 $length count($context['_seq']);
  122.                 $context['loop']['revindex0'] = $length 1;
  123.                 $context['loop']['revindex'] = $length;
  124.                 $context['loop']['length'] = $length;
  125.                 $context['loop']['last'] = === $length;
  126.             }
  127.             foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
  128.                 // line 26
  129.                 yield "\t\t\t\t\t";
  130.                 if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source$context["data"], "type", [], "any"falsefalsefalse26), "sub_content"))) {
  131.                     // line 27
  132.                     yield "\t\t\t\t\t\t";
  133.                     yield from                     $this->loadTemplate("articles-blocks/articles-content.html.twig""articles/newsletters.html.twig"27)->unwrap()->yield($context);
  134.                     // line 28
  135.                     yield "\t\t\t\t\t";
  136.                 }
  137.                 // line 29
  138.                 yield "\t\t\t\t\t";
  139.                 if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source$context["data"], "type", [], "any"falsefalsefalse29), "linked_with"))) {
  140.                     // line 30
  141.                     yield "\t\t\t\t\t\t";
  142.                     yield from                     $this->loadTemplate("articles-blocks/linked-with.html.twig""articles/newsletters.html.twig"30)->unwrap()->yield($context);
  143.                     // line 31
  144.                     yield "\t\t\t\t\t";
  145.                 }
  146.                 // line 32
  147.                 yield "\t\t\t\t\t";
  148.                 if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source$context["data"], "type", [], "any"falsefalsefalse32), "see_more"))) {
  149.                     // line 33
  150.                     yield "\t\t\t\t\t\t";
  151.                     yield from                     $this->loadTemplate("articles-blocks/see-more.html.twig""articles/newsletters.html.twig"33)->unwrap()->yield($context);
  152.                     // line 34
  153.                     yield "\t\t\t\t\t";
  154.                 }
  155.                 // line 35
  156.                 yield "\t\t\t\t";
  157.                 ++$context['loop']['index0'];
  158.                 ++$context['loop']['index'];
  159.                 $context['loop']['first'] = false;
  160.                 if (isset($context['loop']['length'])) {
  161.                     --$context['loop']['revindex0'];
  162.                     --$context['loop']['revindex'];
  163.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  164.                 }
  165.             }
  166.             $_parent $context['_parent'];
  167.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
  168.             $context array_intersect_key($context$_parent) + $_parent;
  169.             // line 36
  170.             yield "\t\t\t";
  171.         }
  172.         // line 37
  173.         yield "\t\t</article>
  174. \t</section>
  175. ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.         return; yield '';
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function getTemplateName()
  186.     {
  187.         return "articles/newsletters.html.twig";
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function getDebugInfo()
  200.     {
  201.         return array (  187 => 37,  184 => 36,  170 => 35,  167 => 34,  164 => 33,  161 => 32,  158 => 31,  155 => 30,  152 => 29,  149 => 28,  146 => 27,  143 => 26,  125 => 25,  123 => 24,  120 => 23,  114 => 21,  111 => 20,  108 => 19,  105 => 18,  102 => 17,  99 => 16,  96 => 15,  94 => 14,  92 => 13,  87 => 10,  84 => 9,  81 => 8,  78 => 7,  75 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 1,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% extends \"base.html.twig\" %}
  206. {# extension.excerpt #}
  207. {% block content %}
  208. \t{% set name = \"\" %}
  209. \t{% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
  210. \t\t{% set name = app.request.attributes.get('structure').structure.name %}
  211. \t{% endif %}
  212. \t{% set values = ['Actualités', 'Newsletters'] %}
  213. \t{% include \"articles-blocks/breadcrumb.html.twig\" with {titles : values} %}
  214. \t<section class=\"single-article-container\">
  215. \t\t<article>
  216. \t\t\t<div class=\"mlr-1em\">
  217. \t\t\t\t{% include \"articles-blocks/header.html.twig\" %}
  218. \t\t\t\t{# <div class=\"creator\">{{ sulu_resolve_user(creator).fullName }}</div> #}
  219. \t\t\t\t{% include \"articles/blocks/article-under-header.html.twig\" %}
  220. \t\t\t\t{% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  221. \t\t\t\t\t{% set categories = extension.excerpt.categories %}
  222. \t\t\t\t\t{% include \"blocks/previews-from-controller/blocks/categories.html.twig\" %}
  223. \t\t\t\t{% endif %}
  224. \t\t\t\t{% if content.chapo is defined and content.chapo is not empty %}
  225. \t\t\t\t\t<div class=\"fw500 lh28 fs20 text cgrey mt-40px\">{{ content.chapo|raw }}</div>
  226. \t\t\t\t{% endif %}
  227. \t\t\t</div>
  228. \t\t\t{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  229. \t\t\t\t{% for data in content.main_content %}
  230. \t\t\t\t\t{% if data.type == \"sub_content\" %}
  231. \t\t\t\t\t\t{% include \"articles-blocks/articles-content.html.twig\" %}
  232. \t\t\t\t\t{% endif %}
  233. \t\t\t\t\t{% if data.type == \"linked_with\" %}
  234. \t\t\t\t\t\t{% include \"articles-blocks/linked-with.html.twig\" %}
  235. \t\t\t\t\t{% endif %}
  236. \t\t\t\t\t{% if data.type == \"see_more\" %}
  237. \t\t\t\t\t\t{% include \"articles-blocks/see-more.html.twig\" %}
  238. \t\t\t\t\t{% endif %}
  239. \t\t\t\t{% endfor %}
  240. \t\t\t{% endif %}
  241. \t\t</article>
  242. \t</section>
  243. {% endblock %}
  244. ""articles/newsletters.html.twig""/var/www/html/templates/articles/newsletters.html.twig");
  245.     }
  246. }