68556e0c0fe68c1a072bb7bef8f2c4e36532e88e2189d5aed3dc55ea40fc61f2.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. /* partials/blueprints-new-folder.html.twig */
  3. class __TwigTemplate_6e9fa04004f172468b47300f802c591da6d76e466d23a219327830d449e046cd 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)) : ("blueprints"));
  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-grav-keepalive=\"true\">
  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/blueprints-new-folder.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. <input type=\"hidden\" name=\"task\" value=\"saveNewFolder\" />
  78. <div class=\"button-bar\">
  79. <button class=\"button primary\">";
  80. // line 16
  81. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE"), "html", null, true);
  82. echo "</button>
  83. </div>
  84. ";
  85. // line 19
  86. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
  87. echo "
  88. </form>
  89. ";
  90. }
  91. public function getTemplateName()
  92. {
  93. return "partials/blueprints-new-folder.html.twig";
  94. }
  95. public function isTraitable()
  96. {
  97. return false;
  98. }
  99. public function getDebugInfo()
  100. {
  101. return array ( 91 => 19, 85 => 16, 80 => 13, 66 => 12, 62 => 10, 60 => 9, 55 => 8, 52 => 7, 49 => 6, 32 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 1,);
  102. }
  103. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  104. public function getSource()
  105. {
  106. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  107. return $this->getSourceContext()->getCode();
  108. }
  109. public function getSourceContext()
  110. {
  111. return new Twig_Source("{% set form_id = form_id ? form_id : 'blueprints' %}
  112. {% set scope = scope ?: 'data.' %}
  113. <form id=\"{{ form_id }}\" method=\"post\" data-grav-form=\"{{ form_id }}\" data-grav-keepalive=\"true\">
  114. {% for field in blueprints.fields %}
  115. {% if field.type %}
  116. {% set value = field.name ? data.value(field.name) : data.toArray %}
  117. <div class=\"block block-{{field.type}}\">
  118. {% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
  119. </div>
  120. {% endif %}
  121. {% endfor %}
  122. <input type=\"hidden\" name=\"task\" value=\"saveNewFolder\" />
  123. <div class=\"button-bar\">
  124. <button class=\"button primary\">{{ \"PLUGIN_ADMIN.SAVE\"|tu }}</button>
  125. </div>
  126. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  127. </form>
  128. ", "partials/blueprints-new-folder.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/blueprints-new-folder.html.twig");
  129. }
  130. }