6e985e49337ef0521dd2b4c43aa9c720.yaml.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/var/www/html/user/themes/hehe/blueprints/blog.yaml',
  5. 'modified' => 1591823175,
  6. 'data' => [
  7. 'extends@' => 'default',
  8. 'child_type' => 'item',
  9. 'rules' => [
  10. 'slug' => [
  11. 'pattern' => '[a-z][a-z0-9_\\-]+',
  12. 'min' => 2,
  13. 'max' => 80
  14. ]
  15. ],
  16. 'form' => [
  17. 'fields' => [
  18. 'tabs' => [
  19. 'type' => 'tabs',
  20. 'active' => 1,
  21. 'fields' => [
  22. 'advanced' => [
  23. 'fields' => [
  24. 'overrides' => [
  25. 'fields' => [
  26. 'header.child_type' => [
  27. 'default' => 'item'
  28. ]
  29. ]
  30. ]
  31. ]
  32. ],
  33. 'blog' => [
  34. 'type' => 'tab',
  35. 'title' => 'Blog Config',
  36. 'fields' => [
  37. 'content_title' => [
  38. 'type' => 'spacer',
  39. 'title' => 'Content Definition'
  40. ],
  41. 'header.content.items' => [
  42. 'type' => 'textarea',
  43. 'yaml' => true,
  44. 'label' => 'Items',
  45. 'default' => '@self.children',
  46. 'validate' => [
  47. 'type' => 'yaml'
  48. ]
  49. ],
  50. 'header.content.limit' => [
  51. 'type' => 'text',
  52. 'label' => 'Max Item Count',
  53. 'default' => 5,
  54. 'validate' => [
  55. 'required' => true,
  56. 'type' => 'int',
  57. 'min' => 1
  58. ]
  59. ],
  60. 'header.content.order.by' => [
  61. 'type' => 'select',
  62. 'label' => 'Order By',
  63. 'default' => 'date',
  64. 'options' => [
  65. 'folder' => 'Folder',
  66. 'title' => 'Title',
  67. 'date' => 'Date',
  68. 'default' => 'Default'
  69. ]
  70. ],
  71. 'header.content.order.dir' => [
  72. 'type' => 'select',
  73. 'label' => 'Order',
  74. 'default' => 'desc',
  75. 'options' => [
  76. 'asc' => 'Ascending',
  77. 'desc' => 'Descending'
  78. ]
  79. ],
  80. 'header.content.pagination' => [
  81. 'type' => 'toggle',
  82. 'label' => 'Pagination',
  83. 'highlight' => 1,
  84. 'default' => 1,
  85. 'options' => [
  86. 1 => 'PLUGIN_ADMIN.ENABLED',
  87. 0 => 'PLUGIN_ADMIN.DISABLED'
  88. ],
  89. 'validate' => [
  90. 'type' => 'bool'
  91. ]
  92. ],
  93. 'header.content.url_taxonomy_filters' => [
  94. 'type' => 'toggle',
  95. 'label' => 'URL Taxonomy Filters',
  96. 'highlight' => 1,
  97. 'default' => 1,
  98. 'options' => [
  99. 1 => 'PLUGIN_ADMIN.ENABLED',
  100. 0 => 'PLUGIN_ADMIN.DISABLED'
  101. ],
  102. 'validate' => [
  103. 'type' => 'bool'
  104. ]
  105. ]
  106. ],
  107. 'import@' => [
  108. 'type' => 'partials/blog-bits',
  109. 'context' => 'blueprints://pages'
  110. ]
  111. ]
  112. ]
  113. ]
  114. ]
  115. ]
  116. ]
  117. ];