var/cache/dev/twig/6f/6fa38a6d6dafd1bd1a31015da4f8efe9.php line 33

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. /* front/elearning/elearning_ajax.html.twig */
  14. class __TwigTemplate_8c84d4199a1d086efc788fa92d7b3f3b 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->parent = false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros = $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/elearning/elearning_ajax.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/elearning/elearning_ajax.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable((isset($context["videos"]) || array_key_exists("videos", $context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.', 1, $this->source); })()));
  36.         foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  37.             // line 2
  38.             echo "    <div class=\"forma forma_stage live forma_coach learning-item_bloc\">
  39.         <div class=\"image\"><a class=\"pointer_link\" href=\"";
  40.             // line 3
  41.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_elearning_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["video"], "slug", [], "any", false, false, false, 3)]), "html", null, true);
  42.             echo "\"> </a>
  43.             <img src=\"";
  44.             // line 4
  45.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/" . twig_get_attribute($this->env, $this->source, $context["video"], "image", [], "any", false, false, false, 4))), "html", null, true);
  46.             echo "\">
  47.             <div class=\"formation_live coach\">
  48.                 <div class=\"cat_live\"> #";
  49.             // line 6
  50.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "category", [], "any", false, false, false, 6), "html", null, true);
  51.             echo "</div>
  52.             </div>
  53.         </div>
  54.         <div class=\"conten-formation\">
  55.             <div class=\"title-content-formation\">
  56.                 <a href=\"";
  57.             // line 11
  58.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_elearning_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["video"], "slug", [], "any", false, false, false, 11)]), "html", null, true);
  59.             echo "\">";
  60.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "title", [], "any", false, false, false, 11), "html", null, true);
  61.             echo "</a>
  62.             </div>
  63.             <div class=\"location\">
  64.                 <a href=\"";
  65.             // line 14
  66.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_elearning_single", ["slug" => twig_get_attribute($this->env, $this->source, $context["video"], "slug", [], "any", false, false, false, 14)]), "html", null, true);
  67.             echo "\"> avec <b> ";
  68.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "coach", [], "any", false, false, false, 14), "html", null, true);
  69.             echo " </b> </a>
  70.             </div>
  71.             <div class=\"sperateur\"></div>
  72.             <div class=\"expert\">";
  73.             // line 17
  74.             echo twig_escape_filter($this->env, $this->extensions['App\Twig\CmsExtension']->excerpt(twig_get_attribute($this->env, $this->source, $context["video"], "description", [], "any", false, false, false, 17), 100), "html", null, true);
  75.             echo "</div>
  76.         </div>
  77.     </div>
  78. ";
  79.         }
  80.         $_parent = $context['_parent'];
  81.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  82.         $context = array_intersect_key($context, $_parent) + $_parent;
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.     }
  88.     public function getTemplateName()
  89.     {
  90.         return "front/elearning/elearning_ajax.html.twig";
  91.     }
  92.     public function isTraitable()
  93.     {
  94.         return false;
  95.     }
  96.     public function getDebugInfo()
  97.     {
  98.         return array (  83 => 17,  75 => 14,  67 => 11,  59 => 6,  54 => 4,  50 => 3,  47 => 2,  43 => 1,);
  99.     }
  100.     public function getSourceContext()
  101.     {
  102.         return new Source("{% for video in videos %}
  103.     <div class=\"forma forma_stage live forma_coach learning-item_bloc\">
  104.         <div class=\"image\"><a class=\"pointer_link\" href=\"{{ path('page_elearning_single', {slug: video.slug}) }}\"> </a>
  105.             <img src=\"{{ asset('uploads/'~video.image) }}\">
  106.             <div class=\"formation_live coach\">
  107.                 <div class=\"cat_live\"> #{{ video.category }}</div>
  108.             </div>
  109.         </div>
  110.         <div class=\"conten-formation\">
  111.             <div class=\"title-content-formation\">
  112.                 <a href=\"{{ path('page_elearning_single', {slug: video.slug}) }}\">{{ video.title }}</a>
  113.             </div>
  114.             <div class=\"location\">
  115.                 <a href=\"{{ path('page_elearning_single', {slug: video.slug}) }}\"> avec <b> {{ video.coach }} </b> </a>
  116.             </div>
  117.             <div class=\"sperateur\"></div>
  118.             <div class=\"expert\">{{ video.description|excerpt(100) }}</div>
  119.         </div>
  120.     </div>
  121. {% endfor %}", "front/elearning/elearning_ajax.html.twig", "/home/saco/subdomains/preprod/templates/front/elearning/elearning_ajax.html.twig");
  122.     }
  123. }