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