var/cache/dev/twig/99/995e283a379ff1d7df3970a20f3fd56cf68d50742b3a104a6a6f8fa1736c9917.php line 152

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. /* @reyesdelanoche/block/m5_block.html.twig */
  14. class __TwigTemplate_75b706cdae0e73c116b45c1778b37e5bf5b0f0304e53cd69e9d093f992c092ec 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""@reyesdelanoche/block/m5_block.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""@reyesdelanoche/block/m5_block.html.twig"));
  33.         // line 1
  34.         ob_start();
  35.         echo twig_escape_filter($this->envtwig_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"nulltrue);
  36.         $context["clase"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  37.         // line 2
  38.         if (("trailer-sobrelaserie" == twig_get_attribute($this->env$this->sourcetwig_split_filter($this->env,         // line 3
  39. (isset($context["clase"]) || array_key_exists("clase"$context) ? $context["clase"] : (function () { throw new RuntimeError('Variable "clase" does not exist.'3$this->source); })()), " "), 0, [], "array"falsefalsefalse3))) {
  40.             // line 5
  41.             echo "
  42.     <div class=\"m-m5 wallpaper ";
  43.             // line 6
  44.             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")) {
  45.                 echo "clean";
  46.             }
  47.             echo " ";
  48.             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"]);
  49.             echo "\"
  50.         ";
  51.             // line 7
  52.             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")) {
  53.                 echo "style=\"background: ";
  54.                 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"nulltrue);
  55.                 echo "\"
  56.         ";
  57.             } elseif ( !$this->extensions['eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->isFieldEmpty(            // line 8
  58. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'8$this->source); })()), "m5_media")) {
  59.                 // line 9
  60.                 echo "            style=\"background-image: url('";
  61.                 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"]]]);
  62.                 echo "')\"
  63.         ";
  64.             }
  65.             // line 11
  66.             echo "    >
  67.         <div class=\"wrapper\">
  68.             <div class=\"internal-wrapper\">
  69.                 ";
  70.             // line 15
  71.             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")) {
  72.                 // line 16
  73.                 echo "                    ";
  74.                 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"]]]);
  75.                 echo "
  76.                 ";
  77.             }
  78.             // line 18
  79.             echo "
  80.                 <h2 class=\"h1\">";
  81.             // line 19
  82.             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");
  83.             echo "</h2>
  84.                 ";
  85.             // line 21
  86.             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")) {
  87.                 // line 22
  88.                 echo "                    <p class=\"h4\">";
  89.                 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");
  90.                 echo "</p>
  91.                 ";
  92.             }
  93.             // line 24
  94.             echo "
  95.                 <div class=\"big-picture\"></div>
  96.                 <p class=\"caption h5 hidden\"></p>
  97.                 <div class=\"carrousel-wrapper\">
  98.                     <div class=\"carrousel-container\">
  99.                         <ul class=\"list\">
  100.                             ";
  101.             // line 31
  102.             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->sourcetwig_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"falsefalsefalse31), "mainLocationId", [], "any"falsefalsefalse31), "container" => true"internal" => true]));
  103.             echo "
  104.                         </ul>
  105.                     </div>
  106.                     <div class=\"carrousel-nav\">
  107.                         <span class=\"prev\">
  108.                             ";
  109.             // line 36
  110.             echo twig_include($this->env$context"icons/link-arrow.svg.twig");
  111.             echo "
  112.                         </span>
  113.                         <span class=\"next\">
  114.                             ";
  115.             // line 39
  116.             echo twig_include($this->env$context"icons/link-arrow.svg.twig");
  117.             echo "
  118.                         </span>
  119.                     </div>
  120.                 </div>
  121.                 
  122.                 ";
  123.             // line 45
  124.             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")) {
  125.                 // line 46
  126.                 echo "                    ";
  127.                 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" => ""]]);
  128.                 echo "
  129.                 ";
  130.             }
  131.             // line 48
  132.             echo "            </div>
  133.         </div>
  134.     </div>
  135. ";
  136.         } else {
  137.             // line 52
  138.             echo "    ";
  139.             $this->loadTemplate("themes/default/block/m5_block.html.twig""@reyesdelanoche/block/m5_block.html.twig"52)->display($context);
  140.         }
  141.         // line 54
  142.         echo "
  143. ";
  144.         
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  146.         
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  148.     }
  149.     public function getTemplateName()
  150.     {
  151.         return "@reyesdelanoche/block/m5_block.html.twig";
  152.     }
  153.     public function isTraitable()
  154.     {
  155.         return false;
  156.     }
  157.     public function getDebugInfo()
  158.     {
  159.         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,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("{% set clase %}{{ ez_render_field( content, 'class_css') | trim }}{% endset %}
  164. {% if 
  165.     ('trailer-sobrelaserie' == (clase | split(\" \")[0])) 
  166.  %}
  167.     <div class=\"m-m5 wallpaper {% if not ez_is_field_empty( content, 'm5_bgcolor' ) %}clean{% endif %} {{ ez_render_field( content, 'class_css') }}\"
  168.         {% if not ez_is_field_empty( content, 'm5_bgcolor' ) %}style=\"background: {{ ez_field_value(content, 'm5_bgcolor') }}\"
  169.         {% elseif not ez_is_field_empty( content, 'm5_media' ) %}
  170.             style=\"background-image: url('{{ ez_render_field(content, 'm5_media', { parameters: { lazy: true, alias: 'blur_bg' }}) }}')\"
  171.         {% endif %}
  172.     >
  173.         <div class=\"wrapper\">
  174.             <div class=\"internal-wrapper\">
  175.                 {% if not ez_is_field_empty( content, 'm5_icon' ) %}
  176.                     {{ ez_render_field( content, 'm5_icon', {parameters: { class: 'icon' } }) }}
  177.                 {% endif %}
  178.                 <h2 class=\"h1\">{{ ez_field_value( content, 'm5_title')|raw }}</h2>
  179.                 {% if not ez_is_field_empty( content, 'm5_subtitle' ) %}
  180.                     <p class=\"h4\">{{ ez_field_value( content, 'm5_subtitle')|raw }}</p>
  181.                 {% endif %}
  182.                 <div class=\"big-picture\"></div>
  183.                 <p class=\"caption h5 hidden\"></p>
  184.                 <div class=\"carrousel-wrapper\">
  185.                     <div class=\"carrousel-container\">
  186.                         <ul class=\"list\">
  187.                             {{ render(controller('AppBundle:Block:renderBlocks', {'locationId': content.contentInfo.mainLocationId, 'container': true, 'internal': true } )) }}
  188.                         </ul>
  189.                     </div>
  190.                     <div class=\"carrousel-nav\">
  191.                         <span class=\"prev\">
  192.                             {{ include('icons/link-arrow.svg.twig') }}
  193.                         </span>
  194.                         <span class=\"next\">
  195.                             {{ include('icons/link-arrow.svg.twig') }}
  196.                         </span>
  197.                     </div>
  198.                 </div>
  199.                 
  200.                 {% if not ez_is_field_empty( content, 'm5_link_relation' ) %}
  201.                     {{ ez_render_field( content, 'm5_link_relation',  { 'name':  ez_render_field( content, 'm5_link_title'), class: '' }) }}
  202.                 {% endif %}
  203.             </div>
  204.         </div>
  205.     </div>
  206. {% else %}
  207.     {% include 'themes/default/block/m5_block.html.twig' %}
  208. {% endif %}
  209. ""@reyesdelanoche/block/m5_block.html.twig""/var/www/app/Resources/views/themes/reyesdelanoche/block/m5_block.html.twig");
  210.     }
  211. }