<?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', 'softApiCaptchaEnable') ? [ 'title' => '安全验证码', 'rule' => '\Module\ConfigSite\Admin\Controller\SoftApiController@captcha', ] : null, ModuleManager::getModuleConfigBoolean('ConfigSite', 'softApiAudioConvertEnable') ? [ 'title' => '语音转换', 'rule' => '\Module\ConfigSite\Admin\Controller\SoftApiController@audioConvert', ] : null, ModuleManager::getModuleConfigBoolean('ConfigSite', 'softApiExpressEnable') ? [ 'title' => '快递查询', 'rule' => '\Module\ConfigSite\Admin\Controller\SoftApiController@express', ] : null, ModuleManager::getModuleConfigBoolean('ConfigSite', 'softApiAsrEnable') ? [ 'title' => '语音识别', 'rule' => '\Module\ConfigSite\Admin\Controller\SoftApiController@asr', ] : null, ] ] ] ];