616c72d41f9a6d9894c043e69b665c1b04b0a434c35bcd30951e781ef8bd1cd0.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. /* forms/fields/parents/parents.html.twig */
  3. class __TwigTemplate_50c4e0a26b08bb578e1808433f01cecb36cbee7c7020019675a44fa0a8d514b5 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["limit_levels_val"] = $this->getAttribute(($context["config"] ?? null), "get", array(0 => "plugins.admin.pages.parents_levels"), "method");
  59. // line 16
  60. echo "
  61. ";
  62. // line 17
  63. $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), "limit_levels" => ($context["limit_levels_val"] ?? null));
  64. // line 18
  65. echo " ";
  66. $context["field"] = twig_array_merge(($context["field"] ?? null), ($context["defaults"] ?? null));
  67. // line 19
  68. echo " ";
  69. $this->displayParentBlock("input", $context, $blocks);
  70. echo "
  71. ";
  72. }
  73. public function getTemplateName()
  74. {
  75. return "forms/fields/parents/parents.html.twig";
  76. }
  77. public function isTraitable()
  78. {
  79. return false;
  80. }
  81. public function getDebugInfo()
  82. {
  83. return array ( 73 => 19, 70 => 18, 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,);
  84. }
  85. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  86. public function getSource()
  87. {
  88. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  89. return $this->getSourceContext()->getCode();
  90. }
  91. public function getSourceContext()
  92. {
  93. return new Twig_Source("{% extends \"forms/fields/pages/pages.html.twig\" %}
  94. {% block input %}
  95. {% set last_page_route = admin.page.getLastPageRoute %}
  96. {% set show_slug_val = true %}
  97. {% set show_fullpath_val = false %}
  98. {% set show_parents = config.get('plugins.admin.pages.show_parents') %}
  99. {% if show_parents == 'folder' %}
  100. {% set show_slug_val = false %}
  101. {% elseif show_parents == 'fullpath' %}
  102. {% set show_fullpath_val = true %}
  103. {% endif %}
  104. {% set limit_levels_val = config.get('plugins.admin.pages.parents_levels') %}
  105. {% set defaults = {show_root:true, show_all:true, show_slug:show_slug_val, show_fullpath:show_fullpath_val, default:last_page_route, limit_levels:limit_levels_val} %}
  106. {% set field = field|merge(defaults) %}
  107. {{ parent() }}
  108. {% endblock %}
  109. ", "forms/fields/parents/parents.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/parents/parents.html.twig");
  110. }
  111. }