var/cache/dev/twig/64/64f15660549cd977f032f26a2ba7a9811df6fbff8517c0fb6e627c4d22898e8f.php line 58

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pages/home.html.twig */
  14. class __TwigTemplate_d8586cca38494d98bf37fb291b2f418f04701e89687c864eaf57ad9377b6235c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/home.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/home.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/home.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "    <section class=\"section-main rounded-grey-bg\">
  55.         <div class=\"container-fluid\">
  56.             <div class=\"row\">
  57.                 ";
  58.         // line 7
  59.         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); })()))) {
  60.             // line 8
  61.             echo "                    <div class=\"col-lg-7 d-flex flex-column\">
  62.                         <h1 class=\"section-title\">Kontynuuj oglądanie</h1>
  63.                         <h2 class=\"section-subtitle\">";
  64.             // line 10
  65.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  66.             echo "</h2>
  67.                         <p class=\"section-description\">";
  68.             // line 11
  69.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse11), "title", [], "any"falsefalsefalse11), "html"nulltrue);
  70.             echo "</p>
  71.                         <div class='position-relative'>
  72.                             <a ";
  73.             // line 13
  74.             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"falsefalsefalse13)) {
  75.                 echo "href=\"";
  76.                 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"falsefalsefalse13)]), "html"nulltrue);
  77.                 echo "\" ";
  78.             }
  79.             echo " class=\"col-12 mb-3 mb-lg-0\">
  80.                                 <div class=\"white-placeholder overflow-hidden\">
  81.                                     <img src='";
  82.             // line 15
  83.             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"falsefalsefalse15)), "html"nulltrue);
  84.             echo "' alt='' class='img-fluid module-img'/>
  85.                                 </div>
  86.                             </a>
  87.                             <div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
  88.                                 <button class=\"video-social-button media-favorite__button\" data-key='";
  89.             // line 19
  90.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse19), "html"nulltrue);
  91.             echo "'>
  92.                                     <div class=\"social-icon media-favorite__icon ";
  93.             // line 20
  94.             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"falsefalsefalse20), (isset($context["allUserFavoritesMediaIds"]) || array_key_exists("allUserFavoritesMediaIds"$context) ? $context["allUserFavoritesMediaIds"] : (function () { throw new RuntimeError('Variable "allUserFavoritesMediaIds" does not exist.'20$this->source); })())))) {
  95.                 echo " favourited ";
  96.             } else {
  97.                 echo "favourite";
  98.             }
  99.             echo "\"></div>
  100.                                 </button>
  101.                                 <button
  102.                                         class=\"video-social-button\"
  103.                                         data-bs-toggle=\"popover\"
  104.                                         data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  105.                                                         <div class='social-icon messenger'></div>
  106.                                                         <div
  107.                                                             class='social-icon email m-0'
  108.                                                         ></div>
  109.                                                     </div>\"
  110.                                         data-bs-placement=\"bottom\"
  111.                                         data-bs-trigger=\"focus\"
  112.                                         data-bs-html=\"true\"
  113.                                         data-key='";
  114.             // line 35
  115.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse35), "html"nulltrue);
  116.             echo "'
  117.                                         data-link='";
  118.             // line 36
  119.             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"falsefalsefalse36)])), "html"nulltrue);
  120.             echo "'
  121.                                 >
  122.                                     <div class=\"social-icon share\"></div>
  123.                                 </button>
  124.                             </div>
  125.                         </div>
  126.                     </div>
  127.                 ";
  128.         }
  129.         // line 44
  130.         echo "                ";
  131.         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); })()))) {
  132.             // line 45
  133.             echo "                    <div class=\"";
  134.             if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'45$this->source); })())) {
  135.                 echo " col-lg-7 ";
  136.             } else {
  137.                 echo " col-lg-12 ";
  138.             }
  139.             echo " d-flex flex-column\">
  140.                         <h1 class=\"section-title\">Ostatnio dodane</h1>
  141.                         <h2 class=\"section-subtitle\">";
  142.             // line 47
  143.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse47), "html"nulltrue);
  144.             echo "</h2>
  145.                         <p class=\"section-description\">";
  146.             // line 48
  147.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse48), "title", [], "any"falsefalsefalse48), "html"nulltrue);
  148.             echo "</p>
  149.                         <div class='position-relative'>
  150.                             <a ";
  151.             // line 50
  152.             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"falsefalsefalse50)) {
  153.                 echo "href=\"";
  154.                 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"falsefalsefalse50)]), "html"nulltrue);
  155.                 echo "\" ";
  156.             }
  157.             echo " class=\"col-12 mb-3 mb-lg-0\">
  158.                                 <div class=\"white-placeholder overflow-hidden\">
  159.                                     <img src='";
  160.             // line 52
  161.             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"falsefalsefalse52)), "html"nulltrue);
  162.             echo "' alt='' class='img-fluid module-img'/>
  163.                                 </div>
  164.                             </a>
  165.                             <div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
  166.                                 <button
  167.                                         class=\"video-social-button\"
  168.                                         data-bs-toggle=\"popover\"
  169.                                         data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  170.                                                         <div class='social-icon messenger'></div>
  171.                                                     </div>\"
  172.                                         data-bs-placement=\"bottom\"
  173.                                         data-bs-trigger=\"focus\"
  174.                                         data-bs-html=\"true\"
  175.                                         data-key='";
  176.             // line 65
  177.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse65), "html"nulltrue);
  178.             echo "'
  179.                                         data-link='";
  180.             // line 66
  181.             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"falsefalsefalse66)])), "html"nulltrue);
  182.             echo "'
  183.                                 >
  184.                                     <div class=\"social-icon share\"></div>
  185.                                 </button>
  186.                             </div>
  187.                         </div>
  188.                     </div>
  189.                 ";
  190.         }
  191.         // line 74
  192.         echo "                ";
  193.         if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'74$this->source); })())) {
  194.             // line 75
  195.             echo "                    <div class=\"col-lg-5 d-flex flex-column\">
  196.                         <h1 class=\"section-title\">
  197.                       <span>
  198.                         <img class=\"fav-star-icon\" src=\"";
  199.             // line 78
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/star-full-black.svg"), "html"nulltrue);
  201.             echo "\" alt=\"star\"/>
  202.                       </span>
  203.                             Ulubione
  204.                         </h1>
  205.                         <div class=\"fav-holder flex-grow-1\">
  206.                             <div class='fav-list'>
  207.                                 ";
  208.             // line 84
  209.             $context['_parent'] = $context;
  210.             $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); })()));
  211.             foreach ($context['_seq'] as $context["_key"] => $context["fmedia"]) {
  212.                 // line 85
  213.                 echo "                                    <div class=\"fav-box\">
  214.                                         <a ";
  215.                 // line 86
  216.                 if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fmedia"], "media", [], "any"falsefalsefalse86), "getIsLocked", [], "method"falsefalsefalse86)) {
  217.                     echo "href=\"";
  218.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("media_show", ["uuid" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fmedia"], "media", [], "any"falsefalsefalse86), "uuid", [], "any"falsefalsefalse86)]), "html"nulltrue);
  219.                     echo "\" ";
  220.                 }
  221.                 echo " class='pe-3'>";
  222.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fmedia"], "media", [], "any"falsefalsefalse86), "name", [], "any"falsefalsefalse86), "html"nulltrue);
  223.                 echo "</a>
  224.                                         <div class=\"d-flex justify-content-end\">
  225.                                             <button class=\"video-social-button media-favorite__button m-0\" data-key='";
  226.                 // line 88
  227.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fmedia"], "media", [], "any"falsefalsefalse88), "id", [], "any"falsefalsefalse88), "html"nulltrue);
  228.                 echo "'>
  229.                                                 <div class=\"social-icon media-favorite__icon ";
  230.                 // line 89
  231.                 if ((true == twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["fmedia"], "media", [], "any"falsefalsefalse89), "id", [], "any"falsefalsefalse89), (isset($context["allUserFavoritesMediaIds"]) || array_key_exists("allUserFavoritesMediaIds"$context) ? $context["allUserFavoritesMediaIds"] : (function () { throw new RuntimeError('Variable "allUserFavoritesMediaIds" does not exist.'89$this->source); })())))) {
  232.                     echo " favourited ";
  233.                 } else {
  234.                     echo "favourite";
  235.                 }
  236.                 echo "\"></div>
  237.                                             </button>
  238.                                             <button
  239.                                                     class=\"video-social-button m-0\"
  240.                                                     data-bs-toggle=\"popover\"
  241.                                                     data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  242.                                                         <div class='social-icon messenger'></div>
  243.                                                         <div
  244.                                                             class='social-icon email m-0'
  245.                                                         ></div>
  246.                                                     </div>\"
  247.                                                     data-bs-placement=\"bottom\"
  248.                                                     data-bs-trigger=\"focus\"
  249.                                                     data-bs-html=\"true\"
  250.                                                     data-key='";
  251.                 // line 104
  252.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["fmedia"], "id", [], "any"falsefalsefalse104), "html"nulltrue);
  253.                 echo "'
  254.                                                     data-link='";
  255.                 // line 105
  256.                 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->sourcetwig_get_attribute($this->env$this->source$context["fmedia"], "media", [], "any"falsefalsefalse105), "uuid", [], "any"falsefalsefalse105)])), "html"nulltrue);
  257.                 echo "'
  258.                                             >
  259.                                                 <div class=\"social-icon share\"></div>
  260.                                             </button>
  261.                                         </div>
  262.                                     </div>
  263.                                 ";
  264.             }
  265.             $_parent $context['_parent'];
  266.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fmedia'], $context['_parent'], $context['loop']);
  267.             $context array_intersect_key($context$_parent) + $_parent;
  268.             // line 112
  269.             echo "                            </div>
  270.                             <div class='fav-empty p-3 ";
  271.             // line 113
  272.             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); })()))) {
  273.                 echo " d-none ";
  274.             }
  275.             echo "'>
  276.                                 <img src='";
  277.             // line 114
  278.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/add_to_favorite.png"), "html"nulltrue);
  279.             echo "' class='mb-3'/>
  280.                                 <img src='";
  281.             // line 115
  282.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favorite_star.png"), "html"nulltrue);
  283.             echo "' />
  284.                             </div>
  285.                         </div>
  286.                     </div>
  287.                 ";
  288.         }
  289.         // line 120
  290.         echo "                <div class=\"col-12\">
  291.                     <p class=\"section-description my-4\">Inni użytkownicy wyświetlają również:</p>
  292.                     <div class=\"row\">
  293.                         ";
  294.         // line 123
  295.         $context['_parent'] = $context;
  296.         $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); })()));
  297.         foreach ($context['_seq'] as $context["_key"] => $context["smedia"]) {
  298.             // line 124
  299.             echo "                            <div class='position-relative col-lg-4 col-sm-6 mb-3'>
  300.                                 <a ";
  301.             // line 125
  302.             if ( !twig_get_attribute($this->env$this->source$context["smedia"], "getIsLocked", [], "method"falsefalsefalse125)) {
  303.                 echo "href=\"";
  304.                 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"falsefalsefalse125)]), "html"nulltrue);
  305.                 echo "\" ";
  306.             }
  307.             echo " class=\"\">
  308.                                     <div class=\"white-placeholder overflow-hidden\">
  309.                                         <img src='";
  310.             // line 127
  311.             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"falsefalsefalse127)), "html"nulltrue);
  312.             echo "' alt='' class='img-fluid module-img'/>
  313.                                     </div>
  314.                                     <p class=\"next-module-title\">";
  315.             // line 130
  316.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["smedia"], "name", [], "any"falsefalsefalse130), "html"nulltrue);
  317.             echo "</p>
  318.                                     <p class=\"next-module-author\">";
  319.             // line 131
  320.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["smedia"], "author", [], "any"falsefalsefalse131), "title", [], "any"falsefalsefalse131), "html"nulltrue);
  321.             echo "</p>
  322.                                     ";
  323.             // line 132
  324.             if (twig_get_attribute($this->env$this->source$context["smedia"], "timeToSpend", [], "any"falsefalsefalse132)) {
  325.                 // line 133
  326.                 echo "                                        <div class=\"next-module-time\">
  327.                                             <img src=\"";
  328.                 // line 134
  329.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/time.svg"), "html"nulltrue);
  330.                 echo "\" class=\"icon-time\" alt=\"\"/>
  331.                                             ";
  332.                 // line 135
  333.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["smedia"], "timeToSpend", [], "any"falsefalsefalse135), "html"nulltrue);
  334.                 echo " min
  335.                                         </div>
  336.                                     ";
  337.             }
  338.             // line 138
  339.             echo "                                </a>
  340.                                 <div class=\"video-social-buttons-holder\">
  341.                                     ";
  342.             // line 140
  343.             if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'140$this->source); })())) {
  344.                 // line 141
  345.                 echo "                                        <button class=\"video-social-button media-favorite__button\" data-key='";
  346.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["smedia"], "id", [], "any"falsefalsefalse141), "html"nulltrue);
  347.                 echo "'>
  348.                                             <div class=\"social-icon media-favorite__icon ";
  349.                 // line 142
  350.                 if ((true == twig_in_filter(twig_get_attribute($this->env$this->source$context["smedia"], "id", [], "any"falsefalsefalse142), (isset($context["allUserFavoritesMediaIds"]) || array_key_exists("allUserFavoritesMediaIds"$context) ? $context["allUserFavoritesMediaIds"] : (function () { throw new RuntimeError('Variable "allUserFavoritesMediaIds" does not exist.'142$this->source); })())))) {
  351.                     echo " favourited ";
  352.                 } else {
  353.                     echo "favourite";
  354.                 }
  355.                 echo "\"></div>
  356.                                         </button>
  357.                                     ";
  358.             }
  359.             // line 145
  360.             echo "                                    <button
  361.                                         class=\"video-social-button m-0\"
  362.                                         data-bs-toggle=\"popover\"
  363.                                         data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  364.                                                 <div class='social-icon messenger'></div>
  365.                                                 ";
  366.             // line 150
  367.             if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'150$this->source); })())) {
  368.                 // line 151
  369.                 echo "                                                    <div
  370.                                                         class='social-icon email m-0'
  371.                                                     ></div>
  372.                                                 ";
  373.             }
  374.             // line 156
  375.             echo "                                            </div>\"
  376.                                         data-bs-placement=\"bottom\"
  377.                                         data-bs-trigger=\"focus\"
  378.                                         data-bs-html=\"true\"
  379.                                         data-key='";
  380.             // line 160
  381.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["smedia"], "id", [], "any"falsefalsefalse160), "html"nulltrue);
  382.             echo "'
  383.                                         data-link='";
  384.             // line 161
  385.             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"falsefalsefalse161)])), "html"nulltrue);
  386.             echo "'
  387.                                     >
  388.                                         <div class=\"social-icon share\"></div>
  389.                                     </button>
  390.                                 </div>
  391.                             </div>
  392.                         ";
  393.         }
  394.         $_parent $context['_parent'];
  395.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['smedia'], $context['_parent'], $context['loop']);
  396.         $context array_intersect_key($context$_parent) + $_parent;
  397.         // line 168
  398.         echo "                    </div>
  399.                 </div>
  400.             </div>
  401.         </div>
  402.     </section>
  403.     <section class=\"mb-3\">
  404.         <div class=\"container-fluid p-0\">
  405.             <div class=\"row\">
  406.                 <div class=\"col-sm-6 mb-sm-0 mb-3\">
  407.                     <a href='";
  408.         // line 178
  409.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("exam_all");
  410.         echo "' class=\"big-button-blue\">SYMULACJE EGZAMINÓW CEM</a>
  411.                 </div>
  412.                 <div class=\"col-sm-6\">
  413.                     <a href=\"";
  414.         // line 181
  415.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("exam-with-key_all");
  416.         echo "\" class=\"big-button-blue\">EGZAMINY CEM Z KLUCZEM</a>
  417.                 </div>
  418.             </div>
  419.         </div>
  420.     </section>
  421.     <section class=\"section-module\">
  422.         <div class=\"container-fluid p-0\">
  423.             <h1 class=\"section-title mb-4\">Moduły edukacyjne</h1>
  424.             ";
  425.         // line 190
  426.         $context['_parent'] = $context;
  427.         $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"falsefalsefalse190) && (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"falsefalsefalse190) == false)); }));
  428.         $context['loop'] = [
  429.           'parent' => $context['_parent'],
  430.           'index0' => 0,
  431.           'index'  => 1,
  432.           'first'  => true,
  433.         ];
  434.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  435.             $length count($context['_seq']);
  436.             $context['loop']['revindex0'] = $length 1;
  437.             $context['loop']['revindex'] = $length;
  438.             $context['loop']['length'] = $length;
  439.             $context['loop']['last'] = === $length;
  440.         }
  441.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  442.             // line 191
  443.             echo "            <div class=\"rounded-grey-bg blue-border module-box\">
  444.                 <div class=\"row\">
  445.                     <div class=\"col-lg-5\">
  446.                         <div class=\"container-fluid\">
  447.                             <div class=\"row\">
  448.                                 ";
  449.             // line 196
  450.             $context["authors"] = [];
  451.             // line 197
  452.             echo "                                ";
  453.             if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'197$this->source); })())) {
  454.                 // line 198
  455.                 echo "                                    ";
  456.                 $context['_parent'] = $context;
  457.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "mediaForViewForUser", [=> 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"falsefalsefalse198)], "method"falsefalsefalse198));
  458.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  459.                     // line 199
  460.                     echo "                                        ";
  461.                     if ((twig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse199) &&  !twig_length_filter($this->envtwig_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"falsefalsefalse199) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse199), "id", [], "any"falsefalsefalse199)); })))) {
  462.                         // line 200
  463.                         echo "                                            ";
  464.                         $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->sourcetwig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse200), "id", [], "any"falsefalsefalse200) => twig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse200)]);
  465.                         // line 201
  466.                         echo "                                        ";
  467.                     }
  468.                     // line 202
  469.                     echo "                                    ";
  470.                 }
  471.                 $_parent $context['_parent'];
  472.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  473.                 $context array_intersect_key($context$_parent) + $_parent;
  474.                 // line 203
  475.                 echo "                                ";
  476.             } else {
  477.                 // line 204
  478.                 echo "                                    ";
  479.                 $context['_parent'] = $context;
  480.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "mediaForViewForAnonymous", [], "method"falsefalsefalse204));
  481.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  482.                     // line 205
  483.                     echo "                                        ";
  484.                     if ((twig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse205) &&  !twig_length_filter($this->envtwig_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"falsefalsefalse205) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse205), "id", [], "any"falsefalsefalse205)); })))) {
  485.                         // line 206
  486.                         echo "                                            ";
  487.                         $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->sourcetwig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse206), "id", [], "any"falsefalsefalse206) => twig_get_attribute($this->env$this->source$context["media"], "author", [], "any"falsefalsefalse206)]);
  488.                         // line 207
  489.                         echo "                                        ";
  490.                     }
  491.                     // line 208
  492.                     echo "                                    ";
  493.                 }
  494.                 $_parent $context['_parent'];
  495.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  496.                 $context array_intersect_key($context$_parent) + $_parent;
  497.                 // line 209
  498.                 echo "                                ";
  499.             }
  500.             // line 210
  501.             echo "
  502.                                 <div class=\"col-12 d-flex justify-content-center\">
  503.                                     ";
  504.             // line 212
  505.             $context['_parent'] = $context;
  506.             $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); })()), 02));
  507.             foreach ($context['_seq'] as $context["_key"] => $context["author"]) {
  508.                 // line 213
  509.                 echo "                                        <div class=\"module-author\">
  510.                                             ";
  511.                 // line 214
  512.                 if (twig_get_attribute($this->env$this->source$context["author"], "image", [], "any"falsefalsefalse214)) {
  513.                     // line 215
  514.                     echo "                                                <img class=\"module-author-img\" src=\"";
  515.                     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"falsefalsefalse215)), "html"nulltrue);
  516.                     echo "\" alt=\"\"/>
  517.                                             ";
  518.                 } else {
  519.                     // line 217
  520.                     echo "                                                <img class=\"module-author-img\" src=\"";
  521.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/avatar.svg"), "html"nulltrue);
  522.                     echo "\" alt=\"\"/>
  523.                                             ";
  524.                 }
  525.                 // line 219
  526.                 echo "                                        </div>
  527.                                     ";
  528.             }
  529.             $_parent $context['_parent'];
  530.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['author'], $context['_parent'], $context['loop']);
  531.             $context array_intersect_key($context$_parent) + $_parent;
  532.             // line 221
  533.             echo "                                </div>
  534.                                 <div class=\"col-12 d-flex justify-content-center\">
  535.                                     <div class=\"mt-4 d-inline-flex\">
  536.                                         ";
  537.             // line 224
  538.             $context['_parent'] = $context;
  539.             $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); })()), 02));
  540.             foreach ($context['_seq'] as $context["_key"] => $context["author"]) {
  541.                 // line 225
  542.                 echo "                                            <span class=\"module-author-name\">";
  543.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["author"], "title", [], "any"falsefalsefalse225), "html"nulltrue);
  544.                 echo "</span>
  545.                                         ";
  546.             }
  547.             $_parent $context['_parent'];
  548.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['author'], $context['_parent'], $context['loop']);
  549.             $context array_intersect_key($context$_parent) + $_parent;
  550.             // line 227
  551.             echo "                                    </div>
  552.                                 </div>
  553.                             </div>
  554.                         </div>
  555.                     </div>
  556.                     <div class=\"col-lg-7\">
  557.                         <a href=\"";
  558.             // line 233
  559.             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"falsefalsefalse233)]), "html"nulltrue);
  560.             echo "\" class=\"col-lg-3 col-sm-6 mb-3\">
  561.                             <p class=\"module-title\">";
  562.             // line 234
  563.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["module"], "name", [], "any"falsefalsefalse234), "html"nulltrue);
  564.             echo "</p>
  565.                             <p class=\"module-subtitle\">";
  566.             // line 235
  567.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["module"], "description", [], "any"falsefalsefalse235), "html"nulltrue);
  568.             echo "</p>
  569.                         </a>
  570.                         <div class=\"d-flex justify-content-end flex-column flex-sm-row\">
  571.                             ";
  572.             // line 238
  573.             $context["timeToSpend"] = 0;
  574.             // line 239
  575.             echo "                            ";
  576.             $context["types"] = [];
  577.             // line 240
  578.             echo "                            ";
  579.             if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'240$this->source); })())) {
  580.                 // line 241
  581.                 echo "                                ";
  582.                 $context['_parent'] = $context;
  583.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "mediaForViewForUser", [=> 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"falsefalsefalse241)], "method"falsefalsefalse241));
  584.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  585.                     // line 242
  586.                     echo "                                    ";
  587.                     if (twig_get_attribute($this->env$this->source$context["media"], "timeToSpend", [], "any"falsefalsefalse242)) {
  588.                         // line 243
  589.                         echo "                                        ";
  590.                         $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"falsefalsefalse243));
  591.                         // line 244
  592.                         echo "                                    ";
  593.                     }
  594.                     // line 245
  595.                     echo "
  596.                                     ";
  597.                     // line 246
  598.                     if ((false == twig_in_filter(twig_get_attribute($this->env$this->source$context["media"], "getType", [=> true], "method"falsefalsefalse246), (isset($context["types"]) || array_key_exists("types"$context) ? $context["types"] : (function () { throw new RuntimeError('Variable "types" does not exist.'246$this->source); })())))) {
  599.                         // line 247
  600.                         echo "                                        ";
  601.                         $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); })()), [=> twig_get_attribute($this->env$this->source$context["media"], "getType", [=> true], "method"falsefalsefalse247)]);
  602.                         // line 248
  603.                         echo "                                        <button class=\"module-button text-uppercase\">";
  604.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getType", [=> true], "method"falsefalsefalse248), "html"nulltrue);
  605.                         echo "</button>
  606.                                     ";
  607.                     }
  608.                     // line 250
  609.                     echo "
  610.                                 ";
  611.                 }
  612.                 $_parent $context['_parent'];
  613.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  614.                 $context array_intersect_key($context$_parent) + $_parent;
  615.                 // line 252
  616.                 echo "                            ";
  617.             } else {
  618.                 // line 253
  619.                 echo "                                ";
  620.                 $context['_parent'] = $context;
  621.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "mediaForViewForAnonymous", [], "method"falsefalsefalse253));
  622.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  623.                     // line 254
  624.                     echo "                                    ";
  625.                     if (twig_get_attribute($this->env$this->source$context["media"], "timeToSpend", [], "any"falsefalsefalse254)) {
  626.                         // line 255
  627.                         echo "                                        ";
  628.                         $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"falsefalsefalse255));
  629.                         // line 256
  630.                         echo "                                    ";
  631.                     }
  632.                     // line 257
  633.                     echo "
  634.                                     ";
  635.                     // line 258
  636.                     if ((false == twig_in_filter(twig_get_attribute($this->env$this->source$context["media"], "getType", [=> true], "method"falsefalsefalse258), (isset($context["types"]) || array_key_exists("types"$context) ? $context["types"] : (function () { throw new RuntimeError('Variable "types" does not exist.'258$this->source); })())))) {
  637.                         // line 259
  638.                         echo "                                        ";
  639.                         $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); })()), [=> twig_get_attribute($this->env$this->source$context["media"], "getType", [=> true], "method"falsefalsefalse259)]);
  640.                         // line 260
  641.                         echo "                                        <button class=\"module-button text-uppercase\">";
  642.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getType", [=> true], "method"falsefalsefalse260), "html"nulltrue);
  643.                         echo "</button>
  644.                                     ";
  645.                     }
  646.                     // line 262
  647.                     echo "
  648.                                 ";
  649.                 }
  650.                 $_parent $context['_parent'];
  651.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  652.                 $context array_intersect_key($context$_parent) + $_parent;
  653.                 // line 264
  654.                 echo "                            ";
  655.             }
  656.             // line 265
  657.             echo "
  658.                             <button class=\"next-module-time module-button\">
  659.                                 <img src=\"";
  660.             // line 267
  661.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/time.svg"), "html"nulltrue);
  662.             echo "\" class=\"icon-time\" alt=\"\"/>
  663.                                 ";
  664.             // line 268
  665.             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"nulltrue);
  666.             echo " min
  667.                             </button>
  668.                         </div>
  669.                     </div>
  670.                     <!--Collapsed content-->
  671.                     <div class=\"container-fluid collapse mt-4\" id=\"morecontent-";
  672.             // line 273
  673.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["module"], "id", [], "any"falsefalsefalse273), "html"nulltrue);
  674.             echo "\" >
  675.                         <div class=\"row\">
  676.                             ";
  677.             // line 275
  678.             if ((isset($context["isLogged"]) || array_key_exists("isLogged"$context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.'275$this->source); })())) {
  679.                 // line 276
  680.                 echo "                                ";
  681.                 $context['_parent'] = $context;
  682.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "mediaForViewForUser", [=> 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"falsefalsefalse276)], "method"falsefalsefalse276));
  683.                 $context['loop'] = [
  684.                   'parent' => $context['_parent'],
  685.                   'index0' => 0,
  686.                   'index'  => 1,
  687.                   'first'  => true,
  688.                 ];
  689.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  690.                     $length count($context['_seq']);
  691.                     $context['loop']['revindex0'] = $length 1;
  692.                     $context['loop']['revindex'] = $length;
  693.                     $context['loop']['length'] = $length;
  694.                     $context['loop']['last'] = === $length;
  695.                 }
  696.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  697.                     // line 277
  698.                     echo "                                    ";
  699.                     echo twig_include($this->env$context"pages/common/_media-preview-item.html.twig", ["media" => $context["media"]]);
  700.                     echo "
  701.                                 ";
  702.                     ++$context['loop']['index0'];
  703.                     ++$context['loop']['index'];
  704.                     $context['loop']['first'] = false;
  705.                     if (isset($context['loop']['length'])) {
  706.                         --$context['loop']['revindex0'];
  707.                         --$context['loop']['revindex'];
  708.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  709.                     }
  710.                 }
  711.                 $_parent $context['_parent'];
  712.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  713.                 $context array_intersect_key($context$_parent) + $_parent;
  714.                 // line 279
  715.                 echo "
  716.                                 ";
  717.                 // line 280
  718.                 $context['_parent'] = $context;
  719.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "surveysFormViewForUser", [=> 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"falsefalsefalse280)], "method"falsefalsefalse280));
  720.                 $context['loop'] = [
  721.                   'parent' => $context['_parent'],
  722.                   'index0' => 0,
  723.                   'index'  => 1,
  724.                   'first'  => true,
  725.                 ];
  726.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  727.                     $length count($context['_seq']);
  728.                     $context['loop']['revindex0'] = $length 1;
  729.                     $context['loop']['revindex'] = $length;
  730.                     $context['loop']['length'] = $length;
  731.                     $context['loop']['last'] = === $length;
  732.                 }
  733.                 foreach ($context['_seq'] as $context["_key"] => $context["survey"]) {
  734.                     // line 281
  735.                     echo "                                    ";
  736.                     echo twig_include($this->env$context"pages/common/_survey-preview-item.html.twig");
  737.                     echo "
  738.                                 ";
  739.                     ++$context['loop']['index0'];
  740.                     ++$context['loop']['index'];
  741.                     $context['loop']['first'] = false;
  742.                     if (isset($context['loop']['length'])) {
  743.                         --$context['loop']['revindex0'];
  744.                         --$context['loop']['revindex'];
  745.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  746.                     }
  747.                 }
  748.                 $_parent $context['_parent'];
  749.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['survey'], $context['_parent'], $context['loop']);
  750.                 $context array_intersect_key($context$_parent) + $_parent;
  751.                 // line 283
  752.                 echo "                            ";
  753.             } else {
  754.                 // line 284
  755.                 echo "                                ";
  756.                 $context['_parent'] = $context;
  757.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "mediaForViewForAnonymous", [], "method"falsefalsefalse284));
  758.                 $context['loop'] = [
  759.                   'parent' => $context['_parent'],
  760.                   'index0' => 0,
  761.                   'index'  => 1,
  762.                   'first'  => true,
  763.                 ];
  764.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  765.                     $length count($context['_seq']);
  766.                     $context['loop']['revindex0'] = $length 1;
  767.                     $context['loop']['revindex'] = $length;
  768.                     $context['loop']['length'] = $length;
  769.                     $context['loop']['last'] = === $length;
  770.                 }
  771.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  772.                     // line 285
  773.                     echo "                                    ";
  774.                     echo twig_include($this->env$context"pages/common/_media-preview-item.html.twig", ["media" => $context["media"]]);
  775.                     echo "
  776.                                 ";
  777.                     ++$context['loop']['index0'];
  778.                     ++$context['loop']['index'];
  779.                     $context['loop']['first'] = false;
  780.                     if (isset($context['loop']['length'])) {
  781.                         --$context['loop']['revindex0'];
  782.                         --$context['loop']['revindex'];
  783.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  784.                     }
  785.                 }
  786.                 $_parent $context['_parent'];
  787.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  788.                 $context array_intersect_key($context$_parent) + $_parent;
  789.                 // line 287
  790.                 echo "
  791.                                 ";
  792.                 // line 288
  793.                 $context['_parent'] = $context;
  794.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["module"], "surveysFormViewForAnonymous", [], "method"falsefalsefalse288));
  795.                 $context['loop'] = [
  796.                   'parent' => $context['_parent'],
  797.                   'index0' => 0,
  798.                   'index'  => 1,
  799.                   'first'  => true,
  800.                 ];
  801.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  802.                     $length count($context['_seq']);
  803.                     $context['loop']['revindex0'] = $length 1;
  804.                     $context['loop']['revindex'] = $length;
  805.                     $context['loop']['length'] = $length;
  806.                     $context['loop']['last'] = === $length;
  807.                 }
  808.                 foreach ($context['_seq'] as $context["_key"] => $context["survey"]) {
  809.                     // line 289
  810.                     echo "                                    ";
  811.                     echo twig_include($this->env$context"pages/common/_survey-preview-item.html.twig");
  812.                     echo "
  813.                                 ";
  814.                     ++$context['loop']['index0'];
  815.                     ++$context['loop']['index'];
  816.                     $context['loop']['first'] = false;
  817.                     if (isset($context['loop']['length'])) {
  818.                         --$context['loop']['revindex0'];
  819.                         --$context['loop']['revindex'];
  820.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  821.                     }
  822.                 }
  823.                 $_parent $context['_parent'];
  824.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['survey'], $context['_parent'], $context['loop']);
  825.                 $context array_intersect_key($context$_parent) + $_parent;
  826.                 // line 291
  827.                 echo "                            ";
  828.             }
  829.             // line 292
  830.             echo "
  831.                         </div>
  832.                     </div>
  833.                 </div>
  834.                 <button class=\"more-content-btn\" data-bs-toggle=\"collapse\" href=\"#morecontent-";
  835.             // line 296
  836.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["module"], "id", [], "any"falsefalsefalse296), "html"nulltrue);
  837.             echo "\" aria-expanded=\"false\">
  838.                     <div class=\"more-content-btn-img\"></div>
  839.                 </button>
  840.             </div>
  841.             ";
  842.             ++$context['loop']['index0'];
  843.             ++$context['loop']['index'];
  844.             $context['loop']['first'] = false;
  845.             if (isset($context['loop']['length'])) {
  846.                 --$context['loop']['revindex0'];
  847.                 --$context['loop']['revindex'];
  848.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  849.             }
  850.         }
  851.         $_parent $context['_parent'];
  852.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  853.         $context array_intersect_key($context$_parent) + $_parent;
  854.         // line 301
  855.         echo "        </div>
  856.     </section>
  857. ";
  858.         
  859.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  860.         
  861.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  862.     }
  863.     public function getTemplateName()
  864.     {
  865.         return "pages/home.html.twig";
  866.     }
  867.     public function isTraitable()
  868.     {
  869.         return false;
  870.     }
  871.     public function getDebugInfo()
  872.     {
  873.         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,);
  874.     }
  875.     public function getSourceContext()
  876.     {
  877.         return new Source("{% extends 'base.html.twig' %}
  878. {% block body %}
  879.     <section class=\"section-main rounded-grey-bg\">
  880.         <div class=\"container-fluid\">
  881.             <div class=\"row\">
  882.                 {% if lastViewedMedia and lastViewedMedia is defined and isLogged %}
  883.                     <div class=\"col-lg-7 d-flex flex-column\">
  884.                         <h1 class=\"section-title\">Kontynuuj oglądanie</h1>
  885.                         <h2 class=\"section-subtitle\">{{ lastViewedMedia.name }}</h2>
  886.                         <p class=\"section-description\">{{ lastViewedMedia.author.title }}</p>
  887.                         <div class='position-relative'>
  888.                             <a {% if not lastViewedMedia.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: lastViewedMedia.uuid}) }}\" {% endif %} class=\"col-12 mb-3 mb-lg-0\">
  889.                                 <div class=\"white-placeholder overflow-hidden\">
  890.                                     <img src='{{ vich_uploader_asset(lastViewedMedia.image) }}' alt='' class='img-fluid module-img'/>
  891.                                 </div>
  892.                             </a>
  893.                             <div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
  894.                                 <button class=\"video-social-button media-favorite__button\" data-key='{{ lastViewedMedia.id }}'>
  895.                                     <div class=\"social-icon media-favorite__icon {% if true == (lastViewedMedia.id in allUserFavoritesMediaIds) %} favourited {% else %}favourite{% endif %}\"></div>
  896.                                 </button>
  897.                                 <button
  898.                                         class=\"video-social-button\"
  899.                                         data-bs-toggle=\"popover\"
  900.                                         data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  901.                                                         <div class='social-icon messenger'></div>
  902.                                                         <div
  903.                                                             class='social-icon email m-0'
  904.                                                         ></div>
  905.                                                     </div>\"
  906.                                         data-bs-placement=\"bottom\"
  907.                                         data-bs-trigger=\"focus\"
  908.                                         data-bs-html=\"true\"
  909.                                         data-key='{{ lastViewedMedia.id }}'
  910.                                         data-link='{{ absolute_url(path(\"media_show\", {uuid: lastViewedMedia.uuid})) }}'
  911.                                 >
  912.                                     <div class=\"social-icon share\"></div>
  913.                                 </button>
  914.                             </div>
  915.                         </div>
  916.                     </div>
  917.                 {% endif %}
  918.                 {% if (not isLogged or not lastViewedMedia) and lastAddedMedia %}
  919.                     <div class=\"{% if isLogged %} col-lg-7 {% else %} col-lg-12 {% endif %} d-flex flex-column\">
  920.                         <h1 class=\"section-title\">Ostatnio dodane</h1>
  921.                         <h2 class=\"section-subtitle\">{{ lastAddedMedia.name }}</h2>
  922.                         <p class=\"section-description\">{{ lastAddedMedia.author.title }}</p>
  923.                         <div class='position-relative'>
  924.                             <a {% if not lastAddedMedia.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: lastAddedMedia.uuid}) }}\" {% endif %} class=\"col-12 mb-3 mb-lg-0\">
  925.                                 <div class=\"white-placeholder overflow-hidden\">
  926.                                     <img src='{{ vich_uploader_asset(lastAddedMedia.image) }}' alt='' class='img-fluid module-img'/>
  927.                                 </div>
  928.                             </a>
  929.                             <div class=\"video-social-buttons-holder video-social-buttons-holder--last-viewed\">
  930.                                 <button
  931.                                         class=\"video-social-button\"
  932.                                         data-bs-toggle=\"popover\"
  933.                                         data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  934.                                                         <div class='social-icon messenger'></div>
  935.                                                     </div>\"
  936.                                         data-bs-placement=\"bottom\"
  937.                                         data-bs-trigger=\"focus\"
  938.                                         data-bs-html=\"true\"
  939.                                         data-key='{{ lastAddedMedia.id }}'
  940.                                         data-link='{{ absolute_url(path(\"media_show\", {uuid: lastAddedMedia.uuid})) }}'
  941.                                 >
  942.                                     <div class=\"social-icon share\"></div>
  943.                                 </button>
  944.                             </div>
  945.                         </div>
  946.                     </div>
  947.                 {% endif %}
  948.                 {% if isLogged %}
  949.                     <div class=\"col-lg-5 d-flex flex-column\">
  950.                         <h1 class=\"section-title\">
  951.                       <span>
  952.                         <img class=\"fav-star-icon\" src=\"{{ asset('build/images/star-full-black.svg') }}\" alt=\"star\"/>
  953.                       </span>
  954.                             Ulubione
  955.                         </h1>
  956.                         <div class=\"fav-holder flex-grow-1\">
  957.                             <div class='fav-list'>
  958.                                 {% for fmedia in favoriteMedia %}
  959.                                     <div class=\"fav-box\">
  960.                                         <a {% if not fmedia.media.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: fmedia.media.uuid}) }}\" {% endif %} class='pe-3'>{{ fmedia.media.name }}</a>
  961.                                         <div class=\"d-flex justify-content-end\">
  962.                                             <button class=\"video-social-button media-favorite__button m-0\" data-key='{{ fmedia.media.id }}'>
  963.                                                 <div class=\"social-icon media-favorite__icon {% if true == (fmedia.media.id in allUserFavoritesMediaIds) %} favourited {% else %}favourite{% endif %}\"></div>
  964.                                             </button>
  965.                                             <button
  966.                                                     class=\"video-social-button m-0\"
  967.                                                     data-bs-toggle=\"popover\"
  968.                                                     data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  969.                                                         <div class='social-icon messenger'></div>
  970.                                                         <div
  971.                                                             class='social-icon email m-0'
  972.                                                         ></div>
  973.                                                     </div>\"
  974.                                                     data-bs-placement=\"bottom\"
  975.                                                     data-bs-trigger=\"focus\"
  976.                                                     data-bs-html=\"true\"
  977.                                                     data-key='{{ fmedia.id }}'
  978.                                                     data-link='{{ absolute_url(path(\"media_show\", {uuid: fmedia.media.uuid})) }}'
  979.                                             >
  980.                                                 <div class=\"social-icon share\"></div>
  981.                                             </button>
  982.                                         </div>
  983.                                     </div>
  984.                                 {% endfor %}
  985.                             </div>
  986.                             <div class='fav-empty p-3 {% if favoriteMedia|length %} d-none {% endif %}'>
  987.                                 <img src='{{ asset('build/images/add_to_favorite.png') }}' class='mb-3'/>
  988.                                 <img src='{{ asset('build/images/favorite_star.png') }}' />
  989.                             </div>
  990.                         </div>
  991.                     </div>
  992.                 {% endif %}
  993.                 <div class=\"col-12\">
  994.                     <p class=\"section-description my-4\">Inni użytkownicy wyświetlają również:</p>
  995.                     <div class=\"row\">
  996.                         {% for smedia in suggestedMedia %}
  997.                             <div class='position-relative col-lg-4 col-sm-6 mb-3'>
  998.                                 <a {% if not smedia.getIsLocked() %}href=\"{{ path(\"media_show\", {uuid: smedia.uuid}) }}\" {% endif %} class=\"\">
  999.                                     <div class=\"white-placeholder overflow-hidden\">
  1000.                                         <img src='{{ vich_uploader_asset(smedia.image) }}' alt='' class='img-fluid module-img'/>
  1001.                                     </div>
  1002.                                     <p class=\"next-module-title\">{{ smedia.name }}</p>
  1003.                                     <p class=\"next-module-author\">{{ smedia.author.title }}</p>
  1004.                                     {% if smedia.timeToSpend %}
  1005.                                         <div class=\"next-module-time\">
  1006.                                             <img src=\"{{ asset('build/images/time.svg') }}\" class=\"icon-time\" alt=\"\"/>
  1007.                                             {{ smedia.timeToSpend }} min
  1008.                                         </div>
  1009.                                     {% endif %}
  1010.                                 </a>
  1011.                                 <div class=\"video-social-buttons-holder\">
  1012.                                     {% if isLogged %}
  1013.                                         <button class=\"video-social-button media-favorite__button\" data-key='{{ smedia.id }}'>
  1014.                                             <div class=\"social-icon media-favorite__icon {% if true == (smedia.id in allUserFavoritesMediaIds) %} favourited {% else %}favourite{% endif %}\"></div>
  1015.                                         </button>
  1016.                                     {% endif %}
  1017.                                     <button
  1018.                                         class=\"video-social-button m-0\"
  1019.                                         data-bs-toggle=\"popover\"
  1020.                                         data-bs-content=\"<div class='d-flex flex-row justify-content-center w-100'>
  1021.                                                 <div class='social-icon messenger'></div>
  1022.                                                 {% if isLogged %}
  1023.                                                     <div
  1024.                                                         class='social-icon email m-0'
  1025.                                                     ></div>
  1026.                                                 {% endif %}
  1027.                                             </div>\"
  1028.                                         data-bs-placement=\"bottom\"
  1029.                                         data-bs-trigger=\"focus\"
  1030.                                         data-bs-html=\"true\"
  1031.                                         data-key='{{ smedia.id }}'
  1032.                                         data-link='{{ absolute_url(path(\"media_show\", {uuid: smedia.uuid})) }}'
  1033.                                     >
  1034.                                         <div class=\"social-icon share\"></div>
  1035.                                     </button>
  1036.                                 </div>
  1037.                             </div>
  1038.                         {% endfor %}
  1039.                     </div>
  1040.                 </div>
  1041.             </div>
  1042.         </div>
  1043.     </section>
  1044.     <section class=\"mb-3\">
  1045.         <div class=\"container-fluid p-0\">
  1046.             <div class=\"row\">
  1047.                 <div class=\"col-sm-6 mb-sm-0 mb-3\">
  1048.                     <a href='{{ path('exam_all') }}' class=\"big-button-blue\">SYMULACJE EGZAMINÓW CEM</a>
  1049.                 </div>
  1050.                 <div class=\"col-sm-6\">
  1051.                     <a href=\"{{ path('exam-with-key_all') }}\" class=\"big-button-blue\">EGZAMINY CEM Z KLUCZEM</a>
  1052.                 </div>
  1053.             </div>
  1054.         </div>
  1055.     </section>
  1056.     <section class=\"section-module\">
  1057.         <div class=\"container-fluid p-0\">
  1058.             <h1 class=\"section-title mb-4\">Moduły edukacyjne</h1>
  1059.             {% for module in modules|filter(m => m.isEnabled and m.isLocked == false) %}
  1060.             <div class=\"rounded-grey-bg blue-border module-box\">
  1061.                 <div class=\"row\">
  1062.                     <div class=\"col-lg-5\">
  1063.                         <div class=\"container-fluid\">
  1064.                             <div class=\"row\">
  1065.                                 {% set authors = {}  %}
  1066.                                 {% if isLogged %}
  1067.                                     {% for media in module.mediaForViewForUser(app.user) %}
  1068.                                         {% if media.author and not authors|filter(a => a.id == media.author.id)|length %}
  1069.                                             {% set authors = authors|merge({ (media.author.id): (media.author) })  %}
  1070.                                         {% endif %}
  1071.                                     {% endfor %}
  1072.                                 {% else %}
  1073.                                     {% for media in module.mediaForViewForAnonymous() %}
  1074.                                         {% if media.author and not authors|filter(a => a.id == media.author.id)|length %}
  1075.                                             {% set authors = authors|merge({ (media.author.id): (media.author) })  %}
  1076.                                         {% endif %}
  1077.                                     {% endfor %}
  1078.                                 {% endif %}
  1079.                                 <div class=\"col-12 d-flex justify-content-center\">
  1080.                                     {% for author in authors|slice(0, 2) %}
  1081.                                         <div class=\"module-author\">
  1082.                                             {% if author.image %}
  1083.                                                 <img class=\"module-author-img\" src=\"{{ vich_uploader_asset(author.image) }}\" alt=\"\"/>
  1084.                                             {% else %}
  1085.                                                 <img class=\"module-author-img\" src=\"{{ asset('build/images/avatar.svg') }}\" alt=\"\"/>
  1086.                                             {% endif %}
  1087.                                         </div>
  1088.                                     {% endfor %}
  1089.                                 </div>
  1090.                                 <div class=\"col-12 d-flex justify-content-center\">
  1091.                                     <div class=\"mt-4 d-inline-flex\">
  1092.                                         {% for author in authors|slice(0, 2) %}
  1093.                                             <span class=\"module-author-name\">{{ author.title }}</span>
  1094.                                         {% endfor %}
  1095.                                     </div>
  1096.                                 </div>
  1097.                             </div>
  1098.                         </div>
  1099.                     </div>
  1100.                     <div class=\"col-lg-7\">
  1101.                         <a href=\"{{ path('modules_show', {uuid: module.uuid}) }}\" class=\"col-lg-3 col-sm-6 mb-3\">
  1102.                             <p class=\"module-title\">{{ module.name }}</p>
  1103.                             <p class=\"module-subtitle\">{{ module.description }}</p>
  1104.                         </a>
  1105.                         <div class=\"d-flex justify-content-end flex-column flex-sm-row\">
  1106.                             {% set timeToSpend = 0 %}
  1107.                             {% set types = [] %}
  1108.                             {% if isLogged %}
  1109.                                 {% for media in module.mediaForViewForUser(app.user) %}
  1110.                                     {% if media.timeToSpend %}
  1111.                                         {% set timeToSpend = timeToSpend + media.timeToSpend  %}
  1112.                                     {% endif %}
  1113.                                     {% if false == (media.getType(true) in types) %}
  1114.                                         {% set types = types|merge([media.getType(true)]) %}
  1115.                                         <button class=\"module-button text-uppercase\">{{ media.getType(true) }}</button>
  1116.                                     {% endif %}
  1117.                                 {% endfor %}
  1118.                             {% else %}
  1119.                                 {% for media in module.mediaForViewForAnonymous() %}
  1120.                                     {% if media.timeToSpend %}
  1121.                                         {% set timeToSpend = timeToSpend + media.timeToSpend  %}
  1122.                                     {% endif %}
  1123.                                     {% if false == (media.getType(true) in types) %}
  1124.                                         {% set types = types|merge([media.getType(true)]) %}
  1125.                                         <button class=\"module-button text-uppercase\">{{ media.getType(true) }}</button>
  1126.                                     {% endif %}
  1127.                                 {% endfor %}
  1128.                             {% endif %}
  1129.                             <button class=\"next-module-time module-button\">
  1130.                                 <img src=\"{{ asset('build/images/time.svg') }}\" class=\"icon-time\" alt=\"\"/>
  1131.                                 {{ timeToSpend }} min
  1132.                             </button>
  1133.                         </div>
  1134.                     </div>
  1135.                     <!--Collapsed content-->
  1136.                     <div class=\"container-fluid collapse mt-4\" id=\"morecontent-{{ module.id }}\" >
  1137.                         <div class=\"row\">
  1138.                             {% if isLogged %}
  1139.                                 {% for media in module.mediaForViewForUser(app.user) %}
  1140.                                     {{ include('pages/common/_media-preview-item.html.twig', {media: media}) }}
  1141.                                 {% endfor %}
  1142.                                 {% for survey in module.surveysFormViewForUser(app.user) %}
  1143.                                     {{ include('pages/common/_survey-preview-item.html.twig') }}
  1144.                                 {% endfor %}
  1145.                             {% else %}
  1146.                                 {% for media in module.mediaForViewForAnonymous() %}
  1147.                                     {{ include('pages/common/_media-preview-item.html.twig', {media: media}) }}
  1148.                                 {% endfor %}
  1149.                                 {% for survey in module.surveysFormViewForAnonymous() %}
  1150.                                     {{ include('pages/common/_survey-preview-item.html.twig') }}
  1151.                                 {% endfor %}
  1152.                             {% endif %}
  1153.                         </div>
  1154.                     </div>
  1155.                 </div>
  1156.                 <button class=\"more-content-btn\" data-bs-toggle=\"collapse\" href=\"#morecontent-{{ module.id }}\" aria-expanded=\"false\">
  1157.                     <div class=\"more-content-btn-img\"></div>
  1158.                 </button>
  1159.             </div>
  1160.             {% endfor %}
  1161.         </div>
  1162.     </section>
  1163. {% endblock %}
  1164. ""pages/home.html.twig""/var/www/23-akademiamistrzowpsychiatrii.pl/templates/pages/home.html.twig");
  1165.     }
  1166. }