var/cache/dev/twig/37/377fdef822346967881da50e54ecc82112164a2ca0da703ce2a46cb5abecb2f0.php line 53

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. /* @eldiademanana/block/internal_critica.html.twig */
  14. class __TwigTemplate_1534be0da88ae89691be3cda29e5ac6046a90c6e84fee76a30dbc16074c1d737 extends \eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
  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""@eldiademanana/block/internal_critica.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""@eldiademanana/block/internal_critica.html.twig"));
  33.         // line 1
  34.         echo "<a href=\"";
  35.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse1), "link", [], "any"falsefalsefalse1), "html"nulltrue);
  36.         echo "\" class=\"grid-element\" target=\"_blank\">
  37.     ";
  38.         // line 2
  39.         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")) {
  40.             // line 3
  41.             echo "    <div class=\"picture\">
  42.         ";
  43.             // line 4
  44.             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"]]]);
  45.             echo "
  46.     </div>
  47.     ";
  48.         }
  49.         // line 7
  50.         echo "    ";
  51.         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")) {
  52.             // line 8
  53.             echo "        <p class=\"h6\">";
  54.             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"]);
  55.             echo " | ";
  56.             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"]);
  57.             echo "</p>
  58.     ";
  59.         }
  60.         // line 10
  61.         echo "    <h3 class=\"h2\">";
  62.         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"]);
  63.         echo "</h3>
  64.     <p class=\"h5\">";
  65.         // line 11
  66.         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"]);
  67.         echo "</p>
  68. </a>";
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.         
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  73.     }
  74.     public function getTemplateName()
  75.     {
  76.         return "@eldiademanana/block/internal_critica.html.twig";
  77.     }
  78.     public function isTraitable()
  79.     {
  80.         return false;
  81.     }
  82.     public function getDebugInfo()
  83.     {
  84.         return array (  75 => 11,  70 => 10,  62 => 8,  59 => 7,  53 => 4,  50 => 3,  48 => 2,  43 => 1,);
  85.     }
  86.     public function getSourceContext()
  87.     {
  88.         return new Source("<a href=\"{{ ez_field( content, 'internal_critica_link' ).value.link }}\" class=\"grid-element\" target=\"_blank\">
  89.     {% if not ez_is_field_empty( content, 'internal_critica_image' ) %}
  90.     <div class=\"picture\">
  91.         {{ ez_render_field( content, 'internal_critica_image', { parameters: { alias: 'new_item' } }) }}
  92.     </div>
  93.     {% endif %}
  94.     {% if not ez_is_field_empty( content, 'internal_critica_date' ) %}
  95.         <p class=\"h6\">{{ ez_render_field( content, 'internal_critica_medio') }} | {{ ez_render_field( content, 'internal_critica_date') }}</p>
  96.     {% endif %}
  97.     <h3 class=\"h2\">{{ ez_render_field( content, 'internal_critica_title') }}</h3>
  98.     <p class=\"h5\">{{ ez_render_field( content, 'internal_critica_subtitle') }}</p>
  99. </a>""@eldiademanana/block/internal_critica.html.twig""/var/www/app/Resources/views/themes/default/block/internal_critica.html.twig");
  100.     }
  101. }