<?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;
/* pages/home.html.twig */
class __TwigTemplate_d8586cca38494d98bf37fb291b2f418f04701e89687c864eaf57ad9377b6235c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
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", "pages/home.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/home.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/home.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_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo " <section class=\"section-main rounded-grey-bg\">
<div class=\"container-fluid\">
<div class=\"row\">
";
// line 7
if ((((isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 7, $this->source); })()) && array_key_exists("lastViewedMedia", $context)) && (isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 7, $this->source); })()))) {
// line 8
echo " <div class=\"col-lg-7 d-flex flex-column\">
<h1 class=\"section-title\">Kontynuuj oglądanie</h1>
<h2 class=\"section-subtitle\">";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 10, $this->source); })()), "name", [], "any", false, false, false, 10), "html", null, true);
echo "</h2>
<p class=\"section-description\">";
// line 11
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 11, $this->source); })()), "author", [], "any", false, false, false, 11), "title", [], "any", false, false, false, 11), "html", null, true);
echo "</p>
<div class='position-relative'>
<a ";
// line 13
if ( !twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 13, $this->source); })()), "getIsLocked", [], "method", false, false, false, 13)) {
echo "href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 13, $this->source); })()), "uuid", [], "any", false, false, false, 13)]), "html", null, true);
echo "\" ";
}
echo " class=\"col-12 mb-3 mb-lg-0\">
<div class=\"white-placeholder overflow-hidden\">
<img src='";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 15, $this->source); })()), "image", [], "any", false, false, false, 15)), "html", null, true);
echo "' alt='' class='img-fluid module-img'/>
</div>
</a>
<div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
<button class=\"video-social-button media-favorite__button\" data-key='";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 19, $this->source); })()), "id", [], "any", false, false, false, 19), "html", null, true);
echo "'>
<div class=\"social-icon media-favorite__icon ";
// line 20
if ((true == twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 20, $this->source); })()), "id", [], "any", false, false, false, 20), (isset($context["allUserFavoritesMediaIds"]) || array_key_exists("allUserFavoritesMediaIds", $context) ? $context["allUserFavoritesMediaIds"] : (function () { throw new RuntimeError('Variable "allUserFavoritesMediaIds" does not exist.', 20, $this->source); })())))) {
echo " favourited ";
} else {
echo "favourite";
}
echo "\"></div>
</button>
<button
class=\"video-social-button\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
<div
class='social-icon email m-0'
></div>
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 35, $this->source); })()), "id", [], "any", false, false, false, 35), "html", null, true);
echo "'
data-link='";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, (isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 36, $this->source); })()), "uuid", [], "any", false, false, false, 36)])), "html", null, true);
echo "'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
</div>
";
}
// line 44
echo " ";
if ((( !(isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 44, $this->source); })()) || !(isset($context["lastViewedMedia"]) || array_key_exists("lastViewedMedia", $context) ? $context["lastViewedMedia"] : (function () { throw new RuntimeError('Variable "lastViewedMedia" does not exist.', 44, $this->source); })())) && (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 44, $this->source); })()))) {
// line 45
echo " <div class=\"";
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 45, $this->source); })())) {
echo " col-lg-7 ";
} else {
echo " col-lg-12 ";
}
echo " d-flex flex-column\">
<h1 class=\"section-title\">Ostatnio dodane</h1>
<h2 class=\"section-subtitle\">";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 47, $this->source); })()), "name", [], "any", false, false, false, 47), "html", null, true);
echo "</h2>
<p class=\"section-description\">";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 48, $this->source); })()), "author", [], "any", false, false, false, 48), "title", [], "any", false, false, false, 48), "html", null, true);
echo "</p>
<div class='position-relative'>
<a ";
// line 50
if ( !twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 50, $this->source); })()), "getIsLocked", [], "method", false, false, false, 50)) {
echo "href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 50, $this->source); })()), "uuid", [], "any", false, false, false, 50)]), "html", null, true);
echo "\" ";
}
echo " class=\"col-12 mb-3 mb-lg-0\">
<div class=\"white-placeholder overflow-hidden\">
<img src='";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 52, $this->source); })()), "image", [], "any", false, false, false, 52)), "html", null, true);
echo "' alt='' class='img-fluid module-img'/>
</div>
</a>
<div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
<button
class=\"video-social-button\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 65, $this->source); })()), "id", [], "any", false, false, false, 65), "html", null, true);
echo "'
data-link='";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, (isset($context["lastAddedMedia"]) || array_key_exists("lastAddedMedia", $context) ? $context["lastAddedMedia"] : (function () { throw new RuntimeError('Variable "lastAddedMedia" does not exist.', 66, $this->source); })()), "uuid", [], "any", false, false, false, 66)])), "html", null, true);
echo "'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
</div>
";
}
// line 74
echo " ";
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 74, $this->source); })())) {
// line 75
echo " <div class=\"col-lg-5 d-flex flex-column\">
<h1 class=\"section-title\">
<span>
<img class=\"fav-star-icon\" src=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/star-full-black.svg"), "html", null, true);
echo "\" alt=\"star\"/>
</span>
Ulubione
</h1>
<div class=\"fav-holder flex-grow-1\">
<div class='fav-list'>
";
// line 84
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["favoriteMedia"]) || array_key_exists("favoriteMedia", $context) ? $context["favoriteMedia"] : (function () { throw new RuntimeError('Variable "favoriteMedia" does not exist.', 84, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["fmedia"]) {
// line 85
echo " <div class=\"fav-box\">
<a ";
// line 86
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fmedia"], "media", [], "any", false, false, false, 86), "getIsLocked", [], "method", false, false, false, 86)) {
echo "href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fmedia"], "media", [], "any", false, false, false, 86), "uuid", [], "any", false, false, false, 86)]), "html", null, true);
echo "\" ";
}
echo " class='pe-3'>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fmedia"], "media", [], "any", false, false, false, 86), "name", [], "any", false, false, false, 86), "html", null, true);
echo "</a>
<div class=\"d-flex justify-content-end\">
<button class=\"video-social-button media-favorite__button m-0\" data-key='";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fmedia"], "media", [], "any", false, false, false, 88), "id", [], "any", false, false, false, 88), "html", null, true);
echo "'>
<div class=\"social-icon media-favorite__icon ";
// line 89
if ((true == twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fmedia"], "media", [], "any", false, false, false, 89), "id", [], "any", false, false, false, 89), (isset($context["allUserFavoritesMediaIds"]) || array_key_exists("allUserFavoritesMediaIds", $context) ? $context["allUserFavoritesMediaIds"] : (function () { throw new RuntimeError('Variable "allUserFavoritesMediaIds" does not exist.', 89, $this->source); })())))) {
echo " favourited ";
} else {
echo "favourite";
}
echo "\"></div>
</button>
<button
class=\"video-social-button m-0\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
<div
class='social-icon email m-0'
></div>
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["fmedia"], "id", [], "any", false, false, false, 104), "html", null, true);
echo "'
data-link='";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fmedia"], "media", [], "any", false, false, false, 105), "uuid", [], "any", false, false, false, 105)])), "html", null, true);
echo "'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fmedia'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 112
echo " </div>
<div class='fav-empty p-3 ";
// line 113
if (twig_length_filter($this->env, (isset($context["favoriteMedia"]) || array_key_exists("favoriteMedia", $context) ? $context["favoriteMedia"] : (function () { throw new RuntimeError('Variable "favoriteMedia" does not exist.', 113, $this->source); })()))) {
echo " d-none ";
}
echo "'>
<img src='";
// line 114
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/add_to_favorite.png"), "html", null, true);
echo "' class='mb-3'/>
<img src='";
// line 115
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favorite_star.png"), "html", null, true);
echo "' />
</div>
</div>
</div>
";
}
// line 120
echo " <div class=\"col-12\">
<p class=\"section-description my-4\">Inni użytkownicy wyświetlają również:</p>
<div class=\"row\">
";
// line 123
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["suggestedMedia"]) || array_key_exists("suggestedMedia", $context) ? $context["suggestedMedia"] : (function () { throw new RuntimeError('Variable "suggestedMedia" does not exist.', 123, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["smedia"]) {
// line 124
echo " <div class='position-relative col-lg-4 col-sm-6 mb-3'>
<a ";
// line 125
if ( !twig_get_attribute($this->env, $this->source, $context["smedia"], "getIsLocked", [], "method", false, false, false, 125)) {
echo "href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, $context["smedia"], "uuid", [], "any", false, false, false, 125)]), "html", null, true);
echo "\" ";
}
echo " class=\"\">
<div class=\"white-placeholder overflow-hidden\">
<img src='";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, $context["smedia"], "image", [], "any", false, false, false, 127)), "html", null, true);
echo "' alt='' class='img-fluid module-img'/>
</div>
<p class=\"next-module-title\">";
// line 130
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smedia"], "name", [], "any", false, false, false, 130), "html", null, true);
echo "</p>
<p class=\"next-module-author\">";
// line 131
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["smedia"], "author", [], "any", false, false, false, 131), "title", [], "any", false, false, false, 131), "html", null, true);
echo "</p>
";
// line 132
if (twig_get_attribute($this->env, $this->source, $context["smedia"], "timeToSpend", [], "any", false, false, false, 132)) {
// line 133
echo " <div class=\"next-module-time\">
<img src=\"";
// line 134
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/time.svg"), "html", null, true);
echo "\" class=\"icon-time\" alt=\"\"/>
";
// line 135
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smedia"], "timeToSpend", [], "any", false, false, false, 135), "html", null, true);
echo " min
</div>
";
}
// line 138
echo " </a>
<div class=\"video-social-buttons-holder\">
";
// line 140
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 140, $this->source); })())) {
// line 141
echo " <button class=\"video-social-button media-favorite__button\" data-key='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smedia"], "id", [], "any", false, false, false, 141), "html", null, true);
echo "'>
<div class=\"social-icon media-favorite__icon ";
// line 142
if ((true == twig_in_filter(twig_get_attribute($this->env, $this->source, $context["smedia"], "id", [], "any", false, false, false, 142), (isset($context["allUserFavoritesMediaIds"]) || array_key_exists("allUserFavoritesMediaIds", $context) ? $context["allUserFavoritesMediaIds"] : (function () { throw new RuntimeError('Variable "allUserFavoritesMediaIds" does not exist.', 142, $this->source); })())))) {
echo " favourited ";
} else {
echo "favourite";
}
echo "\"></div>
</button>
";
}
// line 145
echo " <button
class=\"video-social-button m-0\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
";
// line 150
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 150, $this->source); })())) {
// line 151
echo " <div
class='social-icon email m-0'
></div>
";
}
// line 156
echo " </div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='";
// line 160
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["smedia"], "id", [], "any", false, false, false, 160), "html", null, true);
echo "'
data-link='";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env, $this->source, $context["smedia"], "uuid", [], "any", false, false, false, 161)])), "html", null, true);
echo "'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['smedia'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo " </div>
</div>
</div>
</div>
</section>
<section class=\"mb-3\">
<div class=\"container-fluid p-0\">
<div class=\"row\">
<div class=\"col-sm-6 mb-sm-0 mb-3\">
<a href='";
// line 178
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("exam_all");
echo "' class=\"big-button-blue\">SYMULACJE EGZAMINÓW CEM</a>
</div>
<div class=\"col-sm-6\">
<a href=\"";
// line 181
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("exam-with-key_all");
echo "\" class=\"big-button-blue\">EGZAMINY CEM Z KLUCZEM</a>
</div>
</div>
</div>
</section>
<section class=\"section-module\">
<div class=\"container-fluid p-0\">
<h1 class=\"section-title mb-4\">Moduły edukacyjne</h1>
";
// line 190
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["modules"]) || array_key_exists("modules", $context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.', 190, $this->source); })()), function ($__m__) use ($context, $macros) { $context["m"] = $__m__; return (twig_get_attribute($this->env, $this->source, (isset($context["m"]) || array_key_exists("m", $context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.', 190, $this->source); })()), "isEnabled", [], "any", false, false, false, 190) && (twig_get_attribute($this->env, $this->source, (isset($context["m"]) || array_key_exists("m", $context) ? $context["m"] : (function () { throw new RuntimeError('Variable "m" does not exist.', 190, $this->source); })()), "isLocked", [], "any", false, false, false, 190) == false)); }));
$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["module"]) {
// line 191
echo " <div class=\"rounded-grey-bg blue-border module-box\">
<div class=\"row\">
<div class=\"col-lg-5\">
<div class=\"container-fluid\">
<div class=\"row\">
";
// line 196
$context["authors"] = [];
// line 197
echo " ";
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 197, $this->source); })())) {
// line 198
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "mediaForViewForUser", [0 => 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.', 198, $this->source); })()), "user", [], "any", false, false, false, 198)], "method", false, false, false, 198));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 199
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 199) && !twig_length_filter($this->env, twig_array_filter($this->env, (isset($context["authors"]) || array_key_exists("authors", $context) ? $context["authors"] : (function () { throw new RuntimeError('Variable "authors" does not exist.', 199, $this->source); })()), function ($__a__) use ($context, $macros) { $context["a"] = $__a__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 199, $this->source); })()), "id", [], "any", false, false, false, 199) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 199), "id", [], "any", false, false, false, 199)); })))) {
// line 200
echo " ";
$context["authors"] = twig_array_merge((isset($context["authors"]) || array_key_exists("authors", $context) ? $context["authors"] : (function () { throw new RuntimeError('Variable "authors" does not exist.', 200, $this->source); })()), [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 200), "id", [], "any", false, false, false, 200) => twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 200)]);
// line 201
echo " ";
}
// line 202
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 203
echo " ";
} else {
// line 204
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "mediaForViewForAnonymous", [], "method", false, false, false, 204));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 205
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 205) && !twig_length_filter($this->env, twig_array_filter($this->env, (isset($context["authors"]) || array_key_exists("authors", $context) ? $context["authors"] : (function () { throw new RuntimeError('Variable "authors" does not exist.', 205, $this->source); })()), function ($__a__) use ($context, $macros) { $context["a"] = $__a__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 205, $this->source); })()), "id", [], "any", false, false, false, 205) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 205), "id", [], "any", false, false, false, 205)); })))) {
// line 206
echo " ";
$context["authors"] = twig_array_merge((isset($context["authors"]) || array_key_exists("authors", $context) ? $context["authors"] : (function () { throw new RuntimeError('Variable "authors" does not exist.', 206, $this->source); })()), [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 206), "id", [], "any", false, false, false, 206) => twig_get_attribute($this->env, $this->source, $context["media"], "author", [], "any", false, false, false, 206)]);
// line 207
echo " ";
}
// line 208
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 209
echo " ";
}
// line 210
echo "
<div class=\"col-12 d-flex justify-content-center\">
";
// line 212
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["authors"]) || array_key_exists("authors", $context) ? $context["authors"] : (function () { throw new RuntimeError('Variable "authors" does not exist.', 212, $this->source); })()), 0, 2));
foreach ($context['_seq'] as $context["_key"] => $context["author"]) {
// line 213
echo " <div class=\"module-author\">
";
// line 214
if (twig_get_attribute($this->env, $this->source, $context["author"], "image", [], "any", false, false, false, 214)) {
// line 215
echo " <img class=\"module-author-img\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, $context["author"], "image", [], "any", false, false, false, 215)), "html", null, true);
echo "\" alt=\"\"/>
";
} else {
// line 217
echo " <img class=\"module-author-img\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/avatar.svg"), "html", null, true);
echo "\" alt=\"\"/>
";
}
// line 219
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['author'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 221
echo " </div>
<div class=\"col-12 d-flex justify-content-center\">
<div class=\"mt-4 d-inline-flex\">
";
// line 224
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["authors"]) || array_key_exists("authors", $context) ? $context["authors"] : (function () { throw new RuntimeError('Variable "authors" does not exist.', 224, $this->source); })()), 0, 2));
foreach ($context['_seq'] as $context["_key"] => $context["author"]) {
// line 225
echo " <span class=\"module-author-name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["author"], "title", [], "any", false, false, false, 225), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['author'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 227
echo " </div>
</div>
</div>
</div>
</div>
<div class=\"col-lg-7\">
<a href=\"";
// line 233
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("modules_show", ["uuid" => twig_get_attribute($this->env, $this->source, $context["module"], "uuid", [], "any", false, false, false, 233)]), "html", null, true);
echo "\" class=\"col-lg-3 col-sm-6 mb-3\">
<p class=\"module-title\">";
// line 234
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["module"], "name", [], "any", false, false, false, 234), "html", null, true);
echo "</p>
<p class=\"module-subtitle\">";
// line 235
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["module"], "description", [], "any", false, false, false, 235), "html", null, true);
echo "</p>
</a>
<div class=\"d-flex justify-content-end flex-column flex-sm-row\">
";
// line 238
$context["timeToSpend"] = 0;
// line 239
echo " ";
$context["types"] = [];
// line 240
echo " ";
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 240, $this->source); })())) {
// line 241
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "mediaForViewForUser", [0 => 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.', 241, $this->source); })()), "user", [], "any", false, false, false, 241)], "method", false, false, false, 241));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 242
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["media"], "timeToSpend", [], "any", false, false, false, 242)) {
// line 243
echo " ";
$context["timeToSpend"] = ((isset($context["timeToSpend"]) || array_key_exists("timeToSpend", $context) ? $context["timeToSpend"] : (function () { throw new RuntimeError('Variable "timeToSpend" does not exist.', 243, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["media"], "timeToSpend", [], "any", false, false, false, 243));
// line 244
echo " ";
}
// line 245
echo "
";
// line 246
if ((false == twig_in_filter(twig_get_attribute($this->env, $this->source, $context["media"], "getType", [0 => true], "method", false, false, false, 246), (isset($context["types"]) || array_key_exists("types", $context) ? $context["types"] : (function () { throw new RuntimeError('Variable "types" does not exist.', 246, $this->source); })())))) {
// line 247
echo " ";
$context["types"] = twig_array_merge((isset($context["types"]) || array_key_exists("types", $context) ? $context["types"] : (function () { throw new RuntimeError('Variable "types" does not exist.', 247, $this->source); })()), [0 => twig_get_attribute($this->env, $this->source, $context["media"], "getType", [0 => true], "method", false, false, false, 247)]);
// line 248
echo " <button class=\"module-button text-uppercase\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getType", [0 => true], "method", false, false, false, 248), "html", null, true);
echo "</button>
";
}
// line 250
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 252
echo " ";
} else {
// line 253
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "mediaForViewForAnonymous", [], "method", false, false, false, 253));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 254
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["media"], "timeToSpend", [], "any", false, false, false, 254)) {
// line 255
echo " ";
$context["timeToSpend"] = ((isset($context["timeToSpend"]) || array_key_exists("timeToSpend", $context) ? $context["timeToSpend"] : (function () { throw new RuntimeError('Variable "timeToSpend" does not exist.', 255, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["media"], "timeToSpend", [], "any", false, false, false, 255));
// line 256
echo " ";
}
// line 257
echo "
";
// line 258
if ((false == twig_in_filter(twig_get_attribute($this->env, $this->source, $context["media"], "getType", [0 => true], "method", false, false, false, 258), (isset($context["types"]) || array_key_exists("types", $context) ? $context["types"] : (function () { throw new RuntimeError('Variable "types" does not exist.', 258, $this->source); })())))) {
// line 259
echo " ";
$context["types"] = twig_array_merge((isset($context["types"]) || array_key_exists("types", $context) ? $context["types"] : (function () { throw new RuntimeError('Variable "types" does not exist.', 259, $this->source); })()), [0 => twig_get_attribute($this->env, $this->source, $context["media"], "getType", [0 => true], "method", false, false, false, 259)]);
// line 260
echo " <button class=\"module-button text-uppercase\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getType", [0 => true], "method", false, false, false, 260), "html", null, true);
echo "</button>
";
}
// line 262
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 264
echo " ";
}
// line 265
echo "
<button class=\"next-module-time module-button\">
<img src=\"";
// line 267
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/time.svg"), "html", null, true);
echo "\" class=\"icon-time\" alt=\"\"/>
";
// line 268
echo twig_escape_filter($this->env, (isset($context["timeToSpend"]) || array_key_exists("timeToSpend", $context) ? $context["timeToSpend"] : (function () { throw new RuntimeError('Variable "timeToSpend" does not exist.', 268, $this->source); })()), "html", null, true);
echo " min
</button>
</div>
</div>
<!--Collapsed content-->
<div class=\"container-fluid collapse mt-4\" id=\"morecontent-";
// line 273
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["module"], "id", [], "any", false, false, false, 273), "html", null, true);
echo "\" >
<div class=\"row\">
";
// line 275
if ((isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 275, $this->source); })())) {
// line 276
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "mediaForViewForUser", [0 => 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.', 276, $this->source); })()), "user", [], "any", false, false, false, 276)], "method", false, false, false, 276));
$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["media"]) {
// line 277
echo " ";
echo twig_include($this->env, $context, "pages/common/_media-preview-item.html.twig", ["media" => $context["media"]]);
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['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 279
echo "
";
// line 280
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "surveysFormViewForUser", [0 => 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.', 280, $this->source); })()), "user", [], "any", false, false, false, 280)], "method", false, false, false, 280));
$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["survey"]) {
// line 281
echo " ";
echo twig_include($this->env, $context, "pages/common/_survey-preview-item.html.twig");
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['survey'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 283
echo " ";
} else {
// line 284
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "mediaForViewForAnonymous", [], "method", false, false, false, 284));
$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["media"]) {
// line 285
echo " ";
echo twig_include($this->env, $context, "pages/common/_media-preview-item.html.twig", ["media" => $context["media"]]);
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['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 287
echo "
";
// line 288
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["module"], "surveysFormViewForAnonymous", [], "method", false, false, false, 288));
$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["survey"]) {
// line 289
echo " ";
echo twig_include($this->env, $context, "pages/common/_survey-preview-item.html.twig");
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['survey'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 291
echo " ";
}
// line 292
echo "
</div>
</div>
</div>
<button class=\"more-content-btn\" data-bs-toggle=\"collapse\" href=\"#morecontent-";
// line 296
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["module"], "id", [], "any", false, false, false, 296), "html", null, true);
echo "\" aria-expanded=\"false\">
<div class=\"more-content-btn-img\"></div>
</button>
</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['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 301
echo " </div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "pages/home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 875 => 301, 856 => 296, 850 => 292, 847 => 291, 830 => 289, 813 => 288, 810 => 287, 793 => 285, 775 => 284, 772 => 283, 755 => 281, 738 => 280, 735 => 279, 718 => 277, 700 => 276, 698 => 275, 693 => 273, 685 => 268, 681 => 267, 677 => 265, 674 => 264, 667 => 262, 661 => 260, 658 => 259, 656 => 258, 653 => 257, 650 => 256, 647 => 255, 644 => 254, 639 => 253, 636 => 252, 629 => 250, 623 => 248, 620 => 247, 618 => 246, 615 => 245, 612 => 244, 609 => 243, 606 => 242, 601 => 241, 598 => 240, 595 => 239, 593 => 238, 587 => 235, 583 => 234, 579 => 233, 571 => 227, 562 => 225, 558 => 224, 553 => 221, 546 => 219, 540 => 217, 534 => 215, 532 => 214, 529 => 213, 525 => 212, 521 => 210, 518 => 209, 512 => 208, 509 => 207, 506 => 206, 503 => 205, 498 => 204, 495 => 203, 489 => 202, 486 => 201, 483 => 200, 480 => 199, 475 => 198, 472 => 197, 470 => 196, 463 => 191, 446 => 190, 434 => 181, 428 => 178, 416 => 168, 403 => 161, 399 => 160, 393 => 156, 386 => 151, 384 => 150, 377 => 145, 367 => 142, 362 => 141, 360 => 140, 356 => 138, 350 => 135, 346 => 134, 343 => 133, 341 => 132, 337 => 131, 333 => 130, 327 => 127, 318 => 125, 315 => 124, 311 => 123, 306 => 120, 298 => 115, 294 => 114, 288 => 113, 285 => 112, 272 => 105, 268 => 104, 246 => 89, 242 => 88, 231 => 86, 228 => 85, 224 => 84, 215 => 78, 210 => 75, 207 => 74, 196 => 66, 192 => 65, 176 => 52, 167 => 50, 162 => 48, 158 => 47, 148 => 45, 145 => 44, 134 => 36, 130 => 35, 108 => 20, 104 => 19, 97 => 15, 88 => 13, 83 => 11, 79 => 10, 75 => 8, 73 => 7, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<section class=\"section-main rounded-grey-bg\">
<div class=\"container-fluid\">
<div class=\"row\">
{% if lastViewedMedia and lastViewedMedia is defined and isLogged %}
<div class=\"col-lg-7 d-flex flex-column\">
<h1 class=\"section-title\">Kontynuuj oglądanie</h1>
<h2 class=\"section-subtitle\">{{ lastViewedMedia.name }}</h2>
<p class=\"section-description\">{{ lastViewedMedia.author.title }}</p>
<div class='position-relative'>
<a {% if not lastViewedMedia.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: lastViewedMedia.uuid}) }}\" {% endif %} class=\"col-12 mb-3 mb-lg-0\">
<div class=\"white-placeholder overflow-hidden\">
<img src='{{ vich_uploader_asset(lastViewedMedia.image) }}' alt='' class='img-fluid module-img'/>
</div>
</a>
<div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
<button class=\"video-social-button media-favorite__button\" data-key='{{ lastViewedMedia.id }}'>
<div class=\"social-icon media-favorite__icon {% if true == (lastViewedMedia.id in allUserFavoritesMediaIds) %} favourited {% else %}favourite{% endif %}\"></div>
</button>
<button
class=\"video-social-button\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
<div
class='social-icon email m-0'
></div>
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='{{ lastViewedMedia.id }}'
data-link='{{ absolute_url(path(\"media_show\", {uuid: lastViewedMedia.uuid})) }}'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
</div>
{% endif %}
{% if (not isLogged or not lastViewedMedia) and lastAddedMedia %}
<div class=\"{% if isLogged %} col-lg-7 {% else %} col-lg-12 {% endif %} d-flex flex-column\">
<h1 class=\"section-title\">Ostatnio dodane</h1>
<h2 class=\"section-subtitle\">{{ lastAddedMedia.name }}</h2>
<p class=\"section-description\">{{ lastAddedMedia.author.title }}</p>
<div class='position-relative'>
<a {% if not lastAddedMedia.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: lastAddedMedia.uuid}) }}\" {% endif %} class=\"col-12 mb-3 mb-lg-0\">
<div class=\"white-placeholder overflow-hidden\">
<img src='{{ vich_uploader_asset(lastAddedMedia.image) }}' alt='' class='img-fluid module-img'/>
</div>
</a>
<div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
<button
class=\"video-social-button\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='{{ lastAddedMedia.id }}'
data-link='{{ absolute_url(path(\"media_show\", {uuid: lastAddedMedia.uuid})) }}'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
</div>
{% endif %}
{% if isLogged %}
<div class=\"col-lg-5 d-flex flex-column\">
<h1 class=\"section-title\">
<span>
<img class=\"fav-star-icon\" src=\"{{ asset('build/images/star-full-black.svg') }}\" alt=\"star\"/>
</span>
Ulubione
</h1>
<div class=\"fav-holder flex-grow-1\">
<div class='fav-list'>
{% for fmedia in favoriteMedia %}
<div class=\"fav-box\">
<a {% if not fmedia.media.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: fmedia.media.uuid}) }}\" {% endif %} class='pe-3'>{{ fmedia.media.name }}</a>
<div class=\"d-flex justify-content-end\">
<button class=\"video-social-button media-favorite__button m-0\" data-key='{{ fmedia.media.id }}'>
<div class=\"social-icon media-favorite__icon {% if true == (fmedia.media.id in allUserFavoritesMediaIds) %} favourited {% else %}favourite{% endif %}\"></div>
</button>
<button
class=\"video-social-button m-0\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
<div
class='social-icon email m-0'
></div>
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='{{ fmedia.id }}'
data-link='{{ absolute_url(path(\"media_show\", {uuid: fmedia.media.uuid})) }}'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
{% endfor %}
</div>
<div class='fav-empty p-3 {% if favoriteMedia|length %} d-none {% endif %}'>
<img src='{{ asset('build/images/add_to_favorite.png') }}' class='mb-3'/>
<img src='{{ asset('build/images/favorite_star.png') }}' />
</div>
</div>
</div>
{% endif %}
<div class=\"col-12\">
<p class=\"section-description my-4\">Inni użytkownicy wyświetlają również:</p>
<div class=\"row\">
{% for smedia in suggestedMedia %}
<div class='position-relative col-lg-4 col-sm-6 mb-3'>
<a {% if not smedia.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: smedia.uuid}) }}\" {% endif %} class=\"\">
<div class=\"white-placeholder overflow-hidden\">
<img src='{{ vich_uploader_asset(smedia.image) }}' alt='' class='img-fluid module-img'/>
</div>
<p class=\"next-module-title\">{{ smedia.name }}</p>
<p class=\"next-module-author\">{{ smedia.author.title }}</p>
{% if smedia.timeToSpend %}
<div class=\"next-module-time\">
<img src=\"{{ asset('build/images/time.svg') }}\" class=\"icon-time\" alt=\"\"/>
{{ smedia.timeToSpend }} min
</div>
{% endif %}
</a>
<div class=\"video-social-buttons-holder\">
{% if isLogged %}
<button class=\"video-social-button media-favorite__button\" data-key='{{ smedia.id }}'>
<div class=\"social-icon media-favorite__icon {% if true == (smedia.id in allUserFavoritesMediaIds) %} favourited {% else %}favourite{% endif %}\"></div>
</button>
{% endif %}
<button
class=\"video-social-button m-0\"
data-bs-toggle=\"popover\"
data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
<div class='social-icon messenger'></div>
{% if isLogged %}
<div
class='social-icon email m-0'
></div>
{% endif %}
</div>\"
data-bs-placement=\"bottom\"
data-bs-trigger=\"focus\"
data-bs-html=\"true\"
data-key='{{ smedia.id }}'
data-link='{{ absolute_url(path(\"media_show\", {uuid: smedia.uuid})) }}'
>
<div class=\"social-icon share\"></div>
</button>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<section class=\"mb-3\">
<div class=\"container-fluid p-0\">
<div class=\"row\">
<div class=\"col-sm-6 mb-sm-0 mb-3\">
<a href='{{ path('exam_all') }}' class=\"big-button-blue\">SYMULACJE EGZAMINÓW CEM</a>
</div>
<div class=\"col-sm-6\">
<a href=\"{{ path('exam-with-key_all') }}\" class=\"big-button-blue\">EGZAMINY CEM Z KLUCZEM</a>
</div>
</div>
</div>
</section>
<section class=\"section-module\">
<div class=\"container-fluid p-0\">
<h1 class=\"section-title mb-4\">Moduły edukacyjne</h1>
{% for module in modules|filter(m => m.isEnabled and m.isLocked == false) %}
<div class=\"rounded-grey-bg blue-border module-box\">
<div class=\"row\">
<div class=\"col-lg-5\">
<div class=\"container-fluid\">
<div class=\"row\">
{% set authors = {} %}
{% if isLogged %}
{% for media in module.mediaForViewForUser(app.user) %}
{% if media.author and not authors|filter(a => a.id == media.author.id)|length %}
{% set authors = authors|merge({ (media.author.id): (media.author) }) %}
{% endif %}
{% endfor %}
{% else %}
{% for media in module.mediaForViewForAnonymous() %}
{% if media.author and not authors|filter(a => a.id == media.author.id)|length %}
{% set authors = authors|merge({ (media.author.id): (media.author) }) %}
{% endif %}
{% endfor %}
{% endif %}
<div class=\"col-12 d-flex justify-content-center\">
{% for author in authors|slice(0, 2) %}
<div class=\"module-author\">
{% if author.image %}
<img class=\"module-author-img\" src=\"{{ vich_uploader_asset(author.image) }}\" alt=\"\"/>
{% else %}
<img class=\"module-author-img\" src=\"{{ asset('build/images/avatar.svg') }}\" alt=\"\"/>
{% endif %}
</div>
{% endfor %}
</div>
<div class=\"col-12 d-flex justify-content-center\">
<div class=\"mt-4 d-inline-flex\">
{% for author in authors|slice(0, 2) %}
<span class=\"module-author-name\">{{ author.title }}</span>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
<div class=\"col-lg-7\">
<a href=\"{{ path('modules_show', {uuid: module.uuid}) }}\" class=\"col-lg-3 col-sm-6 mb-3\">
<p class=\"module-title\">{{ module.name }}</p>
<p class=\"module-subtitle\">{{ module.description }}</p>
</a>
<div class=\"d-flex justify-content-end flex-column flex-sm-row\">
{% set timeToSpend = 0 %}
{% set types = [] %}
{% if isLogged %}
{% for media in module.mediaForViewForUser(app.user) %}
{% if media.timeToSpend %}
{% set timeToSpend = timeToSpend + media.timeToSpend %}
{% endif %}
{% if false == (media.getType(true) in types) %}
{% set types = types|merge([media.getType(true)]) %}
<button class=\"module-button text-uppercase\">{{ media.getType(true) }}</button>
{% endif %}
{% endfor %}
{% else %}
{% for media in module.mediaForViewForAnonymous() %}
{% if media.timeToSpend %}
{% set timeToSpend = timeToSpend + media.timeToSpend %}
{% endif %}
{% if false == (media.getType(true) in types) %}
{% set types = types|merge([media.getType(true)]) %}
<button class=\"module-button text-uppercase\">{{ media.getType(true) }}</button>
{% endif %}
{% endfor %}
{% endif %}
<button class=\"next-module-time module-button\">
<img src=\"{{ asset('build/images/time.svg') }}\" class=\"icon-time\" alt=\"\"/>
{{ timeToSpend }} min
</button>
</div>
</div>
<!--Collapsed content-->
<div class=\"container-fluid collapse mt-4\" id=\"morecontent-{{ module.id }}\" >
<div class=\"row\">
{% if isLogged %}
{% for media in module.mediaForViewForUser(app.user) %}
{{ include('pages/common/_media-preview-item.html.twig', {media: media}) }}
{% endfor %}
{% for survey in module.surveysFormViewForUser(app.user) %}
{{ include('pages/common/_survey-preview-item.html.twig') }}
{% endfor %}
{% else %}
{% for media in module.mediaForViewForAnonymous() %}
{{ include('pages/common/_media-preview-item.html.twig', {media: media}) }}
{% endfor %}
{% for survey in module.surveysFormViewForAnonymous() %}
{{ include('pages/common/_survey-preview-item.html.twig') }}
{% endfor %}
{% endif %}
</div>
</div>
</div>
<button class=\"more-content-btn\" data-bs-toggle=\"collapse\" href=\"#morecontent-{{ module.id }}\" aria-expanded=\"false\">
<div class=\"more-content-btn-img\"></div>
</button>
</div>
{% endfor %}
</div>
</section>
{% endblock %}
", "pages/home.html.twig", "/var/www/23-akademiamistrzowpsychiatrii.pl/templates/pages/home.html.twig");
}
}