var/cache/dev/twig/5e/5e61a2d131b0d4f617e07c62d74e2053863e64b9e84c6cb49a0d015d477aee9b.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* website/product/product-detail-course-content-section.html.twig */
  14. class __TwigTemplate_6bc207429904ec0ec0dc28841b1ec5f9abf9ce8d49ad186b270f34fac39712ab extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-detail-course-content-section.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/product/product-detail-course-content-section.html.twig"));
  33.         // line 1
  34.         $macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"] = $this->macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"] = $this->loadTemplate("utils.html.twig""website/product/product-detail-course-content-section.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["icosLibrary"] = [=> "globe"=> "file-text"=> "sound"=> "file-text"=> "video"=> "video"=> "video"=> "video"=> "video"];
  40.         // line 14
  41.         echo "
  42. ";
  43.         // line 15
  44.         $context["libEnum"] = [=> "CONTENT_EMBED"=> "CONTENT_FILES"=> "CONTENT_AUDIO"=> "CONTENT_TEXT"=> "CONTENT_VIDEO"=> "CONTENT_LIVE"=> "CONTENT_CONFERENCE"=> "CONTENT_VIDEO_FILE"=> "CONTENT_EXTERNAL_LIVE"10 => "CONTENT_NEW_LIVE"];
  45.         // line 27
  46.         echo "
  47. ";
  48.         // line 28
  49.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["lessonModules"]) || array_key_exists("lessonModules"$context) ? $context["lessonModules"] : (function () { throw new RuntimeError('Variable "lessonModules" does not exist.'28$this->source); })())), 0))) {
  50.             // line 29
  51.             echo "    ";
  52.             $context["total"] = twig_length_filter($this->env, (isset($context["lessonModules"]) || array_key_exists("lessonModules"$context) ? $context["lessonModules"] : (function () { throw new RuntimeError('Variable "lessonModules" does not exist.'29$this->source); })()));
  53.             // line 30
  54.             echo "    ";
  55.             $context["resta"] = ((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'30$this->source); })()) - (isset($context["show"]) || array_key_exists("show"$context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.'30$this->source); })()));
  56.             // line 31
  57.             echo "    <h3 class=\"tit-sec\">";
  58.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("content""product"), "html"nulltrue);
  59.             echo "</h3>
  60.     <div id=\"contem-modulos\" class=\"perguntas\">
  61.         ";
  62.             // line 33
  63.             $context['_parent'] = $context;
  64.             $context['_seq'] = twig_ensure_traversable((isset($context["lessonModules"]) || array_key_exists("lessonModules"$context) ? $context["lessonModules"] : (function () { throw new RuntimeError('Variable "lessonModules" does not exist.'33$this->source); })()));
  65.             foreach ($context['_seq'] as $context["i"] => $context["lessonModule"]) {
  66.                 // line 34
  67.                 echo "            ";
  68.                 $context["n"] = ($context["i"] + 1);
  69.                 // line 35
  70.                 echo "            ";
  71.                 if ((=== twig_compare((isset($context["n"]) || array_key_exists("n"$context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.'35$this->source); })()), ((isset($context["show"]) || array_key_exists("show"$context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.'35$this->source); })()) + 1)))) {
  72.                     echo "<div class=\"js--hidden\">";
  73.                 }
  74.                 // line 36
  75.                 echo "                <div class=\"questao";
  76.                 echo (((>= twig_compare((isset($context["n"]) || array_key_exists("n"$context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.'36$this->source); })()), (isset($context["open"]) || array_key_exists("open"$context) ? $context["open"] : (function () { throw new RuntimeError('Variable "open" does not exist.'36$this->source); })())))) ? (" status--aberto") : (""));
  77.                 echo "\">
  78.                     <div class=\"pergunta js--abre\">
  79.                         <p>
  80.                             <span class=\"question-number\">";
  81.                 // line 39
  82.                 echo twig_escape_filter($this->env, (isset($context["n"]) || array_key_exists("n"$context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.'39$this->source); })()), "html"nulltrue);
  83.                 echo "</span>";
  84.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lessonModule"], "title", [], "any"falsefalsefalse39), "html"nulltrue);
  85.                 echo "
  86.                             ";
  87.                 // line 40
  88.                 $context['_parent'] = $context;
  89.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["lessonModule"], "workload", [], "any"falsefalsefalse40));
  90.                 foreach ($context['_seq'] as $context["k"] => $context["workload"]) {
  91.                     // line 41
  92.                     echo "                                ";
  93.                     if ((=== twig_compare($context["workload"], 0))) {
  94.                         // line 42
  95.                         echo "                                    <span class=\"workload\">
  96.                                         <span class=\"ico-clock\">";
  97.                         // line 43
  98.                         echo twig_call_macro($macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"], "macro_ico", ["clock"], 43$context$this->getSourceContext());
  99.                         echo "</span>";
  100.                         echo twig_escape_filter($this->env$context["workload"], "html"nulltrue);
  101.                         echo "
  102.                                         ";
  103.                         // line 44
  104.                         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->plural($context["workload"], $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("workload_hour""product"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("workload_hours""product")), "html"nulltrue);
  105.                         // line 47
  106.                         echo "
  107.                                     </span>
  108.                                 ";
  109.                     }
  110.                     // line 50
  111.                     echo "                            ";
  112.                 }
  113.                 $_parent $context['_parent'];
  114.                 unset($context['_seq'], $context['_iterated'], $context['k'], $context['workload'], $context['_parent'], $context['loop']);
  115.                 $context array_intersect_key($context$_parent) + $_parent;
  116.                 // line 51
  117.                 echo "                        </p>
  118.                         <span class=\"ico seta\">";
  119.                 // line 52
  120.                 echo twig_call_macro($macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"], "macro_ico", ["chevron-down"], 52$context$this->getSourceContext());
  121.                 echo "</span>
  122.                     </div>
  123.                     <div class=\"resposta product-content js--sub\">
  124.                         ";
  125.                 // line 55
  126.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["lessonModule"], "description", [], "any"falsefalsefalse55))) {
  127.                     // line 56
  128.                     echo "                            ";
  129.                     if ((!== twig_compare(twig_get_attribute($this->env$this->source$context["lessonModule"], "description", [], "any"falsefalsefalse56), "null"))) {
  130.                         // line 57
  131.                         echo "                                <div class=\"desc\">";
  132.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lessonModule"], "description", [], "any"falsefalsefalse57), "html"nulltrue);
  133.                         echo "</div>
  134.                             ";
  135.                     }
  136.                     // line 59
  137.                     echo "                        ";
  138.                 }
  139.                 // line 60
  140.                 echo "                        <ul class=\"lessons\">
  141.                             ";
  142.                 // line 61
  143.                 $context["paged"] = [=> $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("LibraryEnum::CONTENT_FILES"), => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("LibraryEnum::CONTENT_TEXT")];
  144.                 // line 62
  145.                 echo "                            ";
  146.                 $context["isPaged"] = false;
  147.                 // line 63
  148.                 echo "
  149.                             ";
  150.                 // line 64
  151.                 $context['_parent'] = $context;
  152.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["lessonModule"], "lessons", [], "any"falsefalsefalse64));
  153.                 foreach ($context['_seq'] as $context["j"] => $context["lesson"]) {
  154.                     // line 65
  155.                     echo "                                ";
  156.                     if (twig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsefalsefalse65)) {
  157.                         // line 66
  158.                         echo "                                    <li class=\"lesson\">
  159.                                         ";
  160.                         // line 67
  161.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsetruefalse67), "type", [], "any"truetruefalse67)) {
  162.                             // line 68
  163.                             echo "                                            ";
  164.                             if (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsefalsefalse68), "type", [], "any"falsefalsefalse68), 0)) && (-=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsefalsefalse68), "type", [], "any"falsefalsefalse68), 10)))) {
  165.                                 // line 69
  166.                                 echo "                                                <i class=\"ico\">";
  167.                                 echo twig_call_macro($macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"], "macro_ico", [twig_get_attribute($this->env$this->source, (isset($context["icosLibrary"]) || array_key_exists("icosLibrary"$context) ? $context["icosLibrary"] : (function () { throw new RuntimeError('Variable "icosLibrary" does not exist.'69$this->source); })()), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsefalsefalse69), "type", [], "any"falsefalsefalse69), [], "array"falsefalsefalse69)], 69$context$this->getSourceContext());
  168.                                 echo "</i>
  169.                                             ";
  170.                             }
  171.                             // line 71
  172.                             echo "                                        ";
  173.                         }
  174.                         // line 72
  175.                         echo "
  176.                                         <p class=\"title\">";
  177.                         // line 73
  178.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["lesson"], "title", [], "any"falsefalsefalse73), "html"nulltrue);
  179.                         echo "</p>
  180.                                         ";
  181.                         // line 75
  182.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsetruefalse75), "type", [], "any"truetruefalse75)) {
  183.                             // line 76
  184.                             echo "                                            ";
  185.                             $context["isPaged"] = ((twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lesson"], "library", [], "any"falsefalsefalse76), "type", [], "any"falsefalsefalse76), (isset($context["paged"]) || array_key_exists("paged"$context) ? $context["paged"] : (function () { throw new RuntimeError('Variable "paged" does not exist.'76$this->source); })()))) ? (true) : (false));
  186.                             // line 77
  187.                             echo "                                        ";
  188.                         }
  189.                         // line 78
  190.                         echo "
  191.                                         ";
  192.                         // line 79
  193.                         if ( !(isset($context["isPaged"]) || array_key_exists("isPaged"$context) ? $context["isPaged"] : (function () { throw new RuntimeError('Variable "isPaged" does not exist.'79$this->source); })())) {
  194.                             // line 80
  195.                             echo "                                            <span class=\"ico\">";
  196.                             echo twig_call_macro($macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"], "macro_ico", ["clock"], 80$context$this->getSourceContext());
  197.                             echo "</span>
  198.                                         ";
  199.                         }
  200.                         // line 82
  201.                         echo "
  202.                                         <p class=\"size\">
  203.                                             ";
  204.                         // line 84
  205.                         echo twig_call_macro($macros["__internal_779687c9a693c9d1c1784d8d4a73f46c92c0d2c51493644d3e50e6f1afb8b9d5"], "macro_libraryDuration", [$context["lesson"]], 84$context$this->getSourceContext());
  206.                         echo "
  207.                                         </p>
  208.                                         ";
  209.                         // line 86
  210.                         if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["lesson"], "demonstration", [], "any"falsefalsefalse86), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("LessonEnum::YES")))) {
  211.                             // line 87
  212.                             echo "                                            <p class=\"acao\">
  213.                                                 <a class=\"btn-watch\" href=\"";
  214.                             // line 88
  215.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lessonDemoPage", ["lessonId" => twig_get_attribute($this->env$this->source$context["lesson"], "id", [], "any"falsefalsefalse88), "productOfferId" => twig_get_attribute($this->env$this->source, (isset($context["productOffer"]) || array_key_exists("productOffer"$context) ? $context["productOffer"] : (function () { throw new RuntimeError('Variable "productOffer" does not exist.'88$this->source); })()), "id", [], "any"falsefalsefalse88)]), "html"nulltrue);
  216.                             echo "\">";
  217.                             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("watch""product"), "html"nulltrue);
  218.                             echo "</a>
  219.                                             </p>
  220.                                         ";
  221.                         }
  222.                         // line 91
  223.                         echo "                                    </li>
  224.                                 ";
  225.                     }
  226.                     // line 93
  227.                     echo "                            ";
  228.                 }
  229.                 $_parent $context['_parent'];
  230.                 unset($context['_seq'], $context['_iterated'], $context['j'], $context['lesson'], $context['_parent'], $context['loop']);
  231.                 $context array_intersect_key($context$_parent) + $_parent;
  232.                 // line 94
  233.                 echo "                        </ul>
  234.                     </div>
  235.                 </div>
  236.             ";
  237.                 // line 97
  238.                 if ((=== twig_compare((isset($context["n"]) || array_key_exists("n"$context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.'97$this->source); })()), (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'97$this->source); })())))) {
  239.                     echo "</div>";
  240.                 }
  241.                 // line 98
  242.                 echo "            ";
  243.                 // line 99
  244.                 echo "        ";
  245.             }
  246.             $_parent $context['_parent'];
  247.             unset($context['_seq'], $context['_iterated'], $context['i'], $context['lessonModule'], $context['_parent'], $context['loop']);
  248.             $context array_intersect_key($context$_parent) + $_parent;
  249.             // line 100
  250.             echo "
  251.         ";
  252.             // line 102
  253.             echo "        ";
  254.             if ((=== twig_compare((isset($context["resta"]) || array_key_exists("resta"$context) ? $context["resta"] : (function () { throw new RuntimeError('Variable "resta" does not exist.'102$this->source); })()), 0))) {
  255.                 // line 103
  256.                 echo "            ";
  257.                 $context["label"] = (((=== twig_compare((isset($context["resta"]) || array_key_exists("resta"$context) ? $context["resta"] : (function () { throw new RuntimeError('Variable "resta" does not exist.'103$this->source); })()), 1))) ? ("module") : ("modules"));
  258.                 // line 104
  259.                 echo "            <div class=\"modulos-mais\">
  260.                 <a id=\"btn-modulos-mostrar\" class=\"btn-mais\">
  261.                     <span class=\"js--shown\">";
  262.                 // line 106
  263.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("more""product"), "html"nulltrue);
  264.                 echo " ";
  265.                 echo twig_escape_filter($this->env, (isset($context["resta"]) || array_key_exists("resta"$context) ? $context["resta"] : (function () { throw new RuntimeError('Variable "resta" does not exist.'106$this->source); })()), "html"nulltrue);
  266.                 echo " ";
  267.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'106$this->source); })()), "product"), "html"nulltrue);
  268.                 echo "</span>
  269.                     <span class=\"js--hidden\">";
  270.                 // line 107
  271.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("hide""product"), "html"nulltrue);
  272.                 echo " ";
  273.                 echo twig_escape_filter($this->env, (isset($context["resta"]) || array_key_exists("resta"$context) ? $context["resta"] : (function () { throw new RuntimeError('Variable "resta" does not exist.'107$this->source); })()), "html"nulltrue);
  274.                 echo " ";
  275.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage((isset($context["label"]) || array_key_exists("label"$context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.'107$this->source); })()), "product"), "html"nulltrue);
  276.                 echo "</span>
  277.                 </a>
  278.             </div>
  279.         ";
  280.             }
  281.             // line 111
  282.             echo "    </div>
  283. ";
  284.         }
  285.         
  286.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  287.         
  288.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  289.     }
  290.     public function getTemplateName()
  291.     {
  292.         return "website/product/product-detail-course-content-section.html.twig";
  293.     }
  294.     public function isTraitable()
  295.     {
  296.         return false;
  297.     }
  298.     public function getDebugInfo()
  299.     {
  300.         return array (  292 => 111,  281 => 107,  273 => 106,  269 => 104,  266 => 103,  263 => 102,  260 => 100,  254 => 99,  252 => 98,  248 => 97,  243 => 94,  237 => 93,  233 => 91,  225 => 88,  222 => 87,  220 => 86,  215 => 84,  211 => 82,  205 => 80,  203 => 79,  200 => 78,  197 => 77,  194 => 76,  192 => 75,  187 => 73,  184 => 72,  181 => 71,  175 => 69,  172 => 68,  170 => 67,  167 => 66,  164 => 65,  160 => 64,  157 => 63,  154 => 62,  152 => 61,  149 => 60,  146 => 59,  140 => 57,  137 => 56,  135 => 55,  129 => 52,  126 => 51,  120 => 50,  115 => 47,  113 => 44,  107 => 43,  104 => 42,  101 => 41,  97 => 40,  91 => 39,  84 => 36,  79 => 35,  76 => 34,  72 => 33,  66 => 31,  63 => 30,  60 => 29,  58 => 28,  55 => 27,  53 => 15,  50 => 14,  48 => 3,  45 => 2,  43 => 1,);
  301.     }
  302.     public function getSourceContext()
  303.     {
  304.         return new Source("{% from 'utils.html.twig' import ico, libraryDuration %}
  305. {% set icosLibrary = {
  306.     1: 'globe',
  307.     2: 'file-text',
  308.     3: 'sound',
  309.     4: 'file-text',
  310.     5: 'video',
  311.     6: 'video',
  312.     7: 'video',
  313.     8: 'video',
  314.     9: 'video'
  315. } %}
  316. {% set libEnum = {
  317. 1: 'CONTENT_EMBED',
  318. 2: 'CONTENT_FILES',
  319. 3: 'CONTENT_AUDIO',
  320. 4: 'CONTENT_TEXT',
  321. 5: 'CONTENT_VIDEO',
  322. 6: 'CONTENT_LIVE',
  323. 7: 'CONTENT_CONFERENCE',
  324. 8: 'CONTENT_VIDEO_FILE',
  325. 9: 'CONTENT_EXTERNAL_LIVE',
  326. 10: 'CONTENT_NEW_LIVE'
  327. } %}
  328. {% if lessonModules|length > 0 %}
  329.     {% set total = lessonModules|length %}
  330.     {% set resta = total-show %}
  331.     <h3 class=\"tit-sec\">{{ getLanguage('content', 'product') }}</h3>
  332.     <div id=\"contem-modulos\" class=\"perguntas\">
  333.         {% for i, lessonModule in lessonModules %}
  334.             {% set n = i+1 %}
  335.             {% if (n == show + 1) %}<div class=\"js--hidden\">{% endif %}
  336.                 <div class=\"questao{{ n <= open ? ' status--aberto' }}\">
  337.                     <div class=\"pergunta js--abre\">
  338.                         <p>
  339.                             <span class=\"question-number\">{{ n }}</span>{{ lessonModule.title }}
  340.                             {% for k, workload in lessonModule.workload %}
  341.                                 {% if workload > 0 %}
  342.                                     <span class=\"workload\">
  343.                                         <span class=\"ico-clock\">{{ ico('clock') }}</span>{{ workload }}
  344.                                         {{ plural(workload, 
  345.                                             getLanguage('workload_hour', 'product'), 
  346.                                             getLanguage('workload_hours', 'product')
  347.                                         )}}
  348.                                     </span>
  349.                                 {% endif %}
  350.                             {% endfor %}
  351.                         </p>
  352.                         <span class=\"ico seta\">{{ ico('chevron-down') }}</span>
  353.                     </div>
  354.                     <div class=\"resposta product-content js--sub\">
  355.                         {% if lessonModule.description is not empty %}
  356.                             {% if lessonModule.description != \"null\" %}
  357.                                 <div class=\"desc\">{{ lessonModule.description }}</div>
  358.                             {% endif %}
  359.                         {% endif %}
  360.                         <ul class=\"lessons\">
  361.                             {% set paged = [enum('LibraryEnum::CONTENT_FILES'), enum('LibraryEnum::CONTENT_TEXT')] %}
  362.                             {% set isPaged = false %}
  363.                             {% for j, lesson in lessonModule.lessons %}
  364.                                 {% if lesson.library %}
  365.                                     <li class=\"lesson\">
  366.                                         {% if lesson.library.type is defined %}
  367.                                             {% if lesson.library.type > 0 and lesson.library.type < 10 %}
  368.                                                 <i class=\"ico\">{{ ico(icosLibrary[lesson.library.type]) }}</i>
  369.                                             {% endif %}
  370.                                         {% endif %}
  371.                                         <p class=\"title\">{{ lesson.title }}</p>
  372.                                         {% if lesson.library.type is defined %}
  373.                                             {% set isPaged = (lesson.library.type in paged ? true : false) %}
  374.                                         {% endif %}
  375.                                         {% if not isPaged %}
  376.                                             <span class=\"ico\">{{ ico('clock') }}</span>
  377.                                         {% endif %}
  378.                                         <p class=\"size\">
  379.                                             {{ libraryDuration(lesson) }}
  380.                                         </p>
  381.                                         {% if lesson.demonstration == enum('LessonEnum::YES') %}
  382.                                             <p class=\"acao\">
  383.                                                 <a class=\"btn-watch\" href=\"{{ path('lessonDemoPage', { lessonId: lesson.id, productOfferId: productOffer.id }) }}\">{{ getLanguage('watch', 'product') }}</a>
  384.                                             </p>
  385.                                         {% endif %}
  386.                                     </li>
  387.                                 {% endif %}
  388.                             {% endfor %}
  389.                         </ul>
  390.                     </div>
  391.                 </div>
  392.             {% if (n == total) %}</div>{% endif %}
  393.             {# -/ .js--hidden #}
  394.         {% endfor %}
  395.         {# MOSTRAR MAIS #}
  396.         {% if resta > 0 %}
  397.             {% set label = (resta == 1)?'module':'modules' %}
  398.             <div class=\"modulos-mais\">
  399.                 <a id=\"btn-modulos-mostrar\" class=\"btn-mais\">
  400.                     <span class=\"js--shown\">{{ getLanguage('more', 'product') }} {{ resta }} {{ getLanguage(label, 'product') }}</span>
  401.                     <span class=\"js--hidden\">{{ getLanguage('hide', 'product') }} {{ resta }} {{ getLanguage(label, 'product') }}</span>
  402.                 </a>
  403.             </div>
  404.         {% endif %}
  405.     </div>
  406. {% endif %}
  407. ""website/product/product-detail-course-content-section.html.twig""/var/www/html/templates/website/product/product-detail-course-content-section.html.twig");
  408.     }
  409. }