<?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/Channel/show.html.twig */
class __TwigTemplate_4ccfa210fe45dea4dc6c7d5e5cbcd933b6646fa4d1c15d5d8ca5ab52e292c1ea extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'inner_content' => [$this, 'block_inner_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Channel/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Channel/show.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "Front/Channel/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " <div class=\"background-image-channel channel-page font-poppins\">
<div class=\"container py-3 px-0\">
<div class=\"col-12\" style=\"margin-top: 5rem;margin-bottom: 5rem;\">
<div class=\"row\">
<div class=\"col-12 col-md-8\">
<div class=\"d-flex flex-row\">
";
// line 13
$this->loadTemplate("Front/Channel/Image/_image_main_avatar.html.twig", "Front/Channel/show.html.twig", 13)->display(twig_array_merge($context, ["channel" => (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 13, $this->source); })()), "custom_class_channel" => "channel-avatar-presentation"]));
// line 14
echo "
";
// line 15
if ((twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 15, $this->source); })()), "name", [], "any", false, false, false, 15) || twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 15, $this->source); })()), "slogan", [], "any", false, false, false, 15))) {
// line 16
echo " <div class=\"ml-3 d-flex flex-column justify-content-center\">
";
// line 17
if (twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 17, $this->source); })()), "name", [], "any", false, false, false, 17)) {
// line 18
echo " <p class=\"v2-title-small full-black mb-0\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 18, $this->source); })()), "name", [], "any", false, false, false, 18), "html", null, true);
echo "</p>
";
}
// line 20
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 20, $this->source); })()), "slogan", [], "any", false, false, false, 20)) {
// line 21
echo " <div>
<p class=\"full-black mb-0\">";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 22, $this->source); })()), "slogan", [], "any", false, false, false, 22), "html", null, true);
echo "</p>
</div>
";
}
// line 25
echo " </div>
";
}
// line 27
echo " </div>
</div>
<div class=\"col-12 col-md-4 social-top\">
";
// line 30
$this->loadTemplate("Front/Channel/social-links.twig", "Front/Channel/show.html.twig", 30)->display(twig_array_merge($context, ["channel" => (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 30, $this->source); })()), "icon_color" => "black"]));
// line 31
echo " </div>
<div class=\"col-12 mt-4\">
<div class=\"row\">
";
// line 34
if (twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 34, $this->source); })()), "presentationTitle", [], "any", false, false, false, 34)) {
// line 35
echo " <div class=\"col-12\">
<p class=\"v2-title-big full-black mt-3 text-center\">";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 36, $this->source); })()), "presentationTitle", [], "any", false, false, false, 36), "html", null, true);
echo "</p>
</div>
";
}
// line 39
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 39, $this->source); })()), "presentationText", [], "any", false, false, false, 39)) {
// line 40
echo " <div class=\"col-12\">
<p class=\"mt-3 text-center white-space-pre-wrap\">";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 41, $this->source); })()), "presentationText", [], "any", false, false, false, 41), "html", null, true);
echo "</p>
</div>
";
}
// line 44
echo " <div class=\"col-12 mt-4 text-center text-md-left d-flex buttons\">
<a href=\"#our-trainings\" class=\"mt-2 btn-nellapp-v2 btn-nellap-v2-responsive-small\">";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.our_trainings.label"), "html", null, true);
echo "</a>
";
// line 46
if (((((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 46, $this->source); })()), "institutions", [], "any", false, false, false, 46)) > 0) || twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 46, $this->source); })()), "contactPhone", [], "any", false, false, false, 46)) || twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 46, $this->source); })()), "contactEmail", [], "any", false, false, false, 46)) || (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 46, $this->source); })()), "links", [], "any", false, false, false, 46)) > 0))) {
// line 47
echo " <a href=\"#contact-us\" class=\"mt-2 btn-nellapp-v2-secondary btn-nellap-v2-responsive-small\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.home.welcome.button.contact"), "html", null, true);
echo "</a>
";
}
// line 49
echo " </div>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 57
$this->displayParentBlock("content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 60
public function block_inner_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inner_content"));
// line 61
echo " ";
// line 62
echo " <div class=\"row\" id=\"our-trainings\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
<div class=\"section-title-type-formation\">
<h2 class=\"ml-0\">
";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.tabs.home.subtitles.trainings.label", ["%count%" => (isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 66, $this->source); })())]), "html", null, true);
echo "
</h2>
</div>
</div>
</div>
<div class=\"row flex-nowrap flex-sm-nowrap flex-md-nowrap flex-lg-nowrap flex-xl-wrap v3-cards\">
<div class=\"scrollable-bar-hidden\" style=\"--_grid-columns: 4\">
";
// line 74
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["last_four_trainings"]) || array_key_exists("last_four_trainings", $context) ? $context["last_four_trainings"] : (function () { throw new RuntimeError('Variable "last_four_trainings" does not exist.', 74, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["training"]) {
// line 75
echo " ";
echo $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("TrainingCard", ["training" => $context["training"]]);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['training'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 77
echo " </div>
</div>
";
// line 81
if (((isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 81, $this->source); })()) > 4)) {
// line 82
echo " <div class=\"col-12 mt-2 pb-5\">
<div class=\"all-trainings\">
<a href=\"";
// line 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_trainings", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 84, $this->source); })()), "id", [], "any", false, false, false, 84)]), "html", null, true);
echo "\" class=\"text-decoration-none\">
";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.actions.see_more.label", ["%count_displayed_item%" => twig_length_filter($this->env, (isset($context["last_four_trainings"]) || array_key_exists("last_four_trainings", $context) ? $context["last_four_trainings"] : (function () { throw new RuntimeError('Variable "last_four_trainings" does not exist.', 85, $this->source); })())), "%count_all_items%" => (isset($context["count_trainings"]) || array_key_exists("count_trainings", $context) ? $context["count_trainings"] : (function () { throw new RuntimeError('Variable "count_trainings" does not exist.', 85, $this->source); })())]), "html", null, true);
echo "
</a>
</div>
</div>
";
}
// line 90
echo "
";
// line 92
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 92, $this->source); })()), "galleryImages", [], "any", false, false, false, 92)) >= 5)) {
// line 93
echo " <div class=\"row gallery mt-4 justify-content-center text-center\">
";
// line 94
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 94, $this->source); })()), "galleryImages", [], "any", false, false, false, 94));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["galleryImage"]) {
// line 95
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 95) % 2) == 1)) {
// line 96
echo " ";
$context["imageTopColumn"] = true;
// line 97
echo " ";
}
// line 98
echo "
";
// line 99
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 99) % 2) == 0)) {
// line 100
echo " ";
$context["imageTopColumn"] = false;
// line 101
echo " ";
}
// line 102
echo "
";
// line 103
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 103) == 0)) {
// line 104
echo " <div class=\"col-12 col-md-6\">
<div data-size=\"";
// line 105
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\ImageRuntime')->getImageSize(twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 105)), "html", null, true);
echo "\" class=\"gallery-big-one gallery-image\"
style=\"background-image: url(";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("uploads/channel_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 106), "name", [], "any", false, false, false, 106)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 106), "extension", [], "any", false, false, false, 106))), "html", null, true);
echo ");\">
</div>
</div>
";
}
// line 110
echo "
";
// line 111
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 111) > 0) && (twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 111) < 5))) {
// line 112
echo " ";
if ((isset($context["imageTopColumn"]) || array_key_exists("imageTopColumn", $context) ? $context["imageTopColumn"] : (function () { throw new RuntimeError('Variable "imageTopColumn" does not exist.', 112, $this->source); })())) {
// line 113
echo " <div class=\"col-3 d-none d-md-block\">
<div data-size=\"";
// line 114
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\ImageRuntime')->getImageSize(twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 114)), "html", null, true);
echo "\" class=\"gallery-small-top gallery-image\"
style=\"background-image: url(";
// line 115
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("uploads/channel_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 115), "name", [], "any", false, false, false, 115)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 115), "extension", [], "any", false, false, false, 115))), "html", null, true);
echo ");\">
</div>
";
} else {
// line 118
echo " <div>
";
// line 119
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 119) == 4) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 119, $this->source); })()), "galleryImages", [], "any", false, false, false, 119)) > 5))) {
// line 120
echo " ";
$context["countMoreContent"] = (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 120, $this->source); })()), "galleryImages", [], "any", false, false, false, 120)) - 5);
// line 121
echo " <div class=\"more-content font-poppins font-weight-bold d-flex justify-content-center flex-column\">
<div class=\"counter\">+";
// line 122
echo twig_escape_filter($this->env, (isset($context["countMoreContent"]) || array_key_exists("countMoreContent", $context) ? $context["countMoreContent"] : (function () { throw new RuntimeError('Variable "countMoreContent" does not exist.', 122, $this->source); })()), "html", null, true);
echo "</div>
</div>
";
}
// line 125
echo "
<div data-size=\"";
// line 126
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\ImageRuntime')->getImageSize(twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 126)), "html", null, true);
echo "\" class=\"gallery-bottom-top gallery-image\"
style=\"background-image: url(";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("uploads/channel_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 127), "name", [], "any", false, false, false, 127)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 127), "extension", [], "any", false, false, false, 127))), "html", null, true);
echo ");\">
</div>
</div>
</div>
";
}
// line 132
echo " ";
}
// line 133
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 133) >= 5)) {
// line 134
echo " <div data-size=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\ImageRuntime')->getImageSize(twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 134)), "html", null, true);
echo "\" class=\"gallery-image d-none\"
style=\"background-image: url(";
// line 135
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("uploads/channel_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 135), "name", [], "any", false, false, false, 135)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["galleryImage"], "image", [], "any", false, false, false, 135), "extension", [], "any", false, false, false, 135))), "html", null, true);
echo ");\">
</div>
";
}
// line 138
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['galleryImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 139
echo " </div>
<div class=\"pswp\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
<div class=\"pswp__bg\"></div>
<div class=\"pswp__scroll-wrap\">
<div class=\"pswp__container\">
<div class=\"pswp__item\"></div>
<div class=\"pswp__item\"></div>
<div class=\"pswp__item\"></div>
</div>
<div class=\"pswp__ui pswp__ui--hidden\">
<div class=\"pswp__top-bar\">
<div class=\"pswp__counter\"></div>
<button class=\"pswp__button pswp__button--close\" title=\"Close (Esc)\"></button>
<button class=\"pswp__button pswp__button--fs\" title=\"Toggle fullscreen\"></button>
<button class=\"pswp__button pswp__button--zoom\" title=\"Zoom in/out\"></button>
<div class=\"pswp__preloader\">
<div class=\"pswp__preloader__icn\">
<div class=\"pswp__preloader__cut\">
<div class=\"pswp__preloader__donut\"></div>
</div>
</div>
</div>
</div>
<button class=\"pswp__button pswp__button--arrow--left\" title=\"Previous (arrow left)\">
</button>
<button class=\"pswp__button pswp__button--arrow--right\" title=\"Next (arrow right)\">
</button>
<div class=\"pswp__caption\">
<div class=\"pswp__caption__center\"></div>
</div>
</div>
</div>
</div>
";
}
// line 175
echo "
";
// line 177
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 177, $this->source); })()), "partners", [], "any", false, false, false, 177)) > 0)) {
// line 178
echo " <div class=\"row mt-5\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 180
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.partners.label"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 180, $this->source); })()), "partners", [], "any", false, false, false, 180)), "html", null, true);
echo ")</h2>
</div>
<div class=\"col-lg-12 col-md-12\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"slider-container\">
<ul class=\"slider-controls\" id=\"customize-controls-partner\" aria-label=\"Carousel Navigation\" tabindex=\"0\">
<li class=\"prev\" data-controls=\"prev\" aria-controls=\"customize\" tabindex=\"-1\">
<img src=\"";
// line 188
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/background-white-left.svg", "common"), "html", null, true);
echo "\" alt=\"Go to left\"/>
</li>
<li class=\"next\" data-controls=\"next\" aria-controls=\"customize\" tabindex=\"-1\">
<img src=\"";
// line 191
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/background-white-right.svg", "common"), "html", null, true);
echo "\" alt=\"Go to right\"/>
</li>
</ul>
<div class=\"my-slider partner-slider\">
";
// line 195
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 195, $this->source); })()), "partners", [], "any", false, false, false, 195));
foreach ($context['_seq'] as $context["_key"] => $context["partner"]) {
// line 196
echo " <div class=\"slider-item\">
<div class=\"slider-card\">
<img class=\"slider-img\" src=\"";
// line 198
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("uploads/channel_images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["partner"], "image", [], "any", false, false, false, 198), "name", [], "any", false, false, false, 198)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["partner"], "image", [], "any", false, false, false, 198), "extension", [], "any", false, false, false, 198))), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partner"], "name", [], "any", false, false, false, 198), "html", null, true);
echo "\"/>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partner'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 202
echo " </div>
</div>
</div>
</div>
</div>
</div>
";
}
// line 209
echo "
";
// line 211
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 211, $this->source); })()), "channelDescriptions", [], "any", false, false, false, 211)) > 0)) {
// line 212
echo " <div class=\"row channel-key-informations\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 214
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.some_key_information.label"), "html", null, true);
echo "</h2>
</div>
<div class=\"col-lg-12 col-md-12 font-poppins\">
<div class=\"row\">
";
// line 218
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 218, $this->source); })()), "channelDescriptions", [], "any", false, false, false, 218));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["channelDescription"]) {
// line 219
echo " <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
";
// line 220
$this->loadTemplate("Front/Channel/channel-description.html.twig", "Front/Channel/show.html.twig", 220)->display(twig_array_merge($context, ["channelDescription" => $context["channelDescription"]]));
// line 221
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['channelDescription'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 223
echo " </div>
</div>
</div>
";
}
// line 227
echo "
";
// line 229
echo " ";
if ((twig_length_filter($this->env, (isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 229, $this->source); })())) > 0)) {
// line 230
echo " <div class=\"row mt-3 channel-teachers\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">";
// line 232
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.teacher.label"), "html", null, true);
echo "
(";
// line 233
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 233, $this->source); })())), "html", null, true);
echo ")</h2>
</div>
";
// line 236
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 236, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["teacher"]) {
// line 237
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 237) < 5)) {
// line 238
echo " <div class=\"col-12\">
<div class=\"mt-3\">
";
// line 240
$this->loadTemplate("Front/Scholar/Card/teacher-channel.html.twig", "Front/Channel/show.html.twig", 240)->display(twig_array_merge($context, ["teacher" => $context["teacher"]]));
// line 241
echo " </div>
</div>
";
}
// line 244
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teacher'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 245
echo "
";
// line 246
if ((twig_length_filter($this->env, (isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 246, $this->source); })())) > 5)) {
// line 247
echo " <div class=\"col-12 div-more-teacher\">
<div class=\"row\">
";
// line 249
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 249, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["teacher"]) {
// line 250
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 250) >= 5)) {
// line 251
echo " <div class=\"col-12\">
<div class=\"mt-3\">
";
// line 253
$this->loadTemplate("Front/Scholar/Card/teacher-channel.html.twig", "Front/Channel/show.html.twig", 253)->display(twig_array_merge($context, ["teacher" => $context["teacher"]]));
// line 254
echo " </div>
</div>
";
}
// line 257
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teacher'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 258
echo " </div>
</div>
";
}
// line 261
echo " </div>
";
// line 263
if ((twig_length_filter($this->env, (isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 263, $this->source); })())) > 5)) {
// line 264
echo " <div class=\"row pb-2 mb-5\">
<div class=\"col-12\">
<div class=\"all-trainings\">
<button class=\"see-more-btn text-decoration-none\" id=\"teacher-see-more\">
";
// line 268
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.actions.see_more.label", ["%count_displayed_item%" => 5, "%count_all_items%" => twig_length_filter($this->env, (isset($context["teachers"]) || array_key_exists("teachers", $context) ? $context["teachers"] : (function () { throw new RuntimeError('Variable "teachers" does not exist.', 268, $this->source); })()))]), "html", null, true);
echo "
</button>
</div>
</div>
</div>
";
}
// line 274
echo " ";
}
// line 275
echo "
";
// line 277
echo " ";
if ((twig_length_filter($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 277, $this->source); })())) > 0)) {
// line 278
echo " <div class=\"row mt-3 ";
echo (((twig_length_filter($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 278, $this->source); })())) <= 5)) ? ("mb-5 pb-2") : (""));
echo "\">
<div class=\"col-12\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"div-title-between mt-5 mb-2\">
<h2 class=\"v2-title-small\">";
// line 283
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.training.show.sub_title.advice.label"), "html", null, true);
echo "
(";
// line 284
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 284, $this->source); })())), "html", null, true);
echo ")</h2>
<p class=\"\"><i class=\"far fa-star\"></i> ";
// line 285
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\Runtime\AdviceRuntime')->adviceAvgByChannel((isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 285, $this->source); })())), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"col-12\">
<div class=\"mt-3\">
";
// line 290
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 290, $this->source); })()), 0, 5));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
// line 291
echo " ";
$this->loadTemplate("Front/Scholar/Card/advice.html.twig", "Front/Channel/show.html.twig", 291)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
// line 292
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 293
echo "
<div class=\"div-more-advice\">
";
// line 295
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 295, $this->source); })()), 5));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["advice"]) {
// line 296
echo " ";
$this->loadTemplate("Front/Scholar/Card/advice.html.twig", "Front/Channel/show.html.twig", 296)->display(twig_array_merge($context, ["advice" => $context["advice"]]));
// line 297
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['advice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 298
echo " </div>
</div>
</div>
</div>
</div>
</div>
";
}
// line 305
echo "
";
// line 306
if ((twig_length_filter($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 306, $this->source); })())) > 5)) {
// line 307
echo " <div class=\"row pb-2 mb-5\">
<div class=\"col-12\">
<div class=\"all-trainings\">
<button class=\"see-more-btn text-decoration-none\" id=\"training-advice-see-more\">
";
// line 311
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.channel.show.actions.see_more.label", ["%count_displayed_item%" => 5, "%count_all_items%" => twig_length_filter($this->env, (isset($context["advices"]) || array_key_exists("advices", $context) ? $context["advices"] : (function () { throw new RuntimeError('Variable "advices" does not exist.', 311, $this->source); })()))]), "html", null, true);
echo "
</button>
</div>
</div>
</div>
";
}
// line 317
echo "
";
// line 318
$this->loadTemplate("Front/Channel/find-us-contact-us.html.twig", "Front/Channel/show.html.twig", 318)->display(twig_array_merge($context, ["channel" => (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 318, $this->source); })())]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Front/Channel/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 867 => 318, 864 => 317, 855 => 311, 849 => 307, 847 => 306, 844 => 305, 835 => 298, 821 => 297, 818 => 296, 801 => 295, 797 => 293, 783 => 292, 780 => 291, 763 => 290, 755 => 285, 751 => 284, 747 => 283, 738 => 278, 735 => 277, 732 => 275, 729 => 274, 720 => 268, 714 => 264, 712 => 263, 708 => 261, 703 => 258, 689 => 257, 684 => 254, 682 => 253, 678 => 251, 675 => 250, 658 => 249, 654 => 247, 652 => 246, 649 => 245, 635 => 244, 630 => 241, 628 => 240, 624 => 238, 621 => 237, 604 => 236, 598 => 233, 594 => 232, 590 => 230, 587 => 229, 584 => 227, 578 => 223, 563 => 221, 561 => 220, 558 => 219, 541 => 218, 534 => 214, 530 => 212, 527 => 211, 524 => 209, 515 => 202, 503 => 198, 499 => 196, 495 => 195, 488 => 191, 482 => 188, 469 => 180, 465 => 178, 462 => 177, 459 => 175, 421 => 139, 407 => 138, 401 => 135, 396 => 134, 393 => 133, 390 => 132, 382 => 127, 378 => 126, 375 => 125, 369 => 122, 366 => 121, 363 => 120, 361 => 119, 358 => 118, 352 => 115, 348 => 114, 345 => 113, 342 => 112, 340 => 111, 337 => 110, 330 => 106, 326 => 105, 323 => 104, 321 => 103, 318 => 102, 315 => 101, 312 => 100, 310 => 99, 307 => 98, 304 => 97, 301 => 96, 298 => 95, 281 => 94, 278 => 93, 275 => 92, 272 => 90, 264 => 85, 260 => 84, 256 => 82, 254 => 81, 248 => 77, 239 => 75, 235 => 74, 224 => 66, 218 => 62, 216 => 61, 206 => 60, 194 => 57, 184 => 49, 178 => 47, 176 => 46, 172 => 45, 169 => 44, 163 => 41, 160 => 40, 157 => 39, 151 => 36, 148 => 35, 146 => 34, 141 => 31, 139 => 30, 134 => 27, 130 => 25, 124 => 22, 121 => 21, 118 => 20, 112 => 18, 110 => 17, 107 => 16, 105 => 15, 102 => 14, 100 => 13, 91 => 6, 81 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ channel.name }} - {{ parent() }}{% endblock %}
{% block content %}
<div class=\"background-image-channel channel-page font-poppins\">
<div class=\"container py-3 px-0\">
<div class=\"col-12\" style=\"margin-top: 5rem;margin-bottom: 5rem;\">
<div class=\"row\">
<div class=\"col-12 col-md-8\">
<div class=\"d-flex flex-row\">
{% include 'Front/Channel/Image/_image_main_avatar.html.twig' with {'channel': channel, 'custom_class_channel': 'channel-avatar-presentation'} %}
{% if channel.name or channel.slogan %}
<div class=\"ml-3 d-flex flex-column justify-content-center\">
{% if channel.name %}
<p class=\"v2-title-small full-black mb-0\">{{ channel.name }}</p>
{% endif %}
{% if channel.slogan %}
<div>
<p class=\"full-black mb-0\">{{ channel.slogan }}</p>
</div>
{% endif %}
</div>
{% endif %}
</div>
</div>
<div class=\"col-12 col-md-4 social-top\">
{% include 'Front/Channel/social-links.twig' with {'channel': channel, 'icon_color': 'black'} %}
</div>
<div class=\"col-12 mt-4\">
<div class=\"row\">
{% if channel.presentationTitle %}
<div class=\"col-12\">
<p class=\"v2-title-big full-black mt-3 text-center\">{{ channel.presentationTitle }}</p>
</div>
{% endif %}
{% if channel.presentationText %}
<div class=\"col-12\">
<p class=\"mt-3 text-center white-space-pre-wrap\">{{ channel.presentationText }}</p>
</div>
{% endif %}
<div class=\"col-12 mt-4 text-center text-md-left d-flex buttons\">
<a href=\"#our-trainings\" class=\"mt-2 btn-nellapp-v2 btn-nellap-v2-responsive-small\">{{ 'front.channel.show.our_trainings.label'|trans }}</a>
{% if channel.institutions|length > 0 or channel.contactPhone or channel.contactEmail or channel.links|length > 0 %}
<a href=\"#contact-us\" class=\"mt-2 btn-nellapp-v2-secondary btn-nellap-v2-responsive-small\">{{ 'front.home.welcome.button.contact'|trans }}</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{ parent() }}
{% endblock content %}
{% block inner_content %}
{# Trainings #}
<div class=\"row\" id=\"our-trainings\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\">
<div class=\"section-title-type-formation\">
<h2 class=\"ml-0\">
{{ 'front.channel.show.tabs.home.subtitles.trainings.label'|trans({'%count%': count_trainings}) }}
</h2>
</div>
</div>
</div>
<div class=\"row flex-nowrap flex-sm-nowrap flex-md-nowrap flex-lg-nowrap flex-xl-wrap v3-cards\">
<div class=\"scrollable-bar-hidden\" style=\"--_grid-columns: 4\">
{% for training in last_four_trainings %}
{{ component('TrainingCard', { training: training }) }}
{% endfor %}
</div>
</div>
{% if count_trainings > 4 %}
<div class=\"col-12 mt-2 pb-5\">
<div class=\"all-trainings\">
<a href=\"{{ path('front_channel_trainings', {'id': channel.id}) }}\" class=\"text-decoration-none\">
{{ 'front.channel.show.actions.see_more.label'|trans({'%count_displayed_item%': last_four_trainings|length, '%count_all_items%': count_trainings}) }}
</a>
</div>
</div>
{% endif %}
{# Gallery #}
{% if channel.galleryImages|length >= 5 %}
<div class=\"row gallery mt-4 justify-content-center text-center\">
{% for galleryImage in channel.galleryImages %}
{% if loop.index0 % 2 == 1 %}
{% set imageTopColumn = true %}
{% endif %}
{% if loop.index0 % 2 == 0 %}
{% set imageTopColumn = false %}
{% endif %}
{% if loop.index0 == 0 %}
<div class=\"col-12 col-md-6\">
<div data-size=\"{{ galleryImage.image|image_size }}\" class=\"gallery-big-one gallery-image\"
style=\"background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});\">
</div>
</div>
{% endif %}
{% if loop.index0 > 0 and loop.index0 < 5 %}
{% if imageTopColumn %}
<div class=\"col-3 d-none d-md-block\">
<div data-size=\"{{ galleryImage.image|image_size }}\" class=\"gallery-small-top gallery-image\"
style=\"background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});\">
</div>
{% else %}
<div>
{% if loop.index0 == 4 and channel.galleryImages|length > 5 %}
{% set countMoreContent = channel.galleryImages|length - 5 %}
<div class=\"more-content font-poppins font-weight-bold d-flex justify-content-center flex-column\">
<div class=\"counter\">+{{ countMoreContent }}</div>
</div>
{% endif %}
<div data-size=\"{{ galleryImage.image|image_size }}\" class=\"gallery-bottom-top gallery-image\"
style=\"background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});\">
</div>
</div>
</div>
{% endif %}
{% endif %}
{% if loop.index0 >= 5 %}
<div data-size=\"{{ galleryImage.image|image_size }}\" class=\"gallery-image d-none\"
style=\"background-image: url({{ asset('uploads/channel_images/' ~ galleryImage.image.name ~ '.' ~ galleryImage.image.extension) }});\">
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"pswp\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
<div class=\"pswp__bg\"></div>
<div class=\"pswp__scroll-wrap\">
<div class=\"pswp__container\">
<div class=\"pswp__item\"></div>
<div class=\"pswp__item\"></div>
<div class=\"pswp__item\"></div>
</div>
<div class=\"pswp__ui pswp__ui--hidden\">
<div class=\"pswp__top-bar\">
<div class=\"pswp__counter\"></div>
<button class=\"pswp__button pswp__button--close\" title=\"Close (Esc)\"></button>
<button class=\"pswp__button pswp__button--fs\" title=\"Toggle fullscreen\"></button>
<button class=\"pswp__button pswp__button--zoom\" title=\"Zoom in/out\"></button>
<div class=\"pswp__preloader\">
<div class=\"pswp__preloader__icn\">
<div class=\"pswp__preloader__cut\">
<div class=\"pswp__preloader__donut\"></div>
</div>
</div>
</div>
</div>
<button class=\"pswp__button pswp__button--arrow--left\" title=\"Previous (arrow left)\">
</button>
<button class=\"pswp__button pswp__button--arrow--right\" title=\"Next (arrow right)\">
</button>
<div class=\"pswp__caption\">
<div class=\"pswp__caption__center\"></div>
</div>
</div>
</div>
</div>
{% endif %}
{# Partners #}
{% if channel.partners|length > 0 %}
<div class=\"row mt-5\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.channel.show.partners.label'|trans }} ({{ channel.partners|length }})</h2>
</div>
<div class=\"col-lg-12 col-md-12\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"slider-container\">
<ul class=\"slider-controls\" id=\"customize-controls-partner\" aria-label=\"Carousel Navigation\" tabindex=\"0\">
<li class=\"prev\" data-controls=\"prev\" aria-controls=\"customize\" tabindex=\"-1\">
<img src=\"{{ asset('build/common/background-white-left.svg', 'common') }}\" alt=\"Go to left\"/>
</li>
<li class=\"next\" data-controls=\"next\" aria-controls=\"customize\" tabindex=\"-1\">
<img src=\"{{ asset('build/common/background-white-right.svg', 'common') }}\" alt=\"Go to right\"/>
</li>
</ul>
<div class=\"my-slider partner-slider\">
{% for partner in channel.partners %}
<div class=\"slider-item\">
<div class=\"slider-card\">
<img class=\"slider-img\" src=\"{{ asset('uploads/channel_images/' ~ partner.image.name ~ '.' ~ partner.image.extension) }}\" alt=\"{{ partner.name }}\"/>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{# Key informations #}
{% if channel.channelDescriptions|length > 0 %}
<div class=\"row channel-key-informations\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.channel.show.some_key_information.label'|trans }}</h2>
</div>
<div class=\"col-lg-12 col-md-12 font-poppins\">
<div class=\"row\">
{% for channelDescription in channel.channelDescriptions %}
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 mt-4\">
{% include 'Front/Channel/channel-description.html.twig' with {'channelDescription' : channelDescription} %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{# Teachers #}
{% if teachers|length > 0 %}
<div class=\"row mt-3 channel-teachers\">
<div class=\"col-12\">
<h2 class=\"v2-title-small mt-5 mb-2\">{{ 'front.scholar.training.show.sub_title.teacher.label'|trans }}
({{ teachers|length }})</h2>
</div>
{% for teacher in teachers %}
{% if loop.index0 < 5 %}
<div class=\"col-12\">
<div class=\"mt-3\">
{% include 'Front/Scholar/Card/teacher-channel.html.twig' with {'teacher' : teacher} %}
</div>
</div>
{% endif %}
{% endfor %}
{% if teachers|length > 5 %}
<div class=\"col-12 div-more-teacher\">
<div class=\"row\">
{% for teacher in teachers %}
{% if loop.index0 >= 5 %}
<div class=\"col-12\">
<div class=\"mt-3\">
{% include 'Front/Scholar/Card/teacher-channel.html.twig' with {'teacher' : teacher} %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
</div>
{% if teachers|length > 5 %}
<div class=\"row pb-2 mb-5\">
<div class=\"col-12\">
<div class=\"all-trainings\">
<button class=\"see-more-btn text-decoration-none\" id=\"teacher-see-more\">
{{ 'front.channel.show.actions.see_more.label'|trans({'%count_displayed_item%': 5, '%count_all_items%': teachers|length}) }}
</button>
</div>
</div>
</div>
{% endif %}
{% endif %}
{# Comments #}
{% if advices|length > 0 %}
<div class=\"row mt-3 {{ advices|length <= 5 ? 'mb-5 pb-2' : '' }}\">
<div class=\"col-12\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"div-title-between mt-5 mb-2\">
<h2 class=\"v2-title-small\">{{ 'front.scholar.training.show.sub_title.advice.label'|trans }}
({{ advices|length }})</h2>
<p class=\"\"><i class=\"far fa-star\"></i> {{ channel|advice_avg_by_channel }}</p>
</div>
</div>
<div class=\"col-12\">
<div class=\"mt-3\">
{% for advice in advices|slice(0, 5) %}
{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
{% endfor %}
<div class=\"div-more-advice\">
{% for advice in advices|slice(5) %}
{% include 'Front/Scholar/Card/advice.html.twig' with {'advice' : advice} %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if advices|length > 5 %}
<div class=\"row pb-2 mb-5\">
<div class=\"col-12\">
<div class=\"all-trainings\">
<button class=\"see-more-btn text-decoration-none\" id=\"training-advice-see-more\">
{{ 'front.channel.show.actions.see_more.label'|trans({'%count_displayed_item%': 5, '%count_all_items%': advices|length}) }}
</button>
</div>
</div>
</div>
{% endif %}
{% include 'Front/Channel/find-us-contact-us.html.twig' with {'channel' : channel} %}
{% endblock inner_content %}
", "Front/Channel/show.html.twig", "/var/www/html/templates/Front/Channel/show.html.twig");
}
}