<?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;
/* @originales/block/m6_block.html.twig */
class __TwigTemplate_1864387a2ba572521618a926e284494764f7e245ff3fce4f7fe3f4afa679b562 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", "@originales/block/m6_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", "@originales/block/m6_block.html.twig"));
// line 1
echo "<div class=\"m-m6 ";
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", null, true);
echo "\"
";
// line 2
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")) {
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.', 2, $this->source); })()), "m6_bgcolor"), "html", null, true);
echo "\"";
} 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")) {
// line 3
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.', 3, $this->source); })()), "m6_media", ["parameters" => ["lazy" => true, "alias" => "default", "class" => "img-bg"]]]);
echo "')\"
";
}
// line 4
echo ">
<div class=\"wrapper\">
<div class=\"internal-wrapper\">
";
// 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); })()), "m6_icon")) {
// line 8
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.', 8, $this->source); })()), "m6_icon", ["parameters" => ["class" => "icon"]]]);
echo "
";
}
// line 10
echo "
";
// line 11
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")) {
// line 12
echo " <h2 class=\"h1\">";
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");
echo "</h2>
";
}
// line 14
echo "
";
// 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); })()), "m6_subtitle")) {
// line 16
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.', 16, $this->source); })()), "m6_subtitle");
echo "</p>
";
}
// line 18
echo "
";
// line 19
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")) {
// line 20
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.', 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" => ""]]);
echo "
";
}
// line 22
echo " </div>
<div class=\"grid\">
";
// line 25
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")) {
// line 26
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 26));
foreach ($context['_seq'] as $context["_key"] => $context["contentId"]) {
// line 27
echo " ";
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]));
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentId'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " ";
}
// line 30
echo " </div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@originales/block/m6_block.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div class=\"m-m6 {{ ez_field_value( content, 'class_css') }}\"
{% 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' ) %}
style=\"background-image: url('{{ ez_render_field(content, 'm6_media', { parameters: { lazy: true, alias: 'default', class: 'img-bg' }}) }}')\"
{% endif %}>
<div class=\"wrapper\">
<div class=\"internal-wrapper\">
{% if not ez_is_field_empty( content, 'm6_icon' ) %}
{{ ez_render_field( content, 'm6_icon', {parameters: { class: 'icon' } }) }}
{% endif %}
{% if not ez_is_field_empty( content, 'm6_title' ) %}
<h2 class=\"h1\">{{ ez_field_value( content, 'm6_title')|raw }}</h2>
{% endif %}
{% if not ez_is_field_empty( content, 'm6_subtitle' ) %}
<p class=\"h4\">{{ ez_field_value( content, 'm6_subtitle')|raw }}</p>
{% endif %}
{% if not ez_is_field_empty( content, 'm6_link_relation' ) %}
{{ ez_render_field( content, 'm6_link_relation', { 'name': ez_render_field( content, 'm6_link_title'), class: '' }) }}
{% endif %}
</div>
<div class=\"grid\">
{% if not ez_is_field_empty( content, 'm6_relation_list' ) %}
{% for contentId in ez_field_value( content, 'm6_relation_list' ).destinationContentIds %}
{{ render( controller( \"ez_content:viewAction\", {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1} ) ) }}
{% endfor %}
{% endif %}
</div>
</div>
</div>
", "@originales/block/m6_block.html.twig", "/var/www/app/Resources/views/themes/default/block/m6_block.html.twig");
}
}