<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* website/course/course-item-box.html.twig */
class __TwigTemplate_1275bb5fc2f96e5a03524524e05e12f4898372f40491548bbbe229a4886bfd30 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/course/course-item-box.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/course/course-item-box.html.twig"));
// line 1
$macros["__internal_f753d93fa6ef6cdd718b894d272d43a498304707e4e0e58b4444c8b91b388553"] = $this->macros["__internal_f753d93fa6ef6cdd718b894d272d43a498304707e4e0e58b4444c8b91b388553"] = $this->loadTemplate("utils.html.twig", "website/course/course-item-box.html.twig", 1)->unwrap();
// line 2
$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));
// line 3
if ((isset($context["addLink"]) || array_key_exists("addLink", $context) ? $context["addLink"] : (function () { throw new RuntimeError('Variable "addLink" does not exist.', 3, $this->source); })())) {
// line 4
echo "<a href=\"";
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", false, false, false, 4)]), "html", null, true);
echo "\">
";
}
// line 6
echo " <div class=\"item-curso";
echo (((1 === 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") : (""));
echo "\">
<div class=\"foto\">
";
// line 8
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", false, false, false, 8), $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", false, false, false, 8)], 8, $context, $this->getSourceContext());
echo "
</div>
<div class=\"info\">
<p class=\"desc\">";
// line 11
echo twig_escape_filter($this->env, 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.', 11, $this->source); })()), "title", [], "any", false, false, false, 11), "html", null, true);
echo "</p>
";
// line 12
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", false, false, false, 12)) {
// line 13
echo " <div class=\"precos\">
<p class=\"acesso\">
";
// line 15
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", false, false, false, 15)), "html", null, true);
echo "
</p>
</div>
";
}
// line 19
echo " </div>
</div>
";
// line 21
if ((isset($context["addLink"]) || array_key_exists("addLink", $context) ? $context["addLink"] : (function () { throw new RuntimeError('Variable "addLink" does not exist.', 21, $this->source); })())) {
// line 22
echo "</a>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "website/course/course-item-box.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import imgUpload %}
{% set addLink = (addLink is defined)? addLink : false %}
{% if addLink %}
<a href=\"{{ path('courseIndex', { id: item.id }) }}\">
{% endif %}
<div class=\"item-curso{{ (n > 8) ? ' ver-todos hidden' }}\">
<div class=\"foto\">
{{ imgUpload(item.photo, enum('AbstractEnum::PATH_STORE'), 'product-box-default', item.title) }}
</div>
<div class=\"info\">
<p class=\"desc\">{{ item.title }}</p>
{% if item.getWorkload() %}
<div class=\"precos\">
<p class=\"acesso\">
{{ workLoadText(item.getWorkload()) }}
</p>
</div>
{% endif %}
</div>
</div>
{% if addLink %}
</a>
{% endif %}", "website/course/course-item-box.html.twig", "/var/www/html/templates/website/course/course-item-box.html.twig");
}
}