bcf89b26323cbc904f2054c87de427ec.yaml.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/static-ethica.net/user/plugins/form/blueprints.yaml',
  5. 'modified' => 1520021428,
  6. 'data' => [
  7. 'name' => 'Form',
  8. 'version' => '2.11.2',
  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.3.9'
  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. 'refresh_prevention' => [
  60. 'type' => 'toggle',
  61. 'label' => 'PLUGIN_FORM.REFRESH_PREVENTION',
  62. 'help' => 'PLUGIN_FORM.REFRESH_PREVENTION_HELP',
  63. 'highlight' => 1,
  64. 'default' => 0,
  65. 'options' => [
  66. 1 => 'Enabled',
  67. 0 => 'Disabled'
  68. ],
  69. 'validate' => [
  70. 'type' => 'bool'
  71. ]
  72. ]
  73. ]
  74. ],
  75. 'files' => [
  76. 'type' => 'section',
  77. 'title' => 'PLUGIN_FORM.FILES',
  78. 'fields' => [
  79. 'files.multiple' => [
  80. 'type' => 'toggle',
  81. 'label' => 'PLUGIN_FORM.ALLOW_MULTIPLE',
  82. 'help' => 'PLUGIN_FORM.ALLOW_MULTIPLE_HELP',
  83. 'highlight' => 1,
  84. 'default' => 0,
  85. 'options' => [
  86. 1 => 'PLUGIN_ADMIN.ENABLED',
  87. 0 => 'PLUGIN_ADMIN.DISABLED'
  88. ],
  89. 'validate' => [
  90. 'type' => 'bool'
  91. ]
  92. ],
  93. 'files.limit' => [
  94. 'type' => 'text',
  95. 'size' => 'x-small',
  96. 'label' => 'PLUGIN_FORM.LIMIT',
  97. 'help' => 'PLUGIN_FORM.LIMIT_HELP',
  98. 'default' => 10,
  99. 'validate' => [
  100. 'type' => 'number',
  101. 'min' => 1
  102. ]
  103. ],
  104. 'files.destination' => [
  105. 'type' => 'text',
  106. 'size' => 'large',
  107. 'label' => 'PLUGIN_FORM.DESTINATION',
  108. 'help' => 'PLUGIN_FORM.DESTINATION_HELP',
  109. 'default' => '@self'
  110. ],
  111. 'files.accept' => [
  112. 'type' => 'selectize',
  113. 'size' => 'large',
  114. 'label' => 'PLUGIN_FORM.ACCEPT',
  115. 'help' => 'PLUGIN_FORM.ACCEPT_HELP',
  116. 'classes' => 'fancy',
  117. 'default' => [
  118. 0 => 'image/*'
  119. ],
  120. 'validate' => [
  121. 'type' => 'commalist'
  122. ]
  123. ],
  124. 'files.filesize' => [
  125. 'type' => 'text',
  126. 'label' => 'PLUGIN_FORM.FILESIZE',
  127. 'help' => 'PLUGIN_FORM.FILESIZE_HELP',
  128. 'size' => 'x-small',
  129. 'default' => 5,
  130. 'validate' => [
  131. 'type' => 'number',
  132. 'min' => 0
  133. ]
  134. ],
  135. 'files.avoid_overwriting' => [
  136. 'type' => 'toggle',
  137. 'label' => 'PLUGIN_FORM.AVOID_OVERWRITING',
  138. 'help' => 'PLUGIN_FORM.AVOID_OVERWRITING_HELP',
  139. 'highlight' => 0,
  140. 'default' => 0,
  141. 'options' => [
  142. 1 => 'PLUGIN_ADMIN.ENABLED',
  143. 0 => 'PLUGIN_ADMIN.DISABLED'
  144. ],
  145. 'validate' => [
  146. 'type' => 'bool'
  147. ]
  148. ],
  149. 'files.random_name' => [
  150. 'type' => 'toggle',
  151. 'label' => 'PLUGIN_FORM.RANDOM_NAME',
  152. 'help' => 'PLUGIN_FORM.RANDOM_NAME_HELP',
  153. 'highlight' => 0,
  154. 'default' => 0,
  155. 'options' => [
  156. 1 => 'PLUGIN_ADMIN.ENABLED',
  157. 0 => 'PLUGIN_ADMIN.DISABLED'
  158. ],
  159. 'validate' => [
  160. 'type' => 'bool'
  161. ]
  162. ]
  163. ]
  164. ],
  165. 'recaptcha' => [
  166. 'type' => 'section',
  167. 'title' => 'PLUGIN_FORM.RECAPTCHA',
  168. 'fields' => [
  169. 'recaptcha.site_key' => [
  170. 'type' => 'text',
  171. 'label' => 'PLUGIN_FORM.RECAPTCHA_SITE_KEY',
  172. 'help' => 'PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP',
  173. 'default' => ''
  174. ],
  175. 'recaptcha.secret_key' => [
  176. 'type' => 'text',
  177. 'label' => 'PLUGIN_FORM.RECAPTCHA_SECRET_KEY',
  178. 'help' => 'PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP',
  179. 'default' => ''
  180. ]
  181. ]
  182. ]
  183. ]
  184. ]
  185. ]
  186. ];