<?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-default-home.html.twig */
class __TwigTemplate_a6a58e22f152619b2dd6440a76562b88cf3d1f54c44acc676da1fd12dfb9a740 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-default-home.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-default-home.html.twig"));
// line 1
$macros["__internal_32988aece74d8a428a3734c5067f66a4cbb1a4860de2c086e426db73a348a23e"] = $this->macros["__internal_32988aece74d8a428a3734c5067f66a4cbb1a4860de2c086e426db73a348a23e"] = $this->loadTemplate("utils.html.twig", "website/course/course-item-box-default-home.html.twig", 1)->unwrap();
// line 2
echo "<div class=\"sec--";
echo twig_escape_filter($this->env, (isset($context["format"]) || array_key_exists("format", $context) ? $context["format"] : (function () { throw new RuntimeError('Variable "format" does not exist.', 2, $this->source); })()), "html", null, true);
echo "\">
<a href=\"";
// line 3
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.', 3, $this->source); })()), "id", [], "any", false, false, false, 3)]), "html", null, true);
echo "\">
<div class=\"item-curso\">
<div class=\"foto\">
";
// line 6
echo twig_call_macro($macros["__internal_32988aece74d8a428a3734c5067f66a4cbb1a4860de2c086e426db73a348a23e"], "macro_imgUpload", [twig_get_attribute($this->env, $this->source, // line 8
(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-courses", twig_get_attribute($this->env, $this->source, // line 11
(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)], 7, $context, $this->getSourceContext());
// line 13
echo "
</div>
<div class=\"info\">
<p class=\"desc\">";
// line 16
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.', 16, $this->source); })()), "title", [], "any", false, false, false, 16), "html", null, true);
echo "</p>
";
// line 17
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.', 17, $this->source); })()), "getWorkload", [], "method", false, false, false, 17)) {
// line 18
echo " <div class=\"precos\">
<p class=\"acesso\">
";
// line 20
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.', 20, $this->source); })()), "getWorkload", [], "method", false, false, false, 20)), "html", null, true);
echo "
</p>
</div>
";
}
// line 24
echo " </div>
</div>
</a>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "website/course/course-item-box-default-home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 82 => 24, 75 => 20, 71 => 18, 69 => 17, 65 => 16, 60 => 13, 58 => 11, 57 => 8, 56 => 6, 50 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import imgUpload %}
<div class=\"sec--{{ format }}\">
<a href=\"{{ path('courseIndex', { id: item.id }) }}\">
<div class=\"item-curso\">
<div class=\"foto\">
{{
imgUpload(
item.photo,
enum('AbstractEnum::PATH_STORE'),
'product-box-courses',
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>
</a>
</div>", "website/course/course-item-box-default-home.html.twig", "/var/www/html/templates/website/course/course-item-box-default-home.html.twig");
}
}