<?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;
/* @reyesdelanoche/block/m5_block.html.twig */
class __TwigTemplate_75b706cdae0e73c116b45c1778b37e5bf5b0f0304e53cd69e9d093f992c092ec 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", "@reyesdelanoche/block/m5_block.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@reyesdelanoche/block/m5_block.html.twig"));
// line 1
ob_start();
echo twig_escape_filter($this->env, twig_trim_filter(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.', 1, $this->source); })()), "class_css"])), "html", null, true);
$context["clase"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 2
if (("trailer-sobrelaserie" == twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, // line 3
(isset($context["clase"]) || array_key_exists("clase", $context) ? $context["clase"] : (function () { throw new RuntimeError('Variable "clase" does not exist.', 3, $this->source); })()), " "), 0, [], "array", false, false, false, 3))) {
// line 5
echo "
<div class=\"m-m5 wallpaper ";
// line 6
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.', 6, $this->source); })()), "m5_bgcolor")) {
echo "clean";
}
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.', 6, $this->source); })()), "class_css"]);
echo "\"
";
// line 7
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); })()), "m5_bgcolor")) {
echo "style=\"background: ";
echo twig_escape_filter($this->env, $this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->getTranslatedFieldValue((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 7, $this->source); })()), "m5_bgcolor"), "html", null, true);
echo "\"
";
} elseif ( !$this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->isFieldEmpty( // line 8
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 8, $this->source); })()), "m5_media")) {
// line 9
echo " style=\"background-image: url('";
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.', 9, $this->source); })()), "m5_media", ["parameters" => ["lazy" => true, "alias" => "blur_bg"]]]);
echo "')\"
";
}
// line 11
echo " >
<div class=\"wrapper\">
<div class=\"internal-wrapper\">
";
// line 15
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.', 15, $this->source); })()), "m5_icon")) {
// line 16
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.', 16, $this->source); })()), "m5_icon", ["parameters" => ["class" => "icon"]]]);
echo "
";
}
// line 18
echo "
<h2 class=\"h1\">";
// line 19
echo $this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->getTranslatedFieldValue((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 19, $this->source); })()), "m5_title");
echo "</h2>
";
// line 21
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.', 21, $this->source); })()), "m5_subtitle")) {
// line 22
echo " <p class=\"h4\">";
echo $this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->getTranslatedFieldValue((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 22, $this->source); })()), "m5_subtitle");
echo "</p>
";
}
// line 24
echo "
<div class=\"big-picture\"></div>
<p class=\"caption h5 hidden\"></p>
<div class=\"carrousel-wrapper\">
<div class=\"carrousel-container\">
<ul class=\"list\">
";
// line 31
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AppBundle:Block:renderBlocks", ["locationId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 31, $this->source); })()), "contentInfo", [], "any", false, false, false, 31), "mainLocationId", [], "any", false, false, false, 31), "container" => true, "internal" => true]));
echo "
</ul>
</div>
<div class=\"carrousel-nav\">
<span class=\"prev\">
";
// line 36
echo twig_include($this->env, $context, "icons/link-arrow.svg.twig");
echo "
</span>
<span class=\"next\">
";
// line 39
echo twig_include($this->env, $context, "icons/link-arrow.svg.twig");
echo "
</span>
</div>
</div>
";
// line 45
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.', 45, $this->source); })()), "m5_link_relation")) {
// line 46
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.', 46, $this->source); })()), "m5_link_relation", ["name" => 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.', 46, $this->source); })()), "m5_link_title"]), "class" => ""]]);
echo "
";
}
// line 48
echo " </div>
</div>
</div>
";
} else {
// line 52
echo " ";
$this->loadTemplate("themes/default/block/m5_block.html.twig", "@reyesdelanoche/block/m5_block.html.twig", 52)->display($context);
}
// line 54
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@reyesdelanoche/block/m5_block.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 155 => 54, 151 => 52, 145 => 48, 139 => 46, 137 => 45, 128 => 39, 122 => 36, 114 => 31, 105 => 24, 99 => 22, 97 => 21, 92 => 19, 89 => 18, 83 => 16, 81 => 15, 75 => 11, 69 => 9, 67 => 8, 61 => 7, 53 => 6, 50 => 5, 48 => 3, 47 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set clase %}{{ ez_render_field( content, 'class_css') | trim }}{% endset %}
{% if
('trailer-sobrelaserie' == (clase | split(\" \")[0]))
%}
<div class=\"m-m5 wallpaper {% if not ez_is_field_empty( content, 'm5_bgcolor' ) %}clean{% endif %} {{ ez_render_field( content, 'class_css') }}\"
{% if not ez_is_field_empty( content, 'm5_bgcolor' ) %}style=\"background: {{ ez_field_value(content, 'm5_bgcolor') }}\"
{% elseif not ez_is_field_empty( content, 'm5_media' ) %}
style=\"background-image: url('{{ ez_render_field(content, 'm5_media', { parameters: { lazy: true, alias: 'blur_bg' }}) }}')\"
{% endif %}
>
<div class=\"wrapper\">
<div class=\"internal-wrapper\">
{% if not ez_is_field_empty( content, 'm5_icon' ) %}
{{ ez_render_field( content, 'm5_icon', {parameters: { class: 'icon' } }) }}
{% endif %}
<h2 class=\"h1\">{{ ez_field_value( content, 'm5_title')|raw }}</h2>
{% if not ez_is_field_empty( content, 'm5_subtitle' ) %}
<p class=\"h4\">{{ ez_field_value( content, 'm5_subtitle')|raw }}</p>
{% endif %}
<div class=\"big-picture\"></div>
<p class=\"caption h5 hidden\"></p>
<div class=\"carrousel-wrapper\">
<div class=\"carrousel-container\">
<ul class=\"list\">
{{ render(controller('AppBundle:Block:renderBlocks', {'locationId': content.contentInfo.mainLocationId, 'container': true, 'internal': true } )) }}
</ul>
</div>
<div class=\"carrousel-nav\">
<span class=\"prev\">
{{ include('icons/link-arrow.svg.twig') }}
</span>
<span class=\"next\">
{{ include('icons/link-arrow.svg.twig') }}
</span>
</div>
</div>
{% if not ez_is_field_empty( content, 'm5_link_relation' ) %}
{{ ez_render_field( content, 'm5_link_relation', { 'name': ez_render_field( content, 'm5_link_title'), class: '' }) }}
{% endif %}
</div>
</div>
</div>
{% else %}
{% include 'themes/default/block/m5_block.html.twig' %}
{% endif %}
", "@reyesdelanoche/block/m5_block.html.twig", "/var/www/app/Resources/views/themes/reyesdelanoche/block/m5_block.html.twig");
}
}