<?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/flyers.html.twig */
class __TwigTemplate_adb179d739b3509f3a26c3acaf8a6abed350dabef680b859ea4a2ad043541517 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/flyers.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/flyers.html.twig"));
$this->parent = $this->loadTemplate("frontend/frontindex/add.html.twig", "frontend/frontindex/flyers.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 2
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 3
echo "
\t";
// line 4
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("seo", ["page" => 25]));
// line 7
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
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 11
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<h1>";
// line 17
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%flyersPosters%")), "html", null, true);
echo "</h1>
\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 20
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 23
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%flyersPosters%")), "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\t";
// line 34
if (twig_test_empty((isset($context["flyers"]) || array_key_exists("flyers", $context) ? $context["flyers"] : (function () { throw new RuntimeError('Variable "flyers" does not exist.', 34, $this->source); })()))) {
// line 35
echo "\t\t\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\t";
}
// line 37
echo "\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["flyers"]);
foreach ($context['_seq'] as $context["_key"] => $context["flyers"]) {
// line 41
echo "\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t<img width=\"100%\" src=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/imageflyer/" . twig_get_attribute($this->env, $this->source, $context["flyers"], "image", [], "any", false, false, false, 42))), "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\" style=\"height:80px\">
\t\t\t\t\t\t\t\t<h2 class=\"mt-3 mb-3 text-center\">
\t\t\t\t\t\t\t\t\t";
// 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"))) {
// line 48
echo "\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["flyers"], "titreFr", [], "any", false, false, false, 48)), 0, 18), "html", null, true);
echo "...
\t\t\t\t\t\t\t\t\t";
} else {
// line 50
echo "\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["flyers"], "titreEn", [], "any", false, false, false, 50)), 0, 18), "html", null, true);
echo "...
\t\t\t\t\t\t\t\t\t";
}
// line 52
echo "\t\t\t\t\t\t\t\t</h2>
\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 55
((twig_get_attribute($this->env, $this->source, $context["flyers"], "date", [], "any", false, false, false, 55)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["flyers"], "date", [], "any", false, false, false, 55), "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 59
echo "\t\t\t\t\t\t\t<ul class=\"sidebar-service\">
\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t<a href=\"";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pdfflyer/" . twig_get_attribute($this->env, $this->source, $context["flyers"], "pdf", [], "any", false, false, false, 61))), "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>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t";
// line 66
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['flyers'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
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 72
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["flyers"]) || array_key_exists("flyers", $context) ? $context["flyers"] : (function () { throw new RuntimeError('Variable "flyers" does not exist.', 72, $this->source); })()));
echo "
\t\t\t\t</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/flyers.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 211 => 72, 206 => 69, 198 => 66, 189 => 61, 185 => 59, 179 => 55, 174 => 52, 168 => 50, 162 => 48, 160 => 47, 152 => 42, 149 => 41, 145 => 40, 140 => 37, 134 => 35, 132 => 34, 118 => 23, 110 => 20, 104 => 17, 96 => 11, 86 => 10, 74 => 7, 72 => 4, 69 => 3, 59 => 2, 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':25 }
\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<h1>{{'%flyersPosters%'|trans|capitalize}}</h1>
\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\">{{'%flyersPosters%'|trans|capitalize}}</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\t{% if flyers is empty %}
\t\t\t\t\t\t<h1 class=\"text-center\">{{'%Bientôtdisponible%'|trans}}</h1>
\t\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 flyers in flyers %}
\t\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t\t<img width=\"100%\" src=\"{{ asset('uploads/imageflyer/' ~ flyers.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\" style=\"height:80px\">
\t\t\t\t\t\t\t\t<h2 class=\"mt-3 mb-3 text-center\">
\t\t\t\t\t\t\t\t\t{% if app.request.locale=='fr' %}
\t\t\t\t\t\t\t\t\t\t{{ flyers.titreFr|capitalize|slice(0,18) }}...
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t{{ flyers.titreEn|capitalize|slice(0,18) }}...
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</h2>
\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\">{{ flyers.date ? flyers.date|date('d-m-Y') : '' }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{# <div> #}
\t\t\t\t\t\t\t<ul class=\"sidebar-service\">
\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t<a href=\"{{asset('uploads/pdfflyer/' ~ flyers.pdf)}}\" target=\"_blank\">{{'%LirePlus%'|trans}}<i class=\"icofont-simple-right ml-3\"></i>
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t</ul>
\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(flyers) }}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
{% endblock %}
", "frontend/frontindex/flyers.html.twig", "/home/urotunisuz/www/templates/frontend/frontindex/flyers.html.twig");
}
}