5fa2101f9bd31b27ee830ca1eb7ade8b.yaml.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/raw.yaml',
  5. 'modified' => 1533014916,
  6. 'data' => [
  7. 'rules' => [
  8. 'slug' => [
  9. 'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
  10. 'min' => 1,
  11. 'max' => 200
  12. ]
  13. ],
  14. 'form' => [
  15. 'validation' => 'loose',
  16. 'fields' => [
  17. 'tabs' => [
  18. 'type' => 'tabs',
  19. 'active' => 1,
  20. 'fields' => [
  21. 'content' => [
  22. 'type' => 'tab',
  23. 'title' => 'PLUGIN_ADMIN.CONTENT',
  24. 'fields' => [
  25. 'frontmatter' => [
  26. 'classes' => 'frontmatter',
  27. 'type' => 'editor',
  28. 'label' => 'PLUGIN_ADMIN.FRONTMATTER',
  29. 'autofocus' => true,
  30. 'codemirror' => [
  31. 'mode' => 'yaml',
  32. 'indentUnit' => 4,
  33. 'autofocus' => true,
  34. 'indentWithTabs' => false,
  35. 'lineNumbers' => true,
  36. 'styleActiveLine' => true,
  37. 'gutters' => [
  38. 0 => 'CodeMirror-lint-markers'
  39. ],
  40. 'lint' => true
  41. ]
  42. ],
  43. 'content' => [
  44. 'type' => 'markdown'
  45. ],
  46. 'header.media_order' => [
  47. 'type' => 'pagemedia',
  48. 'label' => 'PLUGIN_ADMIN.PAGE_MEDIA'
  49. ]
  50. ]
  51. ],
  52. 'options' => [
  53. 'type' => 'tab',
  54. 'title' => 'PLUGIN_ADMIN.OPTIONS',
  55. 'fields' => [
  56. 'columns' => [
  57. 'type' => 'columns',
  58. 'fields' => [
  59. 'column1' => [
  60. 'type' => 'column',
  61. 'fields' => [
  62. 'ordering' => [
  63. 'type' => 'toggle',
  64. 'label' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX',
  65. 'help' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP',
  66. 'highlight' => 1,
  67. 'options' => [
  68. 1 => 'PLUGIN_ADMIN.ENABLED',
  69. 0 => 'PLUGIN_ADMIN.DISABLED'
  70. ],
  71. 'validate' => [
  72. 'type' => 'bool'
  73. ]
  74. ],
  75. 'folder' => [
  76. 'type' => 'text',
  77. 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
  78. 'help' => 'PLUGIN_ADMIN.FOLDER_NAME_HELP',
  79. 'validate' => [
  80. 'rule' => 'slug',
  81. 'required' => true
  82. ]
  83. ],
  84. 'route' => [
  85. 'type' => 'parents',
  86. 'label' => 'PLUGIN_ADMIN.PARENT',
  87. 'classes' => 'fancy',
  88. 'validate' => [
  89. 'required' => true
  90. ]
  91. ],
  92. 'name' => [
  93. 'type' => 'select',
  94. 'classes' => 'fancy',
  95. 'label' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE',
  96. 'help' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP',
  97. 'default' => 'default',
  98. 'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesTypes',
  99. 'validate' => [
  100. 'required' => true
  101. ]
  102. ]
  103. ]
  104. ],
  105. 'column2' => [
  106. 'type' => 'column',
  107. 'fields' => [
  108. 'order' => [
  109. 'type' => 'order',
  110. 'label' => 'PLUGIN_ADMIN.ORDERING'
  111. ]
  112. ]
  113. ]
  114. ]
  115. ],
  116. 'blueprint' => [
  117. 'type' => 'blueprint'
  118. ]
  119. ]
  120. ]
  121. ]
  122. ]
  123. ]
  124. ]
  125. ]
  126. ];