<?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;
/* front/blog/article.html.twig */
class __TwigTemplate_6a5c10fee962ed321863a7b4c38780aa extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'seo' => [$this, 'block_seo'],
'og' => [$this, 'block_og'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front/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", "front/blog/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", "front/blog/article.html.twig"));
$this->parent = $this->loadTemplate("front/base.html.twig", "front/blog/article.html.twig", 1);
$this->parent->display($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"));
// line 4
echo " ";
if (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.', 4, $this->source); })()), "titleSeo", [], "any", false, false, false, 4)) {
// line 5
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.', 5, $this->source); })()), "titleSeo", [], "any", false, false, false, 5), "html", null, true);
echo "
";
} else {
// line 7
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.', 7, $this->source); })()), "title", [], "any", false, false, false, 7), "html", null, true);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_seo($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", "seo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 12
echo " <meta name=\"description\" content=\"";
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.', 12, $this->source); })()), "descriptionSeo", [], "any", false, false, false, 12), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_og($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", "og"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og"));
// line 16
echo " <meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"";
// line 17
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.', 17, $this->source); })()), "titleSeo", [], "any", false, false, false, 17), "html", null, true);
echo "\" />
<meta property=\"og:image\" content=\"";
// line 18
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage_no_locale");
echo "images/blog/";
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.', 18, $this->source); })()), "cover", [], "any", false, false, false, 18), "html", null, true);
echo "\"/>
<meta property=\"og:description\" content=\"";
// line 19
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.', 19, $this->source); })()), "descriptionSeo", [], "any", false, false, false, 19), "html", null, true);
echo "\"/>
<meta property=\"og:site_name\" content=\"Racket Trip\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 23
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 24
echo "
\t<section class=\"first-section single-article\">
<div class=\"cover\" style=\"background-image : url('/images/blog/";
// line 26
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.', 26, $this->source); })()), "cover", [], "any", false, false, false, 26), "html", null, true);
echo "')\" title=\"";
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.', 26, $this->source); })()), "altCover", [], "any", false, false, false, 26), "html", null, true);
echo "\">
<div class=\"title-wrap\">
<h1 class=\"title\">";
// line 28
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.', 28, $this->source); })()), "title", [], "any", false, false, false, 28);
echo "</h1>
</div>
</div>
\t\t<div class=\"container\">
<div class=\"row\">
<div class=\"content-col\">
<div class=\"blog-content\">
<div class=\"categories\">
";
// line 37
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 37, $this->source); })()), "categories", [], "any", false, false, false, 37));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 38
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_category", ["slug" => twig_get_attribute($this->env, $this->source, $context["category"], "slug", [], "any", false, false, false, 38)]), "html", null, true);
echo "\" class=\"category-link\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "title", [], "any", false, false, false, 38), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo " ";
if (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.', 40, $this->source); })()), "author", [], "any", false, false, false, 40)) {
// line 41
echo " <span class=\"category-link\">";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, 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); })()), "author", [], "any", false, false, false, 41), "firstname", [], "any", false, false, false, 41) . " ") . twig_get_attribute($this->env, $this->source, 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); })()), "author", [], "any", false, false, false, 41), "lastname", [], "any", false, false, false, 41)), "html", null, true);
echo "</span>
";
}
// line 43
echo " <span class=\"category-link\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.published_ad"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_date_format_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.', 43, $this->source); })()), "publishedAt", [], "any", false, false, false, 43), "d/m/Y"), "html", null, true);
echo "</span>
</div>
";
// line 46
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.', 46, $this->source); })()), "description", [], "any", false, false, false, 46);
echo "
</div>
";
// line 50
if (((isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 50, $this->source); })()) == false)) {
// line 51
echo "
<div class=\"comments\">
<div class=\"main-title\">
<h1 class=\"title-text\">";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("backoffice.comments"), "html", null, true);
echo "</h1>
</div>
";
// line 57
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 57, $this->source); })()), "comments", [], "any", false, false, false, 57));
foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
// line 58
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["comment"], "activated", [], "any", false, false, false, 58)) {
// line 59
echo "
<div class=\"comment-item\">
<h4 class=\"author\">";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["comment"], "name", [], "any", false, false, false, 61), "html", null, true);
echo "</h4>
<span class=\"date\">";
// line 62
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["comment"], "createdAt", [], "any", false, false, false, 62), "d/m/Y"), "html", null, true);
echo "</span>
<p class=\"comment-text\">";
// line 63
echo twig_get_attribute($this->env, $this->source, $context["comment"], "message", [], "any", false, false, false, 63);
echo "</p>
</div>
";
}
// line 67
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
echo "
<div class=\"actions mt-3\">
<button class=\"btn main-btn btn-sm mx-auto\" data-toggle=\"modal\" data-target=\"#comment-modal\">";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.comment"), "html", null, true);
echo "</button>
</div>
</div>
";
}
// line 76
echo "
</div>
<div class=\"blog-sidebar\">
<div class=\"sidebar-content\">
<div class=\"share-card\">
<h5 class=\"title\">";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.share"), "html", null, true);
echo "</h5>
<div class=\"share-buttons\">
<a class=\"sharer\" target=\"_blank\" href=\"http://www.facebook.com/share.php?u=";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("show_article", ["slug" => 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.', 83, $this->source); })()), "slug", [], "any", false, false, false, 83)]), "html", null, true);
echo "&title=";
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.', 83, $this->source); })()), "title", [], "any", false, false, false, 83), "html", null, true);
echo "\">
<i class=\"fab fa-facebook-f\"></i>
</a>
<a class=\"sharer\" target=\"_blank\" href=\"https://twitter.com/intent/tweet?text=";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("show_article", ["slug" => 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.', 86, $this->source); })()), "slug", [], "any", false, false, false, 86)]), "html", null, true);
echo "\">
<i class=\"fab fa-x-twitter\"></i>
</a>
<a class=\"sharer\" target=\"_blank\" href=\"http://www.linkedin.com/shareArticle?mini=true&url=";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("show_article", ["slug" => 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.', 89, $this->source); })()), "slug", [], "any", false, false, false, 89)]), "html", null, true);
echo "&title=";
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.', 89, $this->source); })()), "title", [], "any", false, false, false, 89), "html", null, true);
echo "\">
<i class=\"fab fa-linkedin-in\"></i>
</a>
</div>
</div>
<div class=\"more-articles\">
";
// line 97
if (((isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 97, $this->source); })()) == false)) {
// line 98
echo " <h5 class=\"title\" >";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.more_articles"), "html", null, true);
echo "</h5>
<div class=\"row\">
";
// line 100
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["moreArticles"]) || array_key_exists("moreArticles", $context) ? $context["moreArticles"] : (function () { throw new RuntimeError('Variable "moreArticles" does not exist.', 100, $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["article"]) {
// line 101
echo " <div class=\"col-12 blog-col\">
";
// line 102
$this->loadTemplate("front/blog/_blog-card.html.twig", "front/blog/article.html.twig", 102)->display($context);
// line 103
echo " </div>
";
++$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['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
echo " </div>
";
}
// line 107
echo "
</div>
</div>
</div>
</div>
\t\t</div>
\t</section>
";
// line 115
if (array_key_exists("form", $context)) {
// line 116
echo " <!-- Comment Modal -->
<div class=\"modal fade bd-example-modal-lg\" id=\"comment-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"commentModalTitle\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
";
// line 121
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 121, $this->source); })()), 'form_start');
echo "
<div class=\"modal-body\">
<div class=\"modal-title-wrap\">
<h5 class=\"modal-title\">";
// line 125
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.comment"), "html", null, true);
echo "</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<i class=\"fal fa-times\"></i>
</button>
</div>
<div class=\"row\">
<div class=\"col-12\">
";
// line 132
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 132, $this->source); })()), "name", [], "any", false, false, false, 132), 'row');
echo "
";
// line 133
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 133, $this->source); })()), "email", [], "any", false, false, false, 133), 'row');
echo "
";
// line 134
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 134, $this->source); })()), "website", [], "any", false, false, false, 134), 'widget');
echo "
";
// line 135
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 135, $this->source); })()), "message", [], "any", false, false, false, 135), 'row');
echo "
</div>
</div>
<div class=\"row mt-3\">
<div class=\"col-md-12\">
<button type=\"submit\" class=\"btn main-btn m-auto\">";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.send_button"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
// line 147
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 147, $this->source); })()), 'form_end');
echo "
</div>
</div>
</div>
";
}
// line 153
echo "
";
// line 154
$this->loadTemplate("front/blog/_blog-cta.html.twig", "front/blog/article.html.twig", 154)->display($context);
// line 155
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/blog/article.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 452 => 155, 450 => 154, 447 => 153, 438 => 147, 429 => 141, 420 => 135, 416 => 134, 412 => 133, 408 => 132, 398 => 125, 391 => 121, 384 => 116, 382 => 115, 372 => 107, 368 => 105, 353 => 103, 351 => 102, 348 => 101, 331 => 100, 325 => 98, 323 => 97, 310 => 89, 304 => 86, 296 => 83, 291 => 81, 284 => 76, 275 => 70, 271 => 68, 265 => 67, 258 => 63, 254 => 62, 250 => 61, 246 => 59, 243 => 58, 239 => 57, 233 => 54, 228 => 51, 226 => 50, 219 => 46, 210 => 43, 204 => 41, 201 => 40, 190 => 38, 186 => 37, 174 => 28, 167 => 26, 163 => 24, 153 => 23, 140 => 19, 134 => 18, 130 => 17, 127 => 16, 117 => 15, 104 => 12, 94 => 11, 80 => 7, 74 => 5, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/base.html.twig\" %}
{% block title %}
{% if article.titleSeo %}
{{ article.titleSeo }}
{% else %}
{{ article.title }}
{% endif %}
{% endblock %}
{% block seo %}
<meta name=\"description\" content=\"{{ article.descriptionSeo }}\">
{% endblock %}
{% block og %}
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"{{ article.titleSeo }}\" />
<meta property=\"og:image\" content=\"{{ url('homepage_no_locale') }}images/blog/{{ article.cover }}\"/>
<meta property=\"og:description\" content=\"{{ article.descriptionSeo }}\"/>
<meta property=\"og:site_name\" content=\"Racket Trip\"/>
{% endblock %}
{% block body %}
\t<section class=\"first-section single-article\">
<div class=\"cover\" style=\"background-image : url('/images/blog/{{ article.cover }}')\" title=\"{{ article.altCover }}\">
<div class=\"title-wrap\">
<h1 class=\"title\">{{ article.title | raw }}</h1>
</div>
</div>
\t\t<div class=\"container\">
<div class=\"row\">
<div class=\"content-col\">
<div class=\"blog-content\">
<div class=\"categories\">
{% for category in article.categories %}
<a href=\"{{ path('article_category', {'slug': category.slug}) }}\" class=\"category-link\">{{ category.title }}</a>
{% endfor %}
{% if article.author %}
<span class=\"category-link\">{{ article.author.firstname ~ ' ' ~ article.author.lastname }}</span>
{% endif %}
<span class=\"category-link\">{{ 'article.published_ad' | trans }} {{ article.publishedAt | date('d/m/Y') }}</span>
</div>
{{ article.description | raw }}
</div>
{% if preview == false %}
<div class=\"comments\">
<div class=\"main-title\">
<h1 class=\"title-text\">{{ \"backoffice.comments\" | trans }}</h1>
</div>
{% for comment in article.comments %}
{% if comment.activated %}
<div class=\"comment-item\">
<h4 class=\"author\">{{ comment.name }}</h4>
<span class=\"date\">{{ comment.createdAt | date('d/m/Y') }}</span>
<p class=\"comment-text\">{{ comment.message | raw }}</p>
</div>
{% endif %}
{% endfor %}
<div class=\"actions mt-3\">
<button class=\"btn main-btn btn-sm mx-auto\" data-toggle=\"modal\" data-target=\"#comment-modal\">{{ 'article.comment' | trans }}</button>
</div>
</div>
{% endif %}
</div>
<div class=\"blog-sidebar\">
<div class=\"sidebar-content\">
<div class=\"share-card\">
<h5 class=\"title\">{{ 'article.share' | trans }}</h5>
<div class=\"share-buttons\">
<a class=\"sharer\" target=\"_blank\" href=\"http://www.facebook.com/share.php?u={{ url('show_article', {'slug': article.slug}) }}&title={{ article.title }}\">
<i class=\"fab fa-facebook-f\"></i>
</a>
<a class=\"sharer\" target=\"_blank\" href=\"https://twitter.com/intent/tweet?text={{ url('show_article', {'slug': article.slug}) }}\">
<i class=\"fab fa-x-twitter\"></i>
</a>
<a class=\"sharer\" target=\"_blank\" href=\"http://www.linkedin.com/shareArticle?mini=true&url={{ url('show_article', {'slug': article.slug}) }}&title={{ article.title }}\">
<i class=\"fab fa-linkedin-in\"></i>
</a>
</div>
</div>
<div class=\"more-articles\">
{% if preview == false %}
<h5 class=\"title\" >{{ 'article.more_articles' | trans }}</h5>
<div class=\"row\">
{% for article in moreArticles %}
<div class=\"col-12 blog-col\">
{% include \"front/blog/_blog-card.html.twig\" %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
\t\t</div>
\t</section>
{% if form is defined %}
<!-- Comment Modal -->
<div class=\"modal fade bd-example-modal-lg\" id=\"comment-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"commentModalTitle\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
{{ form_start(form) }}
<div class=\"modal-body\">
<div class=\"modal-title-wrap\">
<h5 class=\"modal-title\">{{ 'article.comment' | trans }}</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<i class=\"fal fa-times\"></i>
</button>
</div>
<div class=\"row\">
<div class=\"col-12\">
{{ form_row(form.name) }}
{{ form_row(form.email) }}
{{ form_widget(form.website) }}
{{ form_row(form.message) }}
</div>
</div>
<div class=\"row mt-3\">
<div class=\"col-md-12\">
<button type=\"submit\" class=\"btn main-btn m-auto\">{{ 'article.send_button' | trans }}</button>
</div>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
{% endif %}
{% include \"front/blog/_blog-cta.html.twig\" %}
{% endblock %}", "front/blog/article.html.twig", "/var/www/preprod/racket-trip/templates/front/blog/article.html.twig");
}
}