1ebcf6b6e46d932616cc1ef32d4d1726001728cb865d1750f0ce78e0c6fd39c7.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /* forms/fields/parents/parents.html.twig */
  3. class __TwigTemplate_ca929fc3fa1ab7d6b8880623f237476618e7198f89dc19a009fc64eed38fd485 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. // line 1
  9. $this->parent = $this->loadTemplate("forms/fields/pages/pages.html.twig", "forms/fields/parents/parents.html.twig", 1);
  10. $this->blocks = array(
  11. 'input' => array($this, 'block_input'),
  12. );
  13. }
  14. protected function doGetParent(array $context)
  15. {
  16. return "forms/fields/pages/pages.html.twig";
  17. }
  18. protected function doDisplay(array $context, array $blocks = array())
  19. {
  20. $this->parent->display($context, array_merge($this->blocks, $blocks));
  21. }
  22. // line 3
  23. public function block_input($context, array $blocks = array())
  24. {
  25. // line 4
  26. echo " ";
  27. $context["last_page_route"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "page", array()), "getLastPageRoute", array());
  28. // line 5
  29. echo " ";
  30. $context["show_slug_val"] = true;
  31. // line 6
  32. echo " ";
  33. $context["show_fullpath_val"] = false;
  34. // line 7
  35. echo "
  36. ";
  37. // line 8
  38. $context["show_parents"] = $this->getAttribute(($context["config"] ?? null), "get", array(0 => "plugins.admin.pages.show_parents"), "method");
  39. // line 9
  40. echo " ";
  41. if ((($context["show_parents"] ?? null) == "folder")) {
  42. // line 10
  43. echo " ";
  44. $context["show_slug_val"] = false;
  45. // line 11
  46. echo " ";
  47. } elseif ((($context["show_parents"] ?? null) == "fullpath")) {
  48. // line 12
  49. echo " ";
  50. $context["show_fullpath_val"] = true;
  51. // line 13
  52. echo " ";
  53. }
  54. // line 14
  55. echo "
  56. ";
  57. // line 15
  58. $context["defaults"] = array("show_root" => true, "show_all" => true, "show_slug" => ($context["show_slug_val"] ?? null), "show_fullpath" => ($context["show_fullpath_val"] ?? null), "default" => ($context["last_page_route"] ?? null));
  59. // line 16
  60. echo " ";
  61. $context["field"] = twig_array_merge(($context["field"] ?? null), ($context["defaults"] ?? null));
  62. // line 17
  63. echo " ";
  64. $this->displayParentBlock("input", $context, $blocks);
  65. echo "
  66. ";
  67. }
  68. public function getTemplateName()
  69. {
  70. return "forms/fields/parents/parents.html.twig";
  71. }
  72. public function isTraitable()
  73. {
  74. return false;
  75. }
  76. public function getDebugInfo()
  77. {
  78. return array ( 68 => 17, 65 => 16, 63 => 15, 60 => 14, 57 => 13, 54 => 12, 51 => 11, 48 => 10, 45 => 9, 43 => 8, 40 => 7, 37 => 6, 34 => 5, 31 => 4, 28 => 3, 11 => 1,);
  79. }
  80. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  81. public function getSource()
  82. {
  83. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  84. return $this->getSourceContext()->getCode();
  85. }
  86. public function getSourceContext()
  87. {
  88. return new Twig_Source("{% extends \"forms/fields/pages/pages.html.twig\" %}
  89. {% block input %}
  90. {% set last_page_route = admin.page.getLastPageRoute %}
  91. {% set show_slug_val = true %}
  92. {% set show_fullpath_val = false %}
  93. {% set show_parents = config.get('plugins.admin.pages.show_parents') %}
  94. {% if show_parents == 'folder' %}
  95. {% set show_slug_val = false %}
  96. {% elseif show_parents == 'fullpath' %}
  97. {% set show_fullpath_val = true %}
  98. {% endif %}
  99. {% set defaults = {show_root:true, show_all:true, show_slug:show_slug_val, show_fullpath:show_fullpath_val, default:last_page_route} %}
  100. {% set field = field|merge(defaults) %}
  101. {{ parent() }}
  102. {% endblock %}
  103. ", "forms/fields/parents/parents.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/parents/parents.html.twig");
  104. }
  105. }