first commit
This commit is contained in:
+266
@@ -0,0 +1,266 @@
|
||||
<?php
|
||||
|
||||
/* partials/plugins-details.html.twig */
|
||||
class __TwigTemplate_deae902ef331c4406ec4e0eda68d175a875660c651c3f3ba158ec6f3c1de42bc extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
$context["gpm"] = $this->getAttribute(($context["admin"] ?? null), "gpm", array(), "method");
|
||||
// line 2
|
||||
$context["installed"] = $this->getAttribute(($context["gpm"] ?? null), "isPluginInstalled", array(0 => $this->getAttribute(($context["admin"] ?? null), "route", array())), "method");
|
||||
// line 3
|
||||
$context["isTestingRelease"] = $this->getAttribute(($context["gpm"] ?? null), "isTestingRelease", array(0 => $this->getAttribute(($context["plugin"] ?? null), "slug", array())), "method");
|
||||
// line 4
|
||||
$context["gumroad_loaded"] = false;
|
||||
// line 5
|
||||
echo "
|
||||
<div class=\"grav-update plugin\" data-gpm-plugin=\"";
|
||||
// line 6
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "route", array()), "html", null, true);
|
||||
echo "\">
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
";
|
||||
// line 10
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array()));
|
||||
echo "
|
||||
";
|
||||
// line 11
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => ($context["plugin"] ?? null)), "method")) {
|
||||
// line 12
|
||||
echo " <small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN"), "html", null, true);
|
||||
echo "\"></i></span></small>
|
||||
";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => ($context["plugin"] ?? null)), "method")) {
|
||||
// line 15
|
||||
echo " <small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true);
|
||||
echo "</span></small>
|
||||
";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["plugin"] ?? null), "symlink", array())) {
|
||||
// line 18
|
||||
echo " <small class=\"hint--bottom\" data-hint=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED"), "html", null, true);
|
||||
echo "\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</small>
|
||||
";
|
||||
}
|
||||
// line 22
|
||||
echo " <small>";
|
||||
echo twig_escape_filter($this->env, (($this->getAttribute(($context["plugin"] ?? null), "version", array())) ? (("v" . twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "version", array())))) : ("")), "html", null, true);
|
||||
echo "</small>
|
||||
";
|
||||
// line 23
|
||||
if (($context["isTestingRelease"] ?? null)) {
|
||||
echo "<span class=\"gpm-testing\">test release</span>";
|
||||
}
|
||||
// line 24
|
||||
echo "</h1>
|
||||
<div class=\"gpm-item-info\">
|
||||
<i class=\"gpm-item-icon fa fa-fw fa-";
|
||||
// line 26
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "icon", array()), "html", null, true);
|
||||
echo "\"></i>
|
||||
";
|
||||
// line 27
|
||||
$this->loadTemplate("partials/plugin-data.html.twig", "partials/plugins-details.html.twig", 27)->display(array_merge($context, array("plugin" => ($context["plugin"] ?? null))));
|
||||
// line 28
|
||||
echo "</div>
|
||||
|
||||
";
|
||||
// line 30
|
||||
if (($context["installed"] ?? null)) {
|
||||
// line 31
|
||||
echo " ";
|
||||
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("plugins/" . $this->getAttribute(($context["admin"] ?? null), "route", array()))), "method");
|
||||
// line 32
|
||||
echo " ";
|
||||
$this->loadTemplate("partials/blueprints.html.twig", "partials/plugins-details.html.twig", 32)->display(array_merge($context, array("data" => ($context["data"] ?? null), "blueprints" => $this->getAttribute(($context["data"] ?? null), "blueprints", array()))));
|
||||
// line 33
|
||||
echo "
|
||||
";
|
||||
// line 34
|
||||
if ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "form", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden") && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "form", array()), "fields", array()), "tabs", array()), "fields", array()), "login", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden"))) {
|
||||
// line 35
|
||||
echo " <div class=\"button-bar danger\">
|
||||
<span class=\"danger-zone\"></span>
|
||||
";
|
||||
// line 37
|
||||
if ( !$this->getAttribute(($context["plugin"] ?? null), "symlink", array())) {
|
||||
// line 38
|
||||
echo " <a class=\"button button-reinstall-package hidden\" href=\"#\" data-remodal-target=\"reinstall-package\"><i class=\"fa fa-fw fa-repeat\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REINSTALL_PLUGIN"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 40
|
||||
echo " <a class=\"button\" href=\"#\" data-remodal-target=\"remove-package\"><i class=\"fa fa-fw fa-warning\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.REMOVE_PLUGIN"), "html", null, true);
|
||||
echo "</a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 43
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 45
|
||||
echo " <div class=\"button-bar success\">
|
||||
";
|
||||
// line 46
|
||||
if (($this->getAttribute(($context["plugin"] ?? null), "premium", array()) && !$this->getAttribute(($context["admin"] ?? null), "license", array(0 => $this->getAttribute(($context["plugin"] ?? null), "slug", array())), "method"))) {
|
||||
// line 47
|
||||
echo " ";
|
||||
if ( !($context["gumroad_loaded"] ?? null)) {
|
||||
// line 48
|
||||
echo " ";
|
||||
$context["gumroad_loaded"] = true;
|
||||
// line 49
|
||||
echo " <script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
";
|
||||
}
|
||||
// line 51
|
||||
echo " <a class=\"gumroad-button button\" href=\"https://gum.co/";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["plugin"] ?? null), "premium", array()), "product_permalink", array()), "html", null, true);
|
||||
echo "\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("Buy Now"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
} else {
|
||||
// line 53
|
||||
echo " <a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "slug", array()), "html", null, true);
|
||||
echo "\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> ";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL_PLUGIN"), "html", null, true);
|
||||
echo "</a>
|
||||
";
|
||||
}
|
||||
// line 55
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 57
|
||||
echo "
|
||||
";
|
||||
// line 58
|
||||
$this->loadTemplate("partials/modal-changes-detected.html.twig", "partials/plugins-details.html.twig", 58)->display($context);
|
||||
// line 59
|
||||
$this->loadTemplate("partials/modal-add-package.html.twig", "partials/plugins-details.html.twig", 59)->display(array_merge($context, array("type" => "plugin")));
|
||||
// line 60
|
||||
$this->loadTemplate("partials/modal-update-packages.html.twig", "partials/plugins-details.html.twig", 60)->display(array_merge($context, array("type" => "plugin")));
|
||||
// line 61
|
||||
$this->loadTemplate("partials/modal-remove-package.html.twig", "partials/plugins-details.html.twig", 61)->display(array_merge($context, array("type" => "plugin", "package" => ($context["plugin"] ?? null))));
|
||||
// line 62
|
||||
$this->loadTemplate("partials/modal-reinstall-package.html.twig", "partials/plugins-details.html.twig", 62)->display(array_merge($context, array("type" => "plugin", "package" => ($context["plugin"] ?? null))));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "partials/plugins-details.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 174 => 62, 172 => 61, 170 => 60, 168 => 59, 166 => 58, 163 => 57, 159 => 55, 151 => 53, 143 => 51, 139 => 49, 136 => 48, 133 => 47, 131 => 46, 128 => 45, 124 => 43, 117 => 40, 111 => 38, 109 => 37, 105 => 35, 103 => 34, 100 => 33, 97 => 32, 94 => 31, 92 => 30, 88 => 28, 86 => 27, 82 => 26, 78 => 24, 74 => 23, 69 => 22, 61 => 18, 58 => 17, 52 => 15, 49 => 14, 43 => 12, 41 => 11, 37 => 10, 30 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("{% set gpm = admin.gpm() %}
|
||||
{% set installed = gpm.isPluginInstalled(admin.route) %}
|
||||
{% set isTestingRelease = gpm.isTestingRelease(plugin.slug) %}
|
||||
{% set gumroad_loaded = false %}
|
||||
|
||||
<div class=\"grav-update plugin\" data-gpm-plugin=\"{{ admin.route }}\">
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
{{ plugin.name|e }}
|
||||
{% if admin.isTeamGrav(plugin) %}
|
||||
<small><span class=\"info-reverse\"><i class=\"fa fa-check-circle\" title=\"{{ \"PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN\"|tu }}\"></i></span></small>
|
||||
{% endif %}
|
||||
{% if admin.isPremiumProduct(plugin) %}
|
||||
<small><span class=\"badge warning premium\"><i class=\"fa fa-star-o\"></i> {{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }}</span></small>
|
||||
{% endif %}
|
||||
{% if plugin.symlink %}
|
||||
<small class=\"hint--bottom\" data-hint=\"{{ \"PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED\"|tu }}\">
|
||||
<i class=\"fa fa-fw fa-link\"></i>
|
||||
</small>
|
||||
{% endif %}
|
||||
<small>{{ plugin.version ? 'v' ~ plugin.version|e }}</small>
|
||||
{% if isTestingRelease %}<span class=\"gpm-testing\">test release</span>{% endif %}
|
||||
</h1>
|
||||
<div class=\"gpm-item-info\">
|
||||
<i class=\"gpm-item-icon fa fa-fw fa-{{ plugin.icon }}\"></i>
|
||||
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
|
||||
</div>
|
||||
|
||||
{% if (installed) %}
|
||||
{% set data = admin.data('plugins/' ~ admin.route) %}
|
||||
{% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %}
|
||||
|
||||
{% if (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.login.fields.enabled.type != 'hidden') %}
|
||||
<div class=\"button-bar danger\">
|
||||
<span class=\"danger-zone\"></span>
|
||||
{% if not plugin.symlink %}
|
||||
<a class=\"button button-reinstall-package hidden\" href=\"#\" data-remodal-target=\"reinstall-package\"><i class=\"fa fa-fw fa-repeat\"></i> {{ \"PLUGIN_ADMIN.REINSTALL_PLUGIN\"|tu }}</a>
|
||||
{% endif %}
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"remove-package\"><i class=\"fa fa-fw fa-warning\"></i> {{ \"PLUGIN_ADMIN.REMOVE_PLUGIN\"|tu }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
<div class=\"button-bar success\">
|
||||
{% if (plugin.premium and not admin.license(plugin.slug)) %}
|
||||
{% if not gumroad_loaded %}
|
||||
{% set gumroad_loaded = true %}
|
||||
<script src=\"//gumroad.com/js/gumroad.js\"></script>
|
||||
{% endif %}
|
||||
<a class=\"gumroad-button button\" href=\"https://gum.co/{{ plugin.premium.product_permalink }}\" target=\"_blank\" data-gumroad-single-product=\"true\"><i class=\"fa fa-shopping-cart\"></i> {{ \"Buy Now\"|tu }}</a>
|
||||
{% else %}
|
||||
<a class=\"button\" href=\"#\" data-remodal-target=\"add-package\" data-packages-slugs=\"{{ plugin.slug }}\" data-plugin-action=\"start-package-installation\"><i class=\"fa fa-plus\"></i> {{ \"PLUGIN_ADMIN.INSTALL_PLUGIN\"|tu }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'partials/modal-changes-detected.html.twig' %}
|
||||
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %}
|
||||
{% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %}
|
||||
{% include 'partials/modal-remove-package.html.twig' with { type: 'plugin', package: plugin } %}
|
||||
{% include 'partials/modal-reinstall-package.html.twig' with { type: 'plugin', package: plugin } %}
|
||||
", "partials/plugins-details.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugins-details.html.twig");
|
||||
}
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/tab/tab.html.twig */
|
||||
class __TwigTemplate_21bbf8bc5fb09a8e9f91f1d2ed86dbeee555035bc9a47507937cbf078eaa5885 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = array(
|
||||
);
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 1
|
||||
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
|
||||
// line 2
|
||||
echo " <div class=\"form-tab\">
|
||||
";
|
||||
// line 3
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
|
||||
$context['loop'] = array(
|
||||
'parent' => $context['_parent'],
|
||||
'index0' => 0,
|
||||
'index' => 1,
|
||||
'first' => true,
|
||||
);
|
||||
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
|
||||
$length = count($context['_seq']);
|
||||
$context['loop']['revindex0'] = $length - 1;
|
||||
$context['loop']['revindex'] = $length;
|
||||
$context['loop']['length'] = $length;
|
||||
$context['loop']['last'] = 1 === $length;
|
||||
}
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
|
||||
// line 4
|
||||
echo " ";
|
||||
if ($this->getAttribute($context["field"], "type", array())) {
|
||||
// line 5
|
||||
echo " ";
|
||||
$context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
|
||||
// line 6
|
||||
echo " ";
|
||||
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/tab/tab.html.twig", 6)->display($context);
|
||||
// line 7
|
||||
echo " ";
|
||||
}
|
||||
// line 8
|
||||
echo " ";
|
||||
++$context['loop']['index0'];
|
||||
++$context['loop']['index'];
|
||||
$context['loop']['first'] = false;
|
||||
if (isset($context['loop']['length'])) {
|
||||
--$context['loop']['revindex0'];
|
||||
--$context['loop']['revindex'];
|
||||
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 9
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/tab/tab.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 67 => 9, 53 => 8, 50 => 7, 47 => 6, 44 => 5, 41 => 4, 24 => 3, 21 => 2, 19 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("{% if field.fields %}
|
||||
<div class=\"form-tab\">
|
||||
{% for field in field.fields %}
|
||||
{% if field.type %}
|
||||
{% set value = field.name ? data.value(field.name) : data.toArray %}
|
||||
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
", "forms/fields/tab/tab.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/tab/tab.html.twig");
|
||||
}
|
||||
}
|
||||
+209
@@ -0,0 +1,209 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/textarea/textarea.html.twig */
|
||||
class __TwigTemplate_a8f5e8d690cd8b4b740a01ecb24d59b7299ee6d3cfa697c5a960b45ebaefbe75 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/textarea/textarea.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input' => array($this, 'block_input'),
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "forms/field.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 3
|
||||
public function block_input($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " <div class=\"";
|
||||
echo twig_escape_filter($this->env, ((($context["form_field_wrapper_classes"] ?? null)) ? (($context["form_field_wrapper_classes"] ?? null)) : ("form-textarea-wrapper")), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
|
||||
echo "\">
|
||||
<textarea
|
||||
";
|
||||
// line 7
|
||||
echo " name=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 9
|
||||
echo " ";
|
||||
$this->displayBlock('input_attributes', $context, $blocks);
|
||||
// line 25
|
||||
echo " >";
|
||||
echo twig_escape_filter($this->env, twig_trim_filter(($context["value"] ?? null)), "html");
|
||||
echo "</textarea>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
// line 9
|
||||
public function block_input_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 10
|
||||
echo " class=\"";
|
||||
echo twig_escape_filter($this->env, ($context["form_field_textarea_classes"] ?? null), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
|
||||
echo "\"
|
||||
";
|
||||
// line 11
|
||||
if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
|
||||
echo "id=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 12
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
|
||||
echo "style=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
|
||||
echo "\" ";
|
||||
}
|
||||
// line 13
|
||||
echo " ";
|
||||
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
|
||||
echo "disabled=\"disabled\"";
|
||||
}
|
||||
// line 14
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
|
||||
echo "placeholder=\"";
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 15
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "autofocus=\"autofocus\"";
|
||||
}
|
||||
// line 16
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "novalidate=\"novalidate\"";
|
||||
}
|
||||
// line 17
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "readonly=\"readonly\"";
|
||||
}
|
||||
// line 18
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off"))) {
|
||||
echo "autocomplete=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 19
|
||||
echo " ";
|
||||
if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "required=\"required\"";
|
||||
}
|
||||
// line 20
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array())) {
|
||||
echo "pattern=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 21
|
||||
echo " ";
|
||||
if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())) {
|
||||
echo "title=\"";
|
||||
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())));
|
||||
} else {
|
||||
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())));
|
||||
}
|
||||
echo "\"";
|
||||
}
|
||||
// line 22
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "rows", array(), "any", true, true)) {
|
||||
echo "rows=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "rows", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 23
|
||||
echo " ";
|
||||
if ($this->getAttribute(($context["field"] ?? null), "cols", array(), "any", true, true)) {
|
||||
echo "cols=\"";
|
||||
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "cols", array()), "html", null, true);
|
||||
echo "\"";
|
||||
}
|
||||
// line 24
|
||||
echo " ";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/textarea/textarea.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 152 => 24, 145 => 23, 138 => 22, 127 => 21, 120 => 20, 115 => 19, 108 => 18, 103 => 17, 98 => 16, 93 => 15, 86 => 14, 81 => 13, 74 => 12, 68 => 11, 61 => 10, 58 => 9, 50 => 25, 47 => 9, 42 => 7, 32 => 4, 29 => 3, 11 => 1,);
|
||||
}
|
||||
|
||||
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
||||
public function getSource()
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return $this->getSourceContext()->getCode();
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Twig_Source("{% extends \"forms/field.html.twig\" %}
|
||||
|
||||
{% block input %}
|
||||
<div class=\"{{ form_field_wrapper_classes ?: 'form-textarea-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}\">
|
||||
<textarea
|
||||
{# required attribute structures #}
|
||||
name=\"{{ (scope ~ field.name)|fieldName }}\"
|
||||
{# input attribute structures #}
|
||||
{% block input_attributes %}
|
||||
class=\"{{ form_field_textarea_classes }} {{ field.classes }}\"
|
||||
{% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
|
||||
{% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
|
||||
{% if field.placeholder %}placeholder=\"{{ field.placeholder|t }}\"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
|
||||
{% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
|
||||
{% if field.autocomplete in ['on', 'off'] %}autocomplete=\"{{ field.autocomplete }}\"{% endif %}
|
||||
{% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
|
||||
{% if field.validate.pattern %}pattern=\"{{ field.validate.pattern }}\"{% endif %}
|
||||
{% if field.validate.message %}title=\"{% if grav.twig.twig.filters['tu'] is defined %}{{ field.validate.message|tu|e }}{% else %}{{ field.validate.message|t|e }}{% endif %}\"{% endif %}
|
||||
{% if field.rows is defined %}rows=\"{{ field.rows }}\"{% endif %}
|
||||
{% if field.cols is defined %}cols=\"{{ field.cols }}\"{% endif %}
|
||||
{% endblock %}
|
||||
>{{ value|trim|e('html') }}</textarea>
|
||||
</div>
|
||||
{% endblock %}
|
||||
", "forms/fields/textarea/textarea.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/textarea/textarea.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user