menu.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?php
  2. $menu = [
  3. [
  4. 'name' => 'cms',
  5. 'title' => 'CMS管理',
  6. 'sublist' => [
  7. [
  8. 'name' => 'cms/config',
  9. 'title' => '站点配置',
  10. 'icon' => 'fa fa-gears',
  11. 'ismenu' => 1,
  12. 'weigh' => '22',
  13. 'sublist' => [
  14. ['name' => 'cms/config/index', 'title' => '修改'],
  15. ],
  16. ],
  17. [
  18. 'name' => 'cms/statistics',
  19. 'title' => '统计控制台',
  20. 'icon' => 'fa fa-bar-chart',
  21. 'ismenu' => 1,
  22. 'weigh' => '21',
  23. 'sublist' => [
  24. ['name' => 'cms/statistics/index', 'title' => '查看'],
  25. ],
  26. ],
  27. [
  28. 'name' => 'cms/channel',
  29. 'title' => '栏目管理',
  30. 'icon' => 'fa fa-list',
  31. 'weigh' => '20',
  32. 'sublist' => [
  33. ['name' => 'cms/channel/index', 'title' => '查看'],
  34. ['name' => 'cms/channel/add', 'title' => '添加'],
  35. ['name' => 'cms/channel/edit', 'title' => '修改'],
  36. ['name' => 'cms/channel/del', 'title' => '删除'],
  37. ['name' => 'cms/channel/multi', 'title' => '批量更新'],
  38. ['name' => 'cms/channel/admin', 'title' => '栏目授权', 'remark' => '分配管理员可管理的栏目数据,此功能需要先开启站点配置栏目授权开关'],
  39. ],
  40. 'remark' => '用于管理网站的分类,可进行无限级分类,注意只有类型为列表的才可以添加文章'
  41. ],
  42. [
  43. 'name' => 'cms/archives',
  44. 'title' => '内容管理',
  45. 'icon' => 'fa fa-file-text-o',
  46. 'weigh' => '19',
  47. 'sublist' => [
  48. ['name' => 'cms/archives/index', 'title' => '查看'],
  49. ['name' => 'cms/archives/content', 'title' => '副表管理', 'remark' => '用于管理模型副表的数据列表,不建议在此进行删除操作'],
  50. ['name' => 'cms/archives/add', 'title' => '添加'],
  51. ['name' => 'cms/archives/edit', 'title' => '修改'],
  52. ['name' => 'cms/archives/del', 'title' => '删除'],
  53. ['name' => 'cms/archives/multi', 'title' => '批量更新'],
  54. ['name' => 'cms/archives/move', 'title' => '移动'],
  55. ['name' => 'cms/archives/special', 'title' => '专题'],
  56. ["name" => "cms/archives/recyclebin", "title" => "回收站"],
  57. ["name" => "cms/archives/restore", "title" => "还原"],
  58. ["name" => "cms/archives/destroy", "title" => "真实删除"],
  59. ]
  60. ],
  61. [
  62. 'name' => 'cms/modelx',
  63. 'title' => '模型管理',
  64. 'icon' => 'fa fa-th',
  65. 'weigh' => '18',
  66. 'sublist' => [
  67. ['name' => 'cms/modelx/index', 'title' => '查看'],
  68. ['name' => 'cms/modelx/add', 'title' => '添加'],
  69. ['name' => 'cms/modelx/edit', 'title' => '修改'],
  70. ['name' => 'cms/modelx/del', 'title' => '删除'],
  71. ['name' => 'cms/modelx/duplicate', 'title' => '复制'],
  72. ['name' => 'cms/modelx/multi', 'title' => '批量更新']
  73. ],
  74. 'remark' => '在线添加修改删除模型,管理模型字段和相关模型数据'
  75. ],
  76. [
  77. 'name' => 'cms/fields',
  78. 'title' => '字段管理',
  79. 'icon' => 'fa fa-fields',
  80. 'ismenu' => 0,
  81. 'sublist' => [
  82. ['name' => 'cms/fields/index', 'title' => '查看'],
  83. ['name' => 'cms/fields/add', 'title' => '添加'],
  84. ['name' => 'cms/fields/edit', 'title' => '修改'],
  85. ['name' => 'cms/fields/del', 'title' => '删除'],
  86. ['name' => 'cms/fields/duplicate', 'title' => '复制'],
  87. ['name' => 'cms/fields/multi', 'title' => '批量更新'],
  88. ],
  89. 'remark' => '用于管理模型或表单的字段,进行相关的增删改操作,灰色为主表字段无法修改'
  90. ],
  91. [
  92. 'name' => 'cms/tag',
  93. 'title' => '标签管理',
  94. 'icon' => 'fa fa-tags',
  95. 'weigh' => '17',
  96. 'sublist' => [
  97. ['name' => 'cms/tag/index', 'title' => '查看'],
  98. ['name' => 'cms/tag/add', 'title' => '添加'],
  99. ['name' => 'cms/tag/edit', 'title' => '修改'],
  100. ['name' => 'cms/tag/del', 'title' => '删除'],
  101. ['name' => 'cms/tag/multi', 'title' => '批量更新'],
  102. ],
  103. 'remark' => '用于管理文章关联的标签,标签的添加在添加文章时自动维护,无需手动添加标签'
  104. ],
  105. [
  106. 'name' => 'cms/block',
  107. 'title' => '区块管理',
  108. 'icon' => 'fa fa-th-large',
  109. 'weigh' => '16',
  110. 'sublist' => [
  111. ['name' => 'cms/block/index', 'title' => '查看'],
  112. ['name' => 'cms/block/add', 'title' => '添加'],
  113. ['name' => 'cms/block/edit', 'title' => '修改'],
  114. ['name' => 'cms/block/del', 'title' => '删除'],
  115. ['name' => 'cms/block/multi', 'title' => '批量更新'],
  116. ],
  117. 'remark' => '用于管理站点的自定义区块内容,常用于广告、JS脚本、焦点图、片段代码等'
  118. ],
  119. [
  120. 'name' => 'cms/page',
  121. 'title' => '单页管理',
  122. 'icon' => 'fa fa-file',
  123. 'weigh' => '15',
  124. 'sublist' => [
  125. ['name' => 'cms/page/index', 'title' => '查看'],
  126. ['name' => 'cms/page/add', 'title' => '添加'],
  127. ['name' => 'cms/page/edit', 'title' => '修改'],
  128. ['name' => 'cms/page/del', 'title' => '删除'],
  129. ['name' => 'cms/page/multi', 'title' => '批量更新'],
  130. ["name" => "cms/page/recyclebin", "title" => "回收站"],
  131. ["name" => "cms/page/restore", "title" => "还原"],
  132. ["name" => "cms/page/destroy", "title" => "真实删除"],
  133. ],
  134. 'remark' => '用于管理网站的单页面,可任意创建修改删除单页面'
  135. ],
  136. [
  137. 'name' => 'cms/comment',
  138. 'title' => '评论管理',
  139. 'icon' => 'fa fa-comment',
  140. 'weigh' => '14',
  141. 'sublist' => [
  142. ['name' => 'cms/comment/index', 'title' => '查看'],
  143. ['name' => 'cms/comment/add', 'title' => '添加'],
  144. ['name' => 'cms/comment/edit', 'title' => '修改'],
  145. ['name' => 'cms/comment/del', 'title' => '删除'],
  146. ['name' => 'cms/comment/multi', 'title' => '批量更新'],
  147. ["name" => "cms/comment/recyclebin", "title" => "回收站"],
  148. ["name" => "cms/comment/restore", "title" => "还原"],
  149. ["name" => "cms/comment/destroy", "title" => "真实删除"],
  150. ],
  151. 'remark' => '用于管理用户在网站上发表的评论,可任意修改或隐藏评论'
  152. ],
  153. [
  154. 'name' => 'cms/diyform',
  155. 'title' => '自定义表单管理',
  156. 'icon' => 'fa fa-list',
  157. 'weigh' => '13',
  158. 'sublist' => [
  159. ['name' => 'cms/diyform/index', 'title' => '查看'],
  160. ['name' => 'cms/diyform/add', 'title' => '添加'],
  161. ['name' => 'cms/diyform/edit', 'title' => '修改'],
  162. ['name' => 'cms/diyform/del', 'title' => '删除'],
  163. ['name' => 'cms/diyform/multi', 'title' => '批量更新'],
  164. ],
  165. 'remark' => '可在线创建自定义表单,管理表单字段和数据列表'
  166. ],
  167. [
  168. 'name' => 'cms/diydata',
  169. 'title' => '自定义表单数据管理',
  170. 'icon' => 'fa fa-list',
  171. 'ismenu' => 0,
  172. 'weigh' => '12',
  173. 'sublist' => [
  174. ['name' => 'cms/diydata/index', 'title' => '查看'],
  175. ['name' => 'cms/diydata/add', 'title' => '添加'],
  176. ['name' => 'cms/diydata/edit', 'title' => '修改'],
  177. ['name' => 'cms/diydata/del', 'title' => '删除'],
  178. ['name' => 'cms/diydata/multi', 'title' => '批量更新'],
  179. ['name' => 'cms/diydata/import', 'title' => '导入'],
  180. ],
  181. 'remark' => '可在线管理自定义表单的数据列表'
  182. ],
  183. [
  184. 'name' => 'cms/order',
  185. 'title' => '订单管理',
  186. 'icon' => 'fa fa-cny',
  187. 'ismenu' => 1,
  188. 'weigh' => '11',
  189. 'sublist' => [
  190. ['name' => 'cms/order/index', 'title' => '查看'],
  191. ['name' => 'cms/order/add', 'title' => '添加'],
  192. ['name' => 'cms/order/edit', 'title' => '修改'],
  193. ['name' => 'cms/order/del', 'title' => '删除'],
  194. ['name' => 'cms/order/multi', 'title' => '批量更新'],
  195. ],
  196. 'remark' => '可在线管理付费查看所产生的订单'
  197. ],
  198. [
  199. 'name' => 'cms/special',
  200. 'title' => '专题管理',
  201. 'icon' => 'fa fa-newspaper-o',
  202. 'ismenu' => 1,
  203. 'weigh' => '10',
  204. 'sublist' => [
  205. ['name' => 'cms/special/index', 'title' => '查看'],
  206. ['name' => 'cms/special/add', 'title' => '添加'],
  207. ['name' => 'cms/special/edit', 'title' => '修改'],
  208. ['name' => 'cms/special/del', 'title' => '删除'],
  209. ['name' => 'cms/special/multi', 'title' => '批量更新'],
  210. ["name" => "cms/special/recyclebin", "title" => "回收站"],
  211. ["name" => "cms/special/restore", "title" => "还原"],
  212. ["name" => "cms/special/destroy", "title" => "真实删除"],
  213. ],
  214. 'remark' => '可在线管理专题列表'
  215. ],
  216. [
  217. 'name' => 'cms/builder',
  218. 'title' => '标签生成器',
  219. 'icon' => 'fa fa-code',
  220. 'ismenu' => 1,
  221. 'weigh' => '10',
  222. 'sublist' => [
  223. ['name' => 'cms/builder/index', 'title' => '生成'],
  224. ['name' => 'cms/builder/parse', 'title' => '解析'],
  225. ],
  226. 'remark' => '可在线生成CMS模板标签并进行渲染标签'
  227. ],
  228. [
  229. 'name' => 'cms/autolink',
  230. 'title' => '自动链接管理',
  231. 'icon' => 'fa fa-link',
  232. 'ismenu' => 1,
  233. 'weigh' => '11',
  234. 'sublist' => [
  235. ['name' => 'cms/autolink/index', 'title' => '修改'],
  236. ['name' => 'cms/autolink/add', 'title' => '修改'],
  237. ['name' => 'cms/autolink/edit', 'title' => '修改'],
  238. ['name' => 'cms/autolink/del', 'title' => '修改'],
  239. ['name' => 'cms/autolink/multi', 'title' => '批量更新'],
  240. ],
  241. 'remark' => '管理文章正文内文本自动追加链接'
  242. ]
  243. ]
  244. ]
  245. ];
  246. return $menu;