Guest User

Untitled

a guest
Nov 20th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. <?php
  2.  
  3. return [
  4. 'settings' => [],
  5. 'templates' => [
  6. 'Table' => [
  7. 'type' => 'table',
  8. 'placeholder' => 'Заголовок таблицы',
  9. 'value' => true,
  10. 'items' => [
  11. 'thead' => [
  12. 'type' => 'table:head',
  13. 'items' => [
  14. 'row' => [
  15. 'type' => 'table:row',
  16. 'items' => [
  17. [
  18. 'type' => 'table:th',
  19. 'items' => [
  20. [
  21. 'type' => 'id',
  22. 'value' => 'id'
  23. ]
  24. ],
  25. 'tpl' => '@CODE:<th>[+mf.items+]</th>'
  26. ],
  27. [
  28. 'type' => 'table:th',
  29. 'items' => [
  30. [
  31. 'type' => 'text',
  32. 'value' => 'Title'
  33. ]
  34. ],
  35. 'tpl' => '@CODE:<th>[+mf.items+]</th>'
  36. ],
  37. [
  38. 'type' => 'table:th',
  39. 'items' => [
  40. [
  41. 'type' => 'text',
  42. 'value' => 'Text'
  43. ]
  44. ],
  45. 'tpl' => '@CODE:<th>[+mf.items+]</th>'
  46. ],
  47. [
  48. 'type' => 'table:th',
  49. 'items' => [
  50. [
  51. 'type' => 'text',
  52. 'value' => 'Date'
  53. ]
  54. ],
  55. 'tpl' => '@CODE:<th>[+mf.items+]</th>'
  56. ],
  57. [
  58. 'type' => 'table:th',
  59. 'title' => 'Row Thumbs',
  60. 'items' => [
  61. [
  62. 'type' => 'text',
  63. 'tpl' => '@CODE: [+value+]',
  64. ],
  65. ],
  66. 'tpl' => '@CODE:<th>[+mf.items+]</th>'
  67. ]
  68. ],
  69. 'tpl' => '@CODE:<tr>[+mf.items+]</tr>'
  70. ]
  71. ],
  72. 'tpl' => '@CODE:<thead class="thead-dark">[+mf.items+]</thead>'
  73. // 'tpl' => ' '
  74. ],
  75. 'tbody' => [
  76. 'type' => 'table:body',
  77. 'items' => [
  78. 'row' => [
  79. 'type' => 'table:row',
  80. 'items' => [
  81. [
  82. 'type' => 'table:td',
  83. 'items' => [
  84. [
  85. 'type' => 'id'
  86. ]
  87. ],
  88. 'tpl' => '@CODE:<td>[+mf.items+]</td>'
  89. ],
  90. [
  91. 'type' => 'table:td',
  92. 'items' => [
  93. [
  94. 'type' => 'text'
  95. ]
  96. ],
  97. 'tpl' => '@CODE:<td>[+mf.items+]</td>'
  98. ],
  99. [
  100. 'type' => 'table:td',
  101. 'items' => [
  102. [
  103. 'type' => 'text'
  104. ]
  105. ],
  106. 'tpl' => '@CODE:<td>[+mf.items+]</td>'
  107. ],
  108. [
  109. 'type' => 'table:td',
  110. 'items' => [
  111. [
  112. 'type' => 'date'
  113. ]
  114. ],
  115. 'tpl' => '@CODE:<td>[+mf.items+]</td>'
  116. ],
  117. [
  118. 'type' => 'table:td',
  119. 'items' => [
  120. [
  121. 'type' => 'text',
  122. 'tpl' => '@CODE:<p>[+value+]</p>'
  123. ],
  124. ],
  125. 'tpl' => '@CODE:<td>[+mf.items+]</td>'
  126. ]
  127. ],
  128. 'tpl' => '@CODE:<tr>[+mf.items+]</tr>'
  129. ]
  130. ],
  131. 'tpl' => '@CODE:<tbody>[+mf.items+]</tbody>'
  132. ]
  133. ],
  134. 'tpl' => '@CODE: <p>--> [+value+] <--</p><table class="table table-sm table-hover table-bordered">[+mf.items+]</table>'
  135. ],
  136. ]
  137. ];
  138.  
Advertisement
Add Comment
Please, Sign In to add comment