<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* ./actualite/actualite.html.twig */
class __TwigTemplate_6bc7b88638cf08f190e81a987ee37ddf extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
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);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "./actualite/actualite.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "./actualite/actualite.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"/assets/css/actualite.css\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 12
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 21
echo " ";
$this->displayParentBlock("body", $context, $blocks);
echo "
<div class=\"backgroundheaderBlog\">
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 30
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 31
echo " ";
$this->displayParentBlock("content", $context, $blocks);
echo "
<script>
var dataimport = ";
// line 34
echo (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 34, $this->source); })());
echo ";
\$(function () {
\$('#table').bootstrapTable({
data: dataimport
})
})
</script>
<script src=\"/assets/js/settingactualite.js\"></script>
<!-- casque -->
";
// line 43
if (((isset($context["pro"]) || array_key_exists("pro", $context) ? $context["pro"] : (function () { throw new RuntimeError('Variable "pro" does not exist.', 43, $this->source); })()) == "false")) {
// line 44
echo " <section>
<div class=\"container row casque\">
<div class=\"col-md-6 casque-col\">
";
// line 47
$this->loadTemplate("/casque.html.twig", "./actualite/actualite.html.twig", 47)->display($context);
// line 48
echo "
<div class=\" casque-int\">
<p class=\"Casque-title\">Testez votre audition</p>
<p class=\"Casque-subtitle\">en seulement 3 min !</p>
<button onclick=\"location.href='/test-auditif-en-ligne/test';\" class=\"start btn btn-vert-inverse btn-outline-light\" >Je commence</button>
</div>
</div>
</div>
</section>
";
}
// line 58
echo " <!-- Titre -->
<section>
<div class=\"container\">
<div class=\"col-md-6\">
<h1 class=\"Home_title\">Suivez l’actualité de l’Audition</h1>
<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>
<p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
</div>
</div>
</section>
<!-- Blog-->
<section>
<div class=\"blog container\">
<h2>Catégorie d’articles</h2>
<div id=\"toolbar\">
<div class=\"navigation\">
<ul class=\"nav nav-pills nav-left \" id=\"filtertable\">
</ul>
</div>
</div>
<table
id=\"table\"
data-search=\"false\"
data-pagination=\"true\"
data-page-size=\"6\"
data-pagination-h-align=\"center\"
data-pagination-detail=\"false\"
data-show-custom-view=\"true\"
data-custom-view=\"customViewFormatter\"
data-show-custom-view-button=\"false\">
<thead>
<tr>
<th data-field=\"id\">id</th>
<th data-field=\"title\">Titre</th>
<th data-field=\"sous-titre\">subtitle</th>
<th data-field=\"date\">Date</th>
<th data-field=\"imgUrl\">Url</th>
<th data-field=\"categoryId\">category</th>
</tr>
</thead>
</table>
<template id=\"profileTemplate\">
<div class=\" card_section %TAILLECARD%\">
<div class=\"card\">
<div class=\"header-card\">
<!-- Image conditionnelle -->
<img class=\"card-img-top %TAILLE%\" src=\"%IMGURL%\" alt=\"Card image cap\">
<div class=\"card-body\">
<p class=\"card_ontitle\">%CATEGORY%</p>
<h2 class=\"card-title\">%TITLE%</h2>
<p class=\"card_date\">
<span class=\"material-icons\">today</span>
%DATE%
</p>
<p class=\"card-text\">%EXTRAIT%</p>
%SOURCE%
</div>
</div>
<div class=\"card-footer\">
<a class=\"btn btn-vert btn-outline-light me-2\" href=\"%LINK%\" target=\"%LINKTARGET%\">VOIR PLUS</a>
</div>
</div>
</div>
</template>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "./actualite/actualite.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends base %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"/assets/css/actualite.css\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css\">
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.16.0/dist/locale/bootstrap-table-fr-FR.min.js\"></script>
<script src=\"https://unpkg.com/bootstrap-table@1.18.3/dist/extensions/custom-view/bootstrap-table-custom-view.js\"></script>
{% endblock %}
{% block body %}
{{ parent() }}
<div class=\"backgroundheaderBlog\">
</div>
{% endblock %}
{% block content %}
{{ parent() }}
<script>
var dataimport = {{articles | raw}};
\$(function () {
\$('#table').bootstrapTable({
data: dataimport
})
})
</script>
<script src=\"/assets/js/settingactualite.js\"></script>
<!-- casque -->
{% if pro == \"false\" %}
<section>
<div class=\"container row casque\">
<div class=\"col-md-6 casque-col\">
{% include \"/casque.html.twig\" %}
<div class=\" casque-int\">
<p class=\"Casque-title\">Testez votre audition</p>
<p class=\"Casque-subtitle\">en seulement 3 min !</p>
<button onclick=\"location.href='/test-auditif-en-ligne/test';\" class=\"start btn btn-vert-inverse btn-outline-light\" >Je commence</button>
</div>
</div>
</div>
</section>
{% endif %}
<!-- Titre -->
<section>
<div class=\"container\">
<div class=\"col-md-6\">
<h1 class=\"Home_title\">Suivez l’actualité de l’Audition</h1>
<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>
<p class=\"Home_subtitle\">Premièr réseau national de tous les audioprothésistes de France !</p>
</div>
</div>
</section>
<!-- Blog-->
<section>
<div class=\"blog container\">
<h2>Catégorie d’articles</h2>
<div id=\"toolbar\">
<div class=\"navigation\">
<ul class=\"nav nav-pills nav-left \" id=\"filtertable\">
</ul>
</div>
</div>
<table
id=\"table\"
data-search=\"false\"
data-pagination=\"true\"
data-page-size=\"6\"
data-pagination-h-align=\"center\"
data-pagination-detail=\"false\"
data-show-custom-view=\"true\"
data-custom-view=\"customViewFormatter\"
data-show-custom-view-button=\"false\">
<thead>
<tr>
<th data-field=\"id\">id</th>
<th data-field=\"title\">Titre</th>
<th data-field=\"sous-titre\">subtitle</th>
<th data-field=\"date\">Date</th>
<th data-field=\"imgUrl\">Url</th>
<th data-field=\"categoryId\">category</th>
</tr>
</thead>
</table>
<template id=\"profileTemplate\">
<div class=\" card_section %TAILLECARD%\">
<div class=\"card\">
<div class=\"header-card\">
<!-- Image conditionnelle -->
<img class=\"card-img-top %TAILLE%\" src=\"%IMGURL%\" alt=\"Card image cap\">
<div class=\"card-body\">
<p class=\"card_ontitle\">%CATEGORY%</p>
<h2 class=\"card-title\">%TITLE%</h2>
<p class=\"card_date\">
<span class=\"material-icons\">today</span>
%DATE%
</p>
<p class=\"card-text\">%EXTRAIT%</p>
%SOURCE%
</div>
</div>
<div class=\"card-footer\">
<a class=\"btn btn-vert btn-outline-light me-2\" href=\"%LINK%\" target=\"%LINKTARGET%\">VOIR PLUS</a>
</div>
</div>
</div>
</template>
</div>
</section>
{% endblock %}", "./actualite/actualite.html.twig", "/var/www/my-audio-site/templates/actualite/actualite.html.twig");
}
}