install gulp + reset
This commit is contained in:
+317
@@ -0,0 +1,317 @@
|
||||
<?php
|
||||
|
||||
/* modular.html.twig */
|
||||
class __TwigTemplate_83132030e3a04f02dab32e4d7c3c04a4515041b2678c791bfc38e3aee82996a6 extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("partials/base.html.twig", "modular.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'javascripts' => array($this, 'block_javascripts'),
|
||||
'bottom' => array($this, 'block_bottom'),
|
||||
'header_navigation' => array($this, 'block_header_navigation'),
|
||||
'hero' => array($this, 'block_hero'),
|
||||
'body' => array($this, 'block_body'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
return "partials/base.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = array())
|
||||
{
|
||||
// line 3
|
||||
$context["show_onpage_menu"] = (($this->getAttribute(($context["header"] ?? null), "onpage_menu", array()) == true) || (null === $this->getAttribute(($context["header"] ?? null), "onpage_menu", array())));
|
||||
// line 1
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 6
|
||||
public function block_javascripts($context, array $blocks = array())
|
||||
{
|
||||
// line 7
|
||||
echo " ";
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 8
|
||||
echo " ";
|
||||
$this->getAttribute(($context["assets"] ?? null), "add", array(0 => "theme://js/singlepagenav.min.js"), "method");
|
||||
// line 9
|
||||
echo " ";
|
||||
}
|
||||
// line 10
|
||||
echo " ";
|
||||
$this->displayParentBlock("javascripts", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
// line 13
|
||||
public function block_bottom($context, array $blocks = array())
|
||||
{
|
||||
// line 14
|
||||
echo " ";
|
||||
$this->displayParentBlock("bottom", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
// line 15
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 16
|
||||
echo " <script>
|
||||
// singlePageNav initialization & configuration
|
||||
\$('ul.navigation').singlePageNav({
|
||||
offset: \$('#header').outerHeight(),
|
||||
filter: ':not(.external)',
|
||||
updateHash: true,
|
||||
currentClass: 'active'
|
||||
});
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 28
|
||||
public function block_header_navigation($context, array $blocks = array())
|
||||
{
|
||||
// line 29
|
||||
echo " ";
|
||||
if (($context["show_onpage_menu"] ?? null)) {
|
||||
// line 30
|
||||
echo " <ul class=\"navigation\">
|
||||
";
|
||||
// line 31
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
// line 32
|
||||
echo " ";
|
||||
$context["current_module"] = ((($this->getAttribute($context["module"], "active", array()) || $this->getAttribute($context["module"], "activeChild", array()))) ? ("active") : (""));
|
||||
// line 33
|
||||
echo " <li><a class=\"";
|
||||
echo ($context["current_module"] ?? null);
|
||||
echo "\" href=\"#";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "menu", array())), "method");
|
||||
echo "\">";
|
||||
echo $this->getAttribute($context["module"], "menu", array());
|
||||
echo "</a></li>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 35
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["site"] ?? null), "menu", array()));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["mitem"]) {
|
||||
// line 36
|
||||
echo " <li>
|
||||
<a ";
|
||||
// line 37
|
||||
if ($this->getAttribute($context["mitem"], "class", array())) {
|
||||
echo "class=\"";
|
||||
echo $this->getAttribute($context["mitem"], "class", array());
|
||||
echo "\"";
|
||||
}
|
||||
echo " href=\"";
|
||||
echo $this->getAttribute($context["mitem"], "url", array());
|
||||
echo "\">
|
||||
";
|
||||
// line 38
|
||||
if ($this->getAttribute($context["mitem"], "icon", array())) {
|
||||
echo "<i class=\"fa fa-";
|
||||
echo $this->getAttribute($context["mitem"], "icon", array());
|
||||
echo "\"></i>";
|
||||
}
|
||||
// line 39
|
||||
echo " ";
|
||||
echo $this->getAttribute($context["mitem"], "text", array());
|
||||
echo "
|
||||
</a>
|
||||
</li>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mitem'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 43
|
||||
echo " </ul>
|
||||
";
|
||||
} else {
|
||||
// line 45
|
||||
echo " ";
|
||||
$this->displayParentBlock("header_navigation", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
// line 49
|
||||
public function block_hero($context, array $blocks = array())
|
||||
{
|
||||
// line 50
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
if (($this->getAttribute($context["module"], "template", array()) == "modular/hero")) {
|
||||
// line 51
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "menu", array())), "method");
|
||||
echo "\"></div>
|
||||
";
|
||||
// line 52
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
// line 56
|
||||
public function block_body($context, array $blocks = array())
|
||||
{
|
||||
// line 57
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
||||
if (($this->getAttribute($context["module"], "template", array()) != "modular/hero")) {
|
||||
// line 58
|
||||
echo " <div id=\"";
|
||||
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "menu", array())), "method");
|
||||
echo "\"></div>
|
||||
";
|
||||
// line 59
|
||||
echo $this->getAttribute($context["module"], "content", array());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
}
|
||||
|
||||
// line 4
|
||||
public function getpageLinkName($__text__ = null, ...$__varargs__)
|
||||
{
|
||||
$context = $this->env->mergeGlobals(array(
|
||||
"text" => $__text__,
|
||||
"varargs" => $__varargs__,
|
||||
));
|
||||
|
||||
$blocks = array();
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array(" " => "_"));
|
||||
} catch (Exception $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
} catch (Throwable $e) {
|
||||
ob_end_clean();
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "modular.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 204 => 4, 193 => 59, 188 => 58, 182 => 57, 179 => 56, 168 => 52, 163 => 51, 157 => 50, 154 => 49, 146 => 45, 142 => 43, 131 => 39, 125 => 38, 115 => 37, 112 => 36, 107 => 35, 94 => 33, 91 => 32, 87 => 31, 84 => 30, 81 => 29, 78 => 28, 64 => 16, 62 => 15, 57 => 14, 54 => 13, 47 => 10, 44 => 9, 41 => 8, 38 => 7, 35 => 6, 31 => 1, 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 'partials/base.html.twig' %}
|
||||
|
||||
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
||||
|
||||
{% block javascripts %}
|
||||
{% if show_onpage_menu %}
|
||||
{% do assets.add('theme://js/singlepagenav.min.js') %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block bottom %}
|
||||
{{ parent() }}
|
||||
{% if show_onpage_menu %}
|
||||
<script>
|
||||
// singlePageNav initialization & configuration
|
||||
\$('ul.navigation').singlePageNav({
|
||||
offset: \$('#header').outerHeight(),
|
||||
filter: ':not(.external)',
|
||||
updateHash: true,
|
||||
currentClass: 'active'
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block header_navigation %}
|
||||
{% if show_onpage_menu %}
|
||||
<ul class=\"navigation\">
|
||||
{% for module in page.collection() %}
|
||||
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
|
||||
<li><a class=\"{{ current_module }}\" href=\"#{{ _self.pageLinkName(module.menu) }}\">{{ module.menu }}</a></li>
|
||||
{% endfor %}
|
||||
{% for mitem in site.menu %}
|
||||
<li>
|
||||
<a {% if mitem.class %}class=\"{{ mitem.class }}\"{% endif %} href=\"{{ mitem.url }}\">
|
||||
{% if mitem.icon %}<i class=\"fa fa-{{ mitem.icon }}\"></i>{% endif %}
|
||||
{{ mitem.text }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block hero %}
|
||||
{% for module in page.collection() if module.template == 'modular/hero' %}
|
||||
<div id=\"{{ _self.pageLinkName(module.menu) }}\"></div>
|
||||
{{ module.content }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% for module in page.collection() if module.template != 'modular/hero' %}
|
||||
<div id=\"{{ _self.pageLinkName(module.menu) }}\"></div>
|
||||
{{ module.content }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
", "modular.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/modular.html.twig");
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/column/column.html.twig */
|
||||
class __TwigTemplate_9018b04d78d6cfac8b3075df5f018bd842ba6a0c2177af853b85f5cbcc0520c6 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-column block pure-u-1-";
|
||||
echo twig_escape_filter($this->env, ($context["cols"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// 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/column/column.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/column/column.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 69 => 9, 55 => 8, 52 => 7, 49 => 6, 46 => 5, 43 => 4, 26 => 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-column block pure-u-1-{{ cols }}\">
|
||||
{% 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/column/column.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/column/column.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user