install gulp + reset
This commit is contained in:
+150
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/datetime/datetime.html.twig */
|
||||
class __TwigTemplate_291f3272dbf79a80c34f89c78f19d855cb8c87d720ca866bd4ef52cc7983cd1b extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/datetime/datetime.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input' => array($this, 'block_input'),
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 4
|
||||
$context["default_php_dateformat"] = $this->getAttribute(($context["admin"] ?? null), "guessDateFormat", array(0 => ($context["value"] ?? null)), "method");
|
||||
// line 5
|
||||
$context["php_dateformat"] = (($this->getAttribute(($context["field"] ?? null), "format", array())) ? ($this->getAttribute(($context["field"] ?? null), "format", array())) : ((($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "dateformat", array())) ? ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "dateformat", array())) : ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "dateformat", array()), "default", array())) ? ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "dateformat", array()), "default", array())) : (($context["default_php_dateformat"] ?? null)))))));
|
||||
// line 6
|
||||
$context["js_dateformat"] = $this->getAttribute(($context["admin"] ?? null), "dateformatToMomentJS", array(0 => ($context["php_dateformat"] ?? null)), "method");
|
||||
// line 7
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? (($context["value"] ?? null)) : (twig_date_format_filter($this->env, ($context["value"] ?? null), ($context["php_dateformat"] ?? null))));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo "<div class=\"form-input-wrapper datetime-picker-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
<input
|
||||
name=\"";
|
||||
// line 12
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 13
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 14
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 21
|
||||
echo " />
|
||||
<span class=\"field-icons\">
|
||||
<i class=\"fa fa-fw fa-calendar\"></i>
|
||||
</span>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 14
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 15
|
||||
echo " type=\"text\"
|
||||
data-grav-datetime=\"";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("format" => ($context["js_dateformat"] ?? null))), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
// line 17
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) {
|
||||
echo "min=\"";
|
||||
echo twig_escape_filter($this->env, (((null === $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) : (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()), ($context["php_dateformat"] ?? null)))), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 18
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) {
|
||||
echo "max=\"";
|
||||
echo twig_escape_filter($this->env, (((null === $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) : (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()), ($context["php_dateformat"] ?? null)))), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/datetime/datetime.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 91 => 19, 84 => 18, 78 => 17, 74 => 16, 71 => 15, 68 => 14, 59 => 21, 57 => 14, 53 => 13, 49 => 12, 43 => 10, 40 => 9, 36 => 1, 34 => 7, 32 => 6, 30 => 5, 28 => 4, 26 => 3, 11 => 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 Twig_Source("{% extends \"forms/field.html.twig\" %}
|
||||
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
{% set default_php_dateformat = admin.guessDateFormat(value) %}
|
||||
{% set php_dateformat = field.format ?: admin.page.dateformat ?: config.system.pages.dateformat.default ?: default_php_dateformat %}
|
||||
{% set js_dateformat = admin.dateformatToMomentJS(php_dateformat) %}
|
||||
{% set value = (value is null ? value : value|date(php_dateformat)) %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-input-wrapper datetime-picker-wrapper {{ field.size }}\">
|
||||
<input
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
value=\"{{ value|raw|join(', ') }}\"
|
||||
{% block input_attributes %}
|
||||
type=\"text\"
|
||||
data-grav-datetime=\"{{ {'format': js_dateformat} | json_encode | e('html_attr') }}\"
|
||||
{% if field.validate.min %}min=\"{{ (field.validate.min is null ? field.validate.min : field.validate.min|date(php_dateformat)) }}\"{% endif %}
|
||||
{% if field.validate.max %}max=\"{{ (field.validate.max is null ? field.validate.max : field.validate.max|date(php_dateformat)) }}\"{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
/>
|
||||
<span class=\"field-icons\">
|
||||
<i class=\"fa fa-fw fa-calendar\"></i>
|
||||
</span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/datetime/datetime.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/datetime/datetime.html.twig");
|
||||
}
|
||||
}
|
||||
+557
@@ -0,0 +1,557 @@
|
||||
<?php
|
||||
|
||||
/* partials/base-root.html.twig */
|
||||
class __TwigTemplate_907091a5cedc39f0ac2cd7a8170cfa7e99126a96260dde8037535b52841fb3c8 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'head' => array($this, 'block_head'),
|
||||
'stylesheets' => array($this, 'block_stylesheets'),
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'body' => array($this, 'block_body'),
|
||||
'page' => array($this, 'block_page'),
|
||||
'navigation' => array($this, 'block_navigation'),
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'content_wrapper' => array($this, 'block_content_wrapper'),
|
||||
'messages' => array($this, 'block_messages'),
|
||||
'widgets' => array($this, 'block_widgets'),
|
||||
'content_top' => array($this, 'block_content_top'),
|
||||
'content' => array($this, 'block_content'),
|
||||
'content_bottom' => array($this, 'block_content_bottom'),
|
||||
'footer' => array($this, 'block_footer'),
|
||||
'modals' => array($this, 'block_modals'),
|
||||
'bottom' => array($this, 'block_bottom'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if (($this->getAttribute(($context["uri"] ?? null), "extension", array(), "method") == "json")) {
|
||||
$this->loadTemplate("default.json.twig", "partials/base-root.html.twig", 1)->display($context);
|
||||
} else {
|
||||
// line 2
|
||||
echo " ";
|
||||
$context["icon_style"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "admin_icons", array());
|
||||
// line 3
|
||||
echo " <!DOCTYPE html>
|
||||
<html lang=\"en\">
|
||||
<head>
|
||||
";
|
||||
// line 6
|
||||
$this->displayBlock('head', $context, $blocks);
|
||||
// line 33
|
||||
echo " </head>
|
||||
";
|
||||
// line 34
|
||||
$this->displayBlock('body', $context, $blocks);
|
||||
// line 122
|
||||
echo " </html>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function block_head($context, array $blocks = array())
|
||||
{
|
||||
// line 7
|
||||
echo " <meta charset=\"utf-8\" />
|
||||
<title>";
|
||||
// line 8
|
||||
if (($context["title"] ?? null)) {
|
||||
echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
|
||||
echo " | ";
|
||||
} else {
|
||||
if ($this->getAttribute(($context["header"] ?? null), "title", array())) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "title", array()), "html", null, true);
|
||||
echo " | ";
|
||||
}
|
||||
}
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "title", array()), "html", null, true);
|
||||
echo "</title>
|
||||
";
|
||||
// line 9
|
||||
if ($this->getAttribute(($context["header"] ?? null), "description", array())) {
|
||||
// line 10
|
||||
echo " <meta name=\"description\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "description", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
} else {
|
||||
// line 12
|
||||
echo " <meta name=\"description\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "description", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["header"] ?? null), "robots", array())) {
|
||||
// line 15
|
||||
echo " <meta name=\"robots\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "robots", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
} else {
|
||||
// line 17
|
||||
echo " <meta name=\"robots\" content=\"noindex, nofollow\">
|
||||
";
|
||||
}
|
||||
// line 19
|
||||
echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, ($context["base_url_simple"] ?? null), "html", null, true);
|
||||
echo twig_escape_filter($this->env, ($context["theme_url"] ?? null), "html", null, true);
|
||||
echo "/images/favicon.png\">
|
||||
|
||||
";
|
||||
// line 22
|
||||
$this->displayBlock('stylesheets', $context, $blocks);
|
||||
// line 26
|
||||
echo "
|
||||
";
|
||||
// line 27
|
||||
$this->loadTemplate("partials/javascript-config.html.twig", "partials/base-root.html.twig", 27)->display($context);
|
||||
// line 28
|
||||
echo " ";
|
||||
$this->displayBlock('javascripts', $context, $blocks);
|
||||
// line 32
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 22
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 23
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/stylesheets.html.twig", "partials/base-root.html.twig", 23)->display($context);
|
||||
// line 24
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/javascripts.html.twig", "partials/base-root.html.twig", 29)->display($context);
|
||||
// line 30
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 34
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 35
|
||||
echo " <body class=\"ga-theme-17x ";
|
||||
echo ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "sidebar", array()), "size", array()) == "small")) ? ("sidebar-closed") : (""));
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "body_classes", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, ($context["body_classes"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 36
|
||||
$this->displayBlock('page', $context, $blocks);
|
||||
// line 117
|
||||
echo " ";
|
||||
$this->displayBlock('bottom', $context, $blocks);
|
||||
// line 120
|
||||
echo " </body>
|
||||
";
|
||||
}
|
||||
|
||||
// line 36
|
||||
public function block_page($context, array $blocks = array())
|
||||
{
|
||||
// line 37
|
||||
echo " <div class=\"remodal-bg\">
|
||||
|
||||
";
|
||||
// line 39
|
||||
$this->displayBlock('navigation', $context, $blocks);
|
||||
// line 42
|
||||
echo "
|
||||
<main id=\"admin-main\" >
|
||||
";
|
||||
// line 44
|
||||
$this->loadTemplate("partials/nav-toggle.html.twig", "partials/base-root.html.twig", 44)->display($context);
|
||||
// line 45
|
||||
echo " <div id=\"titlebar\" class=\"titlebar\">
|
||||
";
|
||||
// line 46
|
||||
$this->displayBlock('titlebar', $context, $blocks);
|
||||
// line 47
|
||||
echo " </div>
|
||||
|
||||
";
|
||||
// line 49
|
||||
$this->displayBlock('content_wrapper', $context, $blocks);
|
||||
// line 75
|
||||
echo "
|
||||
";
|
||||
// line 76
|
||||
$this->displayBlock('modals', $context, $blocks);
|
||||
// line 112
|
||||
echo "
|
||||
</main>
|
||||
<div id='overlay'></div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 39
|
||||
public function block_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 40
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/nav.html.twig", "partials/base-root.html.twig", 40)->display($context);
|
||||
// line 41
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 46
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 49
|
||||
public function block_content_wrapper($context, array $blocks = array())
|
||||
{
|
||||
// line 50
|
||||
echo " <div class=\"content-wrapper\">
|
||||
<div class=\"";
|
||||
// line 51
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "content_padding", array())) {
|
||||
echo "content-padding";
|
||||
}
|
||||
echo "\">
|
||||
";
|
||||
// line 52
|
||||
$this->displayBlock('messages', $context, $blocks);
|
||||
// line 55
|
||||
echo "
|
||||
";
|
||||
// line 56
|
||||
$this->displayBlock('widgets', $context, $blocks);
|
||||
// line 57
|
||||
echo " <div class=\"default-box-shadow\">
|
||||
";
|
||||
// line 58
|
||||
$this->displayBlock('content_top', $context, $blocks);
|
||||
// line 59
|
||||
echo " <div class=\"admin-block\">";
|
||||
// line 60
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
// line 61
|
||||
echo "</div>
|
||||
";
|
||||
// line 62
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "show_github_msg", array())) {
|
||||
// line 63
|
||||
echo " <div class=\"notice alert\"><i class=\"fa fa-github\"></i> <a href=\"https://github.com/getgrav/grav-plugin-admin/issues\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADMIN_REPORT_ISSUE"), "html", null, true);
|
||||
echo "</a></div>
|
||||
";
|
||||
}
|
||||
// line 65
|
||||
echo " ";
|
||||
$this->displayBlock('content_bottom', $context, $blocks);
|
||||
// line 66
|
||||
echo " </div>
|
||||
";
|
||||
// line 67
|
||||
$this->displayBlock('footer', $context, $blocks);
|
||||
// line 72
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 52
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
// line 53
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/messages.html.twig", "partials/base-root.html.twig", 53)->display($context);
|
||||
// line 54
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 56
|
||||
public function block_widgets($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 58
|
||||
public function block_content_top($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 60
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 65
|
||||
public function block_content_bottom($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 67
|
||||
public function block_footer($context, array $blocks = array())
|
||||
{
|
||||
// line 68
|
||||
echo " <footer id=\"footer\">
|
||||
<a href=\"http://getgrav.org\">Grav</a> v<span class=\"grav-version\">";
|
||||
// line 69
|
||||
echo twig_escape_filter($this->env, twig_constant("GRAV_VERSION"), "html", null, true);
|
||||
echo "</span> - Admin v";
|
||||
echo twig_escape_filter($this->env, ($context["admin_version"] ?? null), "html", null, true);
|
||||
echo " - ";
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WAS_MADE_WITH")), "html", null, true);
|
||||
echo " <i class=\"fa fa-heart-o pulse\"></i> ";
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BY")), "html", null, true);
|
||||
echo " <a href=\"https://trilby.media\">Trilby Media</a>.
|
||||
</footer>
|
||||
";
|
||||
}
|
||||
|
||||
// line 76
|
||||
public function block_modals($context, array $blocks = array())
|
||||
{
|
||||
// line 77
|
||||
echo " <div class=\"remodal\" data-remodal-id=\"generic\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 79
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ERROR"), "html", null, true);
|
||||
echo "</h1>
|
||||
<div class=\"error-content\"></div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">";
|
||||
// line 82
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"metadata\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1><span>";
|
||||
// line 88
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.METADATA"), "html", null, true);
|
||||
echo " for</span> <strong></strong></h1>
|
||||
<div class=\"metadata-preview\">
|
||||
<div class=\"meta-preview\"></div>
|
||||
<div class=\"meta-content\"></div>
|
||||
</div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">";
|
||||
// line 94
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"delete-media\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 100
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_TITLE"), "html", null, true);
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 102
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_DESC"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 106
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<button data-remodal-action=\"confirm\" class=\"button remodal-confirm disable-after-click\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
// line 107
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 117
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 118
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(0 => "bottom"), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/base-root.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 401 => 118, 398 => 117, 389 => 107, 385 => 106, 378 => 102, 373 => 100, 364 => 94, 355 => 88, 346 => 82, 340 => 79, 336 => 77, 333 => 76, 320 => 69, 317 => 68, 314 => 67, 309 => 65, 304 => 60, 299 => 58, 294 => 56, 290 => 54, 287 => 53, 284 => 52, 278 => 72, 276 => 67, 273 => 66, 270 => 65, 264 => 63, 262 => 62, 259 => 61, 257 => 60, 255 => 59, 253 => 58, 250 => 57, 248 => 56, 245 => 55, 243 => 52, 237 => 51, 234 => 50, 231 => 49, 226 => 46, 222 => 41, 219 => 40, 216 => 39, 208 => 112, 206 => 76, 203 => 75, 201 => 49, 197 => 47, 195 => 46, 192 => 45, 190 => 44, 186 => 42, 184 => 39, 180 => 37, 177 => 36, 172 => 120, 169 => 117, 167 => 36, 158 => 35, 155 => 34, 148 => 30, 145 => 29, 142 => 28, 135 => 24, 132 => 23, 129 => 22, 125 => 32, 122 => 28, 120 => 27, 117 => 26, 115 => 22, 109 => 20, 106 => 19, 102 => 17, 96 => 15, 93 => 14, 87 => 12, 81 => 10, 79 => 9, 66 => 8, 63 => 7, 60 => 6, 54 => 122, 52 => 34, 49 => 33, 47 => 6, 42 => 3, 39 => 2, 35 => 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 Twig_Source("{% if uri.extension() == 'json' %}{% include 'default.json.twig' %}{% else %}
|
||||
{% set icon_style = config.plugins.admin.admin_icons %}
|
||||
<!DOCTYPE html>
|
||||
<html lang=\"en\">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset=\"utf-8\" />
|
||||
<title>{% if title %}{{ title }} | {% else %}{% if header.title %}{{ header.title }} | {% endif %}{% endif %}{{ site.title }}</title>
|
||||
{% if header.description %}
|
||||
<meta name=\"description\" content=\"{{ header.description }}\">
|
||||
{% else %}
|
||||
<meta name=\"description\" content=\"{{ site.description }}\">
|
||||
{% endif %}
|
||||
{% if header.robots %}
|
||||
<meta name=\"robots\" content=\"{{ header.robots }}\">
|
||||
{% else %}
|
||||
<meta name=\"robots\" content=\"noindex, nofollow\">
|
||||
{% endif %}
|
||||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"{{ base_url_simple }}{{ theme_url }}/images/favicon.png\">
|
||||
|
||||
{% block stylesheets %}
|
||||
{% include 'partials/stylesheets.html.twig' %}
|
||||
{{ assets.css()|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% include 'partials/javascript-config.html.twig' %}
|
||||
{% block javascripts %}
|
||||
{% include 'partials/javascripts.html.twig' %}
|
||||
{{ assets.js()|raw }}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
{% block body %}
|
||||
<body class=\"ga-theme-17x {{ config.plugins.admin.sidebar.size == 'small' ? 'sidebar-closed' : '' }} {{ config.plugins.admin.body_classes }} {{ body_classes }}\">
|
||||
{% block page %}
|
||||
<div class=\"remodal-bg\">
|
||||
|
||||
{% block navigation %}
|
||||
{% include 'partials/nav.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
<main id=\"admin-main\" >
|
||||
{% include 'partials/nav-toggle.html.twig' %}
|
||||
<div id=\"titlebar\" class=\"titlebar\">
|
||||
{% block titlebar %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block content_wrapper %}
|
||||
<div class=\"content-wrapper\">
|
||||
<div class=\"{% if config.plugins.admin.content_padding %}content-padding{% endif %}\">
|
||||
{% block messages %}
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block widgets %}{% endblock %}
|
||||
<div class=\"default-box-shadow\">
|
||||
{% block content_top %}{% endblock %}
|
||||
<div class=\"admin-block\">
|
||||
{%- block content %}{% endblock -%}
|
||||
</div>
|
||||
{% if config.plugins.admin.show_github_msg %}
|
||||
<div class=\"notice alert\"><i class=\"fa fa-github\"></i> <a href=\"https://github.com/getgrav/grav-plugin-admin/issues\" target=\"_blank\">{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}</a></div>
|
||||
{% endif %}
|
||||
{% block content_bottom %}{% endblock %}
|
||||
</div>
|
||||
{% block footer %}
|
||||
<footer id=\"footer\">
|
||||
<a href=\"http://getgrav.org\">Grav</a> v<span class=\"grav-version\">{{ constant('GRAV_VERSION') }}</span> - Admin v{{ admin_version }} - {{ \"PLUGIN_ADMIN.WAS_MADE_WITH\"|tu|lower }} <i class=\"fa fa-heart-o pulse\"></i> {{ \"PLUGIN_ADMIN.BY\"|tu|lower }} <a href=\"https://trilby.media\">Trilby Media</a>.
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block modals %}
|
||||
<div class=\"remodal\" data-remodal-id=\"generic\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.ERROR\"|tu }}</h1>
|
||||
<div class=\"error-content\"></div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">{{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"metadata\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1><span>{{ \"PLUGIN_ADMIN.METADATA\"|tu }} for</span> <strong></strong></h1>
|
||||
<div class=\"metadata-preview\">
|
||||
<div class=\"meta-preview\"></div>
|
||||
<div class=\"meta-content\"></div>
|
||||
</div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">{{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"delete-media\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_TITLE\"|tu }}</h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_DESC\"|tu }}
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CANCEL\"|tu }}</button>
|
||||
<button data-remodal-action=\"confirm\" class=\"button remodal-confirm disable-after-click\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
</main>
|
||||
<div id='overlay'></div>
|
||||
</div>
|
||||
{% endblock page %}
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom')|raw }}
|
||||
{% endblock %}
|
||||
</body>
|
||||
{% endblock body %}
|
||||
</html>
|
||||
{% endif %}
|
||||
", "partials/base-root.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/partials/base-root.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user