0fe03556681731ce606b1c3449055a0e.yaml.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Sites/static-ethica.net/system/blueprints/pages/default.yaml',
  5. 'modified' => 1513090567,
  6. 'data' => [
  7. 'title' => 'PLUGIN_ADMIN.DEFAULT',
  8. 'rules' => [
  9. 'slug' => [
  10. 'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
  11. 'min' => 1,
  12. 'max' => 200
  13. ]
  14. ],
  15. 'form' => [
  16. 'validation' => 'loose',
  17. 'fields' => [
  18. 'tabs' => [
  19. 'type' => 'tabs',
  20. 'active' => 1,
  21. 'fields' => [
  22. 'content' => [
  23. 'type' => 'tab',
  24. 'title' => 'PLUGIN_ADMIN.CONTENT',
  25. 'fields' => [
  26. 'header.title' => [
  27. 'type' => 'text',
  28. 'autofocus' => true,
  29. 'style' => 'vertical',
  30. 'label' => 'PLUGIN_ADMIN.TITLE'
  31. ],
  32. 'content' => [
  33. 'type' => 'markdown',
  34. 'validate' => [
  35. 'type' => 'textarea'
  36. ]
  37. ],
  38. 'header.media_order' => [
  39. 'type' => 'pagemedia',
  40. 'label' => 'PLUGIN_ADMIN.PAGE_MEDIA'
  41. ]
  42. ]
  43. ],
  44. 'options' => [
  45. 'type' => 'tab',
  46. 'title' => 'PLUGIN_ADMIN.OPTIONS',
  47. 'fields' => [
  48. 'publishing' => [
  49. 'type' => 'section',
  50. 'title' => 'PLUGIN_ADMIN.PUBLISHING',
  51. 'underline' => true,
  52. 'fields' => [
  53. 'header.published' => [
  54. 'type' => 'toggle',
  55. 'toggleable' => true,
  56. 'label' => 'PLUGIN_ADMIN.PUBLISHED',
  57. 'help' => 'PLUGIN_ADMIN.PUBLISHED_HELP',
  58. 'highlight' => 1,
  59. 'size' => 'medium',
  60. 'options' => [
  61. 1 => 'PLUGIN_ADMIN.YES',
  62. 0 => 'PLUGIN_ADMIN.NO'
  63. ],
  64. 'validate' => [
  65. 'type' => 'bool'
  66. ]
  67. ],
  68. 'header.date' => [
  69. 'type' => 'datetime',
  70. 'label' => 'PLUGIN_ADMIN.DATE',
  71. 'toggleable' => true,
  72. 'help' => 'PLUGIN_ADMIN.DATE_HELP'
  73. ],
  74. 'header.publish_date' => [
  75. 'type' => 'datetime',
  76. 'label' => 'PLUGIN_ADMIN.PUBLISHED_DATE',
  77. 'toggleable' => true,
  78. 'help' => 'PLUGIN_ADMIN.PUBLISHED_DATE_HELP'
  79. ],
  80. 'header.unpublish_date' => [
  81. 'type' => 'datetime',
  82. 'label' => 'PLUGIN_ADMIN.UNPUBLISHED_DATE',
  83. 'toggleable' => true,
  84. 'help' => 'PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP'
  85. ],
  86. 'header.metadata' => [
  87. 'toggleable' => true,
  88. 'type' => 'array',
  89. 'label' => 'PLUGIN_ADMIN.METADATA',
  90. 'help' => 'PLUGIN_ADMIN.METADATA_HELP',
  91. 'placeholder_key' => 'PLUGIN_ADMIN.METADATA_KEY',
  92. 'placeholder_value' => 'PLUGIN_ADMIN.METADATA_VALUE'
  93. ]
  94. ]
  95. ],
  96. 'taxonomies' => [
  97. 'type' => 'section',
  98. 'title' => 'PLUGIN_ADMIN.TAXONOMIES',
  99. 'underline' => true,
  100. 'fields' => [
  101. 'header.taxonomy' => [
  102. 'type' => 'taxonomy',
  103. 'label' => 'PLUGIN_ADMIN.TAXONOMY',
  104. 'multiple' => true,
  105. 'validate' => [
  106. 'type' => 'array'
  107. ]
  108. ]
  109. ]
  110. ]
  111. ]
  112. ],
  113. 'advanced' => [
  114. 'type' => 'tab',
  115. 'title' => 'PLUGIN_ADMIN.ADVANCED',
  116. 'fields' => [
  117. 'columns' => [
  118. 'type' => 'columns',
  119. 'fields' => [
  120. 'column1' => [
  121. 'type' => 'column',
  122. 'fields' => [
  123. 'settings' => [
  124. 'type' => 'section',
  125. 'title' => 'PLUGIN_ADMIN.SETTINGS',
  126. 'underline' => true
  127. ],
  128. 'folder' => [
  129. 'type' => 'text',
  130. 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
  131. 'validate' => [
  132. 'rule' => 'slug'
  133. ]
  134. ],
  135. 'route' => [
  136. 'type' => 'parents',
  137. 'label' => 'PLUGIN_ADMIN.PARENT',
  138. 'classes' => 'fancy'
  139. ],
  140. 'name' => [
  141. 'type' => 'select',
  142. 'classes' => 'fancy',
  143. 'label' => 'PLUGIN_ADMIN.PAGE_FILE',
  144. 'help' => 'PLUGIN_ADMIN.PAGE_FILE_HELP',
  145. 'default' => 'default',
  146. 'data-options@' => '\\Grav\\Common\\Page\\Pages::pageTypes'
  147. ],
  148. 'header.body_classes' => [
  149. 'type' => 'text',
  150. 'label' => 'PLUGIN_ADMIN.BODY_CLASSES'
  151. ]
  152. ]
  153. ],
  154. 'column2' => [
  155. 'type' => 'column',
  156. 'fields' => [
  157. 'order_title' => [
  158. 'type' => 'section',
  159. 'title' => 'PLUGIN_ADMIN.ORDERING',
  160. 'underline' => true
  161. ],
  162. 'ordering' => [
  163. 'type' => 'toggle',
  164. 'label' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX',
  165. 'help' => 'PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP',
  166. 'highlight' => 1,
  167. 'options' => [
  168. 1 => 'PLUGIN_ADMIN.ENABLED',
  169. 0 => 'PLUGIN_ADMIN.DISABLED'
  170. ],
  171. 'validate' => [
  172. 'type' => 'bool'
  173. ]
  174. ],
  175. 'order' => [
  176. 'type' => 'order',
  177. 'label' => 'PLUGIN_ADMIN.SORTABLE_PAGES',
  178. 'sitemap' => NULL
  179. ]
  180. ]
  181. ]
  182. ]
  183. ],
  184. 'overrides' => [
  185. 'type' => 'section',
  186. 'title' => 'PLUGIN_ADMIN.OVERRIDES',
  187. 'underline' => true,
  188. 'fields' => [
  189. 'header.dateformat' => [
  190. 'toggleable' => true,
  191. 'type' => 'select',
  192. 'size' => 'medium',
  193. 'selectize' => [
  194. 'create' => true
  195. ],
  196. 'label' => 'PLUGIN_ADMIN.DEFAULT_DATE_FORMAT',
  197. 'help' => 'PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_HELP',
  198. 'placeholder' => 'PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_PLACEHOLDER',
  199. 'data-options@' => '\\Grav\\Common\\Utils::dateFormats',
  200. 'validate' => [
  201. 'type' => 'string'
  202. ]
  203. ],
  204. 'header.menu' => [
  205. 'type' => 'text',
  206. 'label' => 'PLUGIN_ADMIN.MENU',
  207. 'toggleable' => true,
  208. 'help' => 'PLUGIN_ADMIN.MENU_HELP'
  209. ],
  210. 'header.slug' => [
  211. 'type' => 'text',
  212. 'label' => 'PLUGIN_ADMIN.SLUG',
  213. 'toggleable' => true,
  214. 'help' => 'PLUGIN_ADMIN.SLUG_HELP',
  215. 'validate' => [
  216. 'message' => 'PLUGIN_ADMIN.SLUG_VALIDATE_MESSAGE',
  217. 'rule' => 'slug'
  218. ]
  219. ],
  220. 'header.redirect' => [
  221. 'type' => 'text',
  222. 'label' => 'PLUGIN_ADMIN.REDIRECT',
  223. 'toggleable' => true,
  224. 'help' => 'PLUGIN_ADMIN.REDIRECT_HELP'
  225. ],
  226. 'header.process' => [
  227. 'type' => 'checkboxes',
  228. 'label' => 'PLUGIN_ADMIN.PROCESS',
  229. 'toggleable' => true,
  230. 'config-default@' => 'system.pages.process',
  231. 'default' => [
  232. 'markdown' => true,
  233. 'twig' => false
  234. ],
  235. 'options' => [
  236. 'markdown' => 'Markdown',
  237. 'twig' => 'Twig'
  238. ],
  239. 'use' => 'keys'
  240. ],
  241. 'header.twig_first' => [
  242. 'type' => 'toggle',
  243. 'toggleable' => true,
  244. 'label' => 'PLUGIN_ADMIN.TWIG_FIRST',
  245. 'help' => 'PLUGIN_ADMIN.TWIG_FIRST_HELP',
  246. 'highlight' => 0,
  247. 'options' => [
  248. 1 => 'PLUGIN_ADMIN.YES',
  249. 0 => 'PLUGIN_ADMIN.NO'
  250. ],
  251. 'validate' => [
  252. 'type' => 'bool'
  253. ]
  254. ],
  255. 'header.never_cache_twig' => [
  256. 'type' => 'toggle',
  257. 'toggleable' => true,
  258. 'label' => 'PLUGIN_ADMIN.NEVER_CACHE_TWIG',
  259. 'help' => 'PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP',
  260. 'highlight' => 0,
  261. 'options' => [
  262. 1 => 'PLUGIN_ADMIN.YES',
  263. 0 => 'PLUGIN_ADMIN.NO'
  264. ],
  265. 'validate' => [
  266. 'type' => 'bool'
  267. ]
  268. ],
  269. 'header.child_type' => [
  270. 'type' => 'select',
  271. 'toggleable' => true,
  272. 'label' => 'PLUGIN_ADMIN.DEFAULT_CHILD_TYPE',
  273. 'default' => 'default',
  274. 'placeholder' => 'PLUGIN_ADMIN.USE_GLOBAL',
  275. 'data-options@' => '\\Grav\\Common\\Page\\Pages::types'
  276. ],
  277. 'header.routable' => [
  278. 'type' => 'toggle',
  279. 'toggleable' => true,
  280. 'label' => 'PLUGIN_ADMIN.ROUTABLE',
  281. 'help' => 'PLUGIN_ADMIN.ROUTABLE_HELP',
  282. 'highlight' => 1,
  283. 'options' => [
  284. 1 => 'PLUGIN_ADMIN.ENABLED',
  285. 0 => 'PLUGIN_ADMIN.DISABLED'
  286. ],
  287. 'validate' => [
  288. 'type' => 'bool'
  289. ]
  290. ],
  291. 'header.cache_enable' => [
  292. 'type' => 'toggle',
  293. 'toggleable' => true,
  294. 'label' => 'PLUGIN_ADMIN.CACHING',
  295. 'highlight' => 1,
  296. 'options' => [
  297. 1 => 'PLUGIN_ADMIN.ENABLED',
  298. 0 => 'PLUGIN_ADMIN.DISABLED'
  299. ],
  300. 'validate' => [
  301. 'type' => 'bool'
  302. ]
  303. ],
  304. 'header.visible' => [
  305. 'type' => 'toggle',
  306. 'toggleable' => true,
  307. 'label' => 'PLUGIN_ADMIN.VISIBLE',
  308. 'help' => 'PLUGIN_ADMIN.VISIBLE_HELP',
  309. 'highlight' => 1,
  310. 'options' => [
  311. 1 => 'PLUGIN_ADMIN.ENABLED',
  312. 0 => 'PLUGIN_ADMIN.DISABLED'
  313. ],
  314. 'validate' => [
  315. 'type' => 'bool'
  316. ]
  317. ],
  318. 'header.debugger' => [
  319. 'type' => 'toggle',
  320. 'toggleable' => true,
  321. 'label' => 'PLUGIN_ADMIN.DEBUGGER',
  322. 'help' => 'PLUGIN_ADMIN.DEBUGGER_HELP',
  323. 'highlight' => 1,
  324. 'options' => [
  325. 1 => 'PLUGIN_ADMIN.ENABLED',
  326. 0 => 'PLUGIN_ADMIN.DISABLED'
  327. ],
  328. 'validate' => [
  329. 'type' => 'bool'
  330. ]
  331. ],
  332. 'header.template' => [
  333. 'type' => 'text',
  334. 'toggleable' => true,
  335. 'label' => 'PLUGIN_ADMIN.DISPLAY_TEMPLATE'
  336. ],
  337. 'header.append_url_extension' => [
  338. 'type' => 'text',
  339. 'label' => 'PLUGIN_ADMIN.APPEND_URL_EXT',
  340. 'toggleable' => true,
  341. 'help' => 'PLUGIN_ADMIN.APPEND_URL_EXT_HELP'
  342. ]
  343. ]
  344. ],
  345. 'admin_only' => [
  346. 'type' => 'section',
  347. 'title' => 'PLUGIN_ADMIN.ADMIN_SPECIFIC_OVERRIDES',
  348. 'underline' => true,
  349. 'fields' => [
  350. 'header.admin.children_display_order' => [
  351. 'type' => 'select',
  352. 'label' => 'PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER',
  353. 'help' => 'PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER_HELP',
  354. 'toggleable' => true,
  355. 'classes' => 'fancy',
  356. 'default' => 'collection',
  357. 'options' => [
  358. 'default' => 'Ordered by Folder name (default)',
  359. 'collection' => 'Ordered by Collection definition'
  360. ]
  361. ],
  362. 'header.order_by' => [
  363. 'type' => 'hidden'
  364. ],
  365. 'header.order_manual' => [
  366. 'type' => 'hidden',
  367. 'validate' => [
  368. 'type' => 'commalist'
  369. ]
  370. ],
  371. 'blueprint' => [
  372. 'type' => 'blueprint'
  373. ]
  374. ]
  375. ]
  376. ]
  377. ]
  378. ]
  379. ]
  380. ]
  381. ]
  382. ]
  383. ];