c92fcdc4f2c081c91da43e90552081c0.yaml.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/modular_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. '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.FILENAME',
  78. 'validate' => [
  79. 'rule' => 'slug',
  80. 'required' => true
  81. ]
  82. ],
  83. 'route' => [
  84. 'type' => 'parents',
  85. 'label' => 'PLUGIN_ADMIN.PARENT',
  86. 'classes' => 'fancy',
  87. 'validate' => [
  88. 'required' => true
  89. ]
  90. ],
  91. 'name' => [
  92. 'type' => 'select',
  93. 'classes' => 'fancy',
  94. 'label' => 'PLUGIN_ADMIN.MODULAR_TEMPLATE',
  95. 'default' => 'default',
  96. 'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesModularTypes',
  97. 'validate' => [
  98. 'required' => true
  99. ]
  100. ]
  101. ]
  102. ],
  103. 'column2' => [
  104. 'type' => 'column',
  105. 'fields' => [
  106. 'order' => [
  107. 'type' => 'order',
  108. 'label' => 'PLUGIN_ADMIN.ORDERING'
  109. ]
  110. ]
  111. ]
  112. ]
  113. ],
  114. 'blueprint' => [
  115. 'type' => 'blueprint'
  116. ]
  117. ]
  118. ]
  119. ]
  120. ]
  121. ]
  122. ]
  123. ]
  124. ];