blocks = [ 'javascripts' => [$this, 'block_javascripts'], 'translate_javascripts' => [$this, 'block_translate_javascripts'], 'content_header' => [$this, 'block_content_header'], 'session_alert' => [$this, 'block_session_alert'], 'sidebar_right' => [$this, 'block_sidebar_right'], ]; } protected function doGetParent(array $context) { // line 25 return $this->loadTemplate(twig_template_from_string($this->env, $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getLegacyLayout($this->getAttribute($this->getAttribute($this->getAttribute( // line 27 ($context["app"] ?? null), "request", []), "attributes", []), "get", [0 => "_legacy_controller"], "method"), (( // line 28 array_key_exists("layoutTitle", $context)) ? (($context["layoutTitle"] ?? null)) : ("")), (( // line 29 array_key_exists("layoutHeaderToolbarBtn", $context)) ? (($context["layoutHeaderToolbarBtn"] ?? null)) : ([])), (( // line 30 array_key_exists("layoutDisplayType", $context)) ? (($context["layoutDisplayType"] ?? null)) : ("")), (( // line 31 array_key_exists("showContentHeader", $context)) ? (($context["showContentHeader"] ?? null)) : (true)), (( // line 32 array_key_exists("headerTabContent", $context)) ? (($context["headerTabContent"] ?? null)) : ("")), (( // line 33 array_key_exists("enableSidebar", $context)) ? (($context["enableSidebar"] ?? null)) : (false)), (( // line 34 array_key_exists("help_link", $context)) ? (($context["help_link"] ?? null)) : ("")), $this->env->getExtension('PrestaShopBundle\Twig\Extension\JsRouterMetadataExtension')->getJsRouterMetadata(), (( // line 36 array_key_exists("meta_title", $context)) ? (($context["meta_title"] ?? null)) : ("")), (( // line 37 array_key_exists("use_regular_h1_structure", $context)) ? (($context["use_regular_h1_structure"] ?? null)) : (true)))), "@PrestaShop/Admin/layout.html.twig", 25); } protected function doDisplay(array $context, array $blocks = []) { // line 41 $context["ps"] = $this->loadTemplate("@PrestaShop/Admin/macros.html.twig", "@PrestaShop/Admin/layout.html.twig", 41)->unwrap(); // line 25 $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); } // line 43 public function block_javascripts($context, array $blocks = []) { // line 44 echo " "; } // line 49 public function block_translate_javascripts($context, array $blocks = []) { // line 50 echo " "; } // line 56 public function block_content_header($context, array $blocks = []) { // line 57 echo " "; $this->displayBlock("session_alert", $context, $blocks); echo " "; } // line 60 public function block_session_alert($context, array $blocks = []) { // line 61 echo " "; // line 81 echo " "; $context["layout"] = $this; // line 82 echo " "; // line 83 if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "peek", [0 => "error"], "method")) > 0)) { // line 84 echo " "; echo $context["layout"]->getalert("danger", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "get", [0 => "error"], "method")); echo " "; } // line 86 echo " "; if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "peek", [0 => "failure"], "method")) > 0)) { // line 87 echo " "; echo $context["layout"]->getalert("danger", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "get", [0 => "failure"], "method")); echo " "; } // line 89 echo " "; if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "peek", [0 => "success"], "method")) > 0)) { // line 90 echo " "; echo $context["layout"]->getalert("success", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "get", [0 => "success"], "method")); echo " "; } // line 92 echo " "; if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "peek", [0 => "warning"], "method")) > 0)) { // line 93 echo " "; echo $context["layout"]->getalert("warning", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "get", [0 => "warning"], "method")); echo " "; } } // line 97 public function block_sidebar_right($context, array $blocks = []) { // line 98 echo " "; } // line 61 public function getalert($__type__ = null, $__flashbagContent__ = null, ...$__varargs__) { $context = $this->env->mergeGlobals([ "type" => $__type__, "flashbagContent" => $__flashbagContent__, "varargs" => $__varargs__, ]); $blocks = []; ob_start(function () { return ''; }); try { // line 62 echo "
env, ($context["type"] ?? null), "html", null, true); echo " d-print-none\" role=\"alert\"> "; // line 66 if ((twig_length_filter($this->env, ($context["flashbagContent"] ?? null)) > 1)) { // line 67 echo " "; } else { // line 73 echo "
"; // line 74 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["flashbagContent"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) { // line 75 echo "

"; echo $context["flashMessage"]; echo "

"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 77 echo "
"; } // line 79 echo "
"; } catch (\Exception $e) { ob_end_clean(); throw $e; } catch (\Throwable $e) { ob_end_clean(); throw $e; } return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); } public function getTemplateName() { return "@PrestaShop/Admin/layout.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 234 => 79, 230 => 77, 221 => 75, 217 => 74, 214 => 73, 210 => 71, 201 => 69, 197 => 68, 194 => 67, 192 => 66, 184 => 62, 171 => 61, 163 => 105, 159 => 104, 151 => 98, 148 => 97, 140 => 93, 137 => 92, 131 => 90, 128 => 89, 122 => 87, 119 => 86, 113 => 84, 111 => 83, 108 => 82, 105 => 81, 103 => 61, 100 => 60, 93 => 57, 90 => 56, 83 => 52, 79 => 51, 76 => 50, 73 => 49, 67 => 46, 63 => 45, 58 => 44, 55 => 43, 51 => 25, 49 => 41, 43 => 37, 42 => 36, 41 => 34, 40 => 33, 39 => 32, 38 => 31, 37 => 30, 36 => 29, 35 => 28, 34 => 27, 33 => 25,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Source("", "@PrestaShop/Admin/layout.html.twig", "/home/admin/domains/masimmo.pl/public_html/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig"); } }