first commit
This commit is contained in:
+71
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/markdown/markdown.html.twig */
|
||||
class __TwigTemplate_4f2d6d573231e9abef1757c8e4961615b10361f4236f2f3ba63503b993a287bf extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 3
|
||||
$this->parent = $this->loadTemplate("forms/fields/editor/editor.html.twig", "forms/fields/markdown/markdown.html.twig", 3);
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/fields/editor/editor.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
$context["codemirrorOptions"] = twig_array_merge(array("mode" => "gfm", "ignore" => array()), (($this->getAttribute(($context["field"] ?? null), "codemirror", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "codemirror", array()), array())) : (array())));
|
||||
// line 7
|
||||
if ($this->getAttribute(($context["field"] ?? null), "showPreview", array())) {
|
||||
// line 8
|
||||
$context["codemirrorOptions"] = twig_array_merge(($context["codemirrorOptions"] ?? null), array("ignore" => array()));
|
||||
}
|
||||
// line 3
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/markdown/markdown.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 31 => 3, 28 => 8, 26 => 7, 24 => 4, 11 => 3,);
|
||||
}
|
||||
|
||||
/** @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("{# Deprecated field. Alias to editor/editor.html.twig #}
|
||||
|
||||
{% extends \"forms/fields/editor/editor.html.twig\" %}
|
||||
{% set codemirrorOptions = {'mode': 'gfm', 'ignore': []}|merge(field.codemirror|default({})) %}
|
||||
|
||||
{# backward compatibility #}
|
||||
{% if field.showPreview %}
|
||||
{% set codemirrorOptions = codemirrorOptions|merge({'ignore': []}) %}
|
||||
{% endif %}
|
||||
{# end backward compatibility #}
|
||||
", "forms/fields/markdown/markdown.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/markdown/markdown.html.twig");
|
||||
}
|
||||
}
|
||||
+266
@@ -0,0 +1,266 @@
|
||||
<?php
|
||||
|
||||
/* partials/plugins-details.html.twig */
|
||||
class __TwigTemplate_deae902ef331c4406ec4e0eda68d175a875660c651c3f3ba158ec6f3c1de42bc extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["gpm"] = $this->getAttribute(($context["admin"] ?? null), "gpm", array(), "method");
|
||||
// line 2
|
||||
$context["installed"] = $this->getAttribute(($context["gpm"] ?? null), "isPluginInstalled", array(0 => $this->getAttribute(($context["admin"] ?? null), "route", array())), "method");
|
||||
// line 3
|
||||
$context["isTestingRelease"] = $this->getAttribute(($context["gpm"] ?? null), "isTestingRelease", array(0 => $this->getAttribute(($context["plugin"] ?? null), "slug", array())), "method");
|
||||
// line 4
|
||||
$context["gumroad_loaded"] = false;
|
||||
// line 5
|
||||
echo "
|
||||
<div class=\"grav-update plugin\" data-gpm-plugin=\"";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "route", array()), "html", null, true);
|
||||
echo "\">
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array()));
|
||||
echo "
|
||||
";
|
||||
// line 11
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => ($context["plugin"] ?? null)), "method")) {
|
||||
// line 12
|
||||
echo " <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN"), "html", null, true);
|
||||
echo "\"></i></span></small>
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => ($context["plugin"] ?? null)), "method")) {
|
||||
// line 15
|
||||
echo " <small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true);
|
||||
echo "</span></small>
|
||||
";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "symlink", array())) {
|
||||
// line 18
|
||||
echo " <small class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED"), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</small>
|
||||
";
|
||||
}
|
||||
// line 22
|
||||
echo " <small>";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["plugin"] ?? null), "version", array())) ? (("v" . twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "version", array())))) : ("")), "html", null, true);
|
||||
echo "</small>
|
||||
";
|
||||
// line 23
|
||||
if (($context["isTestingRelease"] ?? null)) {
|
||||
echo "<span class=\"gpm-testing\">test release</span>";
|
||||
}
|
||||
// line 24
|
||||
echo "</h1>
|
||||
<div class=\"gpm-item-info\">
|
||||
<i class=\"gpm-item-icon fa fa-fw fa-";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
";
|
||||
// line 27
|
||||
$this->loadTemplate("partials/plugin-data.html.twig", "partials/plugins-details.html.twig", 27)->display(array_merge($context, array("plugin" => ($context["plugin"] ?? null))));
|
||||
// line 28
|
||||
echo "</div>
|
||||
|
||||
";
|
||||
// line 30
|
||||
if (($context["installed"] ?? null)) {
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("plugins/" . $this->getAttribute(($context["admin"] ?? null), "route", array()))), "method");
|
||||
// line 32
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/blueprints.html.twig", "partials/plugins-details.html.twig", 32)->display(array_merge($context, array("data" => ($context["data"] ?? null), "blueprints" => $this->getAttribute(($context["data"] ?? null), "blueprints", array()))));
|
||||
// line 33
|
||||
echo "
|
||||
";
|
||||
// line 34
|
||||
if ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "form", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden") && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "form", array()), "fields", array()), "tabs", array()), "fields", array()), "login", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden"))) {
|
||||
// line 35
|
||||
echo " <div class=\"button-bar danger\">
|
||||
<span class=\"danger-zone\"></span>
|
||||
";
|
||||
// line 37
|
||||
if ( !$this->getAttribute(($context["plugin"] ?? null), "symlink", array())) {
|
||||
// line 38
|
||||
echo " <a class=\"button button-reinstall-package hidden\" href=\"#\" data-remodal-target=\"reinstall-package\"><i class=\"fa fa-fw fa-repeat\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REINSTALL_PLUGIN"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 40
|
||||
echo " <a class=\"button\" href=\"#\" data-remodal-target=\"remove-package\"><i class=\"fa fa-fw fa-warning\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REMOVE_PLUGIN"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 43
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 45
|
||||
echo " <div class=\"button-bar success\">
|
||||
";
|
||||
// line 46
|
||||
if (($this->getAttribute(($context["plugin"] ?? null), "premium", array()) && !$this->getAttribute(($context["admin"] ?? null), "license", array(0 => $this->getAttribute(($context["plugin"] ?? null), "slug", array())), "method"))) {
|
||||
// line 47
|
||||
echo " ";
|
||||
if ( !($context["gumroad_loaded"] ?? null)) {
|
||||
// line 48
|
||||
echo " ";
|
||||
$context["gumroad_loaded"] = true;
|
||||
// line 49
|
||||
echo " <script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
";
|
||||
}
|
||||
// line 51
|
||||
echo " <a class=\"gumroad-button button\" href=\"https://gum.co/";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "premium", array()), "product_permalink", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("Buy Now"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
} else {
|
||||
// line 53
|
||||
echo " <a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "slug", array()), "html", null, true);
|
||||
echo "\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL_PLUGIN"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 55
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 57
|
||||
echo "
|
||||
";
|
||||
// line 58
|
||||
$this->loadTemplate("partials/modal-changes-detected.html.twig", "partials/plugins-details.html.twig", 58)->display($context);
|
||||
// line 59
|
||||
$this->loadTemplate("partials/modal-add-package.html.twig", "partials/plugins-details.html.twig", 59)->display(array_merge($context, array("type" => "plugin")));
|
||||
// line 60
|
||||
$this->loadTemplate("partials/modal-update-packages.html.twig", "partials/plugins-details.html.twig", 60)->display(array_merge($context, array("type" => "plugin")));
|
||||
// line 61
|
||||
$this->loadTemplate("partials/modal-remove-package.html.twig", "partials/plugins-details.html.twig", 61)->display(array_merge($context, array("type" => "plugin", "package" => ($context["plugin"] ?? null))));
|
||||
// line 62
|
||||
$this->loadTemplate("partials/modal-reinstall-package.html.twig", "partials/plugins-details.html.twig", 62)->display(array_merge($context, array("type" => "plugin", "package" => ($context["plugin"] ?? null))));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/plugins-details.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 174 => 62, 172 => 61, 170 => 60, 168 => 59, 166 => 58, 163 => 57, 159 => 55, 151 => 53, 143 => 51, 139 => 49, 136 => 48, 133 => 47, 131 => 46, 128 => 45, 124 => 43, 117 => 40, 111 => 38, 109 => 37, 105 => 35, 103 => 34, 100 => 33, 97 => 32, 94 => 31, 92 => 30, 88 => 28, 86 => 27, 82 => 26, 78 => 24, 74 => 23, 69 => 22, 61 => 18, 58 => 17, 52 => 15, 49 => 14, 43 => 12, 41 => 11, 37 => 10, 30 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 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("{% set gpm = admin.gpm() %}
|
||||
{% set installed = gpm.isPluginInstalled(admin.route) %}
|
||||
{% set isTestingRelease = gpm.isTestingRelease(plugin.slug) %}
|
||||
{% set gumroad_loaded = false %}
|
||||
|
||||
<div class=\"grav-update plugin\" data-gpm-plugin=\"{{ admin.route }}\">
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
{{ plugin.name|e }}
|
||||
{% if admin.isTeamGrav(plugin) %}
|
||||
<small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"{{ \"PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN\"|tu }}\"></i></span></small>
|
||||
{% endif %}
|
||||
{% if admin.isPremiumProduct(plugin) %}
|
||||
<small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> {{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }}</span></small>
|
||||
{% endif %}
|
||||
{% if plugin.symlink %}
|
||||
<small class=\"hint--bottom\" data-hint=\"{{ \"PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED\"|tu }}\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</small>
|
||||
{% endif %}
|
||||
<small>{{ plugin.version ? 'v' ~ plugin.version|e }}</small>
|
||||
{% if isTestingRelease %}<span class=\"gpm-testing\">test release</span>{% endif %}
|
||||
</h1>
|
||||
<div class=\"gpm-item-info\">
|
||||
<i class=\"gpm-item-icon fa fa-fw fa-{{ plugin.icon }}\"></i>
|
||||
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
|
||||
</div>
|
||||
|
||||
{% if (installed) %}
|
||||
{% set data = admin.data('plugins/' ~ admin.route) %}
|
||||
{% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %}
|
||||
|
||||
{% if (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.login.fields.enabled.type != 'hidden') %}
|
||||
<div class=\"button-bar danger\">
|
||||
<span class=\"danger-zone\"></span>
|
||||
{% if not plugin.symlink %}
|
||||
<a class=\"button button-reinstall-package hidden\" href=\"#\" data-remodal-target=\"reinstall-package\"><i class=\"fa fa-fw fa-repeat\"></i> {{ \"PLUGIN_ADMIN.REINSTALL_PLUGIN\"|tu }}</a>
|
||||
{% endif %}
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"remove-package\"><i class=\"fa fa-fw fa-warning\"></i> {{ \"PLUGIN_ADMIN.REMOVE_PLUGIN\"|tu }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
<div class=\"button-bar success\">
|
||||
{% if (plugin.premium and not admin.license(plugin.slug)) %}
|
||||
{% if not gumroad_loaded %}
|
||||
{% set gumroad_loaded = true %}
|
||||
<script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
{% endif %}
|
||||
<a class=\"gumroad-button button\" href=\"https://gum.co/{{ plugin.premium.product_permalink }}\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> {{ \"Buy Now\"|tu }}</a>
|
||||
{% else %}
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"{{ plugin.slug }}\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.INSTALL_PLUGIN\"|tu }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'partials/modal-changes-detected.html.twig' %}
|
||||
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %}
|
||||
{% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %}
|
||||
{% include 'partials/modal-remove-package.html.twig' with { type: 'plugin', package: plugin } %}
|
||||
{% include 'partials/modal-reinstall-package.html.twig' with { type: 'plugin', package: plugin } %}
|
||||
", "partials/plugins-details.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugins-details.html.twig");
|
||||
}
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/tab/tab.html.twig */
|
||||
class __TwigTemplate_21bbf8bc5fb09a8e9f91f1d2ed86dbeee555035bc9a47507937cbf078eaa5885 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 2
|
||||
echo " <div class=\"form-tab\">
|
||||
";
|
||||
// line 3
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 4
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 6
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/tab/tab.html.twig", 6)->display($context);
|
||||
// line 7
|
||||
echo " ";
|
||||
}
|
||||
// line 8
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 9
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/tab/tab.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 67 => 9, 53 => 8, 50 => 7, 47 => 6, 44 => 5, 41 => 4, 24 => 3, 21 => 2, 19 => 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 field.fields %}
|
||||
<div class=\"form-tab\">
|
||||
{% for field in field.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
", "forms/fields/tab/tab.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/tab/tab.html.twig");
|
||||
}
|
||||
}
|
||||
+209
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/textarea/textarea.html.twig */
|
||||
class __TwigTemplate_a8f5e8d690cd8b4b740a01ecb24d59b7299ee6d3cfa697c5a960b45ebaefbe75 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/textarea/textarea.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())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <div class=\"";
|
||||
echo twig_escape_filter($this->env, ((($context["form_field_wrapper_classes"] ?? null)) ? (($context["form_field_wrapper_classes"] ?? null)) : ("form-textarea-wrapper")), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
<textarea
|
||||
";
|
||||
// line 7
|
||||
echo " name=\"";
|
||||
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 "\"
|
||||
";
|
||||
// line 9
|
||||
echo " ";
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 25
|
||||
echo " >";
|
||||
echo twig_escape_filter($this->env, twig_trim_filter(($context["value"] ?? null)), "html");
|
||||
echo "</textarea>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " class=\"";
|
||||
echo twig_escape_filter($this->env, ($context["form_field_textarea_classes"] ?? null), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 11
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
echo "id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 12
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
|
||||
echo "style=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 13
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 15
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 16
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 18
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off"))) {
|
||||
echo "autocomplete=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array())) {
|
||||
echo "pattern=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())) {
|
||||
echo "title=\"";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())));
|
||||
} else {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())));
|
||||
}
|
||||
echo "\"";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "rows", array(), "any", true, true)) {
|
||||
echo "rows=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "rows", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "cols", array(), "any", true, true)) {
|
||||
echo "cols=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "cols", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 24
|
||||
echo " ";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/textarea/textarea.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 152 => 24, 145 => 23, 138 => 22, 127 => 21, 120 => 20, 115 => 19, 108 => 18, 103 => 17, 98 => 16, 93 => 15, 86 => 14, 81 => 13, 74 => 12, 68 => 11, 61 => 10, 58 => 9, 50 => 25, 47 => 9, 42 => 7, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"{{ form_field_wrapper_classes ?: 'form-textarea-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}\">
|
||||
<textarea
|
||||
{# required attribute structures #}
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{# input attribute structures #}
|
||||
{% block input_attributes %}
|
||||
class=\"{{ form_field_textarea_classes }} {{ field.classes }}\"
|
||||
{% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
|
||||
{% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.placeholder %}placeholder=\"{{ field.placeholder|t }}\"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
|
||||
{% if field.autocomplete in ['on', 'off'] %}autocomplete=\"{{ field.autocomplete }}\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.validate.pattern %}pattern=\"{{ field.validate.pattern }}\"{% endif %}
|
||||
{% if field.validate.message %}title=\"{% if grav.twig.twig.filters['tu'] is defined %}{{ field.validate.message|tu|e }}{% else %}{{ field.validate.message|t|e }}{% endif %}\"{% endif %}
|
||||
{% if field.rows is defined %}rows=\"{{ field.rows }}\"{% endif %}
|
||||
{% if field.cols is defined %}cols=\"{{ field.cols }}\"{% endif %}
|
||||
{% endblock %}
|
||||
>{{ value|trim|e('html') }}</textarea>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/textarea/textarea.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/textarea/textarea.html.twig");
|
||||
}
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/* {{ config.plugins.admin.twofa_enabled }} */
|
||||
class __TwigTemplate_b5b2ff84b374f015cd674f1623b123c13bc90af28eb20fbb9befb0ef1619a387 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "twofa_enabled", array()), "html", null, true);
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "{{ config.plugins.admin.twofa_enabled }}";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("{{ config.plugins.admin.twofa_enabled }}", "{{ config.plugins.admin.twofa_enabled }}", "");
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
|
||||
/* partials/dashboard-statistics.html.twig */
|
||||
class __TwigTemplate_83ad0585a58613ceed1064131aee91714fa7583bff47dbf934cd3a40fc232e20 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.statistics", 1 => "admin.super"))) {
|
||||
// line 2
|
||||
echo " <div id=\"popularity\" class=\"dashboard-item dashboard-right\" data-chart-name=\"popularity\" data-chart-type=\"bar\" data-chart-data=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("series" => array(0 => $this->getAttribute($this->getAttribute(($context["popularity"] ?? null), "getDailyChartData", array()), "data", array(), "array")), "labels" => $this->getAttribute($this->getAttribute(($context["popularity"] ?? null), "getDailyChartData", array()), "labels", array(), "array"))), "html_attr");
|
||||
echo "\">
|
||||
<div class=\"primary-accent default-box-shadow\">
|
||||
<h1>";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.STATISTICS"), "html", null, true);
|
||||
echo "</h1>
|
||||
<div class=\"admin-statistics-chart\">
|
||||
<div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<div class=\"flush-bottom button-bar stats-bar\">
|
||||
<span class=\"stat\">
|
||||
<b>";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["popularity"] ?? null), "getDailyTotal", array()), "html", null, true);
|
||||
echo "</b>
|
||||
<i>";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.TODAY"), "html", null, true);
|
||||
echo "</i>
|
||||
</span>
|
||||
<span class=\"stat\">
|
||||
<b>";
|
||||
// line 13
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["popularity"] ?? null), "getWeeklyTotal", array()), "html", null, true);
|
||||
echo "</b>
|
||||
<i>";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WEEK"), "html", null, true);
|
||||
echo "</i>
|
||||
</span>
|
||||
<span class=\"stat\">
|
||||
<b>";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["popularity"] ?? null), "getMonthlyTotal", array()), "html", null, true);
|
||||
echo "</b>
|
||||
<i>";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MONTH"), "html", null, true);
|
||||
echo "</i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/dashboard-statistics.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 59 => 18, 55 => 17, 49 => 14, 45 => 13, 39 => 10, 35 => 9, 27 => 4, 21 => 2, 19 => 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 authorize(['admin.statistics', 'admin.super']) %}
|
||||
<div id=\"popularity\" class=\"dashboard-item dashboard-right\" data-chart-name=\"popularity\" data-chart-type=\"bar\" data-chart-data=\"{{ {'series': [popularity.getDailyChartData['data']], 'labels': popularity.getDailyChartData['labels']}|json_encode|e('html_attr') }}\">
|
||||
<div class=\"primary-accent default-box-shadow\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.STATISTICS\"|tu }}</h1>
|
||||
<div class=\"admin-statistics-chart\">
|
||||
<div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<div class=\"flush-bottom button-bar stats-bar\">
|
||||
<span class=\"stat\">
|
||||
<b>{{ popularity.getDailyTotal }}</b>
|
||||
<i>{{ \"PLUGIN_ADMIN.TODAY\"|tu }}</i>
|
||||
</span>
|
||||
<span class=\"stat\">
|
||||
<b>{{ popularity.getWeeklyTotal }}</b>
|
||||
<i>{{ \"PLUGIN_ADMIN.WEEK\"|tu }}</i>
|
||||
</span>
|
||||
<span class=\"stat\">
|
||||
<b>{{ popularity.getMonthlyTotal }}</b>
|
||||
<i>{{ \"PLUGIN_ADMIN.MONTH\"|tu }}</i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
", "partials/dashboard-statistics.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-statistics.html.twig");
|
||||
}
|
||||
}
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/themeselect/themeselect.html.twig */
|
||||
class __TwigTemplate_aabc3e9a11eebc37d1ff373413299e24a8ed9ff04f4961893b534b844b5971d9 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/themeselect/themeselect.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["options"] = array();
|
||||
// line 4
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "themes", array()));
|
||||
foreach ($context['_seq'] as $context["slug"] => $context["package"]) {
|
||||
// line 5
|
||||
$context["option"] = array($context["slug"] => $this->getAttribute($this->getAttribute($context["package"], "toArray", array(), "method"), "name", array()));
|
||||
// line 6
|
||||
$context["options"] = twig_array_merge(($context["options"] ?? null), ($context["option"] ?? null));
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['slug'], $context['package'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " data-grav-selectize=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "selectize", array())) : (array()))), "html_attr");
|
||||
echo "\"
|
||||
data-grav-field=\"select\"
|
||||
data-grav-disabled=\"";
|
||||
// line 12
|
||||
echo (((null === ($context["originalValue"] ?? null))) ? ("true") : ("false"));
|
||||
echo "\"
|
||||
data-grav-default=\"";
|
||||
// line 13
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 16
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 17
|
||||
echo " <div class=\"form-select-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
<select class=\"";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" name=\"";
|
||||
echo twig_escape_filter($this->env, ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . (($this->getAttribute(($context["field"] ?? null), "multiple", array())) ? ("[]") : (""))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 19
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo ">
|
||||
";
|
||||
// line 24
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 25
|
||||
echo " <option ";
|
||||
if ((($context["key"] == ($context["value"] ?? null)) || twig_in_filter($context["text"], ($context["value"] ?? null)))) {
|
||||
echo "selected=\"selected\"";
|
||||
}
|
||||
echo " value=\"";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "multiple", array())) ? ($context["text"]) : ($context["key"])), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $context["text"], "html", null, true);
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 27
|
||||
echo " </select>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/themeselect/themeselect.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 122 => 27, 107 => 25, 103 => 24, 96 => 23, 91 => 22, 86 => 21, 81 => 20, 77 => 19, 71 => 18, 66 => 17, 63 => 16, 57 => 13, 53 => 12, 47 => 10, 44 => 9, 40 => 1, 34 => 6, 32 => 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 options = {} %}
|
||||
{% for slug, package in admin.themes %}
|
||||
{% set option = {(slug): package.toArray().name} %}
|
||||
{% set options = options|merge(option) %}
|
||||
{% endfor %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize : {})|json_encode()|e('html_attr') }}\"
|
||||
data-grav-field=\"select\"
|
||||
data-grav-disabled=\"{{ originalValue is null ? 'true' : 'false' }}\"
|
||||
data-grav-default=\"{{ field.default|json_encode()|e('html_attr') }}\"
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-select-wrapper {{ field.size }}\">
|
||||
<select class=\"{{ field.classes }}\" name=\"{{ (scope ~ field.name)|fieldName ~ (field.multiple ? '[]' : '') }}\"
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}>
|
||||
{% for key, text in options %}
|
||||
<option {% if key == value or text in value %}selected=\"selected\"{% endif %} value=\"{{ field.multiple ? text : key }}\">{{ text }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
", "forms/fields/themeselect/themeselect.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/themeselect/themeselect.html.twig");
|
||||
}
|
||||
}
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
<?php
|
||||
|
||||
/* partials/modal-reinstall-package.html.twig */
|
||||
class __TwigTemplate_98a6e0f66d27c1cc4a00dfb438867d4cb861f06a5a883b135e5b30e75f53bffa extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"remodal\"
|
||||
data-remodal-id=\"reinstall-package\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"reinstall-package-confirm\">
|
||||
<h1>";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REINSTALL_THE", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))));
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIRM_REINSTALL", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))));
|
||||
echo "
|
||||
</p>
|
||||
<p class=\"bigger hidden warning-reinstall-not-latest-release\">
|
||||
";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WARNING_REINSTALL_NOT_LATEST_RELEASE"));
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 15
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"));
|
||||
echo "</button>
|
||||
|
||||
<button data-";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null));
|
||||
echo "-action=\"reinstall-package\"
|
||||
data-package-slug=\"";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["package"] ?? null), "slug", array()));
|
||||
echo "\"
|
||||
data-package-type=\"";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["package"] ?? null), "package_type", array()));
|
||||
echo "\"
|
||||
data-package-name=\"";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["package"] ?? null), "name", array()));
|
||||
echo "\"
|
||||
data-package-current-version=\"";
|
||||
// line 21
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["package"] ?? null), "version", array()));
|
||||
echo "\"
|
||||
class=\"button\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
// line 22
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"));
|
||||
echo "</button>
|
||||
|
||||
<div class=\"spinning-wheel hidden\">
|
||||
";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLING"));
|
||||
echo ".. <i class=\"fa fa-spinner fa-spin\"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"reinstall-package-done hidden\">
|
||||
<h1>";
|
||||
// line 31
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REINSTALLED_SUCCESSFULLY", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))));
|
||||
echo "</h1>
|
||||
</div>
|
||||
|
||||
<div class=\"reinstall-package-error hidden\">
|
||||
<h1>";
|
||||
// line 35
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ERROR_REINSTALLING_THE", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))));
|
||||
echo "</h1>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/modal-reinstall-package.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 91 => 35, 84 => 31, 75 => 25, 69 => 22, 65 => 21, 61 => 20, 57 => 19, 53 => 18, 49 => 17, 44 => 15, 37 => 11, 31 => 8, 26 => 6, 19 => 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("<div class=\"remodal\"
|
||||
data-remodal-id=\"reinstall-package\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"reinstall-package-confirm\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.REINSTALL_THE\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu])|e }}</h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.CONFIRM_REINSTALL\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu])|e }}
|
||||
</p>
|
||||
<p class=\"bigger hidden warning-reinstall-not-latest-release\">
|
||||
{{ \"PLUGIN_ADMIN.WARNING_REINSTALL_NOT_LATEST_RELEASE\"|tu|e }}
|
||||
</p>
|
||||
|
||||
<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|e }}</button>
|
||||
|
||||
<button data-{{ type|e }}-action=\"reinstall-package\"
|
||||
data-package-slug=\"{{ package.slug|e }}\"
|
||||
data-package-type=\"{{ package.package_type |e }}\"
|
||||
data-package-name=\"{{ package.name|e }}\"
|
||||
data-package-current-version=\"{{ package.version|e }}\"
|
||||
class=\"button\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu|e }}</button>
|
||||
|
||||
<div class=\"spinning-wheel hidden\">
|
||||
{{ \"PLUGIN_ADMIN.INSTALLING\"|tu|e }}.. <i class=\"fa fa-spinner fa-spin\"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"reinstall-package-done hidden\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.REINSTALLED_SUCCESSFULLY\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu])|e }}</h1>
|
||||
</div>
|
||||
|
||||
<div class=\"reinstall-package-error hidden\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.ERROR_REINSTALLING_THE\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu])|e }}</h1>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
", "partials/modal-reinstall-package.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/modal-reinstall-package.html.twig");
|
||||
}
|
||||
}
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
/* partials/login.html.twig */
|
||||
class __TwigTemplate_e48d3b3889fbeaee326d219e3b892e538cc2b3d886643f71a5a6769cb464dc71 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "partials/login.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'messages' => array($this, 'block_messages'),
|
||||
'body' => array($this, 'block_body'),
|
||||
'instructions' => array($this, 'block_instructions'),
|
||||
'form' => array($this, 'block_form'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
$context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 5
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 6
|
||||
echo "<body id=\"admin-login-wrapper\">
|
||||
<section id=\"admin-login\" class=\"default-box-shadow ";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, ($context["classes"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
<h1>
|
||||
";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
|
||||
echo "
|
||||
</h1>
|
||||
|
||||
";
|
||||
// line 12
|
||||
$this->loadTemplate("partials/messages.html.twig", "partials/login.html.twig", 12)->display($context);
|
||||
// line 13
|
||||
echo "
|
||||
";
|
||||
// line 14
|
||||
$this->displayBlock('instructions', $context, $blocks);
|
||||
// line 15
|
||||
echo "
|
||||
";
|
||||
// line 16
|
||||
$context["redirect"] = ((($context["redirect"] ?? null)) ? (($context["redirect"] ?? null)) : ($this->getAttribute(($context["uri"] ?? null), "route", array(0 => false), "method")));
|
||||
// line 17
|
||||
echo "
|
||||
<form method=\"post\" action=\"";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
<div class=\"padding\">
|
||||
";
|
||||
// line 20
|
||||
$this->displayBlock('form', $context, $blocks);
|
||||
// line 21
|
||||
echo " <input type=\"hidden\" name=\"redirect\" value=\"";
|
||||
echo twig_escape_filter($this->env, ($context["redirect"] ?? null), "html", null, true);
|
||||
echo "\" />
|
||||
";
|
||||
// line 22
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
|
||||
echo "
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</body>
|
||||
";
|
||||
}
|
||||
|
||||
// line 14
|
||||
public function block_instructions($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 20
|
||||
public function block_form($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/login.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 98 => 20, 93 => 14, 83 => 22, 78 => 21, 76 => 20, 71 => 18, 68 => 17, 66 => 16, 63 => 15, 61 => 14, 58 => 13, 56 => 12, 50 => 9, 45 => 7, 42 => 6, 39 => 5, 34 => 3, 30 => 1, 28 => 2, 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 'partials/base.html.twig' %}
|
||||
{% set scope = scope ?: 'data.' %}
|
||||
{% block messages %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<body id=\"admin-login-wrapper\">
|
||||
<section id=\"admin-login\" class=\"default-box-shadow {{ classes }}\">
|
||||
<h1>
|
||||
{{ title }}
|
||||
</h1>
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
|
||||
{% block instructions %}{% endblock %}
|
||||
|
||||
{% set redirect = redirect ?: uri.route(false) %}
|
||||
|
||||
<form method=\"post\" action=\"{{ base_url_relative }}\">
|
||||
<div class=\"padding\">
|
||||
{% block form %}{% endblock %}
|
||||
<input type=\"hidden\" name=\"redirect\" value=\"{{ redirect }}\" />
|
||||
{{ nonce_field('admin-form', 'admin-nonce')|raw }}
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</body>
|
||||
{% endblock %}
|
||||
", "partials/login.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/login.html.twig");
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/* empty.html.twig */
|
||||
class __TwigTemplate_00319a778f6e5443363090b0e893026b62bd16fb53da3bceaec54cc87f3f15bb extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "empty.html.twig";
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ();
|
||||
}
|
||||
|
||||
/** @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("", "empty.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/empty.html.twig");
|
||||
}
|
||||
}
|
||||
+337
@@ -0,0 +1,337 @@
|
||||
<?php
|
||||
|
||||
/* themes.html.twig */
|
||||
class __TwigTemplate_f3cf5e618f069cff89baba3dcbd2164a1019ecce82df524c77b552ddeb52324e extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "themes.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'stylesheets' => array($this, 'block_stylesheets'),
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'messages' => array($this, 'block_messages'),
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "route", array())) {
|
||||
// line 4
|
||||
$context["installing"] = (is_string($__internal_62b8b8f4b6426054e58af8cd2a95667079b12a0ceba7720cb80827bece622b94 = $this->getAttribute(($context["admin"] ?? null), "route", array())) && is_string($__internal_38d13f1312ef9f9145aa02a0def90d44714d34cd7c0e01a4dd2513f054c9a8ba = "install") && ('' === $__internal_38d13f1312ef9f9145aa02a0def90d44714d34cd7c0e01a4dd2513f054c9a8ba || 0 === strpos($__internal_62b8b8f4b6426054e58af8cd2a95667079b12a0ceba7720cb80827bece622b94, $__internal_38d13f1312ef9f9145aa02a0def90d44714d34cd7c0e01a4dd2513f054c9a8ba)));
|
||||
// line 6
|
||||
if (($context["installing"] ?? null)) {
|
||||
// line 7
|
||||
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES");
|
||||
} else {
|
||||
// line 9
|
||||
$context["installed"] = true;
|
||||
// line 12
|
||||
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "themes", array(0 => true), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
|
||||
// line 13
|
||||
if ( !($context["package"] ?? null)) {
|
||||
// line 14
|
||||
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "themes", array(0 => false), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
|
||||
// line 15
|
||||
$context["installed"] = false;
|
||||
}
|
||||
// line 18
|
||||
$context["theme"] = $this->getAttribute(($context["package"] ?? null), "toArray", array(), "method");
|
||||
// line 19
|
||||
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME") . ": ") . twig_escape_filter($this->env, $this->getAttribute(($context["theme"] ?? null), "name", array())));
|
||||
}
|
||||
} else {
|
||||
// line 22
|
||||
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES");
|
||||
}
|
||||
// line 25
|
||||
if (($this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
|
||||
}
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 26
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 27
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")), "method");
|
||||
// line 28
|
||||
echo " ";
|
||||
$this->displayParentBlock("stylesheets", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 31
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 32
|
||||
echo " ";
|
||||
$this->displayParentBlock("javascripts", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 36
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
// line 37
|
||||
echo " ";
|
||||
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
|
||||
// line 38
|
||||
echo " <div class=\"button-bar\">
|
||||
";
|
||||
// line 39
|
||||
if (($context["installing"] ?? null)) {
|
||||
// line 40
|
||||
echo " <a class=\"button\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
} else {
|
||||
// line 42
|
||||
echo " <a class=\"button\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "/\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
<a class=\"button\" href=\"";
|
||||
// line 43
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes/install\"><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 44
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
|
||||
// line 45
|
||||
echo " <button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CHECK_FOR_UPDATES"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 47
|
||||
echo " ";
|
||||
}
|
||||
// line 48
|
||||
echo " </div>
|
||||
<h1><i class=\"fa fa-fw fa-tint\"></i> ";
|
||||
// line 49
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES"), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
} else {
|
||||
// line 51
|
||||
echo " ";
|
||||
if (($context["installed"] ?? null)) {
|
||||
// line 52
|
||||
echo " <div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"";
|
||||
// line 53
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes\"><i class=\"fa fa-arrow-left\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK_TO_THEMES"), "html", null, true);
|
||||
echo "</a>
|
||||
<button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> ";
|
||||
// line 54
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 57
|
||||
echo " <div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"";
|
||||
// line 58
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes/install\"><i class=\"fa fa-arrow-left\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK_TO_THEMES"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 61
|
||||
echo " <h1><i class=\"fa fa-fw fa-tint\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME"), "html", null, true);
|
||||
echo ": ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["theme"] ?? null), "name", array()));
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 65
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
// line 66
|
||||
echo " ";
|
||||
$this->displayParentBlock("messages", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
// line 67
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "themes", array())) {
|
||||
// line 68
|
||||
echo " <div class=\"themes-notifications-container hidden\"></div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 72
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 73
|
||||
echo " <div class=\"gpm gpm-themes\">
|
||||
";
|
||||
// line 74
|
||||
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
|
||||
// line 75
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/themes-list.html.twig", "themes.html.twig", 75)->display($context);
|
||||
// line 76
|
||||
echo " ";
|
||||
} else {
|
||||
// line 77
|
||||
echo " ";
|
||||
if ((null === ($context["theme"] ?? null))) {
|
||||
// line 78
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->redirectFunc((($context["base_url_relative"] ?? null) . "/404")), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 80
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/themes-details.html.twig", "themes.html.twig", 80)->display($context);
|
||||
// line 81
|
||||
echo " ";
|
||||
}
|
||||
// line 82
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "themes.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 223 => 82, 220 => 81, 217 => 80, 211 => 78, 208 => 77, 205 => 76, 202 => 75, 200 => 74, 197 => 73, 194 => 72, 188 => 68, 186 => 67, 181 => 66, 178 => 65, 168 => 61, 160 => 58, 157 => 57, 151 => 54, 145 => 53, 142 => 52, 139 => 51, 134 => 49, 131 => 48, 128 => 47, 122 => 45, 120 => 44, 114 => 43, 107 => 42, 99 => 40, 97 => 39, 94 => 38, 91 => 37, 88 => 36, 81 => 32, 78 => 31, 71 => 28, 68 => 27, 65 => 26, 61 => 1, 58 => 25, 55 => 22, 51 => 19, 49 => 18, 46 => 15, 44 => 14, 42 => 13, 40 => 12, 38 => 9, 35 => 7, 33 => 6, 31 => 4, 29 => 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 'partials/base.html.twig' %}
|
||||
|
||||
{% if admin.route %}
|
||||
{% set installing = admin.route starts with 'install' %}
|
||||
|
||||
{% if installing %}
|
||||
{% set title = \"PLUGIN_ADMIN.THEMES\"|tu %}
|
||||
{% else %}
|
||||
{% set installed = true %}
|
||||
|
||||
{# Try installed packages first, then remote #}
|
||||
{% set package = admin.themes(true)[admin.route] %}
|
||||
{% if (not package) %}
|
||||
{% set package = admin.themes(false)[admin.route] %}
|
||||
{% set installed = false %}
|
||||
{% endif %}
|
||||
|
||||
{% set theme = package.toArray() %}
|
||||
{% set title = \"PLUGIN_ADMIN.THEME\"|tu ~ \": \" ~ theme.name|e %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set title = \"PLUGIN_ADMIN.THEMES\"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% if admin.route or installing %}
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss(theme_url~'/css/codemirror/codemirror.css') %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
{% block titlebar %}
|
||||
{% if not admin.route or installing %}
|
||||
<div class=\"button-bar\">
|
||||
{% if (installing) %}
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/themes\"><i class=\"fa fa-reply\"></i> {{ \"PLUGIN_ADMIN.BACK\"|tu }}</a>
|
||||
{% else %}
|
||||
<a class=\"button\" href=\"{{ base_url }}/\"><i class=\"fa fa-reply\"></i> {{ \"PLUGIN_ADMIN.BACK\"|tu }}</a>
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/themes/install\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.ADD\"|tu }}</a>
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
<button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> {{ \"PLUGIN_ADMIN.CHECK_FOR_UPDATES\"|tu }}</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-tint\"></i> {{ \"PLUGIN_ADMIN.THEMES\"|tu }}</h1>
|
||||
{% else %}
|
||||
{% if (installed) %}
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/themes\"><i class=\"fa fa-arrow-left\"></i> {{ \"PLUGIN_ADMIN.BACK_TO_THEMES\"|tu }}</a>
|
||||
<button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> {{ \"PLUGIN_ADMIN.SAVE\"|tu }}</button>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/themes/install\"><i class=\"fa fa-arrow-left\"></i> {{ \"PLUGIN_ADMIN.BACK_TO_THEMES\"|tu }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<h1><i class=\"fa fa-fw fa-tint\"></i> {{ \"PLUGIN_ADMIN.THEME\"|tu }}: {{ theme.name|e }}</h1>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block messages %}
|
||||
{{ parent() }}
|
||||
{% if config.plugins.admin.notifications.themes %}
|
||||
<div class=\"themes-notifications-container hidden\"></div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class=\"gpm gpm-themes\">
|
||||
{% if not admin.route or installing %}
|
||||
{% include 'partials/themes-list.html.twig' %}
|
||||
{% else %}
|
||||
{% if theme is null %}
|
||||
{{redirect_me(base_url_relative ~ '/404')}}
|
||||
{% endif %}
|
||||
{% include 'partials/themes-details.html.twig' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "themes.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/themes.html.twig");
|
||||
}
|
||||
}
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/select/select.html.twig */
|
||||
class __TwigTemplate_9666d45656d36a58607aa0996be7cef8aad06b2b49f2c272e65a0aef0b6be4b8 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/select/select.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " data-grav-selectize=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "selectize", array())) : (array()))), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
// line 5
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 8
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 9
|
||||
echo " <div class=\"";
|
||||
echo twig_escape_filter($this->env, ((($context["form_field_wrapper_classes"] ?? null)) ? (($context["form_field_wrapper_classes"] ?? null)) : ("form-select-wrapper")), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
<select name=\"";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . (($this->getAttribute(($context["field"] ?? null), "multiple", array())) ? ("[]") : (""))), "html", null, true);
|
||||
echo "\"
|
||||
class=\"";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, ($context["form_field_select_classes"] ?? null), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 12
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
echo "id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 13
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
|
||||
echo "style=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "disabled", array())) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 15
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 16
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 18
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "form", array())) {
|
||||
echo "form=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "form", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "key", array())) {
|
||||
// line 22
|
||||
echo " data-key-observe=\"";
|
||||
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 "\"
|
||||
";
|
||||
}
|
||||
// line 24
|
||||
echo " >
|
||||
";
|
||||
// line 25
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "<option value=\"\" disabled selected>";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "placeholder", array()));
|
||||
} else {
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "placeholder", array()));
|
||||
}
|
||||
echo "</option>";
|
||||
}
|
||||
// line 26
|
||||
echo "
|
||||
";
|
||||
// line 27
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 28
|
||||
echo " ";
|
||||
$context["selected"] = (($this->getAttribute(($context["field"] ?? null), "selectize", array())) ? ($context["text"]) : ($context["key"]));
|
||||
// line 29
|
||||
echo " ";
|
||||
$context["item_value"] = ((($this->getAttribute(($context["field"] ?? null), "selectize", array()) && $this->getAttribute(($context["field"] ?? null), "multiple", array()))) ? ($context["text"]) : ($context["key"]));
|
||||
// line 30
|
||||
echo " <option ";
|
||||
if ((($context["key"] == ($context["value"] ?? null)) || ($this->getAttribute(($context["field"] ?? null), "multiple", array()) && twig_in_filter(($context["selected"] ?? null), ($context["value"] ?? null))))) {
|
||||
echo "selected=\"selected\"";
|
||||
}
|
||||
echo " value=\"";
|
||||
echo twig_escape_filter($this->env, ($context["item_value"] ?? null), "html", null, true);
|
||||
echo "\">";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($context["text"]);
|
||||
} else {
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"]);
|
||||
}
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 32
|
||||
echo " </select>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/select/select.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 169 => 32, 150 => 30, 147 => 29, 144 => 28, 140 => 27, 137 => 26, 127 => 25, 124 => 24, 118 => 22, 115 => 21, 108 => 20, 103 => 19, 98 => 18, 93 => 17, 88 => 16, 83 => 15, 78 => 14, 71 => 13, 65 => 12, 59 => 11, 55 => 10, 46 => 9, 43 => 8, 37 => 5, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize : {})|json_encode()|e('html_attr') }}\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"{{ form_field_wrapper_classes ?: 'form-select-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}\">
|
||||
<select name=\"{{ (scope ~ field.name)|fieldName ~ (field.multiple ? '[]' : '') }}\"
|
||||
class=\"{{ form_field_select_classes }} {{ field.classes }}\"
|
||||
{% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
|
||||
{% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
|
||||
{% if field.disabled %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.form %}form=\"{{ field.form }}\"{% endif %}
|
||||
{% if field.key %}
|
||||
data-key-observe=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% endif %}
|
||||
>
|
||||
{% if field.placeholder %}<option value=\"\" disabled selected>{% if grav.twig.twig.filters['tu'] is defined %}{{ field.placeholder|tu|raw }}{% else %}{{ field.placeholder|t|raw }}{% endif %}</option>{% endif %}
|
||||
|
||||
{% for key, text in field.options %}
|
||||
{% set selected = field.selectize ? text : key %}
|
||||
{% set item_value = field.selectize and field.multiple ? text : key %}
|
||||
<option {% if key == value or (field.multiple and selected in value) %}selected=\"selected\"{% endif %} value=\"{{ item_value }}\">{% if grav.twig.twig.filters['tu'] is defined %}{{ text|tu|raw }}{% else %}{{ text|t|raw }}{% endif %}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/select/select.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/select/select.html.twig");
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/* partials/userinfo-avatar-credit.html.twig */
|
||||
class __TwigTemplate_b19ae7c1791a16ef2a17e4567f61f239854094c21dbd39865ea6fb1a097af536 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<p class=\"gravatar\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVATAR_BY"), "html", null, true);
|
||||
echo " <a href=\"https://gravatar.com\" target=\"_blank\">gravatar.com</a>. ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVATAR_UPLOAD_OWN"), "html", null, true);
|
||||
echo "</p>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/userinfo-avatar-credit.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("<p class=\"gravatar\">{{ \"PLUGIN_ADMIN.AVATAR_BY\"|tu }} <a href=\"https://gravatar.com\" target=\"_blank\">gravatar.com</a>. {{ \"PLUGIN_ADMIN.AVATAR_UPLOAD_OWN\"|tu }}</p>
|
||||
", "partials/userinfo-avatar-credit.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/userinfo-avatar-credit.html.twig");
|
||||
}
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/parents/parents.html.twig */
|
||||
class __TwigTemplate_ca929fc3fa1ab7d6b8880623f237476618e7198f89dc19a009fc64eed38fd485 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/fields/pages/pages.html.twig", "forms/fields/parents/parents.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/fields/pages/pages.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " ";
|
||||
$context["last_page_route"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "getLastPageRoute", array());
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["show_slug_val"] = true;
|
||||
// line 6
|
||||
echo " ";
|
||||
$context["show_fullpath_val"] = false;
|
||||
// line 7
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
$context["show_parents"] = $this->getAttribute(($context["config"] ?? null), "get", array(0 => "plugins.admin.pages.show_parents"), "method");
|
||||
// line 9
|
||||
echo " ";
|
||||
if ((($context["show_parents"] ?? null) == "folder")) {
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["show_slug_val"] = false;
|
||||
// line 11
|
||||
echo " ";
|
||||
} elseif ((($context["show_parents"] ?? null) == "fullpath")) {
|
||||
// line 12
|
||||
echo " ";
|
||||
$context["show_fullpath_val"] = true;
|
||||
// line 13
|
||||
echo " ";
|
||||
}
|
||||
// line 14
|
||||
echo "
|
||||
";
|
||||
// line 15
|
||||
$context["defaults"] = array("show_root" => true, "show_all" => true, "show_slug" => ($context["show_slug_val"] ?? null), "show_fullpath" => ($context["show_fullpath_val"] ?? null), "default" => ($context["last_page_route"] ?? null));
|
||||
// line 16
|
||||
echo " ";
|
||||
$context["field"] = twig_array_merge(($context["field"] ?? null), ($context["defaults"] ?? null));
|
||||
// line 17
|
||||
echo " ";
|
||||
$this->displayParentBlock("input", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/parents/parents.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 68 => 17, 65 => 16, 63 => 15, 60 => 14, 57 => 13, 54 => 12, 51 => 11, 48 => 10, 45 => 9, 43 => 8, 40 => 7, 37 => 6, 34 => 5, 31 => 4, 28 => 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/fields/pages/pages.html.twig\" %}
|
||||
|
||||
{% block input %}
|
||||
{% set last_page_route = admin.page.getLastPageRoute %}
|
||||
{% set show_slug_val = true %}
|
||||
{% set show_fullpath_val = false %}
|
||||
|
||||
{% set show_parents = config.get('plugins.admin.pages.show_parents') %}
|
||||
{% if show_parents == 'folder' %}
|
||||
{% set show_slug_val = false %}
|
||||
{% elseif show_parents == 'fullpath' %}
|
||||
{% set show_fullpath_val = true %}
|
||||
{% endif %}
|
||||
|
||||
{% set defaults = {show_root:true, show_all:true, show_slug:show_slug_val, show_fullpath:show_fullpath_val, default:last_page_route} %}
|
||||
{% set field = field|merge(defaults) %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
", "forms/fields/parents/parents.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/parents/parents.html.twig");
|
||||
}
|
||||
}
|
||||
+277
@@ -0,0 +1,277 @@
|
||||
<?php
|
||||
|
||||
/* partials/modal-update-packages.html.twig */
|
||||
class __TwigTemplate_f18597a72c60a9de132c689f7dcc439a40846d459544b5455e70349375eef9ea extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"remodal\"
|
||||
data-packages-modal
|
||||
data-remodal-id=\"update-packages\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"add-package-installing\">
|
||||
<h1>";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATING"), "html", null, true);
|
||||
echo "</h1>
|
||||
|
||||
<div class=\"loading\">
|
||||
<p>
|
||||
";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOADING"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"install-dependencies-package-container hidden\">
|
||||
<p><strong>";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DEPENDENCIES_NOT_MET_MESSAGE"), "html", null, true);
|
||||
echo "</strong></p>
|
||||
|
||||
<div class=\"type-install hidden\">
|
||||
<p>";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_NOT_INSTALLED"), "html", null, true);
|
||||
echo ":</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-update hidden\">
|
||||
<p>";
|
||||
// line 24
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_NEED_UPDATE"), "html", null, true);
|
||||
echo ":</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-ignore hidden\">
|
||||
<p>";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_SUGGESTED_UPDATE"), "html", null, true);
|
||||
echo ":</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<a data-";
|
||||
// line 34
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
||||
echo "-action=\"install-dependencies-and-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-container hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 40
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.READY_TO_UPDATE_PACKAGES"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 46
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<a data-";
|
||||
// line 47
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
||||
echo "-action=\"install-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-error hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 53
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ERROR_UPDATING_PACKAGES"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 59
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-dependencies hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 65
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLING_DEPENDENCIES"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-package hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 72
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATING_PACKAGES"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
|
||||
<div class=\"installation-complete hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 81
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_SUCCESSFULLY_UPDATED"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/modal-update-packages.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 150 => 81, 138 => 72, 128 => 65, 119 => 59, 110 => 53, 99 => 47, 95 => 46, 86 => 40, 75 => 34, 71 => 33, 63 => 28, 56 => 24, 49 => 20, 43 => 17, 34 => 11, 27 => 7, 19 => 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("<div class=\"remodal\"
|
||||
data-packages-modal
|
||||
data-remodal-id=\"update-packages\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"add-package-installing\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.UPDATING\"|tu }}</h1>
|
||||
|
||||
<div class=\"loading\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.LOADING\"|tu }}
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"install-dependencies-package-container hidden\">
|
||||
<p><strong>{{ \"PLUGIN_ADMIN.DEPENDENCIES_NOT_MET_MESSAGE\"|tu }}</strong></p>
|
||||
|
||||
<div class=\"type-install hidden\">
|
||||
<p>{{ \"PLUGIN_ADMIN.PACKAGES_NOT_INSTALLED\"|tu }}:</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-update hidden\">
|
||||
<p>{{ \"PLUGIN_ADMIN.PACKAGES_NEED_UPDATE\"|tu }}:</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-ignore hidden\">
|
||||
<p>{{ \"PLUGIN_ADMIN.PACKAGES_SUGGESTED_UPDATE\"|tu }}:</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<a data-{{ type }}-action=\"install-dependencies-and-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-container hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.READY_TO_UPDATE_PACKAGES\"|tu }}
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<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>
|
||||
<a data-{{ type }}-action=\"install-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-error hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.ERROR_UPDATING_PACKAGES\"|tu }}
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-dependencies hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.INSTALLING_DEPENDENCIES\"|tu }}
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-package hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.UPDATING_PACKAGES\"|tu }}
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
|
||||
<div class=\"installation-complete hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.PACKAGES_SUCCESSFULLY_UPDATED\"|tu }}
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>", "partials/modal-update-packages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/modal-update-packages.html.twig");
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/* error.html.twig */
|
||||
class __TwigTemplate_8938aa1083c7c0f2376e9a635cdf67f5cf665340aa0814ae86dbc1bc4403c9e8 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "error.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo "\t<div id=\"error\">
|
||||
\t\t<div>
|
||||
\t\t\t<h1>";
|
||||
// line 6
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate("ERROR");
|
||||
echo " ";
|
||||
echo $this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", array()), "http_response_code", array());
|
||||
echo "</h1>
|
||||
\t\t\t<p>
|
||||
\t\t\t\t";
|
||||
// line 8
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
\t\t\t</p>
|
||||
\t\t</div>
|
||||
\t</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "error.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 42 => 8, 35 => 6, 31 => 4, 28 => 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 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
\t<div id=\"error\">
|
||||
\t\t<div>
|
||||
\t\t\t<h1>{{ 'ERROR'|t }} {{ page.header.http_response_code }}</h1>
|
||||
\t\t\t<p>
|
||||
\t\t\t\t{{ page.content }}
|
||||
\t\t\t</p>
|
||||
\t\t</div>
|
||||
\t</div>
|
||||
{% endblock %}
|
||||
", "error.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/error.html.twig");
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
/* partials/javascripts.html.twig */
|
||||
class __TwigTemplate_5e43703705bf966a6cb85fab83d74780fdd1b29e7bbb2dca893761a903ce41f7 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$this->getAttribute(($context["assets"] ?? null), "add", array(0 => "jquery", 1 => 101), "method");
|
||||
// line 2
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.login", 1 => "admin.super"))) {
|
||||
// line 3
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => (($context["theme_url"] ?? null) . "/js/vendor.min.js"), 1 => array("loading" => "defer")), "method");
|
||||
// line 4
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => (($context["theme_url"] ?? null) . "/js/admin.min.js"), 1 => array("loading" => "defer")), "method");
|
||||
// line 5
|
||||
echo "
|
||||
";
|
||||
// line 6
|
||||
if ((($this->getAttribute(($context["browser"] ?? null), "getBrowser", array()) == "msie") || ($this->getAttribute(($context["browser"] ?? null), "getBrowser", array()) == "edge"))) {
|
||||
// line 7
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => (($context["theme_url"] ?? null) . "/js/form-attr.polyfill.js")), "method");
|
||||
}
|
||||
// line 9
|
||||
echo "
|
||||
";
|
||||
// line 10
|
||||
try {
|
||||
$this->loadTemplate("partials/javascripts-extra.html.twig", "partials/javascripts.html.twig", 10)->display($context);
|
||||
} catch (Twig_Error_Loader $e) {
|
||||
// ignore missing template
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/javascripts.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 39 => 10, 36 => 9, 32 => 7, 30 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 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("{% do assets.add('jquery',101) %}
|
||||
{% if authorize(['admin.login', 'admin.super']) %}
|
||||
{% do assets.addJs(theme_url~'/js/vendor.min.js', { 'loading':'defer' }) %}
|
||||
{% do assets.addJs(theme_url~'/js/admin.min.js' , { 'loading':'defer' }) %}
|
||||
|
||||
{% if browser.getBrowser == 'msie' or browser.getBrowser == 'edge' %}
|
||||
{% do assets.addJs(theme_url~'/js/form-attr.polyfill.js') %}
|
||||
{% endif %}
|
||||
|
||||
{% include 'partials/javascripts-extra.html.twig' ignore missing %}
|
||||
{% endif %}
|
||||
", "partials/javascripts.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/javascripts.html.twig");
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/conditional/conditional.html.twig */
|
||||
class __TwigTemplate_6297e3b5aa0dc00c5fde31002077683424eb01fe6636c27c77aa41e882e1cecf extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["value"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->evaluateStringFunc($this->env, $context, $this->getAttribute(($context["field"] ?? null), "condition", array()));
|
||||
// line 2
|
||||
$context["value"] = (((($context["value"] ?? null) == "true")) ? (1) : (($context["value"] ?? null)));
|
||||
// line 3
|
||||
$context["value"] = (((($context["value"] ?? null) == "false")) ? (0) : (($context["value"] ?? null)));
|
||||
// line 4
|
||||
echo "
|
||||
";
|
||||
// line 5
|
||||
if (($context["value"] ?? null)) {
|
||||
// line 6
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array())) {
|
||||
// line 7
|
||||
echo " <div class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
}
|
||||
// line 9
|
||||
echo "
|
||||
";
|
||||
// line 10
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 11
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 12
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 13
|
||||
echo " ";
|
||||
$context["value"] = $this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method");
|
||||
// line 14
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/conditional/conditional.html.twig", 14)->display($context);
|
||||
// line 15
|
||||
echo " ";
|
||||
}
|
||||
// line 16
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 17
|
||||
echo " ";
|
||||
}
|
||||
// line 18
|
||||
echo "
|
||||
";
|
||||
// line 19
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array())) {
|
||||
// line 20
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/conditional/conditional.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 96 => 20, 94 => 19, 91 => 18, 88 => 17, 74 => 16, 71 => 15, 68 => 14, 65 => 13, 62 => 12, 44 => 11, 42 => 10, 39 => 9, 33 => 7, 30 => 6, 28 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 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("{% set value = evaluate(field.condition) %}
|
||||
{% set value = value == 'true' ? 1 : value %}
|
||||
{% set value = value == 'false' ? 0 : value %}
|
||||
|
||||
{% if value %}
|
||||
{% if field.classes %}
|
||||
<div class=\"{{ field.classes }}\">
|
||||
{% endif %}
|
||||
|
||||
{% if field.fields %}
|
||||
{% for field in field.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = data.value(field.name) %}
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if field.classes %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
", "forms/fields/conditional/conditional.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/conditional/conditional.html.twig");
|
||||
}
|
||||
}
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/text/text.html.twig */
|
||||
class __TwigTemplate_9862170de84877e54fb0ed86a72cd79d8ecd4c6efc07c655187197b702dce5a2 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/text/text.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'prepend' => array($this, 'block_prepend'),
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
'append' => array($this, 'block_append'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_prepend($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
if ($this->getAttribute(($context["field"] ?? null), "prepend", array())) {
|
||||
// line 5
|
||||
echo " <div class=\"form-input-addon form-input-prepend\">
|
||||
";
|
||||
// line 6
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
// line 7
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "prepend", array()));
|
||||
} else {
|
||||
// line 9
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "prepend", array()));
|
||||
}
|
||||
// line 11
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 15
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 16
|
||||
echo " type=\"text\"
|
||||
";
|
||||
// line 17
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 20
|
||||
public function block_append($context, array $blocks = array())
|
||||
{
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "append", array())) {
|
||||
// line 22
|
||||
echo " <div class=\"form-input-addon form-input-append\">
|
||||
";
|
||||
// line 23
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
// line 24
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "append", array()));
|
||||
} else {
|
||||
// line 26
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "append", array()));
|
||||
}
|
||||
// line 28
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 32
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 33
|
||||
if (($this->getAttribute(($context["field"] ?? null), "prepend", array()) || $this->getAttribute(($context["field"] ?? null), "append", array()))) {
|
||||
// line 34
|
||||
echo " ";
|
||||
$context["field"] = twig_array_merge(($context["field"] ?? null), array("wrapper_classes" => "form-input-addon-wrapper"));
|
||||
}
|
||||
// line 36
|
||||
$this->displayParentBlock("input", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/text/text.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 97 => 36, 93 => 34, 91 => 33, 88 => 32, 82 => 28, 79 => 26, 76 => 24, 74 => 23, 71 => 22, 68 => 21, 65 => 20, 59 => 17, 56 => 16, 53 => 15, 47 => 11, 44 => 9, 41 => 7, 39 => 6, 36 => 5, 34 => 4, 31 => 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\" %}
|
||||
|
||||
{% block prepend %}
|
||||
{% if field.prepend %}
|
||||
<div class=\"form-input-addon form-input-prepend\">
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}
|
||||
{{- field.prepend|tu|raw -}}
|
||||
{% else %}
|
||||
{{- field.prepend|t|raw -}}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block input_attributes %}
|
||||
type=\"text\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block append %}
|
||||
{% if field.append %}
|
||||
<div class=\"form-input-addon form-input-append\">
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}
|
||||
{{- field.append|tu|raw -}}
|
||||
{% else %}
|
||||
{{- field.append|t|raw -}}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
{% if field.prepend or field.append %}
|
||||
{% set field = field|merge({'wrapper_classes': 'form-input-addon-wrapper'}) %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}", "forms/fields/text/text.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/text/text.html.twig");
|
||||
}
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/selectize/selectize.html.twig */
|
||||
class __TwigTemplate_d09f9954908d28943f85b012b7817e745e5bc4aaed99ed6d62368a0f3da0ab5f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/selectize/selectize.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'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())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " data-grav-selectize=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? (twig_array_merge(twig_array_merge($this->getAttribute(($context["field"] ?? null), "selectize", array()), array("create" => true)), array("items" => ($context["value"] ?? null)))) : (array("create" => true)))), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
// line 5
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 8
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 9
|
||||
echo " type=\"text\"
|
||||
";
|
||||
// line 10
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/selectize/selectize.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 49 => 10, 46 => 9, 43 => 8, 37 => 5, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize|merge({'create': true})|merge({'items':value}) : {'create': true})|json_encode()|e('html_attr') }}\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block input_attributes %}
|
||||
type=\"text\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
", "forms/fields/selectize/selectize.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/selectize/selectize.html.twig");
|
||||
}
|
||||
}
|
||||
+286
@@ -0,0 +1,286 @@
|
||||
<?php
|
||||
|
||||
/* partials/plugin-data.html.twig */
|
||||
class __TwigTemplate_aafd66838b73a719e5d2a7bb73e96e24e83eb7fcd3d69480808c5fd6c8b1cb1f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<table>
|
||||
";
|
||||
// line 2
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "author", array())) {
|
||||
// line 3
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AUTHOR"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\">
|
||||
";
|
||||
// line 6
|
||||
if ($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "url", array())) {
|
||||
// line 7
|
||||
echo " <a href=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "url", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "name", array()), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
} else {
|
||||
// line 9
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "name", array()), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 11
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "email", array())) {
|
||||
// line 12
|
||||
echo " - <a href=\"mailto:";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "email", array()), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "author", array()), "email", array()), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " </td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "homepage", array())) {
|
||||
// line 18
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.HOMEPAGE"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\"><a href=\"";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "homepage", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "homepage", array()), "html", null, true);
|
||||
echo "</a></td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "demo", array())) {
|
||||
// line 24
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DEMO"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\"><a href=\"";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "demo", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "demo", array()), "html", null, true);
|
||||
echo "</a></td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 29
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "bugs", array())) {
|
||||
// line 30
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 31
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BUG_TRACKER"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\"><a href=\"";
|
||||
// line 32
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "bugs", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "bugs", array()), "html", null, true);
|
||||
echo "</a></td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 35
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "keywords", array())) {
|
||||
// line 36
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 37
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.KEYWORDS"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\">";
|
||||
// line 38
|
||||
echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute(($context["plugin"] ?? null), "keywords", array()), ", "), "html", null, true);
|
||||
echo "</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 41
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "license", array())) {
|
||||
// line 42
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 43
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LICENSE"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\">";
|
||||
// line 44
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "license", array()), "html", null, true);
|
||||
echo "</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 47
|
||||
echo "
|
||||
";
|
||||
// line 48
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "description", array())) {
|
||||
// line 49
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 50
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DESCRIPTION"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\">";
|
||||
// line 51
|
||||
echo $this->getAttribute(($context["plugin"] ?? null), "description_html", array());
|
||||
echo "</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 54
|
||||
echo "
|
||||
";
|
||||
// line 55
|
||||
if (($this->getAttribute(($context["plugin"] ?? null), "readme", array()) || $this->getAttribute(($context["plugin"] ?? null), "homepage", array()))) {
|
||||
// line 56
|
||||
echo " ";
|
||||
$context["readme_link"] = (($this->getAttribute(($context["plugin"] ?? null), "readme", array())) ? ($this->getAttribute(($context["plugin"] ?? null), "readme", array())) : ((($this->getAttribute(($context["plugin"] ?? null), "docs", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["plugin"] ?? null), "docs", array()), ($this->getAttribute(($context["plugin"] ?? null), "homepage", array()) . "/blob/master/README.md"))) : (($this->getAttribute(($context["plugin"] ?? null), "homepage", array()) . "/blob/master/README.md")))));
|
||||
// line 57
|
||||
echo " <tr>
|
||||
<td>";
|
||||
// line 58
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.README"), "html", null, true);
|
||||
echo ":</td>
|
||||
<td class=\"double\"><a href=\"";
|
||||
// line 59
|
||||
echo twig_escape_filter($this->env, ($context["readme_link"] ?? null), "html", null, true);
|
||||
echo "\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, ($context["readme_link"] ?? null), "html", null, true);
|
||||
echo "</a></td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
// line 62
|
||||
echo "
|
||||
</table>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/plugin-data.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 191 => 62, 183 => 59, 179 => 58, 176 => 57, 173 => 56, 171 => 55, 168 => 54, 162 => 51, 158 => 50, 155 => 49, 153 => 48, 150 => 47, 144 => 44, 140 => 43, 137 => 42, 134 => 41, 128 => 38, 124 => 37, 121 => 36, 118 => 35, 110 => 32, 106 => 31, 103 => 30, 100 => 29, 92 => 26, 88 => 25, 85 => 24, 82 => 23, 74 => 20, 70 => 19, 67 => 18, 64 => 17, 59 => 14, 51 => 12, 48 => 11, 42 => 9, 34 => 7, 32 => 6, 27 => 4, 24 => 3, 22 => 2, 19 => 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("<table>
|
||||
{% if plugin.author %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.AUTHOR\"|tu }}:</td>
|
||||
<td class=\"double\">
|
||||
{% if plugin.author.url %}
|
||||
<a href=\"{{ plugin.author.url }}\" target=\"_blank\">{{ plugin.author.name }}</a>
|
||||
{% else %}
|
||||
{{ plugin.author.name }}
|
||||
{% endif %}
|
||||
{% if plugin.author.email %}
|
||||
- <a href=\"mailto:{{ plugin.author.email }}\">{{ plugin.author.email }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if plugin.homepage %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.HOMEPAGE\"|tu }}:</td>
|
||||
<td class=\"double\"><a href=\"{{ plugin.homepage }}\" target=\"_blank\">{{ plugin.homepage }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if plugin.demo %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.DEMO\"|tu }}:</td>
|
||||
<td class=\"double\"><a href=\"{{ plugin.demo }}\" target=\"_blank\">{{ plugin.demo }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if plugin.bugs %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.BUG_TRACKER\"|tu }}:</td>
|
||||
<td class=\"double\"><a href=\"{{ plugin.bugs }}\" target=\"_blank\">{{ plugin.bugs }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if plugin.keywords %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.KEYWORDS\"|tu }}:</td>
|
||||
<td class=\"double\">{{ plugin.keywords|join(', ') }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if plugin.license %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.LICENSE\"|tu }}:</td>
|
||||
<td class=\"double\">{{ plugin.license }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if plugin.description %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.DESCRIPTION\"|tu }}:</td>
|
||||
<td class=\"double\">{{ plugin.description_html|raw }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if plugin.readme or plugin.homepage %}
|
||||
{% set readme_link = plugin.readme ?: plugin.docs|default(plugin.homepage ~ '/blob/master/README.md') %}
|
||||
<tr>
|
||||
<td>{{ \"PLUGIN_ADMIN.README\"|tu }}:</td>
|
||||
<td class=\"double\"><a href=\"{{ readme_link }}\" target=\"_blank\">{{ readme_link }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
</table>
|
||||
", "partials/plugin-data.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugin-data.html.twig");
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
/* modular/contenu.html.twig */
|
||||
class __TwigTemplate_a3dc30a235b8062e3d6aa8db625f4ae9e4d1ef8a758663d8667bf4f67c185dc8 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
}
|
||||
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo "
|
||||
<h2>";
|
||||
// line 5
|
||||
echo $this->getAttribute(($context["header"] ?? null), "title", array());
|
||||
echo "</h2>
|
||||
|
||||
";
|
||||
// line 7
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 9
|
||||
echo "
|
||||
<div id=\"";
|
||||
// line 10
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\" class=\"column\">
|
||||
";
|
||||
// line 11
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 14
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular/contenu.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 65 => 1, 61 => 14, 52 => 11, 48 => 10, 45 => 9, 41 => 8, 37 => 7, 32 => 5, 29 => 4, 23 => 3, 20 => 2,);
|
||||
}
|
||||
|
||||
/** @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("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>{{ header.title }}</h2>
|
||||
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
|
||||
<div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"column\">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular/contenu.html.twig", "/home/kevin/Sites/static-ethica.net/user/themes/ethica/templates/modular/contenu.html.twig");
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-toggle.html.twig */
|
||||
class __TwigTemplate_9e339ad97d5feac1bb45bc9a07f31f58f1658b71a0579c554aae0e85327166c6 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<button class=\"lines-button x\" type=\"button\" role=\"button\" aria-label=\"Toggle Navigation\" data-sidebar-mobile-toggle>
|
||||
<span class=\"lines\"></span>
|
||||
</button>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/nav-toggle.html.twig";
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("<button class=\"lines-button x\" type=\"button\" role=\"button\" aria-label=\"Toggle Navigation\" data-sidebar-mobile-toggle>
|
||||
<span class=\"lines\"></span>
|
||||
</button>
|
||||
", "partials/nav-toggle.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav-toggle.html.twig");
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
/* partials/stylesheets.html.twig */
|
||||
class __TwigTemplate_0ad35e889d2086a4dbb9ebce1969e775e33bbefc77151e000e70aa05ad09b34e extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css-compiled/nucleus.css")), "method");
|
||||
// line 2
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css-compiled/template.css")), "method");
|
||||
// line 3
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css-compiled/preset.css")), "method");
|
||||
// line 4
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "google_fonts", array())) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css-compiled/fonts.css")), "method");
|
||||
} else {
|
||||
// line 7
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css-compiled/simple-fonts.css")), "method");
|
||||
}
|
||||
// line 9
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/font-awesome.min.css")), "method");
|
||||
// line 10
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/chartist.min.css")), "method");
|
||||
// line 11
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/selectize.min.css")), "method");
|
||||
// line 12
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/hint.base.min.css")), "method");
|
||||
// line 13
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/iconpicker.css")), "method");
|
||||
// line 14
|
||||
if (((($this->getAttribute(($context["browser"] ?? null), "getBrowser", array()) == "msie") && ($this->getAttribute(($context["browser"] ?? null), "getVersion", array()) >= 8)) && ($this->getAttribute(($context["browser"] ?? null), "getVersion", array()) <= 9))) {
|
||||
// line 15
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/nucleus-ie9.css")), "method");
|
||||
// line 16
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/pure-0.5.0/grids-min.css")), "method");
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/stylesheets.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 50 => 16, 47 => 15, 45 => 14, 43 => 13, 41 => 12, 39 => 11, 37 => 10, 35 => 9, 31 => 7, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 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("{% do assets.addCss(theme_url~'/css-compiled/nucleus.css') %}
|
||||
{% do assets.addCss(theme_url~'/css-compiled/template.css') %}
|
||||
{% do assets.addCss(theme_url~'/css-compiled/preset.css') %}
|
||||
{% if config.plugins.admin.google_fonts %}
|
||||
{% do assets.addCss(theme_url~'/css-compiled/fonts.css') %}
|
||||
{% else %}
|
||||
{% do assets.addCss(theme_url~'/css-compiled/simple-fonts.css') %}
|
||||
{% endif %}
|
||||
{% do assets.addCss(theme_url~'/css/font-awesome.min.css') %}
|
||||
{% do assets.addCss(theme_url~'/css/chartist.min.css') %}
|
||||
{% do assets.addCss(theme_url~'/css/selectize.min.css') %}
|
||||
{% do assets.addCss(theme_url~'/css/hint.base.min.css') %}
|
||||
{% do assets.addCss(theme_url~'/css/iconpicker.css') %}
|
||||
{% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
|
||||
{% do assets.addCss(theme_url~'/css/nucleus-ie9.css') %}
|
||||
{% do assets.addCss(theme_url~'/css/pure-0.5.0/grids-min.css') %}
|
||||
{% endif %}
|
||||
", "partials/stylesheets.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/stylesheets.html.twig");
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/password/password.html.twig */
|
||||
class __TwigTemplate_4891545ac65630caa5b6f831a88ba0dabd08b5e44791c72e843e0898e4aca499 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/password/password.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'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())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " type=\"password\"
|
||||
class=\"input\"
|
||||
";
|
||||
// line 6
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/password/password.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 35 => 6, 31 => 4, 28 => 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\" %}
|
||||
|
||||
{% block input_attributes %}
|
||||
type=\"password\"
|
||||
class=\"input\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
", "forms/fields/password/password.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/password/password.html.twig");
|
||||
}
|
||||
}
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/range/range.html.twig */
|
||||
class __TwigTemplate_a51cc74a3f950934554e6c0f64c3124d6e5db8b7b3fc076ea33fb1af7a5148f2 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/range/range.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
'append' => array($this, 'block_append'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " type=\"range\"
|
||||
class=\"rangefield ";
|
||||
// line 5
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo " ";
|
||||
}
|
||||
echo "\"
|
||||
";
|
||||
// line 6
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) {
|
||||
echo "min=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 7
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) {
|
||||
echo "max=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 8
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "step", array())) {
|
||||
echo "step=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "step", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 9
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
// line 10
|
||||
echo " id=\"range_";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array())), ".", "_"), "html", null, true);
|
||||
echo "\"
|
||||
oninput=\"number_";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array())), ".", "_"), "html", null, true);
|
||||
echo "_output.value = this.value\"
|
||||
";
|
||||
} else {
|
||||
// line 13
|
||||
echo " id=\"range_";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array())), ".", "_"), "html", null, true);
|
||||
echo "\"
|
||||
oninput=\"number_";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array())), ".", "_"), "html", null, true);
|
||||
echo "_output.value = this.value\"
|
||||
";
|
||||
}
|
||||
// line 16
|
||||
echo " ";
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 18
|
||||
public function block_append($context, array $blocks = array())
|
||||
{
|
||||
// line 19
|
||||
echo " <input
|
||||
type=\"number\"
|
||||
class=\"rangefield ";
|
||||
// line 21
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo " ";
|
||||
}
|
||||
echo "\"
|
||||
";
|
||||
// line 22
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) {
|
||||
echo "min=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) {
|
||||
echo "max=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 24
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "step", array())) {
|
||||
echo "step=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "step", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 25
|
||||
echo " ";
|
||||
if (($context["value"] ?? null)) {
|
||||
// line 26
|
||||
echo " value=\"";
|
||||
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
} elseif ($this->getAttribute( // line 27
|
||||
($context["field"] ?? null), "default", array())) {
|
||||
// line 28
|
||||
echo " value=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "default", array()), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
} else {
|
||||
// line 30
|
||||
echo " value=\"0\"
|
||||
";
|
||||
}
|
||||
// line 32
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
// line 33
|
||||
echo " id=\"number_";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array())), ".", "_"), "html", null, true);
|
||||
echo "_output\"
|
||||
oninput=\"range_";
|
||||
// line 34
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array())), ".", "_"), "html", null, true);
|
||||
echo ".value = this.value\"
|
||||
";
|
||||
} else {
|
||||
// line 36
|
||||
echo " id=\"number_";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array())), ".", "_"), "html", null, true);
|
||||
echo "_output\"
|
||||
oninput=\"range_";
|
||||
// line 37
|
||||
echo twig_escape_filter($this->env, twig_replace_filter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array())), ".", "_"), "html", null, true);
|
||||
echo ".value = this.value\"
|
||||
";
|
||||
}
|
||||
// line 39
|
||||
echo " />
|
||||
<span class=\"range-append\">";
|
||||
// line 40
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "append", array()), "html", null, true);
|
||||
echo "</span>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/range/range.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 172 => 40, 169 => 39, 164 => 37, 159 => 36, 154 => 34, 149 => 33, 146 => 32, 142 => 30, 136 => 28, 134 => 27, 129 => 26, 126 => 25, 119 => 24, 112 => 23, 106 => 22, 99 => 21, 95 => 19, 92 => 18, 85 => 16, 80 => 14, 75 => 13, 70 => 11, 65 => 10, 62 => 9, 55 => 8, 48 => 7, 42 => 6, 35 => 5, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block input_attributes %}
|
||||
type=\"range\"
|
||||
class=\"rangefield {% if field.classes is defined %}{{ field.classes }} {% endif %}\"
|
||||
{% if field.validate.min %}min=\"{{ field.validate.min }}\"{% endif %}
|
||||
{% if field.validate.max %}max=\"{{ field.validate.max }}\"{% endif %}
|
||||
{% if field.validate.step %}step=\"{{ field.validate.step }}\"{% endif %}
|
||||
{% if field.id is defined %}
|
||||
id=\"range_{{ field.id|e|replace('.', '_') }}\"
|
||||
oninput=\"number_{{ field.id|e|replace('.', '_') }}_output.value = this.value\"
|
||||
{% else %}
|
||||
id=\"range_{{ field.name|e|replace('.', '_') }}\"
|
||||
oninput=\"number_{{ field.name|e|replace('.', '_') }}_output.value = this.value\"
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
{% block append %}
|
||||
<input
|
||||
type=\"number\"
|
||||
class=\"rangefield {% if field.classes is defined %}{{ field.classes }} {% endif %}\"
|
||||
{% if field.validate.min %}min=\"{{ field.validate.min }}\"{% endif %}
|
||||
{% if field.validate.max %}max=\"{{ field.validate.max }}\"{% endif %}
|
||||
{% if field.validate.step %}step=\"{{ field.validate.step }}\"{% endif %}
|
||||
{% if value %}
|
||||
value=\"{{ value }}\"
|
||||
{% elseif field.default %}
|
||||
value=\"{{ field.default }}\"
|
||||
{% else %}
|
||||
value=\"0\"
|
||||
{% endif %}
|
||||
{% if field.id is defined %}
|
||||
id=\"number_{{ field.id|e|replace('.', '_') }}_output\"
|
||||
oninput=\"range_{{ field.id|e|replace('.', '_') }}.value = this.value\"
|
||||
{% else %}
|
||||
id=\"number_{{ field.name|e|replace('.', '_') }}_output\"
|
||||
oninput=\"range_{{ field.name|e|replace('.', '_') }}.value = this.value\"
|
||||
{% endif %}
|
||||
/>
|
||||
<span class=\"range-append\">{{ field.append }}</span>
|
||||
|
||||
{% endblock append %}
|
||||
", "forms/fields/range/range.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/range/range.html.twig");
|
||||
}
|
||||
}
|
||||
+396
@@ -0,0 +1,396 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav.html.twig */
|
||||
class __TwigTemplate_39737bbb11556c4fbf1ba15dc5ddf6fb9523cff98c7b91565822b92440d21171 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.login", 1 => "admin.super"))) {
|
||||
// line 2
|
||||
echo " <nav id=\"admin-sidebar\" data-quickopen=\"";
|
||||
echo ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "sidebar", array()), "activate", array()) == "hover")) ? ("true") : ("false"));
|
||||
echo "\" data-quickopen-delay=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "sidebar", array()), "hover_delay", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 3
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "sidebar", array()), "activate", array()) != "hover")) {
|
||||
// line 4
|
||||
echo " <div id=\"open-handle\" data-sidebar-toggle><i class=\"fa fa-angle-double-right\"></i></div>
|
||||
";
|
||||
}
|
||||
// line 6
|
||||
echo "
|
||||
<div id=\"admin-logo\">
|
||||
";
|
||||
// line 8
|
||||
$this->loadTemplate("partials/logo.html.twig", "partials/nav.html.twig", 8)->display($context);
|
||||
// line 9
|
||||
echo " </div>
|
||||
|
||||
";
|
||||
// line 11
|
||||
$this->loadTemplate("partials/nav-user-details.html.twig", "partials/nav.html.twig", 11)->display($context);
|
||||
// line 12
|
||||
echo "
|
||||
";
|
||||
// line 13
|
||||
$this->loadTemplate("partials/nav-quick-tray.html.twig", "partials/nav.html.twig", 13)->display($context);
|
||||
// line 14
|
||||
echo "
|
||||
<div class=\"admin-menu-wrapper\">
|
||||
<ul id=\"admin-menu\">
|
||||
<li class=\"";
|
||||
// line 17
|
||||
echo (((($context["location"] ?? null) == "dashboard")) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-fw fa-th\"></i><em>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD"), "html", null, true);
|
||||
echo "</em></a>
|
||||
</li>
|
||||
";
|
||||
// line 20
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration", 1 => "admin.super"))) {
|
||||
// line 21
|
||||
echo " <li class=\"";
|
||||
echo (((((($context["location"] ?? null) == "system") || (($context["location"] ?? null) == "site")) || (($context["location"] ?? null) == "config"))) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 22
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/config/system\"><i class=\"fa fa-fw fa-wrench\"></i><em>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIGURATION"), "html", null, true);
|
||||
echo "</em></a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 25
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.pages", 1 => "admin.super"))) {
|
||||
// line 26
|
||||
echo " <li class=\"";
|
||||
echo (((($context["location"] ?? null) == "pages")) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 27
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/pages\">
|
||||
<i class=\"fa fa-fw fa-file-text-o\"></i>
|
||||
<em>";
|
||||
// line 29
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PAGES"), "html", null, true);
|
||||
echo "</em>
|
||||
<span class=\"badges\">
|
||||
<span class=\"badge count\">";
|
||||
// line 31
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "pagesCount", array()), "html", null, true);
|
||||
echo "</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 36
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_nav", array())) {
|
||||
// line 37
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_nav", array()));
|
||||
foreach ($context['_seq'] as $context["label"] => $context["item"]) {
|
||||
// line 38
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(((($this->getAttribute($context["item"], "authorize", array(), "any", true, true) && twig_test_iterable($this->getAttribute($context["item"], "authorize", array())))) ? ($this->getAttribute($context["item"], "authorize", array())) : (array(0 => (($this->getAttribute($context["item"], "authorize", array())) ? ($this->getAttribute($context["item"], "authorize", array())) : (("admin." . (($this->getAttribute($context["item"], "location", array())) ? ($this->getAttribute($context["item"], "location", array())) : ($this->getAttribute($context["item"], "route", array())))))), 1 => "admin.super"))))) {
|
||||
// line 39
|
||||
echo " <li class=\"";
|
||||
echo (((($context["location"] ?? null) == (($this->getAttribute($context["item"], "location", array())) ? ($this->getAttribute($context["item"], "location", array())) : ($this->getAttribute($context["item"], "route", array()))))) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 40
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute($context["item"], "route", array())) ? ($this->getAttribute($context["item"], "route", array())) : ($this->getAttribute($context["item"], "location", array()))), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw ";
|
||||
// line 41
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
<em>";
|
||||
// line 42
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($context["label"]), "html", null, true);
|
||||
echo "</em>
|
||||
";
|
||||
// line 43
|
||||
if ($this->getAttribute($context["item"], "badge", array())) {
|
||||
// line 44
|
||||
echo " <span class=\"badges ";
|
||||
if ($this->getAttribute($this->getAttribute($context["item"], "badge", array(), "any", false, true), "updates", array(), "any", true, true)) {
|
||||
echo "with-updates";
|
||||
}
|
||||
echo "\">
|
||||
";
|
||||
// line 45
|
||||
if ($this->getAttribute($this->getAttribute($context["item"], "badge", array(), "any", false, true), "updates", array(), "any", true, true)) {
|
||||
echo "<span class=\"badge updates\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "badge", array()), "updates", array()), "html", null, true);
|
||||
echo "</span>";
|
||||
}
|
||||
// line 46
|
||||
echo " <span class=\"badge count\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["item"], "badge", array()), "count", array()), "html", null, true);
|
||||
echo "</span>
|
||||
</span>
|
||||
";
|
||||
}
|
||||
// line 49
|
||||
echo " </a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 52
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['label'], $context['item'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 53
|
||||
echo " ";
|
||||
}
|
||||
// line 54
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.plugins", 1 => "admin.super"))) {
|
||||
// line 55
|
||||
echo " <li class=\"";
|
||||
echo (((($context["location"] ?? null) == "plugins")) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 56
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/plugins\">
|
||||
<i class=\"fa fa-fw fa-plug\"></i>
|
||||
<em>";
|
||||
// line 58
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS"), "html", null, true);
|
||||
echo "</em>
|
||||
<span class=\"badges\">
|
||||
<span class=\"badge updates\"></span>
|
||||
<span class=\"badge count\">";
|
||||
// line 61
|
||||
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "plugins", array())), "html", null, true);
|
||||
echo "</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 66
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.themes", 1 => "admin.super"))) {
|
||||
// line 67
|
||||
echo " <li class=\"";
|
||||
echo (((($context["location"] ?? null) == "themes")) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 68
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes\">
|
||||
<i class=\"fa fa-fw fa-tint\"></i>
|
||||
<em>";
|
||||
// line 70
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES"), "html", null, true);
|
||||
echo "</em>
|
||||
<span class=\"badges\">
|
||||
<span class=\"badge updates\"></span>
|
||||
<span class=\"badge count\">";
|
||||
// line 73
|
||||
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "themes", array())), "html", null, true);
|
||||
echo "</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 78
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.tools", 1 => "admin.super"))) {
|
||||
// line 79
|
||||
echo " <li class=\"";
|
||||
echo (((($context["location"] ?? null) == "tools")) ? ("selected") : (""));
|
||||
echo "\">
|
||||
<a href=\"";
|
||||
// line 80
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/tools\">
|
||||
<i class=\"fa fa-fw fa-briefcase\"></i>
|
||||
<em>";
|
||||
// line 82
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.TOOLS"), "html", null, true);
|
||||
echo "</em>
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 86
|
||||
echo "
|
||||
";
|
||||
// line 87
|
||||
try {
|
||||
$this->loadTemplate("partials/nav-pro.html.twig", "partials/nav.html.twig", 87)->display($context);
|
||||
} catch (Twig_Error_Loader $e) {
|
||||
// ignore missing template
|
||||
}
|
||||
|
||||
// line 88
|
||||
echo "
|
||||
<li>
|
||||
<a href=\"";
|
||||
// line 90
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["base_url_relative"] ?? null) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "logout"), 1 => "logout-form", 2 => "logout-nonce"), "method"), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-fw fa-sign-out\"></i><em>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGOUT"), "html", null, true);
|
||||
echo "</em></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/nav.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 262 => 90, 258 => 88, 251 => 87, 248 => 86, 241 => 82, 236 => 80, 231 => 79, 228 => 78, 220 => 73, 214 => 70, 209 => 68, 204 => 67, 201 => 66, 193 => 61, 187 => 58, 182 => 56, 177 => 55, 174 => 54, 171 => 53, 165 => 52, 160 => 49, 153 => 46, 147 => 45, 140 => 44, 138 => 43, 134 => 42, 130 => 41, 124 => 40, 119 => 39, 116 => 38, 111 => 37, 108 => 36, 100 => 31, 95 => 29, 90 => 27, 85 => 26, 82 => 25, 74 => 22, 69 => 21, 67 => 20, 60 => 18, 56 => 17, 51 => 14, 49 => 13, 46 => 12, 44 => 11, 40 => 9, 38 => 8, 34 => 6, 30 => 4, 28 => 3, 21 => 2, 19 => 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 authorize(['admin.login', 'admin.super']) %}
|
||||
<nav id=\"admin-sidebar\" data-quickopen=\"{{ config.plugins.admin.sidebar.activate == 'hover' ? 'true' : 'false' }}\" data-quickopen-delay=\"{{ config.plugins.admin.sidebar.hover_delay }}\">
|
||||
{% if config.plugins.admin.sidebar.activate != 'hover' %}
|
||||
<div id=\"open-handle\" data-sidebar-toggle><i class=\"fa fa-angle-double-right\"></i></div>
|
||||
{% endif %}
|
||||
|
||||
<div id=\"admin-logo\">
|
||||
{% include 'partials/logo.html.twig' %}
|
||||
</div>
|
||||
|
||||
{% include 'partials/nav-user-details.html.twig' %}
|
||||
|
||||
{% include 'partials/nav-quick-tray.html.twig' %}
|
||||
|
||||
<div class=\"admin-menu-wrapper\">
|
||||
<ul id=\"admin-menu\">
|
||||
<li class=\"{{ (location == 'dashboard') ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}\"><i class=\"fa fa-fw fa-th\"></i><em>{{ \"PLUGIN_ADMIN.DASHBOARD\"|tu }}</em></a>
|
||||
</li>
|
||||
{% if authorize(['admin.configuration', 'admin.super']) %}
|
||||
<li class=\"{{ (location == 'system' or location == 'site' or location == 'config') ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}/config/system\"><i class=\"fa fa-fw fa-wrench\"></i><em>{{ \"PLUGIN_ADMIN.CONFIGURATION\"|tu }}</em></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if authorize(['admin.pages', 'admin.super']) %}
|
||||
<li class=\"{{ (location == 'pages') ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}/pages\">
|
||||
<i class=\"fa fa-fw fa-file-text-o\"></i>
|
||||
<em>{{ \"PLUGIN_ADMIN.PAGES\"|tu }}</em>
|
||||
<span class=\"badges\">
|
||||
<span class=\"badge count\">{{ admin.pagesCount }}</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if grav.twig.plugins_hooked_nav %}
|
||||
{% for label, item in grav.twig.plugins_hooked_nav %}
|
||||
{% if authorize((item.authorize is defined and item.authorize is iterable) ? item.authorize : [item.authorize ?: ('admin.' ~ (item.location ?: item.route)), 'admin.super']) %}
|
||||
<li class=\"{{ (location == (item.location ?: item.route)) ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}/{{ item.route ?: item.location }}\">
|
||||
<i class=\"fa fa-fw {{ item.icon }}\"></i>
|
||||
<em>{{ label|tu }}</em>
|
||||
{% if item.badge %}
|
||||
<span class=\"badges {% if item.badge.updates is defined %}with-updates{% endif %}\">
|
||||
{% if item.badge.updates is defined %}<span class=\"badge updates\">{{ item.badge.updates }}</span>{% endif %}
|
||||
<span class=\"badge count\">{{ item.badge.count }}</span>
|
||||
</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if authorize(['admin.plugins', 'admin.super']) %}
|
||||
<li class=\"{{ (location == 'plugins') ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}/plugins\">
|
||||
<i class=\"fa fa-fw fa-plug\"></i>
|
||||
<em>{{ \"PLUGIN_ADMIN.PLUGINS\"|tu }}</em>
|
||||
<span class=\"badges\">
|
||||
<span class=\"badge updates\"></span>
|
||||
<span class=\"badge count\">{{ admin.plugins|length }}</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if authorize(['admin.themes', 'admin.super']) %}
|
||||
<li class=\"{{ (location == 'themes') ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}/themes\">
|
||||
<i class=\"fa fa-fw fa-tint\"></i>
|
||||
<em>{{ \"PLUGIN_ADMIN.THEMES\"|tu }}</em>
|
||||
<span class=\"badges\">
|
||||
<span class=\"badge updates\"></span>
|
||||
<span class=\"badge count\">{{ admin.themes|length }}</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if authorize(['admin.tools', 'admin.super']) %}
|
||||
<li class=\"{{ (location == 'tools') ? 'selected' : '' }}\">
|
||||
<a href=\"{{ base_url_relative }}/tools\">
|
||||
<i class=\"fa fa-fw fa-briefcase\"></i>
|
||||
<em>{{ \"PLUGIN_ADMIN.TOOLS\"|tu }}</em>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% include 'partials/nav-pro.html.twig' ignore missing %}
|
||||
|
||||
<li>
|
||||
<a href=\"{{ uri.addNonce(base_url_relative ~ '/task' ~ config.system.param_sep ~ 'logout', 'logout-form', 'logout-nonce') }}\"><i class=\"fa fa-fw fa-sign-out\"></i><em>{{ \"PLUGIN_ADMIN.LOGOUT\"|tu }}</em></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% endif %}
|
||||
", "partials/nav.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav.html.twig");
|
||||
}
|
||||
}
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/pagemedia/pagemedia.html.twig */
|
||||
class __TwigTemplate_2632738a5f1bdeca1e559f4187bcaa38fa37cb75fe64bd53635ee50ce53262d6 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
if ($this->getAttribute(($context["context"] ?? null), "folderExists", array())) {
|
||||
// line 4
|
||||
echo "<div class=\"form-field grid vertical ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
}
|
||||
echo "\">
|
||||
<div class=\"form-label\">
|
||||
<label>";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
|
||||
echo "</label>
|
||||
</div>
|
||||
<div class=\"form-data form-uploads-wrapper\">
|
||||
";
|
||||
// line 9
|
||||
$context["uploadLimit"] = (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "system", array()), "media", array()), "upload_limit", array()) / 1024) / 1024);
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["dropzoneSettings"] = array("maxFileSize" => ($context["uploadLimit"] ?? null));
|
||||
// line 11
|
||||
echo " <div id=\"grav-dropzone\"
|
||||
class=\"dropzone\"
|
||||
data-media-url=\"";
|
||||
// line 13
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "/media/";
|
||||
echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute(($context["admin"] ?? null), "route", array()), "/"), "html", null, true);
|
||||
echo ".json\"
|
||||
data-media-local=\"";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url_relative_frontend"] ?? null), "/"), "html", null, true);
|
||||
echo "/";
|
||||
echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute(($context["admin"] ?? null), "route", array()), "/"), "html", null, true);
|
||||
echo "\"
|
||||
data-media-path=\"";
|
||||
// line 15
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc($this->getAttribute(($context["context"] ?? null), "relativePagePath", array())), "html", null, true);
|
||||
echo "\"
|
||||
data-dropzone-options=\"";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["dropzoneSettings"] ?? null)), "html_attr");
|
||||
echo "\"
|
||||
data-dropzone-field=\"";
|
||||
// line 17
|
||||
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 "\"></div>
|
||||
|
||||
";
|
||||
// line 19
|
||||
if (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "session", array()), "expert", array()) == "0")) {
|
||||
// line 20
|
||||
echo " <input type=\"hidden\" name=\"";
|
||||
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=\"";
|
||||
echo twig_escape_filter($this->env, ($context["value"] ?? null));
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
// line 22
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 25
|
||||
echo "<div class=\"form-tab\">
|
||||
<div class=\"form-field\">
|
||||
<div class=\"form-label\">
|
||||
";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANNOT_ADD_MEDIA_FILES_PAGE_NOT_SAVED"), "html", null, true);
|
||||
echo "
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/pagemedia/pagemedia.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 94 => 28, 89 => 25, 84 => 22, 76 => 20, 74 => 19, 69 => 17, 65 => 16, 61 => 15, 55 => 14, 49 => 13, 45 => 11, 42 => 10, 40 => 9, 34 => 6, 26 => 4, 24 => 3, 21 => 2, 19 => 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("{% set value = (value is null ? field.default : value) %}
|
||||
|
||||
{% if context.folderExists %}
|
||||
<div class=\"form-field grid vertical {% if field.classes is defined %}{{ field.classes }}{% endif %}\">
|
||||
<div class=\"form-label\">
|
||||
<label>{{ field.label|tu }}</label>
|
||||
</div>
|
||||
<div class=\"form-data form-uploads-wrapper\">
|
||||
{% set uploadLimit = grav.config.system.media.upload_limit / 1024 / 1024 %}
|
||||
{% set dropzoneSettings = { maxFileSize: uploadLimit } %}
|
||||
<div id=\"grav-dropzone\"
|
||||
class=\"dropzone\"
|
||||
data-media-url=\"{{ base_url }}/media/{{ admin.route|trim('/') }}.json\"
|
||||
data-media-local=\"{{ base_url_relative_frontend|rtrim('/') }}/{{ admin.route|trim('/') }}\"
|
||||
data-media-path=\"{{ url(context.relativePagePath) }}\"
|
||||
data-dropzone-options=\"{{ dropzoneSettings|json_encode|e('html_attr') }}\"
|
||||
data-dropzone-field=\"{{ (scope ~ field.name)|fieldName }}\"></div>
|
||||
|
||||
{% if admin.session.expert == '0' %}
|
||||
<input type=\"hidden\" name=\"{{ (scope ~ field.name)|fieldName }}\" value=\"{{ value|e }}\" />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class=\"form-tab\">
|
||||
<div class=\"form-field\">
|
||||
<div class=\"form-label\">
|
||||
{{ \"PLUGIN_ADMIN.CANNOT_ADD_MEDIA_FILES_PAGE_NOT_SAVED\"|tu }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
", "forms/fields/pagemedia/pagemedia.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig");
|
||||
}
|
||||
}
|
||||
+360
@@ -0,0 +1,360 @@
|
||||
<?php
|
||||
|
||||
/* partials/themes-list.html.twig */
|
||||
class __TwigTemplate_d26acc8c61e336dc4dad5700a7e0e14ccf0777d6be069277d7511fe1a2c54165 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"grav-update themes\"></div>
|
||||
";
|
||||
// line 2
|
||||
if (($context["installing"] ?? null)) {
|
||||
// line 3
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/release-toggle.html.twig", "partials/themes-list.html.twig", 3)->display($context);
|
||||
}
|
||||
// line 5
|
||||
$this->loadTemplate("partials/list-sort.html.twig", "partials/themes-list.html.twig", 5)->display(array_merge($context, array("list_view" => "themes")));
|
||||
// line 6
|
||||
echo "<h1>
|
||||
";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, ((($context["installing"] ?? null)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVAILABLE_THEMES")) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLED_THEMES"))), "html", null, true);
|
||||
echo "
|
||||
</h1>
|
||||
<form>
|
||||
<div class=\"gpm-search\">
|
||||
<input type=\"text\" placeholder=\"";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.RESOURCE_FILTER"), "html", null, true);
|
||||
echo "\" data-gpm-filter>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class=\"themes card-row grid fixed-blocks pure-g\">
|
||||
";
|
||||
// line 16
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('Grav\Common\Twig\TwigExtension')->ksortFilter($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "themes", array(0 => !($context["installing"] ?? null)), "method"), "toArray", array())));
|
||||
$context['_iterated'] = false;
|
||||
foreach ($context['_seq'] as $context["slug"] => $context["theme"]) {
|
||||
// line 17
|
||||
echo " ";
|
||||
$context["state"] = "inactive";
|
||||
// line 18
|
||||
echo " ";
|
||||
if (($context["installing"] ?? null)) {
|
||||
$context["state"] = "installing";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["config"] ?? null), "get", array(0 => "system.pages.theme"), "method") == $context["slug"])) {
|
||||
$context["state"] = "active";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
$context["isTestingRelease"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isTestingRelease", array(0 => $context["slug"]), "method");
|
||||
// line 21
|
||||
echo " ";
|
||||
$context["releaseDate"] = (($this->getAttribute($context["theme"], "date", array())) ? ($this->getAttribute($context["theme"], "date", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "findPackage", array(0 => $context["slug"], 1 => true), "method"), "date", array())));
|
||||
// line 22
|
||||
echo "
|
||||
<div class=\"theme card-item pure-u-1-3 ";
|
||||
// line 23
|
||||
echo twig_escape_filter($this->env, ($context["state"] ?? null), "html", null, true);
|
||||
echo "-theme\" data-gpm-theme=\"";
|
||||
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
|
||||
echo "\" data-gpm-name=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "name", array()), "html", null, true);
|
||||
echo "\" data-gpm-release-date=\"";
|
||||
echo twig_escape_filter($this->env, ($context["releaseDate"] ?? null), "html", null, true);
|
||||
echo "\" data-gpm-author=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["theme"], "author", array()), "name", array()), "html", null, true);
|
||||
echo "\" data-gpm-official=\"";
|
||||
echo (($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["theme"]), "method")) ? ("1") : ("2"));
|
||||
echo "\" data-gpm-updatable=\"";
|
||||
echo (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isUpdatable", array(0 => $context["slug"]), "method")) ? ("1") : ("2"));
|
||||
echo "\" data-gpm-enabled=\"";
|
||||
echo (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("1") : ("2"));
|
||||
echo "\" data-gpm-testing=\"";
|
||||
echo ((($context["isTestingRelease"] ?? null)) ? ("1") : ("2"));
|
||||
echo "\">
|
||||
<div class=\"gpm-name\">
|
||||
<i class=\"fa fa-fw fa-";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
<a href=\"";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes/";
|
||||
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "name", array()), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 27
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["theme"]), "method")) {
|
||||
// line 28
|
||||
echo " <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_THEME"), "html", null, true);
|
||||
echo "\"></i></span></small>
|
||||
";
|
||||
}
|
||||
// line 30
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => $context["theme"]), "method")) {
|
||||
// line 31
|
||||
echo " <small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true);
|
||||
echo "</span></small>
|
||||
";
|
||||
}
|
||||
// line 33
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["theme"], "symlink", array())) {
|
||||
// line 34
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME_SYMBOLICALLY_LINKED"), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</span>
|
||||
";
|
||||
}
|
||||
// line 38
|
||||
echo " <span class=\"gpm-version\">v";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "version", array()), "html", null, true);
|
||||
echo "</span>
|
||||
";
|
||||
// line 39
|
||||
if (($context["isTestingRelease"] ?? null)) {
|
||||
echo "<span class=\"gpm-testing\">test release</span>";
|
||||
}
|
||||
// line 40
|
||||
echo " </div>
|
||||
<div class=\"gpm-screenshot\">
|
||||
";
|
||||
// line 42
|
||||
$context["thumb"] = ((($context["installing"] ?? null)) ? (("//getgrav.org/images/" . $this->getAttribute($context["theme"], "screenshot", array()))) : ($this->getAttribute($context["theme"], "thumbnail", array())));
|
||||
// line 43
|
||||
echo " <a href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/themes/";
|
||||
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
|
||||
echo "\"><img src=\"";
|
||||
echo twig_escape_filter($this->env, ($context["thumb"] ?? null), "html", null, true);
|
||||
echo "\" /></a>
|
||||
</div>
|
||||
";
|
||||
// line 45
|
||||
if ((($context["state"] ?? null) == "installing")) {
|
||||
// line 46
|
||||
echo " <div class=\"gpm-actions\">
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"";
|
||||
// line 47
|
||||
echo twig_escape_filter($this->env, $context["slug"], "html", null, true);
|
||||
echo "\" data-theme-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
";
|
||||
} elseif (( // line 49
|
||||
($context["state"] ?? null) == "active")) {
|
||||
// line 50
|
||||
echo " <div class=\"gpm-actions\">
|
||||
<i class=\"fa fa-star\"></i> ";
|
||||
// line 51
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACTIVE_THEME"), "html", null, true);
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 54
|
||||
echo " <a data-remodal-target=\"theme-switch-warn\" href=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((((($context["base_url_relative"] ?? null) . "/themes/") . $context["slug"]) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "activate"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" class=\"gpm-actions\">
|
||||
";
|
||||
// line 55
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACTIVATE"), "html", null, true);
|
||||
echo "
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 58
|
||||
echo " </div>
|
||||
";
|
||||
$context['_iterated'] = true;
|
||||
}
|
||||
if (!$context['_iterated']) {
|
||||
// line 60
|
||||
echo " <tr><td>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.OFFLINE_WARNING"), "html", null, true);
|
||||
echo "</td></tr>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['slug'], $context['theme'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 62
|
||||
echo "</div>
|
||||
|
||||
<div class=\"remodal theme-switcher\" data-remodal-id=\"theme-switch-warn\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 66
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO"), "html", null, true);
|
||||
echo " <strong>{theme_name}</strong></h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 68
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO_DESCRIPTION"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 71
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO_CONFIRMATION"), "html", null, true);
|
||||
echo " <strong>{theme_name}</strong>?
|
||||
</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 75
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<a class=\"button continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i>";
|
||||
// line 76
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 81
|
||||
$this->loadTemplate("partials/modal-add-package.html.twig", "partials/themes-list.html.twig", 81)->display(array_merge($context, array("type" => "theme")));
|
||||
// line 82
|
||||
$this->loadTemplate("partials/modal-update-packages.html.twig", "partials/themes-list.html.twig", 82)->display(array_merge($context, array("type" => "theme")));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/themes-list.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 248 => 82, 246 => 81, 238 => 76, 234 => 75, 227 => 71, 221 => 68, 216 => 66, 210 => 62, 201 => 60, 195 => 58, 189 => 55, 184 => 54, 178 => 51, 175 => 50, 173 => 49, 166 => 47, 163 => 46, 161 => 45, 151 => 43, 149 => 42, 145 => 40, 141 => 39, 136 => 38, 128 => 34, 125 => 33, 119 => 31, 116 => 30, 110 => 28, 108 => 27, 100 => 26, 96 => 25, 75 => 23, 72 => 22, 69 => 21, 66 => 20, 61 => 19, 56 => 18, 53 => 17, 48 => 16, 40 => 11, 33 => 7, 30 => 6, 28 => 5, 24 => 3, 22 => 2, 19 => 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("<div class=\"grav-update themes\"></div>
|
||||
{% if installing %}
|
||||
{% include 'partials/release-toggle.html.twig' %}
|
||||
{% endif %}
|
||||
{% include 'partials/list-sort.html.twig' with { list_view: 'themes' } %}
|
||||
<h1>
|
||||
{{ installing ? \"PLUGIN_ADMIN.AVAILABLE_THEMES\"|tu : \"PLUGIN_ADMIN.INSTALLED_THEMES\"|tu }}
|
||||
</h1>
|
||||
<form>
|
||||
<div class=\"gpm-search\">
|
||||
<input type=\"text\" placeholder=\"{{ \"PLUGIN_ADMIN.RESOURCE_FILTER\"|tu }}\" data-gpm-filter>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class=\"themes card-row grid fixed-blocks pure-g\">
|
||||
{% for slug, theme in admin.themes(not installing).toArray|ksort %}
|
||||
{% set state = 'inactive' %}
|
||||
{% if (installing) %}{% set state = 'installing' %}{% endif %}
|
||||
{% if (config.get('system.pages.theme') == slug) %}{% set state = 'active' %}{% endif %}
|
||||
{% set isTestingRelease = admin.gpm.isTestingRelease(slug) %}
|
||||
{% set releaseDate = theme.date ?: admin.gpm.findPackage(slug, true).date %}
|
||||
|
||||
<div class=\"theme card-item pure-u-1-3 {{ state }}-theme\" data-gpm-theme=\"{{ slug|url_encode }}\" data-gpm-name=\"{{ theme.name }}\" data-gpm-release-date=\"{{ releaseDate }}\" data-gpm-author=\"{{ theme.author.name }}\" data-gpm-official=\"{{ admin.isTeamGrav(theme) ? '1' : '2' }}\" data-gpm-updatable=\"{{ admin.gpm.isUpdatable(slug) ? '1' : '2' }}\" data-gpm-enabled=\"{{ data.get('enabled') ? '1' : '2' }}\" data-gpm-testing=\"{{ isTestingRelease ? '1' : '2' }}\">
|
||||
<div class=\"gpm-name\">
|
||||
<i class=\"fa fa-fw fa-{{ theme.icon }}\"></i>
|
||||
<a href=\"{{ base_url_relative }}/themes/{{ slug|url_encode }}\">{{ theme.name }}</a>
|
||||
{% if admin.isTeamGrav(theme) %}
|
||||
<small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"{{ \"PLUGIN_ADMIN.GRAV_OFFICIAL_THEME\"|tu }}\"></i></span></small>
|
||||
{% endif %}
|
||||
{% if admin.isPremiumProduct(theme) %}
|
||||
<small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> {{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }}</span></small>
|
||||
{% endif %}
|
||||
{% if theme.symlink %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ \"PLUGIN_ADMIN.THEME_SYMBOLICALLY_LINKED\"|tu }}\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class=\"gpm-version\">v{{ theme.version }}</span>
|
||||
{% if isTestingRelease %}<span class=\"gpm-testing\">test release</span>{% endif %}
|
||||
</div>
|
||||
<div class=\"gpm-screenshot\">
|
||||
{% set thumb = installing ? '//getgrav.org/images/' ~ theme.screenshot : theme.thumbnail %}
|
||||
<a href=\"{{ base_url_relative }}/themes/{{ slug|url_encode }}\"><img src=\"{{ thumb }}\" /></a>
|
||||
</div>
|
||||
{% if (state == 'installing') %}
|
||||
<div class=\"gpm-actions\">
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"{{ slug }}\" data-theme-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.INSTALL\"|tu }}</a>
|
||||
</div>
|
||||
{% elseif state == 'active' %}
|
||||
<div class=\"gpm-actions\">
|
||||
<i class=\"fa fa-star\"></i> {{ \"PLUGIN_ADMIN.ACTIVE_THEME\"|tu }}
|
||||
</div>
|
||||
{% else %}
|
||||
<a data-remodal-target=\"theme-switch-warn\" href=\"{{ uri.addNonce(base_url_relative ~ '/themes/' ~ slug ~ '/task' ~ config.system.param_sep ~ 'activate', 'admin-form', 'admin-nonce') }}\" class=\"gpm-actions\">
|
||||
{{ \"PLUGIN_ADMIN.ACTIVATE\"|tu }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<tr><td>{{ \"PLUGIN_ADMIN.OFFLINE_WARNING\"|tu }}</td></tr>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class=\"remodal theme-switcher\" data-remodal-id=\"theme-switch-warn\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.SWITCHING_TO\"|tu }} <strong>{theme_name}</strong></h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.SWITCHING_TO_DESCRIPTION\"|tu }}
|
||||
</p>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.SWITCHING_TO_CONFIRMATION\"|tu }} <strong>{theme_name}</strong>?
|
||||
</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>
|
||||
<a class=\"button continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i>{{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% include 'partials/modal-add-package.html.twig' with { type: 'theme' } %}
|
||||
{% include 'partials/modal-update-packages.html.twig' with { type: 'theme' } %}
|
||||
", "partials/themes-list.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/themes-list.html.twig");
|
||||
}
|
||||
}
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/section/section.html.twig */
|
||||
class __TwigTemplate_6233a693fffc0aa5b0c096942b3b7968356b097ca51867a916c0266d77562a90 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ((twig_test_empty($this->getAttribute(($context["field"] ?? null), "security", array())) || $this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize($this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc($this->getAttribute(($context["field"] ?? null), "security", array()))))) {
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
if (($this->getAttribute(($context["field"] ?? null), "title", array()) || $this->getAttribute(($context["field"] ?? null), "underline", array()))) {
|
||||
// line 4
|
||||
echo " <h1 ";
|
||||
if ( !$this->getAttribute(($context["field"] ?? null), "underline", array())) {
|
||||
echo "class=\"no_underline\"";
|
||||
}
|
||||
echo ">";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "title", array())), "html", null, true);
|
||||
} else {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "title", array())), "html", null, true);
|
||||
}
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
// line 6
|
||||
echo "
|
||||
";
|
||||
// line 7
|
||||
if ($this->getAttribute(($context["field"] ?? null), "text", array())) {
|
||||
// line 8
|
||||
echo " <p>";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "text", array()));
|
||||
} else {
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "text", array()));
|
||||
}
|
||||
echo "</p>
|
||||
";
|
||||
}
|
||||
// line 10
|
||||
echo "
|
||||
";
|
||||
// line 11
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 12
|
||||
echo " <div class=\"form-section ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "field_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 13
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 15
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 16
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/section/section.html.twig", 16)->display($context);
|
||||
// line 17
|
||||
echo " ";
|
||||
}
|
||||
// line 18
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 19
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 21
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/section/section.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 112 => 21, 108 => 19, 94 => 18, 91 => 17, 88 => 16, 85 => 15, 82 => 14, 65 => 13, 60 => 12, 58 => 11, 55 => 10, 45 => 8, 43 => 7, 40 => 6, 26 => 4, 24 => 3, 21 => 2, 19 => 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 field.security is empty or authorize(array(field.security)) %}
|
||||
|
||||
{% if field.title or field.underline %}
|
||||
<h1 {% if not field.underline %}class=\"no_underline\"{% endif %}>{% if grav.twig.twig.filters['tu'] is defined %}{{ field.title|tu }}{% else %}{{ field.title|t }}{% endif %}</h1>
|
||||
{% endif %}
|
||||
|
||||
{% if field.text %}
|
||||
<p>{% if grav.twig.twig.filters['tu'] is defined %}{{ field.text|tu|raw }}{% else %}{{ field.text|t|raw }}{% endif %}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if field.fields %}
|
||||
<div class=\"form-section {{ field.field_classes }}\">
|
||||
{% for field in field.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
", "forms/fields/section/section.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/section/section.html.twig");
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
/* partials/langswitcher.hreflang.html.twig */
|
||||
class __TwigTemplate_daeaea00a1561c15d372f5796dd835964a7cd23bcf7754a0d18da9b5ca184604 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["langobj"] = $this->getAttribute(($context["grav"] ?? null), "language", array(), "array");
|
||||
// line 2
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["langswitcher"] ?? null), "languages", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
|
||||
// line 3
|
||||
if (($context["key"] == $this->getAttribute(($context["langswitcher"] ?? null), "current", array()))) {
|
||||
// line 4
|
||||
echo "\t";
|
||||
$context["lang_url"] = $this->getAttribute(($context["page"] ?? null), "url", array());
|
||||
} else {
|
||||
// line 6
|
||||
echo "\t";
|
||||
$context["lang_url"] = (((((($context["base_url_simple"] ?? null) . $this->getAttribute(($context["langobj"] ?? null), "getLanguageURLPrefix", array(0 => $context["key"]), "method")) . $this->getAttribute(($context["langswitcher"] ?? null), "page_route", array())) . $this->getAttribute(($context["page"] ?? null), "urlExtension", array()))) ? ((((($context["base_url_simple"] ?? null) . $this->getAttribute(($context["langobj"] ?? null), "getLanguageURLPrefix", array(0 => $context["key"]), "method")) . $this->getAttribute(($context["langswitcher"] ?? null), "page_route", array())) . $this->getAttribute(($context["page"] ?? null), "urlExtension", array()))) : ("/"));
|
||||
}
|
||||
// line 8
|
||||
echo "<link rel=\"alternate\" hreflang=\"";
|
||||
echo $context["key"];
|
||||
echo "\" href=\"";
|
||||
echo (($context["lang_url"] ?? null) . $this->getAttribute(($context["uri"] ?? null), "params", array()));
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/langswitcher.hreflang.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 35 => 8, 31 => 6, 27 => 4, 25 => 3, 21 => 2, 19 => 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("{% set langobj = grav['language'] %}
|
||||
{% for key in langswitcher.languages %}
|
||||
{% if key == langswitcher.current %}
|
||||
\t{% set lang_url = page.url %}
|
||||
{% else %}
|
||||
\t{% set lang_url = base_url_simple ~ langobj.getLanguageURLPrefix(key) ~ langswitcher.page_route ~ page.urlExtension ?: '/' %}
|
||||
{% endif %}
|
||||
<link rel=\"alternate\" hreflang=\"{{ key }}\" href=\"{{ lang_url ~ uri.params }}\" />
|
||||
{% endfor %}
|
||||
", "partials/langswitcher.hreflang.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/langswitcher/templates/partials/langswitcher.hreflang.html.twig");
|
||||
}
|
||||
}
|
||||
+512
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/multilevel/multilevel.html.twig */
|
||||
class __TwigTemplate_16a5965171d27eb0b3e00aa2d77ebf230140c529290574416a955bd81e79159b extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/multilevel/multilevel.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " data-grav-array-name=\"";
|
||||
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 "\"
|
||||
data-grav-array-keyname=\"";
|
||||
// line 5
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_key", array()))), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-array-valuename=\"";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_value", array()))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 7
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 89
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 90
|
||||
echo " <div data-id=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->randomStringFunc(), "html", null, true);
|
||||
echo "\" data-grav-multilevel-field data-grav-array-type=\"container\" data-grav-array-mode=\"value_only\"";
|
||||
echo (((twig_length_filter($this->env, ($context["value"] ?? null)) <= 1)) ? (" class=\"one-child\"") : (""));
|
||||
echo ">
|
||||
";
|
||||
// line 91
|
||||
if (twig_length_filter($this->env, ($context["value"] ?? null))) {
|
||||
// line 92
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["content"]) {
|
||||
// line 93
|
||||
echo "<div class=\"element-wrapper\">
|
||||
";
|
||||
// line 94
|
||||
echo $this->getAttribute($this, "renderer", array(0 => $context["key"], 1 => $context["content"], 2 => ($context["field"] ?? null), 3 => ($context["scope"] ?? null), 4 => 0, 5 => (("[" . $context["key"]) . "]"), 6 => true), "method");
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['content'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
} else {
|
||||
// line 99
|
||||
echo " <div class=\"element-wrapper\">
|
||||
<div class=\"form-row array-field-value_only js__multilevel-field\"
|
||||
data-grav-array-type=\"row\">
|
||||
|
||||
<input
|
||||
type=\"text\"
|
||||
name=\"";
|
||||
// line 105
|
||||
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 "\"
|
||||
placeholder=\"Enter value\"
|
||||
value=\"\" />
|
||||
|
||||
<span class=\"fa fa-minus js__remove-item\"></span>
|
||||
<span class=\"fa fa-plus js__add-sibling hidden\" data-level=\"0\" ></span>
|
||||
<span class=\"fa fa-plus-circle js__add-children hidden\" data-level=\"0\"></span>
|
||||
</div>
|
||||
</div>";
|
||||
}
|
||||
// line 115
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 11
|
||||
public function getfield($__value__ = null, $__key__ = null, $__level__ = null, $__globalvars__ = null, $__disable_name__ = null, $__hidden__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"value" => $__value__,
|
||||
"key" => $__key__,
|
||||
"level" => $__level__,
|
||||
"globalvars" => $__globalvars__,
|
||||
"disable_name" => $__disable_name__,
|
||||
"hidden" => $__hidden__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 12
|
||||
echo " ";
|
||||
$context["name"] = ((("data[" . twig_replace_filter($this->getAttribute($this->getAttribute(($context["globalvars"] ?? null), "field", array()), "name", array()), array("." => "]["))) . "]") . ($context["key"] ?? null));
|
||||
// line 13
|
||||
echo " <div class=\"form-row array-field-value_only js__multilevel-field ";
|
||||
echo (((($context["level"] ?? null) == 0)) ? ("top") : (""));
|
||||
echo "\"
|
||||
data-grav-array-type=\"row\" ";
|
||||
// line 14
|
||||
if ((((array_key_exists("hidden", $context)) ? (_twig_default_filter(($context["hidden"] ?? null), false)) : (false)) == true)) {
|
||||
echo "style=\"display: none\"";
|
||||
}
|
||||
echo ">
|
||||
<input
|
||||
type=\"text\"
|
||||
";
|
||||
// line 17
|
||||
if ((($context["disable_name"] ?? null) != true)) {
|
||||
echo "name=\"";
|
||||
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 18
|
||||
echo " data-attr-name=\"";
|
||||
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
placeholder=\"";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_value", array()))), "html", null, true);
|
||||
echo "\"
|
||||
style=\"margin-left: ";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, (($context["level"] ?? null) * 50), "html", null, true);
|
||||
echo "px\"
|
||||
value=\"";
|
||||
// line 21
|
||||
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
||||
echo "\" />
|
||||
|
||||
<span class=\"fa fa-minus js__remove-item\"></span>
|
||||
<span class=\"fa fa-plus js__add-sibling hidden\" data-level=\"";
|
||||
// line 24
|
||||
echo twig_escape_filter($this->env, ($context["level"] ?? null), "html", null, true);
|
||||
echo "\"></span>
|
||||
<span class=\"fa fa-plus-circle js__add-children hidden\" data-level=\"";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, ($context["level"] ?? null), "html", null, true);
|
||||
echo "\"></span>
|
||||
</div>
|
||||
";
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
// line 10
|
||||
public function getrenderer($__key__ = null, $__content__ = null, $__field__ = null, $__scope__ = null, $__level__ = null, $__parent_key__ = null, $__up_level__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"key" => $__key__,
|
||||
"content" => $__content__,
|
||||
"field" => $__field__,
|
||||
"scope" => $__scope__,
|
||||
"level" => $__level__,
|
||||
"parent_key" => $__parent_key__,
|
||||
"up_level" => $__up_level__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 11
|
||||
echo " ";
|
||||
// line 28
|
||||
echo "
|
||||
";
|
||||
// line 29
|
||||
if ((($context["level"] ?? null) == 0)) {
|
||||
// line 30
|
||||
echo "
|
||||
";
|
||||
// line 31
|
||||
echo $this->getAttribute($this, "field", array(0 => ($context["key"] ?? null), 1 => "", 2 => ($context["level"] ?? null), 3 => $context, 4 => true, 5 => ((is_numeric(($context["key"] ?? null))) ? (true) : (false))), "method");
|
||||
echo "
|
||||
|
||||
";
|
||||
// line 33
|
||||
if ( !twig_test_iterable(($context["content"] ?? null))) {
|
||||
// line 34
|
||||
echo " ";
|
||||
$context["level2"] = (($context["level"] ?? null) + 1);
|
||||
// line 35
|
||||
echo "
|
||||
<div class=\"children-wrapper\">
|
||||
<div class=\"element-wrapper\">
|
||||
";
|
||||
// line 38
|
||||
echo $this->getAttribute($this, "field", array(0 => ($context["content"] ?? null), 1 => (("[" . ($context["key"] ?? null)) . "]"), 2 => ($context["level2"] ?? null), 3 => $context), "method");
|
||||
echo "
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 42
|
||||
echo " ";
|
||||
}
|
||||
// line 43
|
||||
echo "
|
||||
";
|
||||
// line 44
|
||||
if (($context["up_level"] ?? null)) {
|
||||
// line 45
|
||||
echo " ";
|
||||
$context["level"] = (($context["level"] ?? null) + 1);
|
||||
// line 46
|
||||
echo " ";
|
||||
}
|
||||
// line 47
|
||||
echo " <div class=\"children-wrapper\">
|
||||
";
|
||||
// line 48
|
||||
$context["unique_child"] = (((is_array(($context["content"] ?? null)) && ($this->getAttribute(($context["content"] ?? null), "length", array()) > 1))) ? (true) : (false));
|
||||
// line 49
|
||||
echo "
|
||||
";
|
||||
// line 50
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["content"] ?? null));
|
||||
foreach ($context['_seq'] as $context["inner_key"] => $context["inner_content"]) {
|
||||
// line 51
|
||||
echo "<div class=\"element-wrapper\">
|
||||
";
|
||||
// line 52
|
||||
if ( !is_numeric($context["inner_key"])) {
|
||||
// line 53
|
||||
echo " ";
|
||||
if ((twig_length_filter($this->env, ($context["content"] ?? null)) > 1)) {
|
||||
// line 54
|
||||
echo " ";
|
||||
echo $this->getAttribute($this, "field", array(0 => $context["inner_key"], 1 => ($context["parent_key"] ?? null), 2 => ($context["level"] ?? null), 3 => $context, 4 => true), "method");
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 56
|
||||
echo " ";
|
||||
echo $this->getAttribute($this, "field", array(0 => $context["inner_key"], 1 => ($context["parent_key"] ?? null), 2 => ($context["level"] ?? null), 3 => $context), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 58
|
||||
echo " ";
|
||||
$context["level2"] = (($context["level"] ?? null) + 1);
|
||||
// line 59
|
||||
echo " ";
|
||||
$context["up_level"] = true;
|
||||
// line 60
|
||||
echo " ";
|
||||
} else {
|
||||
// line 61
|
||||
echo " ";
|
||||
$context["up_level"] = false;
|
||||
// line 62
|
||||
echo " ";
|
||||
$context["level2"] = ($context["level"] ?? null);
|
||||
// line 63
|
||||
echo " ";
|
||||
}
|
||||
// line 64
|
||||
echo "
|
||||
";
|
||||
// line 65
|
||||
if ( !twig_test_iterable($context["inner_content"])) {
|
||||
// line 66
|
||||
echo "
|
||||
";
|
||||
// line 67
|
||||
if ( !is_numeric($context["inner_key"])) {
|
||||
// line 68
|
||||
echo " <div class=\"children-wrapper\">
|
||||
<div class=\"element-wrapper\">
|
||||
";
|
||||
}
|
||||
// line 71
|
||||
echo "
|
||||
";
|
||||
// line 72
|
||||
$context["last_key"] = ((is_numeric($context["inner_key"])) ? ("") : ($context["inner_key"]));
|
||||
// line 73
|
||||
echo " ";
|
||||
echo $this->getAttribute($this, "field", array(0 => $context["inner_content"], 1 => (((($context["parent_key"] ?? null) . "[") . $context["inner_key"]) . "]"), 2 => ($context["level2"] ?? null), 3 => $context), "method");
|
||||
echo "
|
||||
|
||||
";
|
||||
// line 75
|
||||
if ( !is_numeric($context["inner_key"])) {
|
||||
// line 76
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 79
|
||||
echo " ";
|
||||
} else {
|
||||
// line 80
|
||||
echo "
|
||||
";
|
||||
// line 81
|
||||
$context["inner_parent_key"] = (((($context["parent_key"] ?? null) . "[") . $context["inner_key"]) . "]");
|
||||
// line 82
|
||||
echo " ";
|
||||
echo $this->getAttribute($this, "renderer", array(0 => $context["inner_key"], 1 => $context["inner_content"], 2 => ($context["field"] ?? null), 3 => ($context["scope"] ?? null), 4 => ($context["level"] ?? null), 5 => ($context["inner_parent_key"] ?? null), 6 => ($context["up_level"] ?? null)), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 84
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['inner_key'], $context['inner_content'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 86
|
||||
echo " </div>
|
||||
";
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/multilevel/multilevel.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 354 => 86, 347 => 84, 341 => 82, 339 => 81, 336 => 80, 333 => 79, 328 => 76, 326 => 75, 320 => 73, 318 => 72, 315 => 71, 310 => 68, 308 => 67, 305 => 66, 303 => 65, 300 => 64, 297 => 63, 294 => 62, 291 => 61, 288 => 60, 285 => 59, 282 => 58, 276 => 56, 270 => 54, 267 => 53, 265 => 52, 262 => 51, 258 => 50, 255 => 49, 253 => 48, 250 => 47, 247 => 46, 244 => 45, 242 => 44, 239 => 43, 236 => 42, 229 => 38, 224 => 35, 221 => 34, 219 => 33, 214 => 31, 211 => 30, 209 => 29, 206 => 28, 204 => 11, 186 => 10, 168 => 25, 164 => 24, 158 => 21, 154 => 20, 150 => 19, 145 => 18, 139 => 17, 131 => 14, 126 => 13, 123 => 12, 106 => 11, 101 => 115, 89 => 105, 81 => 99, 71 => 94, 68 => 93, 63 => 92, 61 => 91, 54 => 90, 51 => 89, 45 => 7, 41 => 6, 37 => 5, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-array-name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
data-grav-array-keyname=\"{{ field.placeholder_key|e|tu }}\"
|
||||
data-grav-array-valuename=\"{{ field.placeholder_value|e|tu }}\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% macro renderer(key, content, field, scope, level, parent_key, up_level) %}
|
||||
{% macro field(value, key, level, globalvars, disable_name, hidden) %}
|
||||
{% set name = 'data[' ~ globalvars.field.name|replace({'.': ']['}) ~ ']' ~ key %}
|
||||
<div class=\"form-row array-field-value_only js__multilevel-field {{ level == 0 ? 'top' : '' }}\"
|
||||
data-grav-array-type=\"row\" {% if (hidden|default(false) == true) %}style=\"display: none\"{% endif %}>
|
||||
<input
|
||||
type=\"text\"
|
||||
{% if (disable_name != true) %}name=\"{{ name }}\"{% endif %}
|
||||
data-attr-name=\"{{ name }}\"
|
||||
placeholder=\"{{ field.placeholder_value|e|tu }}\"
|
||||
style=\"margin-left: {{ level * 50 }}px\"
|
||||
value=\"{{ value }}\" />
|
||||
|
||||
<span class=\"fa fa-minus js__remove-item\"></span>
|
||||
<span class=\"fa fa-plus js__add-sibling hidden\" data-level=\"{{level}}\"></span>
|
||||
<span class=\"fa fa-plus-circle js__add-children hidden\" data-level=\"{{level}}\"></span>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% if level == 0 %}
|
||||
|
||||
{{ _self.field(key, '', level, _context, true, (is_numeric(key) ? true : false)) }}
|
||||
|
||||
{% if content is not iterable %}
|
||||
{% set level2 = level + 1 %}
|
||||
|
||||
<div class=\"children-wrapper\">
|
||||
<div class=\"element-wrapper\">
|
||||
{{ _self.field(content, '[' ~ key ~ ']', level2, _context) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if up_level %}
|
||||
{% set level = level + 1 %}
|
||||
{% endif %}
|
||||
<div class=\"children-wrapper\">
|
||||
{% set unique_child = (is_array(content) and content.length > 1) ? true : false %}
|
||||
|
||||
{% for inner_key, inner_content in content -%}
|
||||
<div class=\"element-wrapper\">
|
||||
{% if not is_numeric(inner_key) %}
|
||||
{% if (content|length > 1) %}
|
||||
{{ _self.field(inner_key, parent_key, level, _context, true) }}
|
||||
{% else %}
|
||||
{{ _self.field(inner_key, parent_key, level, _context) }}
|
||||
{% endif %}
|
||||
{% set level2 = level + 1 %}
|
||||
{% set up_level = true %}
|
||||
{% else %}
|
||||
{% set up_level = false %}
|
||||
{% set level2 = level %}
|
||||
{% endif %}
|
||||
|
||||
{% if inner_content is not iterable %}
|
||||
|
||||
{% if not is_numeric(inner_key) %}
|
||||
<div class=\"children-wrapper\">
|
||||
<div class=\"element-wrapper\">
|
||||
{% endif %}
|
||||
|
||||
{% set last_key = (is_numeric(inner_key)) ? '' : inner_key %}
|
||||
{{ _self.field(inner_content, parent_key ~ '[' ~ inner_key ~ ']', level2, _context) }}
|
||||
|
||||
{% if not is_numeric(inner_key) %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
||||
{% set inner_parent_key = parent_key ~ '[' ~ inner_key ~ ']' %}
|
||||
{{ _self.renderer(inner_key, inner_content, field, scope, level, inner_parent_key, up_level) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% block input %}
|
||||
<div data-id=\"{{random_string()}}\" data-grav-multilevel-field data-grav-array-type=\"container\" data-grav-array-mode=\"value_only\"{{ value|length <= 1 ? ' class=\"one-child\"' : '' }}>
|
||||
{% if value|length %}
|
||||
{% for key, content in value -%}
|
||||
<div class=\"element-wrapper\">
|
||||
{{ _self.renderer(key, content, field, scope, 0, '[' ~ key ~ ']', true) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{%- else -%}
|
||||
{# Empty value, mock the entry field#}
|
||||
<div class=\"element-wrapper\">
|
||||
<div class=\"form-row array-field-value_only js__multilevel-field\"
|
||||
data-grav-array-type=\"row\">
|
||||
|
||||
<input
|
||||
type=\"text\"
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
placeholder=\"Enter value\"
|
||||
value=\"\" />
|
||||
|
||||
<span class=\"fa fa-minus js__remove-item\"></span>
|
||||
<span class=\"fa fa-plus js__add-sibling hidden\" data-level=\"0\" ></span>
|
||||
<span class=\"fa fa-plus-circle js__add-children hidden\" data-level=\"0\"></span>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/multilevel/multilevel.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/multilevel/multilevel.html.twig");
|
||||
}
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/email/email.html.twig */
|
||||
class __TwigTemplate_a3450616240a857973b145f04cd648c5e821baa9a4c71c6d0a63af5802122bfd extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/email/email.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'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())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " type=\"email\"
|
||||
";
|
||||
// line 5
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 6
|
||||
echo " ";
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/email/email.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 38 => 6, 34 => 5, 31 => 4, 28 => 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\" %}
|
||||
|
||||
{% block input_attributes %}
|
||||
type=\"email\"
|
||||
{% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}", "forms/fields/email/email.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/email/email.html.twig");
|
||||
}
|
||||
}
|
||||
+137
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/2fa_secret/2fa_secret.html.twig */
|
||||
class __TwigTemplate_02d9defc2b9c0eade27913446a5bdea983e84008d19eb8dd30da02125aa963e9 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/2fa_secret/2fa_secret.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <div class=\"form-input-wrapper twofa-wrapper\">
|
||||
";
|
||||
// line 5
|
||||
$this->getAttribute(($context["admin"] ?? null), "get2FAData", array(0 => ($context["value"] ?? null)), "method");
|
||||
// line 6
|
||||
echo " ";
|
||||
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "json_response", array());
|
||||
// line 7
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["data"] ?? null), "status", array()) == "success")) {
|
||||
// line 8
|
||||
echo "
|
||||
<img style=\"border: 1px solid #ddd\" data-2fa-image src=\"";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "image", array()), "html", null, true);
|
||||
echo "\" />
|
||||
<div>
|
||||
<span>";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.2FA_SECRET"), "html", null, true);
|
||||
echo ": </span><span class=\"twofa-secret-code\" data-2fa-secret>";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "secret", array()), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
<div class=\"danger\">
|
||||
<button data-hint=\"";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.2FA_REGEN_HINT"), "html", null, true);
|
||||
echo "\" class=\"button button-small hint--bottom\" data-2fa-regenerate><i class=\"fa fa-fw fa-refresh\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate("PLUGIN_ADMIN.2FA_REGENERATE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
<input type=\"text\" style=\"display:none;\" name=\"";
|
||||
// line 16
|
||||
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 "\" data-2fa-value value=\"";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter($this->getAttribute(($context["data"] ?? null), "secret", array()), array(" " => "")), "html", null, true);
|
||||
echo "\" />
|
||||
|
||||
";
|
||||
} else {
|
||||
// line 19
|
||||
echo " <div class=\"notice error\">
|
||||
<p>";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "message", array()), "html", null, true);
|
||||
echo "</p>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 23
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/2fa_secret/2fa_secret.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 82 => 23, 76 => 20, 73 => 19, 65 => 16, 58 => 14, 50 => 11, 45 => 9, 42 => 8, 39 => 7, 36 => 6, 34 => 5, 31 => 4, 28 => 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\" %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-input-wrapper twofa-wrapper\">
|
||||
{% do admin.get2FAData(value) %}
|
||||
{% set data = admin.json_response %}
|
||||
{% if data.status == 'success' %}
|
||||
|
||||
<img style=\"border: 1px solid #ddd\" data-2fa-image src=\"{{ data.image }}\" />
|
||||
<div>
|
||||
<span>{{ 'PLUGIN_ADMIN.2FA_SECRET'|tu }}: </span><span class=\"twofa-secret-code\" data-2fa-secret>{{ data.secret }}</span>
|
||||
</div>
|
||||
<div class=\"danger\">
|
||||
<button data-hint=\"{{ 'PLUGIN_ADMIN.2FA_REGEN_HINT'|tu }}\" class=\"button button-small hint--bottom\" data-2fa-regenerate><i class=\"fa fa-fw fa-refresh\"></i> {{ 'PLUGIN_ADMIN.2FA_REGENERATE'|t }}</button>
|
||||
</div>
|
||||
<input type=\"text\" style=\"display:none;\" name=\"{{ (scope ~ field.name)|fieldName }}\" data-2fa-value value=\"{{ data.secret|replace({' ':''}) }}\" />
|
||||
|
||||
{% else %}
|
||||
<div class=\"notice error\">
|
||||
<p>{{ data.message }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/2fa_secret/2fa_secret.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/2fa_secret/2fa_secret.html.twig");
|
||||
}
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-user-avatar.html.twig */
|
||||
class __TwigTemplate_4844e7f56bc2dc4d7506de31fc971466177fe81282fd6a2a689f4e1208eb51d6 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<img src=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "avatarUrl", array(), "method"), "html", null, true);
|
||||
echo "?s=47\" />
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/nav-user-avatar.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("<img src=\"{{ admin.user.avatarUrl() }}?s=47\" />
|
||||
", "partials/nav-user-avatar.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav-user-avatar.html.twig");
|
||||
}
|
||||
}
|
||||
+263
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
|
||||
/* user.html.twig */
|
||||
class __TwigTemplate_21922495777088910c21aef2315c047ccdc8d6877b01b0294cd2c1658a3f5c9b extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "user.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "route", array())) {
|
||||
// line 4
|
||||
$context["user"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("users/" . $this->getAttribute(($context["admin"] ?? null), "route", array()))), "method");
|
||||
// line 5
|
||||
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.USER") . ": ") . twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "route", array())));
|
||||
} else {
|
||||
// line 7
|
||||
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN_PRO.USERS");
|
||||
}
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 10
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
// line 11
|
||||
echo " ";
|
||||
if ( !$this->getAttribute(($context["admin"] ?? null), "route", array())) {
|
||||
// line 12
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.users", 1 => "admin.super"))) {
|
||||
// line 13
|
||||
echo " <div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"#modal\" data-remodal-target=\"modal\"><i class=\"fa fa-plus\"></i> ";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD_ACCOUNT"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-users\"></i> ";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.USERS"), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
} else {
|
||||
// line 18
|
||||
echo " <h1>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACCESS_DENIED"), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
} else {
|
||||
// line 21
|
||||
echo " ";
|
||||
if (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.users", 1 => "admin.super")) || ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()) == $this->getAttribute(($context["user"] ?? null), "username", array())))) {
|
||||
// line 22
|
||||
echo " <div class=\"button-bar\">
|
||||
";
|
||||
// line 23
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin-pro", array(), "array"), "enabled", array())) {
|
||||
// line 24
|
||||
echo " <a class=\"button\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "/users\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 26
|
||||
echo " <button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-user\"></i> ";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.USER"), "html", null, true);
|
||||
echo ": ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["user"] ?? null), "username", array()));
|
||||
echo "</h1>
|
||||
";
|
||||
} else {
|
||||
// line 30
|
||||
echo " <h1>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACCESS_DENIED"), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
// line 32
|
||||
echo " ";
|
||||
}
|
||||
}
|
||||
|
||||
// line 35
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 36
|
||||
echo " ";
|
||||
if (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.users", 1 => "admin.super")) || ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()) == $this->getAttribute(($context["user"] ?? null), "username", array())))) {
|
||||
// line 37
|
||||
echo " <div>
|
||||
";
|
||||
// line 38
|
||||
if ( !$this->getAttribute(($context["admin"] ?? null), "route", array())) {
|
||||
// line 39
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/users-list.html.twig", "user.html.twig", 39)->display($context);
|
||||
// line 40
|
||||
echo "
|
||||
<div class=\"remodal\" data-remodal-id=\"modal\" data-remodal-options=\"hashTracking: false\">
|
||||
";
|
||||
// line 42
|
||||
$this->loadTemplate("partials/blueprints-new.html.twig", "user.html.twig", 42)->display(array_merge($context, array("blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", array(0 => "user/account_new"), "method"))));
|
||||
// line 43
|
||||
echo " </div>
|
||||
";
|
||||
} else {
|
||||
// line 45
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/blueprints.html.twig", "user.html.twig", 45)->display(array_merge($context, array("data" => ($context["user"] ?? null), "blueprints" => $this->getAttribute(($context["user"] ?? null), "blueprints", array()))));
|
||||
// line 46
|
||||
echo " ";
|
||||
}
|
||||
// line 47
|
||||
echo " </div>
|
||||
|
||||
<div class=\"remodal\" data-remodal-id=\"changes\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 51
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_TITLE"), "html", null, true);
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 53
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_DESC"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button secondary\" data-leave-action=\"cancel\" href=\"#\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 57
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</a>
|
||||
<a class=\"button\" data-leave-action=\"continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
// line 58
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "user.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 163 => 58, 159 => 57, 152 => 53, 147 => 51, 141 => 47, 138 => 46, 135 => 45, 131 => 43, 129 => 42, 125 => 40, 122 => 39, 120 => 38, 117 => 37, 114 => 36, 111 => 35, 106 => 32, 100 => 30, 93 => 28, 87 => 26, 79 => 24, 77 => 23, 74 => 22, 71 => 21, 68 => 20, 62 => 18, 57 => 16, 52 => 14, 49 => 13, 46 => 12, 43 => 11, 40 => 10, 36 => 1, 33 => 7, 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 'partials/base.html.twig' %}
|
||||
|
||||
{% if admin.route %}
|
||||
{% set user = admin.data('users/' ~ admin.route) %}
|
||||
{% set title = \"PLUGIN_ADMIN.USER\"|tu ~ \": \" ~ admin.route|e %}
|
||||
{% else %}
|
||||
{% set title = \"PLUGIN_ADMIN_PRO.USERS\"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% block titlebar %}
|
||||
{% if not admin.route %}
|
||||
{% if authorize(['admin.users', 'admin.super']) %}
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"#modal\" data-remodal-target=\"modal\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.ADD_ACCOUNT\"|tu }}</a>
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-users\"></i> {{ \"PLUGIN_ADMIN.USERS\"|tu }}</h1>
|
||||
{% else %}
|
||||
<h1>{{ \"PLUGIN_ADMIN.ACCESS_DENIED\"|tu }}</h1>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if authorize(['admin.users', 'admin.super']) or grav.user.username == user.username %}
|
||||
<div class=\"button-bar\">
|
||||
{% if config.plugins[\"admin-pro\"].enabled %}
|
||||
<a class=\"button\" href=\"{{ base_url }}/users\"><i class=\"fa fa-reply\"></i> {{ \"PLUGIN_ADMIN.BACK\"|tu }}</a>
|
||||
{% endif %}
|
||||
<button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> {{ \"PLUGIN_ADMIN.SAVE\"|tu }}</button>
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-user\"></i> {{ \"PLUGIN_ADMIN.USER\"|tu }}: {{ user.username|e }}</h1>
|
||||
{% else %}
|
||||
<h1>{{ \"PLUGIN_ADMIN.ACCESS_DENIED\"|tu }}</h1>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if authorize(['admin.users', 'admin.super']) or grav.user.username == user.username %}
|
||||
<div>
|
||||
{% if not admin.route %}
|
||||
{% include 'partials/users-list.html.twig' %}
|
||||
|
||||
<div class=\"remodal\" data-remodal-id=\"modal\" data-remodal-options=\"hashTracking: false\">
|
||||
{% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('user/account_new') } %}
|
||||
</div>
|
||||
{% else %}
|
||||
{% include 'partials/blueprints.html.twig' with { data: user, blueprints: user.blueprints } %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class=\"remodal\" data-remodal-id=\"changes\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_TITLE\"|tu }}</h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_DESC\"|tu }}
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button secondary\" data-leave-action=\"cancel\" href=\"#\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CANCEL\"|tu }}</a>
|
||||
<a class=\"button\" data-leave-action=\"continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
", "user.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/user.html.twig");
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/* @Page:/mnt/data/Sites/static-ethica.net/user/plugins/error/pages */
|
||||
class __TwigTemplate_053ee618c7013baac77ea8c568b1876f5941805c45c8a6b16e15417cd6b718a0 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate("PLUGIN_ERROR.ERROR_MESSAGE");
|
||||
echo "
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "@Page:/mnt/data/Sites/static-ethica.net/user/plugins/error/pages";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("{{ 'PLUGIN_ERROR.ERROR_MESSAGE'|t }}
|
||||
|
||||
", "@Page:/mnt/data/Sites/static-ethica.net/user/plugins/error/pages", "");
|
||||
}
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
/* partials/metadata.html.twig */
|
||||
class __TwigTemplate_0b4e3f6ed152f14a4860d0b7beb3ebf543362ce716dc70000d9fc79150131903 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "metadata", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
|
||||
// line 2
|
||||
echo "<meta ";
|
||||
if ($this->getAttribute($context["meta"], "name", array())) {
|
||||
echo "name=\"";
|
||||
echo $this->getAttribute($context["meta"], "name", array());
|
||||
echo "\" ";
|
||||
}
|
||||
if ($this->getAttribute($context["meta"], "http_equiv", array())) {
|
||||
echo "http-equiv=\"";
|
||||
echo $this->getAttribute($context["meta"], "http_equiv", array());
|
||||
echo "\" ";
|
||||
}
|
||||
if ($this->getAttribute($context["meta"], "charset", array())) {
|
||||
echo "charset=\"";
|
||||
echo $this->getAttribute($context["meta"], "charset", array());
|
||||
echo "\" ";
|
||||
}
|
||||
if ($this->getAttribute($context["meta"], "property", array())) {
|
||||
echo "property=\"";
|
||||
echo $this->getAttribute($context["meta"], "property", array());
|
||||
echo "\" ";
|
||||
}
|
||||
if ($this->getAttribute($context["meta"], "content", array())) {
|
||||
echo "content=\"";
|
||||
echo $this->getAttribute($context["meta"], "content", array());
|
||||
echo "\" ";
|
||||
}
|
||||
echo "/>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/metadata.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 23 => 2, 19 => 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("{% for meta in page.metadata %}
|
||||
<meta {% if meta.name %}name=\"{{ meta.name }}\" {% endif %}{% if meta.http_equiv %}http-equiv=\"{{ meta.http_equiv }}\" {% endif %}{% if meta.charset %}charset=\"{{ meta.charset }}\" {% endif %}{% if meta.property %}property=\"{{ meta.property }}\" {% endif %}{% if meta.content %}content=\"{{ meta.content }}\" {% endif %}/>
|
||||
{% endfor %}
|
||||
", "partials/metadata.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/partials/metadata.html.twig");
|
||||
}
|
||||
}
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
<?php
|
||||
|
||||
/* partials/modal-remove-package.html.twig */
|
||||
class __TwigTemplate_b35fb1826e2e33df45ba309a1b06512e071b546c5d093d436038b8b572bea020 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"remodal\"
|
||||
data-remodal-id=\"remove-package\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"remove-package-confirm\">
|
||||
<h1>";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REMOVE_THE", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))), "html", null, true);
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIRM_REMOVAL", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 12
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<button data-";
|
||||
// line 13
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
||||
echo "-action=\"remove-package\" data-packages-slugs=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["package"] ?? null), "slug", array()), "html", null, true);
|
||||
echo "\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"remove-package-dependencies hidden\">
|
||||
<h1>";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REMOVED_SUCCESSFULLY", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))), "html", null, true);
|
||||
echo "</h1>
|
||||
<p>
|
||||
";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADDITIONAL_DEPENDENCIES_CAN_BE_REMOVED", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
<div>
|
||||
<ul class=\"package-dependencies-container\"></ul>
|
||||
</div>
|
||||
<div class=\"button-bar\">
|
||||
<a href=\"";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, (((($context["base_url_relative"] ?? null) . "/") . ($context["type"] ?? null)) . "s"), "html", null, true);
|
||||
echo "\" class=\"button secondary\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"remove-package-done hidden\">
|
||||
<h1>";
|
||||
// line 31
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REMOVED_SUCCESSFULLY", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))), "html", null, true);
|
||||
echo "</h1>
|
||||
<div class=\"button-bar\">
|
||||
<a href=\"";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, (((($context["base_url_relative"] ?? null) . "/") . ($context["type"] ?? null)) . "s"), "html", null, true);
|
||||
echo "\" class=\"button secondary\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"remove-package-error hidden\">
|
||||
<h1>";
|
||||
// line 38
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ERROR_REMOVING_THE", array(0 => $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["type"] ?? null)))))), "html", null, true);
|
||||
echo "</h1>
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 40
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/modal-remove-package.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 98 => 40, 93 => 38, 83 => 33, 78 => 31, 68 => 26, 59 => 20, 54 => 18, 42 => 13, 38 => 12, 31 => 8, 26 => 6, 19 => 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("<div class=\"remodal\"
|
||||
data-remodal-id=\"remove-package\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"remove-package-confirm\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.REMOVE_THE\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu]) }}</h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.CONFIRM_REMOVAL\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu]) }}
|
||||
</p>
|
||||
|
||||
<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-{{ type }}-action=\"remove-package\" data-packages-slugs=\"{{ package.slug }}\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"remove-package-dependencies hidden\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.REMOVED_SUCCESSFULLY\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu]) }}</h1>
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.ADDITIONAL_DEPENDENCIES_CAN_BE_REMOVED\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu]) }}
|
||||
</p>
|
||||
<div>
|
||||
<ul class=\"package-dependencies-container\"></ul>
|
||||
</div>
|
||||
<div class=\"button-bar\">
|
||||
<a href=\"{{ base_url_relative ~ '/' ~ type ~ 's' }}\" class=\"button secondary\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"remove-package-done hidden\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.REMOVED_SUCCESSFULLY\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu]) }}</h1>
|
||||
<div class=\"button-bar\">
|
||||
<a href=\"{{ base_url_relative ~ '/' ~ type ~ 's' }}\" class=\"button secondary\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"remove-package-error hidden\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.ERROR_REMOVING_THE\"|tu([(\"PLUGIN_ADMIN.\" ~ type|upper)|tu]) }}</h1>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
", "partials/modal-remove-package.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/modal-remove-package.html.twig");
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/hidden/hidden.html.twig */
|
||||
class __TwigTemplate_a103371c1705d91b5430ed4bd1a710fa028a093e2f790ae10380705fce9f958f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ((($this->getAttribute(($context["field"] ?? null), "evaluate", array())) ? ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->evaluateStringFunc($this->env, $context, $this->getAttribute(($context["field"] ?? null), "default", array()))) : ($this->getAttribute(($context["field"] ?? null), "default", array())))) : (($context["value"] ?? null)));
|
||||
// line 2
|
||||
echo "
|
||||
<input data-grav-field=\"hidden\" data-grav-disabled=\"false\" type=\"hidden\" class=\"input\" name=\"";
|
||||
// line 3
|
||||
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=\"";
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/hidden/hidden.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 24 => 3, 21 => 2, 19 => 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("{% set value = (value is null ? (field.evaluate ? evaluate(field.default) : field.default) : value) %}
|
||||
|
||||
<input data-grav-field=\"hidden\" data-grav-disabled=\"false\" type=\"hidden\" class=\"input\" name=\"{{ (scope ~ field.name)|fieldName }}\" value=\"{{ value|join(', ') }}\" />
|
||||
", "forms/fields/hidden/hidden.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/hidden/hidden.html.twig");
|
||||
}
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/dateformat/dateformat.html.twig */
|
||||
class __TwigTemplate_a2a3fb216e0e775ce03f34374f236d4c1599709c1c929c65a0ac7c46cde5c04e extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/dateformat/dateformat.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " data-grav-selectize=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "selectize", array())) : (array()))), "html_attr");
|
||||
echo "\"
|
||||
data-grav-field=\"select\"
|
||||
";
|
||||
// line 6
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " <div class=\"form-select-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
<select class=\"";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" name=\"";
|
||||
echo twig_escape_filter($this->env, ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . (($this->getAttribute(($context["field"] ?? null), "multiple", array())) ? ("[]") : (""))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 12
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 13
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 15
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 16
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "form", array())) {
|
||||
echo "form=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "form", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 18
|
||||
echo " >
|
||||
";
|
||||
// line 19
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 20
|
||||
echo " <option ";
|
||||
if ((($context["key"] == ($context["value"] ?? null)) || twig_in_filter($context["text"], ($context["value"] ?? null)))) {
|
||||
echo "selected=\"selected\"";
|
||||
}
|
||||
echo " value=\"";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "multiple", array())) ? ($context["text"]) : ($context["key"])), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, ((twig_test_empty($context["key"])) ? ($context["text"]) : (twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", $context["key"])))), "html", null, true);
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 22
|
||||
echo " </select>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/dateformat/dateformat.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 111 => 22, 96 => 20, 92 => 19, 89 => 18, 82 => 17, 77 => 16, 72 => 15, 67 => 14, 62 => 13, 58 => 12, 52 => 11, 47 => 10, 44 => 9, 38 => 6, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize : {})|json_encode()|e('html_attr') }}\"
|
||||
data-grav-field=\"select\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-select-wrapper {{ field.size }}\">
|
||||
<select class=\"{{ field.classes }}\" name=\"{{ (scope ~ field.name)|fieldName ~ (field.multiple ? '[]' : '') }}\"
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.form %}form=\"{{ field.form }}\"{% endif %}
|
||||
>
|
||||
{% for key, text in field.options %}
|
||||
<option {% if key == value or text in value %}selected=\"selected\"{% endif %} value=\"{{ field.multiple ? text : key }}\">{{ key is empty ? text : \"now\"|date(key)|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/dateformat/dateformat.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/dateformat/dateformat.html.twig");
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/taxonomy/taxonomy.html.twig */
|
||||
class __TwigTemplate_35c5a720e1eb58f7619cabaced877bec74f1b2fa57d990907652ecfcdf871581 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["taxonomies"] = (((null === ($context["taxonomies"] ?? null))) ? ((($this->getAttribute(($context["field"] ?? null), "taxonomies", array())) ? ($this->getAttribute(($context["field"] ?? null), "taxonomies", array())) : ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "data", array(0 => "config/site"), "method"), "taxonomies", array())))) : (($context["taxonomies"] ?? null)));
|
||||
// line 2
|
||||
$context["parentname"] = $this->getAttribute(($context["field"] ?? null), "name", array());
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["taxonomies"] ?? null));
|
||||
$context['loop'] = array(
|
||||
'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["name"]) {
|
||||
// line 5
|
||||
echo "
|
||||
";
|
||||
// line 6
|
||||
$context["value"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc((($this->getAttribute(($context["data"] ?? null), "value", array(0 => ("header.taxonomy." . $context["name"])), "method", true, true)) ? (_twig_default_filter($this->getAttribute(($context["data"] ?? null), "value", array(0 => ("header.taxonomy." . $context["name"])), "method"), array())) : (array())));
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["sub_taxonomies"] = twig_get_array_keys_filter((($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"], array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"]), array())) : (array())));
|
||||
// line 8
|
||||
echo " ";
|
||||
$context["list"] = array_unique(twig_array_merge(twig_array_merge(array(), ($context["sub_taxonomies"] ?? null)), ($context["value"] ?? null)));
|
||||
// line 9
|
||||
echo "
|
||||
";
|
||||
// line 10
|
||||
$context["field"] = array("type" => "select", "classes" => "fancy create", "label" => twig_capitalize_string_filter($this->env, // line 13
|
||||
$context["name"]), "name" => (( // line 14
|
||||
($context["parentname"] ?? null) . ".") . $context["name"]), "multiple" => true, "options" => // line 16
|
||||
($context["list"] ?? null), "style" => $this->getAttribute( // line 17
|
||||
($context["field"] ?? null), "style", array()), "selectize" => array("create" => true));
|
||||
// line 22
|
||||
echo "
|
||||
";
|
||||
// line 23
|
||||
$this->loadTemplate(array(0 => "forms/fields/select/select.html.twig"), "forms/fields/taxonomy/taxonomy.html.twig", 23)->display($context);
|
||||
++$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['name'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/taxonomy/taxonomy.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 66 => 23, 63 => 22, 61 => 17, 60 => 16, 59 => 14, 58 => 13, 57 => 10, 54 => 9, 51 => 8, 48 => 7, 46 => 6, 43 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 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("{% set taxonomies = (taxonomies is null ? (field.taxonomies ? field.taxonomies : admin.data('config/site').taxonomies) : taxonomies) %}
|
||||
{% set parentname = field.name %}
|
||||
|
||||
{% for name in taxonomies %}
|
||||
|
||||
{% set value = array(data.value('header.taxonomy.' ~ name)|default([])) %}
|
||||
{% set sub_taxonomies = attribute(grav.taxonomy.taxonomy, name)|default([])|keys %}
|
||||
{% set list = []|merge(sub_taxonomies)|merge(value)|array_unique %}
|
||||
|
||||
{% set field = {
|
||||
type: 'select',
|
||||
classes: 'fancy create',
|
||||
label: name|capitalize,
|
||||
name: parentname ~ '.' ~ name,
|
||||
multiple: true,
|
||||
options: list,
|
||||
style: field.style,
|
||||
selectize: {
|
||||
create: true
|
||||
}
|
||||
} %}
|
||||
|
||||
{% include ['forms/fields/select/select.html.twig'] %}
|
||||
{% endfor %}
|
||||
", "forms/fields/taxonomy/taxonomy.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/taxonomy/taxonomy.html.twig");
|
||||
}
|
||||
}
|
||||
+507
@@ -0,0 +1,507 @@
|
||||
<?php
|
||||
|
||||
/* partials/mediaembed.html.twig */
|
||||
class __TwigTemplate_a62d707fdfc0a87d06ec9de9c2894d398f5c5153bfc6f36e5c303df2237f9fda extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
$context["default"] = $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "config", array()), "media", array());
|
||||
// line 3
|
||||
$context["oembed"] = $this->getAttribute(($context["mediaembed"] ?? null), "service", array());
|
||||
// line 4
|
||||
echo "
|
||||
";
|
||||
// line 6
|
||||
if ( !$this->getAttribute(($context["mediaembed"] ?? null), "success", array())) {
|
||||
// line 7
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["default"] ?? null), "responsive", array())) {
|
||||
// line 8
|
||||
echo " ";
|
||||
$context["class"] = "-responsive mediaembed-msod";
|
||||
// line 9
|
||||
echo " ";
|
||||
} else {
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["class"] = ((" mediaembed-msod\" style=\"max-width: " . $this->getAttribute(($context["default"] ?? null), "width", array())) . "px;");
|
||||
// line 11
|
||||
echo " ";
|
||||
}
|
||||
// line 12
|
||||
echo "
|
||||
<div class=\"mediaembed";
|
||||
// line 13
|
||||
echo ($context["class"] ?? null);
|
||||
echo "\">
|
||||
<p class=\"mediaembed-icon\">☕</p>
|
||||
<p class=\"mediaembed-error-title\"><b>Unable to process oEmbed media:</b><a href=\"";
|
||||
// line 15
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "src", array());
|
||||
echo "\" alt=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "alt", array());
|
||||
echo "\" title=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "title", array());
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "src", array()));
|
||||
echo "</a></p>
|
||||
<p class=\"mediaembed-error-message\"><b>Error:</b>";
|
||||
// line 16
|
||||
echo $this->getAttribute(($context["mediaembed"] ?? null), "message", array());
|
||||
echo "</p>
|
||||
</div>
|
||||
|
||||
";
|
||||
} else {
|
||||
// line 21
|
||||
echo " ";
|
||||
$context["response"] = $this->getAttribute(($context["oembed"] ?? null), "attributes", array());
|
||||
// line 22
|
||||
echo " ";
|
||||
// line 23
|
||||
echo " ";
|
||||
if (((twig_test_empty($this->getAttribute(($context["response"] ?? null), "width", array())) || !$this->getAttribute(($context["response"] ?? null), "width", array(), "any", true, true)) || ($this->getAttribute(($context["response"] ?? null), "width", array()) == 0))) {
|
||||
// line 24
|
||||
echo " ";
|
||||
$context["response"] = twig_array_merge(($context["response"] ?? null), array("width" => (($this->getAttribute(($context["default"] ?? null), "width", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default"] ?? null), "width", array()), 1)) : (1))));
|
||||
// line 25
|
||||
echo " ";
|
||||
}
|
||||
// line 26
|
||||
echo "
|
||||
";
|
||||
// line 27
|
||||
if (((twig_test_empty($this->getAttribute(($context["response"] ?? null), "height", array())) || !$this->getAttribute(($context["response"] ?? null), "height", array(), "any", true, true)) || ($this->getAttribute(($context["response"] ?? null), "height", array()) == 0))) {
|
||||
// line 28
|
||||
echo " ";
|
||||
$context["response"] = twig_array_merge(($context["response"] ?? null), array("height" => (($this->getAttribute(($context["default"] ?? null), "height", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default"] ?? null), "height", array()), 1)) : (1))));
|
||||
// line 29
|
||||
echo " ";
|
||||
}
|
||||
// line 30
|
||||
echo "
|
||||
";
|
||||
// line 31
|
||||
$context["width"] = $this->getAttribute(($context["response"] ?? null), "width", array());
|
||||
// line 32
|
||||
echo " ";
|
||||
$context["height"] = $this->getAttribute(($context["response"] ?? null), "height", array());
|
||||
// line 33
|
||||
echo " ";
|
||||
$context["ratio"] = (($context["height"] ?? null) / ($context["width"] ?? null));
|
||||
// line 34
|
||||
echo "
|
||||
";
|
||||
// line 36
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["default"] ?? null), "adjust", array())) {
|
||||
// line 37
|
||||
echo " ";
|
||||
// line 38
|
||||
echo " ";
|
||||
if ((((($context["width"] ?? null) * ($context["ratio"] ?? null)) > $this->getAttribute(($context["default"] ?? null), "height", array())) || ((($context["height"] ?? null) / ($context["ratio"] ?? null)) > $this->getAttribute(($context["default"] ?? null), "width", array())))) {
|
||||
// line 39
|
||||
echo " ";
|
||||
// line 40
|
||||
echo " ";
|
||||
$context["width"] = (($this->getAttribute(($context["default"] ?? null), "width", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default"] ?? null), "width", array()), 1)) : (1));
|
||||
// line 41
|
||||
echo " ";
|
||||
$context["height"] = twig_round(($this->getAttribute(($context["default"] ?? null), "width", array()) * ($context["ratio"] ?? null)));
|
||||
// line 42
|
||||
echo " ";
|
||||
}
|
||||
// line 43
|
||||
echo " ";
|
||||
} else {
|
||||
// line 44
|
||||
echo " ";
|
||||
$context["width"] = (($this->getAttribute(($context["default"] ?? null), "width", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default"] ?? null), "width", array()), 1)) : (1));
|
||||
// line 45
|
||||
echo " ";
|
||||
$context["height"] = (($this->getAttribute(($context["default"] ?? null), "height", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default"] ?? null), "height", array()), 1)) : (1));
|
||||
// line 46
|
||||
echo " ";
|
||||
}
|
||||
// line 47
|
||||
echo "
|
||||
";
|
||||
// line 49
|
||||
echo " ";
|
||||
$context["ratio"] = (($context["height"] ?? null) / ($context["width"] ?? null));
|
||||
// line 50
|
||||
echo " ";
|
||||
$context["container_styles"] = (("padding-bottom: " . sprintf("%.2f", (($context["ratio"] ?? null) * 100))) . "%;");
|
||||
// line 51
|
||||
echo "
|
||||
";
|
||||
// line 53
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["default"] ?? null), "responsive", array())) {
|
||||
// line 54
|
||||
echo " ";
|
||||
$context["responsive"] = "-responsive";
|
||||
// line 55
|
||||
echo "
|
||||
";
|
||||
// line 56
|
||||
$context["width"] = 1920;
|
||||
// line 57
|
||||
echo " ";
|
||||
$context["height"] = twig_round((($context["width"] ?? null) * ($context["ratio"] ?? null)));
|
||||
// line 58
|
||||
echo " ";
|
||||
} else {
|
||||
// line 59
|
||||
echo " ";
|
||||
$context["styles"] = ((((" style=\"max-width: " . ($context["width"] ?? null)) . "px; max-height: ") . ($context["height"] ?? null)) . "px;\"");
|
||||
// line 60
|
||||
echo " ";
|
||||
}
|
||||
// line 61
|
||||
echo "
|
||||
";
|
||||
// line 63
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["default"] ?? null), "preview", array())) {
|
||||
// line 64
|
||||
echo " ";
|
||||
$context["lazyload"] = " lazyload";
|
||||
// line 65
|
||||
echo " ";
|
||||
$context["lazyload_script"] = " onclick=\"lazyload(this)\"";
|
||||
// line 66
|
||||
echo " ";
|
||||
}
|
||||
// line 67
|
||||
echo "
|
||||
<div class=\"mediaembed";
|
||||
// line 68
|
||||
echo ($context["responsive"] ?? null);
|
||||
echo " mediaembed-media mediaembed-";
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "type", array());
|
||||
echo " mediaembed-";
|
||||
echo twig_lower_filter($this->env, $this->getAttribute(($context["oembed"] ?? null), "name", array()));
|
||||
echo ($context["lazyload"] ?? null);
|
||||
echo "\"";
|
||||
echo ($context["styles"] ?? null);
|
||||
echo ">
|
||||
<div class=\"mediaembed-container\" style=\"";
|
||||
// line 69
|
||||
echo ($context["container_styles"] ?? null);
|
||||
echo "\">
|
||||
";
|
||||
// line 71
|
||||
echo "
|
||||
";
|
||||
// line 73
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["oembed"] ?? null), "type", array()) == "photo")) {
|
||||
// line 74
|
||||
echo " ";
|
||||
$context["title"] = (((($this->getAttribute($this->getAttribute(($context["oembed"] ?? null), "getOembed", array(), "method"), "provider_name", array()) . ": “") . $this->getAttribute(($context["oembed"] ?? null), "title", array())) . "” by ") . $this->getAttribute(($context["oembed"] ?? null), "author", array()));
|
||||
// line 75
|
||||
echo " <a class=\"mediaembed-embed\" href=\"";
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "author", array(0 => "url"), "method");
|
||||
echo "\" title=\"";
|
||||
echo ($context["title"] ?? null);
|
||||
echo "\">
|
||||
<img src=\"";
|
||||
// line 76
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "url", array());
|
||||
echo "\" alt=\"";
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "title", array());
|
||||
echo "\">
|
||||
</a>
|
||||
|
||||
";
|
||||
// line 80
|
||||
echo " ";
|
||||
} elseif (($this->getAttribute(($context["oembed"] ?? null), "type", array()) == "video")) {
|
||||
// line 81
|
||||
echo " <a href=\"";
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "getEmbedCode", array());
|
||||
echo "\" alt=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "alt", array());
|
||||
echo "\" title=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "title", array());
|
||||
echo "\" class=\"mediaembed-media\"";
|
||||
echo ($context["lazyload_script"] ?? null);
|
||||
echo ">
|
||||
";
|
||||
// line 83
|
||||
echo " <!--
|
||||
<iframe class=\"mediaembed-embed\" src=\"";
|
||||
// line 84
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "getEmbedCode", array());
|
||||
echo "\" width=\"";
|
||||
echo ($context["width"] ?? null);
|
||||
echo "\" height=\"";
|
||||
echo ($context["height"] ?? null);
|
||||
echo "\" frameborder=\"0\" scrolling=\"no\" webkitallowfullscreen mozallowfullscreen allowfullscreen>
|
||||
<p>Your browser does not support iframes.</p>
|
||||
</iframe>
|
||||
-->
|
||||
|
||||
";
|
||||
// line 90
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["default"] ?? null), "preview", array()) && $this->getAttribute(($context["oembed"] ?? null), "thumbnail", array()))) {
|
||||
// line 91
|
||||
echo " <img src=\"";
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "thumbnail", array());
|
||||
echo "\" alt=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "alt", array());
|
||||
echo "\" title=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "title", array());
|
||||
echo "\" class=\"mediaembed-thumbnail\" />
|
||||
";
|
||||
} else {
|
||||
// line 93
|
||||
echo " ";
|
||||
// line 94
|
||||
echo " ";
|
||||
}
|
||||
// line 95
|
||||
echo "
|
||||
";
|
||||
// line 97
|
||||
echo " <input type=\"checkbox\" id=\"mediaembed-hidden-input-";
|
||||
echo $this->getAttribute(($context["mediaembed"] ?? null), "uid", array());
|
||||
echo "\" class=\"mediaembed-input\" />
|
||||
|
||||
";
|
||||
// line 100
|
||||
echo " <noscript>
|
||||
<iframe class=\"mediaembed-embed\" src=\"";
|
||||
// line 101
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "getEmbedCode", array());
|
||||
echo "\" width=\"";
|
||||
echo ($context["width"] ?? null);
|
||||
echo "\" height=\"";
|
||||
echo ($context["height"] ?? null);
|
||||
echo "\" frameborder=\"0\" scrolling=\"no\" webkitallowfullscreen mozallowfullscreen allowfullscreen style=\"display: none;\">
|
||||
<p>Your browser does not support iframes.</p>
|
||||
</iframe>
|
||||
</noscript>
|
||||
|
||||
<label class=\"mediaembed-play\" for=\"mediaembed-hidden-input-";
|
||||
// line 106
|
||||
echo $this->getAttribute(($context["mediaembed"] ?? null), "uid", array());
|
||||
echo "\">▶</label>
|
||||
</a>
|
||||
|
||||
";
|
||||
// line 110
|
||||
echo " ";
|
||||
} elseif (($this->getAttribute(($context["oembed"] ?? null), "type", array()) == "link")) {
|
||||
// line 111
|
||||
echo " ";
|
||||
$context["title"] = (((($this->getAttribute($this->getAttribute(($context["oembed"] ?? null), "getOembed", array(), "method"), "provider_name", array()) . ": “") . (($this->getAttribute($this->getAttribute($this->getAttribute(($context["oembed"] ?? null), "mediaembed", array(), "any", false, true), "raw", array(), "any", false, true), "title", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["oembed"] ?? null), "mediaembed", array(), "any", false, true), "raw", array(), "any", false, true), "title", array()), ($context["title"] ?? null))) : (($context["title"] ?? null)))) . "” by ") . $this->getAttribute(($context["oembed"] ?? null), "author", array()));
|
||||
// line 112
|
||||
echo " <a href=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "src", array());
|
||||
echo "\" alt=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "alt", array());
|
||||
echo "\" title=\"";
|
||||
echo ($context["title"] ?? null);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "src", array()));
|
||||
echo "</a>
|
||||
";
|
||||
// line 114
|
||||
echo " ";
|
||||
} elseif (($this->getAttribute(($context["oembed"] ?? null), "type", array()) == "rich")) {
|
||||
// line 115
|
||||
echo " <div class=\"mediaembed-media\">";
|
||||
echo $this->getAttribute(($context["oembed"] ?? null), "getEmbedCode", array(), "method");
|
||||
echo "</div>
|
||||
|
||||
";
|
||||
// line 118
|
||||
echo " ";
|
||||
} else {
|
||||
// line 119
|
||||
echo " ";
|
||||
// line 120
|
||||
echo " <a href=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "src", array());
|
||||
echo "\" alt=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "alt", array());
|
||||
echo "\" title=\"";
|
||||
echo $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "title", array());
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["mediaembed"] ?? null), "raw", array()), "src", array()));
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 122
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/mediaembed.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 350 => 122, 338 => 120, 336 => 119, 333 => 118, 327 => 115, 324 => 114, 313 => 112, 310 => 111, 307 => 110, 301 => 106, 289 => 101, 286 => 100, 280 => 97, 277 => 95, 274 => 94, 272 => 93, 262 => 91, 259 => 90, 247 => 84, 244 => 83, 233 => 81, 230 => 80, 222 => 76, 215 => 75, 212 => 74, 209 => 73, 206 => 71, 202 => 69, 191 => 68, 188 => 67, 185 => 66, 182 => 65, 179 => 64, 176 => 63, 173 => 61, 170 => 60, 167 => 59, 164 => 58, 161 => 57, 159 => 56, 156 => 55, 153 => 54, 150 => 53, 147 => 51, 144 => 50, 141 => 49, 138 => 47, 135 => 46, 132 => 45, 129 => 44, 126 => 43, 123 => 42, 120 => 41, 117 => 40, 115 => 39, 112 => 38, 110 => 37, 107 => 36, 104 => 34, 101 => 33, 98 => 32, 96 => 31, 93 => 30, 90 => 29, 87 => 28, 85 => 27, 82 => 26, 79 => 25, 76 => 24, 73 => 23, 71 => 22, 68 => 21, 61 => 16, 51 => 15, 46 => 13, 43 => 12, 40 => 11, 37 => 10, 34 => 9, 31 => 8, 28 => 7, 26 => 6, 23 => 4, 21 => 3, 19 => 2,);
|
||||
}
|
||||
|
||||
/** @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("{# Shortcut variables #}
|
||||
{% set default = mediaembed.config.media %}
|
||||
{% set oembed = mediaembed.service %}
|
||||
|
||||
{# Processing error #}
|
||||
{% if not mediaembed.success %}
|
||||
{% if default.responsive %}
|
||||
{% set class = \"-responsive mediaembed-msod\" %}
|
||||
{% else %}
|
||||
{% set class = \" mediaembed-msod\\\" style=\\\"max-width: \" ~ default.width ~ \"px;\" %}
|
||||
{% endif %}
|
||||
|
||||
<div class=\"mediaembed{{ class }}\">
|
||||
<p class=\"mediaembed-icon\">☕</p>
|
||||
<p class=\"mediaembed-error-title\"><b>Unable to process oEmbed media:</b><a href=\"{{ mediaembed.raw.src }}\" alt=\"{{ mediaembed.raw.alt }}\" title=\"{{ mediaembed.raw.title }}\">{{ mediaembed.raw.src|e }}</a></p>
|
||||
<p class=\"mediaembed-error-message\"><b>Error:</b>{{ mediaembed.message }}</p>
|
||||
</div>
|
||||
|
||||
{# Setup block #}
|
||||
{% else %}
|
||||
{% set response = oembed.attributes %}
|
||||
{# Normalize response #}
|
||||
{% if (response.width is empty) or not (response.width is defined) or (response.width == 0) %}
|
||||
{% set response = response|merge({'width' : default.width|default(1)}) %}
|
||||
{% endif %}
|
||||
|
||||
{% if (response.height is empty) or not (response.height is defined) or (response.height == 0) %}
|
||||
{% set response = response|merge({'height' : default.height|default(1)}) %}
|
||||
{% endif %}
|
||||
|
||||
{% set width = response.width %}
|
||||
{% set height = response.height %}
|
||||
{% set ratio = height / width %}
|
||||
|
||||
{# Adjust OEmbed media dimensions or restrict them? #}
|
||||
{% if default.adjust %}
|
||||
{# Check if computed height is larger than default setting #}
|
||||
{% if (width * ratio) > default.height or (height / ratio) > default.width %}
|
||||
{# Rescale width and height #}
|
||||
{% set width = default.width|default(1) %}
|
||||
{% set height = (default.width * ratio)|round %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set width = default.width|default(1) %}
|
||||
{% set height = default.height|default(1) %}
|
||||
{% endif %}
|
||||
|
||||
{# Recompute aspect ratio #}
|
||||
{% set ratio = height / width %}
|
||||
{% set container_styles = \"padding-bottom: \" ~ \"%.2f\"|format(ratio * 100) ~ \"%;\" %}
|
||||
|
||||
{# Embed responsive OEmbed media #}
|
||||
{% if default.responsive %}
|
||||
{% set responsive = \"-responsive\" %}
|
||||
|
||||
{% set width = 1920 %}
|
||||
{% set height = (width * ratio)|round %}
|
||||
{% else %}
|
||||
{% set styles = \" style=\\\"max-width: \" ~ width ~ \"px; max-height: \" ~ height ~ \"px;\\\"\" %}
|
||||
{% endif %}
|
||||
|
||||
{# Setup lazy loading media for those with preview enabled #}
|
||||
{% if default.preview %}
|
||||
{% set lazyload = \" lazyload\" %}
|
||||
{% set lazyload_script = \" onclick=\\\"lazyload(this)\\\"\" %}
|
||||
{% endif %}
|
||||
|
||||
<div class=\"mediaembed{{ responsive }} mediaembed-media mediaembed-{{ oembed.type }} mediaembed-{{ oembed.name|lower }}{{ lazyload }}\"{{ styles }}>
|
||||
<div class=\"mediaembed-container\" style=\"{{ container_styles }}\">
|
||||
{# Embed content according to media type #}
|
||||
|
||||
{# -- Photo -- #}
|
||||
{% if oembed.type == \"photo\" %}
|
||||
{% set title = oembed.getOembed().provider_name ~ ': “' ~ oembed.title ~ '” by ' ~ oembed.author %}
|
||||
<a class=\"mediaembed-embed\" href=\"{{ oembed.author('url') }}\" title=\"{{ title }}\">
|
||||
<img src=\"{{ oembed.url }}\" alt=\"{{ oembed.title }}\">
|
||||
</a>
|
||||
|
||||
{# -- Video -- #}
|
||||
{% elseif oembed.type == \"video\" %}
|
||||
<a href=\"{{ oembed.getEmbedCode }}\" alt=\"{{ mediaembed.raw.alt }}\" title=\"{{ mediaembed.raw.title }}\" class=\"mediaembed-media\"{{ lazyload_script }}>
|
||||
{# JavaScript lazy-loading #}
|
||||
<!--
|
||||
<iframe class=\"mediaembed-embed\" src=\"{{ oembed.getEmbedCode }}\" width=\"{{ width }}\" height=\"{{ height }}\" frameborder=\"0\" scrolling=\"no\" webkitallowfullscreen mozallowfullscreen allowfullscreen>
|
||||
<p>Your browser does not support iframes.</p>
|
||||
</iframe>
|
||||
-->
|
||||
|
||||
{# Show Thumbnail #}
|
||||
{% if default.preview and oembed.thumbnail %}
|
||||
<img src=\"{{ oembed.thumbnail }}\" alt=\"{{ mediaembed.raw.alt }}\" title=\"{{ mediaembed.raw.title }}\" class=\"mediaembed-thumbnail\" />
|
||||
{% else %}
|
||||
{# Show placeholder #}
|
||||
{% endif %}
|
||||
|
||||
{# Toggle for loading iframe content #}
|
||||
<input type=\"checkbox\" id=\"mediaembed-hidden-input-{{ mediaembed.uid }}\" class=\"mediaembed-input\" />
|
||||
|
||||
{# Implement JavaScript-less lazyload technique #}
|
||||
<noscript>
|
||||
<iframe class=\"mediaembed-embed\" src=\"{{ oembed.getEmbedCode }}\" width=\"{{ width }}\" height=\"{{ height }}\" frameborder=\"0\" scrolling=\"no\" webkitallowfullscreen mozallowfullscreen allowfullscreen style=\"display: none;\">
|
||||
<p>Your browser does not support iframes.</p>
|
||||
</iframe>
|
||||
</noscript>
|
||||
|
||||
<label class=\"mediaembed-play\" for=\"mediaembed-hidden-input-{{ mediaembed.uid }}\">▶</label>
|
||||
</a>
|
||||
|
||||
{# -- Link -- #}
|
||||
{% elseif oembed.type == \"link\" %}
|
||||
{% set title = oembed.getOembed().provider_name ~ ': “' ~ oembed.mediaembed.raw.title|default(title) ~ '” by ' ~ oembed.author %}
|
||||
<a href=\"{{ mediaembed.raw.src }}\" alt=\"{{ mediaembed.raw.alt }}\" title=\"{{ title }}\">{{ mediaembed.raw.src|e }}</a>
|
||||
{# -- Rich media -- #}
|
||||
{% elseif oembed.type == \"rich\" %}
|
||||
<div class=\"mediaembed-media\">{{ oembed.getEmbedCode() }}</div>
|
||||
|
||||
{# -- Nothing from above -- #}
|
||||
{% else %}
|
||||
{# Show at least a link for the user #}
|
||||
<a href=\"{{ mediaembed.raw.src }}\" alt=\"{{ mediaembed.raw.alt }}\" title=\"{{ mediaembed.raw.title }}\">{{ mediaembed.raw.src|e }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
", "partials/mediaembed.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/mediaembed/templates/partials/mediaembed.html.twig");
|
||||
}
|
||||
}
|
||||
+211
@@ -0,0 +1,211 @@
|
||||
<?php
|
||||
|
||||
/* partials/blueprints.html.twig */
|
||||
class __TwigTemplate_2b6e03b3761a66a2a4a501d59a9d1b361b85cd2c0d046072ff76b7cbe351248d extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["form_id"] = ((($context["form_id"] ?? null)) ? (($context["form_id"] ?? null)) : ("blueprints"));
|
||||
// line 2
|
||||
$context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "findFormFields", array(0 => "file", 1 => $this->getAttribute(($context["blueprints"] ?? null), "fields", array())), "method")) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["multipart"] = " enctype=\"multipart/form-data\"";
|
||||
}
|
||||
// line 7
|
||||
echo "
|
||||
<form id=\"";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" method=\"post\" data-grav-form=\"";
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" data-grav-keepalive=\"true\"";
|
||||
echo ($context["multipart"] ?? null);
|
||||
echo ">
|
||||
";
|
||||
// line 9
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["blueprints"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 10
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 11
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 12
|
||||
echo " <div class=\"block block-";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "type", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 13
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "partials/blueprints.html.twig", 13)->display($context);
|
||||
// line 14
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 16
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 17
|
||||
echo "
|
||||
";
|
||||
// line 18
|
||||
if ($this->getAttribute(($context["data"] ?? null), "extra", array())) {
|
||||
// line 19
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["data"] ?? null), "extra", array()));
|
||||
$context['loop'] = array(
|
||||
'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["name"] => $context["value"]) {
|
||||
// line 20
|
||||
echo " ";
|
||||
if (!twig_in_filter($context["name"], array(0 => "_json", 1 => "task", 2 => "admin-nonce"))) {
|
||||
// line 21
|
||||
echo " ";
|
||||
$context["field"] = array("name" => ("_json." . $context["name"]));
|
||||
// line 22
|
||||
echo " ";
|
||||
$context["value"] = twig_jsonencode_filter($context["value"]);
|
||||
// line 23
|
||||
echo " ";
|
||||
$this->loadTemplate("forms/fields/hidden/hidden.html.twig", "partials/blueprints.html.twig", 23)->display($context);
|
||||
// line 24
|
||||
echo " ";
|
||||
}
|
||||
// line 25
|
||||
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['name'], $context['value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 26
|
||||
echo " ";
|
||||
}
|
||||
// line 27
|
||||
echo "
|
||||
";
|
||||
// line 28
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
|
||||
echo "
|
||||
</form>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/blueprints.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 149 => 28, 146 => 27, 143 => 26, 129 => 25, 126 => 24, 123 => 23, 120 => 22, 117 => 21, 114 => 20, 96 => 19, 94 => 18, 91 => 17, 77 => 16, 73 => 14, 71 => 13, 66 => 12, 63 => 11, 60 => 10, 43 => 9, 35 => 8, 32 => 7, 28 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 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("{% set form_id = form_id ? form_id : 'blueprints' %}
|
||||
{% set scope = scope ?: 'data.' %}
|
||||
|
||||
{% if admin.findFormFields('file', blueprints.fields) %}
|
||||
{% set multipart = ' enctype=\"multipart/form-data\"' %}
|
||||
{% endif %}
|
||||
|
||||
<form id=\"{{ form_id }}\" method=\"post\" data-grav-form=\"{{ form_id }}\" data-grav-keepalive=\"true\"{{ multipart|raw }}>
|
||||
{% for field in blueprints.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
<div class=\"block block-{{ field.type }}\">
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if data.extra %}
|
||||
{% for name, value in data.extra %}
|
||||
{% if name not in ['_json','task','admin-nonce'] %}
|
||||
{% set field = {name: '_json.' ~ name} %}
|
||||
{% set value = value|raw|json_encode %}
|
||||
{% include 'forms/fields/hidden/hidden.html.twig' %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{{ nonce_field('admin-form', 'admin-nonce')|raw }}
|
||||
</form>
|
||||
", "partials/blueprints.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/blueprints.html.twig");
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
/* modular/contenu-multi.html.twig */
|
||||
class __TwigTemplate_0ebbc783d18d0857dc7a0512de958481c20e1209ac6c142004b74b9196563336 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
}
|
||||
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <div class=\"multi-column\">
|
||||
<h2>";
|
||||
// line 5
|
||||
echo $this->getAttribute(($context["header"] ?? null), "title", array());
|
||||
echo "</h2>
|
||||
";
|
||||
// line 6
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
// line 8
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 9
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\" class=\"mutli-column\">
|
||||
";
|
||||
// line 10
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 13
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular/contenu-multi.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 63 => 1, 59 => 13, 50 => 10, 45 => 9, 41 => 8, 36 => 6, 32 => 5, 29 => 4, 23 => 3, 20 => 2,);
|
||||
}
|
||||
|
||||
/** @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("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<div class=\"multi-column\">
|
||||
<h2>{{ header.title }}</h2>
|
||||
{{ page.content }}
|
||||
</div>
|
||||
{% for module in page.collection() %}
|
||||
<div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"mutli-column\">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular/contenu-multi.html.twig", "/home/kevin/Sites/static-ethica.net/user/themes/ethica/templates/modular/contenu-multi.html.twig");
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
/* partials/blueprints-new-folder.html.twig */
|
||||
class __TwigTemplate_6e9fa04004f172468b47300f802c591da6d76e466d23a219327830d449e046cd extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["form_id"] = ((($context["form_id"] ?? null)) ? (($context["form_id"] ?? null)) : ("blueprints"));
|
||||
// line 2
|
||||
$context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
|
||||
// line 3
|
||||
echo "
|
||||
<form id=\"";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" method=\"post\" data-grav-form=\"";
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" data-grav-keepalive=\"true\">
|
||||
";
|
||||
// line 5
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["blueprints"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 6
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 8
|
||||
echo " <div class=\"block block-";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "type", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 9
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "partials/blueprints-new-folder.html.twig", 9)->display($context);
|
||||
// line 10
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 12
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 13
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"task\" value=\"saveNewFolder\" />
|
||||
<div class=\"button-bar\">
|
||||
<button class=\"button primary\">";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 19
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
|
||||
echo "
|
||||
|
||||
</form>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/blueprints-new-folder.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 91 => 19, 85 => 16, 80 => 13, 66 => 12, 62 => 10, 60 => 9, 55 => 8, 52 => 7, 49 => 6, 32 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 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("{% set form_id = form_id ? form_id : 'blueprints' %}
|
||||
{% set scope = scope ?: 'data.' %}
|
||||
|
||||
<form id=\"{{ form_id }}\" method=\"post\" data-grav-form=\"{{ form_id }}\" data-grav-keepalive=\"true\">
|
||||
{% for field in blueprints.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
<div class=\"block block-{{field.type}}\">
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<input type=\"hidden\" name=\"task\" value=\"saveNewFolder\" />
|
||||
<div class=\"button-bar\">
|
||||
<button class=\"button primary\">{{ \"PLUGIN_ADMIN.SAVE\"|tu }}</button>
|
||||
</div>
|
||||
|
||||
{{ nonce_field('admin-form', 'admin-nonce')|raw }}
|
||||
|
||||
</form>
|
||||
", "partials/blueprints-new-folder.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/blueprints-new-folder.html.twig");
|
||||
}
|
||||
}
|
||||
+375
@@ -0,0 +1,375 @@
|
||||
<?php
|
||||
|
||||
/* config.html.twig */
|
||||
class __TwigTemplate_374d7279513f5959ba8104826926dde9159dcda7e10cf54bf20305a863e06152 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "config.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'stylesheets' => array($this, 'block_stylesheets'),
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'content_top' => array($this, 'block_content_top'),
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["config_slug"] = twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "basename", array()));
|
||||
// line 4
|
||||
$context["isInfo"] = (($context["config_slug"] ?? null) == "info");
|
||||
// line 6
|
||||
$context["tab_title_string"] = ("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["config_slug"] ?? null)));
|
||||
// line 7
|
||||
$context["tab_title"] = ((($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["tab_title_string"] ?? null)) == ($context["tab_title_string"] ?? null))) ? (twig_capitalize_string_filter($this->env, ($context["config_slug"] ?? null))) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["tab_title_string"] ?? null))));
|
||||
// line 8
|
||||
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIGURATION") . ": ") . ($context["tab_title"] ?? null));
|
||||
// line 10
|
||||
if ( !($context["isInfo"] ?? null)) {
|
||||
// line 11
|
||||
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("config/" . ($context["config_slug"] ?? null))), "method");
|
||||
}
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 14
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 15
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")), "method");
|
||||
// line 16
|
||||
echo " ";
|
||||
$this->displayParentBlock("stylesheets", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 19
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 20
|
||||
echo " ";
|
||||
$this->displayParentBlock("javascripts", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 23
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
// line 24
|
||||
echo " <div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 26
|
||||
if ($this->getAttribute($this->getAttribute(($context["data"] ?? null), "file", array()), "filename", array())) {
|
||||
// line 27
|
||||
echo " <button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 29
|
||||
echo " </div>
|
||||
<h1><i class=\"fa fa-fw fa-wrench\"></i> ";
|
||||
// line 30
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIGURATION"), "html", null, true);
|
||||
echo " - ";
|
||||
echo twig_escape_filter($this->env, ($context["tab_title"] ?? null), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
|
||||
// line 33
|
||||
public function block_content_top($context, array $blocks = array())
|
||||
{
|
||||
// line 34
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["data"] ?? null), "file", array()), "filename", array())) {
|
||||
// line 35
|
||||
echo " <div class=\"alert notice\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE_LOCATION"), "html", null, true);
|
||||
echo ": <b>";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter($this->getAttribute($this->getAttribute(($context["data"] ?? null), "file", array()), "filename", array()), array(($context["base_path"] ?? null) => "")), "html", null, true);
|
||||
echo "</b></div>
|
||||
";
|
||||
}
|
||||
// line 37
|
||||
echo "
|
||||
<div class=\"form-tabs\">
|
||||
<div class=\"tabs-nav\">
|
||||
|
||||
";
|
||||
// line 41
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration_system", 1 => "admin.super"))) {
|
||||
// line 42
|
||||
echo " <a ";
|
||||
if ((($context["config_slug"] ?? null) == "system")) {
|
||||
echo "class=\"active\"";
|
||||
}
|
||||
echo " href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/config/system\">
|
||||
<span>";
|
||||
// line 43
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SYSTEM"), "html", null, true);
|
||||
echo "</span>
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 46
|
||||
echo "
|
||||
";
|
||||
// line 47
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration_site", 1 => "admin.super"))) {
|
||||
// line 48
|
||||
echo " <a ";
|
||||
if ((($context["config_slug"] ?? null) == "site")) {
|
||||
echo "class=\"active\"";
|
||||
}
|
||||
echo " href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/config/site\">
|
||||
<span>";
|
||||
// line 49
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SITE"), "html", null, true);
|
||||
echo "</span>
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 52
|
||||
echo "
|
||||
";
|
||||
// line 53
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "configurations", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["configuration"]) {
|
||||
// line 54
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => ("admin.configuration_" . $context["configuration"]), 1 => "admin.super"))) {
|
||||
// line 55
|
||||
echo " ";
|
||||
$context["current_blueprints"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("config/" . $context["configuration"])), "method"), "blueprints", array()), "toArray", array(), "method");
|
||||
// line 56
|
||||
echo " ";
|
||||
if ((((($context["configuration"] != "system") && ($context["configuration"] != "site")) && !$this->getAttribute($this->getAttribute(($context["current_blueprints"] ?? null), "form", array()), "hidden", array())) && ( !twig_test_empty($this->getAttribute($this->getAttribute(($context["current_blueprints"] ?? null), "form", array()), "fields", array())) || !twig_test_empty($this->getAttribute($this->getAttribute(($context["current_blueprints"] ?? null), "form", array()), "field", array()))))) {
|
||||
// line 57
|
||||
echo " <a ";
|
||||
if ((($context["config_slug"] ?? null) == $context["configuration"])) {
|
||||
echo "class=\"active\"";
|
||||
}
|
||||
echo " href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/config/";
|
||||
echo twig_escape_filter($this->env, $context["configuration"], "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 58
|
||||
$context["configuration_string"] = ("PLUGIN_ADMIN." . twig_upper_filter($this->env, $context["configuration"]));
|
||||
// line 59
|
||||
echo " <span>";
|
||||
echo twig_escape_filter($this->env, ((($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["configuration_string"] ?? null)) == ($context["configuration_string"] ?? null))) ? (twig_capitalize_string_filter($this->env, $context["configuration"])) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["configuration_string"] ?? null)))), "html", null, true);
|
||||
echo "</span>
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 62
|
||||
echo " ";
|
||||
}
|
||||
// line 63
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['configuration'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 64
|
||||
echo "
|
||||
";
|
||||
// line 65
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration_info", 1 => "admin.super"))) {
|
||||
// line 66
|
||||
echo " <a ";
|
||||
if ((($context["config_slug"] ?? null) == "info")) {
|
||||
echo "class=\"active\"";
|
||||
}
|
||||
echo " href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/config/info\">
|
||||
<span>";
|
||||
// line 67
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INFO"), "html", null, true);
|
||||
echo "</span>
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 70
|
||||
echo "
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 75
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 76
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => ("admin.configuration_" . ($context["config_slug"] ?? null)), 1 => "admin.super"))) {
|
||||
// line 77
|
||||
echo " ";
|
||||
if (($context["isInfo"] ?? null)) {
|
||||
// line 78
|
||||
echo " <div id=\"phpinfo\">
|
||||
";
|
||||
// line 79
|
||||
echo $this->getAttribute(($context["admin"] ?? null), "phpinfo", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 82
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/blueprints.html.twig", "config.html.twig", 82)->display(array_merge($context, array("blueprints" => $this->getAttribute(($context["data"] ?? null), "blueprints", array()), "data" => ($context["data"] ?? null))));
|
||||
// line 83
|
||||
echo " ";
|
||||
}
|
||||
// line 84
|
||||
echo " ";
|
||||
}
|
||||
// line 85
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/modal-changes-detected.html.twig", "config.html.twig", 85)->display($context);
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "config.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 258 => 85, 255 => 84, 252 => 83, 249 => 82, 243 => 79, 240 => 78, 237 => 77, 234 => 76, 231 => 75, 224 => 70, 218 => 67, 209 => 66, 207 => 65, 204 => 64, 198 => 63, 195 => 62, 188 => 59, 186 => 58, 175 => 57, 172 => 56, 169 => 55, 166 => 54, 162 => 53, 159 => 52, 153 => 49, 144 => 48, 142 => 47, 139 => 46, 133 => 43, 124 => 42, 122 => 41, 116 => 37, 108 => 35, 105 => 34, 102 => 33, 94 => 30, 91 => 29, 85 => 27, 83 => 26, 77 => 25, 74 => 24, 71 => 23, 64 => 20, 61 => 19, 54 => 16, 51 => 15, 48 => 14, 44 => 1, 41 => 11, 39 => 10, 37 => 8, 35 => 7, 33 => 6, 31 => 4, 29 => 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 'partials/base.html.twig' %}
|
||||
|
||||
{% set config_slug = uri.basename|e %}
|
||||
{% set isInfo = (config_slug == 'info') %}
|
||||
|
||||
{% set tab_title_string = \"PLUGIN_ADMIN.\" ~ config_slug|upper %}
|
||||
{% set tab_title = (tab_title_string|tu == tab_title_string ? config_slug|capitalize : tab_title_string|tu) %}
|
||||
{% set title = \"PLUGIN_ADMIN.CONFIGURATION\"|tu ~ \": \" ~ tab_title %}
|
||||
|
||||
{% if not isInfo %}
|
||||
{% set data = admin.data('config/' ~ config_slug) %}
|
||||
{% endif %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss(theme_url ~ '/css/codemirror/codemirror.css') %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block titlebar %}
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"{{ base_url }}\"><i class=\"fa fa-reply\"></i> {{ \"PLUGIN_ADMIN.BACK\"|tu }}</a>
|
||||
{% if data.file.filename %}
|
||||
<button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> {{ \"PLUGIN_ADMIN.SAVE\"|tu }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-wrench\"></i> {{ \"PLUGIN_ADMIN.CONFIGURATION\"|tu }} - {{ tab_title }}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block content_top %}
|
||||
{% if data.file.filename %}
|
||||
<div class=\"alert notice\">{{ \"PLUGIN_ADMIN.SAVE_LOCATION\"|tu }}: <b>{{ data.file.filename|replace({(base_path):''}) }}</b></div>
|
||||
{% endif %}
|
||||
|
||||
<div class=\"form-tabs\">
|
||||
<div class=\"tabs-nav\">
|
||||
|
||||
{% if authorize(['admin.configuration_system', 'admin.super']) %}
|
||||
<a {% if config_slug == 'system' %}class=\"active\"{% endif %} href=\"{{ base_url_relative }}/config/system\">
|
||||
<span>{{ \"PLUGIN_ADMIN.SYSTEM\"|tu }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if authorize(['admin.configuration_site', 'admin.super']) %}
|
||||
<a {% if config_slug == 'site' %}class=\"active\"{% endif %} href=\"{{ base_url_relative }}/config/site\">
|
||||
<span>{{ \"PLUGIN_ADMIN.SITE\"|tu }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% for configuration in admin.configurations %}
|
||||
{% if authorize(['admin.configuration_' ~ configuration, 'admin.super']) %}
|
||||
{% set current_blueprints = admin.data('config/' ~ configuration).blueprints.toArray() %}
|
||||
{% if configuration != 'system' and configuration != 'site' and not current_blueprints.form.hidden and (current_blueprints.form.fields is not empty or current_blueprints.form.field is not empty) %}
|
||||
<a {% if config_slug == configuration %}class=\"active\"{% endif %} href=\"{{ base_url_relative }}/config/{{configuration}}\">
|
||||
{% set configuration_string = \"PLUGIN_ADMIN.\" ~ configuration|upper %}
|
||||
<span>{{ (configuration_string|tu == configuration_string ? configuration|capitalize : configuration_string|tu) }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if authorize(['admin.configuration_info', 'admin.super']) %}
|
||||
<a {% if config_slug == 'info' %}class=\"active\"{% endif %} href=\"{{ base_url_relative }}/config/info\">
|
||||
<span>{{ \"PLUGIN_ADMIN.INFO\"|tu }}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if authorize(['admin.configuration_' ~ config_slug, 'admin.super']) %}
|
||||
{% if isInfo %}
|
||||
<div id=\"phpinfo\">
|
||||
{{ admin.phpinfo|raw }}
|
||||
</div>
|
||||
{% else %}
|
||||
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% include 'partials/modal-changes-detected.html.twig' %}
|
||||
{% endblock %}
|
||||
", "config.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/config.html.twig");
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-quick-tray.html.twig */
|
||||
class __TwigTemplate_d53ab5674680e3f974348351339a353d26cf79f9654d6daeb896df1fbfa6aa6a extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_quick_tray", array())) {
|
||||
// line 2
|
||||
echo " <ul id=\"admin-nav-quick-tray\">
|
||||
";
|
||||
// line 3
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_quick_tray", array()));
|
||||
foreach ($context['_seq'] as $context["label"] => $context["item"]) {
|
||||
// line 4
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(((($this->getAttribute($context["item"], "authorize", array(), "any", true, true) && twig_test_iterable($this->getAttribute($context["item"], "authorize", array())))) ? ($this->getAttribute($context["item"], "authorize", array())) : (array(0 => (($this->getAttribute($context["item"], "authorize", array())) ? ($this->getAttribute($context["item"], "authorize", array())) : (("admin." . (($this->getAttribute($context["item"], "location", array())) ? ($this->getAttribute($context["item"], "location", array())) : ($this->getAttribute($context["item"], "route", array())))))), 1 => "admin.super"))))) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["data_tags"] = "";
|
||||
// line 6
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["item"], "data", array())) {
|
||||
// line 7
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "data", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
|
||||
// line 8
|
||||
echo " ";
|
||||
$context["data_tags"] = (((((($context["data_tags"] ?? null) . " data-") . $context["key"]) . "=\"") . $context["value"]) . "\"");
|
||||
// line 9
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 10
|
||||
echo " ";
|
||||
}
|
||||
// line 11
|
||||
echo " <li class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "class", array()), "html", null, true);
|
||||
echo " hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "hint", array()), "html", null, true);
|
||||
echo "\" ";
|
||||
echo ($context["data_tags"] ?? null);
|
||||
echo ">
|
||||
";
|
||||
// line 12
|
||||
if ($this->getAttribute($context["item"], "route", array())) {
|
||||
// line 13
|
||||
echo " <a href=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc($this->getAttribute($context["item"], "route", array())), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw ";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
</a>
|
||||
";
|
||||
} else {
|
||||
// line 17
|
||||
echo " <i class=\"fa fa-fw ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
";
|
||||
}
|
||||
// line 19
|
||||
echo " </li>
|
||||
";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['label'], $context['item'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 22
|
||||
echo " </ul>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/nav-quick-tray.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 92 => 22, 86 => 21, 82 => 19, 76 => 17, 70 => 14, 65 => 13, 63 => 12, 54 => 11, 51 => 10, 45 => 9, 42 => 8, 37 => 7, 34 => 6, 31 => 5, 28 => 4, 24 => 3, 21 => 2, 19 => 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 grav.twig.plugins_quick_tray %}
|
||||
<ul id=\"admin-nav-quick-tray\">
|
||||
{% for label, item in grav.twig.plugins_quick_tray %}
|
||||
{% if authorize((item.authorize is defined and item.authorize is iterable) ? item.authorize : [item.authorize ?: ('admin.' ~ (item.location ?: item.route)), 'admin.super']) %}
|
||||
{% set data_tags = '' %}
|
||||
{% if (item.data) %}
|
||||
{% for key, value in item.data %}
|
||||
{% set data_tags = data_tags ~ ' data-' ~ key ~ '=\"' ~ value ~ '\"' %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<li class=\"{{ item.class }} hint--bottom\" data-hint=\"{{ item.hint }}\" {{ data_tags|raw }}>
|
||||
{% if item.route %}
|
||||
<a href=\"{{ url(item.route) }}\">
|
||||
<i class=\"fa fa-fw {{ item.icon }}\"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<i class=\"fa fa-fw {{ item.icon }}\"></i>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
", "partials/nav-quick-tray.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav-quick-tray.html.twig");
|
||||
}
|
||||
}
|
||||
+364
@@ -0,0 +1,364 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/array/array.html.twig */
|
||||
class __TwigTemplate_32e69c4df61021f3e9e03fd0b52ffc366d3247dadcfb862824cf77392f26277c extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/array/array.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " data-grav-array-name=\"";
|
||||
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 "\"
|
||||
data-grav-array-keyname=\"";
|
||||
// line 5
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_key", array()))), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-array-valuename=\"";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_value", array()))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 7
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 42
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 43
|
||||
echo " ";
|
||||
$context["array_field"] = $this;
|
||||
// line 44
|
||||
echo " <div data-grav-array-type=\"container\"";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "value_only", array())) {
|
||||
echo " data-grav-array-mode=\"value_only\"";
|
||||
}
|
||||
echo (((twig_length_filter($this->env, ($context["value"] ?? null)) <= 1)) ? (" class=\"one-child\"") : (""));
|
||||
echo ">
|
||||
";
|
||||
// line 45
|
||||
if (twig_length_filter($this->env, ($context["value"] ?? null))) {
|
||||
// line 46
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 47
|
||||
if ( !twig_test_iterable($context["text"])) {
|
||||
// line 48
|
||||
echo " ";
|
||||
echo $context["array_field"]->getrenderer($context["key"], $context["text"], ($context["field"] ?? null), ($context["scope"] ?? null));
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 50
|
||||
echo " ";
|
||||
// line 51
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($context["text"]);
|
||||
foreach ($context['_seq'] as $context["subkey"] => $context["subtext"]) {
|
||||
// line 52
|
||||
echo $context["array_field"]->getrenderer(((($context["key"] . "[") . $context["subkey"]) . "]"), $context["subtext"], ($context["field"] ?? null), ($context["scope"] ?? null));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['subkey'], $context['subtext'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 54
|
||||
echo " ";
|
||||
}
|
||||
// line 55
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
} else {
|
||||
// line 58
|
||||
echo " <div class=\"form-row\" data-grav-array-type=\"row\">
|
||||
<span data-grav-array-action=\"sort\" class=\"fa fa-bars\"></span>
|
||||
";
|
||||
// line 60
|
||||
if (($this->getAttribute(($context["field"] ?? null), "value_only", array()) != true)) {
|
||||
// line 61
|
||||
echo " <input
|
||||
data-grav-array-type=\"key\"
|
||||
type=\"text\"
|
||||
";
|
||||
// line 64
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 65
|
||||
echo " placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_key", array()))), "html", null, true);
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
// line 67
|
||||
echo " <input
|
||||
data-grav-array-type=\"value\"
|
||||
type=\"text\"
|
||||
name=\"";
|
||||
// line 70
|
||||
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 "\"
|
||||
";
|
||||
// line 71
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 72
|
||||
echo " placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_value", array()))), "html", null, true);
|
||||
echo "\" />
|
||||
<span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>
|
||||
<span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>
|
||||
</div>";
|
||||
}
|
||||
// line 77
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 10
|
||||
public function getrenderer($__key__ = null, $__text__ = null, $__field__ = null, $__scope__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"key" => $__key__,
|
||||
"text" => $__text__,
|
||||
"field" => $__field__,
|
||||
"scope" => $__scope__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 11
|
||||
echo "
|
||||
";
|
||||
// line 12
|
||||
if ( !twig_test_iterable(($context["text"] ?? null))) {
|
||||
// line 13
|
||||
echo " <div class=\"form-row";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "value_only", array())) {
|
||||
echo " array-field-value_only";
|
||||
}
|
||||
echo "\"
|
||||
data-grav-array-type=\"row\">
|
||||
<span data-grav-array-action=\"sort\" class=\"fa fa-bars\"></span>
|
||||
";
|
||||
// line 16
|
||||
if (($this->getAttribute(($context["field"] ?? null), "value_only", array()) != true)) {
|
||||
// line 17
|
||||
echo " ";
|
||||
if (((($context["key"] ?? null) == "0") && (($context["text"] ?? null) == ""))) {
|
||||
// line 18
|
||||
echo " ";
|
||||
$context["key"] = "";
|
||||
// line 19
|
||||
echo " ";
|
||||
}
|
||||
// line 20
|
||||
echo "
|
||||
<input
|
||||
data-grav-array-type=\"key\"
|
||||
type=\"text\" value=\"";
|
||||
// line 23
|
||||
echo twig_escape_filter($this->env, ($context["key"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 24
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 25
|
||||
echo " placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_key", array()))), "html", null, true);
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
// line 27
|
||||
echo "
|
||||
<input
|
||||
data-grav-array-type=\"value\"
|
||||
type=\"text\"
|
||||
name=\"";
|
||||
// line 31
|
||||
echo twig_escape_filter($this->env, ((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . "[") . ($context["key"] ?? null)) . "]"), "html", null, true);
|
||||
echo "\"
|
||||
placeholder=\"";
|
||||
// line 32
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder_value", array()))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 33
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 34
|
||||
echo " value=";
|
||||
if ((($context["text"] ?? null) == "true")) {
|
||||
echo "true";
|
||||
} elseif ((($context["text"] ?? null) == "false")) {
|
||||
echo "false";
|
||||
} else {
|
||||
echo "\"";
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["text"] ?? null), ", "));
|
||||
echo "\"";
|
||||
}
|
||||
echo " />
|
||||
|
||||
<span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>
|
||||
<span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/array/array.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 229 => 34, 225 => 33, 221 => 32, 217 => 31, 211 => 27, 205 => 25, 201 => 24, 197 => 23, 192 => 20, 189 => 19, 186 => 18, 183 => 17, 181 => 16, 172 => 13, 170 => 12, 167 => 11, 152 => 10, 147 => 77, 139 => 72, 135 => 71, 131 => 70, 126 => 67, 120 => 65, 116 => 64, 111 => 61, 109 => 60, 105 => 58, 98 => 55, 95 => 54, 87 => 52, 82 => 51, 80 => 50, 74 => 48, 72 => 47, 67 => 46, 65 => 45, 57 => 44, 54 => 43, 51 => 42, 45 => 7, 41 => 6, 37 => 5, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-array-name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
data-grav-array-keyname=\"{{ field.placeholder_key|e|tu }}\"
|
||||
data-grav-array-valuename=\"{{ field.placeholder_value|e|tu }}\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% macro renderer(key, text, field, scope) %}
|
||||
|
||||
{% if text is not iterable %}
|
||||
<div class=\"form-row{% if field.value_only %} array-field-value_only{% endif %}\"
|
||||
data-grav-array-type=\"row\">
|
||||
<span data-grav-array-action=\"sort\" class=\"fa fa-bars\"></span>
|
||||
{% if field.value_only != true %}
|
||||
{% if key == '0' and text == '' %}
|
||||
{% set key = '' %}
|
||||
{% endif %}
|
||||
|
||||
<input
|
||||
data-grav-array-type=\"key\"
|
||||
type=\"text\" value=\"{{ key }}\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
placeholder=\"{{ field.placeholder_key|e|tu }}\" />
|
||||
{% endif %}
|
||||
|
||||
<input
|
||||
data-grav-array-type=\"value\"
|
||||
type=\"text\"
|
||||
name=\"{{ ((scope ~ field.name)|fieldName) ~ '[' ~ key ~ ']' }}\"
|
||||
placeholder=\"{{ field.placeholder_value|e|tu }}\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
value={% if text == 'true' %}true{% elseif text == 'false' %}false{% else %}\"{{ text|join(', ')|e }}\"{% endif %} />
|
||||
|
||||
<span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>
|
||||
<span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% block input %}
|
||||
{% import _self as array_field %}
|
||||
<div data-grav-array-type=\"container\"{% if field.value_only %} data-grav-array-mode=\"value_only\"{% endif %}{{ value|length <= 1 ? ' class=\"one-child\"' : '' }}>
|
||||
{% if value|length %}
|
||||
{% for key, text in value -%}
|
||||
{% if text is not iterable %}
|
||||
{{ array_field.renderer(key, text, field, scope) }}
|
||||
{% else %}
|
||||
{# Backward compatibility for nested arrays (metas) which are not supported anymore #}
|
||||
{% for subkey, subtext in text -%}
|
||||
{{ array_field.renderer(key ~ '[' ~ subkey ~ ']', subtext, field, scope) }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{%- else -%}
|
||||
{# Empty value, mock the entry field#}
|
||||
<div class=\"form-row\" data-grav-array-type=\"row\">
|
||||
<span data-grav-array-action=\"sort\" class=\"fa fa-bars\"></span>
|
||||
{% if field.value_only != true %}
|
||||
<input
|
||||
data-grav-array-type=\"key\"
|
||||
type=\"text\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
placeholder=\"{{ field.placeholder_key|e|tu }}\" />
|
||||
{% endif %}
|
||||
<input
|
||||
data-grav-array-type=\"value\"
|
||||
type=\"text\"
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
placeholder=\"{{ field.placeholder_value|e|tu }}\" />
|
||||
<span data-grav-array-action=\"rem\" class=\"fa fa-minus\"></span>
|
||||
<span data-grav-array-action=\"add\" class=\"fa fa-plus\"></span>
|
||||
</div>
|
||||
{%- endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/array/array.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/array/array.html.twig");
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
/* partials/userinfo-avatar.html.twig */
|
||||
class __TwigTemplate_58193e43aac927bef65e24ea31ff7daeb16dd5c0bfdb2314fc3eba7508dee9b2 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->getAttribute(($context["data"] ?? null), "avatar", array())) {
|
||||
// line 2
|
||||
echo " <label><img src=\"";
|
||||
echo twig_escape_filter($this->env, ((($context["base_url_simple"] ?? null) . "/") . $this->getAttribute(twig_first($this->env, $this->getAttribute(($context["data"] ?? null), "avatar", array())), "path", array())), "html", null, true);
|
||||
echo "\" /></label>
|
||||
";
|
||||
} else {
|
||||
// line 4
|
||||
echo " <label><img src=\"https://www.gravatar.com/avatar/";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->md5Filter($this->getAttribute(($context["data"] ?? null), "email", array())), "html", null, true);
|
||||
echo "?s=200\" /></label>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/userinfo-avatar.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 27 => 4, 21 => 2, 19 => 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 data.avatar %}
|
||||
<label><img src=\"{{ base_url_simple ~ '/' ~ (data.avatar|first).path }}\" /></label>
|
||||
{% else %}
|
||||
<label><img src=\"https://www.gravatar.com/avatar/{{ data.email|md5 }}?s=200\" /></label>
|
||||
{% endif %}", "partials/userinfo-avatar.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/userinfo-avatar.html.twig");
|
||||
}
|
||||
}
|
||||
+270
@@ -0,0 +1,270 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/tabs/tabs.html.twig */
|
||||
class __TwigTemplate_376c579fd13500c86998097d3eec40eabf874c773008bfd0b68a1f9a4be0e169 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"form-tabs ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "class", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
|
||||
";
|
||||
// line 3
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 4
|
||||
echo "
|
||||
";
|
||||
// line 5
|
||||
$context["tabsKey"] = twig_join_filter(twig_get_array_keys_filter($this->getAttribute(($context["field"] ?? null), "fields", array())), ".");
|
||||
// line 6
|
||||
echo " ";
|
||||
$context["storedValue"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->jsonDecodeFilter(_twig_default_filter($this->env->getExtension('Grav\Common\Twig\TwigExtension')->getCookie("grav-tabs-state"), "{}"));
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["storedTab"] = $this->getAttribute(($context["storedValue"] ?? null), ("tab-" . ($context["tabsKey"] ?? null)));
|
||||
// line 8
|
||||
echo "
|
||||
";
|
||||
// line 9
|
||||
if (twig_test_empty(($context["storedTab"] ?? null))) {
|
||||
// line 10
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["uri"] ?? null), "params", array()), "tab", array())) {
|
||||
// line 11
|
||||
echo " ";
|
||||
$context["active"] = $this->getAttribute($this->getAttribute(($context["uri"] ?? null), "params", array()), "tab", array());
|
||||
// line 12
|
||||
echo " ";
|
||||
} elseif ($this->getAttribute(($context["field"] ?? null), "active", array())) {
|
||||
// line 13
|
||||
echo " ";
|
||||
$context["active"] = $this->getAttribute(($context["field"] ?? null), "active", array());
|
||||
// line 14
|
||||
echo " ";
|
||||
} else {
|
||||
// line 15
|
||||
echo " ";
|
||||
$context["active"] = 1;
|
||||
// line 16
|
||||
echo " ";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
}
|
||||
// line 18
|
||||
echo "
|
||||
<div class=\"tabs-nav\">
|
||||
";
|
||||
// line 20
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["tab"]) {
|
||||
// line 21
|
||||
echo " ";
|
||||
if ((($this->getAttribute($context["tab"], "type", array()) == "tab") && (twig_test_empty($this->getAttribute($context["tab"], "security", array())) || $this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize($this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc($this->getAttribute($context["tab"], "security", array())))))) {
|
||||
// line 22
|
||||
echo " <a class=\"tab__link ";
|
||||
echo ((((($context["storedTab"] ?? null) == (($context["scope"] ?? null) . $this->getAttribute($context["tab"], "name", array()))) || (($context["active"] ?? null) == $this->getAttribute($context["loop"], "index", array())))) ? ("active") : (""));
|
||||
echo "\" href=\"#\" data-tabid=\"tab-";
|
||||
echo twig_escape_filter($this->env, (($context["tabsKey"] ?? null) . $this->getAttribute($context["loop"], "index", array())), "html", null, true);
|
||||
echo "\" data-tabkey=\"tab-";
|
||||
echo twig_escape_filter($this->env, ($context["tabsKey"] ?? null), "html", null, true);
|
||||
echo "\" data-scope=\"";
|
||||
echo twig_escape_filter($this->env, (($context["scope"] ?? null) . $this->getAttribute($context["tab"], "name", array())), "html", null, true);
|
||||
echo "\">
|
||||
<span>
|
||||
";
|
||||
// line 24
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute($context["tab"], "title", array())), "html", null, true);
|
||||
} else {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($context["tab"], "title", array())), "html", null, true);
|
||||
}
|
||||
// line 25
|
||||
echo " </span>
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 28
|
||||
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['tab'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 29
|
||||
echo " </div>
|
||||
<div class=\"tabs-content\">
|
||||
";
|
||||
// line 31
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 32
|
||||
echo " ";
|
||||
if (($this->getAttribute($context["field"], "type", array()) == "tab")) {
|
||||
// line 33
|
||||
echo " ";
|
||||
if ((twig_test_empty($this->getAttribute($context["field"], "security", array())) || $this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize($this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc($this->getAttribute($context["field"], "security", array()))))) {
|
||||
// line 34
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 35
|
||||
echo " <div id=\"tab-";
|
||||
echo twig_escape_filter($this->env, (($context["tabsKey"] ?? null) . $this->getAttribute($context["loop"], "index", array())), "html", null, true);
|
||||
echo "\" class=\"tab__content ";
|
||||
echo ((((($context["storedTab"] ?? null) == (($context["scope"] ?? null) . $this->getAttribute($context["field"], "name", array()))) || (($context["active"] ?? null) == $this->getAttribute($context["loop"], "index", array())))) ? ("active") : (""));
|
||||
echo "\">
|
||||
";
|
||||
// line 36
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/tabs/tabs.html.twig", 36)->display($context);
|
||||
// line 37
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 39
|
||||
echo " ";
|
||||
}
|
||||
// line 40
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 41
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 43
|
||||
echo "</div>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/tabs/tabs.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 194 => 43, 190 => 41, 176 => 40, 173 => 39, 169 => 37, 167 => 36, 160 => 35, 157 => 34, 154 => 33, 151 => 32, 134 => 31, 130 => 29, 116 => 28, 111 => 25, 105 => 24, 93 => 22, 90 => 21, 73 => 20, 69 => 18, 66 => 17, 63 => 16, 60 => 15, 57 => 14, 54 => 13, 51 => 12, 48 => 11, 45 => 10, 43 => 9, 40 => 8, 37 => 7, 34 => 6, 32 => 5, 29 => 4, 27 => 3, 19 => 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("<div class=\"form-tabs {{ field.class }} {{ field.classes }}\">
|
||||
|
||||
{% if field.fields %}
|
||||
|
||||
{% set tabsKey = field.fields|keys|join('.') %}
|
||||
{% set storedValue = get_cookie('grav-tabs-state')|default('{}')|json_decode %}
|
||||
{% set storedTab = attribute(storedValue, 'tab-' ~ tabsKey) %}
|
||||
|
||||
{% if storedTab is empty %}
|
||||
{% if uri.params.tab %}
|
||||
{% set active = uri.params.tab %}
|
||||
{% elseif field.active %}
|
||||
{% set active = field.active %}
|
||||
{% else %}
|
||||
{% set active = 1 %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<div class=\"tabs-nav\">
|
||||
{% for tab in field.fields %}
|
||||
{% if tab.type == 'tab' and (tab.security is empty or authorize(array(tab.security))) %}
|
||||
<a class=\"tab__link {{ (storedTab == scope ~ tab.name) or active == loop.index ? 'active' : '' }}\" href=\"#\" data-tabid=\"tab-{{ tabsKey ~ loop.index }}\" data-tabkey=\"tab-{{ tabsKey }}\" data-scope=\"{{ scope ~ tab.name }}\">
|
||||
<span>
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}{{ tab.title|tu }}{% else %}{{ tab.title|t }}{% endif %}
|
||||
</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class=\"tabs-content\">
|
||||
{% for field in field.fields %}
|
||||
{% if field.type == 'tab' %}
|
||||
{% if field.security is empty or authorize(array(field.security)) %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
<div id=\"tab-{{ tabsKey ~ loop.index }}\" class=\"tab__content {{ (storedTab == scope ~ field.name) or active == loop.index ? 'active' : '' }}\">
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
", "forms/fields/tabs/tabs.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/tabs/tabs.html.twig");
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
/* partials/release-toggle.html.twig */
|
||||
class __TwigTemplate_5eaa666f6e9b4044bc18f4771872cc4283bd5542c5ede4e09bb6674b069ea0f6 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<form id=\"gpm-release-toggle\">
|
||||
<div class=\"switch-toggle switch-grav\" data-url=\"";
|
||||
// line 2
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "/ajax.json/task:gpmRelease\">
|
||||
<input type=\"radio\" value=\"stable\" id=\"stable\" name=\"channel-switch\" class=\"highlight\" ";
|
||||
// line 3
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "gpm", array()), "releases", array()) == "stable")) {
|
||||
echo " checked=\"checked\"";
|
||||
}
|
||||
echo ">
|
||||
<label for=\"stable\">";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.STABLE"), "html", null, true);
|
||||
echo "</label>
|
||||
<input type=\"radio\" value=\"testing\" id=\"testing\" name=\"channel-switch\" class=\"highlight\" ";
|
||||
// line 5
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "gpm", array()), "releases", array()) == "testing")) {
|
||||
echo " checked=\"checked\"";
|
||||
}
|
||||
echo ">
|
||||
<label for=\"testing\">";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.TESTING"), "html", null, true);
|
||||
echo "</label>
|
||||
<a></a>
|
||||
</div>
|
||||
</form>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/release-toggle.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 42 => 6, 36 => 5, 32 => 4, 26 => 3, 22 => 2, 19 => 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("<form id=\"gpm-release-toggle\">
|
||||
<div class=\"switch-toggle switch-grav\" data-url=\"{{ base_url }}/ajax.json/task:gpmRelease\">
|
||||
<input type=\"radio\" value=\"stable\" id=\"stable\" name=\"channel-switch\" class=\"highlight\" {% if config.system.gpm.releases == 'stable' %} checked=\"checked\"{% endif %}>
|
||||
<label for=\"stable\">{{ \"PLUGIN_ADMIN.STABLE\"|tu }}</label>
|
||||
<input type=\"radio\" value=\"testing\" id=\"testing\" name=\"channel-switch\" class=\"highlight\" {% if config.system.gpm.releases == 'testing' %} checked=\"checked\"{% endif %}>
|
||||
<label for=\"testing\">{{ \"PLUGIN_ADMIN.TESTING\"|tu }}</label>
|
||||
<a></a>
|
||||
</div>
|
||||
</form>
|
||||
", "partials/release-toggle.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/release-toggle.html.twig");
|
||||
}
|
||||
}
|
||||
+193
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/key/key.html.twig */
|
||||
class __TwigTemplate_a2a6fb1f2429748017817298c2e8e31fa7b2909fd807acc7b4770106482dd78b extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/key/key.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())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <div class=\"form-input-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
<input
|
||||
type=\"text\"
|
||||
value=\"";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, twig_join_filter(twig_escape_filter($this->env, ($context["value"] ?? null), "html_attr"), ", "), "html", null, true);
|
||||
echo "\"
|
||||
data-key-observe=\"";
|
||||
// line 8
|
||||
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 "\"
|
||||
";
|
||||
// line 9
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 24
|
||||
echo " />
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo "class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 11
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
echo "id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 12
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
|
||||
echo "style=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 13
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 15
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 16
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 18
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off"))) {
|
||||
echo "autocomplete=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array())) {
|
||||
echo "pattern=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())) {
|
||||
echo "title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array()))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
} elseif ($this->getAttribute( // line 22
|
||||
($context["field"] ?? null), "title", array(), "any", true, true)) {
|
||||
echo "title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "title", array()))), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/key/key.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 138 => 23, 132 => 22, 125 => 21, 118 => 20, 113 => 19, 106 => 18, 101 => 17, 96 => 16, 91 => 15, 84 => 14, 79 => 13, 72 => 12, 65 => 11, 58 => 10, 55 => 9, 49 => 24, 47 => 9, 43 => 8, 39 => 7, 32 => 4, 29 => 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\" %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-input-wrapper {{ field.size }}\">
|
||||
<input
|
||||
type=\"text\"
|
||||
value=\"{{ value|e('html_attr')|join(', ') }}\"
|
||||
data-key-observe=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% block input_attributes %}
|
||||
{% if field.classes is defined %}class=\"{{ field.classes }}\" {% endif %}
|
||||
{% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
|
||||
{% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.placeholder %}placeholder=\"{{ field.placeholder }}\"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
|
||||
{% if field.autocomplete in ['on', 'off'] %}autocomplete=\"{{ field.autocomplete }}\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.validate.pattern %}pattern=\"{{ field.validate.pattern }}\"{% endif %}
|
||||
{% if field.validate.message %}title=\"{{ field.validate.message|e|t }}\"
|
||||
{% elseif field.title is defined %}title=\"{{ field.title|e|t }}\" {% endif %}
|
||||
{% endblock %}
|
||||
/>
|
||||
</div>
|
||||
{% endblock %}", "forms/fields/key/key.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/key/key.html.twig");
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/* partials/base.html.twig */
|
||||
class __TwigTemplate_d0c0fa22e289da9e3bcaad2d7ced9d1d33e407f20b1d7cd1ed860dac8ae92963 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base-root.html.twig", "partials/base.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base-root.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 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 'partials/base-root.html.twig' %}
|
||||
", "partials/base.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/base.html.twig");
|
||||
}
|
||||
}
|
||||
+277
@@ -0,0 +1,277 @@
|
||||
<?php
|
||||
|
||||
/* partials/modal-add-package.html.twig */
|
||||
class __TwigTemplate_3d53a0fa25c4043e17fcad3e8cdb6426271b4cd9b8aa58f62fe87e69c27c0d62 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"remodal\"
|
||||
data-packages-modal
|
||||
data-remodal-id=\"add-package\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"add-package-installing\">
|
||||
<h1>";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLING"), "html", null, true);
|
||||
echo "</h1>
|
||||
|
||||
<div class=\"loading\">
|
||||
<p>
|
||||
";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOADING"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"install-dependencies-package-container hidden\">
|
||||
<p><strong>";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DEPENDENCIES_NOT_MET_MESSAGE"), "html", null, true);
|
||||
echo "</strong></p>
|
||||
|
||||
<div class=\"type-install hidden\">
|
||||
<p>";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_NOT_INSTALLED"), "html", null, true);
|
||||
echo ":</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-update hidden\">
|
||||
<p>";
|
||||
// line 24
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_NEED_UPDATE"), "html", null, true);
|
||||
echo ":</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-ignore hidden\">
|
||||
<p>";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_SUGGESTED_UPDATE"), "html", null, true);
|
||||
echo ":</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<a data-";
|
||||
// line 34
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
||||
echo "-action=\"install-dependencies-and-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-container hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 40
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.READY_TO_INSTALL_PACKAGES"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 46
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<a data-";
|
||||
// line 47
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
||||
echo "-action=\"install-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-error hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 53
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ERROR_INSTALLING_PACKAGES"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 59
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-dependencies hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 65
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLING_DEPENDENCIES"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-package hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 72
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLING_PACKAGES"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
|
||||
<div class=\"installation-complete hidden\">
|
||||
<p>
|
||||
";
|
||||
// line 81
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PACKAGES_SUCCESSFULLY_INSTALLED"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/modal-add-package.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 150 => 81, 138 => 72, 128 => 65, 119 => 59, 110 => 53, 99 => 47, 95 => 46, 86 => 40, 75 => 34, 71 => 33, 63 => 28, 56 => 24, 49 => 20, 43 => 17, 34 => 11, 27 => 7, 19 => 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("<div class=\"remodal\"
|
||||
data-packages-modal
|
||||
data-remodal-id=\"add-package\"
|
||||
data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<div class=\"add-package-installing\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.INSTALLING\"|tu }}</h1>
|
||||
|
||||
<div class=\"loading\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.LOADING\"|tu }}
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"install-dependencies-package-container hidden\">
|
||||
<p><strong>{{ \"PLUGIN_ADMIN.DEPENDENCIES_NOT_MET_MESSAGE\"|tu }}</strong></p>
|
||||
|
||||
<div class=\"type-install hidden\">
|
||||
<p>{{ \"PLUGIN_ADMIN.PACKAGES_NOT_INSTALLED\"|tu }}:</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-update hidden\">
|
||||
<p>{{ \"PLUGIN_ADMIN.PACKAGES_NEED_UPDATE\"|tu }}:</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
<div class=\"type-ignore hidden\">
|
||||
<p>{{ \"PLUGIN_ADMIN.PACKAGES_SUGGESTED_UPDATE\"|tu }}:</p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<a data-{{ type }}-action=\"install-dependencies-and-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-container hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.READY_TO_INSTALL_PACKAGES\"|tu }}
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<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>
|
||||
<a data-{{ type }}-action=\"install-package\" class=\"button\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"install-package-error hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.ERROR_INSTALLING_PACKAGES\"|tu }}
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-dependencies hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.INSTALLING_DEPENDENCIES\"|tu }}
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class=\"installing-package hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.INSTALLING_PACKAGES\"|tu }}
|
||||
<span class=\"fa fa-spin fa-spinner\"></span>
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
|
||||
<div class=\"installation-complete hidden\">
|
||||
<p>
|
||||
{{ \"PLUGIN_ADMIN.PACKAGES_SUCCESSFULLY_INSTALLED\"|tu }}
|
||||
</p>
|
||||
|
||||
<ul class=\"packages-names-list\"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>", "partials/modal-add-package.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/modal-add-package.html.twig");
|
||||
}
|
||||
}
|
||||
+338
@@ -0,0 +1,338 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/permissions/permissions.html.twig */
|
||||
class __TwigTemplate_8a42c0f9d107f8645fead9da51ebe32e1d20bf06dfb1b7893b4b9005b9076ca0 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/permissions/permissions.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
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["value"] = (((($context["value"] ?? null) === false)) ? (0) : (($context["value"] ?? null)));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 7
|
||||
echo " data-grav-disabled=\"";
|
||||
echo (((null === ($context["originalValue"] ?? null))) ? ("true") : ("false"));
|
||||
echo "\"
|
||||
data-grav-default=\"";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 16
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 17
|
||||
echo " <div class=\"permissions-container\">
|
||||
";
|
||||
// line 18
|
||||
$context["permissions"] = $this->getAttribute(($context["admin"] ?? null), "getPermissions", array());
|
||||
// line 19
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
|
||||
foreach ($context['_seq'] as $context["index_existing_permission"] => $context["value_existing_permission"]) {
|
||||
// line 20
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($context["value_existing_permission"]);
|
||||
foreach ($context['_seq'] as $context["index_segment1"] => $context["value_segment1"]) {
|
||||
// line 21
|
||||
echo " ";
|
||||
$context["permissions"] = twig_array_merge(($context["permissions"] ?? null), array((($context["index_existing_permission"] . ".") . $context["index_segment1"]) => "boolean"));
|
||||
// line 22
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['index_segment1'], $context['value_segment1'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 23
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['index_existing_permission'], $context['value_existing_permission'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 24
|
||||
echo "
|
||||
";
|
||||
// line 25
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["permissions"] ?? null));
|
||||
foreach ($context['_seq'] as $context["permission"] => $context["type"]) {
|
||||
// line 26
|
||||
echo " <div class=\"permission-container\">
|
||||
";
|
||||
// line 27
|
||||
$context["permission_segments"] = twig_split_filter($this->env, $context["permission"], ".");
|
||||
// line 28
|
||||
echo " ";
|
||||
$context["permission_value"] = $this->getAttribute($this->getAttribute(($context["value"] ?? null), $this->getAttribute(($context["permission_segments"] ?? null), 0, array(), "array"), array(), "array"), $this->getAttribute(($context["permission_segments"] ?? null), 1, array(), "array"), array(), "array");
|
||||
// line 29
|
||||
echo " ";
|
||||
if (twig_in_filter(($context["permission_value"] ?? null), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
// line 30
|
||||
echo " ";
|
||||
$context["permission_value"] = "true";
|
||||
// line 31
|
||||
echo " ";
|
||||
}
|
||||
// line 32
|
||||
echo "
|
||||
<input type=\"text\" class=\"medium permission-value\" value=\"";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, $context["permission"], "html", null, true);
|
||||
echo "\" />
|
||||
|
||||
<div class=\"switch-toggle switch-grav medium switch-3\">
|
||||
";
|
||||
// line 36
|
||||
$context["options"] = array("true" => "PLUGIN_ADMIN.YES", "false" => "PLUGIN_ADMIN.NO", "" => "PLUGIN_ADMIN.NOT_SET");
|
||||
// line 37
|
||||
echo "
|
||||
";
|
||||
// line 38
|
||||
$context["maxLen"] = 0;
|
||||
// line 39
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
|
||||
foreach ($context['_seq'] as $context["value"] => $context["text"]) {
|
||||
// line 40
|
||||
echo " ";
|
||||
$context["translation"] = (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($context["text"])) : ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"])));
|
||||
// line 41
|
||||
echo " ";
|
||||
$context["maxLen"] = max(twig_length_filter($this->env, ($context["translation"] ?? null)), ($context["maxLen"] ?? null));
|
||||
// line 42
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 43
|
||||
echo "
|
||||
";
|
||||
// line 44
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 45
|
||||
echo " ";
|
||||
$context["id"] = (((("toggle_" . $this->getAttribute(($context["field"] ?? null), "name", array())) . ".") . $context["permission"]) . $context["key"]);
|
||||
// line 46
|
||||
echo " ";
|
||||
$context["translation"] = twig_trim_filter((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($context["text"])) : ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"]))));
|
||||
// line 47
|
||||
echo "
|
||||
<input type=\"radio\"
|
||||
value=\"";
|
||||
// line 49
|
||||
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
|
||||
echo "\"
|
||||
id=\"";
|
||||
// line 50
|
||||
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
name=\"";
|
||||
// line 51
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array())) . ".") . $context["permission"])), "html", null, true);
|
||||
echo "\"
|
||||
class=\"";
|
||||
// line 52
|
||||
echo ((("true" == ("" . $context["key"]))) ? ("highlight") : (""));
|
||||
echo "\"
|
||||
";
|
||||
// line 53
|
||||
if (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter($context["key"]) == ("" . $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter(($context["permission_value"] ?? null))))) {
|
||||
// line 54
|
||||
echo " checked=\"checked\"
|
||||
";
|
||||
}
|
||||
// line 56
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 57
|
||||
echo " />
|
||||
|
||||
<label for=\"";
|
||||
// line 59
|
||||
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_trim_filter($this->getAttribute($this, "spanToggle", array(0 => ($context["translation"] ?? null), 1 => ($context["maxLen"] ?? null)), "method"));
|
||||
echo "</label>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 61
|
||||
echo " <a></a>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['permission'], $context['type'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 65
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 11
|
||||
public function getspanToggle($__input__ = null, $__length__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"input" => $__input__,
|
||||
"length" => $__length__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 12
|
||||
echo " ";
|
||||
$context["space"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->repeatFunc(" ", ((($context["length"] ?? null) - twig_length_filter($this->env, ($context["input"] ?? null))) / 2));
|
||||
// line 13
|
||||
echo " ";
|
||||
echo ((($context["space"] ?? null) . ($context["input"] ?? null)) . ($context["space"] ?? null));
|
||||
echo "
|
||||
";
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/permissions/permissions.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 226 => 13, 223 => 12, 210 => 11, 205 => 65, 196 => 61, 186 => 59, 182 => 57, 177 => 56, 173 => 54, 171 => 53, 167 => 52, 163 => 51, 159 => 50, 155 => 49, 151 => 47, 148 => 46, 145 => 45, 141 => 44, 138 => 43, 132 => 42, 129 => 41, 126 => 40, 121 => 39, 119 => 38, 116 => 37, 114 => 36, 108 => 33, 105 => 32, 102 => 31, 99 => 30, 96 => 29, 93 => 28, 91 => 27, 88 => 26, 84 => 25, 81 => 24, 75 => 23, 69 => 22, 66 => 21, 61 => 20, 56 => 19, 54 => 18, 51 => 17, 48 => 16, 42 => 8, 37 => 7, 34 => 6, 30 => 1, 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 value = (value is same as(false) ? 0 : value) %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-disabled=\"{{ originalValue is null ? 'true' : 'false' }}\"
|
||||
data-grav-default=\"{{ field.default|json_encode()|e('html_attr') }}\"
|
||||
{% endblock %}
|
||||
|
||||
{% macro spanToggle(input, length) %}
|
||||
{% set space = repeat(' ', (length - input|length) / 2) %}
|
||||
{{ (space ~ input ~ space)|raw }}
|
||||
{% endmacro %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"permissions-container\">
|
||||
{% set permissions = admin.getPermissions %}
|
||||
{% for index_existing_permission, value_existing_permission in value %}
|
||||
{% for index_segment1, value_segment1 in value_existing_permission %}
|
||||
{% set permissions = permissions|merge({ (index_existing_permission ~ \".\" ~ index_segment1): \"boolean\"}) %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% for permission, type in permissions %}
|
||||
<div class=\"permission-container\">
|
||||
{% set permission_segments = permission|split('.') %}
|
||||
{% set permission_value = value[permission_segments[0]][permission_segments[1]] %}
|
||||
{% if permission_value in ['on', 'true', 1] %}
|
||||
{% set permission_value = 'true' %}
|
||||
{% endif %}
|
||||
|
||||
<input type=\"text\" class=\"medium permission-value\" value=\"{{ permission }}\" />
|
||||
|
||||
<div class=\"switch-toggle switch-grav medium switch-3\">
|
||||
{% set options = { true: 'PLUGIN_ADMIN.YES', false: 'PLUGIN_ADMIN.NO', '': 'PLUGIN_ADMIN.NOT_SET' } %}
|
||||
|
||||
{% set maxLen = 0 %}
|
||||
{% for value, text in options %}
|
||||
{% set translation = grav.twig.twig.filters['tu'] is defined ? text|tu : text|t %}
|
||||
{% set maxLen = max(translation|length, maxLen) %}
|
||||
{% endfor %}
|
||||
|
||||
{% for key, text in options %}
|
||||
{% set id = \"toggle_\" ~ field.name ~ \".\" ~ permission ~ key %}
|
||||
{% set translation = (grav.twig.twig.filters['tu'] is defined ? text|tu : text|t)|trim %}
|
||||
|
||||
<input type=\"radio\"
|
||||
value=\"{{ key }}\"
|
||||
id=\"{{ id }}\"
|
||||
name=\"{{ (scope ~ field.name ~ \".\" ~ permission)|fieldName }}\"
|
||||
class=\"{{ 'true' == '' ~ key ? 'highlight' : '' }}\"
|
||||
{% if key|fieldName == '' ~ permission_value|fieldName %}
|
||||
checked=\"checked\"
|
||||
{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
/>
|
||||
|
||||
<label for=\"{{ id }}\">{{ (_self.spanToggle(translation, maxLen)|trim)|raw }}</label>
|
||||
{% endfor %}
|
||||
<a></a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
", "forms/fields/permissions/permissions.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/permissions/permissions.html.twig");
|
||||
}
|
||||
}
|
||||
+309
@@ -0,0 +1,309 @@
|
||||
<?php
|
||||
|
||||
/* login.html.twig */
|
||||
class __TwigTemplate_31a5220dc52086498ad3c55b8de8ecbb39f98539caf1dd351e857e2cc92192e9 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$this->loadTemplate("login.html.twig", "login.html.twig", 1, "1539425397")->display(array_merge($context, array("title" => "Grav Admin Login")));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "login.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("{% embed 'partials/login.html.twig' with {title:'Grav Admin Login'} %}
|
||||
|
||||
{% block form %}
|
||||
|
||||
{% if grav.user.username and grav.user.authenticated %}
|
||||
|
||||
<div class=\"form-actions primary-accent\">
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGOUT'|tu }}</button>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
{% for field in form.fields %}
|
||||
{% if field.type %}
|
||||
<div>
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<div class=\"form-actions primary-accent\">
|
||||
{% if notAuthorized %}
|
||||
<a class=\"button secondary\" onclick=\"window.history.back()\"><i class=\"fa fa-reply\"></i> {{ 'PLUGIN_ADMIN.BACK'|tu }}</a>
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGOUT'|tu }}</button>
|
||||
{% else %}
|
||||
{% if not authenticated %}
|
||||
<a class=\"button secondary\" href=\"{{ base_url_relative }}/forgot\"><i class=\"fa fa-exclamation-circle\"></i> {{ 'PLUGIN_ADMIN.LOGIN_BTN_FORGOT'|tu }}</a>
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"login\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGIN_BTN'|tu }}</button>
|
||||
{% else %}
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGOUT'|tu }}</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<script>
|
||||
\$(document).ready( function() {
|
||||
\$('#messages').delay(5000).animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% endembed %}
|
||||
", "login.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/login.html.twig");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* login.html.twig */
|
||||
class __TwigTemplate_31a5220dc52086498ad3c55b8de8ecbb39f98539caf1dd351e857e2cc92192e9_1539425397 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = $this->loadTemplate("partials/login.html.twig", "login.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'form' => array($this, 'block_form'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/login.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_form($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo "
|
||||
";
|
||||
// line 5
|
||||
if (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()) && $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "authenticated", array()))) {
|
||||
// line 6
|
||||
echo "
|
||||
<div class=\"form-actions primary-accent\">
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> ";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGOUT"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
|
||||
";
|
||||
} else {
|
||||
// line 12
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["form"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 13
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 14
|
||||
echo " <div>
|
||||
";
|
||||
// line 15
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "login.html.twig", 15)->display($context);
|
||||
// line 16
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 18
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 19
|
||||
echo "
|
||||
<div class=\"form-actions primary-accent\">
|
||||
";
|
||||
// line 21
|
||||
if (($context["notAuthorized"] ?? null)) {
|
||||
// line 22
|
||||
echo " <a class=\"button secondary\" onclick=\"window.history.back()\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> ";
|
||||
// line 23
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGOUT"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
} else {
|
||||
// line 25
|
||||
echo " ";
|
||||
if ( !($context["authenticated"] ?? null)) {
|
||||
// line 26
|
||||
echo " <a class=\"button secondary\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/forgot\"><i class=\"fa fa-exclamation-circle\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGIN_BTN_FORGOT"), "html", null, true);
|
||||
echo "</a>
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"login\"><i class=\"fa fa-sign-in\"></i> ";
|
||||
// line 27
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGIN_BTN"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
} else {
|
||||
// line 29
|
||||
echo " <button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGOUT"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 31
|
||||
echo " ";
|
||||
}
|
||||
// line 32
|
||||
echo " </div>
|
||||
|
||||
<script>
|
||||
\$(document).ready( function() {
|
||||
\$('#messages').delay(5000).animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
|
||||
});
|
||||
</script>
|
||||
|
||||
";
|
||||
}
|
||||
// line 41
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "login.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 234 => 41, 223 => 32, 220 => 31, 214 => 29, 209 => 27, 202 => 26, 199 => 25, 194 => 23, 189 => 22, 187 => 21, 183 => 19, 169 => 18, 165 => 16, 163 => 15, 160 => 14, 157 => 13, 139 => 12, 132 => 8, 128 => 6, 126 => 5, 123 => 4, 120 => 3, 19 => 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("{% embed 'partials/login.html.twig' with {title:'Grav Admin Login'} %}
|
||||
|
||||
{% block form %}
|
||||
|
||||
{% if grav.user.username and grav.user.authenticated %}
|
||||
|
||||
<div class=\"form-actions primary-accent\">
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGOUT'|tu }}</button>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
{% for field in form.fields %}
|
||||
{% if field.type %}
|
||||
<div>
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<div class=\"form-actions primary-accent\">
|
||||
{% if notAuthorized %}
|
||||
<a class=\"button secondary\" onclick=\"window.history.back()\"><i class=\"fa fa-reply\"></i> {{ 'PLUGIN_ADMIN.BACK'|tu }}</a>
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGOUT'|tu }}</button>
|
||||
{% else %}
|
||||
{% if not authenticated %}
|
||||
<a class=\"button secondary\" href=\"{{ base_url_relative }}/forgot\"><i class=\"fa fa-exclamation-circle\"></i> {{ 'PLUGIN_ADMIN.LOGIN_BTN_FORGOT'|tu }}</a>
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"login\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGIN_BTN'|tu }}</button>
|
||||
{% else %}
|
||||
<button type=\"submit\" class=\"button primary\" name=\"task\" value=\"logout\"><i class=\"fa fa-sign-in\"></i> {{ 'PLUGIN_ADMIN.LOGOUT'|tu }}</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<script>
|
||||
\$(document).ready( function() {
|
||||
\$('#messages').delay(5000).animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% endembed %}
|
||||
", "login.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/login.html.twig");
|
||||
}
|
||||
}
|
||||
+223
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/checkboxes/checkboxes.html.twig */
|
||||
class __TwigTemplate_52824ffd4b57d3c5e6b703ce09cead78e9602c0ede19b1ec9d92d896b18334bc extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/checkboxes/checkboxes.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["originalValue"] = ($context["value"] ?? null);
|
||||
// line 4
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 5
|
||||
if ((($this->getAttribute(($context["field"] ?? null), "use", array()) == "keys") && $this->getAttribute(($context["field"] ?? null), "default", array()))) {
|
||||
// line 6
|
||||
$context["value"] = twig_array_merge($this->getAttribute(($context["field"] ?? null), "default", array()), ($context["value"] ?? null));
|
||||
}
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " ";
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
data-grav-keys=\"";
|
||||
// line 11
|
||||
echo ((($this->getAttribute(($context["field"] ?? null), "use", array()) == "keys")) ? ("true") : ("false"));
|
||||
echo "\"
|
||||
data-grav-field-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 "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 15
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 16
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 17
|
||||
echo "
|
||||
";
|
||||
// line 18
|
||||
$context["id"] = (((($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "id", array()), $this->getAttribute(($context["field"] ?? null), "name", array()))) : ($this->getAttribute(($context["field"] ?? null), "name", array()))) . "-") . $context["key"]);
|
||||
// line 19
|
||||
echo " ";
|
||||
$context["name"] = ((($this->getAttribute(($context["field"] ?? null), "use", array()) == "keys")) ? ($context["key"]) : (($context["id"] ?? null)));
|
||||
// line 20
|
||||
echo " ";
|
||||
$context["val"] = ((($this->getAttribute(($context["field"] ?? null), "use", array()) == "keys")) ? ("1") : ($context["key"]));
|
||||
// line 21
|
||||
echo " ";
|
||||
$context["checked"] = ((($this->getAttribute(($context["field"] ?? null), "use", array()) == "keys")) ? ($this->getAttribute(($context["value"] ?? null), $context["key"], array(), "array")) : (twig_in_filter($context["key"], ($context["value"] ?? null))));
|
||||
// line 22
|
||||
echo " ";
|
||||
$context["help"] = ((twig_in_filter($context["key"], twig_get_array_keys_filter($this->getAttribute(($context["field"] ?? null), "help_options", array())))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "help_options", array()), $context["key"], array(), "array")) : (false));
|
||||
// line 23
|
||||
echo "
|
||||
<div class=\"checkboxes ";
|
||||
// line 24
|
||||
echo twig_escape_filter($this->env, ($context["form_field_wrapper_classes"] ?? null), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
<input type=\"checkbox\"
|
||||
id=\"";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, ($context["id"] ?? null));
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 27
|
||||
echo twig_escape_filter($this->env, ($context["val"] ?? null));
|
||||
echo "\"
|
||||
name=\"";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, ((($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . "[") . ($context["name"] ?? null)) . "]"), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 29
|
||||
if (($context["checked"] ?? null)) {
|
||||
echo "checked=\"checked\"";
|
||||
}
|
||||
// line 30
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo "class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 31
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 32
|
||||
echo "
|
||||
>
|
||||
<label style=\"display: inline\" for=\"";
|
||||
// line 34
|
||||
echo twig_escape_filter($this->env, ($context["id"] ?? null));
|
||||
echo "\">
|
||||
";
|
||||
// line 35
|
||||
if (($context["help"] ?? null)) {
|
||||
// line 36
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate(($context["help"] ?? null)), "html_attr");
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"]));
|
||||
echo "</span>
|
||||
";
|
||||
} else {
|
||||
// line 38
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"]));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 40
|
||||
echo " </label>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/checkboxes/checkboxes.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 144 => 40, 138 => 38, 130 => 36, 128 => 35, 124 => 34, 120 => 32, 115 => 31, 108 => 30, 104 => 29, 100 => 28, 96 => 27, 92 => 26, 85 => 24, 82 => 23, 79 => 22, 76 => 21, 73 => 20, 70 => 19, 68 => 18, 65 => 17, 60 => 16, 57 => 15, 51 => 12, 47 => 11, 42 => 10, 39 => 9, 35 => 1, 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 originalValue = value %}
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
{% if field.use == 'keys' and field.default %}
|
||||
{% set value = field.default|merge(value) %}
|
||||
{% endif %}
|
||||
|
||||
{% block global_attributes %}
|
||||
{{ parent() }}
|
||||
data-grav-keys=\"{{ field.use == 'keys' ? 'true' : 'false' }}\"
|
||||
data-grav-field-name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
{% for key, text in field.options %}
|
||||
|
||||
{% set id = field.id|default(field.name) ~ '-' ~ key %}
|
||||
{% set name = field.use == 'keys' ? key : id %}
|
||||
{% set val = field.use == 'keys' ? '1' : key %}
|
||||
{% set checked = (field.use == 'keys' ? value[key] : key in value) %}
|
||||
{% set help = (key in field.help_options|keys ? field.help_options[key] : false) %}
|
||||
|
||||
<div class=\"checkboxes {{ form_field_wrapper_classes }} {{ field.wrapper_classes }}\">
|
||||
<input type=\"checkbox\"
|
||||
id=\"{{ id|e }}\"
|
||||
value=\"{{ val|e }}\"
|
||||
name=\"{{ (scope ~ field.name)|fieldName ~ '[' ~ name ~ ']' }}\"
|
||||
{% if checked %}checked=\"checked\"{% endif %}
|
||||
{% if field.classes is defined %}class=\"{{ field.classes }}\" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
|
||||
>
|
||||
<label style=\"display: inline\" for=\"{{ id|e }}\">
|
||||
{% if help %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ help|t|e('html_attr') }}\">{{ text|t|e }}</span>
|
||||
{% else %}
|
||||
{{ text|t|e }}
|
||||
{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "forms/fields/checkboxes/checkboxes.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/checkboxes/checkboxes.html.twig");
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/* @Page:/home/kevin/Sites/static-ethica.net/user/plugins/error/pages */
|
||||
class __TwigTemplate_3a3ed4ba309998b6d33780ff62ed8e63a8fb6ec591eed8135d02bcc18f3add5a extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate("PLUGIN_ERROR.ERROR_MESSAGE");
|
||||
echo "
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "@Page:/home/kevin/Sites/static-ethica.net/user/plugins/error/pages";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 19 => 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("{{ 'PLUGIN_ERROR.ERROR_MESSAGE'|t }}
|
||||
|
||||
", "@Page:/home/kevin/Sites/static-ethica.net/user/plugins/error/pages", "");
|
||||
}
|
||||
}
|
||||
+356
@@ -0,0 +1,356 @@
|
||||
<?php
|
||||
|
||||
/* plugins.html.twig */
|
||||
class __TwigTemplate_0a88cd3b15a7af726c8977a4aa739a6660822fc689730503854aaa7c8bc95780 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "plugins.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'stylesheets' => array($this, 'block_stylesheets'),
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'messages' => array($this, 'block_messages'),
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["plugin_slug"] = $this->getAttribute(($context["admin"] ?? null), "route", array());
|
||||
// line 5
|
||||
if (($context["plugin_slug"] ?? null)) {
|
||||
// line 6
|
||||
$context["installing"] = (is_string($__internal_f0cf81ce7681fda8f066184e9e8db4d5ef6086c109b9ff8a4ae05616dbb88373 = ($context["plugin_slug"] ?? null)) && is_string($__internal_5b12cae85121d9d6f71768c3760ec691341315eb682041435a4f11a2de7a791d = "install") && ('' === $__internal_5b12cae85121d9d6f71768c3760ec691341315eb682041435a4f11a2de7a791d || 0 === strpos($__internal_f0cf81ce7681fda8f066184e9e8db4d5ef6086c109b9ff8a4ae05616dbb88373, $__internal_5b12cae85121d9d6f71768c3760ec691341315eb682041435a4f11a2de7a791d)));
|
||||
// line 8
|
||||
if (($context["installing"] ?? null)) {
|
||||
// line 9
|
||||
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS");
|
||||
} else {
|
||||
// line 11
|
||||
$context["installed"] = true;
|
||||
// line 14
|
||||
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "plugins", array(0 => true), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
|
||||
// line 15
|
||||
if ( !($context["package"] ?? null)) {
|
||||
// line 16
|
||||
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "plugins", array(0 => false), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
|
||||
// line 17
|
||||
$context["installed"] = false;
|
||||
}
|
||||
// line 20
|
||||
$context["plugin"] = $this->getAttribute(($context["package"] ?? null), "toArray", array(), "method");
|
||||
// line 21
|
||||
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN") . ": ") . twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array())));
|
||||
}
|
||||
} else {
|
||||
// line 24
|
||||
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS");
|
||||
}
|
||||
// line 27
|
||||
if (($this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
|
||||
}
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")), "method");
|
||||
// line 30
|
||||
echo " ";
|
||||
$this->displayParentBlock("stylesheets", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 33
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 34
|
||||
echo " ";
|
||||
$this->displayParentBlock("javascripts", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 38
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
// line 39
|
||||
echo " ";
|
||||
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
|
||||
// line 40
|
||||
echo " <div class=\"button-bar\">
|
||||
";
|
||||
// line 41
|
||||
if (($context["installing"] ?? null)) {
|
||||
// line 42
|
||||
echo " <a class=\"button\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/plugins\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
} else {
|
||||
// line 44
|
||||
echo " <a class=\"button\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-reply\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true);
|
||||
echo "</a>
|
||||
<a class=\"button\" href=\"";
|
||||
// line 45
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/plugins/install\"><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADD"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 46
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
|
||||
// line 47
|
||||
echo " <button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CHECK_FOR_UPDATES"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 49
|
||||
echo " ";
|
||||
}
|
||||
// line 50
|
||||
echo " </div>
|
||||
<h1><i class=\"fa fa-fw fa-plug\"></i> ";
|
||||
// line 51
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS"), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
} else {
|
||||
// line 53
|
||||
echo " ";
|
||||
if (($context["installed"] ?? null)) {
|
||||
// line 54
|
||||
echo " <div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"";
|
||||
// line 55
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/plugins\"><i class=\"fa fa-arrow-left\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK_TO_PLUGINS"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 56
|
||||
try {
|
||||
$this->loadTemplate((("plugins/" . $this->getAttribute(($context["admin"] ?? null), "route", array())) . "-buttons.html.twig"), "plugins.html.twig", 56)->display($context);
|
||||
} catch (Twig_Error_Loader $e) {
|
||||
// ignore missing template
|
||||
}
|
||||
|
||||
// line 57
|
||||
echo " <button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 60
|
||||
echo " <div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"";
|
||||
// line 61
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/plugins/install\"><i class=\"fa fa-arrow-left\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK_TO_PLUGINS"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 64
|
||||
echo "
|
||||
<h1><i class=\"fa fa-fw fa-plug\"></i> ";
|
||||
// line 65
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN"), "html", null, true);
|
||||
echo ": ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array()));
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 69
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
// line 70
|
||||
echo " ";
|
||||
$this->displayParentBlock("messages", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
// line 71
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "plugins", array())) {
|
||||
// line 72
|
||||
echo " <div class=\"plugins-notifications-container hidden\"></div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 76
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 77
|
||||
echo " <div class=\"gpm gpm-plugins\">
|
||||
";
|
||||
// line 78
|
||||
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
|
||||
// line 79
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/plugins-list.html.twig", "plugins.html.twig", 79)->display($context);
|
||||
// line 80
|
||||
echo " ";
|
||||
} else {
|
||||
// line 81
|
||||
echo " ";
|
||||
if ((null === ($context["plugin"] ?? null))) {
|
||||
// line 82
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->redirectFunc((($context["base_url_relative"] ?? null) . "/404")), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 84
|
||||
echo "
|
||||
";
|
||||
// line 85
|
||||
$this->loadTemplate("partials/plugins-details.html.twig", "plugins.html.twig", 85)->display($context);
|
||||
// line 86
|
||||
echo " ";
|
||||
}
|
||||
// line 87
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "plugins.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 237 => 87, 234 => 86, 232 => 85, 229 => 84, 223 => 82, 220 => 81, 217 => 80, 214 => 79, 212 => 78, 209 => 77, 206 => 76, 200 => 72, 198 => 71, 193 => 70, 190 => 69, 181 => 65, 178 => 64, 170 => 61, 167 => 60, 160 => 57, 153 => 56, 147 => 55, 144 => 54, 141 => 53, 136 => 51, 133 => 50, 130 => 49, 124 => 47, 122 => 46, 116 => 45, 109 => 44, 101 => 42, 99 => 41, 96 => 40, 93 => 39, 90 => 38, 83 => 34, 80 => 33, 73 => 30, 70 => 29, 67 => 28, 63 => 1, 60 => 27, 57 => 24, 53 => 21, 51 => 20, 48 => 17, 46 => 16, 44 => 15, 42 => 14, 40 => 11, 37 => 9, 35 => 8, 33 => 6, 31 => 5, 29 => 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 'partials/base.html.twig' %}
|
||||
|
||||
{% set plugin_slug = admin.route %}
|
||||
|
||||
{% if plugin_slug %}
|
||||
{% set installing = plugin_slug starts with 'install' %}
|
||||
|
||||
{% if installing %}
|
||||
{% set title = \"PLUGIN_ADMIN.PLUGINS\"|tu %}
|
||||
{% else %}
|
||||
{% set installed = true %}
|
||||
|
||||
{# Try installed packages first, then remote #}
|
||||
{% set package = admin.plugins(true)[admin.route] %}
|
||||
{% if (not package) %}
|
||||
{% set package = admin.plugins(false)[admin.route] %}
|
||||
{% set installed = false %}
|
||||
{% endif %}
|
||||
|
||||
{% set plugin = package.toArray() %}
|
||||
{% set title = \"PLUGIN_ADMIN.PLUGIN\"|tu ~ \": \" ~ plugin.name|e %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set title = \"PLUGIN_ADMIN.PLUGINS\"|tu %}
|
||||
{% endif %}
|
||||
|
||||
{% if admin.route or installing %}
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss(theme_url~'/css/codemirror/codemirror.css') %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
{% block titlebar %}
|
||||
{% if not admin.route or installing %}
|
||||
<div class=\"button-bar\">
|
||||
{% if (installing) %}
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/plugins\"><i class=\"fa fa-reply\"></i> {{ \"PLUGIN_ADMIN.BACK\"|tu }}</a>
|
||||
{% else %}
|
||||
<a class=\"button\" href=\"{{ base_url }}\"><i class=\"fa fa-reply\"></i> {{ \"PLUGIN_ADMIN.BACK\"|tu }}</a>
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/plugins/install\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.ADD\"|tu }}</a>
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
<button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> {{ \"PLUGIN_ADMIN.CHECK_FOR_UPDATES\"|tu }}</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-plug\"></i> {{ \"PLUGIN_ADMIN.PLUGINS\"|tu }}</h1>
|
||||
{% else %}
|
||||
{% if (installed) %}
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/plugins\"><i class=\"fa fa-arrow-left\"></i> {{ \"PLUGIN_ADMIN.BACK_TO_PLUGINS\"|tu }}</a>
|
||||
{% include 'plugins/'~admin.route~'-buttons.html.twig' ignore missing %}
|
||||
<button class=\"button\" type=\"submit\" name=\"task\" value=\"save\" form=\"blueprints\"><i class=\"fa fa-check\"></i> {{ \"PLUGIN_ADMIN.SAVE\"|tu }}</button>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"{{ base_url_relative }}/plugins/install\"><i class=\"fa fa-arrow-left\"></i> {{ \"PLUGIN_ADMIN.BACK_TO_PLUGINS\"|tu }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h1><i class=\"fa fa-fw fa-plug\"></i> {{ \"PLUGIN_ADMIN.PLUGIN\"|tu }}: {{ plugin.name|e }}</h1>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block messages %}
|
||||
{{ parent() }}
|
||||
{% if config.plugins.admin.notifications.plugins %}
|
||||
<div class=\"plugins-notifications-container hidden\"></div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class=\"gpm gpm-plugins\">
|
||||
{% if not admin.route or installing %}
|
||||
{% include 'partials/plugins-list.html.twig' %}
|
||||
{% else %}
|
||||
{% if plugin is null %}
|
||||
{{redirect_me(base_url_relative ~ '/404')}}
|
||||
{% endif %}
|
||||
|
||||
{% include 'partials/plugins-details.html.twig' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "plugins.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/plugins.html.twig");
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/* partials/page-legend.html.twig */
|
||||
class __TwigTemplate_2856112089be2c0c3734563019ce4e74cf4381a05c10b43de7f7f78ada9e10b4 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["legend"] = array("VISIBLE" => "", "NON_ROUTABLE" => "not-routable", "NON_VISIBLE" => "not-visible", "MODULAR" => "modular");
|
||||
// line 2
|
||||
echo "<div id=\"pages-legend\">
|
||||
<strong>";
|
||||
// line 3
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LEGEND"), "html", null, true);
|
||||
echo ":</strong>
|
||||
<ul>
|
||||
";
|
||||
// line 5
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["legend"] ?? null));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["class"]) {
|
||||
// line 6
|
||||
echo " <li><i class=\"page-icon fa fa-fw fa-circle-o ";
|
||||
echo twig_escape_filter($this->env, $context["class"], "html", null, true);
|
||||
echo "\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(("PLUGIN_ADMIN." . $context["key"])), "html", null, true);
|
||||
echo "</li>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['class'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 8
|
||||
echo " </ul>
|
||||
</div>
|
||||
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/page-legend.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 44 => 8, 33 => 6, 29 => 5, 24 => 3, 21 => 2, 19 => 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("{% set legend = {'VISIBLE':'', 'NON_ROUTABLE':'not-routable', 'NON_VISIBLE':'not-visible', 'MODULAR':'modular'} %}
|
||||
<div id=\"pages-legend\">
|
||||
<strong>{{ 'PLUGIN_ADMIN.LEGEND'|tu }}:</strong>
|
||||
<ul>
|
||||
{% for key, class in legend %}
|
||||
<li><i class=\"page-icon fa fa-fw fa-circle-o {{ class }}\"></i> {{ ('PLUGIN_ADMIN.'~key)|tu }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
", "partials/page-legend.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/page-legend.html.twig");
|
||||
}
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
/* partials/messages.html.twig */
|
||||
class __TwigTemplate_601b70f198fe6791c681684c16dc8adad37494513701923e125dbcba77b32fdd extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["admin_messages"] = twig_array_merge($this->getAttribute(($context["admin"] ?? null), "messages", array()), $this->getAttribute(($context["admin"] ?? null), "getTempMessages", array(), "method"));
|
||||
// line 2
|
||||
$context["form_message"] = $this->getAttribute(($context["form"] ?? null), "message", array());
|
||||
// line 3
|
||||
echo "<div id=\"messages\" class=\"top-notifications-container";
|
||||
echo (((twig_length_filter($this->env, ($context["admin_messages"] ?? null)) || ($context["form_message"] ?? null))) ? (" default-box-shadow") : (""));
|
||||
echo "\">
|
||||
<div class=\"single-notification info alert hidden\" data-gpm-grav></div>";
|
||||
// line 5
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["admin_messages"] ?? null));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
|
||||
// line 6
|
||||
echo "<div class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "scope", array()));
|
||||
echo " alert\">";
|
||||
echo $this->getAttribute($context["message"], "message", array());
|
||||
echo "</div>";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 8
|
||||
if (($context["form_message"] ?? null)) {
|
||||
// line 9
|
||||
echo "<div class=\"error alert\">";
|
||||
echo ($context["form_message"] ?? null);
|
||||
echo "</div>";
|
||||
}
|
||||
// line 11
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["plugin_messages"] ?? null));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
|
||||
// line 12
|
||||
echo "<div class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "scope", array()));
|
||||
echo " alert\">";
|
||||
echo $this->getAttribute($context["message"], "message", array());
|
||||
echo "</div>";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 14
|
||||
echo "</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/messages.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 63 => 14, 53 => 12, 49 => 11, 44 => 9, 42 => 8, 32 => 6, 28 => 5, 23 => 3, 21 => 2, 19 => 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("{% set admin_messages = admin.messages|merge(admin.getTempMessages()) %}
|
||||
{% set form_message = form.message %}
|
||||
<div id=\"messages\" class=\"top-notifications-container{{ admin_messages|length or form_message ? ' default-box-shadow' : '' }}\">
|
||||
<div class=\"single-notification info alert hidden\" data-gpm-grav></div>
|
||||
{%- for message in admin_messages -%}
|
||||
<div class=\"{{ message.scope|e }} alert\">{{ message.message|raw }}</div>
|
||||
{%- endfor -%}
|
||||
{%- if form_message -%}
|
||||
<div class=\"error alert\">{{ form_message|raw }}</div>
|
||||
{%- endif -%}
|
||||
{%- for message in plugin_messages -%}
|
||||
<div class=\"{{ message.scope|e }} alert\">{{ message.message|raw }}</div>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
", "partials/messages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/messages.html.twig");
|
||||
}
|
||||
}
|
||||
+496
@@ -0,0 +1,496 @@
|
||||
<?php
|
||||
|
||||
/* forms/field.html.twig */
|
||||
class __TwigTemplate_c951f6fc011e16a161e8d3f5f5bc93c82cdb43b0cf185804d0f5f77b7dbe185e extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'field' => array($this, 'block_field'),
|
||||
'contents' => array($this, 'block_contents'),
|
||||
'label' => array($this, 'block_label'),
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'group' => array($this, 'block_group'),
|
||||
'input' => array($this, 'block_input'),
|
||||
'prepend' => array($this, 'block_prepend'),
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
'append' => array($this, 'block_append'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["originalValue"] = ((array_key_exists("originalValue", $context)) ? (($context["originalValue"] ?? null)) : (($context["value"] ?? null)));
|
||||
// line 2
|
||||
$context["toggleableChecked"] = ($this->getAttribute(($context["field"] ?? null), "toggleable", array()) && ( !(null === ($context["originalValue"] ?? null)) && !twig_test_empty(($context["originalValue"] ?? null))));
|
||||
// line 3
|
||||
$context["isDisabledToggleable"] = ($this->getAttribute(($context["field"] ?? null), "toggleable", array()) && !($context["toggleableChecked"] ?? null));
|
||||
// line 4
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 5
|
||||
$context["vertical"] = ($this->getAttribute(($context["field"] ?? null), "style", array()) == "vertical");
|
||||
// line 6
|
||||
$context["field_name"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array())));
|
||||
// line 7
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
if (($this->getAttribute(($context["field"] ?? null), "yaml", array()) && twig_test_iterable(($context["value"] ?? null)))) {
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["value"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->toYamlFilter(($context["value"] ?? null));
|
||||
}
|
||||
// line 11
|
||||
echo "
|
||||
";
|
||||
// line 12
|
||||
$this->displayBlock('field', $context, $blocks);
|
||||
}
|
||||
|
||||
public function block_field($context, array $blocks = array())
|
||||
{
|
||||
// line 13
|
||||
echo " <div class=\"form-field grid";
|
||||
if (($context["vertical"] ?? null)) {
|
||||
echo " vertical";
|
||||
}
|
||||
if ($this->getAttribute(($context["field"] ?? null), "toggleable", array())) {
|
||||
echo " form-field-toggleable";
|
||||
}
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "outerclasses", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "field_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 14
|
||||
$this->displayBlock('contents', $context, $blocks);
|
||||
// line 89
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 14
|
||||
public function block_contents($context, array $blocks = array())
|
||||
{
|
||||
// line 15
|
||||
echo " <div class=\"form-label";
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-1-3";
|
||||
}
|
||||
echo "\">
|
||||
";
|
||||
// line 16
|
||||
if ($this->getAttribute(($context["field"] ?? null), "toggleable", array())) {
|
||||
// line 17
|
||||
echo " <span class=\"checkboxes toggleable\" data-grav-field=\"toggleable\" data-grav-field-name=\"";
|
||||
echo twig_escape_filter($this->env, ($context["field_name"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
<input type=\"checkbox\"
|
||||
id=\"toggleable_";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 20
|
||||
if (($context["toggleableChecked"] ?? null)) {
|
||||
echo "value=\"1\"";
|
||||
}
|
||||
// line 21
|
||||
echo " name=\"toggleable_";
|
||||
echo twig_escape_filter($this->env, ($context["field_name"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 22
|
||||
if (($context["toggleableChecked"] ?? null)) {
|
||||
echo "checked=\"checked\"";
|
||||
}
|
||||
// line 23
|
||||
echo " >
|
||||
<label for=\"toggleable_";
|
||||
// line 24
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\"></label>
|
||||
</span>
|
||||
";
|
||||
}
|
||||
// line 27
|
||||
echo " <label";
|
||||
echo (($this->getAttribute(($context["field"] ?? null), "toggleable", array())) ? (((" class=\"toggleable\" for=\"toggleable_" . $this->getAttribute(($context["field"] ?? null), "name", array())) . "\"")) : (""));
|
||||
echo ">
|
||||
";
|
||||
// line 28
|
||||
$this->displayBlock('label', $context, $blocks);
|
||||
// line 36
|
||||
echo " </label>
|
||||
";
|
||||
// line 37
|
||||
if ($this->getAttribute(($context["field"] ?? null), "sublabel", array())) {
|
||||
// line 38
|
||||
echo " <div class=\"form-sublabel\">
|
||||
";
|
||||
// line 39
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFilter($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "sublabel", array())));
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 42
|
||||
echo " </div>
|
||||
<div class=\"form-data";
|
||||
// line 43
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-2-3";
|
||||
}
|
||||
echo "\"
|
||||
";
|
||||
// line 44
|
||||
$this->displayBlock('global_attributes', $context, $blocks);
|
||||
// line 49
|
||||
echo " >
|
||||
";
|
||||
// line 50
|
||||
$this->displayBlock('group', $context, $blocks);
|
||||
// line 82
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "description", array())) {
|
||||
// line 83
|
||||
echo " <div class=\"form-extra-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
<span class=\"form-description\">";
|
||||
// line 84
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "description", array()));
|
||||
echo "</span>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 87
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_label($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "help", array())) {
|
||||
// line 30
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", array())), "html");
|
||||
echo "\">";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array()));
|
||||
echo "</span>
|
||||
";
|
||||
} else {
|
||||
// line 32
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array()));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 34
|
||||
echo " ";
|
||||
echo ((twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) ? ("<span class=\"required\">*</span>") : (""));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 44
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 45
|
||||
echo " data-grav-field=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "type", array()), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-disabled=\"";
|
||||
// line 46
|
||||
echo twig_escape_filter($this->env, ($context["toggleableChecked"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-default=\"";
|
||||
// line 47
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 50
|
||||
public function block_group($context, array $blocks = array())
|
||||
{
|
||||
// line 51
|
||||
echo " ";
|
||||
$this->displayBlock('input', $context, $blocks);
|
||||
// line 81
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 51
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 52
|
||||
echo " <div class=\"form-input-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 53
|
||||
$this->displayBlock('prepend', $context, $blocks);
|
||||
// line 54
|
||||
echo " <input
|
||||
";
|
||||
// line 56
|
||||
echo " name=\"";
|
||||
echo twig_escape_filter($this->env, ($context["field_name"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 57
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 58
|
||||
if ($this->getAttribute(($context["field"] ?? null), "key", array())) {
|
||||
// line 59
|
||||
echo " data-key-observe=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . ($context["field_name"] ?? null))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
// line 61
|
||||
echo " ";
|
||||
// line 62
|
||||
echo " ";
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 77
|
||||
echo " />
|
||||
";
|
||||
// line 78
|
||||
$this->displayBlock('append', $context, $blocks);
|
||||
// line 79
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 53
|
||||
public function block_prepend($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 62
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 63
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo "class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 64
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
echo "id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 65
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
|
||||
echo "style=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 66
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 67
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 68
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 69
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 70
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 71
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off"))) {
|
||||
echo "autocomplete=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 72
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 73
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array())) {
|
||||
echo "pattern=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 74
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())) {
|
||||
echo "title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array()))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
} elseif ($this->getAttribute( // line 75
|
||||
($context["field"] ?? null), "title", array(), "any", true, true)) {
|
||||
echo "title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "title", array()))), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 76
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 78
|
||||
public function block_append($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 375 => 78, 371 => 76, 365 => 75, 358 => 74, 351 => 73, 346 => 72, 339 => 71, 334 => 70, 329 => 69, 324 => 68, 317 => 67, 312 => 66, 305 => 65, 298 => 64, 291 => 63, 288 => 62, 283 => 53, 278 => 79, 276 => 78, 273 => 77, 270 => 62, 268 => 61, 262 => 59, 260 => 58, 256 => 57, 251 => 56, 248 => 54, 246 => 53, 239 => 52, 236 => 51, 232 => 81, 229 => 51, 226 => 50, 220 => 47, 216 => 46, 211 => 45, 208 => 44, 201 => 34, 195 => 32, 187 => 30, 184 => 29, 181 => 28, 176 => 87, 170 => 84, 163 => 83, 160 => 82, 158 => 50, 155 => 49, 153 => 44, 147 => 43, 144 => 42, 138 => 39, 135 => 38, 133 => 37, 130 => 36, 128 => 28, 123 => 27, 117 => 24, 114 => 23, 110 => 22, 105 => 21, 101 => 20, 97 => 19, 91 => 17, 89 => 16, 82 => 15, 79 => 14, 74 => 89, 72 => 14, 58 => 13, 52 => 12, 49 => 11, 45 => 9, 43 => 8, 40 => 7, 38 => 6, 36 => 5, 34 => 4, 32 => 3, 30 => 2, 28 => 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("{% set originalValue = originalValue is defined ? originalValue : value %}
|
||||
{% set toggleableChecked = field.toggleable and (originalValue is not null and originalValue is not empty) %}
|
||||
{% set isDisabledToggleable = field.toggleable and not toggleableChecked %}
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
{% set vertical = field.style == 'vertical' %}
|
||||
{% set field_name = (scope ~ field.name)|fieldName %}
|
||||
|
||||
{% if field.yaml and value is iterable %}
|
||||
{% set value = value|toYaml %}
|
||||
{% endif %}
|
||||
|
||||
{% block field %}
|
||||
<div class=\"form-field grid{% if vertical %} vertical{% endif %}{% if field.toggleable %} form-field-toggleable{% endif %} {{ field.outerclasses }} {{ field.field_classes }}\">
|
||||
{% block contents %}
|
||||
<div class=\"form-label{% if not vertical %} block size-1-3{% endif %}\">
|
||||
{% if field.toggleable %}
|
||||
<span class=\"checkboxes toggleable\" data-grav-field=\"toggleable\" data-grav-field-name=\"{{ field_name }}\">
|
||||
<input type=\"checkbox\"
|
||||
id=\"toggleable_{{ field.name }}\"
|
||||
{% if toggleableChecked %}value=\"1\"{% endif %}
|
||||
name=\"toggleable_{{ field_name }}\"
|
||||
{% if toggleableChecked %}checked=\"checked\"{% endif %}
|
||||
>
|
||||
<label for=\"toggleable_{{ field.name }}\"></label>
|
||||
</span>
|
||||
{% endif %}
|
||||
<label{{ (field.toggleable ? ' class=\"toggleable\" for=\"toggleable_' ~ field.name ~ '\"')|raw }}>
|
||||
{% block label %}
|
||||
{% if field.help %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ field.help|tu|e('html') }}\">{{ field.label|tu|raw }}</span>
|
||||
{% else %}
|
||||
{{ field.label|tu|raw }}
|
||||
{% endif %}
|
||||
{{ field.validate.required in ['on', 'true', 1] ? '<span class=\"required\">*</span>' }}
|
||||
{% endblock %}
|
||||
</label>
|
||||
{% if field.sublabel %}
|
||||
<div class=\"form-sublabel\">
|
||||
{{ field.sublabel|tu|markdown|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class=\"form-data{% if not vertical %} block size-2-3{% endif %}\"
|
||||
{% block global_attributes %}
|
||||
data-grav-field=\"{{ field.type }}\"
|
||||
data-grav-disabled=\"{{ toggleableChecked }}\"
|
||||
data-grav-default=\"{{ field.default|json_encode|e('html_attr') }}\"
|
||||
{% endblock %}
|
||||
>
|
||||
{% block group %}
|
||||
{% block input %}
|
||||
<div class=\"form-input-wrapper {{ field.size }} {{ field.wrapper_classes }}\">
|
||||
{% block prepend %}{% endblock prepend %}
|
||||
<input
|
||||
{# required attribute structures #}
|
||||
name=\"{{ field_name }}\"
|
||||
value=\"{{ value|join(', ') }}\"
|
||||
{% if field.key %}
|
||||
data-key-observe=\"{{ (scope ~ field_name)|fieldName }}\"
|
||||
{% endif %}
|
||||
{# input attribute structures #}
|
||||
{% block input_attributes %}
|
||||
{% if field.classes is defined %}class=\"{{ field.classes }}\" {% endif %}
|
||||
{% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
|
||||
{% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.placeholder %}placeholder=\"{{ field.placeholder|tu }}\"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
|
||||
{% if field.autocomplete in ['on', 'off'] %}autocomplete=\"{{ field.autocomplete }}\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.validate.pattern %}pattern=\"{{ field.validate.pattern }}\"{% endif %}
|
||||
{% if field.validate.message %}title=\"{{ field.validate.message|e|tu }}\"
|
||||
{% elseif field.title is defined %}title=\"{{ field.title|e|tu }}\" {% endif %}
|
||||
{% endblock %}
|
||||
/>
|
||||
{% block append %}{% endblock append %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
{% if field.description %}
|
||||
<div class=\"form-extra-wrapper {{ field.size }} {{ field.wrapper_classes }}\">
|
||||
<span class=\"form-description\">{{ field.description|tu|raw }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/field.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/field.html.twig");
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
/* partials/page-move.html.twig */
|
||||
class __TwigTemplate_19601c403034ee6811e92353726664856eda4e95590cceda7e5dbe92d7642def extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["form_id"] = ((($context["form_id"] ?? null)) ? (($context["form_id"] ?? null)) : ("page-move"));
|
||||
// line 2
|
||||
$context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
|
||||
// line 3
|
||||
echo "
|
||||
<form id=\"";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" method=\"post\" data-grav-form=\"";
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" data-page-move>
|
||||
";
|
||||
// line 5
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["blueprints"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 6
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 8
|
||||
echo " <div class=\"block block-";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "type", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 9
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "partials/page-move.html.twig", 9)->display($context);
|
||||
// line 10
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 12
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 13
|
||||
echo "
|
||||
";
|
||||
// line 14
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
|
||||
echo "
|
||||
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<button class=\"button primary\" name=\"task\" value=\"save\">";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</form>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/page-move.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 93 => 18, 89 => 17, 83 => 14, 80 => 13, 66 => 12, 62 => 10, 60 => 9, 55 => 8, 52 => 7, 49 => 6, 32 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 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("{% set form_id = form_id ? form_id : 'page-move' %}
|
||||
{% set scope = scope ?: 'data.' %}
|
||||
|
||||
<form id=\"{{ form_id }}\" method=\"post\" data-grav-form=\"{{ form_id }}\" data-page-move>
|
||||
{% for field in blueprints.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
<div class=\"block block-{{field.type}}\">
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{{ nonce_field('admin-form', 'admin-nonce')|raw }}
|
||||
|
||||
<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 class=\"button primary\" name=\"task\" value=\"save\">{{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</button>
|
||||
</div>
|
||||
</form>
|
||||
", "partials/page-move.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/page-move.html.twig");
|
||||
}
|
||||
}
|
||||
+216
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/editor/editor.html.twig */
|
||||
class __TwigTemplate_fdd1d27a4ac3b42b16936e89aedd93d1949d8333e3d3b6a7d016bfc7248c7ce5 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'label' => array($this, 'block_label'),
|
||||
'field' => array($this, 'block_field'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "default", array()))) : (($context["value"] ?? null)));
|
||||
// line 2
|
||||
if ( !($context["codemirrorOptions"] ?? null)) {
|
||||
// line 3
|
||||
echo " ";
|
||||
$context["codemirrorOptions"] = twig_array_merge(array("mode" => "gfm", "ignore" => array(0 => "code", 1 => "preview")), (($this->getAttribute(($context["field"] ?? null), "codemirror", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "codemirror", array()), array())) : (array())));
|
||||
}
|
||||
// line 5
|
||||
echo "
|
||||
";
|
||||
// line 6
|
||||
$this->displayBlock('label', $context, $blocks);
|
||||
// line 12
|
||||
$this->displayBlock('field', $context, $blocks);
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function block_label($context, array $blocks = array())
|
||||
{
|
||||
// line 7
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "label", array())) {
|
||||
// line 8
|
||||
echo " ";
|
||||
$context["hint"] = (($this->getAttribute(($context["field"] ?? null), "help", array())) ? ((("data-hint=\"" . $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", array()))) . "\"")) : (""));
|
||||
// line 9
|
||||
echo " <div class=\"form-label form-field hint--bottom\" ";
|
||||
echo twig_escape_filter($this->env, ($context["hint"] ?? null), "html", null, true);
|
||||
echo ">";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array()));
|
||||
echo "</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 12
|
||||
public function block_field($context, array $blocks = array())
|
||||
{
|
||||
// line 13
|
||||
echo " <div class=\"form-field ";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "classes", array()), "")) : ("")), "html", null, true);
|
||||
echo "\">
|
||||
<div class=\"form-data grav-editor\">
|
||||
<div class=\"grav-editor-content is-active\">
|
||||
<textarea
|
||||
data-grav-editor=\"";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("codemirror" => ($context["codemirrorOptions"] ?? null))), "html_attr");
|
||||
echo "\"
|
||||
data-grav-editor-mode=\"editor\"
|
||||
name=\"";
|
||||
// line 19
|
||||
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 "\"
|
||||
";
|
||||
// line 20
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo "class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
echo "id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
|
||||
echo "style=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 24
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 25
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 26
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 27
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 28
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 29
|
||||
echo " ";
|
||||
if (!twig_in_filter("preview", $this->getAttribute(($context["codemirrorOptions"] ?? null), "ignore", array()))) {
|
||||
echo "data-grav-urlpreview=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "/media/";
|
||||
echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute(($context["admin"] ?? null), "route", array()), "/"), "html", null, true);
|
||||
echo ".json\"";
|
||||
}
|
||||
// line 30
|
||||
echo " >";
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), "
|
||||
"), "html");
|
||||
echo "</textarea>
|
||||
</div>
|
||||
";
|
||||
// line 32
|
||||
if (( !$this->getAttribute(($context["field"] ?? null), "resizer", array(), "any", true, true) || !twig_in_filter($this->getAttribute(($context["field"] ?? null), "resizer", array()), array(0 => "off", 1 => "false", 2 => 0)))) {
|
||||
echo "<div class=\"grav-editor-resizer\"></div>";
|
||||
}
|
||||
// line 33
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/editor/editor.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 149 => 33, 145 => 32, 138 => 30, 129 => 29, 124 => 28, 119 => 27, 114 => 26, 109 => 25, 102 => 24, 97 => 23, 90 => 22, 83 => 21, 77 => 20, 73 => 19, 68 => 17, 60 => 13, 57 => 12, 47 => 9, 44 => 8, 41 => 7, 38 => 6, 34 => 12, 32 => 6, 29 => 5, 25 => 3, 23 => 2, 21 => 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("{% set value = (value is null ? field.default|tu : value) %}
|
||||
{% if not codemirrorOptions %}
|
||||
{% set codemirrorOptions = {'mode': 'gfm', 'ignore': ['code', 'preview']}|merge(field.codemirror|default({})) %}
|
||||
{% endif %}
|
||||
|
||||
{% block label %}
|
||||
{% if field.label %}
|
||||
{% set hint = field.help ? 'data-hint=\"' ~ field.help|tu|raw ~ '\"': '' %}
|
||||
<div class=\"form-label form-field hint--bottom\" {{ hint }}>{{ field.label|tu|raw }}</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block field %}
|
||||
<div class=\"form-field {{ field.classes|default('') }}\">
|
||||
<div class=\"form-data grav-editor\">
|
||||
<div class=\"grav-editor-content is-active\">
|
||||
<textarea
|
||||
data-grav-editor=\"{{ {'codemirror': codemirrorOptions} | json_encode|e('html_attr') }}\"
|
||||
data-grav-editor-mode=\"editor\"
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% if field.classes is defined %}class=\"{{ field.classes }}\" {% endif %}
|
||||
{% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
|
||||
{% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.placeholder %}placeholder=\"{{ field.placeholder|tu }}\"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if 'preview' not in codemirrorOptions.ignore %}data-grav-urlpreview=\"{{ base_url }}/media/{{ admin.route|trim('/') }}.json\"{% endif %}
|
||||
>{{ value|join(\"\\n\")|e('html') }}</textarea>
|
||||
</div>
|
||||
{% if field.resizer is not defined or field.resizer not in ['off', 'false', 0] %}<div class=\"grav-editor-resizer\"></div>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/editor/editor.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/editor/editor.html.twig");
|
||||
}
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
/* partials/dashboard-maintenance.html.twig */
|
||||
class __TwigTemplate_a470d135d26a04aa2aee9b5aaf13705939e8fa7156c7bfbe73651dd967f21c9b extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
|
||||
// line 2
|
||||
echo " ";
|
||||
$context["backup"] = $this->getAttribute(($context["admin"] ?? null), "lastBackup", array(), "method");
|
||||
// line 3
|
||||
echo "
|
||||
<div id=\"updates\" class=\"dashboard-item dashboard-left\">
|
||||
<div class=\"secondary-accent default-box-shadow\">
|
||||
<h1>";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MAINTENANCE"), "html", null, true);
|
||||
echo "</h1>
|
||||
<div class=\"admin-update-charts\">
|
||||
<div class=\"updates-chart\" data-chart-name=\"updates\" data-chart-type=\"pie\" data-chart-data=\"";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("series" => array(0 => 100, 1 => 0))), "html_attr");
|
||||
echo "\">
|
||||
<div class=\"chart-wrapper\">
|
||||
<div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<span class=\"numeric hidden\"><span>-</span><em>";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATED")), "html", null, true);
|
||||
echo "</em></span>
|
||||
</div>
|
||||
<p class=\"js__updates-available-description\"> </p>
|
||||
</div>
|
||||
<div class=\"backups-chart\" data-chart-name=\"backups\" data-chart-type=\"pie\" data-chart-data=\"";
|
||||
// line 15
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("series" => array(0 => $this->getAttribute(($context["backup"] ?? null), "chart_fill", array()), 1 => $this->getAttribute(($context["backup"] ?? null), "chart_empty", array())))), "html_attr");
|
||||
echo "\">
|
||||
<div class=\"chart-wrapper\">
|
||||
<div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<span class=\"numeric hidden\">";
|
||||
// line 18
|
||||
echo $this->getAttribute(($context["backup"] ?? null), "days", array());
|
||||
echo "<em>";
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DAYS")), "html", null, true);
|
||||
echo "</em></span>
|
||||
</div>
|
||||
<p class=\"hidden\">";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LAST_BACKUP"), "html", null, true);
|
||||
echo "</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"flush-bottom button-bar\">
|
||||
<a class=\"button hidden\" href=\"#\" data-update-packages data-remodal-target=\"update-packages\" data-plugin-action=\"start-packages-update\"><i class=\"fa fa-cloud-download\"></i> ";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATE"), "html", null, true);
|
||||
echo "</a>
|
||||
<button data-ajax=\"";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["base_url_relative"] ?? null) . "/backup.json/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "backup"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" class=\"button\"><i class=\"fa fa-database\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACKUP"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 31
|
||||
$this->loadTemplate("partials/modal-update-packages.html.twig", "partials/dashboard-maintenance.html.twig", 31)->display(array_merge($context, array("type" => "plugin")));
|
||||
// line 32
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/dashboard-maintenance.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 84 => 32, 82 => 31, 72 => 26, 68 => 25, 60 => 20, 53 => 18, 47 => 15, 40 => 11, 34 => 8, 29 => 6, 24 => 3, 21 => 2, 19 => 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 authorize(['admin.maintenance', 'admin.super']) %}
|
||||
{% set backup = admin.lastBackup() %}
|
||||
|
||||
<div id=\"updates\" class=\"dashboard-item dashboard-left\">
|
||||
<div class=\"secondary-accent default-box-shadow\">
|
||||
<h1>{{ \"PLUGIN_ADMIN.MAINTENANCE\"|tu }}</h1>
|
||||
<div class=\"admin-update-charts\">
|
||||
<div class=\"updates-chart\" data-chart-name=\"updates\" data-chart-type=\"pie\" data-chart-data=\"{{ {'series': [100, 0]}|json_encode|e('html_attr') }}\">
|
||||
<div class=\"chart-wrapper\">
|
||||
<div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<span class=\"numeric hidden\"><span>-</span><em>{{ \"PLUGIN_ADMIN.UPDATED\"|tu|lower }}</em></span>
|
||||
</div>
|
||||
<p class=\"js__updates-available-description\"> </p>
|
||||
</div>
|
||||
<div class=\"backups-chart\" data-chart-name=\"backups\" data-chart-type=\"pie\" data-chart-data=\"{{ {'series': [backup.chart_fill, backup.chart_empty]}|json_encode|e('html_attr') }}\">
|
||||
<div class=\"chart-wrapper\">
|
||||
<div class=\"ct-chart chart-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<span class=\"numeric hidden\">{{ backup.days|raw }}<em>{{ \"PLUGIN_ADMIN.DAYS\"|tu|lower }}</em></span>
|
||||
</div>
|
||||
<p class=\"hidden\">{{ \"PLUGIN_ADMIN.LAST_BACKUP\"|tu }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=\"flush-bottom button-bar\">
|
||||
<a class=\"button hidden\" href=\"#\" data-update-packages data-remodal-target=\"update-packages\" data-plugin-action=\"start-packages-update\"><i class=\"fa fa-cloud-download\"></i> {{ \"PLUGIN_ADMIN.UPDATE\"|tu }}</a>
|
||||
<button data-ajax=\"{{ uri.addNonce(base_url_relative ~ '/backup.json/task' ~ config.system.param_sep ~ 'backup', 'admin-form', 'admin-nonce') }}\" class=\"button\"><i class=\"fa fa-database\"></i> {{ \"PLUGIN_ADMIN.BACKUP\"|tu }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %}
|
||||
|
||||
{% endif %}
|
||||
", "partials/dashboard-maintenance.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-maintenance.html.twig");
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/userinfo/userinfo.html.twig */
|
||||
class __TwigTemplate_4b25149d0aac33b1b11411850aec8b9dd0702059848f7cd3cb68b0ec5fde7a40 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"form-field grid user-details\">
|
||||
<div class=\"form-label block size-1-3\">
|
||||
";
|
||||
// line 3
|
||||
$this->loadTemplate("partials/userinfo-avatar.html.twig", "forms/fields/userinfo/userinfo.html.twig", 3)->display($context);
|
||||
// line 4
|
||||
echo " </div>
|
||||
<div class=\"form-data block size-2-3\">
|
||||
<h2>";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "fullname", array()), "html", null, true);
|
||||
echo "</h2>
|
||||
<h5>
|
||||
<a href=\"mailto:";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "email", array()), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "email", array()), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 9
|
||||
if ($this->getAttribute(($context["data"] ?? null), "title", array())) {
|
||||
// line 10
|
||||
echo " - ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "title", array()), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 12
|
||||
echo " </h5>
|
||||
";
|
||||
// line 13
|
||||
$this->loadTemplate("partials/userinfo-avatar-credit.html.twig", "forms/fields/userinfo/userinfo.html.twig", 13)->display($context);
|
||||
// line 14
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/userinfo/userinfo.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 53 => 14, 51 => 13, 48 => 12, 42 => 10, 40 => 9, 34 => 8, 29 => 6, 25 => 4, 23 => 3, 19 => 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("<div class=\"form-field grid user-details\">
|
||||
<div class=\"form-label block size-1-3\">
|
||||
{% include 'partials/userinfo-avatar.html.twig' %}
|
||||
</div>
|
||||
<div class=\"form-data block size-2-3\">
|
||||
<h2>{{ data.fullname }}</h2>
|
||||
<h5>
|
||||
<a href=\"mailto:{{ data.email }}\">{{ data.email }}</a>
|
||||
{% if data.title %}
|
||||
- {{ data.title }}
|
||||
{% endif %}
|
||||
</h5>
|
||||
{% include 'partials/userinfo-avatar-credit.html.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
", "forms/fields/userinfo/userinfo.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/userinfo/userinfo.html.twig");
|
||||
}
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
/* partials/javascript-config.html.twig */
|
||||
class __TwigTemplate_adc113adff8865c15c0c586d212593f56ab76a54e3ecce760b447d3cc890c6a2 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.login", 1 => "admin.super"))) {
|
||||
// line 2
|
||||
$context["notifications"] = ((((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), "dashboard-notifications", array(), "array") || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "dashboard", array())) || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "plugins", array())) || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "themes", array()))) ? (1) : (0));
|
||||
// line 3
|
||||
echo "<script type=\"text/javascript\">
|
||||
window.GravAdmin = window.GravAdmin || {};
|
||||
window.GravAdmin.config = {
|
||||
current_url: '";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "route", array(0 => true), "method"), "html", null, true);
|
||||
echo "',
|
||||
base_url_relative: '";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "',
|
||||
base_url_simple: '";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, ($context["base_url_simple"] ?? null), "html", null, true);
|
||||
echo "',
|
||||
route: '";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute(($context["admin"] ?? null), "route", array()), "/"), "html", null, true);
|
||||
echo "',
|
||||
param_sep: '";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array()), "html", null, true);
|
||||
echo "',
|
||||
";
|
||||
// line 11
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
|
||||
// line 12
|
||||
echo " enable_auto_updates_check: '";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "enable_auto_updates_check", array()), "html", null, true);
|
||||
echo "',
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " admin_timeout: '";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "session", array()), "timeout", array())) ? ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "session", array()), "timeout", array())) : (1800)), "html", null, true);
|
||||
echo "',
|
||||
admin_nonce: '";
|
||||
// line 15
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "getNonce", array()), "html", null, true);
|
||||
echo "',
|
||||
language: '";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array(), "any", false, true), "language", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array(), "any", false, true), "language", array()), "en")) : ("en")), "html", null, true);
|
||||
echo "',
|
||||
pro_enabled: '";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin-pro", array(), "array"), "enabled", array()), "html", null, true);
|
||||
echo "',
|
||||
notifications: ";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, ($context["notifications"] ?? null), "html", null, true);
|
||||
echo ",
|
||||
local_notifications: '";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array(), "any", false, true), "local_notifications", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array(), "any", false, true), "local_notifications", array()), false)) : (false)), "html", null, true);
|
||||
echo "',
|
||||
site: {
|
||||
delimiter: '";
|
||||
// line 21
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "site", array(), "any", false, true), "summary", array(), "any", false, true), "delimiter", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "site", array(), "any", false, true), "summary", array(), "any", false, true), "delimiter", array()), "===")) : ("===")), "html", null, true);
|
||||
echo "'
|
||||
}
|
||||
};
|
||||
window.GravAdmin.uri_params = {};
|
||||
|
||||
";
|
||||
// line 26
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "uri", array()), "params", array(0 => null, 1 => true), "method"));
|
||||
foreach ($context['_seq'] as $context["param"] => $context["value"]) {
|
||||
// line 27
|
||||
echo " window.GravAdmin.uri_params.";
|
||||
echo twig_escape_filter($this->env, $context["param"], "html", null, true);
|
||||
echo " = \"";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter($context["value"], array("\\" => "/")), "html", null, true);
|
||||
echo "\";
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['param'], $context['value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 29
|
||||
echo "</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/javascript-config.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 105 => 29, 94 => 27, 90 => 26, 82 => 21, 77 => 19, 73 => 18, 69 => 17, 65 => 16, 61 => 15, 56 => 14, 50 => 12, 48 => 11, 44 => 10, 40 => 9, 36 => 8, 32 => 7, 28 => 6, 23 => 3, 21 => 2, 19 => 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 authorize(['admin.login', 'admin.super']) %}
|
||||
{% set notifications = (config.plugins.admin.widgets['dashboard-notifications'] or config.plugins.admin.notifications.dashboard or config.plugins.admin.notifications.plugins or config.plugins.admin.notifications.themes) ? 1 : 0 %}
|
||||
<script type=\"text/javascript\">
|
||||
window.GravAdmin = window.GravAdmin || {};
|
||||
window.GravAdmin.config = {
|
||||
current_url: '{{ uri.route(true) }}',
|
||||
base_url_relative: '{{ base_url_relative }}',
|
||||
base_url_simple: '{{ base_url_simple }}',
|
||||
route: '{{ admin.route|trim('/') }}',
|
||||
param_sep: '{{ config.system.param_sep }}',
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
enable_auto_updates_check: '{{ config.plugins.admin.enable_auto_updates_check }}',
|
||||
{% endif %}
|
||||
admin_timeout: '{{ config.plugins.admin.session.timeout ?: 1800 }}',
|
||||
admin_nonce: '{{ admin.getNonce }}',
|
||||
language: '{{ grav.user.language|default('en') }}',
|
||||
pro_enabled: '{{ config.plugins[\"admin-pro\"].enabled }}',
|
||||
notifications: {{ notifications }},
|
||||
local_notifications: '{{ config.system.local_notifications|default(false) }}',
|
||||
site: {
|
||||
delimiter: '{{ config.site.summary.delimiter|default('===') }}'
|
||||
}
|
||||
};
|
||||
window.GravAdmin.uri_params = {};
|
||||
|
||||
{% for param, value in grav.uri.params(null, true) %}
|
||||
window.GravAdmin.uri_params.{{param}} = \"{{value|replace({'\\\\': '/'})}}\";
|
||||
{% endfor %}
|
||||
</script>
|
||||
{% endif %}
|
||||
", "partials/javascript-config.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/javascript-config.html.twig");
|
||||
}
|
||||
}
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
/* partials/langswitcher.html.twig */
|
||||
class __TwigTemplate_9d28256dc387a754e6a5892aa581ccb51886de9d58b17c801cc21458354ca5e7 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<ul class=\"langswitcher\">
|
||||
";
|
||||
// line 2
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["langswitcher"] ?? null), "languages", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
$context["show_language"] = true;
|
||||
// line 5
|
||||
echo " ";
|
||||
if (($context["language"] == $this->getAttribute(($context["langswitcher"] ?? null), "current", array()))) {
|
||||
// line 6
|
||||
echo " ";
|
||||
$context["lang_url"] = $this->getAttribute(($context["page"] ?? null), "url", array());
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["active_class"] = " active";
|
||||
// line 8
|
||||
echo " ";
|
||||
} else {
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["base_lang_url"] = (($context["base_url_simple"] ?? null) . $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguageURLPrefix", array(0 => $context["language"]), "method"));
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["lang_url"] = ((($context["base_lang_url"] ?? null) . $this->getAttribute(($context["langswitcher"] ?? null), "page_route", array())) . $this->getAttribute(($context["page"] ?? null), "urlExtension", array()));
|
||||
// line 11
|
||||
echo " ";
|
||||
$context["untranslated_pages_behavior"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "plugins", array()), "langswitcher", array()), "untranslated_pages_behavior", array());
|
||||
// line 12
|
||||
echo " ";
|
||||
if ((($context["untranslated_pages_behavior"] ?? null) != "none")) {
|
||||
// line 13
|
||||
echo " ";
|
||||
$context["translated_page"] = $this->getAttribute($this->getAttribute(($context["langswitcher"] ?? null), "translated_pages", array()), $context["language"], array(), "array");
|
||||
// line 14
|
||||
echo " ";
|
||||
if (( !($context["translated_page"] ?? null) || !$this->getAttribute(($context["translated_page"] ?? null), "published", array()))) {
|
||||
// line 15
|
||||
echo " ";
|
||||
if ((($context["untranslated_pages_behavior"] ?? null) == "redirect")) {
|
||||
// line 16
|
||||
echo " ";
|
||||
$context["lang_url"] = (($context["base_lang_url"] ?? null) . "/");
|
||||
// line 17
|
||||
echo " ";
|
||||
} elseif ((($context["untranslated_pages_behavior"] ?? null) == "hide")) {
|
||||
// line 18
|
||||
echo " ";
|
||||
$context["show_language"] = false;
|
||||
// line 19
|
||||
echo " ";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
$context["active_class"] = "";
|
||||
// line 23
|
||||
echo " ";
|
||||
}
|
||||
// line 24
|
||||
echo "
|
||||
";
|
||||
// line 25
|
||||
if (($context["show_language"] ?? null)) {
|
||||
// line 26
|
||||
echo " <li><a href=\"";
|
||||
echo (($context["lang_url"] ?? null) . $this->getAttribute(($context["uri"] ?? null), "params", array()));
|
||||
echo "\" class=\"external";
|
||||
echo ($context["active_class"] ?? null);
|
||||
echo "\">";
|
||||
echo twig_capitalize_string_filter($this->env, call_user_func_array($this->env->getFunction('native_name')->getCallable(), array($context["language"])));
|
||||
echo "</a></li>
|
||||
";
|
||||
}
|
||||
// line 28
|
||||
echo "
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 30
|
||||
echo "</ul>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/langswitcher.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 110 => 30, 103 => 28, 93 => 26, 91 => 25, 88 => 24, 85 => 23, 82 => 22, 79 => 21, 76 => 20, 73 => 19, 70 => 18, 67 => 17, 64 => 16, 61 => 15, 58 => 14, 55 => 13, 52 => 12, 49 => 11, 46 => 10, 43 => 9, 40 => 8, 37 => 7, 34 => 6, 31 => 5, 29 => 4, 26 => 3, 22 => 2, 19 => 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("<ul class=\"langswitcher\">
|
||||
{% for language in langswitcher.languages %}
|
||||
|
||||
{% set show_language = true %}
|
||||
{% if language == langswitcher.current %}
|
||||
{% set lang_url = page.url %}
|
||||
{% set active_class = ' active' %}
|
||||
{% else %}
|
||||
{% set base_lang_url = base_url_simple ~ grav.language.getLanguageURLPrefix(language) %}
|
||||
{% set lang_url = base_lang_url ~ langswitcher.page_route ~ page.urlExtension %}
|
||||
{% set untranslated_pages_behavior = grav.config.plugins.langswitcher.untranslated_pages_behavior %}
|
||||
{% if untranslated_pages_behavior != 'none' %}
|
||||
{% set translated_page = langswitcher.translated_pages[language] %}
|
||||
{% if (not translated_page) or (not translated_page.published) %}
|
||||
{% if untranslated_pages_behavior == 'redirect' %}
|
||||
{% set lang_url = base_lang_url ~ '/' %}
|
||||
{% elseif untranslated_pages_behavior == 'hide' %}
|
||||
{% set show_language = false %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% set active_class = '' %}
|
||||
{% endif %}
|
||||
|
||||
{% if show_language %}
|
||||
<li><a href=\"{{ lang_url ~ uri.params }}\" class=\"external{{ active_class }}\">{{ native_name(language)|capitalize }}</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
", "partials/langswitcher.html.twig", "/home/kevin/Sites/static-ethica.net/user/themes/ethica/templates/partials/langswitcher.html.twig");
|
||||
}
|
||||
}
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/datetime/datetime.html.twig */
|
||||
class __TwigTemplate_330cf2a06b94650c369ccc8a096e33c98c44dfc542496612fd85d20cdd694b44 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/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/datetime/datetime.html.twig");
|
||||
}
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
/* partials/dashboard-pages.html.twig */
|
||||
class __TwigTemplate_04f8250bdf699797119c50fb6788037acd393cfb78ca31353fc6ce045224d778 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.pages", 1 => "admin.super"))) {
|
||||
// line 2
|
||||
echo " <div id=\"latest\">
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "route", array(0 => true), "method"), "html", null, true);
|
||||
echo "/pages\"><i class=\"fa fa-fw fa-file-text-o\"></i>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MANAGE_PAGES"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
<h1>";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LATEST_PAGE_UPDATES"), "html", null, true);
|
||||
echo "</h1>
|
||||
<table>
|
||||
";
|
||||
// line 8
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "latestPages", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["latest"]) {
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "latestPages", array())) {
|
||||
// line 9
|
||||
echo " <tr>
|
||||
<td class=\"triple page-title\">
|
||||
<a href=\"";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
|
||||
echo "/pages/";
|
||||
echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute($context["latest"], "route", array()), "/"), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-fw fa-file-text-o\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["latest"], "title", array()));
|
||||
echo "</a></td>
|
||||
<td class=\"triple page-route\">";
|
||||
// line 12
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["latest"], "route", array()), "html", null, true);
|
||||
echo "</td><td>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->adminNicetimeFilter($this->getAttribute($context["latest"], "modified", array())), "html", null, true);
|
||||
echo "</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['latest'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 15
|
||||
echo " </table>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 18
|
||||
echo " <div class=\"padding\">You don't have sufficient access to view the dashboard...</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/dashboard-pages.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 71 => 18, 66 => 15, 54 => 12, 46 => 11, 42 => 9, 37 => 8, 32 => 6, 25 => 4, 21 => 2, 19 => 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 authorize(['admin.pages', 'admin.super']) %}
|
||||
<div id=\"latest\">
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button\" href=\"{{ uri.route(true) }}/pages\"><i class=\"fa fa-fw fa-file-text-o\"></i>{{ \"PLUGIN_ADMIN.MANAGE_PAGES\"|tu }}</a>
|
||||
</div>
|
||||
<h1>{{ \"PLUGIN_ADMIN.LATEST_PAGE_UPDATES\"|tu }}</h1>
|
||||
<table>
|
||||
{% for latest in admin.latestPages if admin.latestPages %}
|
||||
<tr>
|
||||
<td class=\"triple page-title\">
|
||||
<a href=\"{{ base_url }}/pages/{{ latest.route|trim('/') }}\"><i class=\"fa fa-fw fa-file-text-o\"></i> {{ latest.title|e }}</a></td>
|
||||
<td class=\"triple page-route\">{{ latest.route }}</td><td>{{ latest.modified|adminNicetime }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class=\"padding\">You don't have sufficient access to view the dashboard...</div>
|
||||
{% endif %}
|
||||
", "partials/dashboard-pages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-pages.html.twig");
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/column/column.html.twig */
|
||||
class __TwigTemplate_27d33db924f9d050c15c86e1ed6a2669e71a6f44e2dd0f582f8aca072496adb7 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 2
|
||||
echo " <div class=\"form-column block pure-u-1-";
|
||||
echo twig_escape_filter($this->env, ($context["cols"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 3
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 4
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 6
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/column/column.html.twig", 6)->display($context);
|
||||
// line 7
|
||||
echo " ";
|
||||
}
|
||||
// line 8
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 9
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/column/column.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 69 => 9, 55 => 8, 52 => 7, 49 => 6, 46 => 5, 43 => 4, 26 => 3, 21 => 2, 19 => 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 field.fields %}
|
||||
<div class=\"form-column block pure-u-1-{{ cols }}\">
|
||||
{% for field in field.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
", "forms/fields/column/column.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/column/column.html.twig");
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
/* modular/contenu.html.twig */
|
||||
class __TwigTemplate_1ea9829bb60382c073b92f630096beaadc28e1d2892df60dab30b41479619a22 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
}
|
||||
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo "
|
||||
<h2>";
|
||||
// line 5
|
||||
echo $this->getAttribute(($context["header"] ?? null), "title", array());
|
||||
echo "</h2>
|
||||
|
||||
";
|
||||
// line 7
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 9
|
||||
echo "
|
||||
<div id=\"";
|
||||
// line 10
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\" class=\"column\">
|
||||
";
|
||||
// line 11
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 14
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular/contenu.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 65 => 1, 61 => 14, 52 => 11, 48 => 10, 45 => 9, 41 => 8, 37 => 7, 32 => 5, 29 => 4, 23 => 3, 20 => 2,);
|
||||
}
|
||||
|
||||
/** @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("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>{{ header.title }}</h2>
|
||||
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
|
||||
<div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"column\">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular/contenu.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/modular/contenu.html.twig");
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
|
||||
/* modular/article.html.twig */
|
||||
class __TwigTemplate_b3ba78cc04ea961ed0f95d38c0600d951e360523a92ef1961ddd4d6fe24ab08f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
}
|
||||
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <h2>";
|
||||
echo $this->getAttribute(($context["header"] ?? null), "title", array());
|
||||
echo "</h2>
|
||||
";
|
||||
// line 5
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
";
|
||||
// line 6
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 7
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\">
|
||||
";
|
||||
// line 8
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 11
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular/article.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 60 => 1, 56 => 11, 47 => 8, 42 => 7, 38 => 6, 34 => 5, 29 => 4, 23 => 3, 20 => 2,);
|
||||
}
|
||||
|
||||
/** @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("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ header.title }}</h2>
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
<div id=\"{{ _self.pageLinkName(module.folder) }}\">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular/article.html.twig", "/home/kevin/Sites/static-ethica.net/user/themes/ethica/templates/modular/article.html.twig");
|
||||
}
|
||||
}
|
||||
+516
@@ -0,0 +1,516 @@
|
||||
<?php
|
||||
|
||||
/* partials/base-root.html.twig */
|
||||
class __TwigTemplate_bbfc4332e14413b744a0ff6a8927b22d4b78df361aa4a2ba481d4dafc1918291 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'),
|
||||
'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'),
|
||||
'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 " <!DOCTYPE html>
|
||||
<html lang=\"en\">
|
||||
<head>
|
||||
";
|
||||
// line 5
|
||||
$this->displayBlock('head', $context, $blocks);
|
||||
// line 32
|
||||
echo " </head>
|
||||
";
|
||||
// line 33
|
||||
$this->displayBlock('body', $context, $blocks);
|
||||
// line 115
|
||||
echo " </html>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 5
|
||||
public function block_head($context, array $blocks = array())
|
||||
{
|
||||
// line 6
|
||||
echo " <meta charset=\"utf-8\" />
|
||||
<title>";
|
||||
// line 7
|
||||
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 8
|
||||
if ($this->getAttribute(($context["header"] ?? null), "description", array())) {
|
||||
// line 9
|
||||
echo " <meta name=\"description\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "description", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
} else {
|
||||
// line 11
|
||||
echo " <meta name=\"description\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "description", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
}
|
||||
// line 13
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["header"] ?? null), "robots", array())) {
|
||||
// line 14
|
||||
echo " <meta name=\"robots\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "robots", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
} else {
|
||||
// line 16
|
||||
echo " <meta name=\"robots\" content=\"noindex, nofollow\">
|
||||
";
|
||||
}
|
||||
// line 18
|
||||
echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"";
|
||||
// line 19
|
||||
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 21
|
||||
$this->displayBlock('stylesheets', $context, $blocks);
|
||||
// line 25
|
||||
echo "
|
||||
";
|
||||
// line 26
|
||||
$this->loadTemplate("partials/javascript-config.html.twig", "partials/base-root.html.twig", 26)->display($context);
|
||||
// line 27
|
||||
echo " ";
|
||||
$this->displayBlock('javascripts', $context, $blocks);
|
||||
// line 31
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 21
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 22
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/stylesheets.html.twig", "partials/base-root.html.twig", 22)->display($context);
|
||||
// line 23
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 27
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 28
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/javascripts.html.twig", "partials/base-root.html.twig", 28)->display($context);
|
||||
// line 29
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 33
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 34
|
||||
echo " <body class=\"";
|
||||
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 "\">
|
||||
";
|
||||
// line 35
|
||||
$this->displayBlock('page', $context, $blocks);
|
||||
// line 112
|
||||
echo " ";
|
||||
$this->displayBlock('bottom', $context, $blocks);
|
||||
// line 113
|
||||
echo " </body>
|
||||
";
|
||||
}
|
||||
|
||||
// line 35
|
||||
public function block_page($context, array $blocks = array())
|
||||
{
|
||||
// line 36
|
||||
echo " <div class=\"remodal-bg\">
|
||||
|
||||
";
|
||||
// line 38
|
||||
$this->displayBlock('navigation', $context, $blocks);
|
||||
// line 41
|
||||
echo "
|
||||
<main id=\"admin-main\" >
|
||||
";
|
||||
// line 43
|
||||
$this->loadTemplate("partials/nav-toggle.html.twig", "partials/base-root.html.twig", 43)->display($context);
|
||||
// line 44
|
||||
echo " <div id=\"titlebar\" class=\"titlebar\">
|
||||
";
|
||||
// line 45
|
||||
$this->displayBlock('titlebar', $context, $blocks);
|
||||
// line 46
|
||||
echo " </div>
|
||||
|
||||
<div class=\"content-wrapper\">
|
||||
<div class=\"";
|
||||
// line 49
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "content_padding", array())) {
|
||||
echo "content-padding";
|
||||
}
|
||||
echo "\">
|
||||
";
|
||||
// line 50
|
||||
$this->displayBlock('messages', $context, $blocks);
|
||||
// line 53
|
||||
echo "
|
||||
";
|
||||
// line 54
|
||||
$this->displayBlock('widgets', $context, $blocks);
|
||||
// line 55
|
||||
echo " <div class=\"default-box-shadow\">
|
||||
";
|
||||
// line 56
|
||||
$this->displayBlock('content_top', $context, $blocks);
|
||||
// line 57
|
||||
echo " <div class=\"admin-block\">";
|
||||
// line 58
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
// line 59
|
||||
echo "</div>
|
||||
";
|
||||
// line 60
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "show_github_msg", array())) {
|
||||
// line 61
|
||||
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\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADMIN_REPORT_ISSUE"), "html", null, true);
|
||||
echo "</a></div>
|
||||
";
|
||||
}
|
||||
// line 63
|
||||
echo " ";
|
||||
$this->displayBlock('content_bottom', $context, $blocks);
|
||||
// line 64
|
||||
echo " </div>
|
||||
";
|
||||
// line 65
|
||||
$this->displayBlock('footer', $context, $blocks);
|
||||
// line 70
|
||||
echo " </div>
|
||||
</div>
|
||||
|
||||
<div class=\"remodal\" data-remodal-id=\"generic\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 75
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\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 78
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\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 84
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\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 90
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\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 96
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_TITLE"), "html", null, true);
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 98
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\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 102
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\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 103
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<div id='overlay'></div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 38
|
||||
public function block_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 39
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/nav.html.twig", "partials/base-root.html.twig", 39)->display($context);
|
||||
// line 40
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 45
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 50
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
// line 51
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/messages.html.twig", "partials/base-root.html.twig", 51)->display($context);
|
||||
// line 52
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 54
|
||||
public function block_widgets($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 56
|
||||
public function block_content_top($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 58
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 63
|
||||
public function block_content_bottom($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 65
|
||||
public function block_footer($context, array $blocks = array())
|
||||
{
|
||||
// line 66
|
||||
echo " <footer id=\"footer\">
|
||||
<a href=\"http://getgrav.org\">Grav</a> v<span class=\"grav-version\">";
|
||||
// line 67
|
||||
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\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WAS_MADE_WITH")), "html", null, true);
|
||||
echo " <i class=\"fa fa-heart\"></i> ";
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BY")), "html", null, true);
|
||||
echo " <a href=\"http://www.rockettheme.com\">RocketTheme</a>.
|
||||
</footer>
|
||||
";
|
||||
}
|
||||
|
||||
// line 112
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/base-root.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 369 => 112, 356 => 67, 353 => 66, 350 => 65, 345 => 63, 340 => 58, 335 => 56, 330 => 54, 326 => 52, 323 => 51, 320 => 50, 315 => 45, 311 => 40, 308 => 39, 305 => 38, 292 => 103, 288 => 102, 281 => 98, 276 => 96, 267 => 90, 258 => 84, 249 => 78, 243 => 75, 236 => 70, 234 => 65, 231 => 64, 228 => 63, 222 => 61, 220 => 60, 217 => 59, 215 => 58, 213 => 57, 211 => 56, 208 => 55, 206 => 54, 203 => 53, 201 => 50, 195 => 49, 190 => 46, 188 => 45, 185 => 44, 183 => 43, 179 => 41, 177 => 38, 173 => 36, 170 => 35, 165 => 113, 162 => 112, 160 => 35, 153 => 34, 150 => 33, 143 => 29, 140 => 28, 137 => 27, 130 => 23, 127 => 22, 124 => 21, 120 => 31, 117 => 27, 115 => 26, 112 => 25, 110 => 21, 104 => 19, 101 => 18, 97 => 16, 91 => 14, 88 => 13, 82 => 11, 76 => 9, 74 => 8, 61 => 7, 58 => 6, 55 => 5, 49 => 115, 47 => 33, 44 => 32, 42 => 5, 37 => 2, 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 Twig_Source("{% if uri.extension() == 'json' %}{% include 'default.json.twig' %}{% else %}
|
||||
<!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=\"{{ config.plugins.admin.sidebar.size == 'small' ? 'sidebar-closed' : '' }} {{ config.plugins.admin.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>
|
||||
|
||||
<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\"></i> {{ \"PLUGIN_ADMIN.BY\"|tu|lower }} <a href=\"http://www.rockettheme.com\">RocketTheme</a>.
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
</main>
|
||||
<div id='overlay'></div>
|
||||
</div>
|
||||
{% endblock page %}
|
||||
{% block bottom %}{% endblock %}
|
||||
</body>
|
||||
{% endblock body %}
|
||||
</html>
|
||||
{% endif %}
|
||||
", "partials/base-root.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/base-root.html.twig");
|
||||
}
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
/* partials/dashboard-feed.html.twig */
|
||||
class __TwigTemplate_725d918a831f86518c8cdc25b387dcf9c85f656fa7cef0c742929a09399b7646 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div id=\"news-feed\" class=\"dashboard-item admin-block default-box-shadow\">
|
||||
<h1>
|
||||
";
|
||||
// line 3
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NEWS_FEED"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"right\">
|
||||
<a href=\"#\" class=\"button button-small\" data-refresh=\"feed\"><i class=\"fa fa-refresh\"></i></a>
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
<div class=\"widget-content\">
|
||||
<div class=\"widget-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/dashboard-feed.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 23 => 3, 19 => 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("<div id=\"news-feed\" class=\"dashboard-item admin-block default-box-shadow\">
|
||||
<h1>
|
||||
{{ \"PLUGIN_ADMIN.NEWS_FEED\"|tu }}
|
||||
<span class=\"right\">
|
||||
<a href=\"#\" class=\"button button-small\" data-refresh=\"feed\"><i class=\"fa fa-refresh\"></i></a>
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
<div class=\"widget-content\">
|
||||
<div class=\"widget-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
", "partials/dashboard-feed.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-feed.html.twig");
|
||||
}
|
||||
}
|
||||
+353
@@ -0,0 +1,353 @@
|
||||
<?php
|
||||
|
||||
/* partials/plugins-list.html.twig */
|
||||
class __TwigTemplate_3cfa8d5f6c88fa16d84e0bfb719858ae312a233ba0cce59f5d6d2a41a27bfe95 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["gumroad_loaded"] = false;
|
||||
// line 2
|
||||
echo "<div class=\"grav-update plugins\"></div>
|
||||
";
|
||||
// line 3
|
||||
if (($context["installing"] ?? null)) {
|
||||
// line 4
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/release-toggle.html.twig", "partials/plugins-list.html.twig", 4)->display($context);
|
||||
}
|
||||
// line 6
|
||||
$this->loadTemplate("partials/list-sort.html.twig", "partials/plugins-list.html.twig", 6)->display(array_merge($context, array("list_view" => "plugins")));
|
||||
// line 7
|
||||
echo "<h1>
|
||||
";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, ((($context["installing"] ?? null)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVAILABLE_PLUGINS")) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLED_PLUGINS"))), "html", null, true);
|
||||
echo "
|
||||
</h1>
|
||||
<form>
|
||||
<div class=\"gpm-search\">
|
||||
<input type=\"text\" placeholder=\"";
|
||||
// line 12
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.RESOURCE_FILTER"), "html", null, true);
|
||||
echo "\" data-gpm-filter>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table>
|
||||
";
|
||||
// line 17
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('Grav\Common\Twig\TwigExtension')->ksortFilter($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "plugins", array(0 => !($context["installing"] ?? null)), "method"), "toArray", array())));
|
||||
$context['_iterated'] = false;
|
||||
$context['loop'] = array(
|
||||
'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["slug"] => $context["plugin"]) {
|
||||
// line 18
|
||||
echo " ";
|
||||
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("plugins/" . $context["slug"])), "method");
|
||||
// line 19
|
||||
echo " ";
|
||||
$context["isTestingRelease"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isTestingRelease", array(0 => $context["slug"]), "method");
|
||||
// line 20
|
||||
echo " ";
|
||||
$context["releaseDate"] = (($this->getAttribute($context["plugin"], "date", array())) ? ($this->getAttribute($context["plugin"], "date", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "findPackage", array(0 => $context["slug"], 1 => true), "method"), "date", array())));
|
||||
// line 21
|
||||
echo "
|
||||
<tr data-gpm-plugin=\"";
|
||||
// line 22
|
||||
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
|
||||
echo "\" data-gpm-name=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "name", array()), "html", null, true);
|
||||
echo "\" data-gpm-release-date=\"";
|
||||
echo twig_escape_filter($this->env, ($context["releaseDate"] ?? null), "html", null, true);
|
||||
echo "\" data-gpm-author=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["plugin"], "author", array()), "name", array()), "html", null, true);
|
||||
echo "\" data-gpm-official=\"";
|
||||
echo (($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["plugin"]), "method")) ? ("1") : ("2"));
|
||||
echo "\" data-gpm-updatable=\"";
|
||||
echo (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isUpdatable", array(0 => $context["slug"]), "method")) ? ("1") : ("2"));
|
||||
echo "\" data-gpm-enabled=\"";
|
||||
echo (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("1") : ("2"));
|
||||
echo "\" data-gpm-testing=\"";
|
||||
echo ((($context["isTestingRelease"] ?? null)) ? ("1") : ("2"));
|
||||
echo "\">
|
||||
<td class=\"gpm-name quadruple\">
|
||||
<i class=\"fa fa-fw fa-";
|
||||
// line 24
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
<a href=\"";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/plugins/";
|
||||
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "name", array()), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
// line 26
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["plugin"]), "method")) {
|
||||
// line 27
|
||||
echo " <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN"), "html", null, true);
|
||||
echo "\"></i></span></small>
|
||||
";
|
||||
}
|
||||
// line 29
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => $context["plugin"]), "method")) {
|
||||
// line 30
|
||||
echo " ";
|
||||
if ( !($context["gumroad_loaded"] ?? null)) {
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["gumroad_loaded"] = true;
|
||||
// line 32
|
||||
echo " <script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
";
|
||||
}
|
||||
// line 34
|
||||
echo " <small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true);
|
||||
echo "</span></small>
|
||||
";
|
||||
}
|
||||
// line 36
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["plugin"], "symlink", array())) {
|
||||
// line 37
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED"), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</span>
|
||||
";
|
||||
}
|
||||
// line 41
|
||||
echo " <span class=\"gpm-version\">v";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "version", array()), "html", null, true);
|
||||
echo "</span>
|
||||
";
|
||||
// line 42
|
||||
if (($context["isTestingRelease"] ?? null)) {
|
||||
echo "<span class=\"gpm-testing\">test release</span>";
|
||||
}
|
||||
// line 43
|
||||
echo " </td>
|
||||
<td class=\"gpm-actions\">
|
||||
";
|
||||
// line 45
|
||||
if (( !($context["installing"] ?? null) && (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["plugin"], "form", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden") && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["plugin"], "form", array()), "fields", array()), "tabs", array()), "fields", array()), "login", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden")))) {
|
||||
// line 46
|
||||
echo " <a class=\"";
|
||||
echo (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("enabled") : ("disabled"));
|
||||
echo "\" href=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((((($context["base_url_relative"] ?? null) . "/plugins/") . $context["slug"]) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("disable") : ("enable"))), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw fa-toggle-";
|
||||
// line 47
|
||||
echo (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("on") : ("off"));
|
||||
echo "\"></i>
|
||||
</a>
|
||||
";
|
||||
} elseif ( // line 49
|
||||
($context["installing"] ?? null)) {
|
||||
// line 50
|
||||
echo " ";
|
||||
if (($this->getAttribute($context["plugin"], "premium", array()) && !$this->getAttribute(($context["admin"] ?? null), "license", array(0 => $this->getAttribute($context["plugin"], "slug", array())), "method"))) {
|
||||
// line 51
|
||||
echo " ";
|
||||
if ( !($context["gumroad_loaded"] ?? null)) {
|
||||
// line 52
|
||||
echo " ";
|
||||
$context["gumroad_loaded"] = true;
|
||||
// line 53
|
||||
echo " <script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
";
|
||||
}
|
||||
// line 55
|
||||
echo " <a class=\"gumroad-button button\" href=\"https://gum.co/";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["plugin"], "premium", array()), "product_permalink", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("Buy Now"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
} else {
|
||||
// line 57
|
||||
echo " <a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "slug", array()), "html", null, true);
|
||||
echo "\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 59
|
||||
echo " ";
|
||||
}
|
||||
// line 60
|
||||
echo " <span class=\"gpm-details-expand\"><i class=\"fa fa-chevron-down\"></i></span>
|
||||
</td>
|
||||
<td class=\"gpm-details\">
|
||||
<div class=\"table-wrapper\">
|
||||
";
|
||||
// line 64
|
||||
$this->loadTemplate("partials/plugin-data.html.twig", "partials/plugins-list.html.twig", 64)->display(array_merge($context, array("plugin" => $context["plugin"])));
|
||||
// line 65
|
||||
echo " </div>
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
$context['_iterated'] = true;
|
||||
++$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'];
|
||||
}
|
||||
}
|
||||
if (!$context['_iterated']) {
|
||||
// line 69
|
||||
echo " <tr><td>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.OFFLINE_WARNING"), "html", null, true);
|
||||
echo "</td></tr>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['slug'], $context['plugin'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 71
|
||||
echo "</table>
|
||||
|
||||
";
|
||||
// line 73
|
||||
$this->loadTemplate("partials/modal-add-package.html.twig", "partials/plugins-list.html.twig", 73)->display(array_merge($context, array("type" => "plugin")));
|
||||
// line 74
|
||||
$this->loadTemplate("partials/modal-update-packages.html.twig", "partials/plugins-list.html.twig", 74)->display(array_merge($context, array("type" => "plugin")));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/plugins-list.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 249 => 74, 247 => 73, 243 => 71, 234 => 69, 218 => 65, 216 => 64, 210 => 60, 207 => 59, 199 => 57, 191 => 55, 187 => 53, 184 => 52, 181 => 51, 178 => 50, 176 => 49, 171 => 47, 164 => 46, 162 => 45, 158 => 43, 154 => 42, 149 => 41, 141 => 37, 138 => 36, 132 => 34, 128 => 32, 125 => 31, 122 => 30, 119 => 29, 113 => 27, 111 => 26, 103 => 25, 99 => 24, 80 => 22, 77 => 21, 74 => 20, 71 => 19, 68 => 18, 50 => 17, 42 => 12, 35 => 8, 32 => 7, 30 => 6, 26 => 4, 24 => 3, 21 => 2, 19 => 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("{% set gumroad_loaded = false %}
|
||||
<div class=\"grav-update plugins\"></div>
|
||||
{% if installing %}
|
||||
{% include 'partials/release-toggle.html.twig' %}
|
||||
{% endif %}
|
||||
{% include 'partials/list-sort.html.twig' with { list_view: 'plugins' } %}
|
||||
<h1>
|
||||
{{ installing ? \"PLUGIN_ADMIN.AVAILABLE_PLUGINS\"|tu : \"PLUGIN_ADMIN.INSTALLED_PLUGINS\"|tu }}
|
||||
</h1>
|
||||
<form>
|
||||
<div class=\"gpm-search\">
|
||||
<input type=\"text\" placeholder=\"{{ \"PLUGIN_ADMIN.RESOURCE_FILTER\"|tu }}\" data-gpm-filter>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table>
|
||||
{% for slug, plugin in admin.plugins(not installing).toArray|ksort %}
|
||||
{% set data = admin.data('plugins/' ~ slug) %}
|
||||
{% set isTestingRelease = admin.gpm.isTestingRelease(slug) %}
|
||||
{% set releaseDate = plugin.date ?: admin.gpm.findPackage(slug, true).date %}
|
||||
|
||||
<tr data-gpm-plugin=\"{{ slug|url_encode }}\" data-gpm-name=\"{{ plugin.name }}\" data-gpm-release-date=\"{{ releaseDate }}\" data-gpm-author=\"{{ plugin.author.name }}\" data-gpm-official=\"{{ admin.isTeamGrav(plugin) ? '1' : '2' }}\" data-gpm-updatable=\"{{ admin.gpm.isUpdatable(slug) ? '1' : '2' }}\" data-gpm-enabled=\"{{ data.get('enabled') ? '1' : '2' }}\" data-gpm-testing=\"{{ isTestingRelease ? '1' : '2' }}\">
|
||||
<td class=\"gpm-name quadruple\">
|
||||
<i class=\"fa fa-fw fa-{{ plugin.icon }}\"></i>
|
||||
<a href=\"{{ base_url_relative }}/plugins/{{ slug|url_encode }}\">{{ plugin.name }}</a>
|
||||
{% if admin.isTeamGrav(plugin) %}
|
||||
<small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"{{ \"PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN\"|tu }}\"></i></span></small>
|
||||
{% endif %}
|
||||
{% if admin.isPremiumProduct(plugin) %}
|
||||
{% if not gumroad_loaded %}
|
||||
{% set gumroad_loaded = true %}
|
||||
<script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
{% endif %}
|
||||
<small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> {{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }}</span></small>
|
||||
{% endif %}
|
||||
{% if plugin.symlink %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ \"PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED\"|tu }}\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class=\"gpm-version\">v{{ plugin.version }}</span>
|
||||
{% if isTestingRelease %}<span class=\"gpm-testing\">test release</span>{% endif %}
|
||||
</td>
|
||||
<td class=\"gpm-actions\">
|
||||
{% if (not installing and (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.login.fields.enabled.type != 'hidden')) %}
|
||||
<a class=\"{{ data.get('enabled') ? 'enabled' : 'disabled' }}\" href=\"{{ uri.addNonce(base_url_relative ~ '/plugins/' ~ slug ~ '/task' ~ config.system.param_sep ~ (data.get('enabled') ? 'disable' : 'enable'), 'admin-form', 'admin-nonce') }}\">
|
||||
<i class=\"fa fa-fw fa-toggle-{{ data.get('enabled') ? 'on' : 'off' }}\"></i>
|
||||
</a>
|
||||
{% elseif (installing) %}
|
||||
{% if (plugin.premium and not admin.license(plugin.slug)) %}
|
||||
{% if not gumroad_loaded %}
|
||||
{% set gumroad_loaded = true %}
|
||||
<script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
{% endif %}
|
||||
<a class=\"gumroad-button button\" href=\"https://gum.co/{{ plugin.premium.product_permalink }}\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> {{ \"Buy Now\"|tu }}</a>
|
||||
{% else %}
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"{{ plugin.slug }}\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.INSTALL\"|tu }}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<span class=\"gpm-details-expand\"><i class=\"fa fa-chevron-down\"></i></span>
|
||||
</td>
|
||||
<td class=\"gpm-details\">
|
||||
<div class=\"table-wrapper\">
|
||||
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td>{{ \"PLUGIN_ADMIN.OFFLINE_WARNING\"|tu }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %}
|
||||
{% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %}
|
||||
", "partials/plugins-list.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugins-list.html.twig");
|
||||
}
|
||||
}
|
||||
+430
@@ -0,0 +1,430 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/file/file.html.twig */
|
||||
class __TwigTemplate_db0ba760c4208b275d00f5602da83dd351722429da46b154c188943d60565c68 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/file/file.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 2
|
||||
$context["defaults"] = $this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "form", array());
|
||||
// line 3
|
||||
$context["files"] = twig_array_merge($this->getAttribute(($context["defaults"] ?? null), "files", array()), ((array_key_exists("field", $context)) ? (_twig_default_filter(($context["field"] ?? null), array())) : (array())));
|
||||
// line 4
|
||||
$context["limit"] = (( !$this->getAttribute(($context["field"] ?? null), "multiple", array())) ? (1) : ($this->getAttribute(($context["files"] ?? null), "limit", array())));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 58
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 59
|
||||
echo " ";
|
||||
$context["page_can_upload"] = (($context["exists"] ?? null) || (((($context["type"] ?? null) == "page") && !($context["exists"] ?? null)) && !((is_string($__internal_5580c43648a4fc9a18c8763bb999454bcc9945e307af12771de71cef4b0d1fed = $this->getAttribute(($context["field"] ?? null), "destination", array())) && is_string($__internal_cbf4f73522fb2686fe8def785eb1f01a20b9f57d4f16281c5573cbf67f140404 = "@self") && ('' === $__internal_cbf4f73522fb2686fe8def785eb1f01a20b9f57d4f16281c5573cbf67f140404 || 0 === strpos($__internal_5580c43648a4fc9a18c8763bb999454bcc9945e307af12771de71cef4b0d1fed, $__internal_cbf4f73522fb2686fe8def785eb1f01a20b9f57d4f16281c5573cbf67f140404))) || (is_string($__internal_749820261fa3bb7394026710d9844f890294484dd9ed82221dc3ede90833cf77 = $this->getAttribute(($context["field"] ?? null), "destination", array())) && is_string($__internal_4cf70ad0a071196763609576a813d32d11fc5d725194baeef5931fe85ef905b5 = "self@") && ('' === $__internal_4cf70ad0a071196763609576a813d32d11fc5d725194baeef5931fe85ef905b5 || 0 === strpos($__internal_749820261fa3bb7394026710d9844f890294484dd9ed82221dc3ede90833cf77, $__internal_4cf70ad0a071196763609576a813d32d11fc5d725194baeef5931fe85ef905b5))))));
|
||||
// line 60
|
||||
echo " ";
|
||||
if (( !array_key_exists("type", $context) || ($context["page_can_upload"] ?? null))) {
|
||||
// line 61
|
||||
echo "
|
||||
";
|
||||
// line 62
|
||||
$context["settings"] = array("name" => $this->getAttribute(($context["field"] ?? null), "name", array()), "paramName" => ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . (($this->getAttribute(($context["files"] ?? null), "multiple", array())) ? ("[]") : (""))), "limit" => ($context["limit"] ?? null), "filesize" => (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "media", array()), "upload_limit", array()) / 1024) / 1024), "accept" => $this->getAttribute(($context["files"] ?? null), "accept", array()));
|
||||
// line 63
|
||||
echo "
|
||||
<div class=\"form-input-wrapper dropzone files-upload ";
|
||||
// line 64
|
||||
if ( !($this->getAttribute(($context["field"] ?? null), "fancy", array()) === false)) {
|
||||
echo "form-input-file";
|
||||
}
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "size", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "size", array()), "xlarge")) : ("xlarge")), "html", null, true);
|
||||
echo "\" data-grav-file-settings=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["settings"] ?? null)), "html_attr");
|
||||
echo "\" ";
|
||||
if (($context["file_url_add"] ?? null)) {
|
||||
echo "data-file-url-add=\"";
|
||||
echo twig_escape_filter($this->env, ($context["file_url_add"] ?? null), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
echo " ";
|
||||
if (($context["file_url_remove"] ?? null)) {
|
||||
echo "data-file-url-remove=\"";
|
||||
echo twig_escape_filter($this->env, ($context["file_url_remove"] ?? null), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
echo ">
|
||||
<input
|
||||
";
|
||||
// line 67
|
||||
echo " ";
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 75
|
||||
echo " />
|
||||
|
||||
";
|
||||
// line 77
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
|
||||
foreach ($context['_seq'] as $context["path"] => $context["file"]) {
|
||||
// line 78
|
||||
echo " ";
|
||||
echo $this->getAttribute($this, "preview", array(0 => $context["path"], 1 => $context["file"], 2 => $context), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['path'], $context['file'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 80
|
||||
echo " ";
|
||||
$this->loadTemplate("forms/fields/hidden/hidden.html.twig", "forms/fields/file/file.html.twig", 80)->display(array_merge($context, array("field" => array("name" => ("_json." . $this->getAttribute(($context["field"] ?? null), "name", array()))), "value" => twig_jsonencode_filter(($context["value"] ?? null)))));
|
||||
// line 81
|
||||
echo " </div>
|
||||
|
||||
";
|
||||
} else {
|
||||
// line 84
|
||||
echo " <span class=\"note\">";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANNOT_ADD_FILES_PAGE_NOT_SAVED");
|
||||
echo "</span>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 67
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 68
|
||||
echo " type=\"file\"
|
||||
";
|
||||
// line 69
|
||||
if ($this->getAttribute(($context["files"] ?? null), "multiple", array())) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 70
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["files"] ?? null), "accept", array())) {
|
||||
echo "accept=\"";
|
||||
echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute(($context["files"] ?? null), "accept", array()), ","), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 71
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 72
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "random_name", array())) {
|
||||
echo "random=\"true\"";
|
||||
}
|
||||
// line 73
|
||||
echo " ";
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function getbytesToSize($__bytes__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"bytes" => $__bytes__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 7
|
||||
ob_start();
|
||||
// line 8
|
||||
echo " ";
|
||||
$context["kilobyte"] = 1024;
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["megabyte"] = (($context["kilobyte"] ?? null) * 1024);
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["gigabyte"] = (($context["megabyte"] ?? null) * 1024);
|
||||
// line 11
|
||||
echo " ";
|
||||
$context["terabyte"] = (($context["gigabyte"] ?? null) * 1024);
|
||||
// line 12
|
||||
echo "
|
||||
";
|
||||
// line 13
|
||||
if ((($context["bytes"] ?? null) < ($context["kilobyte"] ?? null))) {
|
||||
// line 14
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (($context["bytes"] ?? null) . " B"), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
} elseif (( // line 15
|
||||
($context["bytes"] ?? null) < ($context["megabyte"] ?? null))) {
|
||||
// line 16
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (twig_number_format_filter($this->env, (($context["bytes"] ?? null) / ($context["kilobyte"] ?? null)), 2, ".") . " KB"), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
} elseif (( // line 17
|
||||
($context["bytes"] ?? null) < ($context["gigabyte"] ?? null))) {
|
||||
// line 18
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (twig_number_format_filter($this->env, (($context["bytes"] ?? null) / ($context["megabyte"] ?? null)), 2, ".") . " MB"), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
} elseif (( // line 19
|
||||
($context["bytes"] ?? null) < ($context["terabyte"] ?? null))) {
|
||||
// line 20
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (twig_number_format_filter($this->env, (($context["bytes"] ?? null) / ($context["gigabyte"] ?? null)), 2, ".") . " GB"), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 22
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (twig_number_format_filter($this->env, (($context["bytes"] ?? null) / ($context["terabyte"] ?? null)), 2, ".") . " TB"), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 24
|
||||
echo " ";
|
||||
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
// line 27
|
||||
public function getpreview($__path__ = null, $__value__ = null, $__global__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"path" => $__path__,
|
||||
"value" => $__value__,
|
||||
"global" => $__global__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 28
|
||||
echo " ";
|
||||
if (($context["value"] ?? null)) {
|
||||
// line 29
|
||||
echo " ";
|
||||
$context["uri"] = $this->getAttribute($this->getAttribute(($context["global"] ?? null), "grav", array()), "uri", array());
|
||||
// line 30
|
||||
echo " ";
|
||||
$context["files"] = $this->getAttribute(($context["global"] ?? null), "files", array());
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["config"] = $this->getAttribute($this->getAttribute(($context["global"] ?? null), "grav", array()), "config", array());
|
||||
// line 32
|
||||
echo " ";
|
||||
$context["route"] = $this->getAttribute($this->getAttribute(($context["global"] ?? null), "context", array()), "route", array(), "method");
|
||||
// line 33
|
||||
echo "
|
||||
";
|
||||
// line 34
|
||||
$context["type"] = (($this->getAttribute(($context["global"] ?? null), "blueprint_type", array())) ? ($this->getAttribute(($context["global"] ?? null), "blueprint_type", array())) : ((($this->getAttribute($this->getAttribute(($context["global"] ?? null), "admin", array()), "location", array())) ? ($this->getAttribute($this->getAttribute(($context["global"] ?? null), "admin", array()), "location", array())) : ("config"))));
|
||||
// line 35
|
||||
echo "
|
||||
";
|
||||
// line 36
|
||||
$context["blueprint_name"] = $this->getAttribute($this->getAttribute(($context["global"] ?? null), "blueprints", array()), "getFilename", array());
|
||||
// line 37
|
||||
echo " ";
|
||||
if ((($context["type"] ?? null) == "pages")) {
|
||||
// line 38
|
||||
echo " ";
|
||||
$context["blueprint_name"] = ((($context["type"] ?? null) . "/") . ($context["blueprint_name"] ?? null));
|
||||
// line 39
|
||||
echo " ";
|
||||
}
|
||||
// line 40
|
||||
echo " ";
|
||||
$context["blueprint"] = base64_encode(($context["blueprint_name"] ?? null));
|
||||
// line 41
|
||||
echo " ";
|
||||
$context["real_path"] = $this->getAttribute($this->getAttribute(($context["global"] ?? null), "admin", array()), "getPagePathFromToken", array(0 => ($context["path"] ?? null)), "method");
|
||||
// line 42
|
||||
echo " ";
|
||||
$context["remove"] = (($this->getAttribute(($context["global"] ?? null), "file_url_remove", array())) ? ($this->getAttribute(($context["global"] ?? null), "file_url_remove", array())) : (($this->getAttribute(($context["global"] ?? null), "base_url_relative", array()) . "/media.json")));
|
||||
// line 43
|
||||
echo " ";
|
||||
$context["remove"] = $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => ((((((((((((((((((((( // line 44
|
||||
($context["remove"] ?? null) . "/route") . $this->getAttribute($this->getAttribute( // line 45
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . base64_encode((($this->getAttribute(($context["global"] ?? null), "base_path", array()) . "/") . ($context["real_path"] ?? null)))) . "/task") . $this->getAttribute($this->getAttribute( // line 46
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . "removeFileFromBlueprint") . "/proute") . $this->getAttribute($this->getAttribute( // line 47
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . base64_encode(($context["route"] ?? null))) . "/blueprint") . $this->getAttribute($this->getAttribute( // line 48
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . ($context["blueprint"] ?? null)) . "/type") . $this->getAttribute($this->getAttribute( // line 49
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . ($context["type"] ?? null)) . "/field") . $this->getAttribute($this->getAttribute( // line 50
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . $this->getAttribute(($context["files"] ?? null), "name", array())) . "/path") . $this->getAttribute($this->getAttribute( // line 51
|
||||
($context["config"] ?? null), "system", array()), "param_sep", array())) . base64_encode($this->getAttribute(($context["value"] ?? null), "path", array()))), 1 => "admin-form", 2 => "admin-nonce"), "method");
|
||||
// line 52
|
||||
echo "
|
||||
";
|
||||
// line 53
|
||||
$context["file"] = twig_array_merge(($context["value"] ?? null), array("remove" => ($context["remove"] ?? null), "path" => ((($this->getAttribute(($context["uri"] ?? null), "rootUrl", array()) == "/")) ? ("/") : ((($this->getAttribute(($context["uri"] ?? null), "rootUrl", array()) . "/") . ($context["real_path"] ?? null))))));
|
||||
// line 54
|
||||
echo " <div class=\"hidden\" data-file=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["file"] ?? null)), "html_attr");
|
||||
echo "\"></div>
|
||||
";
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/file/file.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 299 => 54, 297 => 53, 294 => 52, 292 => 51, 291 => 50, 290 => 49, 289 => 48, 288 => 47, 287 => 46, 286 => 45, 285 => 44, 283 => 43, 280 => 42, 277 => 41, 274 => 40, 271 => 39, 268 => 38, 265 => 37, 263 => 36, 260 => 35, 258 => 34, 255 => 33, 252 => 32, 249 => 31, 246 => 30, 243 => 29, 240 => 28, 226 => 27, 210 => 24, 204 => 22, 198 => 20, 196 => 19, 191 => 18, 189 => 17, 184 => 16, 182 => 15, 177 => 14, 175 => 13, 172 => 12, 169 => 11, 166 => 10, 163 => 9, 160 => 8, 158 => 7, 146 => 6, 139 => 73, 134 => 72, 129 => 71, 122 => 70, 118 => 69, 115 => 68, 112 => 67, 104 => 84, 99 => 81, 96 => 80, 87 => 78, 83 => 77, 79 => 75, 76 => 67, 53 => 64, 50 => 63, 48 => 62, 45 => 61, 42 => 60, 39 => 59, 36 => 58, 32 => 1, 30 => 4, 28 => 3, 26 => 2, 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 defaults = config.plugins.form %}
|
||||
{% set files = defaults.files|merge(field|default([])) %}
|
||||
{% set limit = not field.multiple ? 1 : files.limit %}
|
||||
|
||||
{% macro bytesToSize(bytes) -%}
|
||||
{% spaceless %}
|
||||
{% set kilobyte = 1024 %}
|
||||
{% set megabyte = kilobyte * 1024 %}
|
||||
{% set gigabyte = megabyte * 1024 %}
|
||||
{% set terabyte = gigabyte * 1024 %}
|
||||
|
||||
{% if bytes < kilobyte %}
|
||||
{{ bytes ~ ' B' }}
|
||||
{% elseif bytes < megabyte %}
|
||||
{{ (bytes / kilobyte)|number_format(2, '.') ~ ' KB' }}
|
||||
{% elseif bytes < gigabyte %}
|
||||
{{ (bytes / megabyte)|number_format(2, '.') ~ ' MB' }}
|
||||
{% elseif bytes < terabyte %}
|
||||
{{ (bytes / gigabyte)|number_format(2, '.') ~ ' GB' }}
|
||||
{% else %}
|
||||
{{ (bytes / terabyte)|number_format(2, '.') ~ ' TB' }}
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro preview(path, value, global) %}
|
||||
{% if value %}
|
||||
{% set uri = global.grav.uri %}
|
||||
{% set files = global.files %}
|
||||
{% set config = global.grav.config %}
|
||||
{% set route = global.context.route() %}
|
||||
|
||||
{% set type = global.blueprint_type ? global.blueprint_type : global.admin.location ? global.admin.location : 'config' %}
|
||||
|
||||
{% set blueprint_name = global.blueprints.getFilename %}
|
||||
{% if type == 'pages' %}
|
||||
{% set blueprint_name = type ~ '/' ~ blueprint_name %}
|
||||
{% endif %}
|
||||
{% set blueprint = base64_encode(blueprint_name) %}
|
||||
{% set real_path = global.admin.getPagePathFromToken(path) %}
|
||||
{% set remove = global.file_url_remove ? global.file_url_remove : (global.base_url_relative ~ '/media.json') %}
|
||||
{% set remove = uri.addNonce(
|
||||
remove ~
|
||||
'/route' ~ config.system.param_sep ~ base64_encode(global.base_path ~ '/' ~ real_path) ~
|
||||
'/task' ~ config.system.param_sep ~ 'removeFileFromBlueprint' ~
|
||||
'/proute' ~ config.system.param_sep ~ base64_encode(route) ~
|
||||
'/blueprint' ~ config.system.param_sep ~ blueprint ~
|
||||
'/type' ~ config.system.param_sep ~ type ~
|
||||
'/field' ~ config.system.param_sep ~ files.name ~
|
||||
'/path' ~ config.system.param_sep ~ base64_encode(value.path), 'admin-form', 'admin-nonce') %}
|
||||
|
||||
{% set file = value|merge({remove: remove, path: (uri.rootUrl == '/' ? '/' : uri.rootUrl ~ '/' ~ real_path) }) %}
|
||||
<div class=\"hidden\" data-file=\"{{ file|json_encode|e('html_attr') }}\"></div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% block input %}
|
||||
{% set page_can_upload = exists or (type == 'page' and not exists and not (field.destination starts with '@self' or field.destination starts with 'self@')) %}
|
||||
{% if type is not defined or page_can_upload %}
|
||||
|
||||
{% set settings = {name: field.name, paramName: (scope ~ field.name)|fieldName ~ (files.multiple ? '[]' : ''), limit: limit, filesize: (config.system.media.upload_limit / 1024 / 1024), accept: files.accept} %}
|
||||
|
||||
<div class=\"form-input-wrapper dropzone files-upload {% if field.fancy is not same as(false) %}form-input-file{% endif %} {{ field.size|default('xlarge') }}\" data-grav-file-settings=\"{{ settings|json_encode|e('html_attr') }}\" {% if file_url_add %}data-file-url-add=\"{{ file_url_add }}\"{% endif %} {% if file_url_remove %}data-file-url-remove=\"{{ file_url_remove }}\"{% endif %}>
|
||||
<input
|
||||
{# required attribute structures #}
|
||||
{% block input_attributes %}
|
||||
type=\"file\"
|
||||
{% if files.multiple %}multiple=\"multiple\"{% endif %}
|
||||
{% if files.accept %}accept=\"{{ files.accept|join(',') }}\"{% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.random_name %}random=\"true\"{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
/>
|
||||
|
||||
{% for path, file in value %}
|
||||
{{ _self.preview(path, file, _context) }}
|
||||
{% endfor %}
|
||||
{% include 'forms/fields/hidden/hidden.html.twig' with {field: {name: '_json.' ~ field.name}, value:value|raw|json_encode} %}
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
<span class=\"note\">{{ \"PLUGIN_ADMIN.CANNOT_ADD_FILES_PAGE_NOT_SAVED\"|tu|raw }}</span>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
", "forms/fields/file/file.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/file/file.html.twig");
|
||||
}
|
||||
}
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/columns/columns.html.twig */
|
||||
class __TwigTemplate_ad35faf4f8876afe92e5f4b0809cf4cf86100105cb4a0d566f86551ae8871e6f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"form-columns grid pure-g\">
|
||||
";
|
||||
// line 2
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 3
|
||||
echo " ";
|
||||
$context["cols"] = twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "fields", array()));
|
||||
// line 4
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/column/column.html.twig"), "forms/fields/columns/columns.html.twig", 5)->display(array_merge($context, array("cols" => ($context["cols"] ?? null))));
|
||||
// line 6
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
// line 8
|
||||
echo "</div>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/columns/columns.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 63 => 8, 48 => 6, 45 => 5, 27 => 4, 24 => 3, 22 => 2, 19 => 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("<div class=\"form-columns grid pure-g\">
|
||||
{% if field.fields %}
|
||||
{% set cols = field.fields|length %}
|
||||
{% for field in field.fields %}
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/column/column.html.twig'] with {'cols':cols} %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
", "forms/fields/columns/columns.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/columns/columns.html.twig");
|
||||
}
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
/* partials/list-sort.html.twig */
|
||||
class __TwigTemplate_a5a774289a5daec27a8f6298f3ff1b94d58f4f0a0174125f2595121dde871abc extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"sort-actions\" data-grav-selectize=\"true\">
|
||||
<select>
|
||||
<option value=\"name\" selected>";
|
||||
// line 3
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NAME"), "html", null, true);
|
||||
echo "</option>
|
||||
<option value=\"author\">";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AUTHOR"), "html", null, true);
|
||||
echo "</option>
|
||||
<option value=\"official\">GravTeam</option>
|
||||
<option value=\"release-date\">";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.RELEASE_DATE"), "html", null, true);
|
||||
echo "</option>
|
||||
";
|
||||
// line 7
|
||||
if (((($context["list_view"] ?? null) == "plugins") && !($context["installing"] ?? null))) {
|
||||
echo "<option value=\"enabled\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ENABLED"), "html", null, true);
|
||||
echo "</option>";
|
||||
}
|
||||
// line 8
|
||||
echo " ";
|
||||
if ( !($context["installing"] ?? null)) {
|
||||
echo "<option value=\"updatable\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UPDATES_AVAILABLE"), "html", null, true);
|
||||
echo "</option>";
|
||||
}
|
||||
// line 9
|
||||
echo " ";
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "gpm", array()), "releases", array()) == "testing")) {
|
||||
echo "<option value=\"testing\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.TESTING"), "html", null, true);
|
||||
echo "</option>";
|
||||
}
|
||||
// line 10
|
||||
echo " </select>
|
||||
<div class=\"sort-icon\"><i class=\"fa fa-fw fa-sort-amount-asc\"></i></div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/list-sort.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 56 => 10, 49 => 9, 42 => 8, 36 => 7, 32 => 6, 27 => 4, 23 => 3, 19 => 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("<div class=\"sort-actions\" data-grav-selectize=\"true\">
|
||||
<select>
|
||||
<option value=\"name\" selected>{{ \"PLUGIN_ADMIN.NAME\"|tu }}</option>
|
||||
<option value=\"author\">{{ \"PLUGIN_ADMIN.AUTHOR\"|tu }}</option>
|
||||
<option value=\"official\">GravTeam</option>
|
||||
<option value=\"release-date\">{{ \"PLUGIN_ADMIN.RELEASE_DATE\"|tu }}</option>
|
||||
{% if list_view == 'plugins' and not installing %}<option value=\"enabled\">{{ \"PLUGIN_ADMIN.ENABLED\"|tu }}</option>{% endif %}
|
||||
{% if not installing %}<option value=\"updatable\">{{ \"PLUGIN_ADMIN.UPDATES_AVAILABLE\"|tu }}</option>{% endif %}
|
||||
{% if config.system.gpm.releases == 'testing' %}<option value=\"testing\">{{ \"PLUGIN_ADMIN.TESTING\"|tu }}</option>{% endif %}
|
||||
</select>
|
||||
<div class=\"sort-icon\"><i class=\"fa fa-fw fa-sort-amount-asc\"></i></div>
|
||||
</div>
|
||||
", "partials/list-sort.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/list-sort.html.twig");
|
||||
}
|
||||
}
|
||||
+309
@@ -0,0 +1,309 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/toggle/toggle.html.twig */
|
||||
class __TwigTemplate_c1a99be3cdc53fcee4c61dc15d20e8c48c22c5e53af3058544ed9bc330d82f60 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/toggle/toggle.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
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["value"] = (((($context["value"] ?? null) === false)) ? (0) : (($context["value"] ?? null)));
|
||||
// line 6
|
||||
$context["has_hidden"] = false;
|
||||
// line 7
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 8
|
||||
if (twig_test_empty($context["key"])) {
|
||||
// line 9
|
||||
$context["has_hidden"] = true;
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 13
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 14
|
||||
echo " ";
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
data-grav-field-name=\"";
|
||||
// line 15
|
||||
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 "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 23
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 24
|
||||
echo "
|
||||
<div class=\"switch-toggle switch-grav ";
|
||||
// line 25
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo " switch-";
|
||||
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "options", array())), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 26
|
||||
$context["maxLen"] = 0;
|
||||
// line 27
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["text"]) {
|
||||
// line 28
|
||||
echo " ";
|
||||
$context["translation"] = (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($context["text"])) : ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"])));
|
||||
// line 29
|
||||
echo " ";
|
||||
$context["maxLen"] = max(twig_length_filter($this->env, ($context["translation"] ?? null)), ($context["maxLen"] ?? null));
|
||||
// line 30
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 31
|
||||
echo "
|
||||
";
|
||||
// line 32
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["text"]) {
|
||||
// line 33
|
||||
echo " ";
|
||||
$context["id"] = (("toggle_" . $this->getAttribute(($context["field"] ?? null), "name", array())) . $context["key"]);
|
||||
// line 34
|
||||
echo " ";
|
||||
$context["translation"] = twig_trim_filter((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($context["text"])) : ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["text"]))));
|
||||
// line 35
|
||||
echo "
|
||||
<input type=\"radio\"
|
||||
value=\"";
|
||||
// line 37
|
||||
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
|
||||
echo "\"
|
||||
id=\"";
|
||||
// line 38
|
||||
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
name=\"";
|
||||
// line 39
|
||||
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 "\"
|
||||
";
|
||||
// line 40
|
||||
if ($this->getAttribute(($context["field"] ?? null), "highlight", array(), "any", true, true)) {
|
||||
// line 41
|
||||
echo " class=\"";
|
||||
echo ((($this->getAttribute(($context["field"] ?? null), "highlight", array()) == ("" . $context["key"]))) ? ("highlight") : (""));
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
// line 43
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 44
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "toggleable", array())) {
|
||||
// line 45
|
||||
echo " ";
|
||||
if ((("" . $context["key"]) == ("" . ($context["value"] ?? null)))) {
|
||||
// line 46
|
||||
echo " checked=\"checked\"
|
||||
";
|
||||
} elseif (( // line 47
|
||||
array_key_exists("value", $context) && (($context["key"] == 1) || ($context["key"] == "1")))) {
|
||||
// line 48
|
||||
echo " checked=\"checked\"
|
||||
";
|
||||
}
|
||||
// line 50
|
||||
echo " ";
|
||||
} else {
|
||||
// line 51
|
||||
echo " ";
|
||||
if ((("" . $context["key"]) == ("" . ($context["value"] ?? null)))) {
|
||||
// line 52
|
||||
echo " checked=\"checked\"
|
||||
";
|
||||
}
|
||||
// line 54
|
||||
echo " ";
|
||||
}
|
||||
// line 55
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 56
|
||||
echo " />
|
||||
<label for=\"";
|
||||
// line 57
|
||||
echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_trim_filter($this->getAttribute($this, "spanToggle", array(0 => ($context["translation"] ?? null), 1 => ($context["maxLen"] ?? null)), "method"));
|
||||
echo "</label>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 59
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 18
|
||||
public function getspanToggle($__input__ = null, $__length__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"input" => $__input__,
|
||||
"length" => $__length__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 19
|
||||
echo " ";
|
||||
$context["space"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->repeatFunc(" ", ((($context["length"] ?? null) - twig_length_filter($this->env, ($context["input"] ?? null))) / 2));
|
||||
// line 20
|
||||
echo " ";
|
||||
echo ((($context["space"] ?? null) . ($context["input"] ?? null)) . ($context["space"] ?? null));
|
||||
echo "
|
||||
";
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/toggle/toggle.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 205 => 20, 202 => 19, 189 => 18, 184 => 59, 174 => 57, 171 => 56, 166 => 55, 163 => 54, 159 => 52, 156 => 51, 153 => 50, 149 => 48, 147 => 47, 144 => 46, 141 => 45, 138 => 44, 133 => 43, 127 => 41, 125 => 40, 121 => 39, 117 => 38, 113 => 37, 109 => 35, 106 => 34, 103 => 33, 99 => 32, 96 => 31, 90 => 30, 87 => 29, 84 => 28, 79 => 27, 77 => 26, 69 => 25, 66 => 24, 63 => 23, 57 => 15, 52 => 14, 49 => 13, 45 => 1, 38 => 9, 36 => 8, 32 => 7, 30 => 6, 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 value = (value is same as(false) ? 0 : value) %}
|
||||
|
||||
{% set has_hidden = false %}
|
||||
{% for key, text in field.options %}
|
||||
{% if key is empty %}
|
||||
{% set has_hidden = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% block global_attributes %}
|
||||
{{ parent() }}
|
||||
data-grav-field-name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% endblock %}
|
||||
|
||||
{% macro spanToggle(input, length) %}
|
||||
{% set space = repeat(' ', (length - input|length) / 2) %}
|
||||
{{ (space ~ input ~ space)|raw }}
|
||||
{% endmacro %}
|
||||
|
||||
{% block input %}
|
||||
|
||||
<div class=\"switch-toggle switch-grav {{ field.size }} switch-{{ field.options|length }} {{ field.classes }}\">
|
||||
{% set maxLen = 0 %}
|
||||
{% for text in field.options %}
|
||||
{% set translation = grav.twig.twig.filters['tu'] is defined ? text|tu : text|t %}
|
||||
{% set maxLen = max(translation|length, maxLen) %}
|
||||
{% endfor %}
|
||||
|
||||
{% for key, text in field.options %}
|
||||
{% set id = \"toggle_\" ~ field.name ~ key %}
|
||||
{% set translation = (grav.twig.twig.filters['tu'] is defined ? text|tu : text|t)|trim %}
|
||||
|
||||
<input type=\"radio\"
|
||||
value=\"{{ key }}\"
|
||||
id=\"{{ id }}\"
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% if field.highlight is defined %}
|
||||
class=\"{{ field.highlight == '' ~ key ? 'highlight' : '' }}\"
|
||||
{% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.toggleable %}
|
||||
{% if '' ~ key == '' ~ value %}
|
||||
checked=\"checked\"
|
||||
{% elseif value is defined and (key == 1 or key == '1') %}
|
||||
checked=\"checked\"
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if '' ~ key == '' ~ value %}
|
||||
checked=\"checked\"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
/>
|
||||
<label for=\"{{ id }}\">{{ (_self.spanToggle(translation, maxLen)|trim)|raw }}</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/toggle/toggle.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/toggle/toggle.html.twig");
|
||||
}
|
||||
}
|
||||
+811
@@ -0,0 +1,811 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/list/list.html.twig */
|
||||
class __TwigTemplate_db22ce9b5ba3ab2df589fdb817d81d54b4af172265a6f1b8047236423c321f2d extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/list/list.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'contents' => array($this, 'block_contents'),
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'__internal_fa367a566ec58bda83f7abdb372be4a69271c84232c5182b50529b9a3a7d944c' => array($this, 'block___internal_fa367a566ec58bda83f7abdb372be4a69271c84232c5182b50529b9a3a7d944c'),
|
||||
);
|
||||
}
|
||||
|
||||
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["name"] = $this->getAttribute(($context["field"] ?? null), "name", array());
|
||||
// line 5
|
||||
$context["btnLabel"] = (($this->getAttribute(($context["field"] ?? null), "btnLabel", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "btnLabel", array())) : ("PLUGIN_ADMIN.ADD_ITEM"));
|
||||
// line 6
|
||||
$context["btnSortLabel"] = (($this->getAttribute(($context["field"] ?? null), "btnSortLabel", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "btnSortLabel", array())) : ("PLUGIN_ADMIN.SORT_BY"));
|
||||
// line 7
|
||||
$context["fieldControls"] = (($this->getAttribute(($context["field"] ?? null), "controls", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "controls", array()), "bottom")) : ("bottom"));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_contents($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " <div class=\"form-label";
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-1-3 pure-u-1-3";
|
||||
}
|
||||
echo "\">
|
||||
";
|
||||
// line 11
|
||||
if ($this->getAttribute(($context["field"] ?? null), "toggleable", array())) {
|
||||
// line 12
|
||||
echo " <span class=\"checkboxes toggleable\" data-grav-field=\"toggleable\" data-grav-field-name=\"";
|
||||
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 "\">
|
||||
<input type=\"checkbox\"
|
||||
id=\"toggleable_";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 15
|
||||
if (($context["toggleableChecked"] ?? null)) {
|
||||
echo "value=\"1\"";
|
||||
}
|
||||
// line 16
|
||||
echo " name=\"toggleable_";
|
||||
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 "\"
|
||||
";
|
||||
// line 17
|
||||
if (($context["toggleableChecked"] ?? null)) {
|
||||
echo "checked=\"checked\"";
|
||||
}
|
||||
// line 18
|
||||
echo " >
|
||||
<label for=\"toggleable_";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\"></label>
|
||||
</span>
|
||||
";
|
||||
}
|
||||
// line 22
|
||||
echo " <label";
|
||||
echo (($this->getAttribute(($context["field"] ?? null), "toggleable", array())) ? (((" class=\"toggleable\" for=\"toggleable_" . $this->getAttribute(($context["field"] ?? null), "name", array())) . "\"")) : (""));
|
||||
echo ">
|
||||
";
|
||||
// line 23
|
||||
if ($this->getAttribute(($context["field"] ?? null), "help", array())) {
|
||||
// line 24
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "help", array()))), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
|
||||
echo "</span>
|
||||
";
|
||||
} else {
|
||||
// line 26
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 28
|
||||
echo " ";
|
||||
echo ((twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) ? ("<span class=\"required\">*</span>") : (""));
|
||||
echo "
|
||||
</label>
|
||||
</div>
|
||||
<div class=\"form-data";
|
||||
// line 31
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-2-3 pure-u-2-3";
|
||||
}
|
||||
echo "\"
|
||||
";
|
||||
// line 32
|
||||
$this->displayBlock('global_attributes', $context, $blocks);
|
||||
// line 37
|
||||
echo " >
|
||||
|
||||
<div class=\"form-list-wrapper ";
|
||||
// line 39
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\" data-type=\"collection\"
|
||||
";
|
||||
// line 40
|
||||
if ($this->getAttribute(($context["field"] ?? null), "selectunique", array())) {
|
||||
// line 41
|
||||
echo " data-select-unique=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "selectunique", array())), "html_attr");
|
||||
echo "\"
|
||||
data-max=\"";
|
||||
// line 42
|
||||
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "selectunique", array())), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
// line 44
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "min", array(), "any", true, true)) {
|
||||
echo "data-min=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "min", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 45
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "max", array(), "any", true, true) && !$this->getAttribute(($context["field"] ?? null), "selectunique", array()))) {
|
||||
echo "data-max=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "max", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 46
|
||||
echo " >
|
||||
";
|
||||
// line 47
|
||||
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "top", 1 => "both"))) {
|
||||
// line 48
|
||||
echo " <div class=\"collection-actions";
|
||||
echo (( !twig_length_filter($this->env, ($context["value"] ?? null))) ? (" hidden") : (""));
|
||||
echo "\">
|
||||
<button class=\"button\" type=\"button\" data-action=\"expand_all\"
|
||||
";
|
||||
// line 50
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-chevron-circle-down\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.EXPAND_ALL")), "html", null, true);
|
||||
echo "</button>
|
||||
<button class=\"button\" type=\"button\" data-action=\"collapse_all\"
|
||||
";
|
||||
// line 52
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-chevron-circle-right\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.COLLAPSE_ALL")), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
// line 53
|
||||
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
|
||||
// line 54
|
||||
echo " <button class=\"button";
|
||||
echo (( !twig_length_filter($this->env, ($context["value"] ?? null))) ? (" hidden") : (""));
|
||||
echo "\" type=\"button\" data-action=\"sort\" data-action-sort=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
|
||||
echo "\" data-action-sort-dir=\"";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 55
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-sort-amount-";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
|
||||
echo "\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnSortLabel"] ?? null))), "html", null, true);
|
||||
echo " '";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
|
||||
echo "'</button>
|
||||
";
|
||||
}
|
||||
// line 57
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"add\" data-action-add=\"top\"
|
||||
";
|
||||
// line 58
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnLabel"] ?? null))), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 61
|
||||
echo " <ul ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
|
||||
echo "class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
echo " data-collection-holder=\"";
|
||||
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 62
|
||||
if (($this->getAttribute(($context["field"] ?? null), "sort", array()) === false)) {
|
||||
// line 63
|
||||
echo " data-collection-nosort
|
||||
";
|
||||
}
|
||||
// line 64
|
||||
echo ">
|
||||
";
|
||||
// line 65
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 66
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
|
||||
$context['loop'] = array(
|
||||
'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["val"]) {
|
||||
// line 67
|
||||
echo " ";
|
||||
$context["itemName"] = ((($context["name"] ?? null)) ? (((($context["name"] ?? null) . ".") . $context["key"])) : ($context["key"]));
|
||||
// line 68
|
||||
echo " <li data-collection-item=\"";
|
||||
echo twig_escape_filter($this->env, ($context["itemName"] ?? null), "html", null, true);
|
||||
echo "\" data-collection-key=\"";
|
||||
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
|
||||
echo "\" class=\"";
|
||||
echo (((( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array())) && $this->getAttribute(($context["field"] ?? null), "collapsed", array()))) ? ("collection-collapsed") : (""));
|
||||
echo "\">
|
||||
<div class=\"collection-sort\"><i class=\"fa fa-fw fa-bars\"></i></div>
|
||||
";
|
||||
// line 70
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["childName"] => $context["child"]) {
|
||||
// line 71
|
||||
echo " ";
|
||||
if ((is_string($__internal_004f109a1dedba3b99942a2e2f50dedbd8d4e54e41a52c0baf829c07b95da843 = $context["childName"]) && is_string($__internal_588207aa49ca2b7de9a005ace90cc6a700160f109d3bc705e814ac969e54bd49 = ".") && ('' === $__internal_588207aa49ca2b7de9a005ace90cc6a700160f109d3bc705e814ac969e54bd49 || 0 === strpos($__internal_004f109a1dedba3b99942a2e2f50dedbd8d4e54e41a52c0baf829c07b95da843, $__internal_588207aa49ca2b7de9a005ace90cc6a700160f109d3bc705e814ac969e54bd49)))) {
|
||||
// line 72
|
||||
echo " ";
|
||||
$context["childKey"] = twig_trim_filter($context["childName"], ".");
|
||||
// line 73
|
||||
echo " ";
|
||||
$context["childValue"] = $this->getAttribute($context["val"], twig_slice($this->env, $context["childName"], 1, null), array(), "array");
|
||||
// line 74
|
||||
echo " ";
|
||||
$context["childName"] = (($context["itemName"] ?? null) . $context["childName"]);
|
||||
// line 75
|
||||
echo " ";
|
||||
} else {
|
||||
// line 76
|
||||
echo " ";
|
||||
$context["childKey"] = $context["childName"];
|
||||
// line 77
|
||||
echo " ";
|
||||
$context["childValue"] = $this->getAttribute(($context["data"] ?? null), "value", array(0 => (($context["scope"] ?? null) . $context["childName"])), "method");
|
||||
// line 78
|
||||
echo " ";
|
||||
$context["childName"] = twig_replace_filter($context["childName"], array("*" => $context["key"]));
|
||||
// line 79
|
||||
echo " ";
|
||||
}
|
||||
// line 80
|
||||
echo " ";
|
||||
$context["child"] = twig_array_merge($context["child"], array("name" => $context["childName"]));
|
||||
// line 81
|
||||
echo "
|
||||
";
|
||||
// line 82
|
||||
if (($this->getAttribute($context["child"], "type", array()) == "key")) {
|
||||
// line 83
|
||||
echo " ";
|
||||
// line 84
|
||||
$this->loadTemplate("forms/fields/key/key.html.twig", "forms/fields/list/list.html.twig", 84)->display(array_merge($context, array("field" => // line 85
|
||||
$context["child"], "value" => $context["key"])));
|
||||
// line 87
|
||||
echo " ";
|
||||
} elseif (($this->getAttribute($context["child"], "key", array()) == true)) {
|
||||
// line 88
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 89
|
||||
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/key/key.html.twig"), "forms/fields/list/list.html.twig", 88)->display(array_merge($context, array("field" => // line 91
|
||||
$context["child"], "value" => $context["key"])));
|
||||
// line 93
|
||||
echo " ";
|
||||
} elseif ($this->getAttribute($context["child"], "type", array())) {
|
||||
// line 94
|
||||
echo " ";
|
||||
$context["originalValue"] = ($context["childValue"] ?? null);
|
||||
// line 95
|
||||
echo " ";
|
||||
// line 96
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 97
|
||||
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/list/list.html.twig", 96)->display(array_merge($context, array("field" => // line 99
|
||||
$context["child"], "value" => ($context["childValue"] ?? null))));
|
||||
// line 101
|
||||
echo " ";
|
||||
}
|
||||
// line 102
|
||||
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['childName'], $context['child'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 103
|
||||
echo " <div class=\"item-actions\">
|
||||
";
|
||||
// line 104
|
||||
if (( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array()))) {
|
||||
// line 105
|
||||
echo " <i class=\"fa fa-chevron-circle-";
|
||||
echo (($this->getAttribute(($context["field"] ?? null), "collapsed", array())) ? ("right") : ("down"));
|
||||
echo "\" data-action=\"";
|
||||
echo (($this->getAttribute(($context["field"] ?? null), "collapsed", array())) ? ("expand") : ("collapse"));
|
||||
echo "\"></i>
|
||||
<br />
|
||||
";
|
||||
}
|
||||
// line 108
|
||||
echo " <i class=\"fa fa-trash-o\" data-action=\"delete\"></i>
|
||||
</div>
|
||||
</li>
|
||||
";
|
||||
++$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['val'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 112
|
||||
echo " ";
|
||||
}
|
||||
// line 113
|
||||
echo " </ul>
|
||||
";
|
||||
// line 114
|
||||
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "bottom", 1 => "both"))) {
|
||||
// line 115
|
||||
echo " <div class=\"collection-actions\">
|
||||
";
|
||||
// line 116
|
||||
if (( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array()))) {
|
||||
// line 117
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"expand_all\"
|
||||
";
|
||||
// line 118
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-chevron-circle-down\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.EXPAND_ALL")), "html", null, true);
|
||||
echo "</button>
|
||||
<button class=\"button\" type=\"button\" data-action=\"collapse_all\"
|
||||
";
|
||||
// line 120
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-chevron-circle-right\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.COLLAPSE_ALL")), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 122
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
|
||||
// line 123
|
||||
echo " <button class=\"button";
|
||||
echo (( !twig_length_filter($this->env, ($context["value"] ?? null))) ? (" hidden") : (""));
|
||||
echo "\" type=\"button\" data-action=\"sort\" data-action-sort=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
|
||||
echo "\" data-action-sort-dir=\"";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 124
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-sort-amount-";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
|
||||
echo "\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnSortLabel"] ?? null))), "html", null, true);
|
||||
echo " '";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
|
||||
echo "'</button>
|
||||
";
|
||||
}
|
||||
// line 126
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"add\" data-action-add=\"bottom\"
|
||||
";
|
||||
// line 127
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
echo "><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnLabel"] ?? null))), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 131
|
||||
$context["itemName"] = ((($context["name"] ?? null)) ? ((($context["name"] ?? null) . ".*")) : ("*"));
|
||||
// line 132
|
||||
echo "<div style=\"display: none;\" data-collection-template=\"new\" data-collection-template-html=\"";
|
||||
echo twig_escape_filter($this->env, twig_replace_filter( $this->renderBlock("__internal_fa367a566ec58bda83f7abdb372be4a69271c84232c5182b50529b9a3a7d944c", $context, $blocks), array(" " => " ", "
|
||||
" => " ")), "html_attr");
|
||||
// line 178
|
||||
echo "\"></div>
|
||||
|
||||
<div style=\"display: none;\" data-collection-config=\"";
|
||||
// line 180
|
||||
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
||||
echo "\"></div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 32
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 33
|
||||
echo " data-grav-field=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "type", array()), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-disabled=\"";
|
||||
// line 34
|
||||
echo twig_escape_filter($this->env, ($context["toggleableChecked"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-default=\"";
|
||||
// line 35
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 132
|
||||
public function block___internal_fa367a566ec58bda83f7abdb372be4a69271c84232c5182b50529b9a3a7d944c($context, array $blocks = array())
|
||||
{
|
||||
// line 133
|
||||
echo "<li data-collection-item=\"";
|
||||
echo twig_escape_filter($this->env, ($context["itemName"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 134
|
||||
if ( !($this->getAttribute(($context["field"] ?? null), "sort", array()) === false)) {
|
||||
// line 135
|
||||
echo " <div class=\"collection-sort\"><i class=\"fa fa-fw fa-bars\"></i></div>
|
||||
";
|
||||
}
|
||||
// line 137
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 138
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["childName"] => $context["child"]) {
|
||||
// line 139
|
||||
if ((is_string($__internal_852c17c1704693e7c6e9af566f2e623f6796c522f1770732de468704aafec224 = $context["childName"]) && is_string($__internal_1fd3117e41976d0a6cfeb2f5794dd66c10aba38cd2269d0a81184a3af2dfa5f6 = ".") && ('' === $__internal_1fd3117e41976d0a6cfeb2f5794dd66c10aba38cd2269d0a81184a3af2dfa5f6 || 0 === strpos($__internal_852c17c1704693e7c6e9af566f2e623f6796c522f1770732de468704aafec224, $__internal_1fd3117e41976d0a6cfeb2f5794dd66c10aba38cd2269d0a81184a3af2dfa5f6)))) {
|
||||
// line 140
|
||||
$context["childKey"] = twig_trim_filter($context["childName"], ".");
|
||||
// line 141
|
||||
$context["childName"] = (($context["itemName"] ?? null) . $context["childName"]);
|
||||
} else {
|
||||
// line 143
|
||||
$context["childKey"] = $context["childName"];
|
||||
// line 144
|
||||
$context["childName"] = twig_replace_filter($context["childName"], array("*" => ($context["key"] ?? null)));
|
||||
}
|
||||
// line 146
|
||||
$context["child"] = twig_array_merge($context["child"], array("name" => $context["childName"]));
|
||||
// line 148
|
||||
if (($this->getAttribute($context["child"], "type", array()) == "key")) {
|
||||
// line 150
|
||||
$this->loadTemplate("forms/fields/key/key.html.twig", "forms/fields/list/list.html.twig", 150)->display(array_merge($context, array("field" => // line 151
|
||||
$context["child"], "value" => null)));
|
||||
} elseif (($this->getAttribute( // line 153
|
||||
$context["child"], "key", array()) == true)) {
|
||||
// line 155
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 156
|
||||
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/key/key.html.twig"), "forms/fields/list/list.html.twig", 155)->display(array_merge($context, array("field" => // line 158
|
||||
$context["child"], "value" => null)));
|
||||
} elseif ($this->getAttribute( // line 160
|
||||
$context["child"], "type", array())) {
|
||||
// line 162
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 163
|
||||
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/list/list.html.twig", 162)->display(array_merge($context, array("field" => // line 165
|
||||
$context["child"], "value" => null)));
|
||||
}
|
||||
++$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['childName'], $context['child'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 169
|
||||
echo " <div class=\"item-actions\">
|
||||
";
|
||||
// line 170
|
||||
if (( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array()))) {
|
||||
// line 171
|
||||
echo " <i class=\"fa fa-chevron-circle-down\" data-action=\"collapse\"></i>
|
||||
<br />
|
||||
";
|
||||
}
|
||||
// line 174
|
||||
echo " <i class=\"fa fa-trash-o\" data-action=\"delete\"></i>
|
||||
</div>";
|
||||
}
|
||||
// line 177
|
||||
echo "</li>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/list/list.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 597 => 177, 593 => 174, 588 => 171, 586 => 170, 583 => 169, 568 => 165, 567 => 163, 566 => 162, 564 => 160, 562 => 158, 561 => 156, 560 => 155, 558 => 153, 556 => 151, 555 => 150, 553 => 148, 551 => 146, 548 => 144, 546 => 143, 543 => 141, 541 => 140, 539 => 139, 522 => 138, 520 => 137, 516 => 135, 514 => 134, 509 => 133, 506 => 132, 500 => 35, 496 => 34, 491 => 33, 488 => 32, 480 => 180, 476 => 178, 472 => 132, 470 => 131, 460 => 127, 457 => 126, 444 => 124, 435 => 123, 432 => 122, 423 => 120, 414 => 118, 411 => 117, 409 => 116, 406 => 115, 404 => 114, 401 => 113, 398 => 112, 381 => 108, 372 => 105, 370 => 104, 367 => 103, 353 => 102, 350 => 101, 348 => 99, 347 => 97, 346 => 96, 344 => 95, 341 => 94, 338 => 93, 336 => 91, 335 => 89, 333 => 88, 330 => 87, 328 => 85, 327 => 84, 325 => 83, 323 => 82, 320 => 81, 317 => 80, 314 => 79, 311 => 78, 308 => 77, 305 => 76, 302 => 75, 299 => 74, 296 => 73, 293 => 72, 290 => 71, 273 => 70, 263 => 68, 260 => 67, 242 => 66, 240 => 65, 237 => 64, 233 => 63, 231 => 62, 220 => 61, 210 => 58, 207 => 57, 194 => 55, 185 => 54, 183 => 53, 175 => 52, 166 => 50, 160 => 48, 158 => 47, 155 => 46, 148 => 45, 141 => 44, 136 => 42, 131 => 41, 129 => 40, 125 => 39, 121 => 37, 119 => 32, 113 => 31, 106 => 28, 100 => 26, 92 => 24, 90 => 23, 85 => 22, 79 => 19, 76 => 18, 72 => 17, 67 => 16, 63 => 15, 59 => 14, 53 => 12, 51 => 11, 44 => 10, 41 => 9, 37 => 1, 35 => 7, 33 => 6, 31 => 5, 29 => 4, 27 => 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 name = field.name %}
|
||||
{% set btnLabel = field.btnLabel is defined ? field.btnLabel : \"PLUGIN_ADMIN.ADD_ITEM\" %}
|
||||
{% set btnSortLabel = field.btnSortLabel is defined ? field.btnSortLabel : \"PLUGIN_ADMIN.SORT_BY\" %}
|
||||
{% set fieldControls = field.controls|default('bottom') %}
|
||||
|
||||
{% block contents %}
|
||||
<div class=\"form-label{% if not vertical %} block size-1-3 pure-u-1-3{% endif %}\">
|
||||
{% if field.toggleable %}
|
||||
<span class=\"checkboxes toggleable\" data-grav-field=\"toggleable\" data-grav-field-name=\"{{ (scope ~ field.name)|fieldName }}\">
|
||||
<input type=\"checkbox\"
|
||||
id=\"toggleable_{{ field.name }}\"
|
||||
{% if toggleableChecked %}value=\"1\"{% endif %}
|
||||
name=\"toggleable_{{ (scope ~ field.name)|fieldName }}\"
|
||||
{% if toggleableChecked %}checked=\"checked\"{% endif %}
|
||||
>
|
||||
<label for=\"toggleable_{{ field.name }}\"></label>
|
||||
</span>
|
||||
{% endif %}
|
||||
<label{{ (field.toggleable ? ' class=\"toggleable\" for=\"toggleable_' ~ field.name ~ '\"')|raw }}>
|
||||
{% if field.help %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ field.help|e|tu }}\">{{ field.label|tu }}</span>
|
||||
{% else %}
|
||||
{{ field.label|tu }}
|
||||
{% endif %}
|
||||
{{ field.validate.required in ['on', 'true', 1] ? '<span class=\"required\">*</span>' }}
|
||||
</label>
|
||||
</div>
|
||||
<div class=\"form-data{% if not vertical %} block size-2-3 pure-u-2-3{% endif %}\"
|
||||
{% block global_attributes %}
|
||||
data-grav-field=\"{{ field.type }}\"
|
||||
data-grav-disabled=\"{{ toggleableChecked }}\"
|
||||
data-grav-default=\"{{ field.default|json_encode|e('html_attr') }}\"
|
||||
{% endblock %}
|
||||
>
|
||||
|
||||
<div class=\"form-list-wrapper {{ field.size }}\" data-type=\"collection\"
|
||||
{% if field.selectunique %}
|
||||
data-select-unique=\"{{ field.selectunique|json_encode|e('html_attr') }}\"
|
||||
data-max=\"{{ field.selectunique|length }}\"
|
||||
{% endif %}
|
||||
{% if field.min is defined %}data-min=\"{{ field.min }}\"{% endif %}
|
||||
{% if field.max is defined and not field.selectunique %}data-max=\"{{ field.max }}\"{% endif %}
|
||||
>
|
||||
{% if fieldControls in ['top', 'both'] %}
|
||||
<div class=\"collection-actions{{ not value|length ? ' hidden' : '' }}\">
|
||||
<button class=\"button\" type=\"button\" data-action=\"expand_all\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-chevron-circle-down\"></i> {{ \"PLUGIN_ADMIN.EXPAND_ALL\"|e|tu }}</button>
|
||||
<button class=\"button\" type=\"button\" data-action=\"collapse_all\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-chevron-circle-right\"></i> {{ \"PLUGIN_ADMIN.COLLAPSE_ALL\"|e|tu }}</button>
|
||||
{% if field.sortby %}
|
||||
<button class=\"button{{ not value|length ? ' hidden' : '' }}\" type=\"button\" data-action=\"sort\" data-action-sort=\"{{ field.sortby }}\" data-action-sort-dir=\"{{ field.sortby_dir|default('asc') }}\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-sort-amount-{{ field.sortby_dir|default('asc') }}\"></i> {{ btnSortLabel|e|tu }} '{{ field.sortby }}'</button>
|
||||
{% endif %}
|
||||
<button class=\"button\" type=\"button\" data-action=\"add\" data-action-add=\"top\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-plus\"></i> {{ btnLabel|e|tu }}</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
<ul {% if field.classes is defined %}class=\"{{ field.classes }}\"{% endif %} data-collection-holder=\"{{ name }}\"
|
||||
{% if field.sort is same as(false) %}
|
||||
data-collection-nosort
|
||||
{% endif %}>
|
||||
{% if field.fields %}
|
||||
{% for key, val in value %}
|
||||
{% set itemName = name ? name ~ '.' ~ key : key %}
|
||||
<li data-collection-item=\"{{ itemName }}\" data-collection-key=\"{{ key }}\" class=\"{{ (field.collapsible is not defined or field.collapsible) and field.collapsed ? 'collection-collapsed' : '' }}\">
|
||||
<div class=\"collection-sort\"><i class=\"fa fa-fw fa-bars\"></i></div>
|
||||
{% for childName, child in field.fields %}
|
||||
{% if childName starts with '.' %}
|
||||
{% set childKey = childName|trim('.') %}
|
||||
{% set childValue = val[childName[1:]] %}
|
||||
{% set childName = itemName ~ childName %}
|
||||
{% else %}
|
||||
{% set childKey = childName %}
|
||||
{% set childValue = data.value(scope ~ childName) %}
|
||||
{% set childName = childName|replace({'*': key}) %}
|
||||
{% endif %}
|
||||
{% set child = child|merge({ name: childName }) %}
|
||||
|
||||
{% if child.type == 'key' %}
|
||||
{%
|
||||
include 'forms/fields/key/key.html.twig'
|
||||
with { field: child, value: key }
|
||||
%}
|
||||
{% elseif child.key == true %}
|
||||
{% include [
|
||||
\"forms/fields/#{child.type}/#{child.type}.html.twig\",
|
||||
'forms/fields/key/key.html.twig'
|
||||
] with { field: child, value: key }
|
||||
%}
|
||||
{% elseif child.type %}
|
||||
{% set originalValue = childValue %}
|
||||
{%
|
||||
include [
|
||||
\"forms/fields/#{child.type}/#{child.type}.html.twig\",
|
||||
'forms/fields/text/text.html.twig'
|
||||
] with { field: child, value: childValue }
|
||||
%}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class=\"item-actions\">
|
||||
{% if field.collapsible is not defined or field.collapsible %}
|
||||
<i class=\"fa fa-chevron-circle-{{ field.collapsed ? 'right' : 'down' }}\" data-action=\"{{ field.collapsed ? 'expand' : 'collapse' }}\"></i>
|
||||
<br />
|
||||
{% endif %}
|
||||
<i class=\"fa fa-trash-o\" data-action=\"delete\"></i>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% if fieldControls in ['bottom', 'both'] %}
|
||||
<div class=\"collection-actions\">
|
||||
{% if field.collapsible is not defined or field.collapsible %}
|
||||
<button class=\"button\" type=\"button\" data-action=\"expand_all\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-chevron-circle-down\"></i> {{ \"PLUGIN_ADMIN.EXPAND_ALL\"|e|tu }}</button>
|
||||
<button class=\"button\" type=\"button\" data-action=\"collapse_all\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-chevron-circle-right\"></i> {{ \"PLUGIN_ADMIN.COLLAPSE_ALL\"|e|tu }}</button>
|
||||
{% endif %}
|
||||
{% if field.sortby %}
|
||||
<button class=\"button{{ not value|length ? ' hidden' : '' }}\" type=\"button\" data-action=\"sort\" data-action-sort=\"{{ field.sortby }}\" data-action-sort-dir=\"{{ field.sortby_dir|default('asc') }}\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-sort-amount-{{ field.sortby_dir|default('asc') }}\"></i> {{ btnSortLabel|e|tu }} '{{ field.sortby }}'</button>
|
||||
{% endif %}
|
||||
<button class=\"button\" type=\"button\" data-action=\"add\" data-action-add=\"bottom\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}><i class=\"fa fa-plus\"></i> {{ btnLabel|e|tu }}</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{%- set itemName = name ? name ~ '.*' : '*' -%}
|
||||
<div style=\"display: none;\" data-collection-template=\"new\" data-collection-template-html=\"{%- filter replace({' ': ' ', '\\n': ' '})|e('html_attr') -%}
|
||||
<li data-collection-item=\"{{ itemName }}\">
|
||||
{% if field.sort is not same as(false) %}
|
||||
<div class=\"collection-sort\"><i class=\"fa fa-fw fa-bars\"></i></div>
|
||||
{% endif %}
|
||||
{%- if field.fields -%}
|
||||
{%- for childName, child in field.fields -%}
|
||||
{%- if childName starts with '.' -%}
|
||||
{%- set childKey = childName|trim('.') -%}
|
||||
{%- set childName = itemName ~ childName -%}
|
||||
{%- else %}
|
||||
{%- set childKey = childName -%}
|
||||
{%- set childName = childName|replace({'*': key}) -%}
|
||||
{%- endif %}
|
||||
{%- set child = child|merge({ name: childName }) -%}
|
||||
|
||||
{%- if child.type == 'key' -%}
|
||||
{%-
|
||||
include 'forms/fields/key/key.html.twig'
|
||||
with { field: child, value: null }
|
||||
-%}
|
||||
{%- elseif child.key == true -%}
|
||||
{%-
|
||||
include [
|
||||
\"forms/fields/#{child.type}/#{child.type}.html.twig\",
|
||||
'forms/fields/key/key.html.twig'
|
||||
] with { field: child, value: null }
|
||||
-%}
|
||||
{%- elseif child.type -%}
|
||||
{%-
|
||||
include [
|
||||
\"forms/fields/#{child.type}/#{child.type}.html.twig\",
|
||||
'forms/fields/text/text.html.twig'
|
||||
] with { field: child, value: null }
|
||||
-%}
|
||||
{%- endif -%}
|
||||
{%- endfor %}
|
||||
<div class=\"item-actions\">
|
||||
{% if field.collapsible is not defined or field.collapsible %}
|
||||
<i class=\"fa fa-chevron-circle-down\" data-action=\"collapse\"></i>
|
||||
<br />
|
||||
{% endif %}
|
||||
<i class=\"fa fa-trash-o\" data-action=\"delete\"></i>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
</li>
|
||||
{%- endfilter -%}\"></div>
|
||||
|
||||
<div style=\"display: none;\" data-collection-config=\"{{ name }}\"></div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
", "forms/fields/list/list.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/list/list.html.twig");
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/blueprint/blueprint.html.twig */
|
||||
class __TwigTemplate_ffa96abaeca1223df3ad290847d9c6b31357ba50c2cd255819a85c9da0765923 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<input
|
||||
data-grav-field=\"hidden\"
|
||||
data-grav-disabled=\"false\"
|
||||
type=\"hidden\"
|
||||
class=\"input\"
|
||||
";
|
||||
// line 6
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 7
|
||||
echo " name=\"";
|
||||
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 8
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["blueprints"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\" />
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/blueprint/blueprint.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 35 => 8, 30 => 7, 26 => 6, 19 => 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("<input
|
||||
data-grav-field=\"hidden\"
|
||||
data-grav-disabled=\"false\"
|
||||
type=\"hidden\"
|
||||
class=\"input\"
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
value=\"{{ blueprints.name }}\" />
|
||||
", "forms/fields/blueprint/blueprint.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/blueprint/blueprint.html.twig");
|
||||
}
|
||||
}
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
/* partials/langswitcher.html.twig */
|
||||
class __TwigTemplate_105e06089d11bf0c86e4fc38effccc162146e8ad80c0e13b5d8b7d514dcfbc3f extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<ul class=\"langswitcher\">
|
||||
";
|
||||
// line 2
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["langswitcher"] ?? null), "languages", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
$context["show_language"] = true;
|
||||
// line 5
|
||||
echo " ";
|
||||
if (($context["language"] == $this->getAttribute(($context["langswitcher"] ?? null), "current", array()))) {
|
||||
// line 6
|
||||
echo " ";
|
||||
$context["lang_url"] = $this->getAttribute(($context["page"] ?? null), "url", array());
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["active_class"] = " active";
|
||||
// line 8
|
||||
echo " ";
|
||||
} else {
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["base_lang_url"] = (($context["base_url_simple"] ?? null) . $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguageURLPrefix", array(0 => $context["language"]), "method"));
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["lang_url"] = ((($context["base_lang_url"] ?? null) . $this->getAttribute(($context["langswitcher"] ?? null), "page_route", array())) . $this->getAttribute(($context["page"] ?? null), "urlExtension", array()));
|
||||
// line 11
|
||||
echo " ";
|
||||
$context["untranslated_pages_behavior"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "plugins", array()), "langswitcher", array()), "untranslated_pages_behavior", array());
|
||||
// line 12
|
||||
echo " ";
|
||||
if ((($context["untranslated_pages_behavior"] ?? null) != "none")) {
|
||||
// line 13
|
||||
echo " ";
|
||||
$context["translated_page"] = $this->getAttribute($this->getAttribute(($context["langswitcher"] ?? null), "translated_pages", array()), $context["language"], array(), "array");
|
||||
// line 14
|
||||
echo " ";
|
||||
if (( !($context["translated_page"] ?? null) || !$this->getAttribute(($context["translated_page"] ?? null), "published", array()))) {
|
||||
// line 15
|
||||
echo " ";
|
||||
if ((($context["untranslated_pages_behavior"] ?? null) == "redirect")) {
|
||||
// line 16
|
||||
echo " ";
|
||||
$context["lang_url"] = (($context["base_lang_url"] ?? null) . "/");
|
||||
// line 17
|
||||
echo " ";
|
||||
} elseif ((($context["untranslated_pages_behavior"] ?? null) == "hide")) {
|
||||
// line 18
|
||||
echo " ";
|
||||
$context["show_language"] = false;
|
||||
// line 19
|
||||
echo " ";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
$context["active_class"] = "";
|
||||
// line 23
|
||||
echo " ";
|
||||
}
|
||||
// line 24
|
||||
echo "
|
||||
";
|
||||
// line 25
|
||||
if (($context["show_language"] ?? null)) {
|
||||
// line 26
|
||||
echo " <li><a href=\"";
|
||||
echo (($context["lang_url"] ?? null) . $this->getAttribute(($context["uri"] ?? null), "params", array()));
|
||||
echo "\" class=\"external";
|
||||
echo ($context["active_class"] ?? null);
|
||||
echo "\">";
|
||||
echo twig_capitalize_string_filter($this->env, call_user_func_array($this->env->getFunction('native_name')->getCallable(), array($context["language"])));
|
||||
echo "</a></li>
|
||||
";
|
||||
}
|
||||
// line 28
|
||||
echo "
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 30
|
||||
echo "</ul>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/langswitcher.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 110 => 30, 103 => 28, 93 => 26, 91 => 25, 88 => 24, 85 => 23, 82 => 22, 79 => 21, 76 => 20, 73 => 19, 70 => 18, 67 => 17, 64 => 16, 61 => 15, 58 => 14, 55 => 13, 52 => 12, 49 => 11, 46 => 10, 43 => 9, 40 => 8, 37 => 7, 34 => 6, 31 => 5, 29 => 4, 26 => 3, 22 => 2, 19 => 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("<ul class=\"langswitcher\">
|
||||
{% for language in langswitcher.languages %}
|
||||
|
||||
{% set show_language = true %}
|
||||
{% if language == langswitcher.current %}
|
||||
{% set lang_url = page.url %}
|
||||
{% set active_class = ' active' %}
|
||||
{% else %}
|
||||
{% set base_lang_url = base_url_simple ~ grav.language.getLanguageURLPrefix(language) %}
|
||||
{% set lang_url = base_lang_url ~ langswitcher.page_route ~ page.urlExtension %}
|
||||
{% set untranslated_pages_behavior = grav.config.plugins.langswitcher.untranslated_pages_behavior %}
|
||||
{% if untranslated_pages_behavior != 'none' %}
|
||||
{% set translated_page = langswitcher.translated_pages[language] %}
|
||||
{% if (not translated_page) or (not translated_page.published) %}
|
||||
{% if untranslated_pages_behavior == 'redirect' %}
|
||||
{% set lang_url = base_lang_url ~ '/' %}
|
||||
{% elseif untranslated_pages_behavior == 'hide' %}
|
||||
{% set show_language = false %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% set active_class = '' %}
|
||||
{% endif %}
|
||||
|
||||
{% if show_language %}
|
||||
<li><a href=\"{{ lang_url ~ uri.params }}\" class=\"external{{ active_class }}\">{{ native_name(language)|capitalize }}</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
", "partials/langswitcher.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/langswitcher/templates/partials/langswitcher.html.twig");
|
||||
}
|
||||
}
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-user-details.html.twig */
|
||||
class __TwigTemplate_430d2258821a93f3d165d933b860660113f895c3ed045501b27f6014490d9372 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div id=\"offline-status\">
|
||||
<span><i class=\"fa fa-fw fa-plane\"></i> You are offline</span>
|
||||
</div>
|
||||
<div id=\"admin-user-details\">
|
||||
<a href=\"";
|
||||
// line 5
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "/user/";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "username", array()));
|
||||
echo "\">
|
||||
";
|
||||
// line 6
|
||||
$this->loadTemplate("partials/nav-user-avatar.html.twig", "partials/nav-user-details.html.twig", 6)->display($context);
|
||||
// line 7
|
||||
echo "
|
||||
<div class=\"admin-user-names\">
|
||||
<h4>";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "fullname", array()));
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "twofa_enabled", array())) {
|
||||
echo "<span class=\"badge\">2FA</span>";
|
||||
}
|
||||
echo "</h4>
|
||||
<h5>";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "title", array()));
|
||||
echo "</h5>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/nav-user-details.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 45 => 10, 37 => 9, 33 => 7, 31 => 6, 25 => 5, 19 => 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("<div id=\"offline-status\">
|
||||
<span><i class=\"fa fa-fw fa-plane\"></i> You are offline</span>
|
||||
</div>
|
||||
<div id=\"admin-user-details\">
|
||||
<a href=\"{{ base_url_relative }}/user/{{ admin.user.username|e }}\">
|
||||
{% include 'partials/nav-user-avatar.html.twig' %}
|
||||
|
||||
<div class=\"admin-user-names\">
|
||||
<h4>{{ admin.user.fullname|e }} {% if admin.user.twofa_enabled %}<span class=\"badge\">2FA</span>{% endif %}</h4>
|
||||
<h5>{{ admin.user.title|e }}</h5>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
", "partials/nav-user-details.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav-user-details.html.twig");
|
||||
}
|
||||
}
|
||||
+356
@@ -0,0 +1,356 @@
|
||||
<?php
|
||||
|
||||
/* partials/base.html.twig */
|
||||
class __TwigTemplate_e91027722cad10716b56a087dd291b69ab5964f7591be07fc46b0fc68177eecb 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'),
|
||||
'header' => array($this, 'block_header'),
|
||||
'header_navigation' => array($this, 'block_header_navigation'),
|
||||
'body' => array($this, 'block_body'),
|
||||
'content' => array($this, 'block_content'),
|
||||
'footer' => array($this, 'block_footer'),
|
||||
'bottom' => array($this, 'block_bottom'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["theme_config"] = $this->getAttribute($this->getAttribute(($context["config"] ?? null), "themes", array()), $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "theme", array()));
|
||||
// line 2
|
||||
echo "<!DOCTYPE html>
|
||||
<html lang=\"";
|
||||
// line 3
|
||||
echo (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguage", array())) ? ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguage", array())) : ("fr"));
|
||||
echo "\">
|
||||
<head>
|
||||
";
|
||||
// line 5
|
||||
$this->displayBlock('head', $context, $blocks);
|
||||
// line 34
|
||||
echo "</head>
|
||||
|
||||
<body id=\"top\">
|
||||
|
||||
";
|
||||
// line 38
|
||||
$this->displayBlock('header', $context, $blocks);
|
||||
// line 65
|
||||
echo "
|
||||
";
|
||||
// line 66
|
||||
$this->displayBlock('body', $context, $blocks);
|
||||
// line 75
|
||||
echo "
|
||||
";
|
||||
// line 76
|
||||
$this->displayBlock('footer', $context, $blocks);
|
||||
// line 80
|
||||
echo "
|
||||
";
|
||||
// line 81
|
||||
$this->displayBlock('bottom', $context, $blocks);
|
||||
// line 84
|
||||
echo "</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
// line 5
|
||||
public function block_head($context, array $blocks = array())
|
||||
{
|
||||
// line 6
|
||||
echo " <meta charset=\"utf-8\" />
|
||||
<title>";
|
||||
// line 7
|
||||
if ($this->getAttribute(($context["header"] ?? null), "title", array())) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "title", array()), "html");
|
||||
echo " | ";
|
||||
}
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["config"] ?? null), "site", array()), "title", array()), "html");
|
||||
echo "</title>
|
||||
";
|
||||
// line 8
|
||||
$this->loadTemplate("partials/metadata.html.twig", "partials/base.html.twig", 8)->display($context);
|
||||
// line 9
|
||||
echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"";
|
||||
// line 10
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc("theme://images/favicon.png");
|
||||
echo "\" />
|
||||
<link rel=\"canonical\" href=\"";
|
||||
// line 11
|
||||
echo $this->getAttribute(($context["page"] ?? null), "url", array(0 => true, 1 => true), "method");
|
||||
echo "\" />
|
||||
<link rel=\"alternate\" href=\"/home-fr\" hreflang=\"fr\" />
|
||||
<link rel=\"alternate\" href=\"/home-en\" hreflang=\"en\" />
|
||||
|
||||
";
|
||||
// line 15
|
||||
$this->displayBlock('stylesheets', $context, $blocks);
|
||||
// line 23
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
|
||||
echo "
|
||||
|
||||
";
|
||||
// line 25
|
||||
$this->displayBlock('javascripts', $context, $blocks);
|
||||
// line 32
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 15
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 16
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/jquery.bxslider.css", 1 => 101), "method");
|
||||
// line 17
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/style.css", 1 => 101), "method");
|
||||
// line 18
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css-compiled/template.css", 1 => 101), "method");
|
||||
// line 19
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/jquery.mCustomScrollbar.css", 1 => 101), "method");
|
||||
// line 20
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/media-queries.css", 1 => 101), "method");
|
||||
// line 21
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 25
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 26
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "jquery", 1 => 101), "method");
|
||||
// line 27
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/jquery.mCustomScrollbar.concat.min.js"), "method");
|
||||
// line 28
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/jquery.bxslider.min.js"), "method");
|
||||
// line 29
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/script.js"), "method");
|
||||
// line 30
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 38
|
||||
public function block_header($context, array $blocks = array())
|
||||
{
|
||||
// line 39
|
||||
echo " <header id=\"header\">
|
||||
<div id=\"logo\">
|
||||
<h1><a href=\"";
|
||||
// line 41
|
||||
echo (((($context["base_url"] ?? null) == "")) ? ("/fr") : (($context["base_url"] ?? null)));
|
||||
echo "\">";
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["config"] ?? null), "site", array()), "title", array()));
|
||||
echo "</a></h1>
|
||||
<div class=\"fr-en\">
|
||||
<a href=\"fr\">Fr</a>
|
||||
/
|
||||
<a href=\"en\">En</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id=\"navbar\">
|
||||
<div class=\"menu-ui\">
|
||||
<div class=\"picto\">
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
// line 54
|
||||
$this->displayBlock('header_navigation', $context, $blocks);
|
||||
// line 55
|
||||
echo " </div>
|
||||
<div class=\"app\">
|
||||
<a href=\"https://ethica-spinoza.net/\">
|
||||
<img src=\"/user/themes/ethica/images/logo.svg\" alt=\"\">
|
||||
<strong>Ethica-spinoza.net</strong>
|
||||
</a>
|
||||
</div>
|
||||
<div class=\"separation\"></div>
|
||||
</header>
|
||||
";
|
||||
}
|
||||
|
||||
// line 54
|
||||
public function block_header_navigation($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 66
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 67
|
||||
echo "
|
||||
<section id=\"body\">
|
||||
<div class=\"content\">
|
||||
";
|
||||
// line 70
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
// line 71
|
||||
echo " </div>
|
||||
</section>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
// line 70
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 76
|
||||
public function block_footer($context, array $blocks = array())
|
||||
{
|
||||
// line 77
|
||||
echo " <footer id=\"footer\">
|
||||
</footer>
|
||||
";
|
||||
}
|
||||
|
||||
// line 81
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 82
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(0 => "bottom"), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 238 => 82, 235 => 81, 229 => 77, 226 => 76, 221 => 70, 214 => 71, 212 => 70, 207 => 67, 204 => 66, 199 => 54, 186 => 55, 184 => 54, 166 => 41, 162 => 39, 159 => 38, 154 => 30, 151 => 29, 148 => 28, 145 => 27, 142 => 26, 139 => 25, 134 => 21, 131 => 20, 128 => 19, 125 => 18, 122 => 17, 119 => 16, 116 => 15, 109 => 32, 107 => 25, 101 => 23, 99 => 15, 92 => 11, 88 => 10, 85 => 9, 83 => 8, 75 => 7, 72 => 6, 69 => 5, 63 => 84, 61 => 81, 58 => 80, 56 => 76, 53 => 75, 51 => 66, 48 => 65, 46 => 38, 40 => 34, 38 => 5, 33 => 3, 30 => 2, 28 => 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("{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
|
||||
<!DOCTYPE html>
|
||||
<html lang=\"{{ grav.language.getLanguage ?: 'fr' }}\">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset=\"utf-8\" />
|
||||
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ config.site.title|t('html') }}</title>
|
||||
{% include 'partials/metadata.html.twig' %}
|
||||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"{{ url('theme://images/favicon.png') }}\" />
|
||||
<link rel=\"canonical\" href=\"{{ page.url(true, true) }}\" />
|
||||
<link rel=\"alternate\" href=\"/home-fr\" hreflang=\"fr\" />
|
||||
<link rel=\"alternate\" href=\"/home-en\" hreflang=\"en\" />
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss('theme://css/jquery.bxslider.css', 101) %}
|
||||
{% do assets.addCss('theme://css/style.css', 101) %}
|
||||
{% do assets.addCss('theme://css-compiled/template.css', 101) %}
|
||||
{% do assets.addCss('theme://css/jquery.mCustomScrollbar.css', 101) %}
|
||||
{% do assets.addCss('theme://css/media-queries.css', 101) %}
|
||||
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
|
||||
{% block javascripts %}
|
||||
{% do assets.addJs('jquery', 101) %}
|
||||
{% do assets.addJs('theme://js/jquery.mCustomScrollbar.concat.min.js') %}
|
||||
{% do assets.addJs('theme://js/jquery.bxslider.min.js') %}
|
||||
{% do assets.addJs('theme://js/script.js') %}
|
||||
|
||||
{% endblock %}
|
||||
{{ assets.js() }}
|
||||
{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body id=\"top\">
|
||||
|
||||
{% block header %}
|
||||
<header id=\"header\">
|
||||
<div id=\"logo\">
|
||||
<h1><a href=\"{{ base_url == '' ? '/fr' : base_url }}\">{{ config.site.title|t }}</a></h1>
|
||||
<div class=\"fr-en\">
|
||||
<a href=\"fr\">Fr</a>
|
||||
/
|
||||
<a href=\"en\">En</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id=\"navbar\">
|
||||
<div class=\"menu-ui\">
|
||||
<div class=\"picto\">
|
||||
</div>
|
||||
</div>
|
||||
{% block header_navigation %}{% endblock %}
|
||||
</div>
|
||||
<div class=\"app\">
|
||||
<a href=\"https://ethica-spinoza.net/\">
|
||||
<img src=\"/user/themes/ethica/images/logo.svg\" alt=\"\">
|
||||
<strong>Ethica-spinoza.net</strong>
|
||||
</a>
|
||||
</div>
|
||||
<div class=\"separation\"></div>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<section id=\"body\">
|
||||
<div class=\"content\">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<footer id=\"footer\">
|
||||
</footer>
|
||||
{% endblock %}
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom') }}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
", "partials/base.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/partials/base.html.twig");
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/* partials/modal-changes-detected.html.twig */
|
||||
class __TwigTemplate_82b8abaa2f299f76253352476ba5b685893558da6370410bff51ca9bfe2d890d extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div class=\"remodal\" data-remodal-id=\"changes\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 3
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_TITLE"), "html", null, true);
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 5
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_DESC"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button secondary\" data-leave-action=\"cancel\" href=\"#\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</a>
|
||||
<a class=\"button\" data-leave-action=\"continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/modal-changes-detected.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 39 => 10, 35 => 9, 28 => 5, 23 => 3, 19 => 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("<div class=\"remodal\" data-remodal-id=\"changes\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_TITLE\"|tu }}</h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_DESC\"|tu }}
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button secondary\" data-leave-action=\"cancel\" href=\"#\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CANCEL\"|tu }}</a>
|
||||
<a class=\"button\" data-leave-action=\"continue\" href=\"#\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>", "partials/modal-changes-detected.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/modal-changes-detected.html.twig");
|
||||
}
|
||||
}
|
||||
+1567
File diff suppressed because it is too large
Load Diff
+366
@@ -0,0 +1,366 @@
|
||||
<?php
|
||||
|
||||
/* dashboard.html.twig */
|
||||
class __TwigTemplate_bb909058d0091bbe701e346d80e7a7d14013f7a8c46933c41cab02e6bc46d0d2 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "dashboard.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'widgets' => array($this, 'block_widgets'),
|
||||
'content' => array($this, 'block_content'),
|
||||
'content_bottom' => array($this, 'block_content_bottom'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD");
|
||||
// line 5
|
||||
$context["clear_cache_url"] = (((($context["base_url_relative"] ?? null) . "/cache.json/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . twig_escape_filter($this->env, "clearCache", "html_attr"));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 7
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
// line 8
|
||||
echo " <div class=\"button-bar\">
|
||||
";
|
||||
// line 9
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super", 2 => "admin.cache"))) {
|
||||
// line 10
|
||||
echo " <div class=\"button-group\">
|
||||
<button data-clear-cache-type=\"\" data-clear-cache=\"";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => ($context["clear_cache_url"] ?? null), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" class=\"button\"><i class=\"fa fa-trash\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE"), "html", null, true);
|
||||
echo "</button>
|
||||
<button type=\"button\" class=\"button dropdown-toggle\" data-toggle=\"dropdown\">
|
||||
<i class=\"fa fa-caret-down\"></i>
|
||||
</button>
|
||||
<ul class=\"dropdown-menu\">
|
||||
<li><a data-clear-cache-type=\"all\" data-clear-cache=\"";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "all"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" href=\"#\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_ALL_CACHE"), "html", null, true);
|
||||
echo "</a></li>
|
||||
<li><a data-clear-cache-type=\"assets-only\" data-clear-cache=\"";
|
||||
// line 17
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "assets-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" href=\"#\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_ASSETS_ONLY"), "html", null, true);
|
||||
echo "</a></li>
|
||||
<li><a data-clear-cache-type=\"images-only\" data-clear-cache=\"";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "images-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" href=\"#\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_IMAGES_ONLY"), "html", null, true);
|
||||
echo "</a></li>
|
||||
<li><a data-clear-cache-type=\"cache-only\" data-clear-cache=\"";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "cache-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" href=\"#\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_CACHE_ONLY"), "html", null, true);
|
||||
echo "</a></li>
|
||||
<li><a data-clear-cache-type=\"tmp-only\" data-clear-cache=\"";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "tmp-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
|
||||
echo "\" href=\"#\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_TMP_ONLY"), "html", null, true);
|
||||
echo "</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 24
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
|
||||
// line 25
|
||||
echo " <button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CHECK_FOR_UPDATES"), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 27
|
||||
echo " </div>
|
||||
<h1><i class=\"fa fa-fw fa-th\"></i> ";
|
||||
// line 28
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD"), "html", null, true);
|
||||
echo "</h1>
|
||||
";
|
||||
}
|
||||
|
||||
// line 31
|
||||
public function block_widgets($context, array $blocks = array())
|
||||
{
|
||||
// line 32
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "dashboard", array())) {
|
||||
// line 33
|
||||
echo " <div class=\"dashboard-notifications-container\"></div>
|
||||
";
|
||||
}
|
||||
// line 35
|
||||
echo "
|
||||
<div id=\"admin-dashboard\">
|
||||
";
|
||||
// line 37
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_top", array())) {
|
||||
// line 38
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_top", array()));
|
||||
$context['loop'] = array(
|
||||
'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["widget"]) {
|
||||
// line 39
|
||||
echo " ";
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), $this->getAttribute($context["widget"], "template", array())) == true)) {
|
||||
// line 40
|
||||
echo " <div class=\"dashboard-item-flex\">
|
||||
";
|
||||
// line 41
|
||||
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 41)->display($context);
|
||||
// line 42
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 44
|
||||
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['widget'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 45
|
||||
echo " ";
|
||||
}
|
||||
// line 46
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 49
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 50
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_main", array())) {
|
||||
// line 51
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_main", array()));
|
||||
$context['loop'] = array(
|
||||
'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["widget"]) {
|
||||
// line 52
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), $this->getAttribute($context["widget"], "template", array())) == true)) {
|
||||
// line 53
|
||||
echo " ";
|
||||
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 53)->display($context);
|
||||
// line 54
|
||||
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['widget'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
}
|
||||
|
||||
// line 59
|
||||
public function block_content_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 60
|
||||
echo " <div id=\"admin-dashboard\">";
|
||||
// line 61
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_bottom", array())) {
|
||||
// line 62
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_bottom", array()));
|
||||
$context['loop'] = array(
|
||||
'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["widget"]) {
|
||||
// line 63
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), $this->getAttribute($context["widget"], "template", array())) == true)) {
|
||||
// line 64
|
||||
echo " ";
|
||||
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 64)->display($context);
|
||||
// line 65
|
||||
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['widget'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
// line 68
|
||||
echo "</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "dashboard.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 266 => 68, 250 => 65, 247 => 64, 245 => 63, 228 => 62, 226 => 61, 224 => 60, 221 => 59, 203 => 54, 200 => 53, 198 => 52, 181 => 51, 179 => 50, 176 => 49, 171 => 46, 168 => 45, 154 => 44, 150 => 42, 148 => 41, 145 => 40, 142 => 39, 124 => 38, 122 => 37, 118 => 35, 114 => 33, 111 => 32, 108 => 31, 102 => 28, 99 => 27, 93 => 25, 90 => 24, 81 => 20, 75 => 19, 69 => 18, 63 => 17, 57 => 16, 47 => 11, 44 => 10, 42 => 9, 39 => 8, 36 => 7, 32 => 1, 30 => 5, 28 => 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 'partials/base.html.twig' %}
|
||||
|
||||
{% set title = \"PLUGIN_ADMIN.DASHBOARD\"|tu %}
|
||||
|
||||
{% set clear_cache_url = base_url_relative ~ '/cache.json/task' ~ config.system.param_sep ~ 'clearCache'|e('html_attr') %}
|
||||
|
||||
{% block titlebar %}
|
||||
<div class=\"button-bar\">
|
||||
{% if authorize(['admin.maintenance', 'admin.super', 'admin.cache']) %}
|
||||
<div class=\"button-group\">
|
||||
<button data-clear-cache-type=\"\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url, 'admin-form', 'admin-nonce') }}\" class=\"button\"><i class=\"fa fa-trash\"></i> {{ \"PLUGIN_ADMIN.CLEAR_CACHE\"|tu }}</button>
|
||||
<button type=\"button\" class=\"button dropdown-toggle\" data-toggle=\"dropdown\">
|
||||
<i class=\"fa fa-caret-down\"></i>
|
||||
</button>
|
||||
<ul class=\"dropdown-menu\">
|
||||
<li><a data-clear-cache-type=\"all\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'all', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_ALL_CACHE\"|tu }}</a></li>
|
||||
<li><a data-clear-cache-type=\"assets-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'assets-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_ASSETS_ONLY\"|tu }}</a></li>
|
||||
<li><a data-clear-cache-type=\"images-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'images-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_IMAGES_ONLY\"|tu }}</a></li>
|
||||
<li><a data-clear-cache-type=\"cache-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'cache-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_CACHE_ONLY\"|tu }}</a></li>
|
||||
<li><a data-clear-cache-type=\"tmp-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'tmp-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_TMP_ONLY\"|tu }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
<button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> {{ \"PLUGIN_ADMIN.CHECK_FOR_UPDATES\"|tu }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<h1><i class=\"fa fa-fw fa-th\"></i> {{ \"PLUGIN_ADMIN.DASHBOARD\"|tu }}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block widgets %}
|
||||
{% if config.plugins.admin.notifications.dashboard %}
|
||||
<div class=\"dashboard-notifications-container\"></div>
|
||||
{% endif %}
|
||||
|
||||
<div id=\"admin-dashboard\">
|
||||
{% if grav.twig.plugins_hooked_dashboard_widgets_top %}
|
||||
{% for widget in grav.twig.plugins_hooked_dashboard_widgets_top %}
|
||||
{% if attribute(config.plugins.admin.widgets, widget.template) == true %}
|
||||
<div class=\"dashboard-item-flex\">
|
||||
{% include 'partials/' ~ widget.template ~ '.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{%- if grav.twig.plugins_hooked_dashboard_widgets_main -%}
|
||||
{%- for widget in grav.twig.plugins_hooked_dashboard_widgets_main -%}
|
||||
{%- if attribute(config.plugins.admin.widgets, widget.template) == true %}
|
||||
{% include 'partials/' ~ widget.template ~ '.html.twig' %}
|
||||
{% endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_bottom %}
|
||||
<div id=\"admin-dashboard\">
|
||||
{%- if grav.twig.plugins_hooked_dashboard_widgets_bottom -%}
|
||||
{%- for widget in grav.twig.plugins_hooked_dashboard_widgets_bottom -%}
|
||||
{%- if attribute(config.plugins.admin.widgets, widget.template) == true %}
|
||||
{% include 'partials/' ~ widget.template ~ '.html.twig' %}
|
||||
{% endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "dashboard.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/dashboard.html.twig");
|
||||
}
|
||||
}
|
||||
+283
@@ -0,0 +1,283 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/pages/pages.html.twig */
|
||||
class __TwigTemplate_85318de3e68650a47ddeb863f7ff6f2815fc0b66e23ec6d5ea16e41e35166635 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/pages/pages.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'input' => array($this, 'block_input'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 17
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 18
|
||||
echo " data-grav-selectize=\"";
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "selectize", array())) : (array()))), "html_attr");
|
||||
echo "\"
|
||||
data-grav-field=\"select\"
|
||||
data-grav-disabled=\"";
|
||||
// line 20
|
||||
echo (((null === ($context["originalValue"] ?? null))) ? ("true") : ("false"));
|
||||
echo "\"
|
||||
data-grav-default=\"";
|
||||
// line 21
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 24
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 25
|
||||
echo "
|
||||
";
|
||||
// line 26
|
||||
$context["start_page"] = (($this->getAttribute(($context["field"] ?? null), "start_route", array())) ? ($this->getAttribute(($context["pages"] ?? null), "find", array(0 => $this->getAttribute(($context["field"] ?? null), "start_route", array())), "method")) : (null));
|
||||
// line 27
|
||||
echo " ";
|
||||
$context["show_all"] = ((($this->getAttribute(($context["field"] ?? null), "show_all", array()) === false)) ? (false) : (true));
|
||||
// line 28
|
||||
echo " ";
|
||||
$context["show_fullpath"] = ((($this->getAttribute(($context["field"] ?? null), "show_fullpath", array()) === true)) ? (true) : (false));
|
||||
// line 29
|
||||
echo " ";
|
||||
$context["show_slug"] = ((($this->getAttribute(($context["field"] ?? null), "show_slug", array()) === true)) ? (true) : (false));
|
||||
// line 30
|
||||
echo " ";
|
||||
$context["show_modular"] = ((($this->getAttribute(($context["field"] ?? null), "show_modular", array()) === true)) ? (true) : (false));
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["limit_levels"] = (($this->getAttribute(($context["field"] ?? null), "limit_levels", array())) ? ($this->getAttribute(($context["field"] ?? null), "limit_levels", array())) : (false));
|
||||
// line 32
|
||||
echo "
|
||||
";
|
||||
// line 33
|
||||
$context["page_list"] = $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "pages", array()), "getList", array(0 => ($context["start_page"] ?? null), 1 => 0, 2 => true, 3 => ($context["show_all"] ?? null), 4 => ($context["show_fullpath"] ?? null), 5 => ($context["show_slug"] ?? null), 6 => ($context["show_modular"] ?? null), 7 => ($context["limit_levels"] ?? null)), "method");
|
||||
// line 34
|
||||
echo "
|
||||
<div class=\"form-select-wrapper ";
|
||||
// line 35
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
<select class=\"";
|
||||
// line 36
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\" name=\"";
|
||||
echo twig_escape_filter($this->env, ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))) . (($this->getAttribute(($context["field"] ?? null), "multiple", array())) ? ("[]") : (""))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 37
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 38
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 39
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 40
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 41
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 42
|
||||
echo " >
|
||||
";
|
||||
// line 43
|
||||
if ($this->getAttribute(($context["field"] ?? null), "show_root", array())) {
|
||||
// line 44
|
||||
echo " <option value=\"/\">/ (root)</option>
|
||||
";
|
||||
}
|
||||
// line 46
|
||||
echo " ";
|
||||
echo $this->getAttribute($this, "page_options", array(0 => $context, 1 => ($context["page_list"] ?? null)), "method");
|
||||
echo "
|
||||
</select>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function getpage_options($__globals__ = null, $__pages_list__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"globals" => $__globals__,
|
||||
"pages_list" => $__pages_list__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 4
|
||||
echo " ";
|
||||
$context["field"] = $this->getAttribute(($context["globals"] ?? null), "field", array());
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["value"] = $this->getAttribute(($context["globals"] ?? null), "value", array());
|
||||
// line 6
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "options", array()) && (($context["depth"] ?? null) == 0))) {
|
||||
// line 7
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "options", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
|
||||
// line 8
|
||||
echo " <option value=\"";
|
||||
echo twig_escape_filter($this->env, $context["key"], "html_attr");
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["value"]), "html", null, true);
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 10
|
||||
echo " ";
|
||||
}
|
||||
// line 11
|
||||
echo "
|
||||
";
|
||||
// line 12
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["pages_list"] ?? null));
|
||||
foreach ($context['_seq'] as $context["page_route"] => $context["option"]) {
|
||||
// line 13
|
||||
echo " <option ";
|
||||
if ((($context["page_route"] == ($context["value"] ?? null)) || ($this->getAttribute(($context["field"] ?? null), "multiple", array()) && twig_in_filter($context["page_route"], ($context["value"] ?? null))))) {
|
||||
echo "selected=\"selected\"";
|
||||
}
|
||||
echo " value=\"";
|
||||
echo twig_escape_filter($this->env, $context["page_route"], "html", null, true);
|
||||
echo "\">";
|
||||
echo $context["option"];
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['page_route'], $context['option'], $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 Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/pages/pages.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 179 => 13, 175 => 12, 172 => 11, 169 => 10, 158 => 8, 153 => 7, 150 => 6, 147 => 5, 144 => 4, 131 => 3, 122 => 46, 118 => 44, 116 => 43, 113 => 42, 108 => 41, 103 => 40, 98 => 39, 93 => 38, 89 => 37, 83 => 36, 79 => 35, 76 => 34, 74 => 33, 71 => 32, 68 => 31, 65 => 30, 62 => 29, 59 => 28, 56 => 27, 54 => 26, 51 => 25, 48 => 24, 42 => 21, 38 => 20, 32 => 18, 29 => 17, 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\" %}
|
||||
|
||||
{% macro page_options(globals, pages_list) %}
|
||||
{% set field = globals.field %}
|
||||
{% set value = globals.value %}
|
||||
{% if field.options and depth == 0 %}
|
||||
{% for key, value in field.options %}
|
||||
<option value=\"{{ key|e('html_attr') }}\">{{ value|t }}</option>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for page_route, option in pages_list %}
|
||||
<option {% if page_route == value or (field.multiple and page_route in value) %}selected=\"selected\"{% endif %} value=\"{{ page_route }}\">{{ option|raw }}</option>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize : {})|json_encode|e('html_attr') }}\"
|
||||
data-grav-field=\"select\"
|
||||
data-grav-disabled=\"{{ originalValue is null ? 'true' : 'false' }}\"
|
||||
data-grav-default=\"{{ field.default|json_encode|e('html_attr') }}\"
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
|
||||
{% set start_page = field.start_route ? pages.find(field.start_route) : null %}
|
||||
{% set show_all = field.show_all is same as(false) ? false : true %}
|
||||
{% set show_fullpath = field.show_fullpath is same as(true) ? true : false %}
|
||||
{% set show_slug = field.show_slug is same as(true) ? true : false %}
|
||||
{% set show_modular = field.show_modular is same as(true) ? true : false %}
|
||||
{% set limit_levels = field.limit_levels ?: false %}
|
||||
|
||||
{% set page_list = grav.pages.getList(start_page, 0, true, show_all, show_fullpath, show_slug, show_modular, limit_levels) %}
|
||||
|
||||
<div class=\"form-select-wrapper {{ field.size }}\">
|
||||
<select class=\"{{ field.classes }}\" name=\"{{ (scope ~ field.name)|fieldName ~ (field.multiple ? '[]' : '') }}\"
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
>
|
||||
{% if field.show_root %}
|
||||
<option value=\"/\">/ (root)</option>
|
||||
{% endif %}
|
||||
{{ _self.page_options(_context, page_list) }}
|
||||
</select>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
", "forms/fields/pages/pages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/pages/pages.html.twig");
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
/* partials/dashboard-notifications.html.twig */
|
||||
class __TwigTemplate_50f9c79f4699bacaabd8fd6a33e58048dab31404bb6291449f39eff0a632f606 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
echo "<div id=\"notifications\" class=\"dashboard-item admin-block default-box-shadow\">
|
||||
<h1>
|
||||
";
|
||||
// line 3
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.NOTIFICATIONS"), "html", null, true);
|
||||
echo "
|
||||
<span class=\"right\">
|
||||
<a href=\"#\" class=\"button button-small\" data-refresh=\"notifications\"><i class=\"fa fa-refresh\"></i></a>
|
||||
</span>
|
||||
</h1>
|
||||
<div class=\"widget-content\">
|
||||
<div class=\"widget-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/dashboard-notifications.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 23 => 3, 19 => 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("<div id=\"notifications\" class=\"dashboard-item admin-block default-box-shadow\">
|
||||
<h1>
|
||||
{{ \"PLUGIN_ADMIN.NOTIFICATIONS\"|tu }}
|
||||
<span class=\"right\">
|
||||
<a href=\"#\" class=\"button button-small\" data-refresh=\"notifications\"><i class=\"fa fa-refresh\"></i></a>
|
||||
</span>
|
||||
</h1>
|
||||
<div class=\"widget-content\">
|
||||
<div class=\"widget-loader\"><i class=\"fa fa-refresh fa-spin\"></i></div>
|
||||
<ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
", "partials/dashboard-notifications.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-notifications.html.twig");
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
/* partials/blueprints-new.html.twig */
|
||||
class __TwigTemplate_c8fddf07bd7455e5c7d48772b73edac6983610abb8744f883ceeed7b4d4d42be extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["form_id"] = ((($context["form_id"] ?? null)) ? (($context["form_id"] ?? null)) : ("blueprints"));
|
||||
// line 2
|
||||
$context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
|
||||
// line 3
|
||||
echo "
|
||||
<form id=\"";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" method=\"post\" data-grav-form=\"";
|
||||
echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
|
||||
echo "\" data-grav-keepalive=\"true\">
|
||||
";
|
||||
// line 5
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["blueprints"] ?? null), "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'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["field"]) {
|
||||
// line 6
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 7
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 8
|
||||
echo " <div class=\"block block-";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "type", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 9
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "partials/blueprints-new.html.twig", 9)->display($context);
|
||||
// line 10
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 12
|
||||
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['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 13
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"task\" value=\"continue\" />
|
||||
<div class=\"button-bar\">
|
||||
<button class=\"button primary\">";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 19
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
|
||||
echo "
|
||||
|
||||
</form>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/blueprints-new.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 91 => 19, 85 => 16, 80 => 13, 66 => 12, 62 => 10, 60 => 9, 55 => 8, 52 => 7, 49 => 6, 32 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 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("{% set form_id = form_id ? form_id : 'blueprints' %}
|
||||
{% set scope = scope ?: 'data.' %}
|
||||
|
||||
<form id=\"{{ form_id }}\" method=\"post\" data-grav-form=\"{{ form_id }}\" data-grav-keepalive=\"true\">
|
||||
{% for field in blueprints.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
<div class=\"block block-{{field.type}}\">
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<input type=\"hidden\" name=\"task\" value=\"continue\" />
|
||||
<div class=\"button-bar\">
|
||||
<button class=\"button primary\">{{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</button>
|
||||
</div>
|
||||
|
||||
{{ nonce_field('admin-form', 'admin-nonce')|raw }}
|
||||
|
||||
</form>
|
||||
", "partials/blueprints-new.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/blueprints-new.html.twig");
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
/* modular/contenu-multi.html.twig */
|
||||
class __TwigTemplate_83a702e09f78554671a4f38660f45595c72d2ef8dee6811096a2ddb1a0567cb8 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 2
|
||||
echo "
|
||||
";
|
||||
// line 3
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
}
|
||||
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <div class=\"multi-column\">
|
||||
<h2>";
|
||||
// line 5
|
||||
echo $this->getAttribute(($context["header"] ?? null), "title", array());
|
||||
echo "</h2>
|
||||
";
|
||||
// line 6
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
// line 8
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 9
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\" class=\"mutli-column\">
|
||||
";
|
||||
// line 10
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 13
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular/contenu-multi.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 63 => 1, 59 => 13, 50 => 10, 45 => 9, 41 => 8, 36 => 6, 32 => 5, 29 => 4, 23 => 3, 20 => 2,);
|
||||
}
|
||||
|
||||
/** @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("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<div class=\"multi-column\">
|
||||
<h2>{{ header.title }}</h2>
|
||||
{{ page.content }}
|
||||
</div>
|
||||
{% for module in page.collection() %}
|
||||
<div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"mutli-column\">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular/contenu-multi.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/modular/contenu-multi.html.twig");
|
||||
}
|
||||
}
|
||||
+113
File diff suppressed because one or more lines are too long
+242
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
|
||||
/* home.html.twig */
|
||||
class __TwigTemplate_7fe4981640c1b846664c2557520ed65bfae86a413c9247070928bc796a200d50 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "home.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'header_navigation' => array($this, 'block_header_navigation'),
|
||||
'content' => array($this, 'block_content'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["show_onpage_menu"] = (($this->getAttribute(($context["header"] ?? null), "onpage_menu", array()) == true) || (null === $this->getAttribute(($context["header"] ?? null), "onpage_menu", array())));
|
||||
// line 4
|
||||
$context["cc"] = $this->getAttribute(($context["taxonomy"] ?? null), "findTaxonomy", array(0 => array("category" => "sous-menu")), "method");
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 8
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 9
|
||||
echo " ";
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 10
|
||||
echo " ";
|
||||
}
|
||||
// line 11
|
||||
echo " ";
|
||||
$this->displayParentBlock("javascripts", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 14
|
||||
public function block_header_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 15
|
||||
echo " ";
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 16
|
||||
echo " <ul class=\"navigation\">
|
||||
";
|
||||
// line 17
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 18
|
||||
echo " <li class=\"";
|
||||
echo $this->getAttribute($this->getAttribute($context["module"], "header", array()), "body_classes", array());
|
||||
echo "\">
|
||||
<a href=\"#";
|
||||
// line 19
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\">";
|
||||
echo $this->getAttribute($context["module"], "menu", array());
|
||||
echo "</a>
|
||||
";
|
||||
// line 20
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["module"], "collection", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
||||
// line 21
|
||||
echo " ";
|
||||
if (twig_in_filter($context["child"], ($context["cc"] ?? null))) {
|
||||
// line 22
|
||||
echo " <ol>
|
||||
<a href=\"#";
|
||||
// line 23
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["child"], "folder", array())), "method");
|
||||
echo "\">";
|
||||
echo $this->getAttribute($context["child"], "menu", array());
|
||||
echo "</a>
|
||||
</ol>
|
||||
";
|
||||
}
|
||||
// line 26
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 27
|
||||
echo " </li>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 29
|
||||
echo "
|
||||
</ul>
|
||||
";
|
||||
} else {
|
||||
// line 32
|
||||
echo " ";
|
||||
$this->displayParentBlock("header_navigation", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 36
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
// line 37
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["page"] ?? null), "content", array());
|
||||
echo "
|
||||
";
|
||||
// line 38
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 39
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
|
||||
echo "\" class=\"column \">
|
||||
";
|
||||
// line 40
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
</div>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "home.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 147 => 6, 136 => 40, 131 => 39, 127 => 38, 122 => 37, 119 => 36, 111 => 32, 106 => 29, 99 => 27, 93 => 26, 85 => 23, 82 => 22, 79 => 21, 75 => 20, 69 => 19, 64 => 18, 60 => 17, 57 => 16, 54 => 15, 51 => 14, 44 => 11, 41 => 10, 38 => 9, 35 => 8, 31 => 1, 29 => 4, 27 => 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 'partials/base.html.twig' %}
|
||||
|
||||
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
|
||||
{% set cc = taxonomy.findTaxonomy({'category':'sous-menu'}) %}
|
||||
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block javascripts %}
|
||||
{% if show_onpage_menu %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block header_navigation %}
|
||||
{% if show_onpage_menu %}
|
||||
<ul class=\"navigation\">
|
||||
{% for module in page.collection() %}
|
||||
<li class=\"{{module.header.body_classes}}\">
|
||||
<a href=\"#{{ _self.pageLinkName(module.folder) }}\">{{ module.menu }}</a>
|
||||
{% for child in module.collection %}
|
||||
{% if child in cc %}
|
||||
<ol>
|
||||
<a href=\"#{{ _self.pageLinkName(child.folder) }}\">{{ child.menu }}</a>
|
||||
</ol>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
{% else %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
<div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"column \">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "home.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/home.html.twig");
|
||||
}
|
||||
}
|
||||
+272
@@ -0,0 +1,272 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/order/order.html.twig */
|
||||
class __TwigTemplate_dd4348b2ff117d7be86395492ae48b7f08d25f10ebc9bbb6696bef8aaff994f4 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 2
|
||||
$context["siblings"] = $this->getAttribute($this->getAttribute(($context["data"] ?? null), "parent", array()), "children", array());
|
||||
// line 3
|
||||
$context["canOrder"] = $this->getAttribute(($context["data"] ?? null), "order", array());
|
||||
// line 4
|
||||
$context["vertical"] = ($this->getAttribute(($context["field"] ?? null), "style", array()) == "vertical");
|
||||
// line 5
|
||||
echo "
|
||||
<div class=\"form-field grid pure-g";
|
||||
// line 6
|
||||
if (($context["vertical"] ?? null)) {
|
||||
echo " vertical";
|
||||
}
|
||||
echo "\">
|
||||
<div class=\"form-label";
|
||||
// line 7
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-1-3 pure-u-1-3";
|
||||
}
|
||||
echo "\">
|
||||
<label>
|
||||
";
|
||||
// line 9
|
||||
if ($this->getAttribute(($context["field"] ?? null), "help", array())) {
|
||||
// line 10
|
||||
echo " <span class=\"tooltip\" data-asTooltip-position=\"w\" title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "help", array()))), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
|
||||
echo "</span>
|
||||
";
|
||||
} else {
|
||||
// line 12
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
echo ((twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) ? ("<span class=\"required\">*</span>") : (""));
|
||||
echo "
|
||||
</label>
|
||||
</div>
|
||||
<div class=\"form-data";
|
||||
// line 17
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-2-3 pure-u-2-3";
|
||||
}
|
||||
echo "\">
|
||||
<div class=\"form-order-wrapper ";
|
||||
// line 18
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
|
||||
<input
|
||||
type=\"hidden\"
|
||||
data-order
|
||||
";
|
||||
// line 23
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 24
|
||||
echo " name=\"";
|
||||
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 26
|
||||
if ( !($context["canOrder"] ?? null)) {
|
||||
// line 27
|
||||
echo " <div class=\"notice\">";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_PAGE_NO_PREFIX");
|
||||
echo "</div>
|
||||
";
|
||||
}
|
||||
// line 29
|
||||
echo "
|
||||
";
|
||||
// line 30
|
||||
if ((twig_length_filter($this->env, ($context["siblings"] ?? null)) < 200)) {
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["sortable_count"] = 0;
|
||||
// line 32
|
||||
echo "\t\t\t\t<ul id=\"ordering\" class=\"orderable ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
\t\t\t ";
|
||||
// line 33
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["siblings"] ?? null));
|
||||
$context['loop'] = array(
|
||||
'parent' => $context['_parent'],
|
||||
'index0' => 0,
|
||||
'index' => 1,
|
||||
'first' => true,
|
||||
);
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
|
||||
if ($this->getAttribute($context["page"], "order", array())) {
|
||||
// line 34
|
||||
echo "\t\t\t\t\t<li class=\"drag-handle\" data-id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "slug", array()), "html", null, true);
|
||||
echo "\" ";
|
||||
echo ((($this->getAttribute($context["page"], "slug", array()) == $this->getAttribute(($context["data"] ?? null), "slug", array()))) ? ("data-active-id") : (""));
|
||||
echo "><span class=\"page-order\">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "order", array()), "html", null, true);
|
||||
echo "</span> ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "title", array()));
|
||||
echo " <a href=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->getPageUrl($context, $context["page"]), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-external-link\"></i></a></li>
|
||||
";
|
||||
// line 35
|
||||
$context["sortable_count"] = $this->getAttribute($context["loop"], "index", array());
|
||||
// line 36
|
||||
echo " ";
|
||||
++$context['loop']['index0'];
|
||||
++$context['loop']['index'];
|
||||
$context['loop']['first'] = false;
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 37
|
||||
echo "\t\t\t\t</ul>
|
||||
";
|
||||
// line 38
|
||||
if ((($context["sortable_count"] ?? null) < twig_length_filter($this->env, ($context["siblings"] ?? null)))) {
|
||||
// line 39
|
||||
echo " <label>Unsortable Pages</label>
|
||||
<ul class=\"orderable disabled\">
|
||||
";
|
||||
// line 41
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["siblings"] ?? null));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
|
||||
if ( !$this->getAttribute($context["page"], "order", array())) {
|
||||
// line 42
|
||||
echo " <li ";
|
||||
echo ((($this->getAttribute($context["page"], "slug", array()) == $this->getAttribute(($context["data"] ?? null), "slug", array()))) ? ("data-active-id") : (""));
|
||||
echo ">";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "title", array()));
|
||||
echo " <a href=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->getPageUrl($context, $context["page"]), "html", null, true);
|
||||
echo "\"><i class=\"fa fa-external-link\"></i></a></li>
|
||||
";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 44
|
||||
echo " </ul>
|
||||
";
|
||||
}
|
||||
// line 46
|
||||
echo "\t\t\t";
|
||||
} else {
|
||||
// line 47
|
||||
echo " <div class=\"notice\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_TOO_MANY_SIBLINGS"), "html", null, true);
|
||||
echo "</div>
|
||||
\t\t\t";
|
||||
}
|
||||
// line 49
|
||||
echo " </div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/order/order.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 188 => 49, 182 => 47, 179 => 46, 175 => 44, 161 => 42, 156 => 41, 152 => 39, 150 => 38, 147 => 37, 137 => 36, 135 => 35, 122 => 34, 111 => 33, 106 => 32, 103 => 31, 101 => 30, 98 => 29, 92 => 27, 90 => 26, 84 => 24, 80 => 23, 72 => 18, 66 => 17, 59 => 14, 53 => 12, 45 => 10, 43 => 9, 36 => 7, 30 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 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("{% set value = (value is null ? field.default : value) %}
|
||||
{% set siblings = data.parent.children %}
|
||||
{% set canOrder = data.order %}
|
||||
{% set vertical = field.style == 'vertical' %}
|
||||
|
||||
<div class=\"form-field grid pure-g{% if vertical %} vertical{% endif %}\">
|
||||
<div class=\"form-label{% if not vertical %} block size-1-3 pure-u-1-3{% endif %}\">
|
||||
<label>
|
||||
{% if field.help %}
|
||||
<span class=\"tooltip\" data-asTooltip-position=\"w\" title=\"{{ field.help|e|tu }}\">{{ field.label|tu }}</span>
|
||||
{% else %}
|
||||
{{ field.label|tu }}
|
||||
{% endif %}
|
||||
{{ field.validate.required in ['on', 'true', 1] ? '<span class=\"required\">*</span>' }}
|
||||
</label>
|
||||
</div>
|
||||
<div class=\"form-data{% if not vertical %} block size-2-3 pure-u-2-3{% endif %}\">
|
||||
<div class=\"form-order-wrapper {{ field.size }}\">
|
||||
|
||||
<input
|
||||
type=\"hidden\"
|
||||
data-order
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
value=\"\" />
|
||||
{% if not canOrder %}
|
||||
<div class=\"notice\">{{ \"PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_PAGE_NO_PREFIX\"|tu|raw }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if siblings|length < 200 %}
|
||||
{% set sortable_count = 0 %}
|
||||
\t\t\t\t<ul id=\"ordering\" class=\"orderable {{ field.classes }}\">
|
||||
\t\t\t {% for page in siblings if page.order %}
|
||||
\t\t\t\t\t<li class=\"drag-handle\" data-id=\"{{ page.slug }}\" {{ page.slug == data.slug ? 'data-active-id' : ''}}><span class=\"page-order\">{{ page.order }}</span> {{ page.title|e }} <a href=\"{{ getPageUrl(page) }}\"><i class=\"fa fa-external-link\"></i></a></li>
|
||||
{% set sortable_count = loop.index %}
|
||||
{% endfor %}
|
||||
\t\t\t\t</ul>
|
||||
{% if sortable_count < siblings|length %}
|
||||
<label>Unsortable Pages</label>
|
||||
<ul class=\"orderable disabled\">
|
||||
{% for page in siblings if not page.order %}
|
||||
<li {{ page.slug == data.slug ? 'data-active-id' : ''}}>{{ page.title|e }} <a href=\"{{ getPageUrl(page) }}\"><i class=\"fa fa-external-link\"></i></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
\t\t\t{% else %}
|
||||
<div class=\"notice\">{{ \"PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_TOO_MANY_SIBLINGS\"|tu }}</div>
|
||||
\t\t\t{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
", "forms/fields/order/order.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/order/order.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user