first commit

This commit is contained in:
2018-04-11 17:57:57 +02:00
commit fdfcfbd2a6
4073 changed files with 501866 additions and 0 deletions
@@ -0,0 +1,242 @@
<?php
/* home.html.twig */
class __TwigTemplate_7fe4981640c1b846664c2557520ed65bfae86a413c9247070928bc796a200d50 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("partials/base.html.twig", "home.html.twig", 1);
$this->blocks = array(
'javascripts' => array($this, 'block_javascripts'),
'header_navigation' => array($this, 'block_header_navigation'),
'content' => array($this, 'block_content'),
);
}
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 4
$context["cc"] = $this->getAttribute(($context["taxonomy"] ?? null), "findTaxonomy", array(0 => array("category" => "sous-menu")), "method");
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 8
public function block_javascripts($context, array $blocks = array())
{
// line 9
echo " ";
if (($context["show_onpage_menu"] ?? null)) {
// line 10
echo " ";
}
// line 11
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
}
// line 14
public function block_header_navigation($context, array $blocks = array())
{
// line 15
echo " ";
if (($context["show_onpage_menu"] ?? null)) {
// line 16
echo " <ul class=\"navigation\">
";
// line 17
$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 18
echo " <li class=\"";
echo $this->getAttribute($this->getAttribute($context["module"], "header", array()), "body_classes", array());
echo "\">
<a href=\"#";
// line 19
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
echo "\">";
echo $this->getAttribute($context["module"], "menu", array());
echo "</a>
";
// line 20
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["module"], "collection", array()));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 21
echo " ";
if (twig_in_filter($context["child"], ($context["cc"] ?? null))) {
// line 22
echo " <ol>
<a href=\"#";
// line 23
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["child"], "folder", array())), "method");
echo "\">";
echo $this->getAttribute($context["child"], "menu", array());
echo "</a>
</ol>
";
}
// line 26
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo " </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 29
echo "
</ul>
";
} else {
// line 32
echo " ";
$this->displayParentBlock("header_navigation", $context, $blocks);
echo "
";
}
}
// line 36
public function block_content($context, array $blocks = array())
{
// line 37
echo " ";
echo $this->getAttribute(($context["page"] ?? null), "content", array());
echo "
";
// line 38
$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 39
echo " <div id=\"";
echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
echo "\" class=\"column \">
";
// line 40
echo $this->getAttribute($context["module"], "content", array());
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 6
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("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
} 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 "home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 147 => 6, 136 => 40, 131 => 39, 127 => 38, 122 => 37, 119 => 36, 111 => 32, 106 => 29, 99 => 27, 93 => 26, 85 => 23, 82 => 22, 79 => 21, 75 => 20, 69 => 19, 64 => 18, 60 => 17, 57 => 16, 54 => 15, 51 => 14, 44 => 11, 41 => 10, 38 => 9, 35 => 8, 31 => 1, 29 => 4, 27 => 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 %}
{% set cc = taxonomy.findTaxonomy({'category':'sous-menu'}) %}
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
{% block javascripts %}
{% if show_onpage_menu %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block header_navigation %}
{% if show_onpage_menu %}
<ul class=\"navigation\">
{% for module in page.collection() %}
<li class=\"{{module.header.body_classes}}\">
<a href=\"#{{ _self.pageLinkName(module.folder) }}\">{{ module.menu }}</a>
{% for child in module.collection %}
{% if child in cc %}
<ol>
<a href=\"#{{ _self.pageLinkName(child.folder) }}\">{{ child.menu }}</a>
</ol>
{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block content %}
{{ page.content }}
{% for module in page.collection() %}
<div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"column \">
{{ module.content }}
</div>
{% endfor %}
{% endblock %}
", "home.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/home.html.twig");
}
}
@@ -0,0 +1,272 @@
<?php
/* forms/fields/order/order.html.twig */
class __TwigTemplate_dd4348b2ff117d7be86395492ae48b7f08d25f10ebc9bbb6696bef8aaff994f4 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["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null)));
// line 2
$context["siblings"] = $this->getAttribute($this->getAttribute(($context["data"] ?? null), "parent", array()), "children", array());
// line 3
$context["canOrder"] = $this->getAttribute(($context["data"] ?? null), "order", array());
// line 4
$context["vertical"] = ($this->getAttribute(($context["field"] ?? null), "style", array()) == "vertical");
// line 5
echo "
<div class=\"form-field grid pure-g";
// line 6
if (($context["vertical"] ?? null)) {
echo " vertical";
}
echo "\">
<div class=\"form-label";
// line 7
if ( !($context["vertical"] ?? null)) {
echo " block size-1-3 pure-u-1-3";
}
echo "\">
<label>
";
// line 9
if ($this->getAttribute(($context["field"] ?? null), "help", array())) {
// line 10
echo " <span class=\"tooltip\" data-asTooltip-position=\"w\" title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "help", array()))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
echo "</span>
";
} else {
// line 12
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())), "html", null, true);
echo "
";
}
// line 14
echo " ";
echo ((twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) ? ("<span class=\"required\">*</span>") : (""));
echo "
</label>
</div>
<div class=\"form-data";
// line 17
if ( !($context["vertical"] ?? null)) {
echo " block size-2-3 pure-u-2-3";
}
echo "\">
<div class=\"form-order-wrapper ";
// line 18
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
echo "\">
<input
type=\"hidden\"
data-order
";
// line 23
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
// line 24
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 "\"
value=\"\" />
";
// line 26
if ( !($context["canOrder"] ?? null)) {
// line 27
echo " <div class=\"notice\">";
echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_PAGE_NO_PREFIX");
echo "</div>
";
}
// line 29
echo "
";
// line 30
if ((twig_length_filter($this->env, ($context["siblings"] ?? null)) < 200)) {
// line 31
echo " ";
$context["sortable_count"] = 0;
// line 32
echo "\t\t\t\t<ul id=\"ordering\" class=\"orderable ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
echo "\">
\t\t\t ";
// line 33
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["siblings"] ?? null));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
if ($this->getAttribute($context["page"], "order", array())) {
// line 34
echo "\t\t\t\t\t<li class=\"drag-handle\" data-id=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "slug", array()), "html", null, true);
echo "\" ";
echo ((($this->getAttribute($context["page"], "slug", array()) == $this->getAttribute(($context["data"] ?? null), "slug", array()))) ? ("data-active-id") : (""));
echo "><span class=\"page-order\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "order", array()), "html", null, true);
echo "</span> ";
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "title", array()));
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->getPageUrl($context, $context["page"]), "html", null, true);
echo "\"><i class=\"fa fa-external-link\"></i></a></li>
";
// line 35
$context["sortable_count"] = $this->getAttribute($context["loop"], "index", array());
// line 36
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo "\t\t\t\t</ul>
";
// line 38
if ((($context["sortable_count"] ?? null) < twig_length_filter($this->env, ($context["siblings"] ?? null)))) {
// line 39
echo " <label>Unsortable Pages</label>
<ul class=\"orderable disabled\">
";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["siblings"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
if ( !$this->getAttribute($context["page"], "order", array())) {
// line 42
echo " <li ";
echo ((($this->getAttribute($context["page"], "slug", array()) == $this->getAttribute(($context["data"] ?? null), "slug", array()))) ? ("data-active-id") : (""));
echo ">";
echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "title", array()));
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->getPageUrl($context, $context["page"]), "html", null, true);
echo "\"><i class=\"fa fa-external-link\"></i></a></li>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " </ul>
";
}
// line 46
echo "\t\t\t";
} else {
// line 47
echo " <div class=\"notice\">";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_TOO_MANY_SIBLINGS"), "html", null, true);
echo "</div>
\t\t\t";
}
// line 49
echo " </div>
</div>
</div>
";
}
public function getTemplateName()
{
return "forms/fields/order/order.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 188 => 49, 182 => 47, 179 => 46, 175 => 44, 161 => 42, 156 => 41, 152 => 39, 150 => 38, 147 => 37, 137 => 36, 135 => 35, 122 => 34, 111 => 33, 106 => 32, 103 => 31, 101 => 30, 98 => 29, 92 => 27, 90 => 26, 84 => 24, 80 => 23, 72 => 18, 66 => 17, 59 => 14, 53 => 12, 45 => 10, 43 => 9, 36 => 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 value = (value is null ? field.default : value) %}
{% set siblings = data.parent.children %}
{% set canOrder = data.order %}
{% set vertical = field.style == 'vertical' %}
<div class=\"form-field grid pure-g{% if vertical %} vertical{% endif %}\">
<div class=\"form-label{% if not vertical %} block size-1-3 pure-u-1-3{% endif %}\">
<label>
{% if field.help %}
<span class=\"tooltip\" data-asTooltip-position=\"w\" title=\"{{ field.help|e|tu }}\">{{ field.label|tu }}</span>
{% else %}
{{ field.label|tu }}
{% endif %}
{{ field.validate.required in ['on', 'true', 1] ? '<span class=\"required\">*</span>' }}
</label>
</div>
<div class=\"form-data{% if not vertical %} block size-2-3 pure-u-2-3{% endif %}\">
<div class=\"form-order-wrapper {{ field.size }}\">
<input
type=\"hidden\"
data-order
{% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
name=\"{{ (scope ~ field.name)|fieldName }}\"
value=\"\" />
{% if not canOrder %}
<div class=\"notice\">{{ \"PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_PAGE_NO_PREFIX\"|tu|raw }}</div>
{% endif %}
{% if siblings|length < 200 %}
{% set sortable_count = 0 %}
\t\t\t\t<ul id=\"ordering\" class=\"orderable {{ field.classes }}\">
\t\t\t {% for page in siblings if page.order %}
\t\t\t\t\t<li class=\"drag-handle\" data-id=\"{{ page.slug }}\" {{ page.slug == data.slug ? 'data-active-id' : ''}}><span class=\"page-order\">{{ page.order }}</span> {{ page.title|e }} <a href=\"{{ getPageUrl(page) }}\"><i class=\"fa fa-external-link\"></i></a></li>
{% set sortable_count = loop.index %}
{% endfor %}
\t\t\t\t</ul>
{% if sortable_count < siblings|length %}
<label>Unsortable Pages</label>
<ul class=\"orderable disabled\">
{% for page in siblings if not page.order %}
<li {{ page.slug == data.slug ? 'data-active-id' : ''}}>{{ page.title|e }} <a href=\"{{ getPageUrl(page) }}\"><i class=\"fa fa-external-link\"></i></a></li>
{% endfor %}
</ul>
{% endif %}
\t\t\t{% else %}
<div class=\"notice\">{{ \"PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_TOO_MANY_SIBLINGS\"|tu }}</div>
\t\t\t{% endif %}
</div>
</div>
</div>
", "forms/fields/order/order.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/order/order.html.twig");
}
}