437 lines
24 KiB
PHP
437 lines
24 KiB
PHP
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
|
|
/* @PrestaShop/Admin/layout.html.twig */
|
|
class __TwigTemplate_b9bdfb33a8d48413e952558e1f605d05a67fcd1c83ff36fcdb5e92404637a6bc extends \Twig\Template
|
|
{
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->blocks = [
|
|
'javascripts' => [$this, 'block_javascripts'],
|
|
'translate_javascripts' => [$this, 'block_translate_javascripts'],
|
|
'content_header' => [$this, 'block_content_header'],
|
|
'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"] ?? $this->getContext($context, "app")), "request", []), "attributes", []), "get", [0 => "_legacy_controller"], "method"), (( // line 28
|
|
(isset($context["layoutTitle"]) || array_key_exists("layoutTitle", $context))) ? (($context["layoutTitle"] ?? $this->getContext($context, "layoutTitle"))) : ("")), (( // line 29
|
|
(isset($context["layoutHeaderToolbarBtn"]) || array_key_exists("layoutHeaderToolbarBtn", $context))) ? (($context["layoutHeaderToolbarBtn"] ?? $this->getContext($context, "layoutHeaderToolbarBtn"))) : ([])), (( // line 30
|
|
(isset($context["layoutDisplayType"]) || array_key_exists("layoutDisplayType", $context))) ? (($context["layoutDisplayType"] ?? $this->getContext($context, "layoutDisplayType"))) : ("")), (( // line 31
|
|
(isset($context["showContentHeader"]) || array_key_exists("showContentHeader", $context))) ? (($context["showContentHeader"] ?? $this->getContext($context, "showContentHeader"))) : (true)), (( // line 32
|
|
(isset($context["headerTabContent"]) || array_key_exists("headerTabContent", $context))) ? (($context["headerTabContent"] ?? $this->getContext($context, "headerTabContent"))) : ("")), (( // line 33
|
|
(isset($context["enableSidebar"]) || array_key_exists("enableSidebar", $context))) ? (($context["enableSidebar"] ?? $this->getContext($context, "enableSidebar"))) : (false)), (( // line 34
|
|
(isset($context["help_link"]) || array_key_exists("help_link", $context))) ? (($context["help_link"] ?? $this->getContext($context, "help_link"))) : ("")))), "@PrestaShop/Admin/layout.html.twig", 25);
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/layout.html.twig"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/layout.html.twig"));
|
|
|
|
// line 38
|
|
$context["ps"] = $this->loadTemplate("@PrestaShop/Admin/macros.html.twig", "@PrestaShop/Admin/layout.html.twig", 38);
|
|
// line 25
|
|
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
// line 40
|
|
public function block_javascripts($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
|
|
|
|
// line 41
|
|
echo " <script src=\"";
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/default.js"), "html", null, true);
|
|
echo "\"></script>
|
|
<script src=\"";
|
|
// line 42
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/right-sidebar.js"), "html", null, true);
|
|
echo "\"></script>
|
|
<script src=\"";
|
|
// line 43
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/new-theme/public/form_popover_error.bundle.js"), "html", null, true);
|
|
echo "\"></script>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 46
|
|
public function block_translate_javascripts($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_javascripts"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translate_javascripts"));
|
|
|
|
// line 47
|
|
echo " <script>
|
|
var translate_javascripts = ";
|
|
// line 48
|
|
echo twig_jsonencode_filter(($context["js_translatable"] ?? $this->getContext($context, "js_translatable")));
|
|
echo ";
|
|
var PS_ALLOW_ACCENTED_CHARS_URL = ";
|
|
// line 49
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('PrestaShopBundle\Twig\DataFormatterExtension')->intCast($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_ALLOW_ACCENTED_CHARS_URL")), "html", null, true);
|
|
echo ";
|
|
</script>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 53
|
|
public function block_content_header($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_header"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content_header"));
|
|
|
|
// line 54
|
|
echo " ";
|
|
// line 74
|
|
echo " ";
|
|
$context["layout"] = $this;
|
|
// line 75
|
|
echo "
|
|
";
|
|
// line 76
|
|
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "peek", [0 => "error"], "method")) > 0)) {
|
|
// line 77
|
|
echo " ";
|
|
echo $context["layout"]->getalert("danger", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "get", [0 => "error"], "method"));
|
|
echo "
|
|
";
|
|
}
|
|
// line 79
|
|
echo " ";
|
|
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "peek", [0 => "failure"], "method")) > 0)) {
|
|
// line 80
|
|
echo " ";
|
|
echo $context["layout"]->getalert("danger", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "get", [0 => "failure"], "method"));
|
|
echo "
|
|
";
|
|
}
|
|
// line 82
|
|
echo " ";
|
|
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "peek", [0 => "success"], "method")) > 0)) {
|
|
// line 83
|
|
echo " ";
|
|
echo $context["layout"]->getalert("success", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "get", [0 => "success"], "method"));
|
|
echo "
|
|
";
|
|
}
|
|
// line 85
|
|
echo " ";
|
|
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "peek", [0 => "warning"], "method")) > 0)) {
|
|
// line 86
|
|
echo " ";
|
|
echo $context["layout"]->getalert("warning", $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? $this->getContext($context, "app")), "session", []), "flashbag", []), "get", [0 => "warning"], "method"));
|
|
echo "
|
|
";
|
|
}
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 90
|
|
public function block_sidebar_right($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar_right"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar_right"));
|
|
|
|
// line 91
|
|
echo " <nav
|
|
id=\"right-sidebar\"
|
|
role=\"navigation\"
|
|
class=\"col-xs-5 col-sm-4 col-md-4 col-lg-3 sidebar sidebar-right sidebar-animate text-sm-center\"
|
|
>
|
|
<img
|
|
src=\"";
|
|
// line 97
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/img/bundle/dashboard_loading.gif"), "html", null, true);
|
|
echo "\"
|
|
style=\"margin-top: 10em;\" alt=\"";
|
|
// line 98
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Loading...", [], "Admin.Global"), "html", null, true);
|
|
echo "\"
|
|
/>
|
|
</nav>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 54
|
|
public function getalert($__type__ = null, $__flashbagContent__ = null, ...$__varargs__)
|
|
{
|
|
$context = $this->env->mergeGlobals([
|
|
"type" => $__type__,
|
|
"flashbagContent" => $__flashbagContent__,
|
|
"varargs" => $__varargs__,
|
|
]);
|
|
|
|
$blocks = [];
|
|
|
|
ob_start();
|
|
try {
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "alert"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "alert"));
|
|
|
|
// line 55
|
|
echo " <div class=\"alert alert-";
|
|
echo twig_escape_filter($this->env, ($context["type"] ?? $this->getContext($context, "type")), "html", null, true);
|
|
echo "\" role=\"alert\">
|
|
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
|
|
<span aria-hidden=\"true\"><i class=\"material-icons\">close</i></span>
|
|
</button>
|
|
";
|
|
// line 59
|
|
if ((twig_length_filter($this->env, ($context["flashbagContent"] ?? $this->getContext($context, "flashbagContent"))) > 1)) {
|
|
// line 60
|
|
echo " <ul class=\"alert-text\">
|
|
";
|
|
// line 61
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["flashbagContent"] ?? $this->getContext($context, "flashbagContent")));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
|
|
// line 62
|
|
echo " <li>";
|
|
echo $context["flashMessage"];
|
|
echo "</li>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 64
|
|
echo " </ul>
|
|
";
|
|
} else {
|
|
// line 66
|
|
echo " <div class=\"alert-text\">
|
|
";
|
|
// line 67
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(($context["flashbagContent"] ?? $this->getContext($context, "flashbagContent")));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
|
|
// line 68
|
|
echo " <p>";
|
|
echo $context["flashMessage"];
|
|
echo "</p>
|
|
";
|
|
}
|
|
$_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 " </div>
|
|
";
|
|
}
|
|
// line 72
|
|
echo " </div>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
} 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 ( 287 => 72, 283 => 70, 274 => 68, 270 => 67, 267 => 66, 263 => 64, 254 => 62, 250 => 61, 247 => 60, 245 => 59, 237 => 55, 218 => 54, 204 => 98, 200 => 97, 192 => 91, 183 => 90, 169 => 86, 166 => 85, 160 => 83, 157 => 82, 151 => 80, 148 => 79, 142 => 77, 140 => 76, 137 => 75, 134 => 74, 132 => 54, 123 => 53, 110 => 49, 106 => 48, 103 => 47, 94 => 46, 82 => 43, 78 => 42, 73 => 41, 64 => 40, 54 => 25, 52 => 38, 40 => 34, 39 => 33, 38 => 32, 37 => 31, 36 => 30, 35 => 29, 34 => 28, 33 => 27, 32 => 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("{#**
|
|
* 2007-2019 PrestaShop and Contributors
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to https://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2019 PrestaShop SA and Contributors
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*#}
|
|
{% extends(template_from_string(
|
|
getLegacyLayout(
|
|
app.request.attributes.get('_legacy_controller'),
|
|
layoutTitle is defined ? layoutTitle : '',
|
|
layoutHeaderToolbarBtn is defined ? layoutHeaderToolbarBtn : [],
|
|
layoutDisplayType is defined ? layoutDisplayType : '',
|
|
showContentHeader is defined ? showContentHeader : true,
|
|
headerTabContent is defined ? headerTabContent : '',
|
|
enableSidebar is defined ? enableSidebar : false,
|
|
help_link is defined ? help_link : ''
|
|
)
|
|
)) %}
|
|
|
|
{% import '@PrestaShop/Admin/macros.html.twig' as ps %}
|
|
|
|
{% block javascripts %}
|
|
<script src=\"{{ asset('themes/default/js/bundle/default.js') }}\"></script>
|
|
<script src=\"{{ asset('themes/default/js/bundle/right-sidebar.js') }}\"></script>
|
|
<script src=\"{{ asset('themes/new-theme/public/form_popover_error.bundle.js') }}\"></script>
|
|
{% endblock %}
|
|
|
|
{% block translate_javascripts %}
|
|
<script>
|
|
var translate_javascripts = {{ js_translatable|json_encode()|raw }};
|
|
var PS_ALLOW_ACCENTED_CHARS_URL = {{ 'PS_ALLOW_ACCENTED_CHARS_URL'|configuration|intCast }};
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block content_header %}
|
|
{% macro alert(type, flashbagContent) %}
|
|
<div class=\"alert alert-{{ type }}\" role=\"alert\">
|
|
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
|
|
<span aria-hidden=\"true\"><i class=\"material-icons\">close</i></span>
|
|
</button>
|
|
{% if flashbagContent|length > 1 %}
|
|
<ul class=\"alert-text\">
|
|
{% for flashMessage in flashbagContent %}
|
|
<li>{{ flashMessage|raw }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<div class=\"alert-text\">
|
|
{% for flashMessage in flashbagContent %}
|
|
<p>{{ flashMessage|raw }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
{% import _self as layout %}
|
|
|
|
{% if app.session.flashbag.peek('error')|length() > 0 %}
|
|
{{ layout.alert('danger', app.session.flashbag.get('error')) }}
|
|
{% endif %}
|
|
{% if app.session.flashbag.peek('failure')|length() > 0 %}
|
|
{{ layout.alert('danger', app.session.flashbag.get('failure')) }}
|
|
{% endif %}
|
|
{% if app.session.flashbag.peek('success')|length() > 0 %}
|
|
{{ layout.alert('success', app.session.flashbag.get('success')) }}
|
|
{% endif %}
|
|
{% if app.session.flashbag.peek('warning')|length() > 0 %}
|
|
{{ layout.alert('warning', app.session.flashbag.get('warning')) }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block sidebar_right %}
|
|
<nav
|
|
id=\"right-sidebar\"
|
|
role=\"navigation\"
|
|
class=\"col-xs-5 col-sm-4 col-md-4 col-lg-3 sidebar sidebar-right sidebar-animate text-sm-center\"
|
|
>
|
|
<img
|
|
src=\"{{ asset('themes/default/img/bundle/dashboard_loading.gif') }}\"
|
|
style=\"margin-top: 10em;\" alt=\"{{ 'Loading...'|trans({}, 'Admin.Global') }}\"
|
|
/>
|
|
</nav>
|
|
{% endblock %}
|
|
", "@PrestaShop/Admin/layout.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig");
|
|
}
|
|
}
|