var/cache/dev/twig/1c/1cf4835672be6bf918620e5de99a9f369f151d38c6ed0dd7740b1992f7bd14f7.php line 72

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. /* frontend/frontindex/flyers.html.twig */
  14. class __TwigTemplate_adb179d739b3509f3a26c3acaf8a6abed350dabef680b859ea4a2ad043541517 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.             'seo' => [$this, 'block_seo'],
  24.             'body' => [$this, 'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "frontend/frontindex/add.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros = $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/frontindex/flyers.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/frontindex/flyers.html.twig"));
  39.         $this->parent = $this->loadTemplate("frontend/frontindex/add.html.twig", "frontend/frontindex/flyers.html.twig", 1);
  40.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 2
  47.     public function block_seo($context, array $blocks = [])
  48.     {
  49.         $macros = $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
  54.         // line 3
  55.         echo "
  56. \t";
  57.         // line 4
  58.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("seo", ["page" => 25]));
  59.         // line 7
  60.         echo "
  61. ";
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 10
  68.     public function block_body($context, array $blocks = [])
  69.     {
  70.         $macros = $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  75.         // line 11
  76.         echo "
  77. \t<section class=\"breadcrumbs\" style=\"background-image:url('../front-assets/assets/img/breadcrumb-bg.jpg')\">
  78. \t\t<div class=\"container\">
  79. \t\t\t<div class=\"row\">
  80. \t\t\t\t<div class=\"col-lg-6 offset-lg-3 col-12\">
  81. \t\t\t\t\t<div class=\"breadcrumb-content\">
  82. \t\t\t\t\t\t<h1>";
  83.         // line 17
  84.         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%flyersPosters%")), "html", null, true);
  85.         echo "</h1>
  86. \t\t\t\t\t\t<ul class=\"breadcrumb-menu\">
  87. \t\t\t\t\t\t\t<li>
  88. \t\t\t\t\t\t\t\t<a href=\"";
  89.         // line 20
  90.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_accueil");
  91.         echo "\">";
  92.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%Home%"), "html", null, true);
  93.         echo "</a>
  94. \t\t\t\t\t\t\t\t<i class=\"fa fa-angle-double-right\"></i>
  95. \t\t\t\t\t\t\t</li>
  96. \t\t\t\t\t\t\t<li class=\"text-white\">";
  97.         // line 23
  98.         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%flyersPosters%")), "html", null, true);
  99.         echo "</li>
  100. \t\t\t\t\t\t</ul>
  101. \t\t\t\t\t</div>
  102. \t\t\t\t</div>
  103. \t\t\t</div>
  104. \t\t</div>
  105. \t</section>
  106. \t<section class=\"doctors-area doctor-page\">
  107. \t\t<div class=\"container\">
  108. \t\t\t<div class=\"row\">
  109. \t\t\t\t<div class=\"col-md-6 offset-md-3\">
  110. \t\t\t\t\t";
  111.         // line 34
  112.         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); })()))) {
  113.             // line 35
  114.             echo "\t\t\t\t\t\t<h1 class=\"text-center\">";
  115.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%Bientôtdisponible%"), "html", null, true);
  116.             echo "</h1>
  117. \t\t\t\t\t";
  118.         }
  119.         // line 37
  120.         echo "\t\t\t\t</div>
  121. \t\t\t</div>
  122. \t\t\t<div class=\"row\">
  123. \t\t\t\t";
  124.         // line 40
  125.         $context['_parent'] = $context;
  126.         $context['_seq'] = twig_ensure_traversable($context["flyers"]);
  127.         foreach ($context['_seq'] as $context["_key"] => $context["flyers"]) {
  128.             // line 41
  129.             echo "\t\t\t\t\t<div class=\"col-md-3\">
  130. \t\t\t\t\t\t<img width=\"100%\" src=\"";
  131.             // line 42
  132.             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);
  133.             echo "\">
  134. \t\t\t\t\t\t<div class=\"service-item mb-4\">
  135. \t\t\t\t\t\t\t<div class=\"icon align-items-center\" style=\"height:80px\">
  136. \t\t\t\t\t\t\t\t<h2 class=\"mt-3 mb-3 text-center\">
  137. \t\t\t\t\t\t\t\t\t";
  138.             // line 47
  139.             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"))) {
  140.                 // line 48
  141.                 echo "\t\t\t\t\t\t\t\t\t\t";
  142.                 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);
  143.                 echo "...
  144. \t\t\t\t\t\t\t\t\t";
  145.             } else {
  146.                 // line 50
  147.                 echo "\t\t\t\t\t\t\t\t\t\t";
  148.                 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);
  149.                 echo "...
  150. \t\t\t\t\t\t\t\t\t";
  151.             }
  152.             // line 52
  153.             echo "\t\t\t\t\t\t\t\t</h2>
  154. \t\t\t\t\t\t\t</div>
  155. \t\t\t\t\t\t\t<div class=\"content ml-4\">
  156. \t\t\t\t\t\t\t\t<p class=\"mb-4 ml-5\">";
  157.             // line 55
  158.             ((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 ("")));
  159.             echo "</p>
  160. \t\t\t\t\t\t\t</div>
  161. \t\t\t\t\t\t\t";
  162.             // line 59
  163.             echo "\t\t\t\t\t\t\t<ul class=\"sidebar-service\">
  164. \t\t\t\t\t\t\t\t<li>
  165. \t\t\t\t\t\t\t\t\t<a href=\"";
  166.             // line 61
  167.             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);
  168.             echo "\" target=\"_blank\">";
  169.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%LirePlus%"), "html", null, true);
  170.             echo "<i class=\"icofont-simple-right ml-3\"></i>
  171. \t\t\t\t\t\t\t\t\t</a>
  172. \t\t\t\t\t\t\t\t</li>
  173. \t\t\t\t\t\t\t</ul>
  174. \t\t\t\t\t\t\t";
  175.             // line 66
  176.             echo "\t\t\t\t\t\t</div>
  177. \t\t\t\t\t</div>
  178. \t\t\t\t";
  179.         }
  180.         $_parent = $context['_parent'];
  181.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flyers'], $context['_parent'], $context['loop']);
  182.         $context = array_intersect_key($context, $_parent) + $_parent;
  183.         // line 69
  184.         echo "\t\t\t</div>
  185. \t\t\t<div class=\"row\">
  186. \t\t\t\t<div class=\"col-12\">
  187. \t\t\t\t\t";
  188.         // line 72
  189.         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); })()));
  190.         echo "
  191. \t\t\t\t</div>
  192. \t\t\t</div>
  193. \t\t</div>
  194. \t</section>
  195. ";
  196.         
  197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  198.         
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  200.     }
  201.     public function getTemplateName()
  202.     {
  203.         return "frontend/frontindex/flyers.html.twig";
  204.     }
  205.     public function isTraitable()
  206.     {
  207.         return false;
  208.     }
  209.     public function getDebugInfo()
  210.     {
  211.         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,);
  212.     }
  213.     public function getSourceContext()
  214.     {
  215.         return new Source("{% extends 'frontend/frontindex/add.html.twig' %}
  216. {% block seo %}
  217. \t{{ render(path(
  218. \t\t'seo',
  219. \t\t{ 'page':25 }
  220. \t)) }}
  221. {% endblock %}
  222. {% block body %}
  223. \t<section class=\"breadcrumbs\" style=\"background-image:url('../front-assets/assets/img/breadcrumb-bg.jpg')\">
  224. \t\t<div class=\"container\">
  225. \t\t\t<div class=\"row\">
  226. \t\t\t\t<div class=\"col-lg-6 offset-lg-3 col-12\">
  227. \t\t\t\t\t<div class=\"breadcrumb-content\">
  228. \t\t\t\t\t\t<h1>{{'%flyersPosters%'|trans|capitalize}}</h1>
  229. \t\t\t\t\t\t<ul class=\"breadcrumb-menu\">
  230. \t\t\t\t\t\t\t<li>
  231. \t\t\t\t\t\t\t\t<a href=\"{{path('app_accueil')}}\">{{'%Home%'|trans}}</a>
  232. \t\t\t\t\t\t\t\t<i class=\"fa fa-angle-double-right\"></i>
  233. \t\t\t\t\t\t\t</li>
  234. \t\t\t\t\t\t\t<li class=\"text-white\">{{'%flyersPosters%'|trans|capitalize}}</li>
  235. \t\t\t\t\t\t</ul>
  236. \t\t\t\t\t</div>
  237. \t\t\t\t</div>
  238. \t\t\t</div>
  239. \t\t</div>
  240. \t</section>
  241. \t<section class=\"doctors-area doctor-page\">
  242. \t\t<div class=\"container\">
  243. \t\t\t<div class=\"row\">
  244. \t\t\t\t<div class=\"col-md-6 offset-md-3\">
  245. \t\t\t\t\t{% if flyers is empty %}
  246. \t\t\t\t\t\t<h1 class=\"text-center\">{{'%Bientôtdisponible%'|trans}}</h1>
  247. \t\t\t\t\t{% endif %}
  248. \t\t\t\t</div>
  249. \t\t\t</div>
  250. \t\t\t<div class=\"row\">
  251. \t\t\t\t{% for flyers in flyers %}
  252. \t\t\t\t\t<div class=\"col-md-3\">
  253. \t\t\t\t\t\t<img width=\"100%\" src=\"{{ asset('uploads/imageflyer/' ~ flyers.image) }}\">
  254. \t\t\t\t\t\t<div class=\"service-item mb-4\">
  255. \t\t\t\t\t\t\t<div class=\"icon align-items-center\" style=\"height:80px\">
  256. \t\t\t\t\t\t\t\t<h2 class=\"mt-3 mb-3 text-center\">
  257. \t\t\t\t\t\t\t\t\t{% if app.request.locale=='fr' %}
  258. \t\t\t\t\t\t\t\t\t\t{{ flyers.titreFr|capitalize|slice(0,18) }}...
  259. \t\t\t\t\t\t\t\t\t{% else %}
  260. \t\t\t\t\t\t\t\t\t\t{{ flyers.titreEn|capitalize|slice(0,18) }}...
  261. \t\t\t\t\t\t\t\t\t{% endif %}
  262. \t\t\t\t\t\t\t\t</h2>
  263. \t\t\t\t\t\t\t</div>
  264. \t\t\t\t\t\t\t<div class=\"content ml-4\">
  265. \t\t\t\t\t\t\t\t<p class=\"mb-4 ml-5\">{{ flyers.date ? flyers.date|date('d-m-Y') : '' }}</p>
  266. \t\t\t\t\t\t\t</div>
  267. \t\t\t\t\t\t\t{# <div> #}
  268. \t\t\t\t\t\t\t<ul class=\"sidebar-service\">
  269. \t\t\t\t\t\t\t\t<li>
  270. \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>
  271. \t\t\t\t\t\t\t\t\t</a>
  272. \t\t\t\t\t\t\t\t</li>
  273. \t\t\t\t\t\t\t</ul>
  274. \t\t\t\t\t\t\t{# </div> #}
  275. \t\t\t\t\t\t</div>
  276. \t\t\t\t\t</div>
  277. \t\t\t\t{% endfor %}
  278. \t\t\t</div>
  279. \t\t\t<div class=\"row\">
  280. \t\t\t\t<div class=\"col-12\">
  281. \t\t\t\t\t{{ knp_pagination_render(flyers) }}
  282. \t\t\t\t</div>
  283. \t\t\t</div>
  284. \t\t</div>
  285. \t</section>
  286. {% endblock %}
  287. ", "frontend/frontindex/flyers.html.twig", "/home/urotunisuz/www/templates/frontend/frontindex/flyers.html.twig");
  288.     }
  289. }