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 "
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true); echo "\"> 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 "
"; echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_PAGE_NO_PREFIX"); echo "
"; } // 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
    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
  • 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 ">"; echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "order", array()), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute($context["page"], "title", array())); echo " env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->getPageUrl($context, $context["page"]), "html", null, true); echo "\">
  • "; // 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
"; // line 38 if ((($context["sortable_count"] ?? null) < twig_length_filter($this->env, ($context["siblings"] ?? null)))) { // line 39 echo "
    "; // 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 "
  • 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 " env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->getPageUrl($context, $context["page"]), "html", null, true); echo "\">
  • "; } } $_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 "
"; } // line 46 echo "\t\t\t"; } else { // line 47 echo "
"; 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 "
\t\t\t"; } // line 49 echo "
"; } 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' %}
{% if not canOrder %}
{{ \"PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_PAGE_NO_PREFIX\"|tu|raw }}
{% endif %} {% if siblings|length < 200 %} {% set sortable_count = 0 %} \t\t\t\t
    \t\t\t {% for page in siblings if page.order %} \t\t\t\t\t
  • {{ page.order }} {{ page.title|e }}
  • {% set sortable_count = loop.index %} {% endfor %} \t\t\t\t
{% if sortable_count < siblings|length %}
    {% for page in siblings if not page.order %}
  • {{ page.title|e }}
  • {% endfor %}
{% endif %} \t\t\t{% else %}
{{ \"PLUGIN_ADMIN.ORDERING_DISABLED_BECAUSE_TOO_MANY_SIBLINGS\"|tu }}
\t\t\t{% endif %}
", "forms/fields/order/order.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/order/order.html.twig"); } }