a99980be720498097f7b6ee569cdb2df.yaml.php 24 KB

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