15eeba9d8043c318a559b636123d5e22.yaml.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/form/blueprints.yaml',
  5. 'modified' => 1546440946,
  6. 'data' => [
  7. 'name' => 'Form',
  8. 'version' => '2.16.4',
  9. 'description' => 'Enables the forms handling',
  10. 'icon' => 'check-square',
  11. 'author' => [
  12. 'name' => 'Team Grav',
  13. 'email' => 'devs@getgrav.org',
  14. 'url' => 'http://getgrav.org'
  15. ],
  16. 'keywords' => 'plugin, form',
  17. 'homepage' => 'https://github.com/getgrav/grav-plugin-form',
  18. 'bugs' => 'https://github.com/getgrav/grav-plugin-form/issues',
  19. 'license' => 'MIT',
  20. 'dependencies' => [
  21. 0 => [
  22. 'name' => 'grav',
  23. 'version' => '>=1.5.1'
  24. ]
  25. ],
  26. 'form' => [
  27. 'validation' => 'strict',
  28. 'fields' => [
  29. 'enabled' => [
  30. 'type' => 'hidden',
  31. 'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS',
  32. 'highlight' => 1,
  33. 'default' => 0,
  34. 'options' => [
  35. 1 => 'PLUGIN_ADMIN.ENABLED',
  36. 0 => 'PLUGIN_ADMIN.DISABLED'
  37. ],
  38. 'validate' => [
  39. 'type' => 'bool'
  40. ]
  41. ],
  42. 'general' => [
  43. 'type' => 'section',
  44. 'title' => 'PLUGIN_FORM.GENERAL',
  45. 'fields' => [
  46. 'built_in_css' => [
  47. 'type' => 'toggle',
  48. 'label' => 'PLUGIN_FORM.USE_BUILT_IN_CSS',
  49. 'highlight' => 1,
  50. 'default' => 1,
  51. 'options' => [
  52. 1 => 'Enabled',
  53. 0 => 'Disabled'
  54. ],
  55. 'validate' => [
  56. 'type' => 'bool'
  57. ]
  58. ],
  59. 'inline_css' => [
  60. 'type' => 'toggle',
  61. 'label' => 'PLUGIN_FORM.USE_INLINE_CSS',
  62. 'highlight' => 1,
  63. 'default' => 1,
  64. 'options' => [
  65. 1 => 'Enabled',
  66. 0 => 'Disabled'
  67. ],
  68. 'validate' => [
  69. 'type' => 'bool'
  70. ]
  71. ],
  72. 'refresh_prevention' => [
  73. 'type' => 'toggle',
  74. 'label' => 'PLUGIN_FORM.REFRESH_PREVENTION',
  75. 'help' => 'PLUGIN_FORM.REFRESH_PREVENTION_HELP',
  76. 'highlight' => 1,
  77. 'default' => 0,
  78. 'options' => [
  79. 1 => 'Enabled',
  80. 0 => 'Disabled'
  81. ],
  82. 'validate' => [
  83. 'type' => 'bool'
  84. ]
  85. ],
  86. 'client_side_validation' => [
  87. 'type' => 'toggle',
  88. 'label' => 'PLUGIN_FORM.CLIENT_SIDE_VALIDATION',
  89. 'help' => 'PLUGIN_FORM.CLIENT_SIDE_VALIDATION_HELP',
  90. 'highlight' => 1,
  91. 'default' => 1,
  92. 'options' => [
  93. 1 => 'Enabled',
  94. 0 => 'Disabled'
  95. ],
  96. 'validate' => [
  97. 'type' => 'bool'
  98. ]
  99. ],
  100. 'inline_errors' => [
  101. 'type' => 'toggle',
  102. 'label' => 'PLUGIN_FORM.INLINE_ERRORS',
  103. 'help' => 'PLUGIN_FORM.INLINE_ERRORS_HELP',
  104. 'highlight' => 0,
  105. 'default' => 0,
  106. 'options' => [
  107. 1 => 'Enabled',
  108. 0 => 'Disabled'
  109. ],
  110. 'validate' => [
  111. 'type' => 'bool'
  112. ]
  113. ]
  114. ]
  115. ],
  116. 'files' => [
  117. 'type' => 'section',
  118. 'title' => 'PLUGIN_FORM.FILES',
  119. 'fields' => [
  120. 'files.multiple' => [
  121. 'type' => 'toggle',
  122. 'label' => 'PLUGIN_FORM.ALLOW_MULTIPLE',
  123. 'help' => 'PLUGIN_FORM.ALLOW_MULTIPLE_HELP',
  124. 'highlight' => 1,
  125. 'default' => 0,
  126. 'options' => [
  127. 1 => 'PLUGIN_ADMIN.ENABLED',
  128. 0 => 'PLUGIN_ADMIN.DISABLED'
  129. ],
  130. 'validate' => [
  131. 'type' => 'bool'
  132. ]
  133. ],
  134. 'files.limit' => [
  135. 'type' => 'text',
  136. 'size' => 'x-small',
  137. 'label' => 'PLUGIN_FORM.LIMIT',
  138. 'help' => 'PLUGIN_FORM.LIMIT_HELP',
  139. 'default' => 10,
  140. 'validate' => [
  141. 'type' => 'number',
  142. 'min' => 1
  143. ]
  144. ],
  145. 'files.destination' => [
  146. 'type' => 'text',
  147. 'size' => 'large',
  148. 'label' => 'PLUGIN_FORM.DESTINATION',
  149. 'help' => 'PLUGIN_FORM.DESTINATION_HELP',
  150. 'default' => '@self'
  151. ],
  152. 'files.accept' => [
  153. 'type' => 'selectize',
  154. 'size' => 'large',
  155. 'label' => 'PLUGIN_FORM.ACCEPT',
  156. 'help' => 'PLUGIN_FORM.ACCEPT_HELP',
  157. 'classes' => 'fancy',
  158. 'default' => [
  159. 0 => 'image/*'
  160. ],
  161. 'validate' => [
  162. 'type' => 'commalist'
  163. ]
  164. ],
  165. 'files.filesize' => [
  166. 'type' => 'text',
  167. 'label' => 'PLUGIN_FORM.FILESIZE',
  168. 'help' => 'PLUGIN_FORM.FILESIZE_HELP',
  169. 'size' => 'x-small',
  170. 'default' => 5,
  171. 'validate' => [
  172. 'type' => 'number',
  173. 'min' => 0
  174. ]
  175. ],
  176. 'files.avoid_overwriting' => [
  177. 'type' => 'toggle',
  178. 'label' => 'PLUGIN_FORM.AVOID_OVERWRITING',
  179. 'help' => 'PLUGIN_FORM.AVOID_OVERWRITING_HELP',
  180. 'highlight' => 0,
  181. 'default' => 0,
  182. 'options' => [
  183. 1 => 'PLUGIN_ADMIN.ENABLED',
  184. 0 => 'PLUGIN_ADMIN.DISABLED'
  185. ],
  186. 'validate' => [
  187. 'type' => 'bool'
  188. ]
  189. ],
  190. 'files.random_name' => [
  191. 'type' => 'toggle',
  192. 'label' => 'PLUGIN_FORM.RANDOM_NAME',
  193. 'help' => 'PLUGIN_FORM.RANDOM_NAME_HELP',
  194. 'highlight' => 0,
  195. 'default' => 0,
  196. 'options' => [
  197. 1 => 'PLUGIN_ADMIN.ENABLED',
  198. 0 => 'PLUGIN_ADMIN.DISABLED'
  199. ],
  200. 'validate' => [
  201. 'type' => 'bool'
  202. ]
  203. ]
  204. ]
  205. ],
  206. 'recaptcha' => [
  207. 'type' => 'section',
  208. 'title' => 'PLUGIN_FORM.RECAPTCHA',
  209. 'fields' => [
  210. 'recaptcha.site_key' => [
  211. 'type' => 'text',
  212. 'label' => 'PLUGIN_FORM.RECAPTCHA_SITE_KEY',
  213. 'help' => 'PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP',
  214. 'default' => ''
  215. ],
  216. 'recaptcha.secret_key' => [
  217. 'type' => 'text',
  218. 'label' => 'PLUGIN_FORM.RECAPTCHA_SECRET_KEY',
  219. 'help' => 'PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP',
  220. 'default' => ''
  221. ]
  222. ]
  223. ]
  224. ]
  225. ]
  226. ]
  227. ];