d777a1c57442075c1e3f65d8a9fc1e6d.yaml.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/hehe.net/user/themes/hehe/blueprints/item.yaml',
  5. 'modified' => 1533014916,
  6. 'data' => [
  7. 'extends@' => 'default',
  8. 'form' => [
  9. 'fields' => [
  10. 'tabs' => [
  11. 'fields' => [
  12. 'blog' => [
  13. 'type' => 'tab',
  14. 'title' => 'Blog Item',
  15. 'fields' => [
  16. 'header_options' => [
  17. 'type' => 'section',
  18. 'title' => 'Header Options',
  19. 'underline' => true
  20. ],
  21. 'header.continue_link' => [
  22. 'type' => 'toggle',
  23. 'toggleable' => true,
  24. 'label' => 'DF Style Link',
  25. 'help' => 'Daring Fireball style title link',
  26. 'highlight' => 1,
  27. 'default' => 1,
  28. 'options' => [
  29. 1 => 'PLUGIN_ADMIN.ENABLED',
  30. 0 => 'PLUGIN_ADMIN.DISABLED'
  31. ],
  32. 'validate' => [
  33. 'type' => 'bool'
  34. ]
  35. ],
  36. 'header.header_image' => [
  37. 'type' => 'toggle',
  38. 'toggleable' => true,
  39. 'label' => 'Display Header Image',
  40. 'help' => 'Enabled displaying of a header image',
  41. 'highlight' => 1,
  42. 'options' => [
  43. 1 => 'PLUGIN_ADMIN.ENABLED',
  44. 0 => 'PLUGIN_ADMIN.DISABLED'
  45. ]
  46. ],
  47. 'header.header_image_file' => [
  48. 'type' => 'text',
  49. 'toggleable' => true,
  50. 'label' => 'Image File',
  51. 'help' => 'image filename that exists in the page folder. If not provided, will use the first image found.',
  52. 'placeholder' => 'For example: myimage.jpg'
  53. ],
  54. 'header.header_image_width' => [
  55. 'type' => 'text',
  56. 'toggleable' => true,
  57. 'label' => 'Image Width',
  58. 'size' => 'small',
  59. 'help' => 'Header width in px',
  60. 'placeholder' => 'Default is 900',
  61. 'validate' => [
  62. 'type' => 'int',
  63. 'min' => 0,
  64. 'max' => 5000
  65. ]
  66. ],
  67. 'header.header_image_height' => [
  68. 'type' => 'text',
  69. 'toggleable' => true,
  70. 'label' => 'Image Height',
  71. 'size' => 'small',
  72. 'help' => 'Header height in px',
  73. 'placeholder' => 'Default is 300',
  74. 'validate' => [
  75. 'type' => 'int',
  76. 'min' => 0,
  77. 'max' => 5000
  78. ]
  79. ],
  80. 'summary' => [
  81. 'type' => 'section',
  82. 'title' => 'Summary',
  83. 'underline' => true
  84. ],
  85. 'header.summary.enabled' => [
  86. 'type' => 'toggle',
  87. 'toggleable' => true,
  88. 'label' => 'Summary',
  89. 'highlight' => 1,
  90. 'options' => [
  91. 1 => 'PLUGIN_ADMIN.ENABLED',
  92. 0 => 'PLUGIN_ADMIN.DISABLED'
  93. ]
  94. ],
  95. 'header.summary.format' => [
  96. 'type' => 'select',
  97. 'toggleable' => true,
  98. 'label' => 'Format',
  99. 'classes' => 'fancy',
  100. 'options' => [
  101. 'short' => 'Use the first occurence of delimter or size',
  102. 'long' => 'Summary delimiter will be ignored'
  103. ]
  104. ],
  105. 'header.summary.size' => [
  106. 'type' => 'text',
  107. 'toggleable' => true,
  108. 'label' => 'Size',
  109. 'classes' => 'large',
  110. 'placeholder' => 300,
  111. 'validate' => [
  112. 'type' => 'int',
  113. 'min' => 1
  114. ]
  115. ],
  116. 'header.summary.delimiter' => [
  117. 'type' => 'text',
  118. 'toggleable' => true,
  119. 'label' => 'Summary delimiter',
  120. 'classes' => 'large',
  121. 'placeholder' => '==='
  122. ]
  123. ],
  124. 'import@' => [
  125. 'type' => 'partials/blog-bits'
  126. ]
  127. ]
  128. ]
  129. ]
  130. ]
  131. ]
  132. ]
  133. ];