6e23062b19858c064e4b8ae7cad632e9.yaml.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/hehe.net/system/blueprints/config/site.yaml',
  5. 'modified' => 1546440919,
  6. 'data' => [
  7. 'title' => 'PLUGIN_ADMIN.SITE',
  8. 'form' => [
  9. 'validation' => 'loose',
  10. 'fields' => [
  11. 'content' => [
  12. 'type' => 'section',
  13. 'title' => 'PLUGIN_ADMIN.DEFAULTS',
  14. 'underline' => true,
  15. 'fields' => [
  16. 'title' => [
  17. 'type' => 'text',
  18. 'label' => 'PLUGIN_ADMIN.SITE_TITLE',
  19. 'size' => 'large',
  20. 'placeholder' => 'PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER',
  21. 'help' => 'PLUGIN_ADMIN.SITE_TITLE_HELP'
  22. ],
  23. 'default_lang' => [
  24. 'type' => 'text',
  25. 'label' => 'PLUGIN_ADMIN.SITE_DEFAULT_LANG',
  26. 'size' => 'x-small',
  27. 'placeholder' => 'PLUGIN_ADMIN.SITE_DEFAULT_LANG_PLACEHOLDER',
  28. 'help' => 'PLUGIN_ADMIN.SITE_DEFAULT_LANG_HELP'
  29. ],
  30. 'author.name' => [
  31. 'type' => 'text',
  32. 'size' => 'large',
  33. 'label' => 'PLUGIN_ADMIN.DEFAULT_AUTHOR',
  34. 'help' => 'PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP'
  35. ],
  36. 'author.email' => [
  37. 'type' => 'text',
  38. 'size' => 'large',
  39. 'label' => 'PLUGIN_ADMIN.DEFAULT_EMAIL',
  40. 'help' => 'PLUGIN_ADMIN.DEFAULT_EMAIL_HELP',
  41. 'validate' => [
  42. 'type' => 'email'
  43. ]
  44. ],
  45. 'taxonomies' => [
  46. 'type' => 'selectize',
  47. 'size' => 'large',
  48. 'label' => 'PLUGIN_ADMIN.TAXONOMY_TYPES',
  49. 'classes' => 'fancy',
  50. 'help' => 'PLUGIN_ADMIN.TAXONOMY_TYPES_HELP',
  51. 'validate' => [
  52. 'type' => 'commalist'
  53. ]
  54. ]
  55. ]
  56. ],
  57. 'summary' => [
  58. 'type' => 'section',
  59. 'title' => 'PLUGIN_ADMIN.PAGE_SUMMARY',
  60. 'underline' => true,
  61. 'fields' => [
  62. 'summary.enabled' => [
  63. 'type' => 'toggle',
  64. 'label' => 'PLUGIN_ADMIN.ENABLED',
  65. 'highlight' => 1,
  66. 'help' => 'PLUGIN_ADMIN.ENABLED_HELP',
  67. 'options' => [
  68. 1 => 'PLUGIN_ADMIN.YES',
  69. 0 => 'PLUGIN_ADMIN.NO'
  70. ],
  71. 'validate' => [
  72. 'type' => 'bool'
  73. ]
  74. ],
  75. 'summary.size' => [
  76. 'type' => 'text',
  77. 'size' => 'x-small',
  78. 'append' => 'PLUGIN_ADMIN.CHARACTERS',
  79. 'label' => 'PLUGIN_ADMIN.SUMMARY_SIZE',
  80. 'help' => 'PLUGIN_ADMIN.SUMMARY_SIZE_HELP',
  81. 'validate' => [
  82. 'type' => 'int',
  83. 'min' => 0,
  84. 'max' => 65536
  85. ]
  86. ],
  87. 'summary.format' => [
  88. 'type' => 'toggle',
  89. 'label' => 'PLUGIN_ADMIN.FORMAT',
  90. 'classes' => 'fancy',
  91. 'help' => 'PLUGIN_ADMIN.FORMAT_HELP',
  92. 'highlight' => 'short',
  93. 'options' => [
  94. 'short' => 'PLUGIN_ADMIN.SHORT',
  95. 'long' => 'PLUGIN_ADMIN.LONG'
  96. ]
  97. ],
  98. 'summary.delimiter' => [
  99. 'type' => 'text',
  100. 'size' => 'x-small',
  101. 'label' => 'PLUGIN_ADMIN.DELIMITER',
  102. 'help' => 'PLUGIN_ADMIN.DELIMITER_HELP'
  103. ]
  104. ]
  105. ],
  106. 'metadata' => [
  107. 'type' => 'section',
  108. 'title' => 'PLUGIN_ADMIN.METADATA',
  109. 'underline' => true,
  110. 'fields' => [
  111. 'metadata' => [
  112. 'type' => 'array',
  113. 'label' => 'PLUGIN_ADMIN.METADATA',
  114. 'help' => 'PLUGIN_ADMIN.METADATA_HELP',
  115. 'placeholder_key' => 'PLUGIN_ADMIN.METADATA_KEY',
  116. 'placeholder_value' => 'PLUGIN_ADMIN.METADATA_VALUE'
  117. ]
  118. ]
  119. ],
  120. 'routes' => [
  121. 'type' => 'section',
  122. 'title' => 'PLUGIN_ADMIN.REDIRECTS_AND_ROUTES',
  123. 'underline' => true,
  124. 'fields' => [
  125. 'redirects' => [
  126. 'type' => 'array',
  127. 'label' => 'PLUGIN_ADMIN.CUSTOM_REDIRECTS',
  128. 'help' => 'PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP',
  129. 'placeholder_key' => 'PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY',
  130. 'placeholder_value' => 'PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE'
  131. ],
  132. 'routes' => [
  133. 'type' => 'array',
  134. 'label' => 'PLUGIN_ADMIN.CUSTOM_ROUTES',
  135. 'help' => 'PLUGIN_ADMIN.CUSTOM_ROUTES_HELP',
  136. 'placeholder_key' => 'PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY',
  137. 'placeholder_value' => 'PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE'
  138. ]
  139. ]
  140. ]
  141. ]
  142. ]
  143. ]
  144. ];