var/cache/dev/twig/0b/0b474803a4b84df3627d7cd1d9f84ca412fb055ff107d6302fae8e7cb4d3743c.php line 77

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-item-box.html.twig */
  14. class __TwigTemplate_1275bb5fc2f96e5a03524524e05e12f4898372f40491548bbbe229a4886bfd30 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-item-box.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-item-box.html.twig"));
  33.         // line 1
  34.         $macros["__internal_f753d93fa6ef6cdd718b894d272d43a498304707e4e0e58b4444c8b91b388553"] = $this->macros["__internal_f753d93fa6ef6cdd718b894d272d43a498304707e4e0e58b4444c8b91b388553"] = $this->loadTemplate("utils.html.twig""website/course/course-item-box.html.twig"1)->unwrap();
  35.         // line 2
  36.         $context["addLink"] = ((array_key_exists("addLink"$context)) ? ((isset($context["addLink"]) || array_key_exists("addLink"$context) ? $context["addLink"] : (function () { throw new RuntimeError('Variable "addLink" does not exist.'2$this->source); })())) : (false));
  37.         // line 3
  38.         if ((isset($context["addLink"]) || array_key_exists("addLink"$context) ? $context["addLink"] : (function () { throw new RuntimeError('Variable "addLink" does not exist.'3$this->source); })())) {
  39.             // line 4
  40.             echo "<a href=\"";
  41.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courseIndex", ["id" => twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'4$this->source); })()), "id", [], "any"falsefalsefalse4)]), "html"nulltrue);
  42.             echo "\">
  43. ";
  44.         }
  45.         // line 6
  46.         echo "    <div class=\"item-curso";
  47.         echo (((=== twig_compare((isset($context["n"]) || array_key_exists("n"$context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.'6$this->source); })()), 8))) ? (" ver-todos hidden") : (""));
  48.         echo "\">
  49.         <div class=\"foto\">
  50.             ";
  51.         // line 8
  52.         echo twig_call_macro($macros["__internal_f753d93fa6ef6cdd718b894d272d43a498304707e4e0e58b4444c8b91b388553"], "macro_imgUpload", [twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'8$this->source); })()), "photo", [], "any"falsefalsefalse8), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_STORE"), "product-box-default"twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'8$this->source); })()), "title", [], "any"falsefalsefalse8)], 8$context$this->getSourceContext());
  53.         echo "
  54.         </div>
  55.         <div class=\"info\">
  56.             <p class=\"desc\">";
  57.         // line 11
  58.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'11$this->source); })()), "title", [], "any"falsefalsefalse11), "html"nulltrue);
  59.         echo "</p>
  60.             ";
  61.         // line 12
  62.         if (twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'12$this->source); })()), "getWorkload", [], "method"falsefalsefalse12)) {
  63.             // line 13
  64.             echo "                <div class=\"precos\">
  65.                     <p class=\"acesso\">
  66.                         ";
  67.             // line 15
  68.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->workLoadText(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'15$this->source); })()), "getWorkload", [], "method"falsefalsefalse15)), "html"nulltrue);
  69.             echo "
  70.                     </p>
  71.                 </div>
  72.             ";
  73.         }
  74.         // line 19
  75.         echo "        </div>
  76.     </div>
  77. ";
  78.         // line 21
  79.         if ((isset($context["addLink"]) || array_key_exists("addLink"$context) ? $context["addLink"] : (function () { throw new RuntimeError('Variable "addLink" does not exist.'21$this->source); })())) {
  80.             // line 22
  81.             echo "</a>
  82. ";
  83.         }
  84.         
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  86.         
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  88.     }
  89.     public function getTemplateName()
  90.     {
  91.         return "website/course/course-item-box.html.twig";
  92.     }
  93.     public function isTraitable()
  94.     {
  95.         return false;
  96.     }
  97.     public function getDebugInfo()
  98.     {
  99.         return array (  90 => 22,  88 => 21,  84 => 19,  77 => 15,  73 => 13,  71 => 12,  67 => 11,  61 => 8,  55 => 6,  49 => 4,  47 => 3,  45 => 2,  43 => 1,);
  100.     }
  101.     public function getSourceContext()
  102.     {
  103.         return new Source("{% from 'utils.html.twig' import imgUpload %}
  104. {% set addLink = (addLink is defined)? addLink : false %}
  105. {% if addLink %}
  106. <a href=\"{{ path('courseIndex', { id: item.id }) }}\">
  107. {% endif %}
  108.     <div class=\"item-curso{{ (n > 8) ? ' ver-todos hidden' }}\">
  109.         <div class=\"foto\">
  110.             {{ imgUpload(item.photo, enum('AbstractEnum::PATH_STORE'), 'product-box-default', item.title) }}
  111.         </div>
  112.         <div class=\"info\">
  113.             <p class=\"desc\">{{ item.title }}</p>
  114.             {% if item.getWorkload() %}
  115.                 <div class=\"precos\">
  116.                     <p class=\"acesso\">
  117.                         {{ workLoadText(item.getWorkload()) }}
  118.                     </p>
  119.                 </div>
  120.             {% endif %}
  121.         </div>
  122.     </div>
  123. {% if addLink %}
  124. </a>
  125. {% endif %}""website/course/course-item-box.html.twig""/var/www/html/templates/website/course/course-item-box.html.twig");
  126.     }
  127. }