install gulp + reset
This commit is contained in:
+113
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
/* partials/logo.html.twig */
|
||||
class __TwigTemplate_db501bbd0c5636c69b7fcfdc1caa6eda4fec2a2fc522037fb3d8f56d51b0a63c 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($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "logo_text", array())) {
|
||||
// line 2
|
||||
echo "<h3>
|
||||
\t<a href=\"";
|
||||
// line 3
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
\t\t";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "logo_text", array()), "html", null, true);
|
||||
echo "
|
||||
\t</a>
|
||||
\t<a class=\"front-end hint--left\" data-hint=\"";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.VIEW_SITE_TIP"), "html", null, true);
|
||||
echo "\" target=\"_blank\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative_frontend"] ?? null), "html", null, true);
|
||||
echo "\"> <i class=\"fa fa-bookmark-o\"></i></a>
|
||||
</h3>
|
||||
";
|
||||
} else {
|
||||
// line 9
|
||||
echo "<div class=\"admin-logo\">
|
||||
\t<a href=\"";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
\t\t<svg id=\"grav-logo-small\" class=\"grav-logo\" width=\"100%\" height=\"100%\" viewBox=\"0 0 91 103\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;\"><g transform=\"matrix(1,0,0,1,-411.231,-328.021)\"><path d=\"M498.522,382.22L487.883,382.22C486.266,382.22 484.953,383.536 484.953,385.158L484.953,405.594L484.744,405.77C478.482,411.052 470.564,413.956 462.45,413.956C443.311,413.956 427.739,398.384 427.739,379.241C427.739,360.097 443.311,344.527 462.45,344.527C469.893,344.527 477.01,346.883 483.034,351.344C484.203,352.21 485.825,352.091 486.856,351.064L494.441,343.477C495.034,342.888 495.342,342.07 495.294,341.235C495.248,340.4 494.847,339.627 494.189,339.106C485.176,331.956 473.905,328.021 462.45,328.021C434.21,328.021 411.232,350.998 411.232,379.241C411.232,407.485 434.21,430.46 462.45,430.46C477.032,430.46 490.979,424.187 500.713,413.242C501.191,412.705 501.455,412.014 501.455,411.295L501.455,385.158C501.455,383.536 500.142,382.22 498.522,382.22\" style=\"fill-rule:nonzero;\"/></g></svg>
|
||||
\t\t<svg id=\"grav-logo-large\" class=\"grav-logo\" xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" viewBox=\"0 0 444 103\" clip-rule=\"evenodd\"><path d=\"M87.3 54.2H76.64c-1.6 0-2.93 1.3-2.93 2.94v20.43l-.2.18c-6.27 5.28-14.2 8.2-22.3 8.2-19.14-.02-34.7-15.6-34.7-34.73 0-19.14 15.56-34.7 34.7-34.7 7.44 0 14.56 2.34 20.58 6.8 1.17.87 2.8.75 3.83-.28l7.58-7.58c.6-.6.9-1.4.86-2.25-.04-.82-.44-1.6-1.1-2.12C73.94 3.94 62.66 0 51.22 0 22.98 0 0 22.98 0 51.22s22.98 51.22 51.22 51.22c14.58 0 28.53-6.27 38.26-17.22.48-.54.74-1.23.74-1.95V57.14c0-1.63-1.3-2.94-2.93-2.94M443.24 4.7c-.54-.8-1.47-1.3-2.45-1.3h-11.6c-1.16 0-2.22.68-2.68 1.76l-32.65 75.8-33.22-75.82c-.47-1.06-1.53-1.75-2.7-1.75h-11.6c-1 0-1.92.5-2.46 1.32-.55.83-.65 1.87-.24 2.78l40.24 91.8c.47 1.08 1.53 1.77 2.7 1.77h14.65c1.17 0 2.23-.7 2.7-1.77L443.5 7.48c.37-.9.28-1.95-.26-2.77\"/><path d=\"M291.1 5.14c-.48-1.06-1.53-1.75-2.7-1.75h-14.65c-1.17 0-2.23.68-2.7 1.76l-39.53 91.8c-.4.92-.3 1.96.24 2.78.54.83 1.46 1.33 2.45 1.33h11.6c1.16 0 2.22-.7 2.7-1.77l32.62-75.8 33.23 75.8c.47 1.08 1.52 1.77 2.68 1.77h11.63c1 0 1.92-.5 2.45-1.33.56-.83.64-1.88.25-2.8L291.1 5.15zM185.1 67.48l.65-.3c11.56-5.6 19.03-17.45 19.03-30.23 0-18.5-15.05-33.56-33.56-33.56h-42.5c-1.6 0-2.92 1.3-2.92 2.92v91.8c0 1.63 1.3 2.95 2.93 2.95h10.64c1.62 0 2.93-1.3 2.93-2.94V19.9h28.92c9.4 0 17.06 7.64 17.06 17.05 0 7.85-5.33 14.65-12.97 16.55-1.36.34-2.74.52-4.08.52h-10.64c-1.1 0-2.1.62-2.6 1.6-.5 1-.42 2.17.24 3.07l30.16 41.17c.55.75 1.42 1.2 2.36 1.2h13.22c1.1 0 2.12-.62 2.6-1.6.52-1 .42-2.18-.24-3.07l-21.2-28.92z\"/></svg>
|
||||
\t</a>
|
||||
\t<a class=\"front-end hint--left\" data-hint=\"";
|
||||
// line 14
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.VIEW_SITE_TIP"), "html", null, true);
|
||||
echo "\" target=\"_blank\" href=\"";
|
||||
echo twig_escape_filter($this->env, ($context["base_url_relative_frontend"] ?? null), "html", null, true);
|
||||
echo "\"> <i class=\"fa fa-external-link\"></i></a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 17
|
||||
echo "
|
||||
|
||||
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/logo.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 59 => 17, 51 => 14, 44 => 10, 41 => 9, 33 => 6, 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 config.plugins.admin.logo_text %}
|
||||
<h3>
|
||||
\t<a href=\"{{ base_url_relative }}\">
|
||||
\t\t{{ config.plugins.admin.logo_text }}
|
||||
\t</a>
|
||||
\t<a class=\"front-end hint--left\" data-hint=\"{{ \"PLUGIN_ADMIN.VIEW_SITE_TIP\"|tu }}\" target=\"_blank\" href=\"{{ base_url_relative_frontend }}\"> <i class=\"fa fa-bookmark-o\"></i></a>
|
||||
</h3>
|
||||
{% else %}
|
||||
<div class=\"admin-logo\">
|
||||
\t<a href=\"{{ base_url_relative }}\">
|
||||
\t\t<svg id=\"grav-logo-small\" class=\"grav-logo\" width=\"100%\" height=\"100%\" viewBox=\"0 0 91 103\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;\"><g transform=\"matrix(1,0,0,1,-411.231,-328.021)\"><path d=\"M498.522,382.22L487.883,382.22C486.266,382.22 484.953,383.536 484.953,385.158L484.953,405.594L484.744,405.77C478.482,411.052 470.564,413.956 462.45,413.956C443.311,413.956 427.739,398.384 427.739,379.241C427.739,360.097 443.311,344.527 462.45,344.527C469.893,344.527 477.01,346.883 483.034,351.344C484.203,352.21 485.825,352.091 486.856,351.064L494.441,343.477C495.034,342.888 495.342,342.07 495.294,341.235C495.248,340.4 494.847,339.627 494.189,339.106C485.176,331.956 473.905,328.021 462.45,328.021C434.21,328.021 411.232,350.998 411.232,379.241C411.232,407.485 434.21,430.46 462.45,430.46C477.032,430.46 490.979,424.187 500.713,413.242C501.191,412.705 501.455,412.014 501.455,411.295L501.455,385.158C501.455,383.536 500.142,382.22 498.522,382.22\" style=\"fill-rule:nonzero;\"/></g></svg>
|
||||
\t\t<svg id=\"grav-logo-large\" class=\"grav-logo\" xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" viewBox=\"0 0 444 103\" clip-rule=\"evenodd\"><path d=\"M87.3 54.2H76.64c-1.6 0-2.93 1.3-2.93 2.94v20.43l-.2.18c-6.27 5.28-14.2 8.2-22.3 8.2-19.14-.02-34.7-15.6-34.7-34.73 0-19.14 15.56-34.7 34.7-34.7 7.44 0 14.56 2.34 20.58 6.8 1.17.87 2.8.75 3.83-.28l7.58-7.58c.6-.6.9-1.4.86-2.25-.04-.82-.44-1.6-1.1-2.12C73.94 3.94 62.66 0 51.22 0 22.98 0 0 22.98 0 51.22s22.98 51.22 51.22 51.22c14.58 0 28.53-6.27 38.26-17.22.48-.54.74-1.23.74-1.95V57.14c0-1.63-1.3-2.94-2.93-2.94M443.24 4.7c-.54-.8-1.47-1.3-2.45-1.3h-11.6c-1.16 0-2.22.68-2.68 1.76l-32.65 75.8-33.22-75.82c-.47-1.06-1.53-1.75-2.7-1.75h-11.6c-1 0-1.92.5-2.46 1.32-.55.83-.65 1.87-.24 2.78l40.24 91.8c.47 1.08 1.53 1.77 2.7 1.77h14.65c1.17 0 2.23-.7 2.7-1.77L443.5 7.48c.37-.9.28-1.95-.26-2.77\"/><path d=\"M291.1 5.14c-.48-1.06-1.53-1.75-2.7-1.75h-14.65c-1.17 0-2.23.68-2.7 1.76l-39.53 91.8c-.4.92-.3 1.96.24 2.78.54.83 1.46 1.33 2.45 1.33h11.6c1.16 0 2.22-.7 2.7-1.77l32.62-75.8 33.23 75.8c.47 1.08 1.52 1.77 2.68 1.77h11.63c1 0 1.92-.5 2.45-1.33.56-.83.64-1.88.25-2.8L291.1 5.15zM185.1 67.48l.65-.3c11.56-5.6 19.03-17.45 19.03-30.23 0-18.5-15.05-33.56-33.56-33.56h-42.5c-1.6 0-2.92 1.3-2.92 2.92v91.8c0 1.63 1.3 2.95 2.93 2.95h10.64c1.62 0 2.93-1.3 2.93-2.94V19.9h28.92c9.4 0 17.06 7.64 17.06 17.05 0 7.85-5.33 14.65-12.97 16.55-1.36.34-2.74.52-4.08.52h-10.64c-1.1 0-2.1.62-2.6 1.6-.5 1-.42 2.17.24 3.07l30.16 41.17c.55.75 1.42 1.2 2.36 1.2h13.22c1.1 0 2.12-.62 2.6-1.6.52-1 .42-2.18-.24-3.07l-21.2-28.92z\"/></svg>
|
||||
\t</a>
|
||||
\t<a class=\"front-end hint--left\" data-hint=\"{{ \"PLUGIN_ADMIN.VIEW_SITE_TIP\"|tu }}\" target=\"_blank\" href=\"{{ base_url_relative_frontend }}\"> <i class=\"fa fa-external-link\"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
", "partials/logo.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/partials/logo.html.twig");
|
||||
}
|
||||
}
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/section/section.html.twig */
|
||||
class __TwigTemplate_6786fc3aeae24ca7f1260ac57d19a2fbfa6926b155ea564ea0e3618db9b9ae60 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\Twig\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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/section/section.html.twig");
|
||||
}
|
||||
}
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/text/text.html.twig */
|
||||
class __TwigTemplate_904d607a1dc45d40397a54b54a4486f178eaed587d7081bebb5f5d5a87701313 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\Twig\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\Twig\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/r2c.net/user/plugins/form/templates/forms/fields/text/text.html.twig");
|
||||
}
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
/* partials/messages.html.twig */
|
||||
class __TwigTemplate_6f58fd3d3521dcf77a127627d70f3073695825e03c0e5b9d95256174efa22d9c 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/messages.html.twig");
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
/* partials/javascripts.html.twig */
|
||||
class __TwigTemplate_4e830b743d18ca6c061062841c63c5992bd1354752b960823d1dbd64ed5e9c1e 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/javascripts.html.twig");
|
||||
}
|
||||
}
|
||||
+211
@@ -0,0 +1,211 @@
|
||||
<?php
|
||||
|
||||
/* partials/blueprints.html.twig */
|
||||
class __TwigTemplate_b4a152ec6b59d21a65d2afe64fa80cde0504b368aa8cb7de7b14851245497b04 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/blueprints.html.twig");
|
||||
}
|
||||
}
|
||||
+476
@@ -0,0 +1,476 @@
|
||||
<?php
|
||||
|
||||
/* partials/base.html.twig */
|
||||
class __TwigTemplate_5c1e179e5651a7b19a8394edfa231a502c6da0cec9fc4110f9246f2a43174b55 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_classes' => array($this, 'block_body_classes'),
|
||||
'header' => array($this, 'block_header'),
|
||||
'header_navigation' => array($this, 'block_header_navigation'),
|
||||
'hero' => array($this, 'block_hero'),
|
||||
'body' => array($this, 'block_body'),
|
||||
'messages' => array($this, 'block_messages'),
|
||||
'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["body_classes"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->bodyClassFunc(array(0 => "header-fixed", 1 => "header-animated", 2 => "header-dark", 3 => "header-transparent", 4 => "sticky-footer"));
|
||||
// line 2
|
||||
$context["grid_size"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("grid-size");
|
||||
// line 3
|
||||
$context["compress"] = (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("production_mode")) ? (".min.css") : (".css"));
|
||||
// line 4
|
||||
echo "<!DOCTYPE html>
|
||||
<html lang=\"";
|
||||
// line 5
|
||||
echo (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getActive", array())) ? ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getActive", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "site", array()), "default_lang", array())));
|
||||
echo "\">
|
||||
<head>
|
||||
";
|
||||
// line 7
|
||||
$this->displayBlock('head', $context, $blocks);
|
||||
// line 36
|
||||
echo "</head>
|
||||
<body id=\"top\" class=\"";
|
||||
// line 37
|
||||
$this->displayBlock('body_classes', $context, $blocks);
|
||||
echo "\">
|
||||
<div id=\"page-wrapper\">
|
||||
";
|
||||
// line 39
|
||||
$this->displayBlock('header', $context, $blocks);
|
||||
// line 70
|
||||
echo "
|
||||
";
|
||||
// line 71
|
||||
$this->displayBlock('hero', $context, $blocks);
|
||||
// line 72
|
||||
echo "
|
||||
<section id=\"start\">
|
||||
";
|
||||
// line 74
|
||||
$this->displayBlock('body', $context, $blocks);
|
||||
// line 84
|
||||
echo " </section>
|
||||
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 88
|
||||
$this->displayBlock('footer', $context, $blocks);
|
||||
// line 95
|
||||
echo "
|
||||
|
||||
<div class=\"mobile-container\">
|
||||
<div class=\"overlay\" id=\"overlay\">
|
||||
<div class=\"mobile-logo\">
|
||||
";
|
||||
// line 100
|
||||
$this->loadTemplate("@images/grav-logo.svg", "partials/base.html.twig", 100)->display($context);
|
||||
// line 101
|
||||
echo " </div>
|
||||
<nav class=\"overlay-menu\">
|
||||
";
|
||||
// line 103
|
||||
$this->loadTemplate("partials/navigation.html.twig", "partials/base.html.twig", 103)->display(array_merge($context, array("tree" => true)));
|
||||
// line 104
|
||||
echo " </nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
";
|
||||
// line 108
|
||||
$this->displayBlock('bottom', $context, $blocks);
|
||||
// line 111
|
||||
echo "
|
||||
</body>
|
||||
";
|
||||
}
|
||||
|
||||
// line 7
|
||||
public function block_head($context, array $blocks = array())
|
||||
{
|
||||
// line 8
|
||||
echo " <meta charset=\"utf-8\" />
|
||||
<title>";
|
||||
// line 9
|
||||
if ($this->getAttribute(($context["header"] ?? null), "title", array())) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "title", array()), "html");
|
||||
echo " | ";
|
||||
}
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "title", array()), "html");
|
||||
echo "</title>
|
||||
|
||||
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
|
||||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
|
||||
";
|
||||
// line 13
|
||||
$this->loadTemplate("partials/metadata.html.twig", "partials/base.html.twig", 13)->display($context);
|
||||
// line 14
|
||||
echo "
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"";
|
||||
// line 15
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc("theme://images/favicon.png");
|
||||
echo "\" />
|
||||
<link rel=\"canonical\" href=\"";
|
||||
// line 16
|
||||
echo $this->getAttribute(($context["page"] ?? null), "url", array(0 => true, 1 => true), "method");
|
||||
echo "\" />
|
||||
|
||||
";
|
||||
// line 18
|
||||
$this->displayBlock('stylesheets', $context, $blocks);
|
||||
// line 26
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
|
||||
echo "
|
||||
|
||||
";
|
||||
// line 28
|
||||
$this->displayBlock('javascripts', $context, $blocks);
|
||||
// line 33
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
|
||||
echo "
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
// line 18
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 19
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/spectre" . ($context["compress"] ?? null))), "method");
|
||||
// line 20
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("spectre.exp")) {
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/spectre-exp" . ($context["compress"] ?? null))), "method");
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("spectre.icons")) {
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/spectre-icons" . ($context["compress"] ?? null))), "method");
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/theme" . ($context["compress"] ?? null))), "method");
|
||||
// line 23
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/custom.css"), "method");
|
||||
// line 24
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/line-awesome.min.css"), "method");
|
||||
// line 25
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "jquery", 1 => 101), "method");
|
||||
// line 30
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/jquery.treemenu.js", 1 => array("group" => "bottom")), "method");
|
||||
// line 31
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/site.js", 1 => array("group" => "bottom")), "method");
|
||||
// line 32
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 37
|
||||
public function block_body_classes($context, array $blocks = array())
|
||||
{
|
||||
echo ($context["body_classes"] ?? null);
|
||||
}
|
||||
|
||||
// line 39
|
||||
public function block_header($context, array $blocks = array())
|
||||
{
|
||||
// line 40
|
||||
echo " <section id=\"header\" class=\"section\">
|
||||
<section class=\"container ";
|
||||
// line 41
|
||||
echo ($context["grid_size"] ?? null);
|
||||
echo "\">
|
||||
<nav class=\"navbar\">
|
||||
<section class=\"navbar-section logo\">
|
||||
<a href=\"";
|
||||
// line 44
|
||||
echo ($context["home_url"] ?? null);
|
||||
echo "\" class=\"navbar-brand mr-10\">";
|
||||
$this->loadTemplate("@images/grav-logo.svg", "partials/base.html.twig", 44)->display($context);
|
||||
echo "</a>
|
||||
</section>
|
||||
<section class=\"navbar-section\">
|
||||
|
||||
<nav class=\"dropmenu animated\">
|
||||
";
|
||||
// line 49
|
||||
$this->displayBlock('header_navigation', $context, $blocks);
|
||||
// line 52
|
||||
echo " </nav>
|
||||
|
||||
";
|
||||
// line 54
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "login", array()), "enabled", array()) && $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()))) {
|
||||
// line 55
|
||||
echo " <span class=\"login-status-wrapper\"><i class=\"fa fa-user\"></i> ";
|
||||
$this->loadTemplate("partials/login-status.html.twig", "partials/base.html.twig", 55)->display($context);
|
||||
echo "</span>
|
||||
";
|
||||
}
|
||||
// line 57
|
||||
echo "
|
||||
</section>
|
||||
</nav>
|
||||
</section>
|
||||
</section>
|
||||
<div class=\"mobile-menu\">
|
||||
<div class=\"button_container\" id=\"toggle\">
|
||||
<span class=\"top\"></span>
|
||||
<span class=\"middle\"></span>
|
||||
<span class=\"bottom\"></span>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 49
|
||||
public function block_header_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 50
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/navigation.html.twig", "partials/base.html.twig", 50)->display($context);
|
||||
// line 51
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 71
|
||||
public function block_hero($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 74
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 75
|
||||
echo " <section id=\"body-wrapper\" class=\"section\">
|
||||
<section class=\"container ";
|
||||
// line 76
|
||||
echo ($context["grid_size"] ?? null);
|
||||
echo "\">
|
||||
";
|
||||
// line 77
|
||||
$this->displayBlock('messages', $context, $blocks);
|
||||
// line 80
|
||||
echo " ";
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
// line 81
|
||||
echo " </section>
|
||||
</section>
|
||||
";
|
||||
}
|
||||
|
||||
// line 77
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
// line 78
|
||||
echo " ";
|
||||
try {
|
||||
$this->loadTemplate("partials/messages.html.twig", "partials/base.html.twig", 78)->display($context);
|
||||
} catch (Twig_Error_Loader $e) {
|
||||
// ignore missing template
|
||||
}
|
||||
|
||||
// line 79
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 80
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 88
|
||||
public function block_footer($context, array $blocks = array())
|
||||
{
|
||||
// line 89
|
||||
echo " <section id=\"footer\" class=\"section bg-gray\">
|
||||
<section class=\"container ";
|
||||
// line 90
|
||||
echo ($context["grid_size"] ?? null);
|
||||
echo "\">
|
||||
<p><a href=\"http://getgrav.org\">Grav</a> was <i class=\"fa fa-code\"></i> with <i class=\"fa fa-heart-o pulse \"></i> by <a href=\"https://trilby.media\">Trilby Media</a>.</p>
|
||||
</section>
|
||||
</section>
|
||||
";
|
||||
}
|
||||
|
||||
// line 108
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 109
|
||||
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 ( 331 => 109, 328 => 108, 319 => 90, 316 => 89, 313 => 88, 308 => 80, 304 => 79, 296 => 78, 293 => 77, 287 => 81, 284 => 80, 282 => 77, 278 => 76, 275 => 75, 272 => 74, 267 => 71, 263 => 51, 260 => 50, 257 => 49, 241 => 57, 235 => 55, 233 => 54, 229 => 52, 227 => 49, 217 => 44, 211 => 41, 208 => 40, 205 => 39, 199 => 37, 195 => 32, 192 => 31, 189 => 30, 186 => 29, 183 => 28, 179 => 25, 176 => 24, 173 => 23, 170 => 22, 165 => 21, 160 => 20, 157 => 19, 154 => 18, 146 => 33, 144 => 28, 138 => 26, 136 => 18, 131 => 16, 127 => 15, 124 => 14, 122 => 13, 111 => 9, 108 => 8, 105 => 7, 99 => 111, 97 => 108, 91 => 104, 89 => 103, 85 => 101, 83 => 100, 76 => 95, 74 => 88, 68 => 84, 66 => 74, 62 => 72, 60 => 71, 57 => 70, 55 => 39, 50 => 37, 47 => 36, 45 => 7, 40 => 5, 37 => 4, 35 => 3, 33 => 2, 31 => 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 body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
|
||||
{% set grid_size = theme_var('grid-size') %}
|
||||
{% set compress = theme_var('production_mode') ? '.min.css' : '.css' %}
|
||||
<!DOCTYPE html>
|
||||
<html lang=\"{{ grav.language.getActive ?: grav.config.site.default_lang }}\">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset=\"utf-8\" />
|
||||
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
|
||||
|
||||
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
|
||||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
|
||||
{% include 'partials/metadata.html.twig' %}
|
||||
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"{{ url('theme://images/favicon.png') }}\" />
|
||||
<link rel=\"canonical\" href=\"{{ page.url(true, true) }}\" />
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss('theme://css-compiled/spectre'~compress) %}
|
||||
{% if theme_var('spectre.exp') %}{% do assets.addCss('theme://css-compiled/spectre-exp'~compress) %}{% endif %}
|
||||
{% if theme_var('spectre.icons') %}{% do assets.addCss('theme://css-compiled/spectre-icons'~compress) %}{% endif %}
|
||||
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
|
||||
{% do assets.addCss('theme://css/custom.css') %}
|
||||
{% do assets.addCss('theme://css/line-awesome.min.css') %}
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
|
||||
{% block javascripts %}
|
||||
{% do assets.addJs('jquery', 101) %}
|
||||
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
|
||||
{% endblock %}
|
||||
{{ assets.js() }}
|
||||
|
||||
{% endblock head %}
|
||||
</head>
|
||||
<body id=\"top\" class=\"{% block body_classes %}{{ body_classes }}{% endblock %}\">
|
||||
<div id=\"page-wrapper\">
|
||||
{% block header %}
|
||||
<section id=\"header\" class=\"section\">
|
||||
<section class=\"container {{ grid_size }}\">
|
||||
<nav class=\"navbar\">
|
||||
<section class=\"navbar-section logo\">
|
||||
<a href=\"{{ home_url }}\" class=\"navbar-brand mr-10\">{% include('@images/grav-logo.svg') %}</a>
|
||||
</section>
|
||||
<section class=\"navbar-section\">
|
||||
|
||||
<nav class=\"dropmenu animated\">
|
||||
{% block header_navigation %}
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
{% endblock %}
|
||||
</nav>
|
||||
|
||||
{% if config.plugins.login.enabled and grav.user.username %}
|
||||
<span class=\"login-status-wrapper\"><i class=\"fa fa-user\"></i> {% include 'partials/login-status.html.twig' %}</span>
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
</nav>
|
||||
</section>
|
||||
</section>
|
||||
<div class=\"mobile-menu\">
|
||||
<div class=\"button_container\" id=\"toggle\">
|
||||
<span class=\"top\"></span>
|
||||
<span class=\"middle\"></span>
|
||||
<span class=\"bottom\"></span>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block hero %}{% endblock %}
|
||||
|
||||
<section id=\"start\">
|
||||
{% block body %}
|
||||
<section id=\"body-wrapper\" class=\"section\">
|
||||
<section class=\"container {{ grid_size }}\">
|
||||
{% block messages %}
|
||||
{% include 'partials/messages.html.twig' ignore missing %}
|
||||
{% endblock %}
|
||||
{% block content %}{% endblock %}
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
{% block footer %}
|
||||
<section id=\"footer\" class=\"section bg-gray\">
|
||||
<section class=\"container {{ grid_size }}\">
|
||||
<p><a href=\"http://getgrav.org\">Grav</a> was <i class=\"fa fa-code\"></i> with <i class=\"fa fa-heart-o pulse \"></i> by <a href=\"https://trilby.media\">Trilby Media</a>.</p>
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
<div class=\"mobile-container\">
|
||||
<div class=\"overlay\" id=\"overlay\">
|
||||
<div class=\"mobile-logo\">
|
||||
{% include('@images/grav-logo.svg') %}
|
||||
</div>
|
||||
<nav class=\"overlay-menu\">
|
||||
{% include 'partials/navigation.html.twig' with {tree: true} %}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom') }}
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
", "partials/base.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/partials/base.html.twig");
|
||||
}
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/spacer/spacer.html.twig */
|
||||
class __TwigTemplate_88c61b9b425c988f25dbba9db64146dcb4e6433ca2e3b7e949ab55358998117e 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-spacer ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 2
|
||||
if ($this->getAttribute(($context["field"] ?? null), "title", array())) {
|
||||
// line 3
|
||||
echo " <h3>
|
||||
";
|
||||
// line 4
|
||||
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 5
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "title", array()));
|
||||
} else {
|
||||
// line 7
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "title", array()));
|
||||
}
|
||||
// line 9
|
||||
echo " </h3>
|
||||
";
|
||||
}
|
||||
// line 11
|
||||
echo "
|
||||
";
|
||||
// line 12
|
||||
if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
|
||||
// line 13
|
||||
echo " <p>
|
||||
";
|
||||
// line 14
|
||||
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 15
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "text", array())));
|
||||
} else {
|
||||
// line 17
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "text", array())));
|
||||
}
|
||||
// line 19
|
||||
echo " </p>
|
||||
";
|
||||
} else {
|
||||
// line 21
|
||||
echo " <p>
|
||||
";
|
||||
// line 22
|
||||
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 23
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "text", array()));
|
||||
} else {
|
||||
// line 25
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "text", array()));
|
||||
}
|
||||
// line 27
|
||||
echo " </p>
|
||||
";
|
||||
}
|
||||
// line 29
|
||||
echo "
|
||||
";
|
||||
// line 30
|
||||
if ($this->getAttribute(($context["field"] ?? null), "underline", array())) {
|
||||
// line 31
|
||||
echo " <hr />
|
||||
";
|
||||
}
|
||||
// line 33
|
||||
echo "</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/spacer/spacer.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 85 => 33, 81 => 31, 79 => 30, 76 => 29, 72 => 27, 69 => 25, 66 => 23, 64 => 22, 61 => 21, 57 => 19, 54 => 17, 51 => 15, 49 => 14, 46 => 13, 44 => 12, 41 => 11, 37 => 9, 34 => 7, 31 => 5, 29 => 4, 26 => 3, 24 => 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-spacer {{ field.classes }}\">
|
||||
{% if field.title %}
|
||||
<h3>
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}
|
||||
{{- field.title|tu|raw -}}
|
||||
{% else %}
|
||||
{{- field.title|t|raw -}}
|
||||
{% endif %}
|
||||
</h3>
|
||||
{% endif %}
|
||||
|
||||
{% if field.markdown %}
|
||||
<p>
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}
|
||||
{{- field.text|tu|markdown|raw -}}
|
||||
{% else %}
|
||||
{{- field.text|t|markdown|raw -}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}
|
||||
{{- field.text|tu|raw -}}
|
||||
{% else %}
|
||||
{{- field.text|t|raw -}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if field.underline %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
", "forms/fields/spacer/spacer.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/form/templates/forms/fields/spacer/spacer.html.twig");
|
||||
}
|
||||
}
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/columns/columns.html.twig */
|
||||
class __TwigTemplate_0ff56dad288d0fa61c39617dbdd8cc18e26947e034dbd674c140c06914df2870 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/columns/columns.html.twig");
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
/* partials/blueprints-new.html.twig */
|
||||
class __TwigTemplate_abf39275bee51c3ee4e3e299cef4a80b22f59c45b9cea9a473a48aed9b41351f 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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/partials/blueprints-new.html.twig");
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
/* partials/blueprints-new-folder.html.twig */
|
||||
class __TwigTemplate_487cc382211de17265e423b41f783e1595418b7f9b72c030e94769633d28b348 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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/partials/blueprints-new-folder.html.twig");
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/* empty.html.twig */
|
||||
class __TwigTemplate_fff920e54d567dfd249ebe0b51600d3bf47a4faed5efee4e2c20c99e8cde17cc 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/r2c.net/user/plugins/admin/themes/grav/templates/empty.html.twig");
|
||||
}
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
/* partials/javascript-config.html.twig */
|
||||
class __TwigTemplate_dfe125cbb1182c490e4498ba8ce7975508e34ebec3822203201590c36ebf9484 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/javascript-config.html.twig");
|
||||
}
|
||||
}
|
||||
+223
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/checkboxes/checkboxes.html.twig */
|
||||
class __TwigTemplate_0c508ca0ab264bd1a8250dad1d69a585e126484547edf7426c705c79328e58c8 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/r2c.net/user/plugins/form/templates/forms/fields/checkboxes/checkboxes.html.twig");
|
||||
}
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
/* modular/text.html.twig */
|
||||
class __TwigTemplate_44887039fe09cb2db34f737138845bb2076ba80ead18245c9f02d87167146bfc 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["grid_size"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("grid-size");
|
||||
// line 2
|
||||
$context["image"] = twig_first($this->env, $this->getAttribute($this->getAttribute(($context["page"] ?? null), "media", array()), "images", array()));
|
||||
// line 3
|
||||
echo "
|
||||
<section id=\"modular-text\" class=\"section ";
|
||||
// line 4
|
||||
echo $this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", array()), "class", array());
|
||||
echo " bg-gray\">
|
||||
<section class=\"container ";
|
||||
// line 5
|
||||
echo ($context["grid_size"] ?? null);
|
||||
echo "\">
|
||||
<div class=\"columns\">
|
||||
<div class=\"column col-6 col-md-12\">
|
||||
";
|
||||
// line 8
|
||||
echo ($context["content"] ?? null);
|
||||
echo "
|
||||
</div>
|
||||
<div class=\"column col-6 col-md-12\">
|
||||
";
|
||||
// line 11
|
||||
if (($context["image"] ?? null)) {
|
||||
// line 12
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["image"] ?? null), "html", array(0 => "", 1 => "", 2 => ("align-" . $this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", array()), "image_align", array()))), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " </div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular/text.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 50 => 14, 44 => 12, 42 => 11, 36 => 8, 30 => 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 grid_size = theme_var('grid-size') %}
|
||||
{% set image = page.media.images|first %}
|
||||
|
||||
<section id=\"modular-text\" class=\"section {{ page.header.class}} bg-gray\">
|
||||
<section class=\"container {{ grid_size }}\">
|
||||
<div class=\"columns\">
|
||||
<div class=\"column col-6 col-md-12\">
|
||||
{{ content }}
|
||||
</div>
|
||||
<div class=\"column col-6 col-md-12\">
|
||||
{% if image %}
|
||||
{{ image.html('','','align-'~page.header.image_align) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
", "modular/text.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/modular/text.html.twig");
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/* @Page:/mnt/data/Sites/r2c.net/user/plugins/error/pages */
|
||||
class __TwigTemplate_f5086f426c811e5ee7f35b4c9ea7bbdd4617268c4e5d8d92dd6df80595f6d2f8 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/r2c.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/r2c.net/user/plugins/error/pages", "");
|
||||
}
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/taxonomy/taxonomy.html.twig */
|
||||
class __TwigTemplate_fe723d9198ec273b8789299a5192f3316351724a13aed5f3c90cbee18ba06931 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
|
||||
$context["options"] = $this->getAttribute(($context["field"] ?? null), "options", array());
|
||||
// line 4
|
||||
$context["default"] = $this->getAttribute(($context["field"] ?? null), "default", array());
|
||||
// line 5
|
||||
echo "
|
||||
";
|
||||
// line 6
|
||||
$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 7
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
$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"), ((($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array", true, true) && !(null === $this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")))) ? ($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")) : (array())))) : (((($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array", true, true) && !(null === $this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")))) ? ($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")) : (array())))));
|
||||
// line 9
|
||||
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 10
|
||||
echo " ";
|
||||
$context["list"] = array_unique(twig_array_merge(twig_array_merge(((($this->getAttribute(($context["options"] ?? null), $context["name"], array(), "array", true, true) && !(null === $this->getAttribute(($context["options"] ?? null), $context["name"], array(), "array")))) ? ($this->getAttribute(($context["options"] ?? null), $context["name"], array(), "array")) : (array())), ($context["sub_taxonomies"] ?? null)), ($context["value"] ?? null)));
|
||||
// line 11
|
||||
echo "
|
||||
";
|
||||
// line 12
|
||||
$context["field"] = array("type" => "select", "classes" => "fancy create", "label" => twig_capitalize_string_filter($this->env, // line 15
|
||||
$context["name"]), "name" => (( // line 16
|
||||
($context["parentname"] ?? null) . ".") . $context["name"]), "multiple" => true, "options" => // line 18
|
||||
($context["list"] ?? null), "style" => $this->getAttribute( // line 19
|
||||
($context["field"] ?? null), "style", array()), "selectize" => array("create" => true));
|
||||
// line 24
|
||||
echo "
|
||||
";
|
||||
// line 25
|
||||
$this->loadTemplate(array(0 => "forms/fields/select/select.html.twig"), "forms/fields/taxonomy/taxonomy.html.twig", 25)->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 ( 70 => 25, 67 => 24, 65 => 19, 64 => 18, 63 => 16, 62 => 15, 61 => 12, 58 => 11, 55 => 10, 52 => 9, 50 => 8, 47 => 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 taxonomies = (taxonomies is null ? (field.taxonomies ? field.taxonomies : admin.data('config/site').taxonomies) : taxonomies) %}
|
||||
{% set parentname = field.name %}
|
||||
{% set options = field.options %}
|
||||
{% set default = field.default %}
|
||||
|
||||
{% for name in taxonomies %}
|
||||
|
||||
{% set value = array(data.value('header.taxonomy.' ~ name)|default(default[name] ?? [])) %}
|
||||
{% set sub_taxonomies = attribute(grav.taxonomy.taxonomy, name)|default([])|keys %}
|
||||
{% set list = (options[name] ?? [])|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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/taxonomy/taxonomy.html.twig");
|
||||
}
|
||||
}
|
||||
+270
@@ -0,0 +1,270 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/tabs/tabs.html.twig */
|
||||
class __TwigTemplate_95afabace3ae46227c43fbb9c00185f369c397df4c2e08a1c977617976caaff9 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 "\" 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\Twig\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' : '' }}\" 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/tabs/tabs.html.twig");
|
||||
}
|
||||
}
|
||||
+1612
File diff suppressed because it is too large
Load Diff
+53
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-user-avatar.html.twig */
|
||||
class __TwigTemplate_c33c8f26fc70e7fc583e6966be7bde47ecbe57d57d8ad7c03e3fa753bedc4d00 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/nav-user-avatar.html.twig");
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
/* partials/stylesheets.html.twig */
|
||||
class __TwigTemplate_78dd9291fa1d8f949a9dfc162cf836988a6bc0b78b03236d7a2aa0d3f4779727 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/") . ($context["icon_style"] ?? null)) . ".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/'~icon_style~'.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/r2c.net/user/plugins/admin/themes/grav/templates/partials/stylesheets.html.twig");
|
||||
}
|
||||
}
|
||||
+274
@@ -0,0 +1,274 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/order/order.html.twig */
|
||||
class __TwigTemplate_9e9d1b57d128a064b4334edcbe2560064b5b53138be5dd0842c615cfbe981ff2 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\Twig\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\Twig\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\Twig\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\Twig\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\Twig\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>";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.UNSORTABLE_PAGES"), "html", null, true);
|
||||
echo "</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\Twig\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\Twig\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 ( 190 => 49, 184 => 47, 181 => 46, 177 => 44, 163 => 42, 158 => 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>{{ \"PLUGIN_ADMIN.UNSORTABLE_PAGES\"|tu }}</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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/order/order.html.twig");
|
||||
}
|
||||
}
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/parents/parents.html.twig */
|
||||
class __TwigTemplate_50c4e0a26b08bb578e1808433f01cecb36cbee7c7020019675a44fa0a8d514b5 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["limit_levels_val"] = $this->getAttribute(($context["config"] ?? null), "get", array(0 => "plugins.admin.pages.parents_levels"), "method");
|
||||
// line 16
|
||||
echo "
|
||||
";
|
||||
// line 17
|
||||
$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), "limit_levels" => ($context["limit_levels_val"] ?? null));
|
||||
// line 18
|
||||
echo " ";
|
||||
$context["field"] = twig_array_merge(($context["field"] ?? null), ($context["defaults"] ?? null));
|
||||
// line 19
|
||||
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 ( 73 => 19, 70 => 18, 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 limit_levels_val = config.get('plugins.admin.pages.parents_levels') %}
|
||||
|
||||
{% set defaults = {show_root:true, show_all:true, show_slug:show_slug_val, show_fullpath:show_fullpath_val, default:last_page_route, limit_levels:limit_levels_val} %}
|
||||
{% set field = field|merge(defaults) %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
", "forms/fields/parents/parents.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/parents/parents.html.twig");
|
||||
}
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/tab/tab.html.twig */
|
||||
class __TwigTemplate_18356711be726929fce1439e55fdf180be60a86be49e0cbd48cbf25d5dd56bcf 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/tab/tab.html.twig");
|
||||
}
|
||||
}
|
||||
+842
@@ -0,0 +1,842 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/list/list.html.twig */
|
||||
class __TwigTemplate_2c5e0d204ff879a907326b7b33785dbeea7606bacd52cebe4bcab6546177060a 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_e408f6e41354bae6411f4fb2bf2e9ca816e0821165964d2e30246de2e260224d' => array($this, 'block___internal_e408f6e41354bae6411f4fb2bf2e9ca816e0821165964d2e30246de2e260224d'),
|
||||
);
|
||||
}
|
||||
|
||||
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\Twig\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\Twig\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\Twig\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\">
|
||||
";
|
||||
// line 49
|
||||
if (($context["collapsible"] ?? null)) {
|
||||
// line 50
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"expand_all\"
|
||||
";
|
||||
// line 51
|
||||
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\Twig\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 53
|
||||
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\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.COLLAPSE_ALL")), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 55
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
|
||||
// line 56
|
||||
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 57
|
||||
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\Twig\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 59
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"add\" data-action-add=\"bottom\"
|
||||
";
|
||||
// line 60
|
||||
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\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnLabel"] ?? null))), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 63
|
||||
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 64
|
||||
if (($this->getAttribute(($context["field"] ?? null), "sort", array()) === false)) {
|
||||
// line 65
|
||||
echo " data-collection-nosort
|
||||
";
|
||||
}
|
||||
// line 66
|
||||
echo ">
|
||||
";
|
||||
// line 67
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 68
|
||||
echo " ";
|
||||
$context["collapsible"] = ((twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "fields", array())) > 1) && ( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array())));
|
||||
// line 69
|
||||
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 70
|
||||
echo " ";
|
||||
$context["itemName"] = ((($context["name"] ?? null)) ? (((($context["name"] ?? null) . ".") . $context["key"])) : ($context["key"]));
|
||||
// line 71
|
||||
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 (((($context["collapsible"] ?? null) && $this->getAttribute(($context["field"] ?? null), "collapsed", array()))) ? ("collection-collapsed") : (""));
|
||||
echo "\">
|
||||
<div class=\"collection-sort\"><i class=\"fa fa-fw fa-bars\"></i></div>
|
||||
";
|
||||
// line 73
|
||||
$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 74
|
||||
if (($context["childName"] == "value")) {
|
||||
// line 75
|
||||
$context["childKey"] = "";
|
||||
// line 76
|
||||
echo " ";
|
||||
$context["childValue"] = $context["val"];
|
||||
// line 77
|
||||
echo " ";
|
||||
$context["childName"] = ($context["itemName"] ?? null);
|
||||
} elseif ((is_string($__internal_7cd7461123377b8c9c1b6a01f46c7bbd94bd12e59266005df5e93029ddbc0ec5 = // line 78
|
||||
$context["childName"]) && is_string($__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a = ".") && ('' === $__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a || 0 === strpos($__internal_7cd7461123377b8c9c1b6a01f46c7bbd94bd12e59266005df5e93029ddbc0ec5, $__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a)))) {
|
||||
// line 79
|
||||
$context["childKey"] = twig_trim_filter($context["childName"], ".");
|
||||
// line 80
|
||||
echo " ";
|
||||
$context["childValue"] = $this->getAttribute($context["val"], twig_slice($this->env, $context["childName"], 1, null), array(), "array");
|
||||
// line 81
|
||||
echo " ";
|
||||
$context["childName"] = (($context["itemName"] ?? null) . $context["childName"]);
|
||||
// line 82
|
||||
echo " ";
|
||||
} else {
|
||||
// line 83
|
||||
echo " ";
|
||||
$context["childKey"] = $context["childName"];
|
||||
// line 84
|
||||
echo " ";
|
||||
$context["childValue"] = $this->getAttribute(($context["data"] ?? null), "value", array(0 => (($context["scope"] ?? null) . $context["childName"])), "method");
|
||||
// line 85
|
||||
echo " ";
|
||||
$context["childName"] = twig_replace_filter($context["childName"], array("*" => $context["key"]));
|
||||
// line 86
|
||||
echo " ";
|
||||
}
|
||||
// line 87
|
||||
echo " ";
|
||||
$context["child"] = twig_array_merge($context["child"], array("name" => $context["childName"]));
|
||||
// line 88
|
||||
echo "
|
||||
";
|
||||
// line 89
|
||||
if (($this->getAttribute($context["child"], "type", array()) == "key")) {
|
||||
// line 90
|
||||
echo " ";
|
||||
// line 91
|
||||
$this->loadTemplate("forms/fields/key/key.html.twig", "forms/fields/list/list.html.twig", 91)->display(array_merge($context, array("field" => // line 92
|
||||
$context["child"], "value" => $context["key"])));
|
||||
// line 94
|
||||
echo " ";
|
||||
} elseif (($this->getAttribute($context["child"], "key", array()) == true)) {
|
||||
// line 95
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 96
|
||||
$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", 95)->display(array_merge($context, array("field" => // line 98
|
||||
$context["child"], "value" => $context["key"])));
|
||||
// line 100
|
||||
echo " ";
|
||||
} elseif ($this->getAttribute($context["child"], "type", array())) {
|
||||
// line 101
|
||||
echo " ";
|
||||
$context["originalValue"] = ($context["childValue"] ?? null);
|
||||
// line 102
|
||||
echo " ";
|
||||
// line 103
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 104
|
||||
$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", 103)->display(array_merge($context, array("field" => // line 106
|
||||
$context["child"], "value" => ($context["childValue"] ?? null))));
|
||||
// line 108
|
||||
echo " ";
|
||||
}
|
||||
// line 109
|
||||
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 110
|
||||
echo " <div class=\"item-actions\">
|
||||
";
|
||||
// line 111
|
||||
if (($context["collapsible"] ?? null)) {
|
||||
// line 112
|
||||
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 115
|
||||
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 119
|
||||
echo " ";
|
||||
}
|
||||
// line 120
|
||||
echo " </ul>
|
||||
";
|
||||
// line 121
|
||||
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "bottom", 1 => "both"))) {
|
||||
// line 122
|
||||
echo " <div class=\"collection-actions\">
|
||||
";
|
||||
// line 123
|
||||
if (($context["collapsible"] ?? null)) {
|
||||
// line 124
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"expand_all\"
|
||||
";
|
||||
// line 125
|
||||
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\Twig\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 127
|
||||
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\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.COLLAPSE_ALL")), "html", null, true);
|
||||
echo "</button>
|
||||
";
|
||||
}
|
||||
// line 129
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
|
||||
// line 130
|
||||
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 131
|
||||
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\Twig\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 133
|
||||
echo " <button class=\"button\" type=\"button\" data-action=\"add\" data-action-add=\"bottom\"
|
||||
";
|
||||
// line 134
|
||||
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\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnLabel"] ?? null))), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 138
|
||||
$context["itemName"] = ((($context["name"] ?? null)) ? ((($context["name"] ?? null) . ".*")) : ("*"));
|
||||
// line 139
|
||||
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_e408f6e41354bae6411f4fb2bf2e9ca816e0821165964d2e30246de2e260224d", $context, $blocks), array(" " => " ", "
|
||||
" => " ")), "html_attr");
|
||||
// line 188
|
||||
echo "\"></div>
|
||||
|
||||
<div style=\"display: none;\" data-collection-config=\"";
|
||||
// line 190
|
||||
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 139
|
||||
public function block___internal_e408f6e41354bae6411f4fb2bf2e9ca816e0821165964d2e30246de2e260224d($context, array $blocks = array())
|
||||
{
|
||||
// line 140
|
||||
echo "<li data-collection-item=\"";
|
||||
echo twig_escape_filter($this->env, ($context["itemName"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 141
|
||||
if ( !($this->getAttribute(($context["field"] ?? null), "sort", array()) === false)) {
|
||||
// line 142
|
||||
echo " <div class=\"collection-sort\"><i class=\"fa fa-fw fa-bars\"></i></div>
|
||||
";
|
||||
}
|
||||
// line 144
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 145
|
||||
$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 146
|
||||
if (($context["childName"] == "value")) {
|
||||
// line 147
|
||||
$context["childKey"] = "";
|
||||
// line 148
|
||||
$context["childName"] = ($context["itemName"] ?? null);
|
||||
} elseif ((is_string($__internal_b0b3d6199cdf4d15a08b3fb98fe017ecb01164300193d18d78027218d843fc57 = // line 149
|
||||
$context["childName"]) && is_string($__internal_81ccf322d0988ca0aa9ae9943d772c435c5ff01fb50b956278e245e40ae66ab9 = ".") && ('' === $__internal_81ccf322d0988ca0aa9ae9943d772c435c5ff01fb50b956278e245e40ae66ab9 || 0 === strpos($__internal_b0b3d6199cdf4d15a08b3fb98fe017ecb01164300193d18d78027218d843fc57, $__internal_81ccf322d0988ca0aa9ae9943d772c435c5ff01fb50b956278e245e40ae66ab9)))) {
|
||||
// line 150
|
||||
$context["childKey"] = twig_trim_filter($context["childName"], ".");
|
||||
// line 151
|
||||
$context["childName"] = (($context["itemName"] ?? null) . $context["childName"]);
|
||||
} else {
|
||||
// line 153
|
||||
$context["childKey"] = $context["childName"];
|
||||
// line 154
|
||||
$context["childName"] = twig_replace_filter($context["childName"], array("*" => ($context["key"] ?? null)));
|
||||
}
|
||||
// line 156
|
||||
$context["child"] = twig_array_merge($context["child"], array("name" => $context["childName"]));
|
||||
// line 158
|
||||
if (($this->getAttribute($context["child"], "type", array()) == "key")) {
|
||||
// line 160
|
||||
$this->loadTemplate("forms/fields/key/key.html.twig", "forms/fields/list/list.html.twig", 160)->display(array_merge($context, array("field" => // line 161
|
||||
$context["child"], "value" => null)));
|
||||
} elseif (($this->getAttribute( // line 163
|
||||
$context["child"], "key", array()) == true)) {
|
||||
// line 165
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 166
|
||||
$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", 165)->display(array_merge($context, array("field" => // line 168
|
||||
$context["child"], "value" => null)));
|
||||
} elseif ($this->getAttribute( // line 170
|
||||
$context["child"], "type", array())) {
|
||||
// line 172
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 173
|
||||
$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", 172)->display(array_merge($context, array("field" => // line 175
|
||||
$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 179
|
||||
echo " <div class=\"item-actions\">
|
||||
";
|
||||
// line 180
|
||||
if (($context["collapsible"] ?? null)) {
|
||||
// line 181
|
||||
echo " <i class=\"fa fa-chevron-circle-down\" data-action=\"collapse\"></i>
|
||||
<br />
|
||||
";
|
||||
}
|
||||
// line 184
|
||||
echo " <i class=\"fa fa-trash-o\" data-action=\"delete\"></i>
|
||||
</div>";
|
||||
}
|
||||
// line 187
|
||||
echo "</li>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/list/list.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 618 => 187, 614 => 184, 609 => 181, 607 => 180, 604 => 179, 589 => 175, 588 => 173, 587 => 172, 585 => 170, 583 => 168, 582 => 166, 581 => 165, 579 => 163, 577 => 161, 576 => 160, 574 => 158, 572 => 156, 569 => 154, 567 => 153, 564 => 151, 562 => 150, 560 => 149, 558 => 148, 556 => 147, 554 => 146, 537 => 145, 535 => 144, 531 => 142, 529 => 141, 524 => 140, 521 => 139, 515 => 35, 511 => 34, 506 => 33, 503 => 32, 495 => 190, 491 => 188, 487 => 139, 485 => 138, 475 => 134, 472 => 133, 459 => 131, 450 => 130, 447 => 129, 438 => 127, 429 => 125, 426 => 124, 424 => 123, 421 => 122, 419 => 121, 416 => 120, 413 => 119, 396 => 115, 387 => 112, 385 => 111, 382 => 110, 368 => 109, 365 => 108, 363 => 106, 362 => 104, 361 => 103, 359 => 102, 356 => 101, 353 => 100, 351 => 98, 350 => 96, 348 => 95, 345 => 94, 343 => 92, 342 => 91, 340 => 90, 338 => 89, 335 => 88, 332 => 87, 329 => 86, 326 => 85, 323 => 84, 320 => 83, 317 => 82, 314 => 81, 311 => 80, 309 => 79, 307 => 78, 304 => 77, 301 => 76, 299 => 75, 297 => 74, 280 => 73, 270 => 71, 267 => 70, 249 => 69, 246 => 68, 244 => 67, 241 => 66, 237 => 65, 235 => 64, 224 => 63, 214 => 60, 211 => 59, 198 => 57, 189 => 56, 186 => 55, 177 => 53, 168 => 51, 165 => 50, 163 => 49, 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\">
|
||||
{% if 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 %}
|
||||
<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 %}
|
||||
{% set collapsible = field.fields|length > 1 and (field.collapsible is not defined or field.collapsible) %}
|
||||
{% for key, val in value %}
|
||||
{% set itemName = name ? name ~ '.' ~ key : key %}
|
||||
<li data-collection-item=\"{{ itemName }}\" data-collection-key=\"{{ key }}\" class=\"{{ 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 == 'value' -%}
|
||||
{% set childKey = '' %}
|
||||
{% set childValue = val %}
|
||||
{% set childName = itemName -%}
|
||||
{%- elseif 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 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 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 == 'value' -%}
|
||||
{%- set childKey = '' -%}
|
||||
{%- set childName = itemName -%}
|
||||
{%- elseif 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 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", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/list/list.html.twig");
|
||||
}
|
||||
}
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/iconpicker/iconpicker.html.twig */
|
||||
class __TwigTemplate_e83861a9e85ee644597ae592da70c7ccf8834f4098a3046400a6187092ea9f4e extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/iconpicker/iconpicker.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'global_attributes' => array($this, 'block_global_attributes'),
|
||||
'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["originalValue"] = ((array_key_exists("originalValue", $context)) ? (($context["originalValue"] ?? null)) : (($context["value"] ?? null)));
|
||||
// line 3
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 5
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 6
|
||||
echo " data-grav-iconpicker
|
||||
data-name=\"";
|
||||
// line 7
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true);
|
||||
echo "\"
|
||||
data-value=\"";
|
||||
// line 8
|
||||
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 9
|
||||
$this->displayParentBlock("global_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 12
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 13
|
||||
echo " <div class=\"form-list-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\" data-type=\"collection\">
|
||||
<div class=\"icon-picker\" data-pickerid=\"fa\" data-iconsets='{\"fa\":\"FontAwesome Icons\"}'>
|
||||
<input
|
||||
";
|
||||
// line 17
|
||||
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 "\"
|
||||
data-format=\"";
|
||||
// line 18
|
||||
echo ((($this->getAttribute(($context["field"] ?? null), "format", array()) == "short")) ? ("short") : ("long"));
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 19
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
|
||||
echo "\"
|
||||
type=\"text\"
|
||||
";
|
||||
// line 22
|
||||
echo " ";
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 34
|
||||
echo " />
|
||||
</div>
|
||||
|
||||
<div class=\"fa-set icon-set\">
|
||||
<ul>
|
||||
";
|
||||
// line 39
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["fa_icons"] ?? null));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["icon"]) {
|
||||
// line 40
|
||||
echo " <li data-code=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["icon"], "unicode", array()), "html", null, true);
|
||||
echo "\" data-class=\"fa fa-";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["icon"], "id", array()), "html", null, true);
|
||||
echo "\" class=\"fa fa-";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["icon"], "id", array()), "html", null, true);
|
||||
echo "\"></li>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['icon'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 42
|
||||
echo " </ul>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 22
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 23
|
||||
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 24
|
||||
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 25
|
||||
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 26
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "disabled", array())) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 27
|
||||
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 28
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 29
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 30
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 31
|
||||
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 32
|
||||
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 33
|
||||
echo " ";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/iconpicker/iconpicker.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 176 => 33, 171 => 32, 164 => 31, 159 => 30, 154 => 29, 149 => 28, 142 => 27, 137 => 26, 130 => 25, 123 => 24, 116 => 23, 113 => 22, 106 => 42, 93 => 40, 89 => 39, 82 => 34, 79 => 22, 74 => 19, 70 => 18, 65 => 17, 58 => 13, 55 => 12, 49 => 9, 45 => 8, 41 => 7, 38 => 6, 35 => 5, 31 => 1, 29 => 3, 27 => 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 originalValue = originalValue is defined ? originalValue : value %}
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
|
||||
{% block global_attributes %}
|
||||
data-grav-iconpicker
|
||||
data-name=\"{{field.name}}\"
|
||||
data-value=\"{{value}}\"
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-list-wrapper {{ field.size }}\" data-type=\"collection\">
|
||||
<div class=\"icon-picker\" data-pickerid=\"fa\" data-iconsets='{\"fa\":\"FontAwesome Icons\"}'>
|
||||
<input
|
||||
{# required attribute structures #}
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
data-format=\"{{ field.format == 'short' ? 'short' : 'long' }}\"
|
||||
value=\"{{ value|raw|join(', ') }}\"
|
||||
type=\"text\"
|
||||
{# 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 %}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 %}
|
||||
{% endblock %}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class=\"fa-set icon-set\">
|
||||
<ul>
|
||||
{% for icon in fa_icons %}
|
||||
<li data-code=\"{{icon.unicode}}\" data-class=\"fa fa-{{icon.id}}\" class=\"fa fa-{{icon.id}}\"></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/iconpicker/iconpicker.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/iconpicker/iconpicker.html.twig");
|
||||
}
|
||||
}
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/datetime/datetime.html.twig */
|
||||
class __TwigTemplate_291f3272dbf79a80c34f89c78f19d855cb8c87d720ca866bd4ef52cc7983cd1b extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/datetime/datetime.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input' => array($this, 'block_input'),
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
|
||||
// line 4
|
||||
$context["default_php_dateformat"] = $this->getAttribute(($context["admin"] ?? null), "guessDateFormat", array(0 => ($context["value"] ?? null)), "method");
|
||||
// line 5
|
||||
$context["php_dateformat"] = (($this->getAttribute(($context["field"] ?? null), "format", array())) ? ($this->getAttribute(($context["field"] ?? null), "format", array())) : ((($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "dateformat", array())) ? ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "dateformat", array())) : ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "dateformat", array()), "default", array())) ? ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "dateformat", array()), "default", array())) : (($context["default_php_dateformat"] ?? null)))))));
|
||||
// line 6
|
||||
$context["js_dateformat"] = $this->getAttribute(($context["admin"] ?? null), "dateformatToMomentJS", array(0 => ($context["php_dateformat"] ?? null)), "method");
|
||||
// line 7
|
||||
$context["value"] = (((null === ($context["value"] ?? null))) ? (($context["value"] ?? null)) : (twig_date_format_filter($this->env, ($context["value"] ?? null), ($context["php_dateformat"] ?? null))));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo "<div class=\"form-input-wrapper datetime-picker-wrapper ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\">
|
||||
<input
|
||||
name=\"";
|
||||
// line 12
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 13
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 14
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 21
|
||||
echo " />
|
||||
<span class=\"field-icons\">
|
||||
<i class=\"fa fa-fw fa-calendar\"></i>
|
||||
</span>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 14
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 15
|
||||
echo " type=\"text\"
|
||||
data-grav-datetime=\"";
|
||||
// line 16
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("format" => ($context["js_dateformat"] ?? null))), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
// line 17
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) {
|
||||
echo "min=\"";
|
||||
echo twig_escape_filter($this->env, (((null === $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) : (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()), ($context["php_dateformat"] ?? null)))), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 18
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) {
|
||||
echo "max=\"";
|
||||
echo twig_escape_filter($this->env, (((null === $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) : (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()), ($context["php_dateformat"] ?? null)))), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/datetime/datetime.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 91 => 19, 84 => 18, 78 => 17, 74 => 16, 71 => 15, 68 => 14, 59 => 21, 57 => 14, 53 => 13, 49 => 12, 43 => 10, 40 => 9, 36 => 1, 34 => 7, 32 => 6, 30 => 5, 28 => 4, 26 => 3, 11 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("{% extends \"forms/field.html.twig\" %}
|
||||
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
{% set default_php_dateformat = admin.guessDateFormat(value) %}
|
||||
{% set php_dateformat = field.format ?: admin.page.dateformat ?: config.system.pages.dateformat.default ?: default_php_dateformat %}
|
||||
{% set js_dateformat = admin.dateformatToMomentJS(php_dateformat) %}
|
||||
{% set value = (value is null ? value : value|date(php_dateformat)) %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"form-input-wrapper datetime-picker-wrapper {{ field.size }}\">
|
||||
<input
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
value=\"{{ value|raw|join(', ') }}\"
|
||||
{% block input_attributes %}
|
||||
type=\"text\"
|
||||
data-grav-datetime=\"{{ {'format': js_dateformat} | json_encode | e('html_attr') }}\"
|
||||
{% if field.validate.min %}min=\"{{ (field.validate.min is null ? field.validate.min : field.validate.min|date(php_dateformat)) }}\"{% endif %}
|
||||
{% if field.validate.max %}max=\"{{ (field.validate.max is null ? field.validate.max : field.validate.max|date(php_dateformat)) }}\"{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
/>
|
||||
<span class=\"field-icons\">
|
||||
<i class=\"fa fa-fw fa-calendar\"></i>
|
||||
</span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/datetime/datetime.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/datetime/datetime.html.twig");
|
||||
}
|
||||
}
|
||||
+557
@@ -0,0 +1,557 @@
|
||||
<?php
|
||||
|
||||
/* partials/base-root.html.twig */
|
||||
class __TwigTemplate_907091a5cedc39f0ac2cd7a8170cfa7e99126a96260dde8037535b52841fb3c8 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
'head' => array($this, 'block_head'),
|
||||
'stylesheets' => array($this, 'block_stylesheets'),
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'body' => array($this, 'block_body'),
|
||||
'page' => array($this, 'block_page'),
|
||||
'navigation' => array($this, 'block_navigation'),
|
||||
'titlebar' => array($this, 'block_titlebar'),
|
||||
'content_wrapper' => array($this, 'block_content_wrapper'),
|
||||
'messages' => array($this, 'block_messages'),
|
||||
'widgets' => array($this, 'block_widgets'),
|
||||
'content_top' => array($this, 'block_content_top'),
|
||||
'content' => array($this, 'block_content'),
|
||||
'content_bottom' => array($this, 'block_content_bottom'),
|
||||
'footer' => array($this, 'block_footer'),
|
||||
'modals' => array($this, 'block_modals'),
|
||||
'bottom' => array($this, 'block_bottom'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if (($this->getAttribute(($context["uri"] ?? null), "extension", array(), "method") == "json")) {
|
||||
$this->loadTemplate("default.json.twig", "partials/base-root.html.twig", 1)->display($context);
|
||||
} else {
|
||||
// line 2
|
||||
echo " ";
|
||||
$context["icon_style"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "admin_icons", array());
|
||||
// line 3
|
||||
echo " <!DOCTYPE html>
|
||||
<html lang=\"en\">
|
||||
<head>
|
||||
";
|
||||
// line 6
|
||||
$this->displayBlock('head', $context, $blocks);
|
||||
// line 33
|
||||
echo " </head>
|
||||
";
|
||||
// line 34
|
||||
$this->displayBlock('body', $context, $blocks);
|
||||
// line 122
|
||||
echo " </html>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function block_head($context, array $blocks = array())
|
||||
{
|
||||
// line 7
|
||||
echo " <meta charset=\"utf-8\" />
|
||||
<title>";
|
||||
// line 8
|
||||
if (($context["title"] ?? null)) {
|
||||
echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
|
||||
echo " | ";
|
||||
} else {
|
||||
if ($this->getAttribute(($context["header"] ?? null), "title", array())) {
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "title", array()), "html", null, true);
|
||||
echo " | ";
|
||||
}
|
||||
}
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "title", array()), "html", null, true);
|
||||
echo "</title>
|
||||
";
|
||||
// line 9
|
||||
if ($this->getAttribute(($context["header"] ?? null), "description", array())) {
|
||||
// line 10
|
||||
echo " <meta name=\"description\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "description", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
} else {
|
||||
// line 12
|
||||
echo " <meta name=\"description\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "description", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["header"] ?? null), "robots", array())) {
|
||||
// line 15
|
||||
echo " <meta name=\"robots\" content=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "robots", array()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
} else {
|
||||
// line 17
|
||||
echo " <meta name=\"robots\" content=\"noindex, nofollow\">
|
||||
";
|
||||
}
|
||||
// line 19
|
||||
echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, ($context["base_url_simple"] ?? null), "html", null, true);
|
||||
echo twig_escape_filter($this->env, ($context["theme_url"] ?? null), "html", null, true);
|
||||
echo "/images/favicon.png\">
|
||||
|
||||
";
|
||||
// line 22
|
||||
$this->displayBlock('stylesheets', $context, $blocks);
|
||||
// line 26
|
||||
echo "
|
||||
";
|
||||
// line 27
|
||||
$this->loadTemplate("partials/javascript-config.html.twig", "partials/base-root.html.twig", 27)->display($context);
|
||||
// line 28
|
||||
echo " ";
|
||||
$this->displayBlock('javascripts', $context, $blocks);
|
||||
// line 32
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 22
|
||||
public function block_stylesheets($context, array $blocks = array())
|
||||
{
|
||||
// line 23
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/stylesheets.html.twig", "partials/base-root.html.twig", 23)->display($context);
|
||||
// line 24
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/javascripts.html.twig", "partials/base-root.html.twig", 29)->display($context);
|
||||
// line 30
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 34
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 35
|
||||
echo " <body class=\"ga-theme-17x ";
|
||||
echo ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "sidebar", array()), "size", array()) == "small")) ? ("sidebar-closed") : (""));
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "body_classes", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, ($context["body_classes"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 36
|
||||
$this->displayBlock('page', $context, $blocks);
|
||||
// line 117
|
||||
echo " ";
|
||||
$this->displayBlock('bottom', $context, $blocks);
|
||||
// line 120
|
||||
echo " </body>
|
||||
";
|
||||
}
|
||||
|
||||
// line 36
|
||||
public function block_page($context, array $blocks = array())
|
||||
{
|
||||
// line 37
|
||||
echo " <div class=\"remodal-bg\">
|
||||
|
||||
";
|
||||
// line 39
|
||||
$this->displayBlock('navigation', $context, $blocks);
|
||||
// line 42
|
||||
echo "
|
||||
<main id=\"admin-main\" >
|
||||
";
|
||||
// line 44
|
||||
$this->loadTemplate("partials/nav-toggle.html.twig", "partials/base-root.html.twig", 44)->display($context);
|
||||
// line 45
|
||||
echo " <div id=\"titlebar\" class=\"titlebar\">
|
||||
";
|
||||
// line 46
|
||||
$this->displayBlock('titlebar', $context, $blocks);
|
||||
// line 47
|
||||
echo " </div>
|
||||
|
||||
";
|
||||
// line 49
|
||||
$this->displayBlock('content_wrapper', $context, $blocks);
|
||||
// line 75
|
||||
echo "
|
||||
";
|
||||
// line 76
|
||||
$this->displayBlock('modals', $context, $blocks);
|
||||
// line 112
|
||||
echo "
|
||||
</main>
|
||||
<div id='overlay'></div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 39
|
||||
public function block_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 40
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/nav.html.twig", "partials/base-root.html.twig", 40)->display($context);
|
||||
// line 41
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 46
|
||||
public function block_titlebar($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 49
|
||||
public function block_content_wrapper($context, array $blocks = array())
|
||||
{
|
||||
// line 50
|
||||
echo " <div class=\"content-wrapper\">
|
||||
<div class=\"";
|
||||
// line 51
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "content_padding", array())) {
|
||||
echo "content-padding";
|
||||
}
|
||||
echo "\">
|
||||
";
|
||||
// line 52
|
||||
$this->displayBlock('messages', $context, $blocks);
|
||||
// line 55
|
||||
echo "
|
||||
";
|
||||
// line 56
|
||||
$this->displayBlock('widgets', $context, $blocks);
|
||||
// line 57
|
||||
echo " <div class=\"default-box-shadow\">
|
||||
";
|
||||
// line 58
|
||||
$this->displayBlock('content_top', $context, $blocks);
|
||||
// line 59
|
||||
echo " <div class=\"admin-block\">";
|
||||
// line 60
|
||||
$this->displayBlock('content', $context, $blocks);
|
||||
// line 61
|
||||
echo "</div>
|
||||
";
|
||||
// line 62
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "show_github_msg", array())) {
|
||||
// line 63
|
||||
echo " <div class=\"notice alert\"><i class=\"fa fa-github\"></i> <a href=\"https://github.com/getgrav/grav-plugin-admin/issues\" target=\"_blank\">";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ADMIN_REPORT_ISSUE"), "html", null, true);
|
||||
echo "</a></div>
|
||||
";
|
||||
}
|
||||
// line 65
|
||||
echo " ";
|
||||
$this->displayBlock('content_bottom', $context, $blocks);
|
||||
// line 66
|
||||
echo " </div>
|
||||
";
|
||||
// line 67
|
||||
$this->displayBlock('footer', $context, $blocks);
|
||||
// line 72
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 52
|
||||
public function block_messages($context, array $blocks = array())
|
||||
{
|
||||
// line 53
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/messages.html.twig", "partials/base-root.html.twig", 53)->display($context);
|
||||
// line 54
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 56
|
||||
public function block_widgets($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 58
|
||||
public function block_content_top($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 60
|
||||
public function block_content($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 65
|
||||
public function block_content_bottom($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 67
|
||||
public function block_footer($context, array $blocks = array())
|
||||
{
|
||||
// line 68
|
||||
echo " <footer id=\"footer\">
|
||||
<a href=\"http://getgrav.org\">Grav</a> v<span class=\"grav-version\">";
|
||||
// line 69
|
||||
echo twig_escape_filter($this->env, twig_constant("GRAV_VERSION"), "html", null, true);
|
||||
echo "</span> - Admin v";
|
||||
echo twig_escape_filter($this->env, ($context["admin_version"] ?? null), "html", null, true);
|
||||
echo " - ";
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.WAS_MADE_WITH")), "html", null, true);
|
||||
echo " <i class=\"fa fa-heart-o pulse\"></i> ";
|
||||
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BY")), "html", null, true);
|
||||
echo " <a href=\"https://trilby.media\">Trilby Media</a>.
|
||||
</footer>
|
||||
";
|
||||
}
|
||||
|
||||
// line 76
|
||||
public function block_modals($context, array $blocks = array())
|
||||
{
|
||||
// line 77
|
||||
echo " <div class=\"remodal\" data-remodal-id=\"generic\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 79
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ERROR"), "html", null, true);
|
||||
echo "</h1>
|
||||
<div class=\"error-content\"></div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">";
|
||||
// line 82
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"metadata\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1><span>";
|
||||
// line 88
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.METADATA"), "html", null, true);
|
||||
echo " for</span> <strong></strong></h1>
|
||||
<div class=\"metadata-preview\">
|
||||
<div class=\"meta-preview\"></div>
|
||||
<div class=\"meta-content\"></div>
|
||||
</div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">";
|
||||
// line 94
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLOSE"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"delete-media\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>";
|
||||
// line 100
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_TITLE"), "html", null, true);
|
||||
echo "</h1>
|
||||
<p class=\"bigger\">
|
||||
";
|
||||
// line 102
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_DESC"), "html", null, true);
|
||||
echo "
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
|
||||
// line 106
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
|
||||
echo "</button>
|
||||
<button data-remodal-action=\"confirm\" class=\"button remodal-confirm disable-after-click\"><i class=\"fa fa-fw fa-check\"></i> ";
|
||||
// line 107
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
|
||||
echo "</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 117
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 118
|
||||
echo " ";
|
||||
echo $this->getAttribute(($context["assets"] ?? null), "js", array(0 => "bottom"), "method");
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/base-root.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 401 => 118, 398 => 117, 389 => 107, 385 => 106, 378 => 102, 373 => 100, 364 => 94, 355 => 88, 346 => 82, 340 => 79, 336 => 77, 333 => 76, 320 => 69, 317 => 68, 314 => 67, 309 => 65, 304 => 60, 299 => 58, 294 => 56, 290 => 54, 287 => 53, 284 => 52, 278 => 72, 276 => 67, 273 => 66, 270 => 65, 264 => 63, 262 => 62, 259 => 61, 257 => 60, 255 => 59, 253 => 58, 250 => 57, 248 => 56, 245 => 55, 243 => 52, 237 => 51, 234 => 50, 231 => 49, 226 => 46, 222 => 41, 219 => 40, 216 => 39, 208 => 112, 206 => 76, 203 => 75, 201 => 49, 197 => 47, 195 => 46, 192 => 45, 190 => 44, 186 => 42, 184 => 39, 180 => 37, 177 => 36, 172 => 120, 169 => 117, 167 => 36, 158 => 35, 155 => 34, 148 => 30, 145 => 29, 142 => 28, 135 => 24, 132 => 23, 129 => 22, 125 => 32, 122 => 28, 120 => 27, 117 => 26, 115 => 22, 109 => 20, 106 => 19, 102 => 17, 96 => 15, 93 => 14, 87 => 12, 81 => 10, 79 => 9, 66 => 8, 63 => 7, 60 => 6, 54 => 122, 52 => 34, 49 => 33, 47 => 6, 42 => 3, 39 => 2, 35 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("{% if uri.extension() == 'json' %}{% include 'default.json.twig' %}{% else %}
|
||||
{% set icon_style = config.plugins.admin.admin_icons %}
|
||||
<!DOCTYPE html>
|
||||
<html lang=\"en\">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset=\"utf-8\" />
|
||||
<title>{% if title %}{{ title }} | {% else %}{% if header.title %}{{ header.title }} | {% endif %}{% endif %}{{ site.title }}</title>
|
||||
{% if header.description %}
|
||||
<meta name=\"description\" content=\"{{ header.description }}\">
|
||||
{% else %}
|
||||
<meta name=\"description\" content=\"{{ site.description }}\">
|
||||
{% endif %}
|
||||
{% if header.robots %}
|
||||
<meta name=\"robots\" content=\"{{ header.robots }}\">
|
||||
{% else %}
|
||||
<meta name=\"robots\" content=\"noindex, nofollow\">
|
||||
{% endif %}
|
||||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
||||
<link rel=\"icon\" type=\"image/png\" href=\"{{ base_url_simple }}{{ theme_url }}/images/favicon.png\">
|
||||
|
||||
{% block stylesheets %}
|
||||
{% include 'partials/stylesheets.html.twig' %}
|
||||
{{ assets.css()|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% include 'partials/javascript-config.html.twig' %}
|
||||
{% block javascripts %}
|
||||
{% include 'partials/javascripts.html.twig' %}
|
||||
{{ assets.js()|raw }}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
{% block body %}
|
||||
<body class=\"ga-theme-17x {{ config.plugins.admin.sidebar.size == 'small' ? 'sidebar-closed' : '' }} {{ config.plugins.admin.body_classes }} {{ body_classes }}\">
|
||||
{% block page %}
|
||||
<div class=\"remodal-bg\">
|
||||
|
||||
{% block navigation %}
|
||||
{% include 'partials/nav.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
<main id=\"admin-main\" >
|
||||
{% include 'partials/nav-toggle.html.twig' %}
|
||||
<div id=\"titlebar\" class=\"titlebar\">
|
||||
{% block titlebar %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block content_wrapper %}
|
||||
<div class=\"content-wrapper\">
|
||||
<div class=\"{% if config.plugins.admin.content_padding %}content-padding{% endif %}\">
|
||||
{% block messages %}
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block widgets %}{% endblock %}
|
||||
<div class=\"default-box-shadow\">
|
||||
{% block content_top %}{% endblock %}
|
||||
<div class=\"admin-block\">
|
||||
{%- block content %}{% endblock -%}
|
||||
</div>
|
||||
{% if config.plugins.admin.show_github_msg %}
|
||||
<div class=\"notice alert\"><i class=\"fa fa-github\"></i> <a href=\"https://github.com/getgrav/grav-plugin-admin/issues\" target=\"_blank\">{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}</a></div>
|
||||
{% endif %}
|
||||
{% block content_bottom %}{% endblock %}
|
||||
</div>
|
||||
{% block footer %}
|
||||
<footer id=\"footer\">
|
||||
<a href=\"http://getgrav.org\">Grav</a> v<span class=\"grav-version\">{{ constant('GRAV_VERSION') }}</span> - Admin v{{ admin_version }} - {{ \"PLUGIN_ADMIN.WAS_MADE_WITH\"|tu|lower }} <i class=\"fa fa-heart-o pulse\"></i> {{ \"PLUGIN_ADMIN.BY\"|tu|lower }} <a href=\"https://trilby.media\">Trilby Media</a>.
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block modals %}
|
||||
<div class=\"remodal\" data-remodal-id=\"generic\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.ERROR\"|tu }}</h1>
|
||||
<div class=\"error-content\"></div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">{{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"metadata\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1><span>{{ \"PLUGIN_ADMIN.METADATA\"|tu }} for</span> <strong></strong></h1>
|
||||
<div class=\"metadata-preview\">
|
||||
<div class=\"meta-preview\"></div>
|
||||
<div class=\"meta-content\"></div>
|
||||
</div>
|
||||
<div class=\"button-bar\">
|
||||
<a class=\"button remodal-cancel\" data-remodal-action=\"cancel\" href=\"#\">{{ \"PLUGIN_ADMIN.CLOSE\"|tu }}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=\"remodal\" data-remodal-id=\"delete-media\" data-remodal-options=\"hashTracking: false\">
|
||||
<form>
|
||||
<h1>{{ \"PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_TITLE\"|tu }}</h1>
|
||||
<p class=\"bigger\">
|
||||
{{ \"PLUGIN_ADMIN.MODAL_DELETE_FILE_CONFIRMATION_REQUIRED_DESC\"|tu }}
|
||||
</p>
|
||||
<br>
|
||||
<div class=\"button-bar\">
|
||||
<button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CANCEL\"|tu }}</button>
|
||||
<button data-remodal-action=\"confirm\" class=\"button remodal-confirm disable-after-click\"><i class=\"fa fa-fw fa-check\"></i> {{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
</main>
|
||||
<div id='overlay'></div>
|
||||
</div>
|
||||
{% endblock page %}
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom')|raw }}
|
||||
{% endblock %}
|
||||
</body>
|
||||
{% endblock body %}
|
||||
</html>
|
||||
{% endif %}
|
||||
", "partials/base-root.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/partials/base-root.html.twig");
|
||||
}
|
||||
}
|
||||
+309
@@ -0,0 +1,309 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/toggle/toggle.html.twig */
|
||||
class __TwigTemplate_64cb61bc396b33b686b9be7349fd7d62644b83496634e683fe9bd20c3add452d 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\Twig\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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/toggle/toggle.html.twig");
|
||||
}
|
||||
}
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-user-details.html.twig */
|
||||
class __TwigTemplate_241e10eb9e06bbd887cc5f658473d9248125d80effb09a514178a3119f9bc125 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/nav-user-details.html.twig");
|
||||
}
|
||||
}
|
||||
+257
@@ -0,0 +1,257 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/editor/editor.html.twig */
|
||||
class __TwigTemplate_4b72147a0c05bf7ae9b68ad4daad10d4565450aa5448b7f8809026cd00ddf551 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\Twig\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\Twig\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\Twig\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\Twig\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 " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "description", array())) {
|
||||
// line 34
|
||||
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 36
|
||||
if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
|
||||
// line 37
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "description", array())), false);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 39
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "description", array()));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 41
|
||||
echo " </span>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 44
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/editor/editor.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 179 => 44, 174 => 41, 168 => 39, 162 => 37, 160 => 36, 152 => 34, 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 %}
|
||||
{% if field.description %}
|
||||
<div class=\"form-extra-wrapper {{ field.size }} {{ field.wrapper_classes }}\">
|
||||
<span class=\"form-description\">
|
||||
{% if field.markdown %}
|
||||
{{ field.description|tu|markdown(false)|raw }}
|
||||
{% else %}
|
||||
{{ field.description|tu|raw }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/editor/editor.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/editor/editor.html.twig");
|
||||
}
|
||||
}
|
||||
+302
@@ -0,0 +1,302 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/select/select.html.twig */
|
||||
class __TwigTemplate_1ad426f00e7157aca7d5edef73a62902e1a01cf1433700e1a5945059428b2508 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 (($context["required"] ?? null)) {
|
||||
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\Twig\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["item_value"]) {
|
||||
// line 28
|
||||
echo " ";
|
||||
if (twig_test_iterable($context["item_value"])) {
|
||||
// line 29
|
||||
echo " <optgroup label=\"";
|
||||
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 30
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($context["item_value"]);
|
||||
foreach ($context['_seq'] as $context["subkey"] => $context["suboption"]) {
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["selected"] = (($this->getAttribute(($context["field"] ?? null), "selectize", array())) ? ($context["suboption"]) : ($context["subkey"]));
|
||||
// line 32
|
||||
echo " ";
|
||||
$context["item_value"] = ((($this->getAttribute(($context["field"] ?? null), "selectize", array()) && $this->getAttribute(($context["field"] ?? null), "multiple", array()))) ? ($context["suboption"]) : ($context["subkey"]));
|
||||
// line 33
|
||||
echo " <option ";
|
||||
if ((($context["subkey"] == ($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["suboption"], "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 34
|
||||
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 35
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($context["suboption"]);
|
||||
} else {
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["suboption"]);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 37
|
||||
echo " </option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['subkey'], $context['suboption'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 39
|
||||
echo " </optgroup>
|
||||
";
|
||||
} else {
|
||||
// line 41
|
||||
echo " ";
|
||||
$context["selected"] = (($this->getAttribute(($context["field"] ?? null), "selectize", array())) ? ($context["item_value"]) : ($context["key"]));
|
||||
// line 42
|
||||
echo " ";
|
||||
$context["val"] = ((($this->getAttribute(($context["field"] ?? null), "selectize", array()) && $this->getAttribute(($context["field"] ?? null), "multiple", array()))) ? ($context["item_value"]) : ($context["key"]));
|
||||
// line 43
|
||||
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["val"] ?? 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\Twig\AdminTwigExtension')->tuFilter($context["item_value"]);
|
||||
} else {
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($context["item_value"]);
|
||||
}
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
// line 45
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['key'], $context['item_value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 46
|
||||
echo "
|
||||
</select>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/select/select.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 220 => 46, 214 => 45, 198 => 43, 195 => 42, 192 => 41, 188 => 39, 181 => 37, 173 => 35, 171 => 34, 162 => 33, 159 => 32, 156 => 31, 152 => 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 required %}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, item_value in field.options %}
|
||||
{% if item_value is iterable %}
|
||||
<optgroup label=\"{{ key }}\">
|
||||
{%for subkey, suboption in item_value %}
|
||||
{% set selected = field.selectize ? suboption : subkey %}
|
||||
{% set item_value = field.selectize and field.multiple ? suboption : subkey %}
|
||||
<option {% if subkey == value or (field.multiple and selected in value) %}selected=\"selected\"{% endif %} value=\"{{ suboption }}\">
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}
|
||||
{{ suboption|tu|raw }}{% else %}{{ suboption|t|raw }}
|
||||
{% endif %}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</optgroup>
|
||||
{% else %}
|
||||
{% set selected = field.selectize ? item_value : key %}
|
||||
{% set val = field.selectize and field.multiple ? item_value : key %}
|
||||
<option {% if key == value or (field.multiple and selected in value) %}selected=\"selected\"{% endif %} value=\"{{ val }}\">{%- if grav.twig.twig.filters['tu'] is defined -%}{{ item_value|tu|raw }}{% else %}{{ item_value|t|raw }}{%- endif -%}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/select/select.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/form/templates/forms/fields/select/select.html.twig");
|
||||
}
|
||||
}
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-quick-tray.html.twig */
|
||||
class __TwigTemplate_ad2b278d643db938e2ceff6c2b5b7426ff04a6e23567f15f794a6f6e1b93110d 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["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 2
|
||||
echo "<ul id=\"admin-nav-quick-tray\">
|
||||
";
|
||||
// line 3
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super", 2 => "admin.cache"))) {
|
||||
// line 4
|
||||
echo " <li class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE"), "html", null, true);
|
||||
echo "\">
|
||||
<a data-clear-cache-type=\"\" data-clear-cache=\"";
|
||||
// line 5
|
||||
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 "\">
|
||||
<i class=\"fa fa-trash\"></i>
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 10
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_quick_tray", array())) {
|
||||
// line 11
|
||||
echo " ";
|
||||
$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 12
|
||||
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 13
|
||||
echo " ";
|
||||
$context["data_tags"] = "";
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["item"], "data", array())) {
|
||||
// line 15
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "data", array()));
|
||||
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
|
||||
// line 16
|
||||
echo " ";
|
||||
$context["data_tags"] = (((((($context["data_tags"] ?? null) . " data-") . $context["key"]) . "=\"") . $context["value"]) . "\"");
|
||||
// line 17
|
||||
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 18
|
||||
echo " ";
|
||||
}
|
||||
// line 19
|
||||
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 20
|
||||
if ($this->getAttribute($context["item"], "route", array())) {
|
||||
// line 21
|
||||
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 22
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
</a>
|
||||
";
|
||||
} else {
|
||||
// line 25
|
||||
echo " <i class=\"fa fa-fw ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
";
|
||||
}
|
||||
// line 27
|
||||
echo " </li>
|
||||
";
|
||||
}
|
||||
// line 29
|
||||
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 30
|
||||
echo " ";
|
||||
} else {
|
||||
// line 31
|
||||
echo " ";
|
||||
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
|
||||
// line 32
|
||||
echo " <li class=\"hint--bottom\" data-hint=\"Add the 'quick-tray-links' plugin for more...\">
|
||||
<a href=\"";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, (($context["base_url_relative"] ?? null) . "/plugins/install"), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-plus\"></i>
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 38
|
||||
echo " ";
|
||||
}
|
||||
// line 39
|
||||
echo "</ul>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/nav-quick-tray.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 131 => 39, 128 => 38, 120 => 33, 117 => 32, 114 => 31, 111 => 30, 105 => 29, 101 => 27, 95 => 25, 89 => 22, 84 => 21, 82 => 20, 73 => 19, 70 => 18, 64 => 17, 61 => 16, 56 => 15, 53 => 14, 50 => 13, 47 => 12, 42 => 11, 39 => 10, 31 => 5, 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 clear_cache_url = base_url_relative ~ '/cache.json/task' ~ config.system.param_sep ~ 'clearCache'|e('html_attr') %}
|
||||
<ul id=\"admin-nav-quick-tray\">
|
||||
{% if authorize(['admin.maintenance', 'admin.super', 'admin.cache']) %}
|
||||
<li class=\"hint--bottom\" data-hint=\"{{ \"PLUGIN_ADMIN.CLEAR_CACHE\"|tu }}\">
|
||||
<a data-clear-cache-type=\"\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url, 'admin-form', 'admin-nonce') }}\">
|
||||
<i class=\"fa fa-trash\"></i>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if grav.twig.plugins_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 %}
|
||||
{% else %}
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
<li class=\"hint--bottom\" data-hint=\"Add the 'quick-tray-links' plugin for more...\">
|
||||
<a href=\"{{ base_url_relative ~ '/plugins/install' }}\">
|
||||
<i class=\"fa fa-plus\"></i>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
", "partials/nav-quick-tray.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/partials/nav-quick-tray.html.twig");
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/* error.html.twig */
|
||||
class __TwigTemplate_f389ca813d2a813d39b3566d3b630542bc6d38c302cdfcde2a6ee2fd64460302 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/r2c.net/user/themes/r2c/templates/error.html.twig");
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/* @images/grav-logo.svg */
|
||||
class __TwigTemplate_a9b3b3ed89d06315909921135940673bf29f03abe9afbffd4cbe9d5b5875ce51 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 "<svg xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" viewBox=\"0 0 504 140\" clip-rule=\"evenodd\"><path d=\"M235.83 71.56h-7.98c-1.2 0-2.2 1-2.2 2.2V89.1l-.15.13c-4.7 3.96-10.64 6.14-16.72 6.14-14.36 0-26.04-11.68-26.04-26.04s11.68-26.04 26.04-26.04c5.58 0 10.92 1.76 15.44 5.1.87.66 2.1.57 2.86-.2l5.7-5.7c.44-.44.67-1.05.63-1.68-.02-.62-.32-1.2-.82-1.6-6.76-5.35-15.2-8.3-23.8-8.3-21.18 0-38.42 17.23-38.42 38.4 0 21.2 17.24 38.42 38.42 38.42 10.93 0 21.4-4.7 28.7-12.9.35-.4.55-.93.55-1.47v-19.6c0-1.22-.98-2.2-2.2-2.2M502.8 34.44c-.4-.6-1.1-.98-1.84-.98h-8.7c-.87 0-1.66.52-2 1.32l-24.5 56.84-24.9-56.85c-.36-.8-1.15-1.3-2.02-1.3h-8.72c-.74 0-1.44.36-1.84.98-.4.62-.48 1.4-.17 2.1l30.2 68.85c.34.8 1.13 1.32 2 1.32h11c.88 0 1.67-.53 2.02-1.33l29.66-68.87c.3-.68.22-1.47-.2-2.1\"/><path d=\"M388.68 34.77c-.35-.8-1.14-1.32-2-1.32h-11c-.88 0-1.67.53-2.02 1.33L344 103.64c-.3.68-.22 1.47.18 2.08.4.62 1.1 1 1.84 1h8.7c.86 0 1.66-.53 2-1.33l24.5-56.86 24.9 56.86c.36.8 1.15 1.32 2.02 1.32h8.72c.74 0 1.44-.38 1.84-1 .4-.62.47-1.4.17-2.1l-30.2-68.85zM309.2 81.52l.47-.22c8.68-4.2 14.28-13.1 14.28-22.67 0-13.88-11.3-25.18-25.17-25.18H266.9c-1.2 0-2.2 1-2.2 2.2v68.86c0 1.23 1 2.22 2.2 2.22h8c1.2 0 2.2-1 2.2-2.2V45.8h21.68c7.05 0 12.8 5.75 12.8 12.8 0 5.9-4 11-9.73 12.42-1.04.26-2.07.4-3.07.4h-7.98c-.83 0-1.6.46-1.96 1.2-.38.73-.3 1.62.2 2.3l22.6 30.87c.42.58 1.08.92 1.78.92h9.9c.84 0 1.6-.47 1.97-1.2.37-.75.3-1.64-.2-2.3l-15.9-21.7zM107.2 80.97c-7.26-4.8-11.4-8.85-15.02-16.1-2.47 4.97-8.24 12.37-17.96 18.2-4.86 15.1-27.96 44-35.43 39.9-2.22-1.2-2.64-2.8-2.15-4.45.54-4.13 9.08-13.62 9.08-13.62s.18 2 2.92 6.18c-3.6-11.2 5.96-25.03 8.5-29.73 3.98-1.27 4.27-6.4 4.27-6.4.26-7.9-3.28-13.63-6.7-17.05 2.46 3 3.25 7.54 3.37 11.7v.02c0 .47 0 .93 0 1.4-.12 3.43-1.16 8.18-3.38 8.18v.03c-2.28-.1-5.1.4-7.63 1.18l-5.6 1.34s2.98-.13 4.6 1.25c-1.8 2.9-5.78 6.53-10.22 8.58-6.45 3-8.3-2.96-5.03-6.84.8-.94 1.62-1.74 2.38-2.4-.5-.5-.8-1.2-.88-2.06 0 0 0 0 0-.02-.46-1.97-.2-4.54 2.6-8.62.54-.86 1.2-1.75 2-2.65.02-.04.04-.07.07-.1.03-.04.07-.08.1-.12.02-.02.04-.04.06-.06.2-.23.42-.45.64-.67 3.34-3.4 8.6-6.96 16.9-10.15C64.4 43.68 67.94 41 67.94 41c1.07-1.1 2.94-2.45 3.63-2.8-5.05-8.77-6.07-21.15-4.75-24.5-.1.2-.2.38-.3.57.5-1.14.83-1.5 1.34-2.1 1.38-1.64 6.06-2.5 7.74.96.9 1.84 1.06 4.23 1.03 6.02-3.7-.2-7.06 4.04-7.06 4.04s3.07-1.46 6.88-1.5c0 0 1 .9 2.28 2.56-1.7 3.2-4.52 10.02-2.5 17.16.35 1.4.86 2.62 1.5 3.65.02.05.04.1.07.14.05.07.1.13.14.2 3.37 5.06 9.54 5.66 9.54 5.66-2.9-1.45-5.27-3.76-6.8-6.56-.82-1.5-1.3-2.77-1.6-3.77-1.64-6.3.77-10 2.14-12.47 3.17-4.9 8.95-7.9 15.15-7.18 8.72 1 14.97 8.86 13.98 17.57-.6 5.32-3.78 9.72-8.15 12.12 1.05 2.84-.07 6.28-.07 6.28 2.64 3.32 2.76 5.23 2.67 7-3.36-.55-6.62 1.7-6.62 1.7s6.48-1.53 10.24 1.82c2.44 2.64 4.08 5 5.05 6.77 1.4 2.5 7.86 2.68 7.12 7.2-.74 4.5-5.68 4.53-13.4-.57M69.56 0C31.15 0 0 31.15 0 69.57c0 38.42 31.15 69.57 69.57 69.57 38.42 0 69.57-31.15 69.57-69.57C139.14 31.15 108 0 69.57 0M73.8 51.7c.8-.82.8-2.14 0-2.95-.82-.82-2.14-.82-2.95 0-.82.8-.82 2.13 0 2.94.8.8 2.13.8 2.95 0M66.45 53.15c-.82.8-.82 2.13 0 2.95.8.8 2.13.8 2.94 0 .8-.82.8-2.14 0-2.95-.82-.8-2.14-.8-2.95 0\"/><path d=\"M79.23 54.23c-1.27-1.27-3.34-1.27-4.6 0l-2.72 2.7c-1.27 1.3-1.27 3.35 0 4.63l3 2.97c1.26 1.28 3.32 1.28 4.6 0l2.7-2.7c1.28-1.28 1.28-3.35 0-4.62l-2.97-2.97zM95.76 41.44c-2.15-2.57 1.87-7.25 4.4-4.46 4.64 5.15-2.25 7.04-4.4 4.46m9.24 2.7c3.45-6.56-1.42-10.4-4.77-13.53-5.36-5.03-10.7-7.2-16.8-.23-6.1 6.98-2.24 15.07 3.35 19.06 5.58 4 14.78 1.25 18.22-5.3\"/></svg>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "@images/grav-logo.svg";
|
||||
}
|
||||
|
||||
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("<svg xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" viewBox=\"0 0 504 140\" clip-rule=\"evenodd\"><path d=\"M235.83 71.56h-7.98c-1.2 0-2.2 1-2.2 2.2V89.1l-.15.13c-4.7 3.96-10.64 6.14-16.72 6.14-14.36 0-26.04-11.68-26.04-26.04s11.68-26.04 26.04-26.04c5.58 0 10.92 1.76 15.44 5.1.87.66 2.1.57 2.86-.2l5.7-5.7c.44-.44.67-1.05.63-1.68-.02-.62-.32-1.2-.82-1.6-6.76-5.35-15.2-8.3-23.8-8.3-21.18 0-38.42 17.23-38.42 38.4 0 21.2 17.24 38.42 38.42 38.42 10.93 0 21.4-4.7 28.7-12.9.35-.4.55-.93.55-1.47v-19.6c0-1.22-.98-2.2-2.2-2.2M502.8 34.44c-.4-.6-1.1-.98-1.84-.98h-8.7c-.87 0-1.66.52-2 1.32l-24.5 56.84-24.9-56.85c-.36-.8-1.15-1.3-2.02-1.3h-8.72c-.74 0-1.44.36-1.84.98-.4.62-.48 1.4-.17 2.1l30.2 68.85c.34.8 1.13 1.32 2 1.32h11c.88 0 1.67-.53 2.02-1.33l29.66-68.87c.3-.68.22-1.47-.2-2.1\"/><path d=\"M388.68 34.77c-.35-.8-1.14-1.32-2-1.32h-11c-.88 0-1.67.53-2.02 1.33L344 103.64c-.3.68-.22 1.47.18 2.08.4.62 1.1 1 1.84 1h8.7c.86 0 1.66-.53 2-1.33l24.5-56.86 24.9 56.86c.36.8 1.15 1.32 2.02 1.32h8.72c.74 0 1.44-.38 1.84-1 .4-.62.47-1.4.17-2.1l-30.2-68.85zM309.2 81.52l.47-.22c8.68-4.2 14.28-13.1 14.28-22.67 0-13.88-11.3-25.18-25.17-25.18H266.9c-1.2 0-2.2 1-2.2 2.2v68.86c0 1.23 1 2.22 2.2 2.22h8c1.2 0 2.2-1 2.2-2.2V45.8h21.68c7.05 0 12.8 5.75 12.8 12.8 0 5.9-4 11-9.73 12.42-1.04.26-2.07.4-3.07.4h-7.98c-.83 0-1.6.46-1.96 1.2-.38.73-.3 1.62.2 2.3l22.6 30.87c.42.58 1.08.92 1.78.92h9.9c.84 0 1.6-.47 1.97-1.2.37-.75.3-1.64-.2-2.3l-15.9-21.7zM107.2 80.97c-7.26-4.8-11.4-8.85-15.02-16.1-2.47 4.97-8.24 12.37-17.96 18.2-4.86 15.1-27.96 44-35.43 39.9-2.22-1.2-2.64-2.8-2.15-4.45.54-4.13 9.08-13.62 9.08-13.62s.18 2 2.92 6.18c-3.6-11.2 5.96-25.03 8.5-29.73 3.98-1.27 4.27-6.4 4.27-6.4.26-7.9-3.28-13.63-6.7-17.05 2.46 3 3.25 7.54 3.37 11.7v.02c0 .47 0 .93 0 1.4-.12 3.43-1.16 8.18-3.38 8.18v.03c-2.28-.1-5.1.4-7.63 1.18l-5.6 1.34s2.98-.13 4.6 1.25c-1.8 2.9-5.78 6.53-10.22 8.58-6.45 3-8.3-2.96-5.03-6.84.8-.94 1.62-1.74 2.38-2.4-.5-.5-.8-1.2-.88-2.06 0 0 0 0 0-.02-.46-1.97-.2-4.54 2.6-8.62.54-.86 1.2-1.75 2-2.65.02-.04.04-.07.07-.1.03-.04.07-.08.1-.12.02-.02.04-.04.06-.06.2-.23.42-.45.64-.67 3.34-3.4 8.6-6.96 16.9-10.15C64.4 43.68 67.94 41 67.94 41c1.07-1.1 2.94-2.45 3.63-2.8-5.05-8.77-6.07-21.15-4.75-24.5-.1.2-.2.38-.3.57.5-1.14.83-1.5 1.34-2.1 1.38-1.64 6.06-2.5 7.74.96.9 1.84 1.06 4.23 1.03 6.02-3.7-.2-7.06 4.04-7.06 4.04s3.07-1.46 6.88-1.5c0 0 1 .9 2.28 2.56-1.7 3.2-4.52 10.02-2.5 17.16.35 1.4.86 2.62 1.5 3.65.02.05.04.1.07.14.05.07.1.13.14.2 3.37 5.06 9.54 5.66 9.54 5.66-2.9-1.45-5.27-3.76-6.8-6.56-.82-1.5-1.3-2.77-1.6-3.77-1.64-6.3.77-10 2.14-12.47 3.17-4.9 8.95-7.9 15.15-7.18 8.72 1 14.97 8.86 13.98 17.57-.6 5.32-3.78 9.72-8.15 12.12 1.05 2.84-.07 6.28-.07 6.28 2.64 3.32 2.76 5.23 2.67 7-3.36-.55-6.62 1.7-6.62 1.7s6.48-1.53 10.24 1.82c2.44 2.64 4.08 5 5.05 6.77 1.4 2.5 7.86 2.68 7.12 7.2-.74 4.5-5.68 4.53-13.4-.57M69.56 0C31.15 0 0 31.15 0 69.57c0 38.42 31.15 69.57 69.57 69.57 38.42 0 69.57-31.15 69.57-69.57C139.14 31.15 108 0 69.57 0M73.8 51.7c.8-.82.8-2.14 0-2.95-.82-.82-2.14-.82-2.95 0-.82.8-.82 2.13 0 2.94.8.8 2.13.8 2.95 0M66.45 53.15c-.82.8-.82 2.13 0 2.95.8.8 2.13.8 2.94 0 .8-.82.8-2.14 0-2.95-.82-.8-2.14-.8-2.95 0\"/><path d=\"M79.23 54.23c-1.27-1.27-3.34-1.27-4.6 0l-2.72 2.7c-1.27 1.3-1.27 3.35 0 4.63l3 2.97c1.26 1.28 3.32 1.28 4.6 0l2.7-2.7c1.28-1.28 1.28-3.35 0-4.62l-2.97-2.97zM95.76 41.44c-2.15-2.57 1.87-7.25 4.4-4.46 4.64 5.15-2.25 7.04-4.4 4.46m9.24 2.7c3.45-6.56-1.42-10.4-4.77-13.53-5.36-5.03-10.7-7.2-16.8-.23-6.1 6.98-2.24 15.07 3.35 19.06 5.58 4 14.78 1.25 18.22-5.3\"/></svg>", "@images/grav-logo.svg", "/mnt/data/Sites/r2c.net/user/themes/r2c/images/grav-logo.svg");
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
/* partials/page-move.html.twig */
|
||||
class __TwigTemplate_219575acba1a00265c3b8310bfacf4ea6b0fd47e18ff435c3d899abece8d8586 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\Twig\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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/partials/page-move.html.twig");
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
/* partials/metadata.html.twig */
|
||||
class __TwigTemplate_a8d15f81421c187a7f2bffc843220859dcf19f1cfb048f5be8b602715c8d2d06 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/r2c.net/system/templates/partials/metadata.html.twig");
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/* partials/base.html.twig */
|
||||
class __TwigTemplate_d946c3de4549c8c05dfa53aad32706fa484503b468903c4b7c42d1f4aabeff59 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/base.html.twig");
|
||||
}
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
/* partials/messages.html.twig */
|
||||
class __TwigTemplate_4176cdc80217a3abaf3287565f9afc83831a355c360f9f9a826e4f6dace4a3c6 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["type_mapping"] = array("info" => "success", "error" => "error", "warning" => "warning");
|
||||
// line 2
|
||||
$context["icon_mapping"] = array("info" => "checkmark", "error" => "wrong", "warning" => "information");
|
||||
// line 3
|
||||
echo "
|
||||
";
|
||||
// line 4
|
||||
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "messages", array()), "all", array())) {
|
||||
// line 5
|
||||
echo " <div id=\"messages\">
|
||||
";
|
||||
// line 6
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "messages", array()), "fetch", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
|
||||
// line 7
|
||||
echo "
|
||||
";
|
||||
// line 8
|
||||
$context["scope"] = twig_escape_filter($this->env, $this->getAttribute($context["message"], "scope", array()));
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["type"] = $this->getAttribute(($context["type_mapping"] ?? null), ($context["scope"] ?? null), array(), "array");
|
||||
// line 10
|
||||
echo " ";
|
||||
$context["icon"] = $this->getAttribute(($context["icon_mapping"] ?? null), ($context["scope"] ?? null), array(), "array");
|
||||
// line 11
|
||||
echo "
|
||||
<div class=\"toast toast-";
|
||||
// line 12
|
||||
echo ($context["type"] ?? null);
|
||||
echo " ";
|
||||
echo ($context["scope"] ?? null);
|
||||
echo "\">
|
||||
<i class=\"icon dripicons-";
|
||||
// line 13
|
||||
echo ($context["icon"] ?? null);
|
||||
echo "\"></i> ";
|
||||
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 16
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/messages.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 66 => 16, 55 => 13, 49 => 12, 46 => 11, 43 => 10, 40 => 9, 38 => 8, 35 => 7, 31 => 6, 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 type_mapping = {'info':'success', 'error': 'error', 'warning': 'warning'} %}
|
||||
{% set icon_mapping = {'info':'checkmark', 'error':'wrong', 'warning':'information'} %}
|
||||
|
||||
{% if grav.messages.all %}
|
||||
<div id=\"messages\">
|
||||
{% for message in grav.messages.fetch %}
|
||||
|
||||
{% set scope = message.scope|e %}
|
||||
{% set type = type_mapping[scope] %}
|
||||
{% set icon = icon_mapping[scope] %}
|
||||
|
||||
<div class=\"toast toast-{{ type }} {{ scope }}\">
|
||||
<i class=\"icon dripicons-{{ icon }}\"></i> {{ message.message|raw }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}", "partials/messages.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/partials/messages.html.twig");
|
||||
}
|
||||
}
|
||||
+396
@@ -0,0 +1,396 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav.html.twig */
|
||||
class __TwigTemplate_2087f1885127671b196ae4b3a767ffe8aa4e7e9ec43db5eb1b6a8b101536dda6 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-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\Twig\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\Twig\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\Twig\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\Twig\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\Twig\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\Twig\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\Twig\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\Twig\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-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/r2c.net/user/plugins/admin/themes/grav/templates/partials/nav.html.twig");
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/hidden/hidden.html.twig */
|
||||
class __TwigTemplate_75ddeb62599610ee413cdd7e63bded04022d5f8774944530ea019164c5eaeb90 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($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/r2c.net/user/plugins/form/templates/forms/fields/hidden/hidden.html.twig");
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/blueprint/blueprint.html.twig */
|
||||
class __TwigTemplate_7ac95cc077503323534d7566481da32ff0aa8b08a52bec77a4ecd3e5b793d04d 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/blueprint/blueprint.html.twig");
|
||||
}
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/pagemedia/pagemedia.html.twig */
|
||||
class __TwigTemplate_e212764c89a12fb166f2d9fc7ddc09b61a700cf74c309eabd9e54c716c52afa6 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["pagemedia"] = $this->getAttribute(($context["config"] ?? null), "get", array(0 => "plugins.admin.pagemedia"), "method");
|
||||
// line 3
|
||||
$context["pagemedia_settings"] = array("resolution" => array("min" => array("width" => (($this->getAttribute( // line 6
|
||||
($context["pagemedia"] ?? null), "res_min_width", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "res_min_width", array())) : (null)), "height" => (($this->getAttribute( // line 7
|
||||
($context["pagemedia"] ?? null), "res_min_height", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "res_min_height", array())) : (null))), "max" => array("width" => (($this->getAttribute( // line 10
|
||||
($context["pagemedia"] ?? null), "res_max_width", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "res_max_width", array())) : (null)), "height" => (($this->getAttribute( // line 11
|
||||
($context["pagemedia"] ?? null), "res_max_height", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "res_max_height", array())) : (null)))), "resizeWidth" => (($this->getAttribute( // line 14
|
||||
($context["pagemedia"] ?? null), "resize_width", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "resize_width", array())) : (null)), "resizeHeight" => (($this->getAttribute( // line 15
|
||||
($context["pagemedia"] ?? null), "resize_height", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "resize_height", array())) : (null)), "resizeQuality" => (($this->getAttribute( // line 16
|
||||
($context["pagemedia"] ?? null), "resize_quality", array())) ? ($this->getAttribute(($context["pagemedia"] ?? null), "resize_quality", array())) : (0.8)));
|
||||
// line 18
|
||||
echo "
|
||||
";
|
||||
// line 19
|
||||
if ($this->getAttribute(($context["context"] ?? null), "folderExists", array())) {
|
||||
// line 20
|
||||
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 22
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
|
||||
echo "</label>
|
||||
</div>
|
||||
<div class=\"form-data form-uploads-wrapper\">
|
||||
";
|
||||
// line 25
|
||||
$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 26
|
||||
echo " ";
|
||||
$context["dropzoneSettings"] = twig_array_merge(array("maxFileSize" => ($context["uploadLimit"] ?? null)), ($context["pagemedia_settings"] ?? null));
|
||||
// line 27
|
||||
echo " <div id=\"grav-dropzone\"
|
||||
class=\"dropzone\"
|
||||
data-media-url=\"";
|
||||
// line 29
|
||||
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 30
|
||||
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 31
|
||||
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-media-uri=\"";
|
||||
// line 32
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["context"] ?? null), "mediaUri", array()), "html", null, true);
|
||||
echo "\"
|
||||
data-dropzone-options=\"";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["dropzoneSettings"] ?? null)), "html_attr");
|
||||
echo "\"
|
||||
data-dropzone-field=\"";
|
||||
// line 34
|
||||
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 36
|
||||
if (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "session", array()), "expert", array()) == "0")) {
|
||||
// line 37
|
||||
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 39
|
||||
echo " </div>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 42
|
||||
echo "<div class=\"form-tab\">
|
||||
<div class=\"form-field\">
|
||||
<div class=\"form-label\">
|
||||
";
|
||||
// line 45
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\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 ( 109 => 45, 104 => 42, 99 => 39, 91 => 37, 89 => 36, 84 => 34, 80 => 33, 76 => 32, 72 => 31, 66 => 30, 60 => 29, 56 => 27, 53 => 26, 51 => 25, 45 => 22, 37 => 20, 35 => 19, 32 => 18, 30 => 16, 29 => 15, 28 => 14, 27 => 11, 26 => 10, 25 => 7, 24 => 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("{% set value = (value is null ? field.default : value) %}
|
||||
{% set pagemedia = config.get('plugins.admin.pagemedia') %}
|
||||
{% set pagemedia_settings = {
|
||||
resolution: {
|
||||
min: {
|
||||
width: pagemedia.res_min_width ?: null,
|
||||
height: pagemedia.res_min_height ?: null
|
||||
},
|
||||
max: {
|
||||
width: pagemedia.res_max_width ?: null,
|
||||
height: pagemedia.res_max_height ?: null
|
||||
}
|
||||
},
|
||||
resizeWidth: pagemedia.resize_width ?: null,
|
||||
resizeHeight: pagemedia.resize_height ?: null,
|
||||
resizeQuality: pagemedia.resize_quality ?: 0.8
|
||||
} %}
|
||||
|
||||
{% 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 }|merge(pagemedia_settings) %}
|
||||
<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-media-uri=\"{{ context.mediaUri }}\"
|
||||
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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig");
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/* partials/modal-changes-detected.html.twig */
|
||||
class __TwigTemplate_04e189c078305a0bf0c6dbe634cc0252b586f6836f9122f9d6cb1d419f33eb3c 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\Twig\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\Twig\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\Twig\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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/partials/modal-changes-detected.html.twig");
|
||||
}
|
||||
}
|
||||
+317
@@ -0,0 +1,317 @@
|
||||
<?php
|
||||
|
||||
/* modular.html.twig */
|
||||
class __TwigTemplate_83132030e3a04f02dab32e4d7c3c04a4515041b2678c791bfc38e3aee82996a6 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "modular.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'bottom' => array($this, 'block_bottom'),
|
||||
'header_navigation' => array($this, 'block_header_navigation'),
|
||||
'hero' => array($this, 'block_hero'),
|
||||
'body' => array($this, 'block_body'),
|
||||
);
|
||||
}
|
||||
|
||||
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 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 7
|
||||
echo " ";
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 8
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "add", array(0 => "theme://js/singlepagenav.min.js"), "method");
|
||||
// line 9
|
||||
echo " ";
|
||||
}
|
||||
// line 10
|
||||
echo " ";
|
||||
$this->displayParentBlock("javascripts", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 13
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 14
|
||||
echo " ";
|
||||
$this->displayParentBlock("bottom", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
// line 15
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 16
|
||||
echo " <script>
|
||||
// singlePageNav initialization & configuration
|
||||
\$('ul.navigation').singlePageNav({
|
||||
offset: \$('#header').outerHeight(),
|
||||
filter: ':not(.external)',
|
||||
updateHash: true,
|
||||
currentClass: 'active'
|
||||
});
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_header_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 30
|
||||
echo " <ul class=\"navigation\">
|
||||
";
|
||||
// line 31
|
||||
$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 32
|
||||
echo " ";
|
||||
$context["current_module"] = ((($this->getAttribute($context["module"], "active", array()) || $this->getAttribute($context["module"], "activeChild", array()))) ? ("active") : (""));
|
||||
// line 33
|
||||
echo " <li><a class=\"";
|
||||
echo ($context["current_module"] ?? null);
|
||||
echo "\" href=\"#";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "menu", array())), "method");
|
||||
echo "\">";
|
||||
echo $this->getAttribute($context["module"], "menu", array());
|
||||
echo "</a></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 35
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["site"] ?? null), "menu", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["mitem"]) {
|
||||
// line 36
|
||||
echo " <li>
|
||||
<a ";
|
||||
// line 37
|
||||
if ($this->getAttribute($context["mitem"], "class", array())) {
|
||||
echo "class=\"";
|
||||
echo $this->getAttribute($context["mitem"], "class", array());
|
||||
echo "\"";
|
||||
}
|
||||
echo " href=\"";
|
||||
echo $this->getAttribute($context["mitem"], "url", array());
|
||||
echo "\">
|
||||
";
|
||||
// line 38
|
||||
if ($this->getAttribute($context["mitem"], "icon", array())) {
|
||||
echo "<i class=\"fa fa-";
|
||||
echo $this->getAttribute($context["mitem"], "icon", array());
|
||||
echo "\"></i>";
|
||||
}
|
||||
// line 39
|
||||
echo " ";
|
||||
echo $this->getAttribute($context["mitem"], "text", array());
|
||||
echo "
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mitem'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 43
|
||||
echo " </ul>
|
||||
";
|
||||
} else {
|
||||
// line 45
|
||||
echo " ";
|
||||
$this->displayParentBlock("header_navigation", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 49
|
||||
public function block_hero($context, array $blocks = array())
|
||||
{
|
||||
// line 50
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
if (($this->getAttribute($context["module"], "template", array()) == "modular/hero")) {
|
||||
// line 51
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "menu", array())), "method");
|
||||
echo "\"></div>
|
||||
";
|
||||
// line 52
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
// line 56
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 57
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
if (($this->getAttribute($context["module"], "template", array()) != "modular/hero")) {
|
||||
// line 58
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "menu", array())), "method");
|
||||
echo "\"></div>
|
||||
";
|
||||
// line 59
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
// line 4
|
||||
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(" " => "_"));
|
||||
} 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.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 204 => 4, 193 => 59, 188 => 58, 182 => 57, 179 => 56, 168 => 52, 163 => 51, 157 => 50, 154 => 49, 146 => 45, 142 => 43, 131 => 39, 125 => 38, 115 => 37, 112 => 36, 107 => 35, 94 => 33, 91 => 32, 87 => 31, 84 => 30, 81 => 29, 78 => 28, 64 => 16, 62 => 15, 57 => 14, 54 => 13, 47 => 10, 44 => 9, 41 => 8, 38 => 7, 35 => 6, 31 => 1, 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 show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
||||
|
||||
{% block javascripts %}
|
||||
{% if show_onpage_menu %}
|
||||
{% do assets.add('theme://js/singlepagenav.min.js') %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block bottom %}
|
||||
{{ parent() }}
|
||||
{% if show_onpage_menu %}
|
||||
<script>
|
||||
// singlePageNav initialization & configuration
|
||||
\$('ul.navigation').singlePageNav({
|
||||
offset: \$('#header').outerHeight(),
|
||||
filter: ':not(.external)',
|
||||
updateHash: true,
|
||||
currentClass: 'active'
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block header_navigation %}
|
||||
{% if show_onpage_menu %}
|
||||
<ul class=\"navigation\">
|
||||
{% for module in page.collection() %}
|
||||
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
|
||||
<li><a class=\"{{ current_module }}\" href=\"#{{ _self.pageLinkName(module.menu) }}\">{{ module.menu }}</a></li>
|
||||
{% endfor %}
|
||||
{% for mitem in site.menu %}
|
||||
<li>
|
||||
<a {% if mitem.class %}class=\"{{ mitem.class }}\"{% endif %} href=\"{{ mitem.url }}\">
|
||||
{% if mitem.icon %}<i class=\"fa fa-{{ mitem.icon }}\"></i>{% endif %}
|
||||
{{ mitem.text }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block hero %}
|
||||
{% for module in page.collection() if module.template == 'modular/hero' %}
|
||||
<div id=\"{{ _self.pageLinkName(module.menu) }}\"></div>
|
||||
{{ module.content }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% for module in page.collection() if module.template != 'modular/hero' %}
|
||||
<div id=\"{{ _self.pageLinkName(module.menu) }}\"></div>
|
||||
{{ module.content }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/modular.html.twig");
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/column/column.html.twig */
|
||||
class __TwigTemplate_9018b04d78d6cfac8b3075df5f018bd842ba6a0c2177af853b85f5cbcc0520c6 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/column/column.html.twig");
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/* partials/nav-toggle.html.twig */
|
||||
class __TwigTemplate_b4893f7944c8a7073336ce4c7a8a7d50963ea1ee1314a9651b3ab8ca01a4d991 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/r2c.net/user/plugins/admin/themes/grav/templates/partials/nav-toggle.html.twig");
|
||||
}
|
||||
}
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
|
||||
/* partials/navigation.html.twig */
|
||||
class __TwigTemplate_a5a0d6707a9694c96990718f858ab269ba601539c8362d5f92578f18760e6278 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 22
|
||||
echo "
|
||||
<ul ";
|
||||
// line 23
|
||||
echo ((($context["tree"] ?? null)) ? ("class=\"tree\"") : (""));
|
||||
echo ">
|
||||
";
|
||||
// line 24
|
||||
echo $this->getAttribute($this, "nav_loop", array(0 => ($context["pages"] ?? null)), "method");
|
||||
echo "
|
||||
</ul>
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
// line 1
|
||||
public function getnav_loop($__page__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"page" => $__page__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
// line 2
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["page"] ?? null), "children", array()), "visible", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
|
||||
// line 3
|
||||
echo " ";
|
||||
$context["active_page"] = ((($this->getAttribute($context["p"], "active", array()) || $this->getAttribute($context["p"], "activeChild", array()))) ? ("active") : (""));
|
||||
// line 4
|
||||
echo " ";
|
||||
if (($this->getAttribute($this->getAttribute($this->getAttribute($context["p"], "children", array()), "visible", array()), "count", array()) > 0)) {
|
||||
// line 5
|
||||
echo " <li>
|
||||
<a href=\"";
|
||||
// line 6
|
||||
echo $this->getAttribute($context["p"], "url", array());
|
||||
echo "\" class=\"";
|
||||
echo ($context["active_page"] ?? null);
|
||||
echo "\">
|
||||
";
|
||||
// line 7
|
||||
echo $this->getAttribute($context["p"], "menu", array());
|
||||
echo "
|
||||
</a>
|
||||
<ul>
|
||||
";
|
||||
// line 10
|
||||
echo $this->getAttribute($this, "nav_loop", array(0 => $context["p"]), "method");
|
||||
echo "
|
||||
</ul>
|
||||
</li>
|
||||
";
|
||||
} else {
|
||||
// line 14
|
||||
echo " <li>
|
||||
<a href=\"";
|
||||
// line 15
|
||||
echo $this->getAttribute($context["p"], "url", array());
|
||||
echo "\" class=\"";
|
||||
echo ($context["active_page"] ?? null);
|
||||
echo "\">
|
||||
";
|
||||
// line 16
|
||||
echo $this->getAttribute($context["p"], "menu", array());
|
||||
echo "
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/navigation.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 95 => 20, 88 => 16, 82 => 15, 79 => 14, 72 => 10, 66 => 7, 60 => 6, 57 => 5, 54 => 4, 51 => 3, 46 => 2, 34 => 1, 26 => 24, 22 => 23, 19 => 22,);
|
||||
}
|
||||
|
||||
/** @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 nav_loop(page) %}
|
||||
{% for p in page.children.visible %}
|
||||
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||
{% if p.children.visible.count > 0 %}
|
||||
<li>
|
||||
<a href=\"{{ p.url }}\" class=\"{{ active_page }}\">
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
<ul>
|
||||
{{ _self.nav_loop(p) }}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<a href=\"{{ p.url }}\" class=\"{{ active_page }}\">
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
<ul {{ tree ? 'class=\"tree\"' : '' }}>
|
||||
{{ _self.nav_loop(pages) }}
|
||||
</ul>
|
||||
|
||||
", "partials/navigation.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/partials/navigation.html.twig");
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/* partials/page-legend.html.twig */
|
||||
class __TwigTemplate_e1bcd97b9c8f9f57f2a70c5351b2c6a24f4aecea6fe567b294aa42239ee5e8e3 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\Twig\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\Twig\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/r2c.net/user/plugins/admin/themes/grav/templates/partials/page-legend.html.twig");
|
||||
}
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/markdown/markdown.html.twig */
|
||||
class __TwigTemplate_68c84c2ade027aedf3f2118b1e1e83fd16cd97339cd00a680a157bf0f1f8bb74 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/markdown/markdown.html.twig");
|
||||
}
|
||||
}
|
||||
+566
@@ -0,0 +1,566 @@
|
||||
<?php
|
||||
|
||||
/* forms/field.html.twig */
|
||||
class __TwigTemplate_bc73794aeb9d8c0169cf29307072e81d85ffecb32e9ee7df3de0bd3d70ddbf7b 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()) || ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "type", array()) == "yaml")) && twig_test_iterable(($context["value"] ?? null)))) {
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["value"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\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 107
|
||||
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 44
|
||||
echo " </label>
|
||||
";
|
||||
// line 45
|
||||
if ($this->getAttribute(($context["field"] ?? null), "sublabel", array())) {
|
||||
// line 46
|
||||
echo " <div class=\"form-sublabel\">
|
||||
";
|
||||
// line 47
|
||||
if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
|
||||
// line 48
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "sublabel", array())), false);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 50
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "sublabel", array()));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 52
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 54
|
||||
echo " </div>
|
||||
<div class=\"form-data";
|
||||
// line 55
|
||||
if ( !($context["vertical"] ?? null)) {
|
||||
echo " block size-2-3";
|
||||
}
|
||||
echo "\"
|
||||
";
|
||||
// line 56
|
||||
$this->displayBlock('global_attributes', $context, $blocks);
|
||||
// line 61
|
||||
echo " >
|
||||
";
|
||||
// line 62
|
||||
$this->displayBlock('group', $context, $blocks);
|
||||
// line 94
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "description", array())) {
|
||||
// line 95
|
||||
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 97
|
||||
if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
|
||||
// line 98
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "description", array())), false);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 100
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "description", array()));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 102
|
||||
echo " </span>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 105
|
||||
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 " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
|
||||
// line 31
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", array())), false), "html");
|
||||
echo "\">";
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), false);
|
||||
echo "</span>
|
||||
";
|
||||
} else {
|
||||
// line 33
|
||||
echo " <span class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", array())), "html");
|
||||
echo "\">";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array()));
|
||||
echo "</span>
|
||||
";
|
||||
}
|
||||
// line 35
|
||||
echo " ";
|
||||
} else {
|
||||
// line 36
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
|
||||
// line 37
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), false);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 39
|
||||
echo " ";
|
||||
echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array()));
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 41
|
||||
echo " ";
|
||||
}
|
||||
// line 42
|
||||
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 56
|
||||
public function block_global_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 57
|
||||
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 58
|
||||
echo twig_escape_filter($this->env, ($context["toggleableChecked"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
data-grav-default=\"";
|
||||
// line 59
|
||||
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
|
||||
echo "\"
|
||||
";
|
||||
}
|
||||
|
||||
// line 62
|
||||
public function block_group($context, array $blocks = array())
|
||||
{
|
||||
// line 63
|
||||
echo " ";
|
||||
$this->displayBlock('input', $context, $blocks);
|
||||
// line 93
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 63
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 64
|
||||
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 65
|
||||
$this->displayBlock('prepend', $context, $blocks);
|
||||
// line 66
|
||||
echo " <input
|
||||
";
|
||||
// line 68
|
||||
echo " name=\"";
|
||||
echo twig_escape_filter($this->env, ($context["field_name"] ?? null), "html", null, true);
|
||||
echo "\"
|
||||
value=\"";
|
||||
// line 69
|
||||
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 70
|
||||
if ($this->getAttribute(($context["field"] ?? null), "key", array())) {
|
||||
// line 71
|
||||
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 73
|
||||
echo " ";
|
||||
// line 74
|
||||
echo " ";
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 89
|
||||
echo " />
|
||||
";
|
||||
// line 90
|
||||
$this->displayBlock('append', $context, $blocks);
|
||||
// line 91
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 65
|
||||
public function block_prepend($context, array $blocks = array())
|
||||
{
|
||||
}
|
||||
|
||||
// line 74
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 75
|
||||
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 76
|
||||
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 77
|
||||
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 78
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 79
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 80
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 81
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 82
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 83
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off", 2 => "new-password"))) {
|
||||
echo "autocomplete=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 84
|
||||
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 85
|
||||
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 86
|
||||
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\Twig\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 87
|
||||
($context["field"] ?? null), "title", array(), "any", true, true)) {
|
||||
echo "title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "title", array()))), "html", null, true);
|
||||
echo "\" ";
|
||||
}
|
||||
// line 88
|
||||
echo " ";
|
||||
}
|
||||
|
||||
// line 90
|
||||
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 ( 427 => 90, 423 => 88, 417 => 87, 410 => 86, 403 => 85, 398 => 84, 391 => 83, 386 => 82, 381 => 81, 376 => 80, 369 => 79, 364 => 78, 357 => 77, 350 => 76, 343 => 75, 340 => 74, 335 => 65, 330 => 91, 328 => 90, 325 => 89, 322 => 74, 320 => 73, 314 => 71, 312 => 70, 308 => 69, 303 => 68, 300 => 66, 298 => 65, 291 => 64, 288 => 63, 284 => 93, 281 => 63, 278 => 62, 272 => 59, 268 => 58, 263 => 57, 260 => 56, 253 => 42, 250 => 41, 244 => 39, 238 => 37, 235 => 36, 232 => 35, 224 => 33, 216 => 31, 213 => 30, 210 => 29, 207 => 28, 202 => 105, 197 => 102, 191 => 100, 185 => 98, 183 => 97, 175 => 95, 172 => 94, 170 => 62, 167 => 61, 165 => 56, 159 => 55, 156 => 54, 152 => 52, 146 => 50, 140 => 48, 138 => 47, 135 => 46, 133 => 45, 130 => 44, 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 => 107, 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 or field.validate.type == '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 %}
|
||||
{% if field.markdown %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ field.help|tu|markdown(false)|e('html') }}\">{{ field.label|tu|markdown(false)|raw }}</span>
|
||||
{% else %}
|
||||
<span class=\"hint--bottom\" data-hint=\"{{ field.help|tu|e('html') }}\">{{ field.label|tu|raw }}</span>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if field.markdown %}
|
||||
{{ field.label|tu|markdown(false)|raw }}
|
||||
{% else %}
|
||||
{{ field.label|tu|raw }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{ field.validate.required in ['on', 'true', 1] ? '<span class=\"required\">*</span>' }}
|
||||
{% endblock %}
|
||||
</label>
|
||||
{% if field.sublabel %}
|
||||
<div class=\"form-sublabel\">
|
||||
{% if field.markdown %}
|
||||
{{ field.sublabel|tu|markdown(false)|raw }}
|
||||
{% else %}
|
||||
{{ field.sublabel|tu|raw }}
|
||||
{% endif %}
|
||||
</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', 'new-password'] %}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\">
|
||||
{% if field.markdown %}
|
||||
{{ field.description|tu|markdown(false)|raw }}
|
||||
{% else %}
|
||||
{{ field.description|tu|raw }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/field.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/field.html.twig");
|
||||
}
|
||||
}
|
||||
+283
@@ -0,0 +1,283 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/pages/pages.html.twig */
|
||||
class __TwigTemplate_aba8ed0820091a68cf71ddf44b6e6ded52fc5b5ceb35523d0b0367818edf58b8 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/pages/pages.html.twig");
|
||||
}
|
||||
}
|
||||
+366
@@ -0,0 +1,366 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/array/array.html.twig */
|
||||
class __TwigTemplate_ddf6314bc6b6e404c0cc85424b7d5e6594c89c6d904d5c82b657612b839d490b 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\Twig\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\Twig\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 class=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo "\" 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\Twig\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\Twig\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\Twig\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\Twig\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 ( 231 => 34, 227 => 33, 223 => 32, 219 => 31, 213 => 27, 207 => 25, 203 => 24, 199 => 23, 194 => 20, 191 => 19, 188 => 18, 185 => 17, 183 => 16, 174 => 13, 172 => 12, 169 => 11, 154 => 10, 149 => 77, 141 => 72, 137 => 71, 133 => 70, 128 => 67, 122 => 65, 118 => 64, 113 => 61, 111 => 60, 107 => 58, 100 => 55, 97 => 54, 89 => 52, 84 => 51, 82 => 50, 76 => 48, 74 => 47, 69 => 46, 67 => 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 class=\"{{ field.size }}\" 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/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/array/array.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user