config.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <?php
  2. return array (
  3. 0 =>
  4. array (
  5. 'name' => 'web_site_status',
  6. 'title' => '站点开关',
  7. 'type' => 'radio',
  8. 'options' =>
  9. array (
  10. 1 => '开启',
  11. 0 => '关闭',
  12. ),
  13. 'tip' => '站点关闭后前台将不能访问',
  14. 'value' => '1',
  15. 'extend' => '',
  16. ),
  17. 1 =>
  18. array (
  19. 'name' => 'site_url_mode',
  20. 'title' => 'URL模式',
  21. 'type' => 'radio',
  22. 'options' =>
  23. array (
  24. 1 => '数字',
  25. 2 => '标识',
  26. ),
  27. 'value' => '2',
  28. 'tip' => '标识模式需修改伪静态:<br><code>index/lists</code>的键值改为<code>/c/[:catdir]$</code><br><code>index/shows</code>的键值改为<code>/d/[:catdir]/[:id]$</code>',
  29. 'extend' => '',
  30. ),
  31. 2 =>
  32. array (
  33. 'name' => 'site_name',
  34. 'title' => '站点名称',
  35. 'type' => 'text',
  36. 'value' => 'XTU骁途 - 全球领先的相机品牌',
  37. 'rule' => 'required',
  38. 'extend' => '',
  39. ),
  40. 3 =>
  41. array (
  42. 'name' => 'site_title',
  43. 'title' => '站点标题',
  44. 'type' => 'text',
  45. 'value' => 'XTU骁途 - 全球领先的相机品牌',
  46. 'extend' => '',
  47. ),
  48. 4 =>
  49. array (
  50. 'name' => 'site_keyword',
  51. 'title' => '站点关键词',
  52. 'type' => 'text',
  53. 'value' => 'XTU骁途 - 全球领先的相机品牌',
  54. 'extend' => '',
  55. ),
  56. 5 =>
  57. array (
  58. 'name' => 'site_description',
  59. 'title' => '站点描述',
  60. 'type' => 'textarea',
  61. 'value' => 'XTU骁途 - 全球领先的相机品牌',
  62. 'extend' => '',
  63. ),
  64. 6 =>
  65. array (
  66. 'name' => 'rewrite',
  67. 'title' => '伪静态',
  68. 'type' => 'array',
  69. 'value' =>
  70. array (
  71. 'index/index' => '/$',
  72. 'index/lists' => '/c/[:catdir]$',
  73. 'index/shows' => '/d/[:catdir]/[:id]$',
  74. 'tags/index' => '/tag/[:tag]$',
  75. 'search/index' => '/search$',
  76. ),
  77. 'tip' => '',
  78. 'extend' => '',
  79. ),
  80. 7 =>
  81. array (
  82. 'name' => 'site_cache_time',
  83. 'title' => '缓存时间',
  84. 'type' => 'text',
  85. 'value' => '3600',
  86. 'tip' => '单页和详情页有效',
  87. 'extend' => '',
  88. ),
  89. 8 =>
  90. array (
  91. 'name' => 'site_recycle',
  92. 'title' => '回收站',
  93. 'type' => 'radio',
  94. 'options' =>
  95. array (
  96. 1 => '开启',
  97. 0 => '关闭',
  98. ),
  99. 'tip' => '开启后,误删的文章可以恢复,反之不可还原',
  100. 'value' => '0',
  101. 'extend' => '',
  102. ),
  103. 9 =>
  104. array (
  105. 'name' => 'site_searchtype',
  106. 'title' => '搜索方式',
  107. 'type' => 'radio',
  108. 'options' =>
  109. array (
  110. 'local' => '本地搜索',
  111. 'xunsearch' => '迅搜全文搜索',
  112. 'meilisearch' => 'meilisearch',
  113. ),
  114. 'tip' => '使用迅搜或Meili搜索需要安装对应搜索插件',
  115. 'value' => 'local',
  116. 'extend' => '',
  117. ),
  118. 10 =>
  119. array (
  120. 'name' => 'xunsearch_project_name',
  121. 'title' => 'Xunsearch 项目名称',
  122. 'type' => 'text',
  123. 'value' => 'cms',
  124. 'visible' => 'site_searchtype=xunsearch',
  125. 'tip' => '如多个CMS共用Xunsearch服务,必须每个CMS的配置中设置不同的项目名称',
  126. 'extend' => '',
  127. ),
  128. 11 =>
  129. array (
  130. 'name' => 'meilisearch_project_name',
  131. 'title' => 'Meilisearch 项目名称',
  132. 'type' => 'text',
  133. 'value' => 'cms',
  134. 'visible' => 'site_searchtype=meilisearch',
  135. 'tip' => '如多个CMS共用Meilisearch服务,必须每个CMS的配置中设置不同的项目名称',
  136. 'extend' => '',
  137. ),
  138. 12 =>
  139. array (
  140. 'name' => 'category_auth',
  141. 'title' => '栏目授权',
  142. 'type' => 'radio',
  143. 'options' =>
  144. array (
  145. 1 => '开启',
  146. 0 => '关闭',
  147. ),
  148. 'tip' => '开启后,可在【栏目授权】单独给管理员分配可管理的内容栏目',
  149. 'value' => '0',
  150. 'extend' => '',
  151. ),
  152. 13 =>
  153. array (
  154. 'name' => 'site_weburlpush',
  155. 'title' => '站长推送',
  156. 'type' => 'radio',
  157. 'options' =>
  158. array (
  159. 1 => '开启',
  160. 0 => '关闭',
  161. ),
  162. 'tip' => '如果开启百度站长+神马搜索推送,将在文章发布时自动进行推送(需要安装推送插件)',
  163. 'value' => '0',
  164. 'extend' => '',
  165. ),
  166. 14 =>
  167. array (
  168. 'name' => 'site_getwords',
  169. 'title' => '中文分词',
  170. 'type' => 'radio',
  171. 'options' =>
  172. array (
  173. 1 => '开启',
  174. 0 => '关闭',
  175. ),
  176. 'tip' => '开启后,会将内容分词提取到关键词中(需要安装中文分词插件)',
  177. 'value' => '0',
  178. 'extend' => '',
  179. ),
  180. 15 =>
  181. array (
  182. 'name' => 'denied_contribute_groups',
  183. 'title' => '禁止投稿的会员组',
  184. 'type' => 'text',
  185. 'value' => '',
  186. 'tip' => '',
  187. 'extend' => 'class="form-control layui-input selectpage" data-source="user.group/index" data-multiple="true"',
  188. ),
  189. 16 =>
  190. array (
  191. 'name' => 'daily_contribute_limit',
  192. 'title' => '每日投稿条数',
  193. 'type' => 'text',
  194. 'value' => '5',
  195. 'tip' => '',
  196. 'extend' => '',
  197. ),
  198. 17 =>
  199. array (
  200. 'name' => 'is_contribute_audit',
  201. 'title' => '是否开启投稿审核',
  202. 'type' => 'radio',
  203. 'options' =>
  204. array (
  205. 1 => '开启',
  206. 0 => '关闭',
  207. ),
  208. 'tip' => '',
  209. 'value' => '1',
  210. 'extend' => '',
  211. ),
  212. 18 =>
  213. array (
  214. 'name' => 'contribute_verify',
  215. 'title' => '投稿身份验证',
  216. 'type' => 'radio',
  217. 'options' =>
  218. array (
  219. 1 => '开启',
  220. 0 => '关闭',
  221. ),
  222. 'tip' => '开启后,用户投稿必须验证邮箱或手机',
  223. 'value' => '1',
  224. 'extend' => '',
  225. ),
  226. 19 =>
  227. array (
  228. 'name' => 'autolinks',
  229. 'title' => '关键字链接',
  230. 'type' => 'textarea',
  231. 'value' => '百度|https://www.baidu.com/
  232. 腾讯|https://www.qq.com/',
  233. 'tip' => '每行1组以"关键词<b class="text-danger">|</b>(半角竖线)链接"形式填写, 可用第2个竖线追加参数:<b class="text-danger">n</b>代表nofollow标记, <b class="text-danger">e</b>代表external nofollow标记, <b class="text-danger">b</b>代表本窗口打开.</br> 例: google<strong>|</strong>http://www.google.com<strong>|</strong>n 即此链接带nofollow(默认新窗口打开)',
  234. 'extend' => '',
  235. ),
  236. 20 =>
  237. array (
  238. 'name' => 'site_logo_light',
  239. 'title' => '浅色Logo',
  240. 'type' => 'image',
  241. 'value' => '/uploads/20260811/79751d5219c2ade723c86cae52e140df.png',
  242. 'tip' => '用于普通/浅色导航栏显示,建议上传透明背景 PNG 或 WebP。',
  243. 'extend' => '',
  244. ),
  245. 21 =>
  246. array (
  247. 'name' => 'site_logo_dark',
  248. 'title' => '深色Logo',
  249. 'type' => 'image',
  250. 'value' => '/uploads/20260811/79751d5219c2ade723c86cae52e140df.png',
  251. 'tip' => '用于深色/滚动状态导航栏显示,留空时默认使用浅色Logo。',
  252. 'extend' => '',
  253. ),
  254. );