var/cache/dev/twig/47/47800f20f47d0ff05718b519c4806a6df0eac55cb8aaa5f6d3697637ccf4a20e.php line 108

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. /* @elotrolado/block/m6_block.html.twig */
  14. class __TwigTemplate_64708586f171206885df988df82d6615359cb688d892e7ee8795cdb7bbab51bb 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""@elotrolado/block/m6_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""@elotrolado/block/m6_block.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"m-m6 ";
  35.         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.'1$this->source); })()), "class_css"), "html"nulltrue);
  36.         echo "\"
  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); })()), "m6_bgcolor")) {
  40.             echo "style=\"background: ";
  41.             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.'2$this->source); })()), "m6_bgcolor"), "html"nulltrue);
  42.             echo "\"";
  43.         } elseif ( !$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); })()), "m6_media")) {
  44.             // line 3
  45.             echo "    style=\"background-image: url('";
  46.             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.'3$this->source); })()), "m6_media", ["parameters" => ["lazy" => true"alias" => "default""class" => "img-bg"]]]);
  47.             echo "')\"
  48.         ";
  49.         }
  50.         // line 4
  51.         echo ">
  52.     <div class=\"wrapper test-1\">
  53.         <div class=\"internal-wrapper\">
  54.             ";
  55.         // line 7
  56.         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); })()), "m6_icon")) {
  57.             // line 8
  58.             echo "                ";
  59.             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); })()), "m6_icon", ["parameters" => ["class" => "icon"]]]);
  60.             echo "
  61.             ";
  62.         }
  63.         // line 10
  64.         echo "
  65.             ";
  66.         // line 11
  67.         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.'11$this->source); })()), "m6_title")) {
  68.             // line 12
  69.             echo "                <h2 class=\"h1\">";
  70.             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.'12$this->source); })()), "m6_title");
  71.             echo "</h2>
  72.             ";
  73.         }
  74.         // line 14
  75.         echo "
  76.             ";
  77.         // line 15
  78.         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); })()), "m6_subtitle")) {
  79.             // line 16
  80.             echo "                <p class=\"h4\">";
  81.             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.'16$this->source); })()), "m6_subtitle");
  82.             echo "</p>
  83.             ";
  84.         }
  85.         // line 18
  86.         echo "        </div>
  87.         <div class=\"grid\">
  88.             ";
  89.         // line 21
  90.         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); })()), "m6_relation_list")) {
  91.             // line 22
  92.             echo "                ";
  93.             $context['_parent'] = $context;
  94.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$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); })()), "m6_relation_list"), "destinationContentIds", [], "any"falsefalsefalse22));
  95.             foreach ($context['_seq'] as $context["_key"] => $context["contentId"]) {
  96.                 // line 23
  97.                 echo "                        ";
  98.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("ez_content:viewAction", ["contentId" => $context["contentId"], "viewType" => "embed""noLayout" => 1]));
  99.                 echo "
  100.                 ";
  101.             }
  102.             $_parent $context['_parent'];
  103.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentId'], $context['_parent'], $context['loop']);
  104.             $context array_intersect_key($context$_parent) + $_parent;
  105.             // line 27
  106.             echo "            ";
  107.         }
  108.         // line 28
  109.         echo "        </div>
  110.         <div class=\"internal-wrapper internal-wrapper-secondary\">
  111.             ";
  112.         // line 30
  113.         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.'30$this->source); })()), "m6_link_relation")) {
  114.             // line 31
  115.             echo "                ";
  116.             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.'31$this->source); })()), "m6_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.'31$this->source); })()), "m6_link_title"]), "class" => ""]]);
  117.             echo "
  118.             ";
  119.         }
  120.         // line 33
  121.         echo "        </div>
  122.     </div>
  123. </div>
  124. ";
  125.         
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.     }
  130.     public function getTemplateName()
  131.     {
  132.         return "@elotrolado/block/m6_block.html.twig";
  133.     }
  134.     public function isTraitable()
  135.     {
  136.         return false;
  137.     }
  138.     public function getDebugInfo()
  139.     {
  140.         return array (  133 => 33,  127 => 31,  125 => 30,  121 => 28,  118 => 27,  107 => 23,  102 => 22,  100 => 21,  95 => 18,  89 => 16,  87 => 15,  84 => 14,  78 => 12,  76 => 11,  73 => 10,  67 => 8,  65 => 7,  60 => 4,  54 => 3,  48 => 2,  43 => 1,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("<div class=\"m-m6 {{ ez_field_value( content, 'class_css') }}\"
  145.         {% if not ez_is_field_empty( content, 'm6_bgcolor' ) %}style=\"background: {{ ez_field_value(content, 'm6_bgcolor') }}\"{% elseif not ez_is_field_empty( content, 'm6_media' ) %}
  146.     style=\"background-image: url('{{ ez_render_field(content, 'm6_media', { parameters: { lazy: true, alias: 'default', class: 'img-bg' }}) }}')\"
  147.         {% endif %}>
  148.     <div class=\"wrapper test-1\">
  149.         <div class=\"internal-wrapper\">
  150.             {% if not ez_is_field_empty( content, 'm6_icon' ) %}
  151.                 {{ ez_render_field( content, 'm6_icon', {parameters: { class: 'icon' } }) }}
  152.             {% endif %}
  153.             {% if not ez_is_field_empty( content, 'm6_title' ) %}
  154.                 <h2 class=\"h1\">{{ ez_field_value( content, 'm6_title')|raw }}</h2>
  155.             {% endif %}
  156.             {% if not ez_is_field_empty( content, 'm6_subtitle' ) %}
  157.                 <p class=\"h4\">{{ ez_field_value( content, 'm6_subtitle')|raw }}</p>
  158.             {% endif %}
  159.         </div>
  160.         <div class=\"grid\">
  161.             {% if not ez_is_field_empty( content, 'm6_relation_list' ) %}
  162.                 {% for contentId in ez_field_value( content, 'm6_relation_list' ).destinationContentIds %}
  163.                         {{ render( controller( \"ez_content:viewAction\", {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1} ) ) }}
  164.                 {% endfor %}
  165.             {% endif %}
  166.         </div>
  167.         <div class=\"internal-wrapper internal-wrapper-secondary\">
  168.             {% if not ez_is_field_empty( content, 'm6_link_relation' ) %}
  169.                 {{ ez_render_field( content, 'm6_link_relation',  { 'name':  ez_render_field( content, 'm6_link_title'), class: '' }) }}
  170.             {% endif %}
  171.         </div>
  172.     </div>
  173. </div>
  174. ""@elotrolado/block/m6_block.html.twig""/var/www/app/Resources/views/themes/elotrolado/block/m6_block.html.twig");
  175.     }
  176. }