var/cache/dev/twig/10/108ad0727916934a0ac10055a4c33ad7.php line 41

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. /* ./actualite/article.html.twig */
  14. class __TwigTemplate_20a4b638b9da5a901c8a8c0cf24a48ea 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'body' => [$this'block_body'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         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);
  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""./actualite/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""./actualite/article.html.twig"));
  41.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 4
  56.         $this->displayParentBlock("stylesheets"$context$blocks);
  57.         echo "
  58.   <link rel=\"stylesheet\" href=\"/assets/css/article.css\">
  59.   <link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
  60. ";
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 11
  67.     public function block_javascripts($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  74.         // line 12
  75.         $this->displayParentBlock("javascripts"$context$blocks);
  76.         echo "
  77.   <script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>   
  78.   <script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
  79.   <script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
  80.   <script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
  81.       
  82. ";
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.     }
  88.     // line 20
  89.     public function block_body($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  96.         // line 21
  97.         echo "  ";
  98.         $this->displayParentBlock("body"$context$blocks);
  99.         echo "
  100.     <div class=\"backgroundheaderArticle\">
  101. </div>
  102. ";
  103.         
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105.         
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107.     }
  108.     // line 30
  109.     public function block_content($context, array $blocks = [])
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  116.         // line 31
  117.         echo "  ";
  118.         $this->displayParentBlock("content"$context$blocks);
  119.         echo "
  120.   
  121.       
  122.       <script src=\"/assets/js/article.js\"></script>
  123.       <div class=\"container row all\">
  124.         <div class= \"col-lg-9 leftcolumn\">
  125.           <div class=\"headerblog\">
  126.           <h1 id=\"title\">";
  127.         // line 41
  128.         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.'41$this->source); })()), "title", [], "any"falsefalsefalse41), "html"nulltrue);
  129.         echo "</h1>
  130.           <h2 id=\"subtitle\">";
  131.         // line 42
  132.         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.'42$this->source); })()), "subtitle", [], "any"falsefalsefalse42), "html"nulltrue);
  133.         echo "</h2>
  134.           <img src=\"";
  135.         // line 43
  136.         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"nulltrue);
  137.         echo "article/image/";
  138.         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"nulltrue);
  139.         echo "\" style=\"width: 100%;margin-bottom:15px;\">
  140.           </div>
  141.           
  142.           <div class=\"contentblog\">
  143.           ";
  144.         // line 47
  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.'47$this->source); })()), "texte", [], "any"falsefalsefalse47);
  146.         echo "
  147.           </div>
  148.           <div class=\"footerblog\">
  149.           <p>Publié: ";
  150.         // line 50
  151.         echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($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.'50$this->source); })()), "publication_date", [], "any"falsefalsefalse50), "medium""medium""d MMMM Y"null"gregorian""fr"), "html"nulltrue);
  152.         echo "</p>
  153.           <p>Source: <a href=\"http://";
  154.         // line 51
  155.         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.'51$this->source); })()), "source", [], "any"falsefalsefalse51), "html"nulltrue);
  156.         echo "\">";
  157.         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.'51$this->source); })()), "source", [], "any"falsefalsefalse51), "html"nulltrue);
  158.         echo "</a></p>
  159.           </div>
  160.         </div>
  161.         <div class= \"col-lg-3 rigthcolumn\">
  162.         <div class=\"sticky\">
  163.           <div class=\"lastarticle\">
  164.           <p class=\"titlepart\">À lire aussi</p>
  165.           ";
  166.         // line 58
  167.         $context["i"] = 0;
  168.         // line 59
  169.         echo "          ";
  170.         $context['_parent'] = $context;
  171.         $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); })()));
  172.         foreach ($context['_seq'] as $context["_key"] => $context["arti"]) {
  173.             // line 60
  174.             echo "          ";
  175.             if (((twig_get_attribute($this->env$this->source$context["arti"], "id", [], "any"falsefalsefalse60) != (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))) {
  176.                 // line 61
  177.                 echo "              <a href=\"/actualite-de-l-audition/";
  178.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["arti"], "slug", [], "any"falsefalsefalse61), "html"nulltrue);
  179.                 echo "\">";
  180.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["arti"], "title", [], "any"falsefalsefalse61), "html"nulltrue);
  181.                 echo "</a>
  182.               ";
  183.                 // line 62
  184.                 $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);
  185.                 // line 63
  186.                 echo "            ";
  187.             }
  188.             // line 64
  189.             echo "          ";
  190.         }
  191.         $_parent $context['_parent'];
  192.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['arti'], $context['_parent'], $context['loop']);
  193.         $context array_intersect_key($context$_parent) + $_parent;
  194.         // line 65
  195.         echo "          </div>
  196.           <div class=\"categories\">
  197.           <p class=\"titlepart\">Catégories</p>
  198.           ";
  199.         // line 68
  200.         $context['_parent'] = $context;
  201.         $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); })()));
  202.         foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  203.             // line 69
  204.             echo "          <a href=\"/actualite?filtre='";
  205.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "id", [], "any"falsefalsefalse69), "html"nulltrue);
  206.             echo "'\">";
  207.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "title", [], "any"falsefalsefalse69), "html"nulltrue);
  208.             echo "</a>
  209.           ";
  210.         }
  211.         $_parent $context['_parent'];
  212.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
  213.         $context array_intersect_key($context$_parent) + $_parent;
  214.         // line 71
  215.         echo "          </div>
  216.           
  217.           <div class=\"action\">
  218.           ";
  219.         // line 74
  220.         if (((isset($context["pro"]) || array_key_exists("pro"$context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.'74$this->source); })()) == "false")) {
  221.             // line 75
  222.             echo "            <button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Tester votre audition</button>
  223.             <button type=\"button\" class=\"btn btn-bleu btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Prendre rendez-vous</button>
  224.           ";
  225.         } else {
  226.             // line 78
  227.             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>
  228.           ";
  229.         }
  230.         // line 79
  231.         echo "          
  232.           </div>
  233.           
  234.         </div>
  235.       </div>
  236.       </div>
  237. ";
  238.         
  239.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  240.         
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  242.     }
  243.     public function getTemplateName()
  244.     {
  245.         return "./actualite/article.html.twig";
  246.     }
  247.     public function isTraitable()
  248.     {
  249.         return false;
  250.     }
  251.     public function getDebugInfo()
  252.     {
  253.         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,);
  254.     }
  255.     public function getSourceContext()
  256.     {
  257.         return new Source("  {% extends base %}
  258. {% block stylesheets %}
  259. {{ parent() }}
  260.   <link rel=\"stylesheet\" href=\"/assets/css/article.css\">
  261.   <link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
  262. {% endblock %}
  263. {% block javascripts %}
  264. {{ parent() }}
  265.   <script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>   
  266.   <script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
  267.   <script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
  268.   <script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
  269.       
  270. {% endblock %}
  271. {% block body %}
  272.   {{ parent() }}
  273.     <div class=\"backgroundheaderArticle\">
  274. </div>
  275. {% endblock %}
  276. {% block content %}
  277.   {{ parent() }}
  278.   
  279.       
  280.       <script src=\"/assets/js/article.js\"></script>
  281.       <div class=\"container row all\">
  282.         <div class= \"col-lg-9 leftcolumn\">
  283.           <div class=\"headerblog\">
  284.           <h1 id=\"title\">{{article.title}}</h1>
  285.           <h2 id=\"subtitle\">{{article.subtitle}}</h2>
  286.           <img src=\"{{BASE_API}}article/image/{{id}}\" style=\"width: 100%;margin-bottom:15px;\">
  287.           </div>
  288.           
  289.           <div class=\"contentblog\">
  290.           {{article.texte |raw}}
  291.           </div>
  292.           <div class=\"footerblog\">
  293.           <p>Publié: {{article.publication_date |format_datetime(pattern=\"d MMMM Y\",locale='fr')}}</p>
  294.           <p>Source: <a href=\"http://{{article.source}}\">{{article.source}}</a></p>
  295.           </div>
  296.         </div>
  297.         <div class= \"col-lg-3 rigthcolumn\">
  298.         <div class=\"sticky\">
  299.           <div class=\"lastarticle\">
  300.           <p class=\"titlepart\">À lire aussi</p>
  301.           {% set i=0 %}
  302.           {% for arti in articles %}
  303.           {% if arti.id != id and i<3 %}
  304.               <a href=\"/actualite-de-l-audition/{{arti.slug}}\">{{arti.title}}</a>
  305.               {% set i=i+1 %}
  306.             {% endif %}
  307.           {% endfor %}
  308.           </div>
  309.           <div class=\"categories\">
  310.           <p class=\"titlepart\">Catégories</p>
  311.           {% for cat in category %}
  312.           <a href=\"/actualite?filtre='{{cat.id}}'\">{{cat.title}}</a>
  313.           {% endfor %}
  314.           </div>
  315.           
  316.           <div class=\"action\">
  317.           {% if pro == \"false\" %}
  318.             <button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Tester votre audition</button>
  319.             <button type=\"button\" class=\"btn btn-bleu btn-outline-light me-2\" onclick=\"location.href='/actualite-de-l-audition/';\">Prendre rendez-vous</button>
  320.           {% else %}
  321.               <button type=\"button\" class=\"btn btn-vert btn-outline-light me-2\"  style=\"padding:5px 30px;\" onclick=\"location.href='/pro/inscription';\">S'inscrire</button>
  322.           {% endif %}          
  323.           </div>
  324.           
  325.         </div>
  326.       </div>
  327.       </div>
  328. {% endblock %}""./actualite/article.html.twig""/var/www/my-audio-site/templates/actualite/article.html.twig");
  329.     }
  330. }