<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* ./actualite/article.html.twig */
class __TwigTemplate_20a4b638b9da5a901c8a8c0cf24a48ea extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((isset($context["base"]) || array_key_exists("base", $context) ? $context["base"] : (function () { throw new RuntimeError('Variable "base" does not exist.', 1, $this->source); })()), "./actualite/article.html.twig", 1);
}
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", "./actualite/article.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "./actualite/article.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"/assets/css/article.css\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 12
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
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 21
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
<div class=\"backgroundheaderArticle\">
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 30
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 31
echo " ";
$this->displayParentBlock("content", $context, $blocks);
echo "
<script src=\"/assets/js/article.js\"></script>
<div class=\"container row all\">
<div class= \"col-lg-9 leftcolumn\">
<div class=\"headerblog\">
<h1 id=\"title\">";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 41, $this->source); })()), "title", [], "any", false, false, false, 41), "html", null, true);
echo "</h1>
<h2 id=\"subtitle\">";
// line 42
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 42, $this->source); })()), "subtitle", [], "any", false, false, false, 42), "html", null, true);
echo "</h2>
<img src=\"";
// line 43
echo twig_escape_filter($this->env, (isset($context["BASE_API"]) || array_key_exists("BASE_API", $context) ? $context["BASE_API"] : (function () { throw new RuntimeError('Variable "BASE_API" does not exist.', 43, $this->source); })()), "html", null, true);
echo "article/image/";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 43, $this->source); })()), "html", null, true);
echo "\" style=\"width: 100%;margin-bottom:15px;\">
</div>
<div class=\"contentblog\">
";
// line 47
echo twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 47, $this->source); })()), "texte", [], "any", false, false, false, 47);
echo "
</div>
<div class=\"footerblog\">
<p>Publié: ";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 50, $this->source); })()), "publication_date", [], "any", false, false, false, 50), "medium", "medium", "d MMMM Y", null, "gregorian", "fr"), "html", null, true);
echo "</p>
<p>Source: <a href=\"http://";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 51, $this->source); })()), "source", [], "any", false, false, false, 51), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 51, $this->source); })()), "source", [], "any", false, false, false, 51), "html", null, true);
echo "</a></p>
</div>
</div>
<div class= \"col-lg-3 rigthcolumn\">
<div class=\"sticky\">
<div class=\"lastarticle\">
<p class=\"titlepart\">À lire aussi</p>
";
// line 58
$context["i"] = 0;
// line 59
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 59, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["arti"]) {
// line 60
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["arti"], "id", [], "any", false, false, false, 60) != (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 60, $this->source); })())) && ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 60, $this->source); })()) < 3))) {
// line 61
echo " <a href=\"/actualite-de-l-audition/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["arti"], "slug", [], "any", false, false, false, 61), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["arti"], "title", [], "any", false, false, false, 61), "html", null, true);
echo "</a>
";
// line 62
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 62, $this->source); })()) + 1);
// line 63
echo " ";
}
// line 64
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['arti'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </div>
<div class=\"categories\">
<p class=\"titlepart\">Catégories</p>
";
// line 68
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 68, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
// line 69
echo " <a href=\"/actualite?filtre='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 69), "html", null, true);
echo "'\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "title", [], "any", false, false, false, 69), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " </div>
<div class=\"action\">
";
// line 74
if (((isset($context["pro"]) || array_key_exists("pro", $context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.', 74, $this->source); })()) == "false")) {
// line 75
echo " <button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Tester votre audition</button>
<button type=\"button\" class=\"btn btn-bleu btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Prendre rendez-vous</button>
";
} else {
// line 78
echo " <button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\" style=\"padding:5px 30px;\" onclick=\"location.href='/pro/inscription';\">S'inscrire</button>
";
}
// line 79
echo "
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "./actualite/article.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 268 => 79, 264 => 78, 259 => 75, 257 => 74, 252 => 71, 241 => 69, 237 => 68, 232 => 65, 226 => 64, 223 => 63, 221 => 62, 214 => 61, 211 => 60, 206 => 59, 204 => 58, 192 => 51, 188 => 50, 182 => 47, 173 => 43, 169 => 42, 165 => 41, 151 => 31, 141 => 30, 122 => 21, 112 => 20, 95 => 12, 85 => 11, 70 => 4, 60 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source(" {% extends base %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"/assets/css/article.css\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
{% endblock %}
{% block body %}
{{ parent() }}
<div class=\"backgroundheaderArticle\">
</div>
{% endblock %}
{% block content %}
{{ parent() }}
<script src=\"/assets/js/article.js\"></script>
<div class=\"container row all\">
<div class= \"col-lg-9 leftcolumn\">
<div class=\"headerblog\">
<h1 id=\"title\">{{article.title}}</h1>
<h2 id=\"subtitle\">{{article.subtitle}}</h2>
<img src=\"{{BASE_API}}article/image/{{id}}\" style=\"width: 100%;margin-bottom:15px;\">
</div>
<div class=\"contentblog\">
{{article.texte |raw}}
</div>
<div class=\"footerblog\">
<p>Publié: {{article.publication_date |format_datetime(pattern=\"d MMMM Y\",locale='fr')}}</p>
<p>Source: <a href=\"http://{{article.source}}\">{{article.source}}</a></p>
</div>
</div>
<div class= \"col-lg-3 rigthcolumn\">
<div class=\"sticky\">
<div class=\"lastarticle\">
<p class=\"titlepart\">À lire aussi</p>
{% set i=0 %}
{% for arti in articles %}
{% if arti.id != id and i<3 %}
<a href=\"/actualite-de-l-audition/{{arti.slug}}\">{{arti.title}}</a>
{% set i=i+1 %}
{% endif %}
{% endfor %}
</div>
<div class=\"categories\">
<p class=\"titlepart\">Catégories</p>
{% for cat in category %}
<a href=\"/actualite?filtre='{{cat.id}}'\">{{cat.title}}</a>
{% endfor %}
</div>
<div class=\"action\">
{% if pro == \"false\" %}
<button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Tester votre audition</button>
<button type=\"button\" class=\"btn btn-bleu btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Prendre rendez-vous</button>
{% else %}
<button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\" style=\"padding:5px 30px;\" onclick=\"location.href='/pro/inscription';\">S'inscrire</button>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}", "./actualite/article.html.twig", "/var/www/my-audio-site/templates/actualite/article.html.twig");
}
}