var/cache/dev/twig/fe/fe571bf67ba82683d84f0dd6528fadb9.php line 50

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/actualite.html.twig */
  14. class __TwigTemplate_6bc7b88638cf08f190e81a987ee37ddf 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/actualite.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/actualite.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/actualite.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/actualite.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=\"backgroundheaderBlog\">
  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.       <script>
  121.         var dataimport = ";
  122.         // line 34
  123.         echo (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'34$this->source); })());
  124.         echo ";
  125.         \$(function () {
  126.             \$('#table').bootstrapTable({
  127.                 data: dataimport
  128.                 })
  129.         })
  130.       </script>
  131.       <script src=\"/assets/js/settingactualite.js\"></script>
  132.        <!-- casque -->
  133.       ";
  134.         // line 43
  135.         if (((isset($context["pro"]) || array_key_exists("pro"$context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.'43$this->source); })()) == "false")) {
  136.             // line 44
  137.             echo "    <section>
  138.         <div class=\"container row casque\">
  139.             <div class=\"col-md-6 casque-col\">
  140.                 ";
  141.             // line 47
  142.             $this->loadTemplate("/casque.html.twig""./actualite/actualite.html.twig"47)->display($context);
  143.             // line 48
  144.             echo "
  145.                 <div class=\" casque-int\">
  146.                 <p class=\"Casque-title\">Testez votre audition</p>
  147.                 <p class=\"Casque-subtitle\">en seulement 3 min !</p>
  148.                 <button onclick=\"location.href='/test-auditif-en-ligne/test';\" class=\"start btn btn-vert-inverse btn-outline-light\" >Je commence</button>
  149.                 </div>
  150.             </div>
  151.         </div>
  152.     </section>
  153.     ";
  154.         }
  155.         // line 58
  156.         echo " <!-- Titre -->          
  157.     <section>
  158.         <div class=\"container\">
  159.             <div class=\"col-md-6\">
  160.                 <h1 class=\"Home_title\">Suivez l’actualité de l’Audition</h1>
  161.                 <p class=\"Home_subtitle\">Retrouvez les dernières informations, explications et recommandation qui répondront à vos questions sur la santé auditive grâce à My Audio,</p>
  162.                 <p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
  163.             </div>
  164.         </div>
  165.     </section>
  166. <!-- Blog-->
  167. <section>
  168.         <div class=\"blog container\">
  169.           <h2>Catégorie d’articles</h2>
  170.         <div id=\"toolbar\">
  171.           <div class=\"navigation\">
  172.             <ul class=\"nav nav-pills nav-left \" id=\"filtertable\">
  173.             </ul>
  174.            
  175.           </div>
  176.         </div>
  177.         <table
  178.           id=\"table\"
  179.           data-search=\"false\"
  180.           data-pagination=\"true\"
  181.           data-page-size=\"6\"
  182.           data-pagination-h-align=\"center\"
  183.           data-pagination-detail=\"false\"
  184.           data-show-custom-view=\"true\"
  185.           data-custom-view=\"customViewFormatter\"
  186.           data-show-custom-view-button=\"false\">
  187.           <thead>
  188.             <tr>
  189.               <th data-field=\"id\">id</th>
  190.               <th data-field=\"title\">Titre</th>
  191.               <th data-field=\"sous-titre\">subtitle</th>
  192.               <th data-field=\"date\">Date</th>
  193.               <th data-field=\"imgUrl\">Url</th>
  194.               <th data-field=\"categoryId\">category</th>
  195.             </tr>
  196.         </thead>
  197.         </table>
  198.         <template id=\"profileTemplate\">
  199.           <div class=\" card_section %TAILLECARD%\">                    
  200.             <div class=\"card\">
  201.                 <div class=\"header-card\">
  202.         <!-- Image conditionnelle -->
  203.         <img class=\"card-img-top %TAILLE%\" src=\"%IMGURL%\" alt=\"Card image cap\">
  204.         <div class=\"card-body\">
  205.           <p class=\"card_ontitle\">%CATEGORY%</p>
  206.           <h2 class=\"card-title\">%TITLE%</h2>
  207.           <p class=\"card_date\">
  208.             <span class=\"material-icons\">today</span>
  209.             %DATE%
  210.           </p>
  211.           <p class=\"card-text\">%EXTRAIT%</p>
  212.           %SOURCE%
  213.         </div>
  214.       </div>
  215.       <div class=\"card-footer\">
  216.         <a class=\"btn btn-vert btn-outline-light me-2\" href=\"%LINK%\" target=\"%LINKTARGET%\">VOIR PLUS</a>
  217.       </div>
  218.                 
  219.                     
  220.             </div>
  221.         </div>
  222.         </template>
  223. </div>
  224. </section>
  225. ";
  226.         
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  228.         
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  230.     }
  231.     public function getTemplateName()
  232.     {
  233.         return "./actualite/actualite.html.twig";
  234.     }
  235.     public function isTraitable()
  236.     {
  237.         return false;
  238.     }
  239.     public function getDebugInfo()
  240.     {
  241.         return array (  191 => 58,  179 => 48,  177 => 47,  172 => 44,  170 => 43,  158 => 34,  151 => 31,  141 => 30,  122 => 21,  112 => 20,  95 => 12,  85 => 11,  70 => 4,  60 => 3,  38 => 1,);
  242.     }
  243.     public function getSourceContext()
  244.     {
  245.         return new Source("{% extends base %}
  246. {% block stylesheets %}
  247. {{ parent() }}
  248.   <link rel=\"stylesheet\" href=\"/assets/css/actualite.css\">
  249.   <link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
  250. {% endblock %}
  251. {% block javascripts %}
  252. {{ parent() }}
  253.   <script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>   
  254.   <script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
  255.   <script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
  256.   <script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
  257.       
  258. {% endblock %}
  259. {% block body %}
  260.   {{ parent() }}
  261.     <div class=\"backgroundheaderBlog\">
  262. </div>
  263. {% endblock %}
  264. {% block content %}
  265.   {{ parent() }}
  266.       <script>
  267.         var dataimport = {{articles | raw}};
  268.         \$(function () {
  269.             \$('#table').bootstrapTable({
  270.                 data: dataimport
  271.                 })
  272.         })
  273.       </script>
  274.       <script src=\"/assets/js/settingactualite.js\"></script>
  275.        <!-- casque -->
  276.       {% if pro == \"false\" %}
  277.     <section>
  278.         <div class=\"container row casque\">
  279.             <div class=\"col-md-6 casque-col\">
  280.                 {% include \"/casque.html.twig\" %}
  281.                 <div class=\" casque-int\">
  282.                 <p class=\"Casque-title\">Testez votre audition</p>
  283.                 <p class=\"Casque-subtitle\">en seulement 3 min !</p>
  284.                 <button onclick=\"location.href='/test-auditif-en-ligne/test';\" class=\"start btn btn-vert-inverse btn-outline-light\" >Je commence</button>
  285.                 </div>
  286.             </div>
  287.         </div>
  288.     </section>
  289.     {% endif %}
  290.  <!-- Titre -->          
  291.     <section>
  292.         <div class=\"container\">
  293.             <div class=\"col-md-6\">
  294.                 <h1 class=\"Home_title\">Suivez l’actualité de l’Audition</h1>
  295.                 <p class=\"Home_subtitle\">Retrouvez les dernières informations, explications et recommandation qui répondront à vos questions sur la santé auditive grâce à My Audio,</p>
  296.                 <p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
  297.             </div>
  298.         </div>
  299.     </section>
  300. <!-- Blog-->
  301. <section>
  302.         <div class=\"blog container\">
  303.           <h2>Catégorie d’articles</h2>
  304.         <div id=\"toolbar\">
  305.           <div class=\"navigation\">
  306.             <ul class=\"nav nav-pills nav-left \" id=\"filtertable\">
  307.             </ul>
  308.            
  309.           </div>
  310.         </div>
  311.         <table
  312.           id=\"table\"
  313.           data-search=\"false\"
  314.           data-pagination=\"true\"
  315.           data-page-size=\"6\"
  316.           data-pagination-h-align=\"center\"
  317.           data-pagination-detail=\"false\"
  318.           data-show-custom-view=\"true\"
  319.           data-custom-view=\"customViewFormatter\"
  320.           data-show-custom-view-button=\"false\">
  321.           <thead>
  322.             <tr>
  323.               <th data-field=\"id\">id</th>
  324.               <th data-field=\"title\">Titre</th>
  325.               <th data-field=\"sous-titre\">subtitle</th>
  326.               <th data-field=\"date\">Date</th>
  327.               <th data-field=\"imgUrl\">Url</th>
  328.               <th data-field=\"categoryId\">category</th>
  329.             </tr>
  330.         </thead>
  331.         </table>
  332.         <template id=\"profileTemplate\">
  333.           <div class=\" card_section %TAILLECARD%\">                    
  334.             <div class=\"card\">
  335.                 <div class=\"header-card\">
  336.         <!-- Image conditionnelle -->
  337.         <img class=\"card-img-top %TAILLE%\" src=\"%IMGURL%\" alt=\"Card image cap\">
  338.         <div class=\"card-body\">
  339.           <p class=\"card_ontitle\">%CATEGORY%</p>
  340.           <h2 class=\"card-title\">%TITLE%</h2>
  341.           <p class=\"card_date\">
  342.             <span class=\"material-icons\">today</span>
  343.             %DATE%
  344.           </p>
  345.           <p class=\"card-text\">%EXTRAIT%</p>
  346.           %SOURCE%
  347.         </div>
  348.       </div>
  349.       <div class=\"card-footer\">
  350.         <a class=\"btn btn-vert btn-outline-light me-2\" href=\"%LINK%\" target=\"%LINKTARGET%\">VOIR PLUS</a>
  351.       </div>
  352.                 
  353.                     
  354.             </div>
  355.         </div>
  356.         </template>
  357. </div>
  358. </section>
  359. {% endblock %}""./actualite/actualite.html.twig""/var/www/my-audio-site/templates/actualite/actualite.html.twig");
  360.     }
  361. }