<?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;
/* @eldiademanana/block/internal_critica.html.twig */
class __TwigTemplate_1534be0da88ae89691be3cda29e5ac6046a90c6e84fee76a30dbc16074c1d737 extends \eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
{
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", "@eldiademanana/block/internal_critica.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@eldiademanana/block/internal_critica.html.twig"));
// line 1
echo "<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->getTranslatedField((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 1, $this->source); })()), "internal_critica_link"), "value", [], "any", false, false, false, 1), "link", [], "any", false, false, false, 1), "html", null, true);
echo "\" class=\"grid-element\" target=\"_blank\">
";
// line 2
if ( !$this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->isFieldEmpty((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 2, $this->source); })()), "internal_critica_image")) {
// line 3
echo " <div class=\"picture\">
";
// line 4
echo call_user_func_array($this->env->getFunction('ez_render_field')->getCallable(), [$this->env, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 4, $this->source); })()), "internal_critica_image", ["parameters" => ["alias" => "new_item"]]]);
echo "
</div>
";
}
// line 7
echo " ";
if ( !$this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->isFieldEmpty((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 7, $this->source); })()), "internal_critica_date")) {
// line 8
echo " <p class=\"h6\">";
echo call_user_func_array($this->env->getFunction('ez_render_field')->getCallable(), [$this->env, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 8, $this->source); })()), "internal_critica_medio"]);
echo " | ";
echo call_user_func_array($this->env->getFunction('ez_render_field')->getCallable(), [$this->env, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 8, $this->source); })()), "internal_critica_date"]);
echo "</p>
";
}
// line 10
echo " <h3 class=\"h2\">";
echo call_user_func_array($this->env->getFunction('ez_render_field')->getCallable(), [$this->env, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()), "internal_critica_title"]);
echo "</h3>
<p class=\"h5\">";
// line 11
echo call_user_func_array($this->env->getFunction('ez_render_field')->getCallable(), [$this->env, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 11, $this->source); })()), "internal_critica_subtitle"]);
echo "</p>
</a>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@eldiademanana/block/internal_critica.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 75 => 11, 70 => 10, 62 => 8, 59 => 7, 53 => 4, 50 => 3, 48 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<a href=\"{{ ez_field( content, 'internal_critica_link' ).value.link }}\" class=\"grid-element\" target=\"_blank\">
{% if not ez_is_field_empty( content, 'internal_critica_image' ) %}
<div class=\"picture\">
{{ ez_render_field( content, 'internal_critica_image', { parameters: { alias: 'new_item' } }) }}
</div>
{% endif %}
{% if not ez_is_field_empty( content, 'internal_critica_date' ) %}
<p class=\"h6\">{{ ez_render_field( content, 'internal_critica_medio') }} | {{ ez_render_field( content, 'internal_critica_date') }}</p>
{% endif %}
<h3 class=\"h2\">{{ ez_render_field( content, 'internal_critica_title') }}</h3>
<p class=\"h5\">{{ ez_render_field( content, 'internal_critica_subtitle') }}</p>
</a>", "@eldiademanana/block/internal_critica.html.twig", "/var/www/app/Resources/views/themes/default/block/internal_critica.html.twig");
}
}