/home/sharedstore/.trash/prod/twig/26
Edit: /home/sharedstore/.trash/prod/twig/26/2699815aaf0d9c5347393773589ed493.php (14942B)
source = $this->getSourceContext();
$this->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->extensions['PrestaShopBundle\Twig\LayoutExtension']->getLegacyLayout(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 27
($context["app"] ?? null), "request", [], "any", false, false, false, 27), "attributes", [], "any", false, false, false, 27), "get", [0 => "_legacy_controller"], "method", false, false, false, 27), (( // 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->extensions['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)), (( // line 38
array_key_exists("legacyBaseLayout", $context)) ? (($context["legacyBaseLayout"] ?? null)) : ("layout.tpl")))), "@PrestaShop/Admin/layout.html.twig", 25);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 25
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
}
// line 42
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
// line 43
echo "
";
}
// line 48
public function block_translate_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
// line 49
echo "
";
}
// line 55
public function block_content_header($context, array $blocks = [])
{
$macros = $this->macros;
// line 56
echo " ";
$this->displayBlock("session_alert", $context, $blocks);
echo "
";
}
// line 59
public function block_session_alert($context, array $blocks = [])
{
$macros = $this->macros;
// line 60
echo " ";
// line 80
echo " ";
$macros["layout"] = $this;
// line 81
echo "
";
// line 82
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 82), "flashbag", [], "any", false, false, false, 82), "peek", [0 => "error"], "method", false, false, false, 82)) > 0)) {
// line 83
echo " ";
echo twig_call_macro($macros["layout"], "macro_alert", ["danger", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 83), "flashbag", [], "any", false, false, false, 83), "get", [0 => "error"], "method", false, false, false, 83)], 83, $context, $this->getSourceContext());
echo "
";
}
// line 85
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 85), "flashbag", [], "any", false, false, false, 85), "peek", [0 => "failure"], "method", false, false, false, 85)) > 0)) {
// line 86
echo " ";
echo twig_call_macro($macros["layout"], "macro_alert", ["danger", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 86), "flashbag", [], "any", false, false, false, 86), "get", [0 => "failure"], "method", false, false, false, 86)], 86, $context, $this->getSourceContext());
echo "
";
}
// line 88
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 88), "flashbag", [], "any", false, false, false, 88), "peek", [0 => "success"], "method", false, false, false, 88)) > 0)) {
// line 89
echo " ";
echo twig_call_macro($macros["layout"], "macro_alert", ["success", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 89), "flashbag", [], "any", false, false, false, 89), "get", [0 => "success"], "method", false, false, false, 89)], 89, $context, $this->getSourceContext());
echo "
";
}
// line 91
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 91), "flashbag", [], "any", false, false, false, 91), "peek", [0 => "warning"], "method", false, false, false, 91)) > 0)) {
// line 92
echo " ";
echo twig_call_macro($macros["layout"], "macro_alert", ["warning", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 92), "flashbag", [], "any", false, false, false, 92), "get", [0 => "warning"], "method", false, false, false, 92)], 92, $context, $this->getSourceContext());
echo "
";
}
// line 94
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 94), "flashbag", [], "any", false, false, false, 94), "peek", [0 => "info"], "method", false, false, false, 94)) > 0)) {
// line 95
echo " ";
echo twig_call_macro($macros["layout"], "macro_alert", ["info", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 95), "flashbag", [], "any", false, false, false, 95), "get", [0 => "info"], "method", false, false, false, 95)], 95, $context, $this->getSourceContext());
echo "
";
}
}
// line 99
public function block_sidebar_right($context, array $blocks = [])
{
$macros = $this->macros;
// line 100
echo "
";
}
// line 60
public function macro_alert($__type__ = null, $__flashbagContent__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"type" => $__type__,
"flashbagContent" => $__flashbagContent__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start(function () { return ''; });
try {
// line 61
echo "
env, ($context["type"] ?? null), "html", null, true);
echo " d-print-none\" role=\"alert\">
";
// line 65
if ((twig_length_filter($this->env, ($context["flashbagContent"] ?? null)) > 1)) {
// line 66
echo "
";
// line 67
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["flashbagContent"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 68
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 70
echo "
";
} else {
// line 72
echo "
";
// line 73
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["flashbagContent"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 74
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 76
echo "
";
}
// line 78
echo "
";
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "@PrestaShop/Admin/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 255 => 78, 251 => 76, 242 => 74, 238 => 73, 235 => 72, 231 => 70, 222 => 68, 218 => 67, 215 => 66, 213 => 65, 205 => 61, 191 => 60, 183 => 107, 179 => 106, 171 => 100, 167 => 99, 159 => 95, 156 => 94, 150 => 92, 147 => 91, 141 => 89, 138 => 88, 132 => 86, 129 => 85, 123 => 83, 121 => 82, 118 => 81, 115 => 80, 113 => 60, 109 => 59, 102 => 56, 98 => 55, 91 => 51, 87 => 50, 84 => 49, 80 => 48, 74 => 45, 70 => 44, 65 => 43, 61 => 42, 57 => 25, 50 => 38, 49 => 37, 48 => 36, 47 => 34, 46 => 33, 45 => 32, 44 => 31, 43 => 30, 42 => 29, 41 => 28, 40 => 27, 39 => 25,);
}
public function getSourceContext()
{
return new Source("", "@PrestaShop/Admin/layout.html.twig", "/home/sharedstore/public_html/prestashop.sharedstore.ma/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig");
}
}