var/cache/dev/twig/5f/5f760b859edff833745d2b5eeb6dbc84418cbf81d70dcc6ab713f319ce476690.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/listNews.html.twig */
  14. class __TwigTemplate_c6241ed712e6d8d764311b272d5f0abb51579d73fb07e1e7bbd9c975181dbf93 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/listNews.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/listNews.html.twig"));
  39.         $this->parent = $this->loadTemplate("frontend/frontindex/add.html.twig", "frontend/frontindex/listNews.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 3
  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 4
  55.         echo "
  56. \t";
  57.         // line 5
  58.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("seo", ["page" => 21]));
  59.         // line 8
  60.         echo "
  61. ";
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 11
  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 12
  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<h4>";
  83.         // line 18
  84.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%News%"), "html", null, true);
  85.         echo "</h4>
  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 21
  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 24
  98.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%News%"), "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";
  111.         // line 35
  112.         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); })()))) {
  113.             // line 36
  114.             echo "\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";
  118.         }
  119.         // line 38
  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 41
  125.         $context['_parent'] = $context;
  126.         $context['_seq'] = twig_ensure_traversable($context["news"]);
  127.         foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
  128.             // line 42
  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 43
  132.             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);
  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\">
  136. \t\t\t\t\t\t\t\t<h4 class=\"mt-3 mb-3 text-center\">";
  137.             // line 47
  138.             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"))) {
  139.                 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);
  140.                 echo "...";
  141.             } else {
  142.                 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);
  143.                 echo "...";
  144.             }
  145.             // line 48
  146.             echo "\t\t\t\t\t\t\t\t</h4>
  147. \t\t\t\t\t\t\t</div>
  148. \t\t\t\t\t\t\t<div class=\"content ml-4\">
  149. \t\t\t\t\t\t\t\t<p class=\"mb-4 ml-5\">";
  150.             // line 51
  151.             ((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 ("")));
  152.             echo "</p>
  153. \t\t\t\t\t\t\t</div>
  154. \t\t\t\t\t\t\t";
  155.             // line 55
  156.             echo "                            <ul class=\"sidebar-service\">
  157.                                 <li><a href=\"";
  158.             // line 56
  159.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["news"], "content", [], "any", false, false, false, 56), "html", null, true);
  160.             echo "\" target=\"_blank\">";
  161.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%LirePlus%"), "html", null, true);
  162.             echo "<i class=\"icofont-simple-right ml-3\"></i></a></li>
  163. \t\t\t\t\t\t\t\t</ul>
  164. \t\t\t\t\t\t\t\t";
  165.             // line 59
  166.             echo "\t\t\t\t\t\t</div>
  167. \t\t\t\t\t</div>
  168. \t\t\t\t";
  169.         }
  170.         $_parent = $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['news'], $context['_parent'], $context['loop']);
  172.         $context = array_intersect_key($context, $_parent) + $_parent;
  173.         // line 62
  174.         echo "\t\t\t</div>
  175. \t\t\t<div class=\"row\">
  176. \t\t\t\t<div class=\"col-12\">
  177. \t\t\t\t\t";
  178.         // line 65
  179.         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); })()));
  180.         echo "
  181.                 </div>
  182. \t\t\t</div>
  183. \t\t</div>
  184. \t</section>
  185. ";
  186.         
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  188.         
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "frontend/frontindex/listNews.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         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,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% extends 'frontend/frontindex/add.html.twig' %}
  206. {% block seo %}
  207. \t{{ render(path(
  208. \t\t'seo',
  209. \t\t{ 'page':21 }
  210. \t)) }}
  211. {% endblock %}
  212. {% block body %}
  213. \t<section class=\"breadcrumbs\" style=\"background-image:url('../front-assets/assets/img/breadcrumb-bg.jpg')\">
  214. \t\t<div class=\"container\">
  215. \t\t\t<div class=\"row\">
  216. \t\t\t\t<div class=\"col-lg-6 offset-lg-3 col-12\">
  217. \t\t\t\t\t<div class=\"breadcrumb-content\">
  218. \t\t\t\t\t\t<h4>{{'%News%'|trans}}</h4>
  219. \t\t\t\t\t\t<ul class=\"breadcrumb-menu\">
  220. \t\t\t\t\t\t\t<li>
  221. \t\t\t\t\t\t\t\t<a href=\"{{path('app_accueil')}}\">{{'%Home%'|trans}}</a>
  222. \t\t\t\t\t\t\t\t<i class=\"fa fa-angle-double-right\"></i>
  223. \t\t\t\t\t\t\t</li>
  224. \t\t\t\t\t\t\t<li class=\"text-white\">{{'%News%'|trans}}</li>
  225. \t\t\t\t\t\t</ul>
  226. \t\t\t\t\t</div>
  227. \t\t\t\t</div>
  228. \t\t\t</div>
  229. \t\t</div>
  230. \t</section>
  231. \t<section class=\"doctors-area doctor-page\">
  232. \t\t<div class=\"container\">
  233. \t\t\t<div class=\"row\">
  234. \t\t\t\t<div class=\"col-md-6 offset-md-3\">
  235. \t\t\t\t{% if news is empty %}
  236. \t\t\t\t<h1 class=\"text-center\">{{'%Bientôtdisponible%'|trans}}</h1>
  237. \t\t\t\t{% endif %}
  238. \t\t\t\t</div>
  239. \t\t\t</div>
  240. \t\t\t<div class=\"row\">
  241. \t\t\t\t{% for news in news %}
  242. \t\t\t\t\t<div class=\"col-md-3\">
  243. \t\t\t\t\t\t<img width=\"100%\" src=\"{{ asset('uploads/imagesNews/' ~ news.image) }}\">
  244. \t\t\t\t\t\t<div class=\"service-item mb-4\">
  245. \t\t\t\t\t\t\t<div class=\"icon align-items-center\">
  246. \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 %}
  247. \t\t\t\t\t\t\t\t</h4>
  248. \t\t\t\t\t\t\t</div>
  249. \t\t\t\t\t\t\t<div class=\"content ml-4\">
  250. \t\t\t\t\t\t\t\t<p class=\"mb-4 ml-5\">{{ news.date ? news.date|date('d-m-Y') : '' }}</p>
  251. \t\t\t\t\t\t\t</div>
  252. \t\t\t\t\t\t\t{# <div> #}
  253.                             <ul class=\"sidebar-service\">
  254.                                 <li><a href=\"{{news.content}}\" target=\"_blank\">{{'%LirePlus%'|trans}}<i class=\"icofont-simple-right ml-3\"></i></a></li>
  255. \t\t\t\t\t\t\t\t</ul>
  256. \t\t\t\t\t\t\t\t{# </div> #}
  257. \t\t\t\t\t\t</div>
  258. \t\t\t\t\t</div>
  259. \t\t\t\t{% endfor %}
  260. \t\t\t</div>
  261. \t\t\t<div class=\"row\">
  262. \t\t\t\t<div class=\"col-12\">
  263. \t\t\t\t\t{{ knp_pagination_render(news) }}
  264.                 </div>
  265. \t\t\t</div>
  266. \t\t</div>
  267. \t</section>
  268. {% endblock %}
  269. ", "frontend/frontindex/listNews.html.twig", "/home/urotunisuz/www/templates/frontend/frontindex/listNews.html.twig");
  270.     }
  271. }