<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* themesWebsite/blog_cvs/articles/list.html.twig */
class __TwigTemplate_624160205834541330e9e25491bec839 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'robots' => [$this, 'block_robots'],
'meta_social' => [$this, 'block_meta_social'],
'body' => [$this, 'block_body'],
'footer_js' => [$this, 'block_footer_js'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "themesWebsite/blog_cvs/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themesWebsite/blog_cvs/articles/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themesWebsite/blog_cvs/articles/list.html.twig"));
$this->parent = $this->loadTemplate("themesWebsite/blog_cvs/base.html.twig", "themesWebsite/blog_cvs/articles/list.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
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", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 4
public function block_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
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", false, false, false, 4), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_robots($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "robots"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "robots"));
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", false, false, false, 5), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 7
public function block_meta_social($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_social"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_social"));
// line 8
yield " ";
yield from $this->yieldParentBlock("meta_social", $context, $blocks);
yield "
";
// line 9
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"]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 12
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 13
yield "
<section class=\"bg-cover primary-bg-dark\" style=\"background:url(assets/img/bg2.png)no-repeat; margin-top:72px;\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12 col-md-12\">
<h2 class=\"ipt-title text-light\">";
// line 19
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", false, false, false, 19);
yield "</h2>
";
// line 20
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", false, false, false, 20))) {
yield "<span class=\"ipn-subtitle text-light opacity-75\">";
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", false, false, false, 20);
yield "<</span>";
}
// line 21
yield "
</div>
</div>
</div>
</section>
<section class=\"gray-simple\">
<div class=\"container\">
<div class=\"row gx-4 gy-4\">
";
// line 32
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 33
yield " <div class=\"col-xl-4 col-lg-4 col-md-12 col-sm-12\">
<div class=\"jobstock-grid-blog\">
<div class=\"jobstock-grid-blog-thumb\">
";
// line 36
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "image", [], "any", false, false, false, 36), "name", [], "any", false, false, false, 36))) {
// line 37
yield " <img class=\"img-fluid\" src=\"";
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", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 37), "html", null, true);
yield "\" loading=\"lazy\" />
";
} else {
// line 39
yield " <img class=\"img-fluid\" src=\"/uploads/no_data.png\" loading=\"lazy\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 39), "html", null, true);
yield "\" />
";
}
// line 41
yield " </div>
<div class=\"jobstock-grid-blog-body\">
<div class=\"jobstock-grid-body-header\">
<div class=\"jobstock-grid-posted\"><span>26 Feb 2023</span></div>
<div class=\"jobstock-grid-title\">
<h4>
";
// line 47
if ((CoreExtension::getAttribute($this->env, $this->source, $context["article"], "type", [], "any", false, false, false, 47) == "article")) {
// line 48
yield " <a href=\"";
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", false, false, false, 48)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 48), "html", null, true);
yield "</a>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 49
$context["article"], "type", [], "any", false, false, false, 49) == "fiche")) {
// line 50
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, false, 50), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 50), "html", null, true);
yield "</a>
";
}
// line 52
yield " </h4>
</div>
</div>
<div class=\"jobstock-grid-body-middle\">
";
// line 56
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "subtitle", [], "any", false, false, false, 56))) {
yield "<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "subtitle", [], "any", false, false, false, 56), "html", null, true);
yield "</p>";
}
// line 57
yield " </div>
<div class=\"jobstock-grid-body-footer\">
";
// line 59
if ((CoreExtension::getAttribute($this->env, $this->source, $context["article"], "type", [], "any", false, false, false, 59) == "article")) {
yield "<a href=\"";
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", false, false, false, 59)]), "html", null, true);
yield "\" class=\"btn btn-blog-link\">Lecture</a>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 60
$context["article"], "type", [], "any", false, false, false, 60) == "fiche")) {
yield "<a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, false, 60), "html", null, true);
yield "\" class=\"btn btn-blog-link\">Lecture</a>";
}
// line 61
yield " </div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
yield "
</div>
";
// line 69
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");
yield "
</div>
</section>
";
// line 74
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); })()))) {
// line 75
yield " ";
$context['_parent'] = $context;
$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); })()));
$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["block"]) {
// line 76
yield "
";
// line 77
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
yield "<div id='block_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["block"], "id", [], "any", false, false, false, 77), "html", null, true);
yield "'>";
}
// line 78
yield "
";
// line 79
if ((((CoreExtension::getAttribute($this->env, $this->source, $context["block"], "onlyVisitor", [], "any", false, false, false, 79) == true) && (CoreExtension::getAttribute($this->env, $this->source, $context["block"], "visibilityUser", [], "any", false, false, false, 79) == 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", false, false, false, 79)))) {
// line 80
yield " ";
// line 81
yield " ";
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); })())]));
// line 82
yield " ";
} elseif ((((CoreExtension::getAttribute($this->env, $this->source, $context["block"], "onlyVisitor", [], "any", false, false, false, 82) == false) && (CoreExtension::getAttribute($this->env, $this->source, $context["block"], "visibilityUser", [], "any", false, false, false, 82) == 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", false, false, false, 82)))) {
// line 83
yield " ";
// line 84
yield " ";
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); })())]));
// line 85
yield " ";
} elseif (((null === CoreExtension::getAttribute($this->env, $this->source, $context["block"], "onlyVisitor", [], "any", false, false, false, 85)) && (null === CoreExtension::getAttribute($this->env, $this->source, $context["block"], "visibilityUser", [], "any", false, false, false, 85)))) {
// line 86
yield " ";
// line 87
yield " ";
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); })())]));
// line 88
yield " ";
}
// line 89
yield "
";
// line 90
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
yield "</div>";
}
// line 91
yield "
";
// line 92
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
// line 93
yield " ";
if ((((CoreExtension::getAttribute($this->env, $this->source, $context["block"], "onlyVisitor", [], "any", false, false, false, 93) == true) && (CoreExtension::getAttribute($this->env, $this->source, $context["block"], "visibilityUser", [], "any", false, false, false, 93) == 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", false, false, false, 93)))) {
// line 94
yield " ";
// line 95
yield " ";
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); })())]));
// line 96
yield " ";
} elseif ((((CoreExtension::getAttribute($this->env, $this->source, $context["block"], "onlyVisitor", [], "any", false, false, false, 96) == false) && (CoreExtension::getAttribute($this->env, $this->source, $context["block"], "visibilityUser", [], "any", false, false, false, 96) == 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", false, false, false, 96)))) {
// line 97
yield " ";
// line 98
yield " ";
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); })())]));
// line 99
yield " ";
} elseif (((null === CoreExtension::getAttribute($this->env, $this->source, $context["block"], "onlyVisitor", [], "any", false, false, false, 99)) && (null === CoreExtension::getAttribute($this->env, $this->source, $context["block"], "visibilityUser", [], "any", false, false, false, 99)))) {
// line 100
yield " ";
// line 101
yield " ";
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); })())]));
// line 102
yield " ";
}
// line 103
yield " ";
}
// line 104
yield "
";
++$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['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
yield " ";
}
// line 107
yield "
<div id=\"show_modal\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 112
public function block_footer_js($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_js"));
// line 113
yield " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPER_ADMIN")) {
// line 114
yield " <script>
function displayEdit(state) {
\$(\".edit-spm\").each(function(i) {
\$(this).css('display',state)
});
\$(\".edit-spmd\").each(function(i) {
\$(this).css('display',state)
});
\$(\".edit-spmc\").each(function(i) {
\$(this).css('display',state)
});
\$(\".edit-spmh\").each(function(i) {
\$(this).css('display',state)
});
}
var isCtrl = false;\$(document).keyup(function (e) {
if(e.which == 17) isCtrl=false;
}).keydown(function (e) {
if(e.which == 17) isCtrl=true;
if(e.which == 66 && isCtrl == true) {
var editDisplay = \$(\"#spm\").attr('editspm');
if(editDisplay == \"1\") {
displayEdit(\"none\");
\$(\"#spm\").attr('editspm','0');
} else {
displayEdit(\"block\");
\$(\"#spm\").attr('editspm','1');
}
return false;
}
});
\$('.edit-spm').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_cover',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
\$('.edit-spmd').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_classic',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
\$('.edit-spmh').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_html',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
\$('.edit-spmc').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_custom',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
</script>
";
}
// line 177
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "themesWebsite/blog_cvs/articles/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'themesWebsite/blog_cvs/base.html.twig' %}
{% block title %}{{ page.shortTitle }}{% endblock title %}
{% block description %}{{ page.shortDescription }}{% endblock description %}
{% block robots %}{{ page.robots }}{% endblock robots %}
{% block meta_social %}
{{ parent() }}
{% include \"/themesWebsite/blog_cpn/components/socialmedia.html.twig\" with { 'page':page,'social_type':'website' } %}
{% endblock meta_social %}
{% block body %}
<section class=\"bg-cover primary-bg-dark\" style=\"background:url(assets/img/bg2.png)no-repeat; margin-top:72px;\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12 col-md-12\">
<h2 class=\"ipt-title text-light\">{{ page.title|raw }}</h2>
{% if page.description is not null %}<span class=\"ipn-subtitle text-light opacity-75\">{{ page.description|raw }}<</span>{% endif %}
</div>
</div>
</div>
</section>
<section class=\"gray-simple\">
<div class=\"container\">
<div class=\"row gx-4 gy-4\">
{% for article in pagination %}
<div class=\"col-xl-4 col-lg-4 col-md-12 col-sm-12\">
<div class=\"jobstock-grid-blog\">
<div class=\"jobstock-grid-blog-thumb\">
{% if article.image.name is not null %}
<img class=\"img-fluid\" src=\"{{ vich_uploader_asset(article, 'imageFile')|imagine_filter('articles_preview2') }}\" alt=\"{{ article.title }}\" loading=\"lazy\" />
{% else %}
<img class=\"img-fluid\" src=\"/uploads/no_data.png\" loading=\"lazy\" alt=\"{{ article.title }}\" />
{% endif %}
</div>
<div class=\"jobstock-grid-blog-body\">
<div class=\"jobstock-grid-body-header\">
<div class=\"jobstock-grid-posted\"><span>26 Feb 2023</span></div>
<div class=\"jobstock-grid-title\">
<h4>
{% if article.type == \"article\" %}
<a href=\"{{ path('blog_article',{'slug': article.slug}) }}\">{{ article.title }}</a>
{% elseif article.type == \"fiche\" %}
<a href=\"{{ article.url }}\">{{ article.title }}</a>
{% endif %}
</h4>
</div>
</div>
<div class=\"jobstock-grid-body-middle\">
{% if article.subtitle is not empty %}<p>{{ article.subtitle }}</p>{% endif %}
</div>
<div class=\"jobstock-grid-body-footer\">
{% if article.type == \"article\" %}<a href=\"{{ path('blog_article',{'slug': article.slug}) }}\" class=\"btn btn-blog-link\">Lecture</a>
{% elseif article.type == \"fiche\" %}<a href=\"{{ article.url }}\" class=\"btn btn-blog-link\">Lecture</a>{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{{ knp_pagination_render(pagination,'components/pagination/pagination.html.twig') }}
</div>
</section>
{% if blocks is not empty %}
{% for block in blocks %}
{% if is_granted(\"ROLE_SUPER_ADMIN\") %}<div id='block_{{ block.id }}'>{% endif %}
{% if (block.onlyVisitor == true) and (block.visibilityUser == false) and app.user is null %}
{# VISITEUR #}
{% include \"/themesWebsite/blog_cvs/components/pages/collections.html.twig\" with {'block':block,'newsletter':formNewsletter,'contact':form} %}
{% elseif (block.onlyVisitor == false) and (block.visibilityUser == true) and app.user is not null %}
{# CONNECTE #}
{% include \"/themesWebsite/blog_cvs/components/pages/collections.html.twig\" with {'block':block,'newsletter':formNewsletter,'contact':form} %}
{% elseif (block.onlyVisitor is null) and (block.visibilityUser is null) %}
{# VISITEUR + CONNECTE #}
{% include \"/themesWebsite/blog_cvs/components/pages/collections.html.twig\" with {'block':block,'newsletter':formNewsletter,'contact':form} %}
{% endif %}
{% if is_granted(\"ROLE_SUPER_ADMIN\") %}</div>{% endif %}
{% if is_granted(\"ROLE_SUPER_ADMIN\") %}
{% if (block.onlyVisitor == true) and (block.visibilityUser == false) and app.user is null %}
{# VISITEUR #}
{% include \"/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig\" with {'block':block,'page':page} %}
{% elseif (block.onlyVisitor == false) and (block.visibilityUser == true) and app.user is not null %}
{# CONNECTE #}
{% include \"/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig\" with {'block':block,'page':page} %}
{% elseif (block.onlyVisitor is null) and (block.visibilityUser is null) %}
{# VISITEUR + CONNECTE #}
{% include \"/themesWebsite/blog_cvs/components/pages/block_superadmin.html.twig\" with {'block':block,'page':page} %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<div id=\"show_modal\"></div>
{% endblock body %}
{% block footer_js %}
{% if is_granted(\"ROLE_SUPER_ADMIN\") %}
<script>
function displayEdit(state) {
\$(\".edit-spm\").each(function(i) {
\$(this).css('display',state)
});
\$(\".edit-spmd\").each(function(i) {
\$(this).css('display',state)
});
\$(\".edit-spmc\").each(function(i) {
\$(this).css('display',state)
});
\$(\".edit-spmh\").each(function(i) {
\$(this).css('display',state)
});
}
var isCtrl = false;\$(document).keyup(function (e) {
if(e.which == 17) isCtrl=false;
}).keydown(function (e) {
if(e.which == 17) isCtrl=true;
if(e.which == 66 && isCtrl == true) {
var editDisplay = \$(\"#spm\").attr('editspm');
if(editDisplay == \"1\") {
displayEdit(\"none\");
\$(\"#spm\").attr('editspm','0');
} else {
displayEdit(\"block\");
\$(\"#spm\").attr('editspm','1');
}
return false;
}
});
\$('.edit-spm').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_cover',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
\$('.edit-spmd').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_classic',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
\$('.edit-spmh').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_html',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
\$('.edit-spmc').click(function (data) {
\$.get(Routing.generate('bo_pageshasblocks_components_edit_custom',{'page':\$(this).attr('page'),'id':\$(this).attr('item')})).done(function(data2) {
\$(\"#show_modal\").html(data2);
\$(\"#modaldisplay\").modal('show');
});
});
</script>
{% endif %}
{% endblock footer_js %}", "themesWebsite/blog_cvs/articles/list.html.twig", "/var/www/vhosts/whileresume.com/httpdocs/templates/themesWebsite/blog_cvs/articles/list.html.twig");
}
}