var/cache/dev/twig/e0/e018e18851ea10a04b9ea7fe4988fe5b9b0abea54ec2669a9f5be1f471c5af70.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/user/resume/courses.html.twig */
  14. class __TwigTemplate_19828f0c788b7592ac71f7513af373aeafed2105178ad29a127a127643065dd2 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/user/resume/courses.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/user/resume/courses.html.twig"));
  33.         // line 1
  34.         $macros["__internal_291a48fd291125bf70560a79e87c1e6549c64b05ab5a2719815ab9790f32a12a"] = $this->macros["__internal_291a48fd291125bf70560a79e87c1e6549c64b05ab5a2719815ab9790f32a12a"] = $this->loadTemplate("utils.html.twig""website/user/resume/courses.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["resp"] = ["total" => (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'3$this->source); })()), "offset" => (isset($context["offset"]) || array_key_exists("offset"$context) ? $context["offset"] : (function () { throw new RuntimeError('Variable "offset" does not exist.'3$this->source); })())];
  40.         // line 4
  41.         echo json_encode((isset($context["resp"]) || array_key_exists("resp"$context) ? $context["resp"] : (function () { throw new RuntimeError('Variable "resp" does not exist.'4$this->source); })()));
  42.         echo "##
  43. ";
  44.         // line 6
  45.         if (((=== twig_compare(twig_length_filter($this->env, (isset($context["enrollments"]) || array_key_exists("enrollments"$context) ? $context["enrollments"] : (function () { throw new RuntimeError('Variable "enrollments" does not exist.'6$this->source); })())), 0)) || (=== twig_compare(twig_length_filter($this->env, (isset($context["coursesFree"]) || array_key_exists("coursesFree"$context) ? $context["coursesFree"] : (function () { throw new RuntimeError('Variable "coursesFree" does not exist.'6$this->source); })())), 0)))) {
  46.             // line 7
  47.             echo "
  48.     ";
  49.             // line 8
  50.             if ((isset($context["wrap"]) || array_key_exists("wrap"$context) ? $context["wrap"] : (function () { throw new RuntimeError('Variable "wrap" does not exist.'8$this->source); })())) {
  51.                 // line 9
  52.                 echo "        <div class=\"lista-resumo js--response\">
  53.             ";
  54.                 // line 11
  55.                 $context['_parent'] = $context;
  56.                 $context['_seq'] = twig_ensure_traversable((isset($context["coursesFree"]) || array_key_exists("coursesFree"$context) ? $context["coursesFree"] : (function () { throw new RuntimeError('Variable "coursesFree" does not exist.'11$this->source); })()));
  57.                 $context['loop'] = [
  58.                   'parent' => $context['_parent'],
  59.                   'index0' => 0,
  60.                   'index'  => 1,
  61.                   'first'  => true,
  62.                 ];
  63.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  64.                     $length count($context['_seq']);
  65.                     $context['loop']['revindex0'] = $length 1;
  66.                     $context['loop']['revindex'] = $length;
  67.                     $context['loop']['length'] = $length;
  68.                     $context['loop']['last'] = === $length;
  69.                 }
  70.                 foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  71.                     // line 12
  72.                     echo "                <a class=\"item course-free\" href=\"";
  73.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courseIndex", ["id" => twig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse12)]), "html"nulltrue);
  74.                     echo "\">
  75.                     <header>
  76.                         <div class=\"foto\">
  77.                             ";
  78.                     // line 15
  79.                     echo twig_call_macro($macros["__internal_291a48fd291125bf70560a79e87c1e6549c64b05ab5a2719815ab9790f32a12a"], "macro_imgUpload", [twig_get_attribute($this->env$this->source,                     // line 17
  80. $context["course"], "photo", [], "any"falsefalsefalse17), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_STORE"), "product-photo-resume-list"twig_get_attribute($this->env$this->source,                     // line 20
  81. $context["course"], "title", [], "any"falsefalsefalse20)], 16$context$this->getSourceContext());
  82.                     // line 22
  83.                     echo "
  84.                         </div>
  85.                         <div class=\"info\">
  86.                             <h2 class=\"nome\">";
  87.                     // line 26
  88.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "title", [], "any"falsefalsefalse26), "html"nulltrue);
  89.                     echo "</h2>
  90.                             <p class=\"nome\">";
  91.                     // line 27
  92.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "user", [], "any"falsefalsefalse27), "name", [], "any"falsefalsefalse27), "html"nulltrue);
  93.                     echo "</p>
  94.                             <div class=\"tags\">
  95.                                 <p class=\"status ";
  96.                     // line 30
  97.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getEnrollmentSituationClass(), "html"nulltrue);
  98.                     echo "\">
  99.                                     ";
  100.                     // line 31
  101.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getEnrollmentSituation(), "html"nulltrue);
  102.                     echo "
  103.                                 </p>
  104.                                 <p class=\"date-expire primary\">
  105.                                     ";
  106.                     // line 34
  107.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getEnrollmentPeriodLabel(null$context["course"]), "html"nulltrue);
  108.                     echo "
  109.                                 </p>
  110.                             </div>
  111.                             ";
  112.                     // line 39
  113.                     echo "                            ";
  114.                     $context["scoreCourse"] = $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getScoreCourse($context["course"]);
  115.                     // line 40
  116.                     echo "                            ";
  117.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'40$this->source); })()), "scoreTotal", [], "any"falsefalsefalse40), 9))) {
  118.                         // line 41
  119.                         echo "                                <span class=\"avaliacao\">
  120.                                     <span class=\"nota\">";
  121.                         // line 42
  122.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'42$this->source); })()), "score", [], "any"falsefalsefalse42), "html"nulltrue);
  123.                         echo "</span>&thinsp;
  124.                                     ";
  125.                         // line 43
  126.                         $this->loadTemplate("website/includes/stars.html.twig""website/user/resume/courses.html.twig"43)->display(twig_array_merge($context, ["score" => twig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'43$this->source); })()), "score", [], "any"falsefalsefalse43)]));
  127.                         // line 44
  128.                         echo "                                    &thinsp;<span class=\"total\">(";
  129.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'44$this->source); })()), "scoreTotal", [], "any"falsefalsefalse44), "html"nulltrue);
  130.                         echo ")</span>
  131.                                 </span>
  132.                             ";
  133.                     }
  134.                     // line 47
  135.                     echo "                        </div>
  136.                         
  137.                     </header>
  138.                     <div class=\"progresso\">
  139.                         <span class=\"tit\">";
  140.                     // line 51
  141.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("progress""user_resume"), "html"nulltrue);
  142.                     echo "</span>
  143.                         ";
  144.                     // line 52
  145.                     $context["progress"] = 0;
  146.                     // line 53
  147.                     echo "                        <div class=\"barra-box\">
  148.                             <div class=\"barra-prog\" style=\"width:";
  149.                     // line 54
  150.                     echo twig_escape_filter($this->env, (isset($context["progress"]) || array_key_exists("progress"$context) ? $context["progress"] : (function () { throw new RuntimeError('Variable "progress" does not exist.'54$this->source); })()), "html"nulltrue);
  151.                     echo "%;\">";
  152.                     echo twig_escape_filter($this->env, (isset($context["progress"]) || array_key_exists("progress"$context) ? $context["progress"] : (function () { throw new RuntimeError('Variable "progress" does not exist.'54$this->source); })()), "html"nulltrue);
  153.                     echo "%</div>
  154.                         </div>
  155.                         <span class=\"btn-continuar\">";
  156.                     // line 56
  157.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("continue""user_resume"), "html"nulltrue);
  158.                     echo "</span>
  159.                     </div>
  160.                 </a>
  161.             ";
  162.                     ++$context['loop']['index0'];
  163.                     ++$context['loop']['index'];
  164.                     $context['loop']['first'] = false;
  165.                     if (isset($context['loop']['length'])) {
  166.                         --$context['loop']['revindex0'];
  167.                         --$context['loop']['revindex'];
  168.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  169.                     }
  170.                 }
  171.                 $_parent $context['_parent'];
  172.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  173.                 $context array_intersect_key($context$_parent) + $_parent;
  174.                 // line 60
  175.                 echo "    ";
  176.             }
  177.             // line 61
  178.             echo "
  179.         ";
  180.             // line 62
  181.             $context['_parent'] = $context;
  182.             $context['_seq'] = twig_ensure_traversable((isset($context["enrollments"]) || array_key_exists("enrollments"$context) ? $context["enrollments"] : (function () { throw new RuntimeError('Variable "enrollments" does not exist.'62$this->source); })()));
  183.             $context['loop'] = [
  184.               'parent' => $context['_parent'],
  185.               'index0' => 0,
  186.               'index'  => 1,
  187.               'first'  => true,
  188.             ];
  189.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  190.                 $length count($context['_seq']);
  191.                 $context['loop']['revindex0'] = $length 1;
  192.                 $context['loop']['revindex'] = $length;
  193.                 $context['loop']['length'] = $length;
  194.                 $context['loop']['last'] = === $length;
  195.             }
  196.             foreach ($context['_seq'] as $context["_key"] => $context["enrollment"]) {
  197.                 // line 63
  198.                 echo "            <a class=\"item\" href=\"";
  199.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courseIndex", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["enrollment"], "course", [], "any"falsefalsefalse63), "id", [], "any"falsefalsefalse63)]), "html"nulltrue);
  200.                 echo "\">
  201.                 <header>
  202.                     <div class=\"foto\">
  203.                         ";
  204.                 // line 66
  205.                 echo twig_call_macro($macros["__internal_291a48fd291125bf70560a79e87c1e6549c64b05ab5a2719815ab9790f32a12a"], "macro_imgUpload", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 68
  206. $context["enrollment"], "course", [], "any"falsefalsefalse68), "photo", [], "any"falsefalsefalse68), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_STORE"), "product-photo-resume-list"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 71
  207. $context["enrollment"], "course", [], "any"falsefalsefalse71), "title", [], "any"falsefalsefalse71)], 67$context$this->getSourceContext());
  208.                 // line 73
  209.                 echo "
  210.                     </div>
  211.                     <div class=\"info\">
  212.                         <h2 class=\"nome\">";
  213.                 // line 77
  214.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["enrollment"], "course", [], "any"falsefalsefalse77), "title", [], "any"falsefalsefalse77), "html"nulltrue);
  215.                 echo "</h2>
  216.                         <p class=\"nome\">";
  217.                 // line 78
  218.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["enrollment"], "course", [], "any"falsefalsefalse78), "user", [], "any"falsefalsefalse78), "name", [], "any"falsefalsefalse78), "html"nulltrue);
  219.                 echo "</p>
  220.                         <div class=\"tags\">
  221.                             <p class=\"status ";
  222.                 // line 81
  223.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getEnrollmentSituationClass($context["enrollment"]), "html"nulltrue);
  224.                 echo "\">
  225.                                 ";
  226.                 // line 82
  227.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getEnrollmentSituation($context["enrollment"]), "html"nulltrue);
  228.                 echo "
  229.                             </p>
  230.                             <p class=\"date-expire primary\">
  231.                                 ";
  232.                 // line 85
  233.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getEnrollmentPeriodLabel($context["enrollment"]), "html"nulltrue);
  234.                 echo "
  235.                             </p>
  236.                         </div>
  237.                         ";
  238.                 // line 90
  239.                 echo "                        ";
  240.                 $context["scoreCourse"] = $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getScoreCourse(twig_get_attribute($this->env$this->source$context["enrollment"], "course", [], "any"falsefalsefalse90));
  241.                 // line 91
  242.                 echo "                        ";
  243.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'91$this->source); })()), "scoreTotal", [], "any"falsefalsefalse91), 9))) {
  244.                     // line 92
  245.                     echo "                            <span class=\"avaliacao\">
  246.                                 <span class=\"nota\">";
  247.                     // line 93
  248.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'93$this->source); })()), "score", [], "any"falsefalsefalse93), "html"nulltrue);
  249.                     echo "</span>&thinsp;
  250.                                 ";
  251.                     // line 94
  252.                     $this->loadTemplate("website/includes/stars.html.twig""website/user/resume/courses.html.twig"94)->display(twig_array_merge($context, ["score" => twig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'94$this->source); })()), "score", [], "any"falsefalsefalse94)]));
  253.                     // line 95
  254.                     echo "                                &thinsp;<span class=\"total\">(";
  255.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["scoreCourse"]) || array_key_exists("scoreCourse"$context) ? $context["scoreCourse"] : (function () { throw new RuntimeError('Variable "scoreCourse" does not exist.'95$this->source); })()), "scoreTotal", [], "any"falsefalsefalse95), "html"nulltrue);
  256.                     echo ")</span>
  257.                             </span>
  258.                         ";
  259.                 }
  260.                 // line 98
  261.                 echo "                    </div>
  262.                         
  263.                 </header>
  264.                 <div class=\"progresso\">
  265.                     <span class=\"tit\">";
  266.                 // line 102
  267.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("progress""user_resume"), "html"nulltrue);
  268.                 echo "</span>
  269.                     ";
  270.                 // line 103
  271.                 $context["progress"] = (((=== twig_compare(twig_get_attribute($this->env$this->source$context["enrollment"], "progress", [], "any"falsefalsefalse103), 100))) ? (100) : (twig_get_attribute($this->env$this->source$context["enrollment"], "progress", [], "any"falsefalsefalse103)));
  272.                 // line 104
  273.                 echo "                    <div class=\"barra-box\">
  274.                         <div class=\"barra-prog\" style=\"width:";
  275.                 // line 105
  276.                 echo twig_escape_filter($this->env, (isset($context["progress"]) || array_key_exists("progress"$context) ? $context["progress"] : (function () { throw new RuntimeError('Variable "progress" does not exist.'105$this->source); })()), "html"nulltrue);
  277.                 echo "%;\">";
  278.                 echo twig_escape_filter($this->env, (isset($context["progress"]) || array_key_exists("progress"$context) ? $context["progress"] : (function () { throw new RuntimeError('Variable "progress" does not exist.'105$this->source); })()), "html"nulltrue);
  279.                 echo "%</div>
  280.                     </div>
  281.                     <span class=\"btn-continuar\">";
  282.                 // line 107
  283.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("continue""user_resume"), "html"nulltrue);
  284.                 echo "</span>
  285.                 </div>
  286.             </a>
  287.         ";
  288.                 ++$context['loop']['index0'];
  289.                 ++$context['loop']['index'];
  290.                 $context['loop']['first'] = false;
  291.                 if (isset($context['loop']['length'])) {
  292.                     --$context['loop']['revindex0'];
  293.                     --$context['loop']['revindex'];
  294.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  295.                 }
  296.             }
  297.             $_parent $context['_parent'];
  298.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['enrollment'], $context['_parent'], $context['loop']);
  299.             $context array_intersect_key($context$_parent) + $_parent;
  300.             // line 111
  301.             echo "
  302.     ";
  303.             // line 112
  304.             if ((isset($context["wrap"]) || array_key_exists("wrap"$context) ? $context["wrap"] : (function () { throw new RuntimeError('Variable "wrap" does not exist.'112$this->source); })())) {
  305.                 // line 113
  306.                 echo "        </div>
  307.         ";
  308.                 // line 114
  309.                 if ((isset($context["showBtn"]) || array_key_exists("showBtn"$context) ? $context["showBtn"] : (function () { throw new RuntimeError('Variable "showBtn" does not exist.'114$this->source); })())) {
  310.                     // line 115
  311.                     echo "            <button class=\"btn-add-more btn-load\" data-url=\"";
  312.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("resumeCourse");
  313.                     echo "\">
  314.                 <span>";
  315.                     // line 116
  316.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("view_more""user_resume"), "html"nulltrue);
  317.                     echo "</span>
  318.                 <span>";
  319.                     // line 117
  320.                     echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("wait""util"), "html"nulltrue);
  321.                     echo "&thinsp;&hellip;&ensp;<i class=\"loader\">";
  322.                     echo twig_call_macro($macros["__internal_291a48fd291125bf70560a79e87c1e6549c64b05ab5a2719815ab9790f32a12a"], "macro_ico", ["loader-wish"], 117$context$this->getSourceContext());
  323.                     echo "</i></span>
  324.             </button>
  325.         ";
  326.                 }
  327.                 // line 120
  328.                 echo "    ";
  329.             }
  330.         }
  331.         
  332.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  333.         
  334.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  335.     }
  336.     public function getTemplateName()
  337.     {
  338.         return "website/user/resume/courses.html.twig";
  339.     }
  340.     public function isTraitable()
  341.     {
  342.         return false;
  343.     }
  344.     public function getDebugInfo()
  345.     {
  346.         return array (  345 => 120,  337 => 117,  333 => 116,  328 => 115,  326 => 114,  323 => 113,  321 => 112,  318 => 111,  300 => 107,  293 => 105,  290 => 104,  288 => 103,  284 => 102,  278 => 98,  271 => 95,  269 => 94,  265 => 93,  262 => 92,  259 => 91,  256 => 90,  249 => 85,  243 => 82,  239 => 81,  233 => 78,  229 => 77,  223 => 73,  221 => 71,  220 => 68,  219 => 66,  212 => 63,  195 => 62,  192 => 61,  189 => 60,  171 => 56,  164 => 54,  161 => 53,  159 => 52,  155 => 51,  149 => 47,  142 => 44,  140 => 43,  136 => 42,  133 => 41,  130 => 40,  127 => 39,  120 => 34,  114 => 31,  110 => 30,  104 => 27,  100 => 26,  94 => 22,  92 => 20,  91 => 17,  90 => 15,  83 => 12,  66 => 11,  62 => 9,  60 => 8,  57 => 7,  55 => 6,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  347.     }
  348.     public function getSourceContext()
  349.     {
  350.         return new Source("{% from 'utils.html.twig' import ico, imgUpload %}
  351. {% set resp = { total:total, offset:offset, }%}
  352. {{ resp|json_encode|raw }}##
  353. {% if enrollments|length > 0 or coursesFree|length > 0 %}
  354.     {% if wrap %}
  355.         <div class=\"lista-resumo js--response\">
  356.             {% for course in coursesFree %}
  357.                 <a class=\"item course-free\" href=\"{{ path('courseIndex', {'id': course.id }) }}\">
  358.                     <header>
  359.                         <div class=\"foto\">
  360.                             {{  
  361.                                 imgUpload(
  362.                                     course.photo, 
  363.                                     enum('AbstractEnum::PATH_STORE'), 
  364.                                     'product-photo-resume-list', 
  365.                                     course.title
  366.                                 ) 
  367.                             }}
  368.                         </div>
  369.                         <div class=\"info\">
  370.                             <h2 class=\"nome\">{{ course.title }}</h2>
  371.                             <p class=\"nome\">{{ course.user.name }}</p>
  372.                             <div class=\"tags\">
  373.                                 <p class=\"status {{ getEnrollmentSituationClass() }}\">
  374.                                     {{ getEnrollmentSituation() }}
  375.                                 </p>
  376.                                 <p class=\"date-expire primary\">
  377.                                     {{ getEnrollmentPeriodLabel(null, course) }}
  378.                                 </p>
  379.                             </div>
  380.                             {# AVALIATION #}
  381.                             {% set scoreCourse = getScoreCourse(course) %}
  382.                             {% if (scoreCourse.scoreTotal > 9) %}
  383.                                 <span class=\"avaliacao\">
  384.                                     <span class=\"nota\">{{ scoreCourse.score }}</span>&thinsp;
  385.                                     {% include 'website/includes/stars.html.twig' with { score: scoreCourse.score }%}
  386.                                     &thinsp;<span class=\"total\">({{ scoreCourse.scoreTotal }})</span>
  387.                                 </span>
  388.                             {% endif %}
  389.                         </div>
  390.                         
  391.                     </header>
  392.                     <div class=\"progresso\">
  393.                         <span class=\"tit\">{{ getLanguage('progress', 'user_resume') }}</span>
  394.                         {% set progress = 0 %}
  395.                         <div class=\"barra-box\">
  396.                             <div class=\"barra-prog\" style=\"width:{{ progress }}%;\">{{ progress }}%</div>
  397.                         </div>
  398.                         <span class=\"btn-continuar\">{{ getLanguage('continue', 'user_resume') }}</span>
  399.                     </div>
  400.                 </a>
  401.             {% endfor %}
  402.     {% endif %}
  403.         {% for enrollment in enrollments %}
  404.             <a class=\"item\" href=\"{{ path('courseIndex', {'id': enrollment.course.id }) }}\">
  405.                 <header>
  406.                     <div class=\"foto\">
  407.                         {{  
  408.                             imgUpload(
  409.                                 enrollment.course.photo,
  410.                                 enum('AbstractEnum::PATH_STORE'),
  411.                                 'product-photo-resume-list',
  412.                                 enrollment.course.title
  413.                             ) 
  414.                         }}
  415.                     </div>
  416.                     <div class=\"info\">
  417.                         <h2 class=\"nome\">{{ enrollment.course.title }}</h2>
  418.                         <p class=\"nome\">{{ enrollment.course.user.name }}</p>
  419.                         <div class=\"tags\">
  420.                             <p class=\"status {{ getEnrollmentSituationClass(enrollment) }}\">
  421.                                 {{ getEnrollmentSituation(enrollment) }}
  422.                             </p>
  423.                             <p class=\"date-expire primary\">
  424.                                 {{ getEnrollmentPeriodLabel(enrollment) }}
  425.                             </p>
  426.                         </div>
  427.                         {# AVALIATION #}
  428.                         {% set scoreCourse = getScoreCourse(enrollment.course) %}
  429.                         {% if (scoreCourse.scoreTotal > 9) %}
  430.                             <span class=\"avaliacao\">
  431.                                 <span class=\"nota\">{{ scoreCourse.score }}</span>&thinsp;
  432.                                 {% include 'website/includes/stars.html.twig' with { score: scoreCourse.score }%}
  433.                                 &thinsp;<span class=\"total\">({{ scoreCourse.scoreTotal }})</span>
  434.                             </span>
  435.                         {% endif %}
  436.                     </div>
  437.                         
  438.                 </header>
  439.                 <div class=\"progresso\">
  440.                     <span class=\"tit\">{{ getLanguage('progress', 'user_resume') }}</span>
  441.                     {% set progress = (enrollment.progress > 100)? 100 : enrollment.progress %}
  442.                     <div class=\"barra-box\">
  443.                         <div class=\"barra-prog\" style=\"width:{{ progress }}%;\">{{ progress }}%</div>
  444.                     </div>
  445.                     <span class=\"btn-continuar\">{{ getLanguage('continue', 'user_resume') }}</span>
  446.                 </div>
  447.             </a>
  448.         {% endfor %}
  449.     {% if wrap %}
  450.         </div>
  451.         {% if showBtn %}
  452.             <button class=\"btn-add-more btn-load\" data-url=\"{{ path('resumeCourse') }}\">
  453.                 <span>{{ getLanguage('view_more', 'user_resume') }}</span>
  454.                 <span>{{ getLanguage('wait', 'util') }}&thinsp;&hellip;&ensp;<i class=\"loader\">{{ ico('loader-wish') }}</i></span>
  455.             </button>
  456.         {% endif %}
  457.     {% endif %}
  458. {% endif %}
  459. ""website/user/resume/courses.html.twig""/var/www/html/templates/website/user/resume/courses.html.twig");
  460.     }
  461. }