install gulp + reset

This commit is contained in:
2018-07-02 10:20:38 +02:00
parent 967f6c0e3e
commit 5dd9b69860
8369 changed files with 795362 additions and 210 deletions
@@ -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");
}
}
@@ -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");
}
}
@@ -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");
}
}