var/cache/dev/twig/c0/c019e17283919a1e71d8b7b27aca6fef.php line 39

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/show.html.twig */
  14. class __TwigTemplate_7de489f2937587714a8ca776951dd24d 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.             'bodyClass' => [$this'block_bodyClass'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layouts/front.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/show.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/blog/show.html.twig"));
  39.         $this->parent $this->loadTemplate("layouts/front.html.twig""front/blog/show.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_bodyClass($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  54.         echo "interne single_article ";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_content($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  68.         // line 6
  69.         echo "    <section class=\"title-page\" style=\"background:url(";
  70.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/title-page.jpg"), "html"nulltrue);
  71.         echo ")\">
  72.         <div class=\"container\">
  73.             <div class=\"row\">
  74.                 <div class=\"head_page\">
  75.                     <div class=\"head\"> ";
  76.         // line 10
  77.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'10$this->source); })()), "title", [], "any"falsefalsefalse10), "html"nulltrue);
  78.         echo "</div>
  79.                     <div class=\"sperateur\"></div>
  80.                 </div>
  81.                 <div class=\"arrows_head\">
  82.                     <a href=\"#\">
  83.                         <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  84.                              id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\"
  85.                              style=\"enable-background:new 0 0 492 492;\" xml:space=\"preserve\" fill=\"#fff\">
  86.                     <g>
  87.                         <g>
  88.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  89.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  90.                         </g></svg>
  91.                     <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  92.                          id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\" style=\"enable-background:new 0 0 492 492;\"
  93.                          xml:space=\"preserve\" fill=\"#fff\">
  94.                     <g>
  95.                         <g>
  96.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  97.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  98.                         </g></svg>
  99.                     </a>
  100.                 </div>
  101.             </div>
  102.         </div>
  103.     </section>
  104.     <section class=\"breadcumbs single_bread\">
  105.         <div class=\"container\">
  106.             <div class=\"row\">
  107.                 <div class=\"crumbs\"><a href=\"#\"> Home </a> > <a href=\"\"> Blog </a> > <a href=\"\">";
  108.         // line 40
  109.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'40$this->source); })()), "title", [], "any"falsefalsefalse40), "html"nulltrue);
  110.         echo "</a></div>
  111.                 <div class=\"retour\"><a href=\"\"> Retour </a></div>
  112.             </div>
  113.         </div>
  114.     </section>
  115.     <section class=\"single_content\">
  116.         <div class=\"container\">
  117.             <div class=\"row\">
  118.                 <div class=\"col-md-6 col-sm-6 col-xs-12\">
  119.                     <div class=\"title_single\">
  120.                         <span class=\"red\"> ";
  121.         // line 50
  122.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'50$this->source); })()), "title", [], "any"falsefalsefalse50), "html"nulltrue);
  123.         echo " </span>
  124.                         <span class=\"black\"> PubliĆ© le <b>   ";
  125.         // line 51
  126.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'51$this->source); })()), "publishAt", [], "any"falsefalsefalse51), "d/m/Y"), "html"nulltrue);
  127.         echo " </b>  </span>
  128.                     </div>
  129.                     <div class=\"sperateur\"></div>
  130.                     <div class=\"contenu\">
  131.                         ";
  132.         // line 55
  133.         echo twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'55$this->source); })()), "content", [], "any"falsefalsefalse55);
  134.         echo "
  135.                     </div>
  136.                 </div>
  137.                 <div class=\"col-md-6 col-sm-6 col-xs-12\">
  138.                     <div class=\"image_single\">
  139.                         ";
  140.         // line 60
  141.         if (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'60$this->source); })()), "video", [], "any"falsefalsefalse60)) {
  142.             // line 61
  143.             echo "                        <video controls autoplay>
  144.                             <source src=\"";
  145.             // line 62
  146.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'62$this->source); })()), "video", [], "any"falsefalsefalse62))), "html"nulltrue);
  147.             echo "\" type=\"video/mp4\">
  148.                             Your browser does not support the video tag.
  149.                         </video>
  150.                          ";
  151.         } elseif (twig_get_attribute($this->env$this->source,         // line 65
  152. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'65$this->source); })()), "image", [], "any"falsefalsefalse65)) {
  153.             // line 66
  154.             echo "                            <img src=\"";
  155.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'66$this->source); })()), "image", [], "any"falsefalsefalse66))), "html"nulltrue);
  156.             echo "\" />
  157.                          ";
  158.         }
  159.         // line 68
  160.         echo "                    </div>
  161.                 </div>
  162.             </div>
  163.         </div>
  164.     </section>
  165. ";
  166.         
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  168.         
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  170.     }
  171.     public function getTemplateName()
  172.     {
  173.         return "front/blog/show.html.twig";
  174.     }
  175.     public function isTraitable()
  176.     {
  177.         return false;
  178.     }
  179.     public function getDebugInfo()
  180.     {
  181.         return array (  180 => 68,  174 => 66,  172 => 65,  166 => 62,  163 => 61,  161 => 60,  153 => 55,  146 => 51,  142 => 50,  129 => 40,  96 => 10,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
  182.     }
  183.     public function getSourceContext()
  184.     {
  185.         return new Source("{% extends 'layouts/front.html.twig' %}
  186. {% block bodyClass %}interne single_article {% endblock %}
  187. {% block content %}
  188.     <section class=\"title-page\" style=\"background:url({{ asset('build/images/title-page.jpg') }})\">
  189.         <div class=\"container\">
  190.             <div class=\"row\">
  191.                 <div class=\"head_page\">
  192.                     <div class=\"head\"> {{ post.title }}</div>
  193.                     <div class=\"sperateur\"></div>
  194.                 </div>
  195.                 <div class=\"arrows_head\">
  196.                     <a href=\"#\">
  197.                         <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  198.                              id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\"
  199.                              style=\"enable-background:new 0 0 492 492;\" xml:space=\"preserve\" fill=\"#fff\">
  200.                     <g>
  201.                         <g>
  202.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  203.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  204.                         </g></svg>
  205.                     <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"
  206.                          id=\"Layer_1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 492 492\" style=\"enable-background:new 0 0 492 492;\"
  207.                          xml:space=\"preserve\" fill=\"#fff\">
  208.                     <g>
  209.                         <g>
  210.                             <path xmlns=\"http://www.w3.org/2000/svg\" fill=\"\"
  211.                                   d=\"M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z\"/>
  212.                         </g></svg>
  213.                     </a>
  214.                 </div>
  215.             </div>
  216.         </div>
  217.     </section>
  218.     <section class=\"breadcumbs single_bread\">
  219.         <div class=\"container\">
  220.             <div class=\"row\">
  221.                 <div class=\"crumbs\"><a href=\"#\"> Home </a> > <a href=\"\"> Blog </a> > <a href=\"\">{{ post.title }}</a></div>
  222.                 <div class=\"retour\"><a href=\"\"> Retour </a></div>
  223.             </div>
  224.         </div>
  225.     </section>
  226.     <section class=\"single_content\">
  227.         <div class=\"container\">
  228.             <div class=\"row\">
  229.                 <div class=\"col-md-6 col-sm-6 col-xs-12\">
  230.                     <div class=\"title_single\">
  231.                         <span class=\"red\"> {{ post.title }} </span>
  232.                         <span class=\"black\"> PubliĆ© le <b>   {{ post.publishAt|date('d/m/Y') }} </b>  </span>
  233.                     </div>
  234.                     <div class=\"sperateur\"></div>
  235.                     <div class=\"contenu\">
  236.                         {{ post.content|raw }}
  237.                     </div>
  238.                 </div>
  239.                 <div class=\"col-md-6 col-sm-6 col-xs-12\">
  240.                     <div class=\"image_single\">
  241.                         {% if post.video %}
  242.                         <video controls autoplay>
  243.                             <source src=\"{{ asset('uploads/'~post.video) }}\" type=\"video/mp4\">
  244.                             Your browser does not support the video tag.
  245.                         </video>
  246.                          {% elseif post.image %}
  247.                             <img src=\"{{ asset('uploads/'~post.image) }}\" />
  248.                          {% endif %}
  249.                     </div>
  250.                 </div>
  251.             </div>
  252.         </div>
  253.     </section>
  254. {% endblock %}
  255. ""front/blog/show.html.twig""/home/saco/subdomains/preprod/templates/front/blog/show.html.twig");
  256.     }
  257. }