var/cache/dev/twig/b2/b21f3fa2d7338e4c86566cdc020f08ea38a8104cf105bd71b27cba30848464fd.php line 91

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/course/course-section.html.twig */
  14. class __TwigTemplate_1574277b31f8c99218ac5d96d1bf584058834fa86d210a04bb1bed60283de658 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/course/course-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/course/course-section.html.twig"));
  33.         // line 1
  34.         if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'1$this->source); })()), "items", [], "any"falsefalsefalse1)), 0))) {
  35.             // line 2
  36.             echo "    <section id=\"sec-content-";
  37.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'2$this->source); })()), "name", [], "any"falsefalsefalse2), "html"nulltrue);
  38.             echo "\" class=\"pag-sec slider-destaques\">
  39.         <div id=\"container-";
  40.             // line 3
  41.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'3$this->source); })()), "name", [], "any"falsefalsefalse3), "html"nulltrue);
  42.             echo "\" class=\"container product-section-container\" data-status=\"hide\">
  43.             <div class=\"lateral-products\">
  44.                 <div class=\"related-contain\">
  45.                     <header class=\"tit-sec tx-centro\">
  46.                         <h2>";
  47.             // line 7
  48.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'7$this->source); })()), "title", [], "any"falsefalsefalse7), "html"nulltrue);
  49.             echo "</h2>
  50.                         <span class=\"sub\">";
  51.             // line 8
  52.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'8$this->source); })()), "subtitle", [], "any"falsefalsefalse8), "html"nulltrue);
  53.             echo "</span>
  54.                     </header>
  55.                     <div id=\"courses-container\" class=\"related-boxes\" data-status=\"hide\">
  56.                         ";
  57.             // line 11
  58.             $context['_parent'] = $context;
  59.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'11$this->source); })()), "items", [], "any"falsefalsefalse11));
  60.             $context['loop'] = [
  61.               'parent' => $context['_parent'],
  62.               'index0' => 0,
  63.               'index'  => 1,
  64.               'first'  => true,
  65.             ];
  66.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  67.                 $length count($context['_seq']);
  68.                 $context['loop']['revindex0'] = $length 1;
  69.                 $context['loop']['revindex'] = $length;
  70.                 $context['loop']['length'] = $length;
  71.                 $context['loop']['last'] = === $length;
  72.             }
  73.             foreach ($context['_seq'] as $context["i"] => $context["item"]) {
  74.                 // line 12
  75.                 echo "                            ";
  76.                 if ((twig_get_attribute($this->env$this->source, ($context["section"] ?? null), "isCourse", [], "any"truetruefalse12) && twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'12$this->source); })()), "isCourse", [], "any"falsefalsefalse12))) {
  77.                     // line 13
  78.                     echo "                                ";
  79.                     $context["n"] = ($context["i"] + 1);
  80.                     // line 14
  81.                     echo "                                ";
  82.                     $this->loadTemplate("website/course/course-item-box.html.twig""website/course/course-section.html.twig"14)->display($context);
  83.                     // line 15
  84.                     echo "                            ";
  85.                 }
  86.                 // line 16
  87.                 echo "                        ";
  88.                 ++$context['loop']['index0'];
  89.                 ++$context['loop']['index'];
  90.                 $context['loop']['first'] = false;
  91.                 if (isset($context['loop']['length'])) {
  92.                     --$context['loop']['revindex0'];
  93.                     --$context['loop']['revindex'];
  94.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  95.                 }
  96.             }
  97.             $_parent $context['_parent'];
  98.             unset($context['_seq'], $context['_iterated'], $context['i'], $context['item'], $context['_parent'], $context['loop']);
  99.             $context array_intersect_key($context$_parent) + $_parent;
  100.             // line 17
  101.             echo "                    </div>";
  102.             // line 18
  103.             echo "
  104.                     ";
  105.             // line 19
  106.             if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'19$this->source); })()), "items", [], "any"falsefalsefalse19)), 3))) {
  107.                 // line 20
  108.                 echo "                        <button id=\"btn-see-courses\" class=\"btn-ver\">
  109.                             <span class=\"txt-show\">";
  110.                 // line 21
  111.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_more""product"), "html"nulltrue);
  112.                 echo "</span>
  113.                             <span class=\"txt-hide\">";
  114.                 // line 22
  115.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("see_less""product"), "html"nulltrue);
  116.                 echo "</span>
  117.                         </button>
  118.                     ";
  119.             }
  120.             // line 25
  121.             echo "                </div>";
  122.             // line 26
  123.             echo "            </div>";
  124.             // line 27
  125.             echo "        </div>";
  126.             // line 28
  127.             echo "    </section>
  128. ";
  129.         }
  130.         
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  132.         
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  134.     }
  135.     public function getTemplateName()
  136.     {
  137.         return "website/course/course-section.html.twig";
  138.     }
  139.     public function isTraitable()
  140.     {
  141.         return false;
  142.     }
  143.     public function getDebugInfo()
  144.     {
  145.         return array (  136 => 28,  134 => 27,  132 => 26,  130 => 25,  124 => 22,  120 => 21,  117 => 20,  115 => 19,  112 => 18,  110 => 17,  96 => 16,  93 => 15,  90 => 14,  87 => 13,  84 => 12,  67 => 11,  61 => 8,  57 => 7,  50 => 3,  45 => 2,  43 => 1,);
  146.     }
  147.     public function getSourceContext()
  148.     {
  149.         return new Source("{% if section.items|length > 0 %}
  150.     <section id=\"sec-content-{{ section.name }}\" class=\"pag-sec slider-destaques\">
  151.         <div id=\"container-{{ section.name }}\" class=\"container product-section-container\" data-status=\"hide\">
  152.             <div class=\"lateral-products\">
  153.                 <div class=\"related-contain\">
  154.                     <header class=\"tit-sec tx-centro\">
  155.                         <h2>{{ section.title }}</h2>
  156.                         <span class=\"sub\">{{ section.subtitle }}</span>
  157.                     </header>
  158.                     <div id=\"courses-container\" class=\"related-boxes\" data-status=\"hide\">
  159.                         {% for i, item in section.items %}
  160.                             {% if section.isCourse is defined and section.isCourse %}
  161.                                 {% set n = i + 1 %}
  162.                                 {% include 'website/course/course-item-box.html.twig' %}
  163.                             {% endif %}
  164.                         {% endfor %}
  165.                     </div>{# -/ .related-boxes #}
  166.                     {% if section.items|length > 3 %}
  167.                         <button id=\"btn-see-courses\" class=\"btn-ver\">
  168.                             <span class=\"txt-show\">{{ getLanguage('see_more', 'product') }}</span>
  169.                             <span class=\"txt-hide\">{{ getLanguage('see_less', 'product') }}</span>
  170.                         </button>
  171.                     {% endif %}
  172.                 </div>{# -/ .related-contain #}
  173.             </div>{# -/ .lateral-products #}
  174.         </div>{# -/ .product-section-container #}
  175.     </section>
  176. {% endif %}
  177. ""website/course/course-section.html.twig""/var/www/html/templates/website/course/course-section.html.twig");
  178.     }
  179. }