var/cache/dev/twig/1a/1acbb35a6a41755bbff4097e96ed38f1b7be7c1e193711887546891d0bfed0a8.php line 114

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. /* @lacancion/block/m10_block.html.twig */
  14. class __TwigTemplate_f996e8b6487cfc63eeee09c84b4a7b4b1fcb73e307f644494d69e62ec774b508 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""@lacancion/block/m10_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""@lacancion/block/m10_block.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"m-m10 ";
  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); })()), "m10_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); })()), "m10_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); })()), "m10_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); })()), "m10_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 8
  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.'8$this->source); })()), "m10_icon")) {
  57.             // line 9
  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.'9$this->source); })()), "m10_icon", ["parameters" => ["class" => "icon"]]]);
  60.             echo "
  61.             ";
  62.         }
  63.         // line 11
  64.         echo "
  65.             ";
  66.         // line 12
  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.'12$this->source); })()), "m10_title")) {
  68.             // line 13
  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.'13$this->source); })()), "m10_title");
  71.             echo "</h2>
  72.             ";
  73.         }
  74.         // line 15
  75.         echo "
  76.             ";
  77.         // line 16
  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.'16$this->source); })()), "m10_subtitle")) {
  79.             // line 17
  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.'17$this->source); })()), "m10_subtitle");
  82.             echo "</p>
  83.             ";
  84.         }
  85.         // line 19
  86.         echo "        </div>
  87.         ";
  88.         // line 20
  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.'20$this->source); })()), "m10_relation_list")) {
  90.             // line 21
  91.             echo "            <div class=\"grid\">
  92.                 <div class=\"carrousel-wrapper\">
  93.                     <div class=\"carrousel-container\">
  94.                         <ul class=\"list\">
  95.                             ";
  96.             // line 25
  97.             $context['_parent'] = $context;
  98.             $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.'25$this->source); })()), "m10_relation_list"), "destinationContentIds", [], "any"falsefalsefalse25));
  99.             foreach ($context['_seq'] as $context["_key"] => $context["contentId"]) {
  100.                 // line 26
  101.                 echo "                                <li class=\"item\">
  102.                                     ";
  103.                 // line 27
  104.                 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]));
  105.                 echo "
  106.                                 </li>
  107.                             ";
  108.             }
  109.             $_parent $context['_parent'];
  110.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentId'], $context['_parent'], $context['loop']);
  111.             $context array_intersect_key($context$_parent) + $_parent;
  112.             // line 30
  113.             echo "                        </ul>
  114.                     </div>
  115.                     <div class=\"carrousel-nav\">
  116.                         <span class=\"prev\">
  117.                             ";
  118.             // line 34
  119.             echo twig_include($this->env$context"icons/link-arrow.svg.twig");
  120.             echo "
  121.                         </span>
  122.                         <span class=\"next\">
  123.                             ";
  124.             // line 37
  125.             echo twig_include($this->env$context"icons/link-arrow.svg.twig");
  126.             echo "
  127.                         </span>
  128.                     </div>
  129.                 </div>
  130.             </div>
  131.         ";
  132.         }
  133.         // line 43
  134.         echo "    </div>
  135. </div>
  136. ";
  137.         
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  139.         
  140.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  141.     }
  142.     public function getTemplateName()
  143.     {
  144.         return "@lacancion/block/m10_block.html.twig";
  145.     }
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     public function getDebugInfo()
  151.     {
  152.         return array (  144 => 43,  135 => 37,  129 => 34,  123 => 30,  114 => 27,  111 => 26,  107 => 25,  101 => 21,  99 => 20,  96 => 19,  90 => 17,  88 => 16,  85 => 15,  79 => 13,  77 => 12,  74 => 11,  68 => 9,  66 => 8,  60 => 4,  54 => 3,  48 => 2,  43 => 1,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("<div class=\"m-m10 {{ ez_field_value( content, 'class_css') }}\"
  157.      {% if not ez_is_field_empty( content, 'm10_bgcolor' ) %}style=\"background: {{ ez_field_value(content, 'm10_bgcolor') }}\"{% elseif not ez_is_field_empty( content, 'm10_media' ) %}
  158.     style=\"background-image: url('{{ ez_render_field(content, 'm10_media', { parameters: { lazy: true, alias: 'default', class: 'img-bg' }}) }}')\"
  159.         {% endif %}>
  160.     <div class=\"wrapper\">
  161.         <div class=\"internal-wrapper\">
  162.             {% if not ez_is_field_empty( content, 'm10_icon' ) %}
  163.                 {{ ez_render_field( content, 'm10_icon', {parameters: { class: 'icon' } }) }}
  164.             {% endif %}
  165.             {% if not ez_is_field_empty( content, 'm10_title' ) %}
  166.                 <h2 class=\"h1\">{{ ez_field_value( content, 'm10_title')|raw }}</h2>
  167.             {% endif %}
  168.             {% if not ez_is_field_empty( content, 'm10_subtitle' ) %}
  169.                 <p class=\"h4\">{{ ez_field_value( content, 'm10_subtitle')|raw }}</p>
  170.             {% endif %}
  171.         </div>
  172.         {% if not ez_is_field_empty( content, 'm10_relation_list' ) %}
  173.             <div class=\"grid\">
  174.                 <div class=\"carrousel-wrapper\">
  175.                     <div class=\"carrousel-container\">
  176.                         <ul class=\"list\">
  177.                             {% for contentId in ez_field_value( content, 'm10_relation_list' ).destinationContentIds %}
  178.                                 <li class=\"item\">
  179.                                     {{ render( controller( \"ez_content:viewAction\", {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1} ) ) }}
  180.                                 </li>
  181.                             {% endfor %}
  182.                         </ul>
  183.                     </div>
  184.                     <div class=\"carrousel-nav\">
  185.                         <span class=\"prev\">
  186.                             {{ include('icons/link-arrow.svg.twig') }}
  187.                         </span>
  188.                         <span class=\"next\">
  189.                             {{ include('icons/link-arrow.svg.twig') }}
  190.                         </span>
  191.                     </div>
  192.                 </div>
  193.             </div>
  194.         {% endif %}
  195.     </div>
  196. </div>
  197. ""@lacancion/block/m10_block.html.twig""/var/www/app/Resources/views/themes/default/block/m10_block.html.twig");
  198.     }
  199. }