var/cache/dev/twig/6c/6ca734e28c602f82f49c554f0de4ddbd.php line 153

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/blog/article.html.twig */
  14. class __TwigTemplate_6a5c10fee962ed321863a7b4c38780aa extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'seo' => [$this'block_seo'],
  25.             'og' => [$this'block_og'],
  26.             'body' => [$this'block_body'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "front/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/article.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/article.html.twig"));
  41.         $this->parent $this->loadTemplate("front/base.html.twig""front/blog/article.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         // line 4
  57.         echo "    ";
  58.         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"falsefalsefalse4)) {
  59.             // line 5
  60.             echo "        ";
  61.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse5), "html"nulltrue);
  62.             echo "
  63.     ";
  64.         } else {
  65.             // line 7
  66.             echo "        ";
  67.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), "html"nulltrue);
  68.             echo "
  69.     ";
  70.         }
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.     }
  76.     // line 11
  77.     public function block_seo($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  84.         // line 12
  85.         echo "    <meta name=\"description\" content=\"";
  86.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse12), "html"nulltrue);
  87.         echo "\">
  88. ";
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.     }
  94.     // line 15
  95.     public function block_og($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og"));
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og"));
  102.         // line 16
  103.         echo "    <meta property=\"og:type\" content=\"website\" />
  104.     <meta property=\"og:title\" content=\"";
  105.         // line 17
  106.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  107.         echo "\" />
  108.     <meta property=\"og:image\" content=\"";
  109.         // line 18
  110.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage_no_locale");
  111.         echo "images/blog/";
  112.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse18), "html"nulltrue);
  113.         echo "\"/>
  114.     <meta property=\"og:description\" content=\"";
  115.         // line 19
  116.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse19), "html"nulltrue);
  117.         echo "\"/>
  118.     <meta property=\"og:site_name\" content=\"Racket Trip\"/>
  119. ";
  120.         
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122.         
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  124.     }
  125.     // line 23
  126.     public function block_body($context, array $blocks = [])
  127.     {
  128.         $macros $this->macros;
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  133.         // line 24
  134.         echo "
  135. \t<section class=\"first-section single-article\">
  136.         <div class=\"cover\" style=\"background-image : url('/images/blog/";
  137.         // line 26
  138.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse26), "html"nulltrue);
  139.         echo "')\" title=\"";
  140.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse26), "html"nulltrue);
  141.         echo "\">
  142.             <div class=\"title-wrap\">
  143.                 <h1 class=\"title\">";
  144.         // line 28
  145.         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"falsefalsefalse28);
  146.         echo "</h1>
  147.             </div>
  148.         </div>
  149. \t\t<div class=\"container\">
  150.             <div class=\"row\">
  151.                 <div class=\"content-col\">
  152.                     <div class=\"blog-content\">
  153.                         <div class=\"categories\">
  154.                             ";
  155.         // line 37
  156.         $context['_parent'] = $context;
  157.         $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"falsefalsefalse37));
  158.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  159.             // line 38
  160.             echo "                                <a href=\"";
  161.             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"falsefalsefalse38)]), "html"nulltrue);
  162.             echo "\" class=\"category-link\">";
  163.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "title", [], "any"falsefalsefalse38), "html"nulltrue);
  164.             echo "</a>
  165.                             ";
  166.         }
  167.         $_parent $context['_parent'];
  168.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  169.         $context array_intersect_key($context$_parent) + $_parent;
  170.         // line 40
  171.         echo "                            ";
  172.         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"falsefalsefalse40)) {
  173.             // line 41
  174.             echo "                            <span class=\"category-link\">";
  175.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse41), "firstname", [], "any"falsefalsefalse41) . " ") . twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse41), "lastname", [], "any"falsefalsefalse41)), "html"nulltrue);
  176.             echo "</span>
  177.                             ";
  178.         }
  179.         // line 43
  180.         echo "                            <span class=\"category-link\">";
  181.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.published_ad"), "html"nulltrue);
  182.         echo " ";
  183.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse43), "d/m/Y"), "html"nulltrue);
  184.         echo "</span>
  185.                         </div>
  186.                         ";
  187.         // line 46
  188.         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"falsefalsefalse46);
  189.         echo "
  190.                     </div>
  191.                     ";
  192.         // line 50
  193.         if (((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'50$this->source); })()) == false)) {
  194.             // line 51
  195.             echo "
  196.                     <div class=\"comments\">
  197.                         <div class=\"main-title\">
  198.                             <h1 class=\"title-text\">";
  199.             // line 54
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("backoffice.comments"), "html"nulltrue);
  201.             echo "</h1>
  202.                         </div>
  203.                         ";
  204.             // line 57
  205.             $context['_parent'] = $context;
  206.             $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"falsefalsefalse57));
  207.             foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
  208.                 // line 58
  209.                 echo "                        ";
  210.                 if (twig_get_attribute($this->env$this->source$context["comment"], "activated", [], "any"falsefalsefalse58)) {
  211.                     // line 59
  212.                     echo "
  213.                         <div class=\"comment-item\">
  214.                             <h4 class=\"author\">";
  215.                     // line 61
  216.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["comment"], "name", [], "any"falsefalsefalse61), "html"nulltrue);
  217.                     echo "</h4>
  218.                             <span class=\"date\">";
  219.                     // line 62
  220.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["comment"], "createdAt", [], "any"falsefalsefalse62), "d/m/Y"), "html"nulltrue);
  221.                     echo "</span>
  222.                             <p class=\"comment-text\">";
  223.                     // line 63
  224.                     echo twig_get_attribute($this->env$this->source$context["comment"], "message", [], "any"falsefalsefalse63);
  225.                     echo "</p>
  226.                         </div>
  227.                         ";
  228.                 }
  229.                 // line 67
  230.                 echo "                        ";
  231.             }
  232.             $_parent $context['_parent'];
  233.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
  234.             $context array_intersect_key($context$_parent) + $_parent;
  235.             // line 68
  236.             echo "
  237.                         <div class=\"actions mt-3\">
  238.                             <button class=\"btn main-btn btn-sm mx-auto\" data-toggle=\"modal\" data-target=\"#comment-modal\">";
  239.             // line 70
  240.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.comment"), "html"nulltrue);
  241.             echo "</button>
  242.                         </div>
  243.                         
  244.                     </div>
  245.                     ";
  246.         }
  247.         // line 76
  248.         echo "                    
  249.                 </div>
  250.                 <div class=\"blog-sidebar\">
  251.                     <div class=\"sidebar-content\">
  252.                         <div class=\"share-card\">
  253.                             <h5 class=\"title\">";
  254.         // line 81
  255.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.share"), "html"nulltrue);
  256.         echo "</h5>
  257.                             <div class=\"share-buttons\">
  258.                                 <a class=\"sharer\" target=\"_blank\" href=\"http://www.facebook.com/share.php?u=";
  259.         // line 83
  260.         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"falsefalsefalse83)]), "html"nulltrue);
  261.         echo "&title=";
  262.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse83), "html"nulltrue);
  263.         echo "\">
  264.                                     <i class=\"fab fa-facebook-f\"></i>
  265.                                 </a>
  266.                                 <a class=\"sharer\" target=\"_blank\" href=\"https://twitter.com/intent/tweet?text=";
  267.         // line 86
  268.         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"falsefalsefalse86)]), "html"nulltrue);
  269.         echo "\">
  270.                                     <i class=\"fab fa-x-twitter\"></i>
  271.                                 </a>
  272.                                 <a class=\"sharer\" target=\"_blank\" href=\"http://www.linkedin.com/shareArticle?mini=true&url=";
  273.         // line 89
  274.         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"falsefalsefalse89)]), "html"nulltrue);
  275.         echo "&title=";
  276.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse89), "html"nulltrue);
  277.         echo "\">
  278.                                     <i class=\"fab fa-linkedin-in\"></i>
  279.                                 </a>
  280.                             </div>
  281.                         </div>
  282.                         <div class=\"more-articles\">
  283.                             ";
  284.         // line 97
  285.         if (((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'97$this->source); })()) == false)) {
  286.             // line 98
  287.             echo "                                <h5 class=\"title\" >";
  288.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.more_articles"), "html"nulltrue);
  289.             echo "</h5>
  290.                                 <div class=\"row\">
  291.                                     ";
  292.             // line 100
  293.             $context['_parent'] = $context;
  294.             $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); })()));
  295.             $context['loop'] = [
  296.               'parent' => $context['_parent'],
  297.               'index0' => 0,
  298.               'index'  => 1,
  299.               'first'  => true,
  300.             ];
  301.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  302.                 $length count($context['_seq']);
  303.                 $context['loop']['revindex0'] = $length 1;
  304.                 $context['loop']['revindex'] = $length;
  305.                 $context['loop']['length'] = $length;
  306.                 $context['loop']['last'] = === $length;
  307.             }
  308.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  309.                 // line 101
  310.                 echo "                                        <div class=\"col-12 blog-col\">
  311.                                             ";
  312.                 // line 102
  313.                 $this->loadTemplate("front/blog/_blog-card.html.twig""front/blog/article.html.twig"102)->display($context);
  314.                 // line 103
  315.                 echo "                                        </div>
  316.                                     ";
  317.                 ++$context['loop']['index0'];
  318.                 ++$context['loop']['index'];
  319.                 $context['loop']['first'] = false;
  320.                 if (isset($context['loop']['length'])) {
  321.                     --$context['loop']['revindex0'];
  322.                     --$context['loop']['revindex'];
  323.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  324.                 }
  325.             }
  326.             $_parent $context['_parent'];
  327.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  328.             $context array_intersect_key($context$_parent) + $_parent;
  329.             // line 105
  330.             echo "                                </div>
  331.                             ";
  332.         }
  333.         // line 107
  334.         echo "
  335.                         </div>
  336.                     </div>
  337.                 </div>
  338.             </div>
  339. \t\t</div>
  340. \t</section>
  341.     ";
  342.         // line 115
  343.         if (array_key_exists("form"$context)) {
  344.             // line 116
  345.             echo "        <!-- Comment Modal -->
  346.         <div class=\"modal fade bd-example-modal-lg\" id=\"comment-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"commentModalTitle\" aria-hidden=\"true\">
  347.             <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  348.                 <div class=\"modal-content\">
  349.                     ";
  350.             // line 121
  351.             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');
  352.             echo "
  353.                     <div class=\"modal-body\">
  354.                         <div class=\"modal-title-wrap\">
  355.                             <h5 class=\"modal-title\">";
  356.             // line 125
  357.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.comment"), "html"nulltrue);
  358.             echo "</h5>
  359.                             <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  360.                                 <i class=\"fal fa-times\"></i>
  361.                             </button>
  362.                         </div>
  363.                         <div class=\"row\">
  364.                             <div class=\"col-12\">
  365.                                 ";
  366.             // line 132
  367.             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"falsefalsefalse132), 'row');
  368.             echo "
  369.                                 ";
  370.             // line 133
  371.             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"falsefalsefalse133), 'row');
  372.             echo "
  373.                                 ";
  374.             // line 134
  375.             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"falsefalsefalse134), 'widget');
  376.             echo "
  377.                                 ";
  378.             // line 135
  379.             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"falsefalsefalse135), 'row');
  380.             echo "
  381.                             </div>
  382.                         </div>
  383.                         <div class=\"row mt-3\">
  384.                             <div class=\"col-md-12\">
  385.                                 <button type=\"submit\" class=\"btn main-btn m-auto\">";
  386.             // line 141
  387.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("article.send_button"), "html"nulltrue);
  388.             echo "</button>
  389.                             </div>
  390.                         </div>
  391.                     </div>
  392.                     ";
  393.             // line 147
  394.             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');
  395.             echo "
  396.                 </div>
  397.             </div>
  398.         </div>
  399.     ";
  400.         }
  401.         // line 153
  402.         echo "
  403.     ";
  404.         // line 154
  405.         $this->loadTemplate("front/blog/_blog-cta.html.twig""front/blog/article.html.twig"154)->display($context);
  406.         // line 155
  407.         echo "
  408. ";
  409.         
  410.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  411.         
  412.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  413.     }
  414.     /**
  415.      * @codeCoverageIgnore
  416.      */
  417.     public function getTemplateName()
  418.     {
  419.         return "front/blog/article.html.twig";
  420.     }
  421.     /**
  422.      * @codeCoverageIgnore
  423.      */
  424.     public function isTraitable()
  425.     {
  426.         return false;
  427.     }
  428.     /**
  429.      * @codeCoverageIgnore
  430.      */
  431.     public function getDebugInfo()
  432.     {
  433.         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,);
  434.     }
  435.     public function getSourceContext()
  436.     {
  437.         return new Source("{% extends \"front/base.html.twig\" %}
  438. {% block title %}
  439.     {% if article.titleSeo %}
  440.         {{ article.titleSeo }}
  441.     {% else %}
  442.         {{ article.title }}
  443.     {% endif %}
  444. {% endblock %}
  445. {% block seo %}
  446.     <meta name=\"description\" content=\"{{ article.descriptionSeo }}\">
  447. {% endblock %}
  448. {% block og %}
  449.     <meta property=\"og:type\" content=\"website\" />
  450.     <meta property=\"og:title\" content=\"{{ article.titleSeo }}\" />
  451.     <meta property=\"og:image\" content=\"{{ url('homepage_no_locale') }}images/blog/{{ article.cover }}\"/>
  452.     <meta property=\"og:description\" content=\"{{ article.descriptionSeo }}\"/>
  453.     <meta property=\"og:site_name\" content=\"Racket Trip\"/>
  454. {% endblock %}
  455. {% block body %}
  456. \t<section class=\"first-section single-article\">
  457.         <div class=\"cover\" style=\"background-image : url('/images/blog/{{ article.cover }}')\" title=\"{{ article.altCover }}\">
  458.             <div class=\"title-wrap\">
  459.                 <h1 class=\"title\">{{ article.title | raw }}</h1>
  460.             </div>
  461.         </div>
  462. \t\t<div class=\"container\">
  463.             <div class=\"row\">
  464.                 <div class=\"content-col\">
  465.                     <div class=\"blog-content\">
  466.                         <div class=\"categories\">
  467.                             {% for category in article.categories %}
  468.                                 <a href=\"{{ path('article_category', {'slug': category.slug}) }}\" class=\"category-link\">{{ category.title }}</a>
  469.                             {% endfor %}
  470.                             {% if article.author %}
  471.                             <span class=\"category-link\">{{ article.author.firstname ~ ' ' ~ article.author.lastname }}</span>
  472.                             {% endif %}
  473.                             <span class=\"category-link\">{{ 'article.published_ad' | trans }} {{ article.publishedAt | date('d/m/Y') }}</span>
  474.                         </div>
  475.                         {{ article.description | raw }}
  476.                     </div>
  477.                     {% if preview == false %}
  478.                     <div class=\"comments\">
  479.                         <div class=\"main-title\">
  480.                             <h1 class=\"title-text\">{{ \"backoffice.comments\" | trans }}</h1>
  481.                         </div>
  482.                         {% for comment in article.comments %}
  483.                         {% if comment.activated %}
  484.                         <div class=\"comment-item\">
  485.                             <h4 class=\"author\">{{ comment.name }}</h4>
  486.                             <span class=\"date\">{{ comment.createdAt | date('d/m/Y') }}</span>
  487.                             <p class=\"comment-text\">{{ comment.message | raw }}</p>
  488.                         </div>
  489.                         {% endif %}
  490.                         {% endfor %}
  491.                         <div class=\"actions mt-3\">
  492.                             <button class=\"btn main-btn btn-sm mx-auto\" data-toggle=\"modal\" data-target=\"#comment-modal\">{{ 'article.comment' | trans }}</button>
  493.                         </div>
  494.                         
  495.                     </div>
  496.                     {% endif %}
  497.                     
  498.                 </div>
  499.                 <div class=\"blog-sidebar\">
  500.                     <div class=\"sidebar-content\">
  501.                         <div class=\"share-card\">
  502.                             <h5 class=\"title\">{{ 'article.share' | trans }}</h5>
  503.                             <div class=\"share-buttons\">
  504.                                 <a class=\"sharer\" target=\"_blank\" href=\"http://www.facebook.com/share.php?u={{ url('show_article', {'slug': article.slug}) }}&title={{ article.title }}\">
  505.                                     <i class=\"fab fa-facebook-f\"></i>
  506.                                 </a>
  507.                                 <a class=\"sharer\" target=\"_blank\" href=\"https://twitter.com/intent/tweet?text={{ url('show_article', {'slug': article.slug}) }}\">
  508.                                     <i class=\"fab fa-x-twitter\"></i>
  509.                                 </a>
  510.                                 <a class=\"sharer\" target=\"_blank\" href=\"http://www.linkedin.com/shareArticle?mini=true&url={{ url('show_article', {'slug': article.slug}) }}&title={{ article.title }}\">
  511.                                     <i class=\"fab fa-linkedin-in\"></i>
  512.                                 </a>
  513.                             </div>
  514.                         </div>
  515.                         <div class=\"more-articles\">
  516.                             {% if preview == false %}
  517.                                 <h5 class=\"title\" >{{ 'article.more_articles' | trans }}</h5>
  518.                                 <div class=\"row\">
  519.                                     {% for article in moreArticles %}
  520.                                         <div class=\"col-12 blog-col\">
  521.                                             {% include \"front/blog/_blog-card.html.twig\" %}
  522.                                         </div>
  523.                                     {% endfor %}
  524.                                 </div>
  525.                             {% endif %}
  526.                         </div>
  527.                     </div>
  528.                 </div>
  529.             </div>
  530. \t\t</div>
  531. \t</section>
  532.     {% if form is defined %}
  533.         <!-- Comment Modal -->
  534.         <div class=\"modal fade bd-example-modal-lg\" id=\"comment-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"commentModalTitle\" aria-hidden=\"true\">
  535.             <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  536.                 <div class=\"modal-content\">
  537.                     {{ form_start(form) }}
  538.                     <div class=\"modal-body\">
  539.                         <div class=\"modal-title-wrap\">
  540.                             <h5 class=\"modal-title\">{{ 'article.comment' | trans }}</h5>
  541.                             <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  542.                                 <i class=\"fal fa-times\"></i>
  543.                             </button>
  544.                         </div>
  545.                         <div class=\"row\">
  546.                             <div class=\"col-12\">
  547.                                 {{ form_row(form.name) }}
  548.                                 {{ form_row(form.email) }}
  549.                                 {{ form_widget(form.website) }}
  550.                                 {{ form_row(form.message) }}
  551.                             </div>
  552.                         </div>
  553.                         <div class=\"row mt-3\">
  554.                             <div class=\"col-md-12\">
  555.                                 <button type=\"submit\" class=\"btn main-btn m-auto\">{{ 'article.send_button' | trans }}</button>
  556.                             </div>
  557.                         </div>
  558.                     </div>
  559.                     {{ form_end(form) }}
  560.                 </div>
  561.             </div>
  562.         </div>
  563.     {% endif %}
  564.     {% include \"front/blog/_blog-cta.html.twig\" %}
  565. {% endblock %}""front/blog/article.html.twig""/var/www/preprod/racket-trip/templates/front/blog/article.html.twig");
  566.     }
  567. }