var/cache/dev/twig/61/61f72b09b2eb0cf7fff98657657be413a5b58d61016e4fdec2cf150f085aacb1.php line 49

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/recommandationInternational.html.twig */
  14. class __TwigTemplate_cfecda3eab501c02964e564579dd32289f0eab3069e1fd25c79c0fdc3dd50d6d 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/recommandationInternational.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/recommandationInternational.html.twig"));
  39.         $this->parent = $this->loadTemplate("frontend/frontindex/add.html.twig", "frontend/frontindex/recommandationInternational.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" => 12]));
  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=\"service-area p-5\">
  78. \t\t<div class=\"container\">
  79. \t\t\t<div class=\"row\">
  80. \t\t\t\t<div class=\"col-lg-8 offset-lg-2 col-12\">
  81. \t\t\t\t\t<div class=\"section-title\">
  82. \t\t\t\t\t\t<h1>";
  83.         // line 17
  84.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%recommandationInter%"), "html", null, true);
  85.         echo "</h1>
  86. \t\t\t\t\t</div>
  87. \t\t\t\t</div>
  88. \t\t\t</div>
  89. \t\t\t<div class=\"row\">
  90. \t\t\t\t";
  91.         // line 22
  92.         $context['_parent'] = $context;
  93.         $context['_seq'] = twig_ensure_traversable((isset($context["recommandations"]) || array_key_exists("recommandations", $context) ? $context["recommandations"] : (function () { throw new RuntimeError('Variable "recommandations" does not exist.', 22, $this->source); })()));
  94.         foreach ($context['_seq'] as $context["_key"] => $context["recommandation"]) {
  95.             // line 23
  96.             echo "\t\t\t\t\t<div class=\"col-md-4 wow fadeInUp\" data-wow-delay=\"0.1s\">
  97. \t\t\t\t\t\t<div class=\"single-doctor\">
  98. \t\t\t\t\t\t\t<div class=\"doctor-head\">
  99. \t\t\t\t\t\t\t\t<img src=\"";
  100.             // line 26
  101.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/imagesRecommandation/" . twig_get_attribute($this->env, $this->source, $context["recommandation"], "image", [], "any", false, false, false, 26))), "html", null, true);
  102.             echo "\" alt=\"";
  103.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "titreFr", [], "any", false, false, false, 26), "html", null, true);
  104.             echo "\">
  105. \t\t\t\t\t\t\t\t<div class=\"d-head-btn\">
  106. \t\t\t\t\t\t\t\t\t<a ";
  107.             // line 28
  108.             if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["recommandation"], "pdf", [], "any", false, false, false, 28), null))) {
  109.                 echo " href=\"";
  110.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pdfRecommandation/" . twig_get_attribute($this->env, $this->source, $context["recommandation"], "pdf", [], "any", false, false, false, 28))), "html", null, true);
  111.                 echo "\" ";
  112.             } elseif ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["recommandation"], "lien", [], "any", false, false, false, 28), null))) {
  113.                 echo " href=\"";
  114.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "lien", [], "any", false, false, false, 28), "html", null, true);
  115.                 echo "\" ";
  116.             }
  117.             echo " class=\"theme-btn primary\" target=\"_blank\">";
  118.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%LirePlus%"), "html", null, true);
  119.             echo "</a>
  120. \t\t\t\t\t\t\t\t</div>
  121. \t\t\t\t\t\t\t</div>
  122. \t\t\t\t\t\t\t<div class=\"doctor-content pt-3\">
  123. \t\t\t\t\t\t\t\t<h5";
  124.             // line 32
  125.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%recommandationInter%"), "html", null, true);
  126.             echo "</span ";
  127.             if (((-1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "titreEn", [], "any", false, false, false, 32)), 35)) || (-1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "titreFr", [], "any", false, false, false, 32)), 35)))) {
  128.                 echo "class=\"pb-4\"";
  129.             }
  130.             echo " > <a ";
  131.             if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["recommandation"], "pdf", [], "any", false, false, false, 32), null))) {
  132.                 echo "href=\"";
  133.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/pdfRecommandation/" . twig_get_attribute($this->env, $this->source, $context["recommandation"], "pdf", [], "any", false, false, false, 32))), "html", null, true);
  134.                 echo "\"";
  135.             } elseif ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["recommandation"], "lien", [], "any", false, false, false, 32), null))) {
  136.                 echo "href=\"";
  137.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "lien", [], "any", false, false, false, 32), "html", null, true);
  138.                 echo "\"";
  139.             }
  140.             echo " target=\"_blank\">";
  141.             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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "locale", [], "any", false, false, false, 32), "fr"))) {
  142.                 echo " ";
  143.                 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "titreFr", [], "any", false, false, false, 32)), "html", null, true);
  144.                 echo " ";
  145.             } elseif ((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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "locale", [], "any", false, false, false, 32), "en"))) {
  146.                 echo " ";
  147.                 echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["recommandation"], "titreEn", [], "any", false, false, false, 32)), "html", null, true);
  148.                 echo " ";
  149.             }
  150.             echo " </a> </h5> <span>></div>
  151. \t\t\t\t\t\t\t</div>
  152. \t\t\t\t\t\t</div>
  153. \t\t\t\t\t";
  154.         }
  155.         $_parent = $context['_parent'];
  156.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recommandation'], $context['_parent'], $context['loop']);
  157.         $context = array_intersect_key($context, $_parent) + $_parent;
  158.         // line 36
  159.         echo "\t\t\t\t</div>
  160. \t\t\t\t<div class=\"row\">
  161. \t\t\t\t\t<div class=\"col-12\">
  162. \t\t\t\t\t\t";
  163.         // line 39
  164.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["recommandations"]) || array_key_exists("recommandations", $context) ? $context["recommandations"] : (function () { throw new RuntimeError('Variable "recommandations" does not exist.', 39, $this->source); })()));
  165.         echo "
  166. \t\t\t\t\t</div>
  167. \t\t\t\t</div>
  168. \t\t\t</div>
  169. \t\t</section>
  170. \t";
  171.         
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  173.         
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  175.     }
  176.     public function getTemplateName()
  177.     {
  178.         return "frontend/frontindex/recommandationInternational.html.twig";
  179.     }
  180.     public function isTraitable()
  181.     {
  182.         return false;
  183.     }
  184.     public function getDebugInfo()
  185.     {
  186.         return array (  184 => 39,  179 => 36,  145 => 32,  128 => 28,  121 => 26,  116 => 23,  112 => 22,  104 => 17,  96 => 11,  86 => 10,  74 => 7,  72 => 4,  69 => 3,  59 => 2,  36 => 1,);
  187.     }
  188.     public function getSourceContext()
  189.     {
  190.         return new Source("{% extends 'frontend/frontindex/add.html.twig' %}
  191. {% block seo %}
  192. \t{{ render(path(
  193. \t\t'seo',
  194. \t\t{ 'page':12 }
  195. \t)) }}
  196. {% endblock %}
  197. {% block body %}
  198. \t<section class=\"service-area p-5\">
  199. \t\t<div class=\"container\">
  200. \t\t\t<div class=\"row\">
  201. \t\t\t\t<div class=\"col-lg-8 offset-lg-2 col-12\">
  202. \t\t\t\t\t<div class=\"section-title\">
  203. \t\t\t\t\t\t<h1>{{'%recommandationInter%'|trans}}</h1>
  204. \t\t\t\t\t</div>
  205. \t\t\t\t</div>
  206. \t\t\t</div>
  207. \t\t\t<div class=\"row\">
  208. \t\t\t\t{% for recommandation in recommandations  %}
  209. \t\t\t\t\t<div class=\"col-md-4 wow fadeInUp\" data-wow-delay=\"0.1s\">
  210. \t\t\t\t\t\t<div class=\"single-doctor\">
  211. \t\t\t\t\t\t\t<div class=\"doctor-head\">
  212. \t\t\t\t\t\t\t\t<img src=\"{{asset('uploads/imagesRecommandation/' ~ recommandation.image )}}\" alt=\"{{recommandation.titreFr}}\">
  213. \t\t\t\t\t\t\t\t<div class=\"d-head-btn\">
  214. \t\t\t\t\t\t\t\t\t<a {% if recommandation.pdf!=null %} href=\"{{asset('uploads/pdfRecommandation/' ~ recommandation.pdf )}}\" {% elseif recommandation.lien!=null %} href=\"{{recommandation.lien}}\" {% endif %} class=\"theme-btn primary\" target=\"_blank\">{{'%LirePlus%'|trans}}</a>
  215. \t\t\t\t\t\t\t\t</div>
  216. \t\t\t\t\t\t\t</div>
  217. \t\t\t\t\t\t\t<div class=\"doctor-content pt-3\">
  218. \t\t\t\t\t\t\t\t<h5{{'%recommandationInter%'|trans}}</span {% if recommandation.titreEn|length < 35 or recommandation.titreFr|length < 35 %}class=\"pb-4\"{% endif %} > <a {% if recommandation.pdf!=null %}href=\"{{asset('uploads/pdfRecommandation/' ~ recommandation.pdf )}}\"{% elseif recommandation.lien!=null %}href=\"{{recommandation.lien}}\"{% endif %} target=\"_blank\">{% if app.request.locale=='fr' %} {{recommandation.titreFr|capitalize}} {% elseif app.request.locale =='en' %} {{recommandation.titreEn|capitalize}} {% endif %} </a> </h5> <span>></div>
  219. \t\t\t\t\t\t\t</div>
  220. \t\t\t\t\t\t</div>
  221. \t\t\t\t\t{% endfor %}
  222. \t\t\t\t</div>
  223. \t\t\t\t<div class=\"row\">
  224. \t\t\t\t\t<div class=\"col-12\">
  225. \t\t\t\t\t\t{{ knp_pagination_render(recommandations) }}
  226. \t\t\t\t\t</div>
  227. \t\t\t\t</div>
  228. \t\t\t</div>
  229. \t\t</section>
  230. \t{% endblock %}
  231. ", "frontend/frontindex/recommandationInternational.html.twig", "/home/urotunisuz/www/templates/frontend/frontindex/recommandationInternational.html.twig");
  232.     }
  233. }