var/cache/dev/twig/d3/d35c5b770d2700f0d8a7e69116b53e340e40f3122bba1b79eddcd30926df6cf3.php line 58

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-default-home.html.twig */
  14. class __TwigTemplate_a6a58e22f152619b2dd6440a76562b88cf3d1f54c44acc676da1fd12dfb9a740 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-default-home.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-default-home.html.twig"));
  33.         // line 1
  34.         $macros["__internal_32988aece74d8a428a3734c5067f66a4cbb1a4860de2c086e426db73a348a23e"] = $this->macros["__internal_32988aece74d8a428a3734c5067f66a4cbb1a4860de2c086e426db73a348a23e"] = $this->loadTemplate("utils.html.twig""website/course/course-item-box-default-home.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "<div class=\"sec--";
  37.         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"nulltrue);
  38.         echo "\">
  39.     <a href=\"";
  40.         // line 3
  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.'3$this->source); })()), "id", [], "any"falsefalsefalse3)]), "html"nulltrue);
  42.         echo "\">
  43.         <div class=\"item-curso\">
  44.             <div class=\"foto\">
  45.                 ";
  46.         // line 6
  47.         echo twig_call_macro($macros["__internal_32988aece74d8a428a3734c5067f66a4cbb1a4860de2c086e426db73a348a23e"], "macro_imgUpload", [twig_get_attribute($this->env$this->source,         // line 8
  48. (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-courses"twig_get_attribute($this->env$this->source,         // line 11
  49. (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)], 7$context$this->getSourceContext());
  50.         // line 13
  51.         echo "
  52.             </div>
  53.             <div class=\"info\">
  54.                 <p class=\"desc\">";
  55.         // line 16
  56.         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.'16$this->source); })()), "title", [], "any"falsefalsefalse16), "html"nulltrue);
  57.         echo "</p>
  58.                 ";
  59.         // line 17
  60.         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"falsefalsefalse17)) {
  61.             // line 18
  62.             echo "                    <div class=\"precos\">
  63.                         <p class=\"acesso\">
  64.                             ";
  65.             // line 20
  66.             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"falsefalsefalse20)), "html"nulltrue);
  67.             echo "
  68.                         </p>
  69.                     </div>
  70.                 ";
  71.         }
  72.         // line 24
  73.         echo "            </div>
  74.         </div>
  75.     </a>
  76. </div>";
  77.         
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  79.         
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  81.     }
  82.     public function getTemplateName()
  83.     {
  84.         return "website/course/course-item-box-default-home.html.twig";
  85.     }
  86.     public function isTraitable()
  87.     {
  88.         return false;
  89.     }
  90.     public function getDebugInfo()
  91.     {
  92.         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,);
  93.     }
  94.     public function getSourceContext()
  95.     {
  96.         return new Source("{% from 'utils.html.twig' import imgUpload %}
  97. <div class=\"sec--{{ format }}\">
  98.     <a href=\"{{ path('courseIndex', { id: item.id }) }}\">
  99.         <div class=\"item-curso\">
  100.             <div class=\"foto\">
  101.                 {{ 
  102.                     imgUpload(
  103.                         item.photo, 
  104.                         enum('AbstractEnum::PATH_STORE'), 
  105.                         'product-box-courses', 
  106.                         item.title
  107.                     ) 
  108.                 }}
  109.             </div>
  110.             <div class=\"info\">
  111.                 <p class=\"desc\">{{ item.title }}</p>
  112.                 {% if item.getWorkload() %}
  113.                     <div class=\"precos\">
  114.                         <p class=\"acesso\">
  115.                             {{ workLoadText(item.getWorkload()) }}
  116.                         </p>
  117.                     </div>
  118.                 {% endif %}
  119.             </div>
  120.         </div>
  121.     </a>
  122. </div>""website/course/course-item-box-default-home.html.twig""/var/www/html/templates/website/course/course-item-box-default-home.html.twig");
  123.     }
  124. }