public function testReverseFilterOnNonUTF8String() { $twig = new Apishka_Templater_Environment($this->createMock('Apishka_Templater_LoaderInterface')); $twig->setCharset('ISO-8859-1'); $input = iconv('UTF-8', 'ISO-8859-1', 'Äé'); $output = iconv('ISO-8859-1', 'UTF-8', twig_reverse_filter($twig, $input)); $this->assertEquals($output, 'éÄ'); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!doctype html>\n<html>\n<head>\n <meta charset=\"utf-8\" />\n <title>"; // line 5 if (isset($context["ezpublish"])) { $_ezpublish_ = $context["ezpublish"]; } else { $_ezpublish_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_reverse_filter($this->env, $this->getAttribute($this->getAttribute($_ezpublish_, "legacy"), "get", array(0 => "title_path"), "method")), 0, 2)); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["element"]) { // line 6 echo " "; if (isset($context["element"])) { $_element_ = $context["element"]; } else { $_element_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($_element_, "text"), "html", null, true); if (isset($context["loop"])) { $_loop_ = $context["loop"]; } else { $_loop_ = null; } if (!$this->getAttribute($_loop_, "last")) { echo " / "; } // line 7 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo "</title>\n</head>\n<body>\n <h1>Default layout</h1>\n <p>\n This is the default layout provided by the EzPublishLegacyBundle. To\n override it, you can use the following configuration:\n </p>\n <pre>\n # for instance in ezpublish.yml\n # The \"default\" scope can be replaced by any available scope\n # https://confluence.ez.no/display/EZP/Configuration#Configuration-Scope\n parameters:\n ezpublish_legacy.default.view_default_layout: YourBundle::pagelayout.html.twig\n </pre>\n\n <h1>The legacy generated content</h1>\n <div class=\"content\">\n "; // line 25 $this->displayBlock('content', $context, $blocks); // line 26 echo " </div>\n</body>\n</html>\n"; }
public function testReverseFilterOnNonUTF8String() { if (!function_exists('iconv') && !function_exists('mb_convert_encoding')) { $this->markTestSkipped('needs iconv or mbstring'); } $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface')); $twig->setCharset('ISO-8859-1'); $input = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8'); $output = twig_convert_encoding(twig_reverse_filter($twig, $input), 'UTF-8', 'ISO-8859-1'); $this->assertEquals($output, 'éÄ'); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_1847320dd4623878eb40997e14dd1b9fd7ad35d374ff2ff7ed532d56f1d5242e = $this->env->getExtension("native_profiler"); $__internal_1847320dd4623878eb40997e14dd1b9fd7ad35d374ff2ff7ed532d56f1d5242e->enter($__internal_1847320dd4623878eb40997e14dd1b9fd7ad35d374ff2ff7ed532d56f1d5242e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "BatistaBadelonBlogBundle:Article:index.html.twig")); // line 1 echo "\n "; // line 2 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, isset($context["AllArticle"]) ? $context["AllArticle"] : $this->getContext($context, "AllArticle"), true)); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["Article"]) { // line 3 echo "\n "; // line 4 $this->displayBlock('container', $context, $blocks); // line 109 echo "\n "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Article'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; $__internal_1847320dd4623878eb40997e14dd1b9fd7ad35d374ff2ff7ed532d56f1d5242e->leave($__internal_1847320dd4623878eb40997e14dd1b9fd7ad35d374ff2ff7ed532d56f1d5242e_prof); }
public function block_user_block($context, array $blocks = array()) { $__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592 = $this->env->getExtension("native_profiler"); $__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592->enter($__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block")); // line 2 echo " "; $context["items_per_column"] = $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "dropdown_number_groups_per_colums"), "method"); // line 3 echo " "; $context["groups"] = array(); // line 4 echo "\n "; // line 5 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "dashboardgroups", array())); foreach ($context['_seq'] as $context["_key"] => $context["group"]) { // line 6 echo " "; $context["display_group"] = false; // line 7 echo "\n "; // line 8 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "items", array())); foreach ($context['_seq'] as $context["_key"] => $context["admin"]) { if ((isset($context["display_group"]) ? $context["display_group"] : $this->getContext($context, "display_group")) == false) { // line 9 echo " "; if ($this->getAttribute($context["admin"], "hasRoute", array(0 => "create"), "method") && $this->getAttribute($context["admin"], "isGranted", array(0 => "CREATE"), "method")) { // line 10 echo " "; $context["display_group"] = true; // line 11 echo " "; $context["groups"] = twig_array_merge(array(0 => $context["group"]), isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups")); // line 12 echo " "; } // line 13 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['admin'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 14 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 15 echo "\n "; // line 16 $context["column_count"] = twig_round(twig_length_filter($this->env, isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups")) / (isset($context["items_per_column"]) ? $context["items_per_column"] : $this->getContext($context, "items_per_column")), 0, "ceil"); // line 17 echo "\n <div class=\"dropdown-menu multi-column dropdown-add\"\n "; // line 19 if ((isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count")) > 1) { echo "style=\"width: "; echo twig_escape_filter($this->env, (isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count")) * 140, "html", null, true); echo "px;\""; } // line 20 echo " >\n "; // line 21 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups"))); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["group"]) { // line 22 echo " "; $context["display"] = twig_test_empty($this->getAttribute($context["group"], "roles", array())) || $this->env->getExtension('security')->isGranted("ROLE_SONATA_ADMIN"); // line 23 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "roles", array())); foreach ($context['_seq'] as $context["_key"] => $context["role"]) { if (!(isset($context["display"]) ? $context["display"] : $this->getContext($context, "display"))) { // line 24 echo " "; $context["display"] = $this->env->getExtension('security')->isGranted($context["role"]); // line 25 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 26 echo "\n "; // line 27 if (isset($context["display"]) ? $context["display"] : $this->getContext($context, "display")) { // line 28 echo "\n "; // line 29 if ($this->getAttribute($context["loop"], "first", array()) || $this->getAttribute($context["loop"], "index0", array()) % (isset($context["items_per_column"]) ? $context["items_per_column"] : $this->getContext($context, "items_per_column")) == 0) { // line 30 echo " "; if ($this->getAttribute($context["loop"], "first", array())) { // line 31 echo " <div class=\"container-fluid\">\n <div class=\"row\">\n "; } else { // line 34 echo " </ul>\n "; } // line 36 echo "\n <ul class=\"dropdown-menu"; // line 37 if ((isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count")) > 1) { echo " col-md-"; echo twig_escape_filter($this->env, twig_round(12 / (isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count"))), "html", null, true); } echo "\">\n "; } // line 39 echo "\n "; // line 40 if ($this->getAttribute($context["loop"], "index0", array()) % (isset($context["items_per_column"]) ? $context["items_per_column"] : $this->getContext($context, "items_per_column")) != 0) { // line 41 echo " <li role=\"presentation\" class=\"divider\"></li>\n "; } // line 43 echo " <li role=\"presentation\" class=\"dropdown-header\">"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["group"], "label", array()), array(), $this->getAttribute($context["group"], "label_catalogue", array())), "html", null, true); echo "</li>\n\n "; // line 45 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "items", array())); foreach ($context['_seq'] as $context["_key"] => $context["admin"]) { // line 46 echo " "; if ($this->getAttribute($context["admin"], "hasRoute", array(0 => "create"), "method") && $this->getAttribute($context["admin"], "isGranted", array(0 => "CREATE"), "method")) { // line 47 echo " <li role=\"presentation\">\n <a role=\"menuitem\" tabindex=\"-1\" href=\""; // line 48 echo twig_escape_filter($this->env, $this->getAttribute($context["admin"], "generateUrl", array(0 => "create"), "method"), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["admin"], "label", array()), array(), $this->getAttribute($context["admin"], "translationdomain", array())), "html", null, true); echo "</a>\n </li>\n "; } // line 51 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['admin'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 52 echo "\n "; // line 53 if ($this->getAttribute($context["loop"], "last", array())) { // line 54 echo " </ul>\n </div>\n </div>\n "; } // line 58 echo "\n "; } // line 60 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 61 echo " </div>\n"; $__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592->leave($__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592_prof); }
public function block_content($context, array $blocks = array()) { $__internal_dde826c1c31e2d1c75ecffc5b1c6bafdd107ef3ff5c30255be448c6f43bf6632 = $this->env->getExtension("native_profiler"); $__internal_dde826c1c31e2d1c75ecffc5b1c6bafdd107ef3ff5c30255be448c6f43bf6632->enter($__internal_dde826c1c31e2d1c75ecffc5b1c6bafdd107ef3ff5c30255be448c6f43bf6632_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content")); // line 4 echo "<div class=\"post-entry\">\n <a href=\""; // line 5 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("post_show", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()), "slug" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "slug", array()))), "html", null, true); echo "\">\n <h2>"; // line 6 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "title", array()), "html", null, true); echo "</h2>\n </a>\n <div class=\"post-info\">\n <span class=\"glyphicon glyphicon-folder-open\"> "; // line 9 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "category", array()), "html", null, true); echo "</span> \n <span class=\"glyphicon glyphicon-time\"> "; // line 10 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "date", array()), "Y-m-d"), "html", null, true); echo " </span> \n <span class=\"glyphicon glyphicon-comment\"> "; // line 11 echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "comments", array())), "html", null, true); echo " Comments</span> \n </div>\n <div class=\"post-content\">\n <p>\n "; // line 15 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "preText", array()), "html", null, true); echo "\n </p>\n <blockquote>\n "; // line 18 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "summary", array()), "html", null, true); echo "\n </blockquote>\n <p>\n Read complete article <a href=\""; // line 21 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "link", array()), "html", null, true); echo "\" target=\"_blank\">here</a>\n </p>\n <div>\n "; // line 24 echo $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "postText", array()); echo "\n </div>\n </div>\n <hr>\n <h3>Post A Comment</h3>\n\n "; // line 30 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), 'form_start'); echo "\n <div class=\"form-group\">\n "; // line 32 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "name", array()), 'label'); echo "\n "; // line 33 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "name", array()), 'widget'); echo "\n </div>\n <div class=\"form-group\">\n "; // line 36 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "reference", array()), 'label'); echo "\n "; // line 37 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "reference", array()), 'widget'); echo "\n </div>\n <div class=\"form-group\">\n "; // line 40 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "message", array()), 'label'); echo "\n "; // line 41 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "message", array()), 'widget'); echo "\n </div>\n <div class=\"form-group\">\n "; // line 44 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), "submit", array()), 'widget', array("attr" => array("class" => "btn btn-primary btn-sm custom-btn"), "label" => "COMMENT")); echo "\n </div>\n\n "; // line 47 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["comment_form"]) ? $context["comment_form"] : $this->getContext($context, "comment_form"), 'form_end'); echo "\n "; // line 48 if (twig_length_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "comments", array())) > 0) { // line 49 echo " <hr>\n <h3>Comments</h3>\n\n <div class=\"comment-area\">\n "; // line 53 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "comments", array()))); foreach ($context['_seq'] as $context["_key"] => $context["comment"]) { // line 54 echo " <div class=\"panel panel-default\">\n <div class=\"panel-body\">\n <div>\n <span class=\"glyphicon glyphicon-user\"></span>\n <strong>"; // line 58 echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "name", array()), "html", null, true); echo "</strong>\n <span class=\"text-muted\"> commented on </span>\n "; // line 60 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["comment"], "date", array()), "Y-m-d"), "html", null, true); echo "\n </div>\n <div class=\"comment-message\">\n "; // line 63 echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "message", array()), "html", null, true); echo "\n </div>\n </div>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 68 echo " </div>\n "; } // line 70 echo " "; if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) { // line 71 echo " <a href=\""; echo $this->env->getExtension('routing')->getPath("post"); echo "\" class=\"btn btn-sm btn-primary custom-btn\">\n VIEW ALL POSTS\n </a>\n <a href=\""; // line 74 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("post_edit", array("id" => $this->getAttribute(isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true); echo "\" class=\"btn btn-sm btn-primary custom-btn\">\n EDIT\n </a>\n "; // line 77 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form_start', array("attr" => array("style" => "display: inline", "onsubmit" => "return confirm(\"Are You Sure?\")"))); echo "\n "; // line 78 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), "submit", array()), 'widget', array("attr" => array("class" => "btn btn-primary btn-sm custom-btn"), "label" => "DELETE")); echo "\n "; // line 79 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form_end'); echo "\n "; } // line 81 echo "</div>\n"; $__internal_dde826c1c31e2d1c75ecffc5b1c6bafdd107ef3ff5c30255be448c6f43bf6632->leave($__internal_dde826c1c31e2d1c75ecffc5b1c6bafdd107ef3ff5c30255be448c6f43bf6632_prof); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!doctype html> <html> <head> <meta charset=\"utf-8\" /> <title>"; // line 5 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_reverse_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["ezpublish"]) ? $context["ezpublish"] : $this->getContext($context, "ezpublish")), "legacy", array()), "get", array(0 => "title_path"), "method")), 0, 2)); $context['loop'] = array( 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ); if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["element"]) { // line 6 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($context["element"], "text", array()), "html", null, true); if ((!$this->getAttribute($context["loop"], "last", array()))) { echo " / "; } // line 7 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo "</title> </head> <body> <h1>Default layout</h1> <p> This is the default layout provided by the EzPublishLegacyBundle. To override it, you can use the following configuration: </p> <pre> # In ezpublish.yml or any imported config file. # Replace \"my_siteaccess\" to a valid SiteAccess or SiteAccess group name. ezpublish_legacy: system: my_siteaccess: view_layout: YourBundle::pagelayout.html.twig </pre> <h1>The legacy generated content</h1> <div class=\"content\"> "; // line 26 $this->displayBlock('content', $context, $blocks); // line 27 echo " </div> </body> </html> "; }