3560a99ffda2b46af8585978c76b6ace.yaml.php 24 KB

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