e08035d8cd7725be69d6b78ffd186911.yaml.php 24 KB

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