menu.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <?php
  2. /**
  3. * 易优CMS
  4. * ============================================================================
  5. * 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
  6. * 网站地址: http://www.eyoucms.com
  7. * ----------------------------------------------------------------------------
  8. * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
  9. * ============================================================================
  10. * Author: 小虎哥 <1105415366@qq.com>
  11. * Date: 2018-4-3
  12. */
  13. $icon_arr = array(
  14. 'article' => 'fa fa-file-text',
  15. 'product' => 'fa fa-cubes',
  16. 'images' => 'fa fa-file-picture-o',
  17. 'download' => 'fa fa-cloud-download',
  18. 'single' => 'fa fa-bookmark-o',
  19. 'about' => 'fa fa-minus',
  20. 'job' => 'fa fa-minus',
  21. 'guestbook' => 'fa fa-file-text-o',
  22. 'feedback' => 'fa fa-file-text-o',
  23. );
  24. $main_lang= get_main_lang();
  25. $admin_lang = get_admin_lang();
  26. $domain = request()->domain();
  27. $default_words = array();
  28. $default_addcontent = array();
  29. // 获取有栏目的模型列表
  30. $channel_list = model('Channeltype')->getArctypeChannel('yes');
  31. foreach ($channel_list as $key => $val) {
  32. $default_words[] = array(
  33. 'name' => $val['ntitle'],
  34. 'action' => 'index',
  35. 'controller' => $val['ctl_name'],
  36. 'url' => $val['typelink'],
  37. 'icon' => $icon_arr[$val['nid']],
  38. );
  39. if (!in_array($val['nid'], array('single','guestbook','feedback'))) {
  40. $default_addcontent[] = array(
  41. 'name' => $val['ntitle'],
  42. 'action' => 'add',
  43. 'controller' => $val['ctl_name'],
  44. 'url' => $val['typelink'],
  45. 'icon' => $icon_arr[$val['nid']],
  46. );
  47. }
  48. }
  49. /*PC端可视编辑URl*/
  50. $uiset_pc_arr = [];
  51. if (file_exists(ROOT_PATH.'template/pc/uiset.txt')) {
  52. $uiset_pc_arr = array(
  53. 'url' => url('Uiset/pc', array(), true, $domain),
  54. 'is_menu' => 1,
  55. );
  56. }
  57. /*--end*/
  58. /*手机端可视编辑URl*/
  59. $uiset_mobile_arr = [];
  60. if (file_exists(ROOT_PATH.'template/mobile/uiset.txt')) {
  61. $uiset_mobile_arr = array(
  62. 'url' => url('Uiset/mobile', array(), true, $domain),
  63. 'is_menu' => 1,
  64. );
  65. }
  66. /*--end*/
  67. /*清理数据URl*/
  68. $uiset_data_url = '';
  69. if (!empty($uiset_pc_arr) || !empty($uiset_mobile_arr)) {
  70. $uiset_data_url = url('Uiset/ui_index', array(), true, $domain);
  71. }
  72. /*--end*/
  73. /*可视编辑URL*/
  74. $uiset_index_arr = array();
  75. if (!empty($uiset_pc_arr) || !empty($uiset_mobile_arr)) {
  76. $uiset_index_arr = array(
  77. 'url' => url('Uiset/index', array(), true, $domain),
  78. 'is_menu' => 1,
  79. );
  80. }
  81. /*--end*/
  82. /*基本信息*/
  83. $ctlactArr = [
  84. 'System@web',
  85. 'System@web2',
  86. 'System@basic',
  87. 'System@water',
  88. 'System@smtp',
  89. ];
  90. $system_index_arr = array();
  91. foreach ($ctlactArr as $key => $val) {
  92. if (is_check_access($val)) {
  93. $arr = explode('@', $val);
  94. $system_index_arr = array(
  95. 'controller' => !empty($arr[0]) ? $arr[0] : '',
  96. 'action' => !empty($arr[1]) ? $arr[1] : '',
  97. );
  98. break;
  99. }
  100. }
  101. /*--end*/
  102. /*SEO优化URl*/
  103. $seo_index_arr = array();
  104. if ($main_lang != $admin_lang) {
  105. $seo_index_arr = array(
  106. 'controller' => 'Links',
  107. 'action' => 'index',
  108. );
  109. } else {
  110. $ctlactArr = [
  111. 'Seo@seo',
  112. 'Sitemap@index',
  113. 'Links@index',
  114. ];
  115. foreach ($ctlactArr as $key => $val) {
  116. if (is_check_access($val)) {
  117. $arr = explode('@', $val);
  118. $seo_index_arr = array(
  119. 'controller' => !empty($arr[0]) ? $arr[0] : '',
  120. 'action' => !empty($arr[1]) ? $arr[1] : '',
  121. );
  122. break;
  123. }
  124. }
  125. }
  126. /*--end*/
  127. /*备份还原URl*/
  128. $tools_index_arr = array();
  129. if ($main_lang == $admin_lang) {
  130. $tools_index_arr = array(
  131. 'is_menu' => 1,
  132. );
  133. }
  134. /*--end*/
  135. /*频道模型URl*/
  136. $channeltype_index_arr = array();
  137. if ($main_lang == $admin_lang) {
  138. $channeltype_index_arr = array(
  139. 'is_menu' => 1,
  140. );
  141. }
  142. /*--end*/
  143. /*回收站URl*/
  144. $recyclebin_index_arr = array();
  145. if ($main_lang == $admin_lang) {
  146. $recyclebin_index_arr = array(
  147. 'is_menu' => 1,
  148. );
  149. }
  150. /*--end*/
  151. /*插件应用URl*/
  152. $weapp_index_arr = array();
  153. if (1 == tpCache('web.web_weapp_switch') && file_exists(ROOT_PATH.'weapp')) {
  154. $weapp_index_arr = array(
  155. 'is_menu' => 1,
  156. );
  157. }
  158. /*--end*/
  159. /*会员中心URl*/
  160. $users_index_arr = array();
  161. if (1 == tpCache('web.web_users_switch') && $main_lang == $admin_lang) {
  162. $users_index_arr = array(
  163. 'is_menu' => 1,
  164. 'is_modules' => 1,
  165. );
  166. }
  167. /*--end*/
  168. /*商城中心URl*/
  169. $shop_index_arr = array();
  170. if (1 == tpCache('web.web_users_switch') && 1 == getUsersConfigData('shop.shop_open') && $main_lang == $admin_lang) {
  171. $shop_index_arr = array(
  172. 'is_menu' => 1,
  173. 'is_modules' => 1,
  174. );
  175. }
  176. /*--end*/
  177. /*小程序*/
  178. $diyminipro_index_arr = array();
  179. if (is_dir('./weapp/Diyminipro/') && 1 == tpCache('web.web_diyminipro_switch') && $main_lang == $admin_lang) {
  180. $diyminipro_index_arr = array(
  181. 'is_modules' => 1,
  182. );
  183. }
  184. /*--end*/
  185. /**
  186. * 权限模块属性说明
  187. * array
  188. * id 主键ID
  189. * parent_id 父ID
  190. * name 模块名称
  191. * controller 控制器
  192. * action 操作名
  193. * url 跳转链接(控制器与操作名为空时,才使用url)
  194. * target 打开窗口方式
  195. * icon 菜单图标
  196. * grade 层级
  197. * is_menu 是否显示菜单
  198. * is_modules 是否显示权限模块分组
  199. * is_subshowmenu 子模块是否有显示的模块
  200. * child 子模块
  201. */
  202. return array(
  203. '1000'=>array(
  204. 'id'=>1000,
  205. 'parent_id'=>0,
  206. 'name'=>'',
  207. 'controller'=>'',
  208. 'action'=>'',
  209. 'url'=>'',
  210. 'target'=>'workspace',
  211. 'grade'=>0,
  212. 'is_menu'=>1,
  213. 'is_modules'=>1,
  214. 'is_subshowmenu'=>1,
  215. 'child'=>array(
  216. '1001' => array(
  217. 'id'=>1001,
  218. 'parent_id'=>1000,
  219. 'name' => '栏目管理',
  220. 'controller'=>'Arctype',
  221. 'action'=>'index',
  222. 'url'=>'',
  223. 'target'=>'workspace',
  224. 'icon'=>'fa fa-sitemap',
  225. 'grade'=>1,
  226. 'is_menu'=>1,
  227. 'is_modules'=>1,
  228. 'is_subshowmenu'=>0,
  229. 'child' => array(),
  230. ),
  231. '1002' => array(
  232. 'id'=>1002,
  233. 'parent_id'=>1000,
  234. 'name' => '内容管理',
  235. 'controller'=>'Archives',
  236. 'action'=>'index',
  237. 'url'=>'',
  238. 'target'=>'workspace',
  239. 'icon'=>'fa fa-list',
  240. 'grade'=>1,
  241. 'is_menu'=>1,
  242. 'is_modules'=>1,
  243. 'is_subshowmenu'=>0,
  244. 'child' => array(),
  245. ),
  246. '1003' => array(
  247. 'id'=>1003,
  248. 'parent_id'=>1000,
  249. 'name' => '广告管理',
  250. 'controller'=>'AdPosition',
  251. 'action'=>'index',
  252. 'url'=>'',
  253. 'target'=>'workspace',
  254. 'icon'=>'fa fa-image',
  255. 'grade'=>1,
  256. 'is_menu'=>1,
  257. 'is_modules'=>1,
  258. 'is_subshowmenu'=>0,
  259. 'child' => array(),
  260. ),
  261. ),
  262. ),
  263. '2000'=>array(
  264. 'id'=>2000,
  265. 'parent_id'=>0,
  266. 'name'=>'设置',
  267. 'controller'=>'',
  268. 'action'=>'',
  269. 'url'=>'',
  270. 'target'=>'workspace',
  271. 'grade'=>0,
  272. 'is_menu'=>1,
  273. 'is_modules'=>1,
  274. 'is_subshowmenu'=>1,
  275. 'child'=>array(
  276. '2001' => array(
  277. 'id'=>2001,
  278. 'parent_id'=>2000,
  279. 'name' => '基本信息',
  280. 'controller'=>isset($system_index_arr['controller']) ? $system_index_arr['controller'] : 'System',
  281. 'action'=>isset($system_index_arr['action']) ? $system_index_arr['action'] : 'index',
  282. 'url'=>'',
  283. 'target'=>'workspace',
  284. 'icon'=>'fa fa-cog',
  285. 'grade'=>1,
  286. 'is_menu'=>1,
  287. 'is_modules'=>1,
  288. 'is_subshowmenu'=>0,
  289. 'child' => array(
  290. '2001001' => array(
  291. 'id'=>2001001,
  292. 'parent_id'=>2001,
  293. 'name' => '网站设置',
  294. 'controller'=>'System',
  295. 'action'=>'web',
  296. 'url'=>'',
  297. 'target'=>'workspace',
  298. 'icon'=>'fa fa-undo',
  299. 'grade'=>2,
  300. 'is_menu'=>0,
  301. 'is_modules'=>1,
  302. 'is_subshowmenu'=>0,
  303. 'child' => array(),
  304. ),
  305. '2001002' => array(
  306. 'id'=>2001002,
  307. 'parent_id'=>2001,
  308. 'name' => '核心设置',
  309. 'controller'=>'System',
  310. 'action'=>'web2',
  311. 'url'=>'',
  312. 'target'=>'workspace',
  313. 'icon'=>'fa fa-undo',
  314. 'grade'=>2,
  315. 'is_menu'=>0,
  316. 'is_modules'=>1,
  317. 'is_subshowmenu'=>0,
  318. 'child' => array(),
  319. ),
  320. '2001003' => array(
  321. 'id'=>2001003,
  322. 'parent_id'=>2001,
  323. 'name' => '附件设置',
  324. 'controller'=>'System',
  325. 'action'=>'basic',
  326. 'url'=>'',
  327. 'target'=>'workspace',
  328. 'icon'=>'fa fa-undo',
  329. 'grade'=>2,
  330. 'is_menu'=>0,
  331. 'is_modules'=>1,
  332. 'is_subshowmenu'=>0,
  333. 'child' => array(),
  334. ),
  335. '2001004' => array(
  336. 'id'=>2001004,
  337. 'parent_id'=>2001,
  338. 'name' => '图片水印',
  339. 'controller'=>'System',
  340. 'action'=>'water',
  341. 'url'=>'',
  342. 'target'=>'workspace',
  343. 'icon'=>'fa fa-undo',
  344. 'grade'=>2,
  345. 'is_menu'=>0,
  346. 'is_modules'=>1,
  347. 'is_subshowmenu'=>0,
  348. 'child' => array(),
  349. ),
  350. '2001005' => array(
  351. 'id'=>2001005,
  352. 'parent_id'=>2001,
  353. 'name' => '接口配置',
  354. 'controller'=>'System',
  355. 'action'=>'smtp',
  356. 'url'=>'',
  357. 'target'=>'workspace',
  358. 'icon'=>'fa fa-undo',
  359. 'grade'=>2,
  360. 'is_menu'=>0,
  361. 'is_modules'=>1,
  362. 'is_subshowmenu'=>0,
  363. 'child' => array(),
  364. ),
  365. ),
  366. ),
  367. '2002' => array(
  368. 'id'=>2002,
  369. 'parent_id'=>2000,
  370. 'name' => '可视编辑',
  371. 'controller'=>'Weapp',
  372. 'action'=>'index',
  373. 'url'=>isset($uiset_index_arr['url']) ? $uiset_index_arr['url'] : '',
  374. 'target'=>'workspace',
  375. 'icon'=>'fa fa-tachometer',
  376. 'grade'=>1,
  377. 'is_menu'=>isset($uiset_index_arr['is_menu']) ? $uiset_index_arr['is_menu'] : 0,
  378. 'is_modules'=>1,
  379. 'is_subshowmenu'=>1,
  380. 'child'=>array(
  381. '2002001' => array(
  382. 'id'=>2002001,
  383. 'parent_id'=>2002,
  384. 'name' => '电脑版',
  385. 'controller'=>'',
  386. 'action'=>'',
  387. 'url'=>isset($uiset_pc_arr['url']) ? $uiset_pc_arr['url'] : '',
  388. 'target'=>'_blank',
  389. 'icon'=>'fa fa-desktop',
  390. 'grade'=>2,
  391. 'is_menu'=>isset($uiset_pc_arr['is_menu']) ? $uiset_pc_arr['is_menu'] : 0,
  392. 'is_modules'=>0,
  393. 'is_subshowmenu'=>0,
  394. 'child' => array(),
  395. ),
  396. '2002002' => array(
  397. 'id'=>2002002,
  398. 'parent_id'=>2002,
  399. 'name' => '手机版',
  400. 'controller'=>'',
  401. 'action'=>'',
  402. 'url'=>isset($uiset_mobile_arr['url']) ? $uiset_mobile_arr['url'] : '',
  403. 'target'=>'_blank',
  404. 'icon'=>'fa fa-mobile',
  405. 'grade'=>2,
  406. 'is_menu'=>isset($uiset_mobile_arr['is_menu']) ? $uiset_mobile_arr['is_menu'] : 0,
  407. 'is_modules'=>0,
  408. 'is_subshowmenu'=>0,
  409. 'child' => array(),
  410. ),
  411. '2002003' => array(
  412. 'id'=>2002003,
  413. 'parent_id'=>2002,
  414. 'name' => '数据清理',
  415. 'controller'=>'Uiset',
  416. 'action'=>'ui_index',
  417. 'url'=>'',
  418. 'target'=>'workspace',
  419. 'icon'=>'fa fa-undo',
  420. 'grade'=>2,
  421. 'is_menu'=>1,
  422. 'is_modules'=>0,
  423. 'is_subshowmenu'=>0,
  424. 'child' => array(),
  425. ),
  426. ),
  427. ),
  428. '2003' => array(
  429. 'id'=>2003,
  430. 'parent_id'=>2000,
  431. 'name' => 'SEO设置',
  432. 'controller'=>isset($seo_index_arr['controller']) ? $seo_index_arr['controller'] : 'Seo',
  433. 'action'=>isset($seo_index_arr['action']) ? $seo_index_arr['action'] : 'seo',
  434. 'url'=>'',
  435. 'target'=>'workspace',
  436. 'icon'=>'fa fa-paper-plane',
  437. 'grade'=>1,
  438. 'is_menu'=>1,
  439. 'is_modules'=>1,
  440. 'is_subshowmenu'=>0,
  441. 'child'=>array(
  442. '2003001' => array(
  443. 'id'=>2003001,
  444. 'parent_id'=>2003,
  445. 'name' => 'URL配置',
  446. 'controller'=>'Seo',
  447. 'action'=>'seo',
  448. 'url'=>'',
  449. 'target'=>'workspace',
  450. 'icon'=>'fa fa-newspaper-o',
  451. 'grade'=>2,
  452. 'is_menu'=>0,
  453. 'is_modules'=>1,
  454. 'is_subshowmenu'=>0,
  455. 'child' => array(),
  456. ),
  457. '2003002' => array(
  458. 'id'=>2003002,
  459. 'parent_id'=>2003,
  460. 'name' => 'Sitemap',
  461. 'controller'=>'Sitemap',
  462. 'action'=>'index',
  463. 'url'=>'',
  464. 'target'=>'workspace',
  465. 'icon'=>'fa fa-newspaper-o',
  466. 'grade'=>2,
  467. 'is_menu'=>0,
  468. 'is_modules'=>1,
  469. 'is_subshowmenu'=>0,
  470. 'child' => array(),
  471. ),
  472. '2003003' => array(
  473. 'id'=>2003003,
  474. 'parent_id'=>2003,
  475. 'name' => '友情链接',
  476. 'controller'=>'Links',
  477. 'action'=>'index',
  478. 'url'=>'',
  479. 'target'=>'workspace',
  480. 'icon'=>'fa fa-link',
  481. 'grade'=>2,
  482. 'is_menu'=>0,
  483. 'is_modules'=>1,
  484. 'is_subshowmenu'=>0,
  485. 'child' => array(),
  486. ),
  487. ),
  488. ),
  489. '2004' => array(
  490. 'id'=>2004,
  491. 'parent_id'=>2000,
  492. 'name' => '高级选项',
  493. 'controller'=>'Senior',
  494. 'action'=>'index',
  495. 'url'=>'',
  496. 'target'=>'workspace',
  497. 'icon'=>'fa fa-code',
  498. 'grade'=>1,
  499. 'is_menu'=>1,
  500. 'is_modules'=>1,
  501. 'is_subshowmenu'=>1,
  502. 'child' => array(
  503. '2004001' => array(
  504. 'id'=>2004001,
  505. 'parent_id'=>2004,
  506. 'name' => '管理员',
  507. 'controller'=>'Admin',
  508. 'action'=>'index',
  509. 'url'=>'',
  510. 'target'=>'workspace',
  511. 'icon'=>'fa fa-user',
  512. 'grade'=>2,
  513. 'is_menu'=>1,
  514. 'is_modules'=>0,
  515. 'is_subshowmenu'=>0,
  516. 'child' => array(),
  517. ),
  518. '2004006' => array(
  519. 'id'=>2004006,
  520. 'parent_id'=>2004,
  521. 'name' => '回收站',
  522. 'controller'=>'RecycleBin',
  523. 'action'=>'arctype_index',
  524. 'url'=>'',
  525. 'target'=>'workspace',
  526. 'icon'=>'fa fa-recycle',
  527. 'grade'=>2,
  528. 'is_menu'=>isset($recyclebin_index_arr['is_menu']) ? $recyclebin_index_arr['is_menu'] : 0,
  529. 'is_modules'=>0,
  530. 'is_subshowmenu'=>0,
  531. 'child' => array(),
  532. ),
  533. '2004003' => array(
  534. 'id'=>2004003,
  535. 'parent_id'=>2004,
  536. 'name' => '模板管理',
  537. 'controller'=>'Filemanager',
  538. 'action'=>'index',
  539. 'url'=>'',
  540. 'target'=>'workspace',
  541. 'icon'=>'fa fa-folder-open',
  542. 'grade'=>2,
  543. 'is_menu'=>1,
  544. 'is_modules'=>0,
  545. 'is_subshowmenu'=>0,
  546. 'child' => array(),
  547. ),
  548. '2004002' => array(
  549. 'id'=>2004002,
  550. 'parent_id'=>2004,
  551. 'name' => '备份还原',
  552. 'controller'=>'Tools',
  553. 'action'=>'index',
  554. 'url'=>'',
  555. 'target'=>'workspace',
  556. 'icon'=>'fa fa-database',
  557. 'grade'=>2,
  558. 'is_menu'=>isset($tools_index_arr['is_menu']) ? $tools_index_arr['is_menu'] : 0,
  559. 'is_modules'=>0,
  560. 'is_subshowmenu'=>0,
  561. 'child' => array(),
  562. ),
  563. // '2004004' => array(
  564. // 'id'=>2004004,
  565. // 'parent_id'=>2004,
  566. // 'name' => '字段管理',
  567. // 'controller'=>isset($field_cindex_arr['controller']) ? $field_cindex_arr['controller'] : '',
  568. // 'action'=>isset($field_cindex_arr['action']) ? $field_cindex_arr['action'] : '',
  569. // 'url'=>isset($field_cindex_arr['url']) ? $field_cindex_arr['url'] : '',
  570. // 'target'=>'workspace',
  571. // 'icon'=>'fa fa-cogs',
  572. // 'grade'=>2,
  573. // 'is_menu'=>0,
  574. // 'is_modules'=>0,
  575. // 'is_subshowmenu'=>0,
  576. // 'child' => array(),
  577. // ),
  578. '2004007' => array(
  579. 'id'=>2004007,
  580. 'parent_id'=>2004,
  581. 'name' => '频道模型',
  582. 'controller'=>'Channeltype',
  583. 'action'=>'index',
  584. 'url'=>'',
  585. 'target'=>'workspace',
  586. 'icon'=>'fa fa-cube',
  587. 'grade'=>2,
  588. 'is_menu'=>isset($channeltype_index_arr['is_menu']) ? $channeltype_index_arr['is_menu'] : 0,
  589. 'is_modules'=>0,
  590. 'is_subshowmenu'=>0,
  591. 'child' => array(),
  592. ),
  593. '2004005' => array(
  594. 'id'=>2004005,
  595. 'parent_id'=>2004,
  596. 'name' => '清除缓存',
  597. 'controller'=>'System',
  598. 'action'=>'clear_cache',
  599. 'url'=>'',
  600. 'target'=>'workspace',
  601. 'icon'=>'fa fa-undo',
  602. 'grade'=>2,
  603. 'is_menu'=>1,
  604. 'is_modules'=>0,
  605. 'is_subshowmenu'=>0,
  606. 'child' => array(),
  607. ),
  608. '2004008' => array(
  609. 'id'=>2004008,
  610. 'parent_id'=>2004,
  611. 'name' => '功能开关',
  612. 'controller'=>'Index',
  613. 'action'=>'switch_map',
  614. 'url'=>'',
  615. 'target'=>'workspace',
  616. 'icon'=>'fa fa-toggle-on',
  617. 'grade'=>2,
  618. 'is_menu'=>0,
  619. 'is_modules'=>1,
  620. 'is_subshowmenu'=>0,
  621. 'child' => array(),
  622. ),
  623. ),
  624. ),
  625. '2005' => array(
  626. 'id'=>2005,
  627. 'parent_id'=>2000,
  628. 'name' => '插件应用',
  629. 'controller'=>'Weapp',
  630. 'action'=>'index',
  631. 'url'=>'',
  632. 'target'=>'workspace',
  633. 'icon'=>'fa fa-futbol-o',
  634. 'grade'=>1,
  635. 'is_menu'=>isset($weapp_index_arr['is_menu']) ? $weapp_index_arr['is_menu'] : 0,
  636. 'is_modules'=>0,
  637. 'is_subshowmenu'=>0,
  638. 'child'=>array(),
  639. ),
  640. '2006' => array(
  641. 'id'=>2006,
  642. 'parent_id'=>2000,
  643. 'name' => '会员中心',
  644. 'controller'=>'Member',
  645. 'action'=>'users_index',
  646. 'url'=>'',
  647. 'target'=>'workspace',
  648. 'icon'=>'fa fa-user',
  649. 'grade'=>1,
  650. 'is_menu'=>isset($users_index_arr['is_menu']) ? $users_index_arr['is_menu'] : 0,
  651. 'is_modules'=>isset($users_index_arr['is_modules']) ? $users_index_arr['is_modules'] : 0,
  652. 'is_subshowmenu'=>0,
  653. 'child' => array(),
  654. ),
  655. '2008' => array(
  656. 'id'=>2008,
  657. 'parent_id'=>2000,
  658. 'name' => '商城中心',
  659. 'controller'=>'Shop',
  660. 'action'=>'home',
  661. 'url'=>'',
  662. 'target'=>'workspace',
  663. 'icon'=>'fa fa-shopping-cart',
  664. 'grade'=>1,
  665. 'is_menu'=>isset($shop_index_arr['is_menu']) ? $shop_index_arr['is_menu'] : 0,
  666. 'is_modules'=>isset($shop_index_arr['is_modules']) ? $shop_index_arr['is_modules'] : 0,
  667. 'is_subshowmenu'=>0,
  668. 'child' => array(),
  669. ),
  670. '2009' => array(
  671. 'id'=>2009,
  672. 'parent_id'=>2000,
  673. 'name' => '可视化小程序',
  674. 'controller'=>'Diyminipro',
  675. 'action'=>'page_edit',
  676. 'url'=>'',
  677. 'target'=>'workspace',
  678. 'icon'=>'fa fa-code',
  679. 'grade'=>1,
  680. 'is_menu'=>0,
  681. 'is_modules'=>isset($diyminipro_index_arr['is_modules']) ? $diyminipro_index_arr['is_modules'] : 0,
  682. 'is_subshowmenu'=>0,
  683. 'child' => array(),
  684. ),
  685. ),
  686. ),
  687. );