aeb5f05e4b2386a60361fa72599d0b0cace27f8f2d4a521a703f5a68530b51dc.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /* partials/page-move.html.twig */
  3. class __TwigTemplate_19601c403034ee6811e92353726664856eda4e95590cceda7e5dbe92d7642def extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. $context["form_id"] = ((($context["form_id"] ?? null)) ? (($context["form_id"] ?? null)) : ("page-move"));
  16. // line 2
  17. $context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
  18. // line 3
  19. echo "
  20. <form id=\"";
  21. // line 4
  22. echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
  23. echo "\" method=\"post\" data-grav-form=\"";
  24. echo twig_escape_filter($this->env, ($context["form_id"] ?? null), "html", null, true);
  25. echo "\" data-page-move>
  26. ";
  27. // line 5
  28. $context['_parent'] = $context;
  29. $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["blueprints"] ?? null), "fields", array()));
  30. $context['loop'] = array(
  31. 'parent' => $context['_parent'],
  32. 'index0' => 0,
  33. 'index' => 1,
  34. 'first' => true,
  35. );
  36. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  37. $length = count($context['_seq']);
  38. $context['loop']['revindex0'] = $length - 1;
  39. $context['loop']['revindex'] = $length;
  40. $context['loop']['length'] = $length;
  41. $context['loop']['last'] = 1 === $length;
  42. }
  43. foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
  44. // line 6
  45. echo " ";
  46. if ($this->getAttribute($context["field"], "type", array())) {
  47. // line 7
  48. echo " ";
  49. $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())));
  50. // line 8
  51. echo " <div class=\"block block-";
  52. echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "type", array()), "html", null, true);
  53. echo "\">
  54. ";
  55. // line 9
  56. $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"), "partials/page-move.html.twig", 9)->display($context);
  57. // line 10
  58. echo " </div>
  59. ";
  60. }
  61. // line 12
  62. echo " ";
  63. ++$context['loop']['index0'];
  64. ++$context['loop']['index'];
  65. $context['loop']['first'] = false;
  66. if (isset($context['loop']['length'])) {
  67. --$context['loop']['revindex0'];
  68. --$context['loop']['revindex'];
  69. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  70. }
  71. }
  72. $_parent = $context['_parent'];
  73. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
  74. $context = array_intersect_key($context, $_parent) + $_parent;
  75. // line 13
  76. echo "
  77. ";
  78. // line 14
  79. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
  80. echo "
  81. <div class=\"button-bar\">
  82. <button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> ";
  83. // line 17
  84. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANCEL"), "html", null, true);
  85. echo "</button>
  86. <button class=\"button primary\" name=\"task\" value=\"save\">";
  87. // line 18
  88. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true);
  89. echo "</button>
  90. </div>
  91. </form>
  92. ";
  93. }
  94. public function getTemplateName()
  95. {
  96. return "partials/page-move.html.twig";
  97. }
  98. public function isTraitable()
  99. {
  100. return false;
  101. }
  102. public function getDebugInfo()
  103. {
  104. return array ( 93 => 18, 89 => 17, 83 => 14, 80 => 13, 66 => 12, 62 => 10, 60 => 9, 55 => 8, 52 => 7, 49 => 6, 32 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 1,);
  105. }
  106. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  107. public function getSource()
  108. {
  109. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  110. return $this->getSourceContext()->getCode();
  111. }
  112. public function getSourceContext()
  113. {
  114. return new Twig_Source("{% set form_id = form_id ? form_id : 'page-move' %}
  115. {% set scope = scope ?: 'data.' %}
  116. <form id=\"{{ form_id }}\" method=\"post\" data-grav-form=\"{{ form_id }}\" data-page-move>
  117. {% for field in blueprints.fields %}
  118. {% if field.type %}
  119. {% set value = field.name ? data.value(field.name) : data.toArray %}
  120. <div class=\"block block-{{field.type}}\">
  121. {% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
  122. </div>
  123. {% endif %}
  124. {% endfor %}
  125. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  126. <div class=\"button-bar\">
  127. <button data-remodal-action=\"cancel\" class=\"button secondary remodal-cancel\"><i class=\"fa fa-fw fa-close\"></i> {{ \"PLUGIN_ADMIN.CANCEL\"|tu }}</button>
  128. <button class=\"button primary\" name=\"task\" value=\"save\">{{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}</button>
  129. </div>
  130. </form>
  131. ", "partials/page-move.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/page-move.html.twig");
  132. }
  133. }