first commit

This commit is contained in:
2018-04-11 17:57:57 +02:00
commit fdfcfbd2a6
4073 changed files with 501866 additions and 0 deletions
@@ -0,0 +1,150 @@
<?php
/* forms/fields/datetime/datetime.html.twig */
class __TwigTemplate_330cf2a06b94650c369ccc8a096e33c98c44dfc542496612fd85d20cdd694b44 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/datetime/datetime.html.twig", 1);
$this->blocks = array(
'input' => array($this, 'block_input'),
'input_attributes' => array($this, 'block_input_attributes'),
);
}
protected function doGetParent(array $context)
{
return "forms/field.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 3
$context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
// line 4
$context["default_php_dateformat"] = $this->getAttribute(($context["admin"] ?? null), "guessDateFormat", array(0 => ($context["value"] ?? null)), "method");
// line 5
$context["php_dateformat"] = (($this->getAttribute(($context["field"] ?? null), "format", array())) ? ($this->getAttribute(($context["field"] ?? null), "format", array())) : ((($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "dateformat", array())) ? ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "dateformat", array())) : ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "dateformat", array()), "default", array())) ? ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "dateformat", array()), "default", array())) : (($context["default_php_dateformat"] ?? null)))))));
// line 6
$context["js_dateformat"] = $this->getAttribute(($context["admin"] ?? null), "dateformatToMomentJS", array(0 => ($context["php_dateformat"] ?? null)), "method");
// line 7
$context["value"] = (((null === ($context["value"] ?? null))) ? (($context["value"] ?? null)) : (twig_date_format_filter($this->env, ($context["value"] ?? null), ($context["php_dateformat"] ?? null))));
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 9
public function block_input($context, array $blocks = array())
{
// line 10
echo "<div class=\"form-input-wrapper datetime-picker-wrapper ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
echo "\">
<input
name=\"";
// line 12
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
echo "\"
value=\"";
// line 13
echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
echo "\"
";
// line 14
$this->displayBlock('input_attributes', $context, $blocks);
// line 21
echo " />
<span class=\"field-icons\">
<i class=\"fa fa-fw fa-calendar\"></i>
</span>
</div>
";
}
// line 14
public function block_input_attributes($context, array $blocks = array())
{
// line 15
echo " type=\"text\"
data-grav-datetime=\"";
// line 16
echo twig_escape_filter($this->env, twig_jsonencode_filter(array("format" => ($context["js_dateformat"] ?? null))), "html_attr");
echo "\"
";
// line 17
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) {
echo "min=\"";
echo twig_escape_filter($this->env, (((null === $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array())) : (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "min", array()), ($context["php_dateformat"] ?? null)))), "html", null, true);
echo "\"";
}
// line 18
echo " ";
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) {
echo "max=\"";
echo twig_escape_filter($this->env, (((null === $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()))) ? ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array())) : (twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "max", array()), ($context["php_dateformat"] ?? null)))), "html", null, true);
echo "\"";
}
// line 19
echo " ";
$this->displayParentBlock("input_attributes", $context, $blocks);
echo "
";
}
public function getTemplateName()
{
return "forms/fields/datetime/datetime.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 91 => 19, 84 => 18, 78 => 17, 74 => 16, 71 => 15, 68 => 14, 59 => 21, 57 => 14, 53 => 13, 49 => 12, 43 => 10, 40 => 9, 36 => 1, 34 => 7, 32 => 6, 30 => 5, 28 => 4, 26 => 3, 11 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% extends \"forms/field.html.twig\" %}
{% set value = (value is null ? field.default : value) %}
{% set default_php_dateformat = admin.guessDateFormat(value) %}
{% set php_dateformat = field.format ?: admin.page.dateformat ?: config.system.pages.dateformat.default ?: default_php_dateformat %}
{% set js_dateformat = admin.dateformatToMomentJS(php_dateformat) %}
{% set value = (value is null ? value : value|date(php_dateformat)) %}
{% block input %}
<div class=\"form-input-wrapper datetime-picker-wrapper {{ field.size }}\">
<input
name=\"{{ (scope ~ field.name)|fieldName }}\"
value=\"{{ value|raw|join(', ') }}\"
{% block input_attributes %}
type=\"text\"
data-grav-datetime=\"{{ {'format': js_dateformat} | json_encode | e('html_attr') }}\"
{% if field.validate.min %}min=\"{{ (field.validate.min is null ? field.validate.min : field.validate.min|date(php_dateformat)) }}\"{% endif %}
{% if field.validate.max %}max=\"{{ (field.validate.max is null ? field.validate.max : field.validate.max|date(php_dateformat)) }}\"{% endif %}
{{ parent() }}
{% endblock %}
/>
<span class=\"field-icons\">
<i class=\"fa fa-fw fa-calendar\"></i>
</span>
</div>
{% endblock %}
", "forms/fields/datetime/datetime.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/datetime/datetime.html.twig");
}
}
@@ -0,0 +1,122 @@
<?php
/* partials/dashboard-pages.html.twig */
class __TwigTemplate_04f8250bdf699797119c50fb6788037acd393cfb78ca31353fc6ce045224d778 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.pages", 1 => "admin.super"))) {
// line 2
echo " <div id=\"latest\">
<div class=\"button-bar\">
<a class=\"button\" href=\"";
// line 4
echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "route", array(0 => true), "method"), "html", null, true);
echo "/pages\"><i class=\"fa fa-fw fa-file-text-o\"></i>";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MANAGE_PAGES"), "html", null, true);
echo "</a>
</div>
<h1>";
// line 6
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LATEST_PAGE_UPDATES"), "html", null, true);
echo "</h1>
<table>
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "latestPages", array()));
foreach ($context['_seq'] as $context["_key"] => $context["latest"]) {
if ($this->getAttribute(($context["admin"] ?? null), "latestPages", array())) {
// line 9
echo " <tr>
<td class=\"triple page-title\">
<a href=\"";
// line 11
echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
echo "/pages/";
echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute($context["latest"], "route", array()), "/"), "html", null, true);
echo "\"><i class=\"fa fa-fw fa-file-text-o\"></i> ";
echo twig_escape_filter($this->env, $this->getAttribute($context["latest"], "title", array()));
echo "</a></td>
<td class=\"triple page-route\">";
// line 12
echo twig_escape_filter($this->env, $this->getAttribute($context["latest"], "route", array()), "html", null, true);
echo "</td><td>";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->adminNicetimeFilter($this->getAttribute($context["latest"], "modified", array())), "html", null, true);
echo "</td>
</tr>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['latest'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
echo " </table>
</div>
";
} else {
// line 18
echo " <div class=\"padding\">You don't have sufficient access to view the dashboard...</div>
";
}
}
public function getTemplateName()
{
return "partials/dashboard-pages.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 71 => 18, 66 => 15, 54 => 12, 46 => 11, 42 => 9, 37 => 8, 32 => 6, 25 => 4, 21 => 2, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% if authorize(['admin.pages', 'admin.super']) %}
<div id=\"latest\">
<div class=\"button-bar\">
<a class=\"button\" href=\"{{ uri.route(true) }}/pages\"><i class=\"fa fa-fw fa-file-text-o\"></i>{{ \"PLUGIN_ADMIN.MANAGE_PAGES\"|tu }}</a>
</div>
<h1>{{ \"PLUGIN_ADMIN.LATEST_PAGE_UPDATES\"|tu }}</h1>
<table>
{% for latest in admin.latestPages if admin.latestPages %}
<tr>
<td class=\"triple page-title\">
<a href=\"{{ base_url }}/pages/{{ latest.route|trim('/') }}\"><i class=\"fa fa-fw fa-file-text-o\"></i> {{ latest.title|e }}</a></td>
<td class=\"triple page-route\">{{ latest.route }}</td><td>{{ latest.modified|adminNicetime }}</td>
</tr>
{% endfor %}
</table>
</div>
{% else %}
<div class=\"padding\">You don't have sufficient access to view the dashboard...</div>
{% endif %}
", "partials/dashboard-pages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-pages.html.twig");
}
}
@@ -0,0 +1,111 @@
<?php
/* forms/fields/column/column.html.twig */
class __TwigTemplate_27d33db924f9d050c15c86e1ed6a2669e71a6f44e2dd0f582f8aca072496adb7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
// line 2
echo " <div class=\"form-column block pure-u-1-";
echo twig_escape_filter($this->env, ($context["cols"] ?? null), "html", null, true);
echo "\">
";
// line 3
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
// line 4
echo " ";
if ($this->getAttribute($context["field"], "type", array())) {
// line 5
echo " ";
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
// line 6
echo " ";
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/column/column.html.twig", 6)->display($context);
// line 7
echo " ";
}
// line 8
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
echo " </div>
";
}
}
public function getTemplateName()
{
return "forms/fields/column/column.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 69 => 9, 55 => 8, 52 => 7, 49 => 6, 46 => 5, 43 => 4, 26 => 3, 21 => 2, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% if field.fields %}
<div class=\"form-column block pure-u-1-{{ cols }}\">
{% for field in field.fields %}
{% if field.type %}
{% set value = field.name ? data.value(field.name) : data.toArray %}
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
{% endif %}
{% endfor %}
</div>
{% endif %}
", "forms/fields/column/column.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/column/column.html.twig");
}
}