3b2e34ac9f8a328085f5aaadb086365e.yaml.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/raw.yaml',
  5. 'modified' => 1546440944,
  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. 'xss_check' => [
  26. 'type' => 'xss'
  27. ],
  28. 'frontmatter' => [
  29. 'classes' => 'frontmatter',
  30. 'type' => 'editor',
  31. 'label' => 'PLUGIN_ADMIN.FRONTMATTER',
  32. 'autofocus' => true,
  33. 'codemirror' => [
  34. 'mode' => 'yaml',
  35. 'indentUnit' => 4,
  36. 'autofocus' => true,
  37. 'indentWithTabs' => false,
  38. 'lineNumbers' => true,
  39. 'styleActiveLine' => true,
  40. 'gutters' => [
  41. 0 => 'CodeMirror-lint-markers'
  42. ],
  43. 'lint' => true
  44. ]
  45. ],
  46. 'content' => [
  47. 'type' => 'markdown'
  48. ],
  49. 'header.media_order' => [
  50. 'type' => 'pagemedia',
  51. 'label' => 'PLUGIN_ADMIN.PAGE_MEDIA'
  52. ]
  53. ]
  54. ],
  55. 'options' => [
  56. 'type' => 'tab',
  57. 'title' => 'PLUGIN_ADMIN.OPTIONS',
  58. 'fields' => [
  59. 'columns' => [
  60. 'type' => 'columns',
  61. 'fields' => [
  62. 'column1' => [
  63. 'type' => 'column',
  64. 'fields' => [
  65. 'ordering' => [
  66. 'type' => 'toggle',
  67. 'label' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX',
  68. 'help' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP',
  69. 'highlight' => 1,
  70. 'options' => [
  71. 1 => 'PLUGIN_ADMIN.ENABLED',
  72. 0 => 'PLUGIN_ADMIN.DISABLED'
  73. ],
  74. 'validate' => [
  75. 'type' => 'bool'
  76. ]
  77. ],
  78. 'folder' => [
  79. 'type' => 'text',
  80. 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
  81. 'help' => 'PLUGIN_ADMIN.FOLDER_NAME_HELP',
  82. 'validate' => [
  83. 'rule' => 'slug',
  84. 'required' => true
  85. ]
  86. ],
  87. 'route' => [
  88. 'type' => 'parents',
  89. 'label' => 'PLUGIN_ADMIN.PARENT',
  90. 'classes' => 'fancy',
  91. 'validate' => [
  92. 'required' => true
  93. ]
  94. ],
  95. 'name' => [
  96. 'type' => 'select',
  97. 'classes' => 'fancy',
  98. 'label' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE',
  99. 'help' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP',
  100. 'default' => 'default',
  101. 'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesTypes',
  102. 'validate' => [
  103. 'required' => true
  104. ]
  105. ]
  106. ]
  107. ],
  108. 'column2' => [
  109. 'type' => 'column',
  110. 'fields' => [
  111. 'order' => [
  112. 'type' => 'order',
  113. 'label' => 'PLUGIN_ADMIN.ORDERING'
  114. ]
  115. ]
  116. ]
  117. ]
  118. ],
  119. 'blueprint' => [
  120. 'type' => 'blueprint'
  121. ]
  122. ]
  123. ]
  124. ]
  125. ]
  126. ]
  127. ]
  128. ]
  129. ];