install gulp + reset
This commit is contained in:
+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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user