blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'titlebar' => [$this, 'block_titlebar'],
'content' => [$this, 'block_content'],
'bottom' => [$this, 'block_bottom'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 86
$context["macro"] = $this;
// line 88
if ($this->getAttribute(($context["admin"] ?? null), "route", [])) {
// line 89
$context["context"] = $this->getAttribute(($context["admin"] ?? null), "page", [0 => true], "method");
}
// line 92
if ($this->getAttribute(($context["uri"] ?? null), "param", [0 => "new"], "method")) {
// line 93
$context["mode"] = "new";
} elseif ( // line 94
($context["context"] ?? null)) {
// line 95
$context["mode"] = "edit";
// line 96
if ($this->getAttribute(($context["context"] ?? null), "exists", [])) {
// line 97
$context["page_url"] = ((($context["base_url"] ?? null) . "/pages") . (($this->getAttribute($this->getAttribute($this->getAttribute(($context["context"] ?? null), "header", []), "routes", []), "default", [])) ? ($this->getAttribute($this->getAttribute($this->getAttribute(($context["context"] ?? null), "header", []), "routes", []), "default", [])) : ($this->getAttribute(($context["context"] ?? null), "rawRoute", []))));
// line 98
$context["exists"] = true;
// line 99
$context["title"] = (((($this->getAttribute(($context["context"] ?? null), "exists", [])) ? ($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.EDIT")) : ($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CREATE"))) . " ") . (($this->getAttribute($this->getAttribute(($context["context"] ?? null), "header", []), "title", [])) ? ($this->getAttribute($this->getAttribute(($context["context"] ?? null), "header", []), "title", [])) : ($this->getAttribute(($context["context"] ?? null), "title", []))));
} else {
// line 101
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD_PAGE");
}
} else {
// line 104
$context["mode"] = "list";
// line 105
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PAGES");
}
// line 108
$context["modular"] = (($this->getAttribute(($context["context"] ?? null), "modular", [])) ? ("modular_") : (""));
// line 109
$context["warn"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "warnings", []), "delete_page", []);
// line 110
$context["secure_delete"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "warnings", []), "secure_delete", []);
// line 111
$context["admin_lang"] = (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "session", []), "admin_lang", [])) ? ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "session", []), "admin_lang", [])) : ("en"));
// line 112
$context["page_lang"] = $this->getAttribute(($context["context"] ?? null), "language", []);
// line 113
$context["type"] = "page";
// line 126
if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "frontend_preview_target", []) != "inline")) {
// line 127
$context["preview_html"] = ((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url_relative_frontend"] ?? null), "/") . (($this->getAttribute(($context["context"] ?? null), "home", [])) ? ("") : ($this->getAttribute(($context["context"] ?? null), "route", []))))) ? (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url_relative_frontend"] ?? null), "/") . (($this->getAttribute(($context["context"] ?? null), "home", [])) ? ("") : ($this->getAttribute(($context["context"] ?? null), "route", []))))) : ("/"));
// line 128
$context["preview_target"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "frontend_preview_target", []);
// line 129
$context["preview_link"] = (($this->getAttribute(($context["context"] ?? null), "routable", [])) ? ((((((("env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREVIEW")) . "\"> ")) : (""));
} else {
// line 131
$context["preview_html"] = (((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url"] ?? null), "/") . "/preview") . (($this->getAttribute(($context["context"] ?? null), "home", [])) ? ("") : ($this->getAttribute(($context["context"] ?? null), "route", []))))) ? ((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url"] ?? null), "/") . "/preview") . (($this->getAttribute(($context["context"] ?? null), "home", [])) ? ("") : ($this->getAttribute(($context["context"] ?? null), "route", []))))) : ("/"));
// line 132
$context["preview_link"] = (($this->getAttribute(($context["context"] ?? null), "routable", [])) ? ((((("env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREVIEW")) . "\"> ")) : (""));
}
// line 1
$this->parent = $this->loadTemplate("partials/base.html.twig", "pages.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 115
public function block_stylesheets($context, array $blocks = [])
{
// line 116
echo " ";
if ((($context["mode"] ?? null) == "edit")) {
// line 117
echo " ";
$this->getAttribute(($context["assets"] ?? null), "addCss", [0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")], "method");
// line 118
echo " ";
}
// line 119
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
}
// line 122
public function block_javascripts($context, array $blocks = [])
{
// line 123
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
}
// line 135
public function block_titlebar($context, array $blocks = [])
{
// line 136
echo "
";
// line 138
if ((($context["mode"] ?? null) == "list")) {
// line 139
echo "
env, ($context["base_url"] ?? null), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
echo "
";
// line 141
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "add_modals", []));
foreach ($context['_seq'] as $context["key"] => $context["add_modal"]) {
// line 142
echo " ";
if (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->definedDefaultFilter($this->getAttribute($context["add_modal"], "show_in", []), "bar") == "bar")) {
// line 143
echo "
env, $this->getAttribute($context["add_modal"], "link_classes", []), "html", null, true);
echo "\" href=\"#modal-add_modal-";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" data-remodal-target=\"modal-add_modal-";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute($context["add_modal"], "label", [])), "html", null, true);
echo "
";
}
// line 145
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['add_modal'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 146
echo "
";
// line 149
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD"), "html", null, true);
echo "
";
// line 168
if ($this->getAttribute(($context["admin"] ?? null), "multilang", [])) {
// line 169
echo "
";
// line 172
$context["langName"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "siteLanguages", []), ($context["admin_lang"] ?? null), [], "array");
// line 173
echo " ";
echo twig_escape_filter($this->env, (twig_upper_filter($this->env, twig_slice($this->env, ($context["langName"] ?? null), 0, 1)) . twig_slice($this->env, ($context["langName"] ?? null), 1, null)), "html", null, true);
echo "
";
// line 175
if ((twig_length_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "languages_enabled", [])) > 1)) {
// line 176
echo "
";
}
// line 188
echo "
";
}
// line 190
echo "
";
} elseif (( // line 191
($context["mode"] ?? null) == "edit")) {
// line 192
echo "
";
// line 193
echo ($context["preview_link"] ?? null);
echo "
env, ($context["base_url"] ?? null), "html", null, true);
echo "/pages\" title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
echo "\">
";
// line 197
$context["siblings"] = $this->getAttribute($this->getAttribute(($context["context"] ?? null), "parent", [], "method"), "children", [], "method");
// line 198
echo "
";
// line 199
if ( !$this->getAttribute(($context["siblings"] ?? null), "isFirst", [0 => $this->getAttribute(($context["context"] ?? null), "path", [])], "method")) {
// line 200
echo " ";
$context["sib"] = $this->getAttribute(($context["siblings"] ?? null), "nextSibling", [0 => $this->getAttribute(($context["context"] ?? null), "path", [])], "method");
// line 201
echo " ";
$context["sib_url"] = ((($context["base_url"] ?? null) . "/pages") . (($this->getAttribute($this->getAttribute($this->getAttribute(($context["sib"] ?? null), "header", []), "routes", []), "default", [])) ? ($this->getAttribute($this->getAttribute($this->getAttribute(($context["sib"] ?? null), "header", []), "routes", []), "default", [])) : ($this->getAttribute(($context["sib"] ?? null), "rawRoute", []))));
// line 202
echo "
env, ($context["sib_url"] ?? null), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREVIOUS"), "html", null, true);
echo "\">
";
}
// line 204
echo "
";
// line 205
if ( !$this->getAttribute(($context["siblings"] ?? null), "isLast", [0 => $this->getAttribute(($context["context"] ?? null), "path", [])], "method")) {
// line 206
echo " ";
$context["sib"] = $this->getAttribute(($context["siblings"] ?? null), "prevSibling", [0 => $this->getAttribute(($context["context"] ?? null), "path", [])], "method");
// line 207
echo " ";
$context["sib_url"] = ((($context["base_url"] ?? null) . "/pages") . (($this->getAttribute($this->getAttribute($this->getAttribute(($context["sib"] ?? null), "header", []), "routes", []), "default", [])) ? ($this->getAttribute($this->getAttribute($this->getAttribute(($context["sib"] ?? null), "header", []), "routes", []), "default", [])) : ($this->getAttribute(($context["sib"] ?? null), "rawRoute", []))));
// line 208
echo "
env, ($context["sib_url"] ?? null), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NEXT"), "html", null, true);
echo "\">
";
}
// line 210
echo "
";
// line 211
if (($context["exists"] ?? null)) {
// line 212
echo "
";
// line 214
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD"), "html", null, true);
echo "
env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => (((($context["page_url"] ?? null) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", []), "param_sep", [])) . "copy"), 1 => "admin-form", 2 => "admin-nonce"], "method"), "html", null, true);
echo "\" class=\"page-copy\" > ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.COPY"), "html", null, true);
echo "
";
// line 229
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MOVE"), "html", null, true);
echo "
";
// line 230
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin-pro", [], "array"), "enabled", [])) {
// line 231
echo "
";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN_PRO.REVISIONS"), "html", null, true);
echo "
";
}
// line 233
echo " ";
if (($context["warn"] ?? null)) {
// line 234
echo "
env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => (((($context["page_url"] ?? null) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", []), "param_sep", [])) . "delete"), 1 => "admin-form", 2 => "admin-nonce"], "method"), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DELETE"), "html", null, true);
echo "
";
} else {
// line 236
echo "
env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => ((($this->getAttribute(($context["uri"] ?? null), "route", [0 => true], "method") . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", []), "param_sep", [])) . "delete"), 1 => "admin-form", 2 => "admin-nonce"], "method"), "html", null, true);
echo "\" class=\"page-delete\" >
";
}
// line 238
echo " ";
}
// line 239
echo "
";
// line 241
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
echo "
";
// line 242
if ((($context["exists"] ?? null) && $this->getAttribute(($context["admin"] ?? null), "multilang", []))) {
// line 243
echo " ";
if ($this->getAttribute(($context["context"] ?? null), "untranslatedLanguages", [])) {
// line 244
echo "
";
}
// line 256
echo " ";
}
// line 257
echo "
";
}
// line 261
echo "
";
// line 262
if ((($context["mode"] ?? null) == "new")) {
// line 263
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD_PAGE"), "html", null, true);
echo "
";
} elseif (( // line 264
($context["mode"] ?? null) == "edit")) {
// line 265
echo "
";
// line 266
echo twig_escape_filter($this->env, $this->getAttribute(($context["context"] ?? null), "title", []), "html", null, true);
echo "
";
} else {
// line 269
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MANAGE_PAGES"), "html", null, true);
echo "
";
}
}
// line 273
public function block_content($context, array $blocks = [])
{
// line 274
echo "
";
// line 275
if ((($context["mode"] ?? null) == "new")) {
// line 276
echo " ";
$this->loadTemplate("partials/blueprints-new.html.twig", "pages.html.twig", 276)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => "pages/page"], "method"), "data" => ($context["context"] ?? null)]));
// line 277
echo " ";
} elseif ((($context["mode"] ?? null) == "edit")) {
// line 278
echo "
";
// line 281
if (($this->getAttribute(($context["admin"] ?? null), "multilang", []) && ($context["page_lang"] ?? null))) {
// line 282
echo "
";
// line 284
if (($context["exists"] ?? null)) {
// line 285
echo " ";
echo twig_escape_filter($this->env, ($context["page_lang"] ?? null), "html", null, true);
echo "
";
} else {
// line 287
echo " ";
echo twig_escape_filter($this->env, ($context["admin_lang"] ?? null), "html", null, true);
echo "
";
}
// line 289
echo "
";
// line 290
if ((($context["exists"] ?? null) && (twig_length_filter($this->env, $this->getAttribute(($context["context"] ?? null), "translatedLanguages", [])) > 1))) {
// line 291
echo "
";
}
// line 302
echo "
";
}
// line 304
echo "
";
// line 305
if ($this->getAttribute($this->getAttribute(($context["context"] ?? null), "blueprints", []), "fields", [])) {
// line 306
echo " ";
$context["normalText"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NORMAL");
// line 307
echo " ";
$context["expertText"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.EXPERT");
// line 308
echo " ";
$context["maxLen"] = max([0 => twig_length_filter($this->env, ($context["normalText"] ?? null)), 1 => twig_length_filter($this->env, ($context["expertText"] ?? null))]);
// line 309
echo " ";
$context["normalText"] = $context["macro"]->getspanToggle(($context["normalText"] ?? null), ($context["maxLen"] ?? null));
// line 310
echo " ";
$context["expertText"] = $context["macro"]->getspanToggle(($context["expertText"] ?? null), ($context["maxLen"] ?? null));
// line 311
echo "
";
}
// line 321
echo "
";
// line 325
echo " ";
if (($context["current_form_data"] ?? null)) {
// line 326
echo " ";
$this->getAttribute(($context["context"] ?? null), "header", [0 => $this->getAttribute(($context["current_form_data"] ?? null), "header", [])], "method");
// line 327
echo " ";
$this->getAttribute(($context["context"] ?? null), "content", [0 => $this->getAttribute(($context["current_form_data"] ?? null), "content", [])], "method");
// line 328
echo " ";
}
// line 329
echo " ";
if (($this->getAttribute($this->getAttribute(($context["context"] ?? null), "blueprints", []), "fields", []) && ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "session", []), "expert", []) == "0"))) {
// line 330
echo " ";
$this->loadTemplate("partials/blueprints.html.twig", "pages.html.twig", 330)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["context"] ?? null), "blueprints", []), "data" => ($context["context"] ?? null)]));
// line 331
echo " ";
} else {
// line 332
echo " ";
$this->loadTemplate("partials/blueprints-raw.html.twig", "pages.html.twig", 332)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => (("admin/pages/" . ($context["modular"] ?? null)) . "raw")], "method"), "data" => ($context["context"] ?? null)]));
// line 333
echo " ";
}
// line 334
echo "
";
} else {
// line 336
echo "
";
// line 350
echo $context["macro"]->getloop(($context["pages"] ?? null), 0, $context);
echo "
";
// line 352
$this->loadTemplate("partials/page-legend.html.twig", "pages.html.twig", 352)->display($context);
// line 353
echo "
";
}
// line 355
echo "
";
// line 357
if (($context["context"] ?? null)) {
// line 358
echo " ";
$context["obj_data"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->cloneFunc(($context["context"] ?? null));
// line 359
echo "
";
// line 360
if ((($context["mode"] ?? null) == "edit")) {
// line 361
echo " ";
$this->getAttribute(($context["obj_data"] ?? null), "folder", [0 => ""], "method");
// line 362
echo " ";
}
// line 363
echo " ";
}
// line 364
echo "
";
// line 365
if (((($context["mode"] ?? null) == "list") || (($context["mode"] ?? null) == "edit"))) {
// line 366
echo "
";
// line 367
$this->loadTemplate("partials/blueprints-new.html.twig", "pages.html.twig", 367)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => "admin/pages/new"], "method"), "data" => ($context["obj_data"] ?? null), "form_id" => "new-page"]));
// line 368
echo "
";
// line 371
$this->loadTemplate("partials/blueprints-new-folder.html.twig", "pages.html.twig", 371)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => "admin/pages/new_folder"], "method"), "data" => ($context["obj_data"] ?? null), "form_id" => "new-folder"]));
// line 372
echo "
";
// line 375
$this->loadTemplate("partials/blueprints-new.html.twig", "pages.html.twig", 375)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => "admin/pages/modular_new"], "method"), "data" => ($context["obj_data"] ?? null), "form_id" => "new-modular"]));
// line 376
echo "
";
// line 378
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "add_modals", []));
$context['loop'] = [
'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["add_modal"]) {
// line 379
echo " env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->definedDefaultFilter($this->getAttribute($context["add_modal"], "modal_classes", []), ""), "html", null, true);
echo "\" data-remodal-id=\"modal-add_modal-";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" data-remodal-options=\"hashTracking: false\">
";
// line 380
$this->loadTemplate($this->env->getExtension('Grav\Common\Twig\TwigExtension')->definedDefaultFilter($this->getAttribute($context["add_modal"], "template", []), "partials/blueprints-new.html.twig"), "pages.html.twig", 380)->display(twig_array_merge($context, twig_array_merge(["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => $this->getAttribute($context["add_modal"], "blueprint", [])], "method"), "data" => ($context["context"] ?? null), "form_id" => "add-modal"], $this->env->getExtension('Grav\Common\Twig\TwigExtension')->definedDefaultFilter($this->getAttribute($context["add_modal"], "with", []), []))));
// line 381
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['add_modal'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 383
echo " ";
}
// line 384
echo "
";
// line 386
if ((($context["mode"] ?? null) == "edit")) {
// line 387
echo "
";
// line 389
$this->loadTemplate("partials/page-move.html.twig", "pages.html.twig", 389)->display(twig_array_merge($context, ["blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", [0 => "admin/pages/move"], "method"), "data" => ($context["context"] ?? null)]));
// line 390
echo "
";
// line 392
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = null;
try {
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = $this->loadTemplate([0 => "partials/page-revisions.html.twig", 1 => "empty.html.twig"], "pages.html.twig", 392);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) {
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4->display(twig_array_merge($context, ["data" => ($context["context"] ?? null)]));
}
// line 393
echo "
";
}
// line 395
echo "
";
// line 396
$this->loadTemplate("partials/modal-changes-detected.html.twig", "pages.html.twig", 396)->display($context);
// line 397
echo "
";
// line 426
$__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = null;
try {
$__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = $this->loadTemplate("partials/admin-pro-pages-addons.html.twig", "pages.html.twig", 426);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) {
$__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144->display($context);
}
// line 427
echo "
";
}
// line 430
public function block_bottom($context, array $blocks = [])
{
// line 431
echo " ";
$this->displayParentBlock("bottom", $context, $blocks);
echo "
";
}
// line 3
public function getspanToggle($__input__ = null, $__length__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals([
"input" => $__input__,
"length" => $__length__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
// line 4
echo " ";
echo (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->repeatFunc(" ", ((($context["length"] ?? null) - twig_length_filter($this->env, ($context["input"] ?? null))) / 2)) . ($context["input"] ?? null)) . $this->env->getExtension('Grav\Common\Twig\TwigExtension')->repeatFunc(" ", ((($context["length"] ?? null) - twig_length_filter($this->env, ($context["input"] ?? null))) / 2)));
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());
}
// line 7
public function getloop($__page__ = null, $__depth__ = null, $__twig_vars__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals([
"page" => $__page__,
"depth" => $__depth__,
"twig_vars" => $__twig_vars__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
// line 8
echo " ";
$context["self"] = $this;
// line 9
echo "
";
// line 10
$context["config"] = $this->getAttribute(($context["twig_vars"] ?? null), "config", [], "array");
// line 11
echo " ";
$context["separator"] = $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", []), "param_sep", []);
// line 12
echo " ";
$context["display_field"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "pages_list_display_field", []);
// line 13
echo " ";
$context["base_url"] = $this->getAttribute(($context["twig_vars"] ?? null), "base_url_relative", [], "array");
// line 14
echo " ";
$context["base_url_relative_frontend"] = $this->getAttribute(($context["twig_vars"] ?? null), "base_url_relative_frontend", [], "array");
// line 15
echo " ";
$context["base_url_simple"] = $this->getAttribute(($context["twig_vars"] ?? null), "base_url_simple", [], "array");
// line 16
echo " ";
$context["admin_route"] = $this->getAttribute(($context["twig_vars"] ?? null), "admin_route", [], "array");
// line 17
echo " ";
$context["admin_lang"] = $this->getAttribute(($context["twig_vars"] ?? null), "admin_lang", [], "array");
// line 18
echo " ";
$context["warn"] = $this->getAttribute(($context["twig_vars"] ?? null), "warn", [], "array");
// line 19
echo " ";
$context["uri"] = $this->getAttribute(($context["twig_vars"] ?? null), "uri", [], "array");
// line 20
echo "
";
// line 21
if ((($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", []), "admin", []), "children_display_order", []) == "collection") && $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", []), "content", []), "order", []), "by", []))) {
// line 22
echo " ";
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", []), "content", []), "order", []), "custom", [])) {
// line 23
echo " ";
$context["pcol"] = $this->getAttribute($this->getAttribute(($context["page"] ?? null), "children", [], "method"), "order", [0 => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", []), "content", []), "order", []), "by", []), 1 => (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "content", [], "any", false, true), "order", [], "any", false, true), "dir", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "content", [], "any", false, true), "order", [], "any", false, true), "dir", []), "asc")) : ("asc")), 2 => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", []), "content", []), "order", []), "custom", [])], "method");
// line 24
echo " ";
} else {
// line 25
echo " ";
$context["pcol"] = $this->getAttribute($this->getAttribute(($context["page"] ?? null), "children", [], "method"), "order", [0 => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", []), "content", []), "order", []), "by", []), 1 => (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "content", [], "any", false, true), "order", [], "any", false, true), "dir", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "content", [], "any", false, true), "order", [], "any", false, true), "dir", []), "asc")) : ("asc"))], "method");
// line 26
echo " ";
}
// line 27
echo " ";
} else {
// line 28
echo " ";
$context["pcol"] = $this->getAttribute(($context["page"] ?? null), "children", [], "method");
// line 29
echo " ";
}
// line 30
echo "
";
// line 31
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["pcol"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 32
echo " ";
$context["description"] = (((((( !$this->getAttribute($context["p"], "page", [])) ? (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.FOLDER") . " • ")) : (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PAGE") . " • "))) . (($this->getAttribute( // line 33
$context["p"], "modular", [])) ? (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODULAR") . " • ")) : (""))) . (($this->getAttribute( // line 34
$context["p"], "routable", [])) ? (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ROUTABLE") . " • ")) : (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NON_ROUTABLE") . " • ")))) . (($this->getAttribute( // line 35
$context["p"], "visible", [])) ? (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.VISIBLE") . " • ")) : (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NON_VISIBLE") . " • ")))) . (($this->getAttribute( // line 36
$context["p"], "published", [])) ? (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PUBLISHED") . " • ")) : (($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NON_PUBLISHED") . " • "))));
// line 37
echo "
";
// line 38
$context["page_url"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->getPageUrl($context, $context["p"]);
// line 39
echo "
env, $this->getAttribute($context["p"], "route", []), "html", null, true);
echo "\">
getAttribute($this->getAttribute($context["p"], "children", [0 => 0], "method"), "count", []) > 0)) ? ("data-toggle=\"children\"") : (""));
echo ">
getAttribute($this->getAttribute($context["p"], "children", [0 => 0], "method"), "count", []) > 0)) ? ("children-closed") : (""));
echo " ";
echo (($this->getAttribute($context["p"], "modular", [])) ? ("modular") : ((( !$this->getAttribute($context["p"], "routable", [])) ? ("not-routable") : ((( !$this->getAttribute($context["p"], "visible", [])) ? ("not-visible") : ((( !$this->getAttribute($context["p"], "page", [])) ? ("folder") : (""))))))));
echo "\">
";
// line 48
$context["page_label"] = _twig_default_filter($this->env->getExtension('Grav\Common\Twig\TwigExtension')->definedDefaultFilter($this->env->getExtension('Grav\Common\Twig\TwigExtension')->definedDefaultFilter($this->getAttribute($this->getAttribute($context["p"], "header", []), ($context["display_field"] ?? null)), $this->getAttribute($context["p"], ($context["display_field"] ?? null))), $this->getAttribute($context["p"], "title", [])), $this->env->getExtension('Grav\Common\Twig\TwigExtension')->inflectorFilter("title", $this->getAttribute($context["p"], "slug", [])));
// line 49
echo " env, ($context["page_url"] ?? null), "html", null, true);
echo "\" class=\"page-edit\">";
echo twig_escape_filter($this->env, ($context["page_label"] ?? null));
echo "
";
// line 51
if ($this->getAttribute($context["p"], "language", [])) {
// line 52
echo "
getAttribute($context["p"], "language", []) == ($context["admin_lang"] ?? null))) {
echo "info";
}
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["p"], "language", []), "html", null, true);
echo "
";
}
// line 54
echo " ";
if ($this->getAttribute($context["p"], "home", [])) {
// line 55
echo "
";
}
// line 57
echo "
";
// line 58
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute($context["p"], "header", []), "routes", []), "default", [])) ? ($this->getAttribute($this->getAttribute($this->getAttribute($context["p"], "header", []), "routes", []), "default", [])) : ($this->getAttribute($context["p"], "route", []))), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute($context["p"], "template", [], "method"), "html", null, true);
echo "
";
// line 61
if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "frontend_preview_target", []) != "inline")) {
// line 62
echo " ";
$context["preview_target"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "frontend_preview_target", []);
// line 63
echo " ";
$context["preview_html"] = ((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url_relative_frontend"] ?? null), "/") . (($this->getAttribute($context["p"], "home", [])) ? ("") : ($this->getAttribute($context["p"], "route", []))))) ? (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url_relative_frontend"] ?? null), "/") . (($this->getAttribute($context["p"], "home", [])) ? ("") : ($this->getAttribute($context["p"], "route", []))))) : ("/"));
// line 64
echo " ";
$context["preview_link"] = (($this->getAttribute($context["p"], "routable", [])) ? ((((((("env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREVIEW")) . "\"> ")) : (""));
// line 65
echo " ";
} else {
// line 66
echo " ";
$context["preview_html"] = (((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url"] ?? null), "/") . "/preview") . (($this->getAttribute($context["p"], "home", [])) ? ("") : ($this->getAttribute($context["p"], "route", []))))) ? ((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url"] ?? null), "/") . "/preview") . (($this->getAttribute($context["p"], "home", [])) ? ("") : ($this->getAttribute($context["p"], "route", []))))) : ("/"));
// line 67
echo " ";
$context["preview_link"] = (($this->getAttribute($context["p"], "routable", [])) ? ((((("env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREVIEW")) . "\"> ")) : (""));
// line 68
echo " ";
}
// line 69
echo " ";
echo ($context["preview_link"] ?? null);
echo "
";
// line 70
if (($context["warn"] ?? null)) {
// line 71
echo " env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => (((($context["page_url"] ?? null) . "/task") . ($context["separator"] ?? null)) . "delete"), 1 => "admin-form", 2 => "admin-nonce"], "method"), "html", null, true);
echo "\" class=\"page-delete\" >
";
} else {
// line 73
echo " env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => (((($context["page_url"] ?? null) . "/task") . ($context["separator"] ?? null)) . "delete"), 1 => "admin-form", 2 => "admin-nonce"], "method"), "html", null, true);
echo "\" class=\"page-delete\" >
";
}
// line 75
echo "
";
// line 77
if (($this->getAttribute($this->getAttribute($context["p"], "children", [], "method"), "count", []) > 0)) {
// line 78
echo " env, (($context["depth"] ?? null) + 1), "html", null, true);
echo "\" style=\"display:none;\">
";
// line 79
echo $context["self"]->getloop($context["p"], (($context["depth"] ?? null) + 1), ($context["twig_vars"] ?? null));
echo "
";
}
// line 82
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} 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 "pages.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1232 => 82, 1226 => 79, 1221 => 78, 1219 => 77, 1215 => 75, 1209 => 73, 1203 => 71, 1201 => 70, 1196 => 69, 1193 => 68, 1190 => 67, 1187 => 66, 1184 => 65, 1181 => 64, 1178 => 63, 1175 => 62, 1173 => 61, 1165 => 58, 1162 => 57, 1158 => 55, 1155 => 54, 1145 => 52, 1143 => 51, 1135 => 49, 1133 => 48, 1129 => 47, 1120 => 43, 1116 => 42, 1111 => 40, 1108 => 39, 1106 => 38, 1103 => 37, 1101 => 36, 1100 => 35, 1099 => 34, 1098 => 33, 1096 => 32, 1092 => 31, 1089 => 30, 1086 => 29, 1083 => 28, 1080 => 27, 1077 => 26, 1074 => 25, 1071 => 24, 1068 => 23, 1065 => 22, 1063 => 21, 1060 => 20, 1057 => 19, 1054 => 18, 1051 => 17, 1048 => 16, 1045 => 15, 1042 => 14, 1039 => 13, 1036 => 12, 1033 => 11, 1031 => 10, 1028 => 9, 1025 => 8, 1011 => 7, 993 => 4, 980 => 3, 975 => 447, 961 => 435, 959 => 434, 952 => 431, 949 => 430, 944 => 427, 934 => 426, 928 => 422, 922 => 420, 916 => 418, 914 => 417, 910 => 416, 906 => 414, 900 => 411, 897 => 410, 895 => 409, 890 => 407, 886 => 405, 878 => 403, 876 => 402, 871 => 400, 866 => 397, 864 => 396, 861 => 395, 857 => 393, 847 => 392, 843 => 390, 841 => 389, 837 => 387, 835 => 386, 831 => 384, 828 => 383, 813 => 381, 811 => 380, 804 => 379, 787 => 378, 783 => 376, 781 => 375, 776 => 372, 774 => 371, 769 => 368, 767 => 367, 764 => 366, 762 => 365, 759 => 364, 756 => 363, 753 => 362, 750 => 361, 748 => 360, 745 => 359, 742 => 358, 740 => 357, 736 => 355, 732 => 353, 730 => 352, 725 => 350, 717 => 345, 713 => 344, 707 => 341, 695 => 338, 691 => 336, 687 => 334, 684 => 333, 681 => 332, 678 => 331, 675 => 330, 672 => 329, 669 => 328, 666 => 327, 663 => 326, 660 => 325, 655 => 321, 647 => 316, 635 => 315, 631 => 314, 619 => 313, 615 => 311, 612 => 310, 609 => 309, 606 => 308, 603 => 307, 600 => 306, 598 => 305, 595 => 304, 591 => 302, 587 => 300, 581 => 299, 571 => 297, 568 => 296, 564 => 295, 558 => 291, 556 => 290, 553 => 289, 547 => 287, 541 => 285, 539 => 284, 535 => 282, 533 => 281, 528 => 278, 525 => 277, 522 => 276, 520 => 275, 517 => 274, 514 => 273, 506 => 269, 500 => 266, 497 => 265, 495 => 264, 490 => 263, 488 => 262, 485 => 261, 479 => 257, 476 => 256, 472 => 254, 466 => 253, 456 => 251, 453 => 250, 450 => 249, 446 => 248, 440 => 244, 437 => 243, 435 => 242, 431 => 241, 427 => 239, 424 => 238, 418 => 236, 410 => 234, 407 => 233, 401 => 231, 399 => 230, 395 => 229, 389 => 228, 384 => 225, 378 => 223, 376 => 222, 372 => 221, 368 => 220, 359 => 214, 355 => 212, 353 => 211, 350 => 210, 342 => 208, 339 => 207, 336 => 206, 334 => 205, 331 => 204, 323 => 202, 320 => 201, 317 => 200, 315 => 199, 312 => 198, 310 => 197, 303 => 195, 298 => 193, 295 => 192, 293 => 191, 290 => 190, 286 => 188, 282 => 186, 276 => 185, 268 => 183, 265 => 182, 262 => 181, 258 => 180, 252 => 176, 250 => 175, 244 => 173, 242 => 172, 237 => 169, 235 => 168, 230 => 165, 224 => 164, 212 => 162, 209 => 161, 204 => 160, 198 => 158, 196 => 157, 192 => 156, 188 => 155, 179 => 149, 174 => 146, 168 => 145, 156 => 143, 153 => 142, 149 => 141, 141 => 139, 139 => 138, 135 => 136, 132 => 135, 125 => 123, 122 => 122, 115 => 119, 112 => 118, 109 => 117, 106 => 116, 103 => 115, 98 => 1, 95 => 132, 93 => 131, 90 => 129, 88 => 128, 86 => 127, 84 => 126, 82 => 113, 80 => 112, 78 => 111, 76 => 110, 74 => 109, 72 => 108, 69 => 105, 67 => 104, 63 => 101, 60 => 99, 58 => 98, 56 => 97, 54 => 96, 52 => 95, 50 => 94, 48 => 93, 46 => 92, 43 => 89, 41 => 88, 39 => 86, 33 => 1,);
}
/** @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("{% extends 'partials/base.html.twig' %}
{% macro spanToggle(input, length) %}
{{ (repeat(' ', (length - input|length) / 2) ~ input ~ repeat(' ', (length - input|length) / 2))|raw }}
{% endmacro %}
{% macro loop(page, depth, twig_vars) %}
{% import _self as self %}
{% set config = twig_vars['config'] %}
{% set separator = config.system.param_sep %}
{% set display_field = config.plugins.admin.pages_list_display_field %}
{% set base_url = twig_vars['base_url_relative'] %}
{% set base_url_relative_frontend = twig_vars['base_url_relative_frontend'] %}
{% set base_url_simple = twig_vars['base_url_simple'] %}
{% set admin_route = twig_vars['admin_route'] %}
{% set admin_lang = twig_vars['admin_lang'] %}
{% set warn = twig_vars['warn'] %}
{% set uri = twig_vars['uri'] %}
{% if page.header.admin.children_display_order == 'collection' and page.header.content.order.by %}
{% if page.header.content.order.custom %}
{% set pcol = page.children().order(page.header.content.order.by, page.header.content.order.dir|default('asc'), page.header.content.order.custom) %}
{% else %}
{% set pcol = page.children().order(page.header.content.order.by, page.header.content.order.dir|default('asc')) %}
{% endif %}
{% else %}
{% set pcol = page.children() %}
{% endif %}
{% for p in pcol %}
{% set description = (not p.page ? \"PLUGIN_ADMIN.FOLDER\"|tu ~ ' • ' : \"PLUGIN_ADMIN.PAGE\"|tu ~ ' • ') ~
(p.modular ? \"PLUGIN_ADMIN.MODULAR\"|tu ~ ' • ' : '') ~
(p.routable ? \"PLUGIN_ADMIN.ROUTABLE\"|tu ~ ' • ' : \"PLUGIN_ADMIN.NON_ROUTABLE\"|tu ~ ' • ') ~
(p.visible ? \"PLUGIN_ADMIN.VISIBLE\"|tu ~ ' • ' : \"PLUGIN_ADMIN.NON_VISIBLE\"|tu ~ ' • ') ~
(p.published ? \"PLUGIN_ADMIN.PUBLISHED\"|tu ~ ' • ' : \"PLUGIN_ADMIN.NON_PUBLISHED\"|tu ~ ' • ') %}
{% set page_url = getPageUrl(p) %}
0 ? 'data-toggle=\"children\"' : ''}}>
0 ? 'children-closed' : ''}} {{ p.modular ? 'modular' : (not p.routable ? 'not-routable' : (not p.visible ? 'not-visible' : (not p.page ? 'folder' : ''))) }}\">
{% set page_label = attribute(p.header, display_field)|defined(attribute(p, display_field))|defined(p.title)|default(p.slug|titleize) %}
{{ page_label|e }}
{% if p.language %}
{{p.language}}
{% endif %}
{% if p.home %}
{% endif %}
{{ p.header.routes.default ?: p.route }} {{ p.template() }}
{% if config.plugins.admin.frontend_preview_target != 'inline' %}
{% set preview_target = config.plugins.admin.frontend_preview_target %}
{% set preview_html = (base_url_relative_frontend|rtrim('/') ~ (p.home ? '' : p.route)) ?: '/' %}
{% set preview_link = p.routable ? ' ' : '' %}
{% else %}
{% set preview_html = (base_url|rtrim('/') ~ '/preview' ~ (p.home ? '' : p.route)) ?: '/' %}
{% set preview_link = p.routable ? ' ' : '' %}
{% endif %}
{{ preview_link|raw }}
{% if warn %}
{% else %}
{% endif %}
{% if p.children().count > 0 %}
{{ self.loop(p, depth + 1, twig_vars) }}
{% endif %}
{% endfor %}
{% endmacro %}
{% import _self as macro %}
{% if admin.route %}
{% set context = admin.page(true) %}
{% endif %}
{% if uri.param('new') %}
{% set mode = 'new' %}
{% elseif context %}
{% set mode = 'edit' %}
{% if context.exists %}
{% set page_url = base_url ~ '/pages' ~ (context.header.routes.default ?: context.rawRoute) %}
{% set exists = true %}
{% set title = (context.exists ? \"PLUGIN_ADMIN.EDIT\"|tu : \"PLUGIN_ADMIN.CREATE\"|tu ) ~ \" \" ~ (context.header.title ?: context.title) %}
{% else %}
{% set title = \"PLUGIN_ADMIN.ADD_PAGE\"|tu %}
{% endif %}
{% else %}
{% set mode = 'list' %}
{% set title = \"PLUGIN_ADMIN.PAGES\"|tu %}
{% endif %}
{% set modular = context.modular ? 'modular_' : '' %}
{% set warn = config.plugins.admin.warnings.delete_page %}
{% set secure_delete = config.plugins.admin.warnings.secure_delete %}
{% set admin_lang = admin.session.admin_lang ?: 'en' %}
{% set page_lang = context.language %}
{% set type = 'page' %}
{% block stylesheets %}
{% if mode == 'edit' %}
{% do assets.addCss(theme_url~'/css/codemirror/codemirror.css') %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% if config.plugins.admin.frontend_preview_target != 'inline' %}
{% set preview_html = (base_url_relative_frontend|rtrim('/') ~ (context.home ? '' : context.route)) ?: '/' %}
{% set preview_target = config.plugins.admin.frontend_preview_target %}
{% set preview_link = context.routable ? ' ' : '' %}
{% else %}
{% set preview_html = (base_url|rtrim('/') ~ '/preview' ~ (context.home ? '' : context.route)) ?: '/' %}
{% set preview_link = context.routable ? ' ' : '' %}
{% endif %}
{% block titlebar %}
{% if mode == 'new' %}
{{ \"PLUGIN_ADMIN.ADD_PAGE\"|tu }}
{% elseif mode == 'edit' %}
{{ context.title }}
{% else %}
{{ \"PLUGIN_ADMIN.MANAGE_PAGES\"|tu }}
{% endif %}
{% endblock %}
{% block content %}
{% if mode == 'new' %}
{% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('pages/page'), data: context } %}
{% elseif mode == 'edit' %}
{% else %}
{{ macro.loop(pages, 0, _context) }}
{% include 'partials/page-legend.html.twig' %}
{% endif %}
{% if context %}
{% set obj_data = clone(context) %}
{% if mode == 'edit' %}
{% do obj_data.folder('') %}
{% endif %}
{% endif %}
{% if mode == 'list' or mode == 'edit' %}
{% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('admin/pages/new'), data: obj_data, form_id:'new-page' } %}
{% include 'partials/blueprints-new-folder.html.twig' with { blueprints: admin.blueprints('admin/pages/new_folder'), data: obj_data, form_id:'new-folder' } %}
{% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('admin/pages/modular_new'), data: obj_data, form_id:'new-modular' } %}
{% for key, add_modal in config.plugins.admin.add_modals %}
{% include add_modal.template|defined('partials/blueprints-new.html.twig') with { blueprints: admin.blueprints(add_modal.blueprint), data: context, form_id:'add-modal' }|merge(add_modal.with|defined({})) %}
{% endfor %}
{% endif %}
{% if mode == 'edit' %}
{% include 'partials/page-move.html.twig' with { blueprints: admin.blueprints('admin/pages/move'), data: context } %}
{% include ['partials/page-revisions.html.twig', 'empty.html.twig'] ignore missing with { data: context } %}
{% endif %}
{% include 'partials/modal-changes-detected.html.twig' %}
{% include 'partials/admin-pro-pages-addons.html.twig' ignore missing %}
{% endblock %}
{% block bottom %}
{{ parent() }}
{% endblock %}
", "pages.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/admin/themes/grav/templates/pages.html.twig");
}
}