351337f09dc2f2280dd3ff7889317f5d.yaml.php 11 KB

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