var/cache/dev/twig/3d/3d94eaf13d64ee42b3a4d8248e51a9b6b0475fa2f617d4e96aeac93f2bbc9093.php line 119

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. /* @originales/block/m6_block.html.twig */
  14. class __TwigTemplate_1864387a2ba572521618a926e284494764f7e245ff3fce4f7fe3f4afa679b562 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""@originales/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""@originales/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\">
  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 "
  87.             ";
  88.         // line 19
  89.         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.'19$this->source); })()), "m6_link_relation")) {
  90.             // line 20
  91.             echo "                ";
  92.             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.'20$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.'20$this->source); })()), "m6_link_title"]), "class" => ""]]);
  93.             echo "
  94.             ";
  95.         }
  96.         // line 22
  97.         echo "        </div>
  98.         <div class=\"grid\">
  99.             ";
  100.         // line 25
  101.         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.'25$this->source); })()), "m6_relation_list")) {
  102.             // line 26
  103.             echo "                ";
  104.             $context['_parent'] = $context;
  105.             $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.'26$this->source); })()), "m6_relation_list"), "destinationContentIds", [], "any"falsefalsefalse26));
  106.             foreach ($context['_seq'] as $context["_key"] => $context["contentId"]) {
  107.                 // line 27
  108.                 echo "                    ";
  109.                 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]));
  110.                 echo "
  111.                 ";
  112.             }
  113.             $_parent $context['_parent'];
  114.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentId'], $context['_parent'], $context['loop']);
  115.             $context array_intersect_key($context$_parent) + $_parent;
  116.             // line 29
  117.             echo "            ";
  118.         }
  119.         // line 30
  120.         echo "        </div>
  121.     </div>
  122. </div>
  123. ";
  124.         
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  126.         
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  128.     }
  129.     public function getTemplateName()
  130.     {
  131.         return "@originales/block/m6_block.html.twig";
  132.     }
  133.     public function isTraitable()
  134.     {
  135.         return false;
  136.     }
  137.     public function getDebugInfo()
  138.     {
  139.         return array (  130 => 30,  127 => 29,  118 => 27,  113 => 26,  111 => 25,  106 => 22,  100 => 20,  98 => 19,  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,);
  140.     }
  141.     public function getSourceContext()
  142.     {
  143.         return new Source("<div class=\"m-m6 {{ ez_field_value( content, 'class_css') }}\"
  144.         {% 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' ) %}
  145.     style=\"background-image: url('{{ ez_render_field(content, 'm6_media', { parameters: { lazy: true, alias: 'default', class: 'img-bg' }}) }}')\"
  146.         {% endif %}>
  147.     <div class=\"wrapper\">
  148.         <div class=\"internal-wrapper\">
  149.             {% if not ez_is_field_empty( content, 'm6_icon' ) %}
  150.                 {{ ez_render_field( content, 'm6_icon', {parameters: { class: 'icon' } }) }}
  151.             {% endif %}
  152.             {% if not ez_is_field_empty( content, 'm6_title' ) %}
  153.                 <h2 class=\"h1\">{{ ez_field_value( content, 'm6_title')|raw }}</h2>
  154.             {% endif %}
  155.             {% if not ez_is_field_empty( content, 'm6_subtitle' ) %}
  156.                 <p class=\"h4\">{{ ez_field_value( content, 'm6_subtitle')|raw }}</p>
  157.             {% endif %}
  158.             {% if not ez_is_field_empty( content, 'm6_link_relation' ) %}
  159.                 {{ ez_render_field( content, 'm6_link_relation',  { 'name':  ez_render_field( content, 'm6_link_title'), class: '' }) }}
  160.             {% endif %}
  161.         </div>
  162.         <div class=\"grid\">
  163.             {% if not ez_is_field_empty( content, 'm6_relation_list' ) %}
  164.                 {% for contentId in ez_field_value( content, 'm6_relation_list' ).destinationContentIds %}
  165.                     {{ render( controller( \"ez_content:viewAction\", {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1} ) ) }}
  166.                 {% endfor %}
  167.             {% endif %}
  168.         </div>
  169.     </div>
  170. </div>
  171. ""@originales/block/m6_block.html.twig""/var/www/app/Resources/views/themes/default/block/m6_block.html.twig");
  172.     }
  173. }