<?php
 use ModStart\Module\ModuleManager; return [ 'menu' => [ [ 'title' => L('Site Manage'), 'icon' => '04', 'sort' => 8, 'children' => [ [ 'title' => '基础设置', 'rule' => '\Module\ConfigSite\Admin\Controller\ConfigController@site', ], [ 'title' => '访问设置', 'rule' => '\Module\ConfigSite\Admin\Controller\ConfigController@visit', ], ModuleManager::getModuleConfigBoolean('ConfigSite', 'visitLimitEnable') ? [ 'title' => '访问限制', 'rule' => '\Module\ConfigSite\Admin\Controller\ConfigController@visitLimit', ] : null, ModuleManager::getModuleConfigBoolean('ConfigSite', 'emailEnable') ? [ 'title' => '邮箱设置', 'children' => [ [ 'title' => 'SMTP设置', 'rule' => '\Module\ConfigSite\Admin\Controller\ConfigController@email', ], [ 'title' => '测试发送', 'rule' => '\Module\ConfigSite\Admin\Controller\ConfigController@emailTest', ], ] ] : null, ModuleManager::getModuleConfigBoolean('ConfigSite', 'smsEnable') ? [ 'title' => '短信设置', 'rule' => '\Module\ConfigSite\Admin\Controller\ConfigController@sms', ] : null, ModuleManager::getModuleConfigBoolean('ConfigSite', 'payEnable') ? [ 'title' => '支付设置', 'children' => [ [ 'title' => '支付宝', 'rule' => '\Module\ConfigSite\Admin\Controller\PayController@alipay', ], ] ] : null, ] ] ] ];