1.在simplewind\cmf\common.php 里找到“获取当前主题名”添加
if(cmf_is_mobile()){
$theme = config('cmf_mobile_default_theme');
}else{
$theme = config('cmf_default_theme');
}
$theme = config('cmf_mobile_default_theme');
}else{
$theme = config('cmf_default_theme');
}
2. app\config.php 里添加
'cmf_mobile_theme_path' => 'public/themes/', //(public视情况而定加)
'cmf_mobile_default_theme' => 'mobile', //(mobile为手机版文件名)
'cmf_mobile_default_theme' => 'mobile', //(mobile为手机版文件名)