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,138 @@
<?php
/* forms/fields/taxonomy/taxonomy.html.twig */
class __TwigTemplate_fe723d9198ec273b8789299a5192f3316351724a13aed5f3c90cbee18ba06931 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["taxonomies"] = (((null === ($context["taxonomies"] ?? null))) ? ((($this->getAttribute(($context["field"] ?? null), "taxonomies", array())) ? ($this->getAttribute(($context["field"] ?? null), "taxonomies", array())) : ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "data", array(0 => "config/site"), "method"), "taxonomies", array())))) : (($context["taxonomies"] ?? null)));
// line 2
$context["parentname"] = $this->getAttribute(($context["field"] ?? null), "name", array());
// line 3
$context["options"] = $this->getAttribute(($context["field"] ?? null), "options", array());
// line 4
$context["default"] = $this->getAttribute(($context["field"] ?? null), "default", array());
// line 5
echo "
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["taxonomies"] ?? null));
$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["name"]) {
// line 7
echo "
";
// line 8
$context["value"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc((($this->getAttribute(($context["data"] ?? null), "value", array(0 => ("header.taxonomy." . $context["name"])), "method", true, true)) ? (_twig_default_filter($this->getAttribute(($context["data"] ?? null), "value", array(0 => ("header.taxonomy." . $context["name"])), "method"), ((($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array", true, true) && !(null === $this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")))) ? ($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")) : (array())))) : (((($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array", true, true) && !(null === $this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")))) ? ($this->getAttribute(($context["default"] ?? null), $context["name"], array(), "array")) : (array())))));
// line 9
echo " ";
$context["sub_taxonomies"] = twig_get_array_keys_filter((($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"], array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "taxonomy", array(), "any", false, true), "taxonomy", array(), "any", false, true), $context["name"]), array())) : (array())));
// line 10
echo " ";
$context["list"] = array_unique(twig_array_merge(twig_array_merge(((($this->getAttribute(($context["options"] ?? null), $context["name"], array(), "array", true, true) && !(null === $this->getAttribute(($context["options"] ?? null), $context["name"], array(), "array")))) ? ($this->getAttribute(($context["options"] ?? null), $context["name"], array(), "array")) : (array())), ($context["sub_taxonomies"] ?? null)), ($context["value"] ?? null)));
// line 11
echo "
";
// line 12
$context["field"] = array("type" => "select", "classes" => "fancy create", "label" => twig_capitalize_string_filter($this->env, // line 15
$context["name"]), "name" => (( // line 16
($context["parentname"] ?? null) . ".") . $context["name"]), "multiple" => true, "options" => // line 18
($context["list"] ?? null), "style" => $this->getAttribute( // line 19
($context["field"] ?? null), "style", array()), "selectize" => array("create" => true));
// line 24
echo "
";
// line 25
$this->loadTemplate(array(0 => "forms/fields/select/select.html.twig"), "forms/fields/taxonomy/taxonomy.html.twig", 25)->display($context);
++$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['name'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
public function getTemplateName()
{
return "forms/fields/taxonomy/taxonomy.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 70 => 25, 67 => 24, 65 => 19, 64 => 18, 63 => 16, 62 => 15, 61 => 12, 58 => 11, 55 => 10, 52 => 9, 50 => 8, 47 => 7, 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 taxonomies = (taxonomies is null ? (field.taxonomies ? field.taxonomies : admin.data('config/site').taxonomies) : taxonomies) %}
{% set parentname = field.name %}
{% set options = field.options %}
{% set default = field.default %}
{% for name in taxonomies %}
{% set value = array(data.value('header.taxonomy.' ~ name)|default(default[name] ?? [])) %}
{% set sub_taxonomies = attribute(grav.taxonomy.taxonomy, name)|default([])|keys %}
{% set list = (options[name] ?? [])|merge(sub_taxonomies)|merge(value)|array_unique %}
{% set field = {
type: 'select',
classes: 'fancy create',
label: name|capitalize,
name: parentname ~ '.' ~ name,
multiple: true,
options: list,
style: field.style,
selectize: {
create: true
}
} %}
{% include ['forms/fields/select/select.html.twig'] %}
{% endfor %}
", "forms/fields/taxonomy/taxonomy.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/taxonomy/taxonomy.html.twig");
}
}
@@ -0,0 +1,270 @@
<?php
/* forms/fields/tabs/tabs.html.twig */
class __TwigTemplate_95afabace3ae46227c43fbb9c00185f369c397df4c2e08a1c977617976caaff9 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 class=\"form-tabs ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "class", array()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
echo "\">
";
// line 3
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
// line 4
echo "
";
// line 5
$context["tabsKey"] = twig_join_filter(twig_get_array_keys_filter($this->getAttribute(($context["field"] ?? null), "fields", array())), ".");
// line 6
echo " ";
$context["storedValue"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->jsonDecodeFilter(_twig_default_filter($this->env->getExtension('Grav\Common\Twig\TwigExtension')->getCookie("grav-tabs-state"), "{}"));
// line 7
echo " ";
$context["storedTab"] = $this->getAttribute(($context["storedValue"] ?? null), ("tab-" . ($context["tabsKey"] ?? null)));
// line 8
echo "
";
// line 9
if (twig_test_empty(($context["storedTab"] ?? null))) {
// line 10
echo " ";
if ($this->getAttribute($this->getAttribute(($context["uri"] ?? null), "params", array()), "tab", array())) {
// line 11
echo " ";
$context["active"] = $this->getAttribute($this->getAttribute(($context["uri"] ?? null), "params", array()), "tab", array());
// line 12
echo " ";
} elseif ($this->getAttribute(($context["field"] ?? null), "active", array())) {
// line 13
echo " ";
$context["active"] = $this->getAttribute(($context["field"] ?? null), "active", array());
// line 14
echo " ";
} else {
// line 15
echo " ";
$context["active"] = 1;
// line 16
echo " ";
}
// line 17
echo " ";
}
// line 18
echo "
<div class=\"tabs-nav\">
";
// line 20
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "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["tab"]) {
// line 21
echo " ";
if ((($this->getAttribute($context["tab"], "type", array()) == "tab") && (twig_test_empty($this->getAttribute($context["tab"], "security", array())) || $this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize($this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc($this->getAttribute($context["tab"], "security", array())))))) {
// line 22
echo " <a class=\"tab__link ";
echo ((((($context["storedTab"] ?? null) == (($context["scope"] ?? null) . $this->getAttribute($context["tab"], "name", array()))) || (($context["active"] ?? null) == $this->getAttribute($context["loop"], "index", array())))) ? ("active") : (""));
echo "\" data-tabid=\"tab-";
echo twig_escape_filter($this->env, (($context["tabsKey"] ?? null) . $this->getAttribute($context["loop"], "index", array())), "html", null, true);
echo "\" data-tabkey=\"tab-";
echo twig_escape_filter($this->env, ($context["tabsKey"] ?? null), "html", null, true);
echo "\" data-scope=\"";
echo twig_escape_filter($this->env, (($context["scope"] ?? null) . $this->getAttribute($context["tab"], "name", array())), "html", null, true);
echo "\">
<span>
";
// line 24
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\Twig\AdminTwigExtension')->tuFilter($this->getAttribute($context["tab"], "title", array())), "html", null, true);
} else {
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($context["tab"], "title", array())), "html", null, true);
}
// line 25
echo " </span>
</a>
";
}
// line 28
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['tab'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " </div>
<div class=\"tabs-content\">
";
// line 31
$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 32
echo " ";
if (($this->getAttribute($context["field"], "type", array()) == "tab")) {
// line 33
echo " ";
if ((twig_test_empty($this->getAttribute($context["field"], "security", array())) || $this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize($this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFunc($this->getAttribute($context["field"], "security", array()))))) {
// line 34
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 35
echo " <div id=\"tab-";
echo twig_escape_filter($this->env, (($context["tabsKey"] ?? null) . $this->getAttribute($context["loop"], "index", array())), "html", null, true);
echo "\" class=\"tab__content ";
echo ((((($context["storedTab"] ?? null) == (($context["scope"] ?? null) . $this->getAttribute($context["field"], "name", array()))) || (($context["active"] ?? null) == $this->getAttribute($context["loop"], "index", array())))) ? ("active") : (""));
echo "\">
";
// line 36
$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/tabs/tabs.html.twig", 36)->display($context);
// line 37
echo " </div>
";
}
// line 39
echo " ";
}
// line 40
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 41
echo " </div>
";
}
// line 43
echo "</div>
";
}
public function getTemplateName()
{
return "forms/fields/tabs/tabs.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 194 => 43, 190 => 41, 176 => 40, 173 => 39, 169 => 37, 167 => 36, 160 => 35, 157 => 34, 154 => 33, 151 => 32, 134 => 31, 130 => 29, 116 => 28, 111 => 25, 105 => 24, 93 => 22, 90 => 21, 73 => 20, 69 => 18, 66 => 17, 63 => 16, 60 => 15, 57 => 14, 54 => 13, 51 => 12, 48 => 11, 45 => 10, 43 => 9, 40 => 8, 37 => 7, 34 => 6, 32 => 5, 29 => 4, 27 => 3, 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 class=\"form-tabs {{ field.class }} {{ field.classes }}\">
{% if field.fields %}
{% set tabsKey = field.fields|keys|join('.') %}
{% set storedValue = get_cookie('grav-tabs-state')|default('{}')|json_decode %}
{% set storedTab = attribute(storedValue, 'tab-' ~ tabsKey) %}
{% if storedTab is empty %}
{% if uri.params.tab %}
{% set active = uri.params.tab %}
{% elseif field.active %}
{% set active = field.active %}
{% else %}
{% set active = 1 %}
{% endif %}
{% endif %}
<div class=\"tabs-nav\">
{% for tab in field.fields %}
{% if tab.type == 'tab' and (tab.security is empty or authorize(array(tab.security))) %}
<a class=\"tab__link {{ (storedTab == scope ~ tab.name) or active == loop.index ? 'active' : '' }}\" data-tabid=\"tab-{{ tabsKey ~ loop.index }}\" data-tabkey=\"tab-{{ tabsKey }}\" data-scope=\"{{ scope ~ tab.name }}\">
<span>
{% if grav.twig.twig.filters['tu'] is defined %}{{ tab.title|tu }}{% else %}{{ tab.title|t }}{% endif %}
</span>
</a>
{% endif %}
{% endfor %}
</div>
<div class=\"tabs-content\">
{% for field in field.fields %}
{% if field.type == 'tab' %}
{% if field.security is empty or authorize(array(field.security)) %}
{% set value = field.name ? data.value(field.name) : data.toArray %}
<div id=\"tab-{{ tabsKey ~ loop.index }}\" class=\"tab__content {{ (storedTab == scope ~ field.name) or active == loop.index ? 'active' : '' }}\">
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
", "forms/fields/tabs/tabs.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/tabs/tabs.html.twig");
}
}