var/cache/dev/twig/19/19af871f594fdb18a0cee650ab8d066d.php line 48

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. use Twig\TemplateWrapper;
  15. /* themesWebsite/blog_cvs/articles/list.html.twig */
  16. class __TwigTemplate_624160205834541330e9e25491bec839 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'description' => [$this'block_description'],
  30.             'robots' => [$this'block_robots'],
  31.             'meta_social' => [$this'block_meta_social'],
  32.             'body' => [$this'block_body'],
  33.             'footer_js' => [$this'block_footer_js'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  37.     {
  38.         // line 1
  39.         return "themesWebsite/blog_cvs/base.html.twig";
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = [])
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""themesWebsite/blog_cvs/articles/list.html.twig"));
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""themesWebsite/blog_cvs/articles/list.html.twig"));
  48.         $this->parent $this->loadTemplate("themesWebsite/blog_cvs/base.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"1);
  49.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 3
  56.     public function block_title($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "shortTitle", [], "any"falsefalsefalse3), "html"nulltrue);
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         return; yield '';
  69.     }
  70.     // line 4
  71.     public function block_description($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  78.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'4$this->source); })()), "shortDescription", [], "any"falsefalsefalse4), "html"nulltrue);
  79.         
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81.         
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83.         return; yield '';
  84.     }
  85.     // line 5
  86.     public function block_robots($context, array $blocks = [])
  87.     {
  88.         $macros $this->macros;
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""robots"));
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""robots"));
  93.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'5$this->source); })()), "robots", [], "any"falsefalsefalse5), "html"nulltrue);
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.         
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98.         return; yield '';
  99.     }
  100.     // line 7
  101.     public function block_meta_social($context, array $blocks = [])
  102.     {
  103.         $macros $this->macros;
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_social"));
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_social"));
  108.         // line 8
  109.         yield "    ";
  110.         yield from $this->yieldParentBlock("meta_social"$context$blocks);
  111.         yield "
  112.     ";
  113.         // line 9
  114.         yield from         $this->loadTemplate("/themesWebsite/blog_cpn/components/socialmedia.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"9)->unwrap()->yield(CoreExtension::merge($context, ["page" => (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'9$this->source); })()), "social_type" => "website"]));
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.         return; yield '';
  120.     }
  121.     // line 12
  122.     public function block_body($context, array $blocks = [])
  123.     {
  124.         $macros $this->macros;
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  129.         // line 13
  130.         yield "
  131.     <section class=\"bg-cover primary-bg-dark\" style=\"background:url(assets/img/bg2.png)no-repeat; margin-top:72px;\">
  132.         <div class=\"container\">
  133.             <div class=\"row\">
  134.                 <div class=\"col-lg-12 col-md-12\">
  135.                     <h2 class=\"ipt-title text-light\">";
  136.         // line 19
  137.         yield CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'19$this->source); })()), "title", [], "any"falsefalsefalse19);
  138.         yield "</h2>
  139.                     ";
  140.         // line 20
  141.         if ( !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'20$this->source); })()), "description", [], "any"falsefalsefalse20))) {
  142.             yield "<span class=\"ipn-subtitle text-light opacity-75\">";
  143.             yield CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'20$this->source); })()), "description", [], "any"falsefalsefalse20);
  144.             yield "<</span>";
  145.         }
  146.         // line 21
  147.         yield "
  148.                 </div>
  149.             </div>
  150.         </div>
  151.     </section>
  152.     <section class=\"gray-simple\">
  153.         <div class=\"container\">
  154.             <div class=\"row gx-4 gy-4\">
  155.                 ";
  156.         // line 32
  157.         $context['_parent'] = $context;
  158.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'32$this->source); })()));
  159.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  160.             // line 33
  161.             yield "                <div class=\"col-xl-4 col-lg-4 col-md-12 col-sm-12\">
  162.                     <div class=\"jobstock-grid-blog\">
  163.                         <div class=\"jobstock-grid-blog-thumb\">
  164.                             ";
  165.             // line 36
  166.             if ( !(null === CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["article"], "image", [], "any"falsefalsefalse36), "name", [], "any"falsefalsefalse36))) {
  167.                 // line 37
  168.                 yield "                                <img class=\"img-fluid\" src=\"";
  169.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["article"], "imageFile"), "articles_preview2"), "html"nulltrue);
  170.                 yield "\" alt=\"";
  171.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse37), "html"nulltrue);
  172.                 yield "\" loading=\"lazy\" />
  173.                             ";
  174.             } else {
  175.                 // line 39
  176.                 yield "                                <img class=\"img-fluid\" src=\"/uploads/no_data.png\" loading=\"lazy\" alt=\"";
  177.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse39), "html"nulltrue);
  178.                 yield "\" />
  179.                             ";
  180.             }
  181.             // line 41
  182.             yield "                        </div>
  183.                         <div class=\"jobstock-grid-blog-body\">
  184.                             <div class=\"jobstock-grid-body-header\">
  185.                                 <div class=\"jobstock-grid-posted\"><span>26 Feb 2023</span></div>
  186.                                 <div class=\"jobstock-grid-title\">
  187.                                     <h4>
  188.                                         ";
  189.             // line 47
  190.             if ((CoreExtension::getAttribute($this->env$this->source$context["article"], "type", [], "any"falsefalsefalse47) == "article")) {
  191.                 // line 48
  192.                 yield "                                            <a href=\"";
  193.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_article", ["slug" => CoreExtension::getAttribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse48)]), "html"nulltrue);
  194.                 yield "\">";
  195.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse48), "html"nulltrue);
  196.                 yield "</a>
  197.                                         ";
  198.             } elseif ((CoreExtension::getAttribute($this->env$this->source,             // line 49
  199. $context["article"], "type", [], "any"falsefalsefalse49) == "fiche")) {
  200.                 // line 50
  201.                 yield "                                            <a href=\"";
  202.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "url", [], "any"falsefalsefalse50), "html"nulltrue);
  203.                 yield "\">";
  204.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse50), "html"nulltrue);
  205.                 yield "</a>
  206.                                         ";
  207.             }
  208.             // line 52
  209.             yield "                                    </h4>
  210.                                 </div>
  211.                             </div>
  212.                             <div class=\"jobstock-grid-body-middle\">
  213.                                 ";
  214.             // line 56
  215.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["article"], "subtitle", [], "any"falsefalsefalse56))) {
  216.                 yield "<p>";
  217.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "subtitle", [], "any"falsefalsefalse56), "html"nulltrue);
  218.                 yield "</p>";
  219.             }
  220.             // line 57
  221.             yield "                            </div>
  222.                             <div class=\"jobstock-grid-body-footer\">
  223.                                 ";
  224.             // line 59
  225.             if ((CoreExtension::getAttribute($this->env$this->source$context["article"], "type", [], "any"falsefalsefalse59) == "article")) {
  226.                 yield "<a href=\"";
  227.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_article", ["slug" => CoreExtension::getAttribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse59)]), "html"nulltrue);
  228.                 yield "\" class=\"btn btn-blog-link\">Lecture</a>
  229.                                 ";
  230.             } elseif ((CoreExtension::getAttribute($this->env$this->source,             // line 60
  231. $context["article"], "type", [], "any"falsefalsefalse60) == "fiche")) {
  232.                 yield "<a href=\"";
  233.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "url", [], "any"falsefalsefalse60), "html"nulltrue);
  234.                 yield "\" class=\"btn btn-blog-link\">Lecture</a>";
  235.             }
  236.             // line 61
  237.             yield "                            </div>
  238.                         </div>
  239.                     </div>
  240.                 </div>
  241.                 ";
  242.         }
  243.         $_parent $context['_parent'];
  244.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent']);
  245.         $context array_intersect_key($context$_parent) + $_parent;
  246.         // line 66
  247.         yield "
  248.             </div>
  249.             ";
  250.         // line 69
  251.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'69$this->source); })()), "components/pagination/pagination.html.twig");
  252.         yield "
  253.         </div>
  254.     </section>
  255.     ";
  256.         // line 74
  257.         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'74$this->source); })()))) {
  258.             // line 75
  259.             yield "        ";
  260.             $context['_parent'] = $context;
  261.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'75$this->source); })()));
  262.             $context['loop'] = [
  263.               'parent' => $context['_parent'],
  264.               'index0' => 0,
  265.               'index'  => 1,
  266.               'first'  => true,
  267.             ];
  268.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  269.                 $length count($context['_seq']);
  270.                 $context['loop']['revindex0'] = $length 1;
  271.                 $context['loop']['revindex'] = $length;
  272.                 $context['loop']['length'] = $length;
  273.                 $context['loop']['last'] = === $length;
  274.             }
  275.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  276.                 // line 76
  277.                 yield "
  278.             ";
  279.                 // line 77
  280.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
  281.                     yield "<div id='block_";
  282.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["block"], "id", [], "any"falsefalsefalse77), "html"nulltrue);
  283.                     yield "'>";
  284.                 }
  285.                 // line 78
  286.                 yield "
  287.             ";
  288.                 // line 79
  289.                 if ((((CoreExtension::getAttribute($this->env$this->source$context["block"], "onlyVisitor", [], "any"falsefalsefalse79) == true) && (CoreExtension::getAttribute($this->env$this->source$context["block"], "visibilityUser", [], "any"falsefalsefalse79) == false)) && (null === CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'79$this->source); })()), "user", [], "any"falsefalsefalse79)))) {
  290.                     // line 80
  291.                     yield "                ";
  292.                     // line 81
  293.                     yield "                ";
  294.                     yield from                     $this->loadTemplate("/themesWebsite/blog_cvs/components/pages/collections.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"81)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["block"], "newsletter" => (isset($context["formNewsletter"]) || array_key_exists("formNewsletter"$context) ? $context["formNewsletter"] : (function () { throw new RuntimeError('Variable "formNewsletter" does not exist.'81$this->source); })()), "contact" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'81$this->source); })())]));
  295.                     // line 82
  296.                     yield "            ";
  297.                 } elseif ((((CoreExtension::getAttribute($this->env$this->source$context["block"], "onlyVisitor", [], "any"falsefalsefalse82) == false) && (CoreExtension::getAttribute($this->env$this->source$context["block"], "visibilityUser", [], "any"falsefalsefalse82) == true)) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'82$this->source); })()), "user", [], "any"falsefalsefalse82)))) {
  298.                     // line 83
  299.                     yield "                ";
  300.                     // line 84
  301.                     yield "                ";
  302.                     yield from                     $this->loadTemplate("/themesWebsite/blog_cvs/components/pages/collections.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"84)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["block"], "newsletter" => (isset($context["formNewsletter"]) || array_key_exists("formNewsletter"$context) ? $context["formNewsletter"] : (function () { throw new RuntimeError('Variable "formNewsletter" does not exist.'84$this->source); })()), "contact" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'84$this->source); })())]));
  303.                     // line 85
  304.                     yield "            ";
  305.                 } elseif (((null === CoreExtension::getAttribute($this->env$this->source$context["block"], "onlyVisitor", [], "any"falsefalsefalse85)) && (null === CoreExtension::getAttribute($this->env$this->source$context["block"], "visibilityUser", [], "any"falsefalsefalse85)))) {
  306.                     // line 86
  307.                     yield "                ";
  308.                     // line 87
  309.                     yield "                ";
  310.                     yield from                     $this->loadTemplate("/themesWebsite/blog_cvs/components/pages/collections.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"87)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["block"], "newsletter" => (isset($context["formNewsletter"]) || array_key_exists("formNewsletter"$context) ? $context["formNewsletter"] : (function () { throw new RuntimeError('Variable "formNewsletter" does not exist.'87$this->source); })()), "contact" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'87$this->source); })())]));
  311.                     // line 88
  312.                     yield "            ";
  313.                 }
  314.                 // line 89
  315.                 yield "
  316.             ";
  317.                 // line 90
  318.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
  319.                     yield "</div>";
  320.                 }
  321.                 // line 91
  322.                 yield "
  323.             ";
  324.                 // line 92
  325.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
  326.                     // line 93
  327.                     yield "                ";
  328.                     if ((((CoreExtension::getAttribute($this->env$this->source$context["block"], "onlyVisitor", [], "any"falsefalsefalse93) == true) && (CoreExtension::getAttribute($this->env$this->source$context["block"], "visibilityUser", [], "any"falsefalsefalse93) == false)) && (null === CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'93$this->source); })()), "user", [], "any"falsefalsefalse93)))) {
  329.                         // line 94
  330.                         yield "                    ";
  331.                         // line 95
  332.                         yield "                    ";
  333.                         yield from                         $this->loadTemplate("/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"95)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["block"], "page" => (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'95$this->source); })())]));
  334.                         // line 96
  335.                         yield "                ";
  336.                     } elseif ((((CoreExtension::getAttribute($this->env$this->source$context["block"], "onlyVisitor", [], "any"falsefalsefalse96) == false) && (CoreExtension::getAttribute($this->env$this->source$context["block"], "visibilityUser", [], "any"falsefalsefalse96) == true)) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'96$this->source); })()), "user", [], "any"falsefalsefalse96)))) {
  337.                         // line 97
  338.                         yield "                    ";
  339.                         // line 98
  340.                         yield "                    ";
  341.                         yield from                         $this->loadTemplate("/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"98)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["block"], "page" => (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'98$this->source); })())]));
  342.                         // line 99
  343.                         yield "                ";
  344.                     } elseif (((null === CoreExtension::getAttribute($this->env$this->source$context["block"], "onlyVisitor", [], "any"falsefalsefalse99)) && (null === CoreExtension::getAttribute($this->env$this->source$context["block"], "visibilityUser", [], "any"falsefalsefalse99)))) {
  345.                         // line 100
  346.                         yield "                    ";
  347.                         // line 101
  348.                         yield "                    ";
  349.                         yield from                         $this->loadTemplate("/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig""themesWebsite/blog_cvs/articles/list.html.twig"101)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["block"], "page" => (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'101$this->source); })())]));
  350.                         // line 102
  351.                         yield "                ";
  352.                     }
  353.                     // line 103
  354.                     yield "            ";
  355.                 }
  356.                 // line 104
  357.                 yield "
  358.         ";
  359.                 ++$context['loop']['index0'];
  360.                 ++$context['loop']['index'];
  361.                 $context['loop']['first'] = false;
  362.                 if (isset($context['loop']['length'])) {
  363.                     --$context['loop']['revindex0'];
  364.                     --$context['loop']['revindex'];
  365.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  366.                 }
  367.             }
  368.             $_parent $context['_parent'];
  369.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  370.             $context array_intersect_key($context$_parent) + $_parent;
  371.             // line 106
  372.             yield "    ";
  373.         }
  374.         // line 107
  375.         yield "
  376.     <div id=\"show_modal\"></div>
  377. ";
  378.         
  379.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  380.         
  381.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  382.         return; yield '';
  383.     }
  384.     // line 112
  385.     public function block_footer_js($context, array $blocks = [])
  386.     {
  387.         $macros $this->macros;
  388.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  389.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer_js"));
  390.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  391.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer_js"));
  392.         // line 113
  393.         yield "    ";
  394.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
  395.             // line 114
  396.             yield "        <script>
  397.             function displayEdit(state) {
  398.                 \$(\".edit-spm\").each(function(i) {
  399.                     \$(this).css('display',state)
  400.                 });
  401.                 \$(\".edit-spmd\").each(function(i) {
  402.                     \$(this).css('display',state)
  403.                 });
  404.                 \$(\".edit-spmc\").each(function(i) {
  405.                     \$(this).css('display',state)
  406.                 });
  407.                 \$(\".edit-spmh\").each(function(i) {
  408.                     \$(this).css('display',state)
  409.                 });
  410.             }
  411.             var isCtrl = false;\$(document).keyup(function (e) {
  412.                 if(e.which == 17) isCtrl=false;
  413.             }).keydown(function (e) {
  414.                 if(e.which == 17) isCtrl=true;
  415.                 if(e.which == 66 && isCtrl == true) {
  416.                     var editDisplay = \$(\"#spm\").attr('editspm');
  417.                     if(editDisplay == \"1\") {
  418.                         displayEdit(\"none\");
  419.                         \$(\"#spm\").attr('editspm','0');
  420.                     } else {
  421.                         displayEdit(\"block\");
  422.                         \$(\"#spm\").attr('editspm','1');
  423.                     }
  424.                     return false;
  425.                 }
  426.             });
  427.             \$('.edit-spm').click(function (data) {
  428.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_cover',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  429.                     \$(\"#show_modal\").html(data2);
  430.                     \$(\"#modaldisplay\").modal('show');
  431.                 });
  432.             });
  433.             \$('.edit-spmd').click(function (data) {
  434.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_classic',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  435.                     \$(\"#show_modal\").html(data2);
  436.                     \$(\"#modaldisplay\").modal('show');
  437.                 });
  438.             });
  439.             \$('.edit-spmh').click(function (data) {
  440.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_html',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  441.                     \$(\"#show_modal\").html(data2);
  442.                     \$(\"#modaldisplay\").modal('show');
  443.                 });
  444.             });
  445.             \$('.edit-spmc').click(function (data) {
  446.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_custom',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  447.                     \$(\"#show_modal\").html(data2);
  448.                     \$(\"#modaldisplay\").modal('show');
  449.                 });
  450.             });
  451.         </script>
  452.     ";
  453.         }
  454.         // line 177
  455.         yield "
  456. ";
  457.         
  458.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  459.         
  460.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  461.         return; yield '';
  462.     }
  463.     /**
  464.      * @codeCoverageIgnore
  465.      */
  466.     public function getTemplateName(): string
  467.     {
  468.         return "themesWebsite/blog_cvs/articles/list.html.twig";
  469.     }
  470.     /**
  471.      * @codeCoverageIgnore
  472.      */
  473.     public function isTraitable(): bool
  474.     {
  475.         return false;
  476.     }
  477.     /**
  478.      * @codeCoverageIgnore
  479.      */
  480.     public function getDebugInfo(): array
  481.     {
  482.         return array (  508 => 177,  443 => 114,  440 => 113,  430 => 112,  416 => 107,  413 => 106,  398 => 104,  395 => 103,  392 => 102,  389 => 101,  387 => 100,  384 => 99,  381 => 98,  379 => 97,  376 => 96,  373 => 95,  371 => 94,  368 => 93,  366 => 92,  363 => 91,  359 => 90,  356 => 89,  353 => 88,  350 => 87,  348 => 86,  345 => 85,  342 => 84,  340 => 83,  337 => 82,  334 => 81,  332 => 80,  330 => 79,  327 => 78,  321 => 77,  318 => 76,  300 => 75,  298 => 74,  290 => 69,  285 => 66,  275 => 61,  269 => 60,  263 => 59,  259 => 57,  253 => 56,  247 => 52,  239 => 50,  237 => 49,  230 => 48,  228 => 47,  220 => 41,  214 => 39,  206 => 37,  204 => 36,  199 => 33,  195 => 32,  182 => 21,  176 => 20,  172 => 19,  164 => 13,  154 => 12,  143 => 9,  138 => 8,  128 => 7,  108 => 5,  88 => 4,  68 => 3,  45 => 1,);
  483.     }
  484.     public function getSourceContext(): Source
  485.     {
  486.         return new Source("{% extends 'themesWebsite/blog_cvs/base.html.twig' %}
  487. {% block title %}{{ page.shortTitle }}{% endblock title %}
  488. {% block description %}{{ page.shortDescription }}{% endblock description %}
  489. {% block robots %}{{ page.robots }}{% endblock robots %}
  490. {% block meta_social %}
  491.     {{ parent() }}
  492.     {% include \"/themesWebsite/blog_cpn/components/socialmedia.html.twig\" with { 'page':page,'social_type':'website' } %}
  493. {% endblock meta_social %}
  494. {% block body %}
  495.     <section class=\"bg-cover primary-bg-dark\" style=\"background:url(assets/img/bg2.png)no-repeat; margin-top:72px;\">
  496.         <div class=\"container\">
  497.             <div class=\"row\">
  498.                 <div class=\"col-lg-12 col-md-12\">
  499.                     <h2 class=\"ipt-title text-light\">{{ page.title|raw }}</h2>
  500.                     {% if page.description is not null %}<span class=\"ipn-subtitle text-light opacity-75\">{{ page.description|raw }}<</span>{% endif %}
  501.                 </div>
  502.             </div>
  503.         </div>
  504.     </section>
  505.     <section class=\"gray-simple\">
  506.         <div class=\"container\">
  507.             <div class=\"row gx-4 gy-4\">
  508.                 {% for article in pagination %}
  509.                 <div class=\"col-xl-4 col-lg-4 col-md-12 col-sm-12\">
  510.                     <div class=\"jobstock-grid-blog\">
  511.                         <div class=\"jobstock-grid-blog-thumb\">
  512.                             {% if article.image.name is not null %}
  513.                                 <img class=\"img-fluid\" src=\"{{ vich_uploader_asset(article, 'imageFile')|imagine_filter('articles_preview2') }}\" alt=\"{{ article.title }}\" loading=\"lazy\" />
  514.                             {% else %}
  515.                                 <img class=\"img-fluid\" src=\"/uploads/no_data.png\" loading=\"lazy\" alt=\"{{ article.title }}\" />
  516.                             {% endif %}
  517.                         </div>
  518.                         <div class=\"jobstock-grid-blog-body\">
  519.                             <div class=\"jobstock-grid-body-header\">
  520.                                 <div class=\"jobstock-grid-posted\"><span>26 Feb 2023</span></div>
  521.                                 <div class=\"jobstock-grid-title\">
  522.                                     <h4>
  523.                                         {% if article.type == \"article\" %}
  524.                                             <a href=\"{{ path('blog_article',{'slug': article.slug}) }}\">{{ article.title }}</a>
  525.                                         {% elseif article.type == \"fiche\" %}
  526.                                             <a href=\"{{ article.url }}\">{{ article.title }}</a>
  527.                                         {% endif %}
  528.                                     </h4>
  529.                                 </div>
  530.                             </div>
  531.                             <div class=\"jobstock-grid-body-middle\">
  532.                                 {% if article.subtitle is not empty %}<p>{{ article.subtitle }}</p>{% endif %}
  533.                             </div>
  534.                             <div class=\"jobstock-grid-body-footer\">
  535.                                 {% if article.type == \"article\" %}<a href=\"{{ path('blog_article',{'slug': article.slug}) }}\" class=\"btn btn-blog-link\">Lecture</a>
  536.                                 {% elseif article.type == \"fiche\" %}<a href=\"{{ article.url }}\" class=\"btn btn-blog-link\">Lecture</a>{% endif %}
  537.                             </div>
  538.                         </div>
  539.                     </div>
  540.                 </div>
  541.                 {% endfor %}
  542.             </div>
  543.             {{ knp_pagination_render(pagination,'components/pagination/pagination.html.twig') }}
  544.         </div>
  545.     </section>
  546.     {% if blocks is not empty %}
  547.         {% for block in blocks %}
  548.             {% if is_granted(\"ROLE_SUPER_ADMIN\") %}<div id='block_{{ block.id }}'>{% endif %}
  549.             {% if (block.onlyVisitor == true) and (block.visibilityUser == false)  and app.user is null %}
  550.                 {# VISITEUR #}
  551.                 {% include \"/themesWebsite/blog_cvs/components/pages/collections.html.twig\" with {'block':block,'newsletter':formNewsletter,'contact':form} %}
  552.             {% elseif (block.onlyVisitor == false) and (block.visibilityUser == true)  and app.user is not null %}
  553.                 {#  CONNECTE #}
  554.                 {% include \"/themesWebsite/blog_cvs/components/pages/collections.html.twig\" with {'block':block,'newsletter':formNewsletter,'contact':form} %}
  555.             {% elseif (block.onlyVisitor is null) and (block.visibilityUser is null) %}
  556.                 {#  VISITEUR + CONNECTE #}
  557.                 {% include \"/themesWebsite/blog_cvs/components/pages/collections.html.twig\" with {'block':block,'newsletter':formNewsletter,'contact':form} %}
  558.             {% endif %}
  559.             {% if is_granted(\"ROLE_SUPER_ADMIN\") %}</div>{% endif %}
  560.             {% if is_granted(\"ROLE_SUPER_ADMIN\") %}
  561.                 {% if (block.onlyVisitor == true) and (block.visibilityUser == false)  and app.user is null %}
  562.                     {# VISITEUR #}
  563.                     {% include \"/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig\" with {'block':block,'page':page} %}
  564.                 {% elseif (block.onlyVisitor == false) and (block.visibilityUser == true)  and app.user is not null %}
  565.                     {#  CONNECTE #}
  566.                     {% include \"/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig\" with {'block':block,'page':page} %}
  567.                 {% elseif (block.onlyVisitor is null) and (block.visibilityUser is null) %}
  568.                     {#  VISITEUR + CONNECTE #}
  569.                     {% include \"/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig\" with {'block':block,'page':page} %}
  570.                 {% endif %}
  571.             {% endif %}
  572.         {% endfor %}
  573.     {% endif %}
  574.     <div id=\"show_modal\"></div>
  575. {% endblock body %}
  576. {% block footer_js %}
  577.     {% if is_granted(\"ROLE_SUPER_ADMIN\") %}
  578.         <script>
  579.             function displayEdit(state) {
  580.                 \$(\".edit-spm\").each(function(i) {
  581.                     \$(this).css('display',state)
  582.                 });
  583.                 \$(\".edit-spmd\").each(function(i) {
  584.                     \$(this).css('display',state)
  585.                 });
  586.                 \$(\".edit-spmc\").each(function(i) {
  587.                     \$(this).css('display',state)
  588.                 });
  589.                 \$(\".edit-spmh\").each(function(i) {
  590.                     \$(this).css('display',state)
  591.                 });
  592.             }
  593.             var isCtrl = false;\$(document).keyup(function (e) {
  594.                 if(e.which == 17) isCtrl=false;
  595.             }).keydown(function (e) {
  596.                 if(e.which == 17) isCtrl=true;
  597.                 if(e.which == 66 && isCtrl == true) {
  598.                     var editDisplay = \$(\"#spm\").attr('editspm');
  599.                     if(editDisplay == \"1\") {
  600.                         displayEdit(\"none\");
  601.                         \$(\"#spm\").attr('editspm','0');
  602.                     } else {
  603.                         displayEdit(\"block\");
  604.                         \$(\"#spm\").attr('editspm','1');
  605.                     }
  606.                     return false;
  607.                 }
  608.             });
  609.             \$('.edit-spm').click(function (data) {
  610.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_cover',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  611.                     \$(\"#show_modal\").html(data2);
  612.                     \$(\"#modaldisplay\").modal('show');
  613.                 });
  614.             });
  615.             \$('.edit-spmd').click(function (data) {
  616.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_classic',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  617.                     \$(\"#show_modal\").html(data2);
  618.                     \$(\"#modaldisplay\").modal('show');
  619.                 });
  620.             });
  621.             \$('.edit-spmh').click(function (data) {
  622.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_html',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  623.                     \$(\"#show_modal\").html(data2);
  624.                     \$(\"#modaldisplay\").modal('show');
  625.                 });
  626.             });
  627.             \$('.edit-spmc').click(function (data) {
  628.                 \$.get(Routing.generate('bo_pageshasblocks_components_edit_custom',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
  629.                     \$(\"#show_modal\").html(data2);
  630.                     \$(\"#modaldisplay\").modal('show');
  631.                 });
  632.             });
  633.         </script>
  634.     {% endif %}
  635. {% endblock footer_js %}""themesWebsite/blog_cvs/articles/list.html.twig""/var/www/vhosts/whileresume.com/httpdocs/templates/themesWebsite/blog_cvs/articles/list.html.twig");
  636.     }
  637. }