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 "
"; 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 "