<?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;
/* front/elearning/elearning_ajax.html.twig */
class __TwigTemplate_8c84d4199a1d086efc788fa92d7b3f3b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/elearning/elearning_ajax.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/elearning/elearning_ajax.html.twig"));
// line 1
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 2
echo " <div class=\"forma forma_stage live forma_coach learning-item_bloc\">
<div class=\"image\"><a class=\"pointer_link\" href=\"";
// line 3
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);
echo "\"> </a>
<img src=\"";
// line 4
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);
echo "\">
<div class=\"formation_live coach\">
<div class=\"cat_live\"> #";
// line 6
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "category", [], "any", false, false, false, 6), "html", null, true);
echo "</div>
</div>
</div>
<div class=\"conten-formation\">
<div class=\"title-content-formation\">
<a href=\"";
// line 11
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);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "title", [], "any", false, false, false, 11), "html", null, true);
echo "</a>
</div>
<div class=\"location\">
<a href=\"";
// line 14
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);
echo "\"> avec <b> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "coach", [], "any", false, false, false, 14), "html", null, true);
echo " </b> </a>
</div>
<div class=\"sperateur\"></div>
<div class=\"expert\">";
// line 17
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);
echo "</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "front/elearning/elearning_ajax.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 83 => 17, 75 => 14, 67 => 11, 59 => 6, 54 => 4, 50 => 3, 47 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% for video in videos %}
<div class=\"forma forma_stage live forma_coach learning-item_bloc\">
<div class=\"image\"><a class=\"pointer_link\" href=\"{{ path('page_elearning_single', {slug: video.slug}) }}\"> </a>
<img src=\"{{ asset('uploads/'~video.image) }}\">
<div class=\"formation_live coach\">
<div class=\"cat_live\"> #{{ video.category }}</div>
</div>
</div>
<div class=\"conten-formation\">
<div class=\"title-content-formation\">
<a href=\"{{ path('page_elearning_single', {slug: video.slug}) }}\">{{ video.title }}</a>
</div>
<div class=\"location\">
<a href=\"{{ path('page_elearning_single', {slug: video.slug}) }}\"> avec <b> {{ video.coach }} </b> </a>
</div>
<div class=\"sperateur\"></div>
<div class=\"expert\">{{ video.description|excerpt(100) }}</div>
</div>
</div>
{% endfor %}", "front/elearning/elearning_ajax.html.twig", "/home/saco/subdomains/preprod/templates/front/elearning/elearning_ajax.html.twig");
}
}