var/cache/dev/twig/60/60137ed632cf3d51b5e10b36992dd982a160ed7da53f8ae8d43e2f06d5956a53.php line 112

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/m9_block.html.twig */
  14. class __TwigTemplate_de6238bd78855256f92994e6549cd49574616e285fa68fc79d27d94df723e167 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/m9_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/m9_block.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"m-m9 ";
  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); })()), "m9_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); })()), "m9_bgcolor"), "html"nulltrue);
  42.             echo "\"";
  43.         }
  44.         echo ">
  45.     <div class=\"wrapper\">
  46.         <div class=\"internal-wrapper\">
  47.             ";
  48.         // line 5
  49.         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.'5$this->source); })()), "m9_icon")) {
  50.             // line 6
  51.             echo "                ";
  52.             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); })()), "m9_icon", ["parameters" => ["class" => "icon"]]]);
  53.             echo "
  54.             ";
  55.         }
  56.         // line 8
  57.         echo "
  58.             ";
  59.         // line 9
  60.         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.'9$this->source); })()), "m9_title")) {
  61.             // line 10
  62.             echo "                <h2 class=\"h1\">";
  63.             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.'10$this->source); })()), "m9_title");
  64.             echo "</h2>
  65.             ";
  66.         }
  67.         // line 12
  68.         echo "
  69.             ";
  70.         // line 13
  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.'13$this->source); })()), "m9_subtitle")) {
  72.             // line 14
  73.             echo "                <p class=\"h4\">";
  74.             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.'14$this->source); })()), "m9_subtitle");
  75.             echo "</p>
  76.             ";
  77.         }
  78.         // line 16
  79.         echo "
  80.             ";
  81.         // line 17
  82.         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.'17$this->source); })()), "m9_link_relation")) {
  83.             // line 18
  84.             echo "                ";
  85.             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.'18$this->source); })()), "m9_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.'18$this->source); })()), "m9_link_title"]), "class" => ""]]);
  86.             echo "
  87.             ";
  88.         }
  89.         // line 20
  90.         echo "        </div>
  91.         ";
  92.         // line 21
  93.         if ((isset($context["pager"]) || array_key_exists("pager"$context))) {
  94.             // line 22
  95.             echo "            <div class=\"grid\">
  96.             ";
  97.             // line 23
  98.             $context['_parent'] = $context;
  99.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'23$this->source); })()), "currentPageResults", [], "any"falsefalsefalse23));
  100.             foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  101.                 // line 24
  102.                 echo "                ";
  103.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("ez_content:viewLocation", ["locationId" => twig_get_attribute($this->env$this->source$context["child"], "id", [], "any"falsefalsefalse24), "viewType" => "embed"]));
  104.                 echo "
  105.             ";
  106.             }
  107.             $_parent $context['_parent'];
  108.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  109.             $context array_intersect_key($context$_parent) + $_parent;
  110.             // line 26
  111.             echo "            </div>
  112.             ";
  113.             // line 27
  114.             if (twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'27$this->source); })()), "haveToPaginate", [], "method"falsefalsefalse27)) {
  115.                 // line 28
  116.                 echo "                <div class=\"pagination\">
  117.                     ";
  118.                 // line 29
  119.                 echo $this->extensions['WhiteOctober\PagerfantaBundle\Twig\PagerfantaExtension']->renderPagerfanta((isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'29$this->source); })()), "simple", ["routeName" => (isset($context["parent"]) || array_key_exists("parent"$context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.'29$this->source); })()), "block" => "m9_block"]);
  120.                 echo "
  121.                 </div>
  122.             ";
  123.             }
  124.             // line 32
  125.             echo "        ";
  126.         } 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.'32$this->source); })()), "m9_relation_list")) {
  127.             // line 33
  128.             echo "
  129.             <div class=\"grid\">
  130.             ";
  131.             // line 35
  132.             $context['_parent'] = $context;
  133.             $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.'35$this->source); })()), "m9_relation_list"), "destinationContentIds", [], "any"falsefalsefalse35));
  134.             foreach ($context['_seq'] as $context["_key"] => $context["contentId"]) {
  135.                 // line 36
  136.                 echo "                ";
  137.                 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]));
  138.                 echo "
  139.             ";
  140.             }
  141.             $_parent $context['_parent'];
  142.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentId'], $context['_parent'], $context['loop']);
  143.             $context array_intersect_key($context$_parent) + $_parent;
  144.             // line 38
  145.             echo "            </div>
  146.         ";
  147.         }
  148.         // line 40
  149.         echo "    </div>
  150. </div>
  151. ";
  152.         
  153.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  154.         
  155.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  156.     }
  157.     public function getTemplateName()
  158.     {
  159.         return "@originales/block/m9_block.html.twig";
  160.     }
  161.     public function isTraitable()
  162.     {
  163.         return false;
  164.     }
  165.     public function getDebugInfo()
  166.     {
  167.         return array (  158 => 40,  154 => 38,  145 => 36,  141 => 35,  137 => 33,  134 => 32,  128 => 29,  125 => 28,  123 => 27,  120 => 26,  111 => 24,  107 => 23,  104 => 22,  102 => 21,  99 => 20,  93 => 18,  91 => 17,  88 => 16,  82 => 14,  80 => 13,  77 => 12,  71 => 10,  69 => 9,  66 => 8,  60 => 6,  58 => 5,  48 => 2,  43 => 1,);
  168.     }
  169.     public function getSourceContext()
  170.     {
  171.         return new Source("<div class=\"m-m9 {{ ez_field_value( content, 'class_css') }}\"
  172.         {% if not ez_is_field_empty( content, 'm9_bgcolor' ) %}style=\"background: {{ ez_field_value(content, 'm9_bgcolor') }}\"{% endif %}>
  173.     <div class=\"wrapper\">
  174.         <div class=\"internal-wrapper\">
  175.             {% if not ez_is_field_empty( content, 'm9_icon' ) %}
  176.                 {{ ez_render_field( content, 'm9_icon', {parameters: { class: 'icon' } }) }}
  177.             {% endif %}
  178.             {% if not ez_is_field_empty( content, 'm9_title' ) %}
  179.                 <h2 class=\"h1\">{{ ez_field_value( content, 'm9_title')|raw }}</h2>
  180.             {% endif %}
  181.             {% if not ez_is_field_empty( content, 'm9_subtitle' ) %}
  182.                 <p class=\"h4\">{{ ez_field_value( content, 'm9_subtitle')|raw }}</p>
  183.             {% endif %}
  184.             {% if not ez_is_field_empty( content, 'm9_link_relation' ) %}
  185.                 {{ ez_render_field( content, 'm9_link_relation',  { 'name':  ez_render_field( content, 'm9_link_title'), class: '' }) }}
  186.             {% endif %}
  187.         </div>
  188.         {% if pager is defined %}
  189.             <div class=\"grid\">
  190.             {% for child in pager.currentPageResults %}
  191.                 {{ render( controller( \"ez_content:viewLocation\", {\"locationId\": child.id, \"viewType\": \"embed\" } ) ) }}
  192.             {% endfor %}
  193.             </div>
  194.             {% if pager.haveToPaginate() %}
  195.                 <div class=\"pagination\">
  196.                     {{ pagerfanta( pager, 'simple', {'routeName': parent , 'block': 'm9_block' } ) }}
  197.                 </div>
  198.             {% endif %}
  199.         {% elseif not ez_is_field_empty( content, 'm9_relation_list' ) %}
  200.             <div class=\"grid\">
  201.             {% for contentId in ez_field_value( content, 'm9_relation_list' ).destinationContentIds %}
  202.                 {{ render( controller( \"ez_content:viewAction\", {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1} ) ) }}
  203.             {% endfor %}
  204.             </div>
  205.         {% endif %}
  206.     </div>
  207. </div>
  208. ""@originales/block/m9_block.html.twig""/var/www/app/Resources/views/themes/default/block/m9_block.html.twig");
  209.     }
  210. }