<?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;
/* frontend/frontindex/listNews.html.twig */
class __TwigTemplate_c6241ed712e6d8d764311b272d5f0abb51579d73fb07e1e7bbd9c975181dbf93 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'seo' => [$this, 'block_seo'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "frontend/frontindex/add.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/frontindex/listNews.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/frontindex/listNews.html.twig"));
$this->parent = $this->loadTemplate("frontend/frontindex/add.html.twig", "frontend/frontindex/listNews.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_seo($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 4
echo "
\t";
// line 5
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("seo", ["page" => 21]));
// line 8
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 12
echo "
\t<section class=\"breadcrumbs\" style=\"background-image:url('../front-assets/assets/img/breadcrumb-bg.jpg')\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-lg-6 offset-lg-3 col-12\">
\t\t\t\t\t<div class=\"breadcrumb-content\">
\t\t\t\t\t\t<h4>";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%News%"), "html", null, true);
echo "</h4>
\t\t\t\t\t\t<ul class=\"breadcrumb-menu\">
\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<a href=\"";
// line 21
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_accueil");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%Home%"), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t<i class=\"fa fa-angle-double-right\"></i>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"text-white\">";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%News%"), "html", null, true);
echo "</li>
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t<section class=\"doctors-area doctor-page\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-6 offset-md-3\">
\t\t\t\t";
// line 35
if (twig_test_empty((isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 35, $this->source); })()))) {
// line 36
echo "\t\t\t\t<h1 class=\"text-center\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%Bientôtdisponible%"), "html", null, true);
echo "</h1>
\t\t\t\t";
}
// line 38
echo "\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["news"]);
foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
// line 42
echo "\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t<img width=\"100%\" src=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/imagesNews/" . twig_get_attribute($this->env, $this->source, $context["news"], "image", [], "any", false, false, false, 43))), "html", null, true);
echo "\">
\t\t\t\t\t\t<div class=\"service-item mb-4\">
\t\t\t\t\t\t\t<div class=\"icon align-items-center\">
\t\t\t\t\t\t\t\t<h4 class=\"mt-3 mb-3 text-center\">";
// line 47
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 47, $this->source); })()), "request", [], "any", false, false, false, 47), "locale", [], "any", false, false, false, 47), "fr"))) {
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["news"], "titleFr", [], "any", false, false, false, 47), 0, 35), "html", null, true);
echo "...";
} else {
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["news"], "titleEn", [], "any", false, false, false, 47), 0, 35), "html", null, true);
echo "...";
}
// line 48
echo "\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"content ml-4\">
\t\t\t\t\t\t\t\t<p class=\"mb-4 ml-5\">";
// line 51
((twig_get_attribute($this->env, $this->source, $context["news"], "date", [], "any", false, false, false, 51)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["news"], "date", [], "any", false, false, false, 51), "d-m-Y"), "html", null, true))) : (print ("")));
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 55
echo " <ul class=\"sidebar-service\">
<li><a href=\"";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["news"], "content", [], "any", false, false, false, 56), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%LirePlus%"), "html", null, true);
echo "<i class=\"icofont-simple-right ml-3\"></i></a></li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t";
// line 59
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['news'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
echo "\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t";
// line 65
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 65, $this->source); })()));
echo "
</div>
\t\t\t</div>
\t\t</div>
\t</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "frontend/frontindex/listNews.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 201 => 65, 196 => 62, 188 => 59, 181 => 56, 178 => 55, 172 => 51, 167 => 48, 159 => 47, 152 => 43, 149 => 42, 145 => 41, 140 => 38, 134 => 36, 132 => 35, 118 => 24, 110 => 21, 104 => 18, 96 => 12, 86 => 11, 74 => 8, 72 => 5, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend/frontindex/add.html.twig' %}
{% block seo %}
\t{{ render(path(
\t\t'seo',
\t\t{ 'page':21 }
\t)) }}
{% endblock %}
{% block body %}
\t<section class=\"breadcrumbs\" style=\"background-image:url('../front-assets/assets/img/breadcrumb-bg.jpg')\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-lg-6 offset-lg-3 col-12\">
\t\t\t\t\t<div class=\"breadcrumb-content\">
\t\t\t\t\t\t<h4>{{'%News%'|trans}}</h4>
\t\t\t\t\t\t<ul class=\"breadcrumb-menu\">
\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<a href=\"{{path('app_accueil')}}\">{{'%Home%'|trans}}</a>
\t\t\t\t\t\t\t\t<i class=\"fa fa-angle-double-right\"></i>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"text-white\">{{'%News%'|trans}}</li>
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t<section class=\"doctors-area doctor-page\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-6 offset-md-3\">
\t\t\t\t{% if news is empty %}
\t\t\t\t<h1 class=\"text-center\">{{'%Bientôtdisponible%'|trans}}</h1>
\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t{% for news in news %}
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t<img width=\"100%\" src=\"{{ asset('uploads/imagesNews/' ~ news.image) }}\">
\t\t\t\t\t\t<div class=\"service-item mb-4\">
\t\t\t\t\t\t\t<div class=\"icon align-items-center\">
\t\t\t\t\t\t\t\t<h4 class=\"mt-3 mb-3 text-center\">{% if app.request.locale=='fr' %}{{ news.titleFr|slice(0,35) }}...{% else %}{{ news.titleEn|slice(0,35) }}...{% endif %}
\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"content ml-4\">
\t\t\t\t\t\t\t\t<p class=\"mb-4 ml-5\">{{ news.date ? news.date|date('d-m-Y') : '' }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{# <div> #}
<ul class=\"sidebar-service\">
<li><a href=\"{{news.content}}\" target=\"_blank\">{{'%LirePlus%'|trans}}<i class=\"icofont-simple-right ml-3\"></i></a></li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t{# </div> #}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t{{ knp_pagination_render(news) }}
</div>
\t\t\t</div>
\t\t</div>
\t</section>
{% endblock %}
", "frontend/frontindex/listNews.html.twig", "/home/urotunisuz/www/templates/frontend/frontindex/listNews.html.twig");
}
}