优化 后台默认手机触屏版风格设置支持触屏版
This commit is contained in:
parent
7a46827ef3
commit
fd6c48806e
|
@ -171,7 +171,7 @@ if($operation == 'admin') {
|
||||||
$isdefault3 = $id == $defaultid3 ? 'checked' : '';
|
$isdefault3 = $id == $defaultid3 ? 'checked' : '';
|
||||||
$mobile1exists = file_exists($style['directory'].'/mobile');
|
$mobile1exists = file_exists($style['directory'].'/mobile');
|
||||||
$d1exists = file_exists($style['directory'].'/mobile');
|
$d1exists = file_exists($style['directory'].'/mobile');
|
||||||
$d2exists = file_exists($style['directory'].'/touch');
|
$d2exists = file_exists($style['directory'].'/touch') || file_exists($style['directory'].'/m');
|
||||||
$d3exists = file_exists($style['directory'].'/wml');
|
$d3exists = file_exists($style['directory'].'/wml');
|
||||||
$available = $style['available'] ? 'checked' : NULL;
|
$available = $style['available'] ? 'checked' : NULL;
|
||||||
$preview = file_exists($style['directory'].'/preview.jpg') ? $style['directory'].'/preview.jpg' : './static/image/admincp/stylepreview.gif';
|
$preview = file_exists($style['directory'].'/preview.jpg') ? $style['directory'].'/preview.jpg' : './static/image/admincp/stylepreview.gif';
|
||||||
|
|
|
@ -712,6 +712,10 @@ class discuz_application extends discuz_base{
|
||||||
$this->var['cache']['style_default']['styleid'] = $styleid = $this->var['category']['styleid'];
|
$this->var['cache']['style_default']['styleid'] = $styleid = $this->var['category']['styleid'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->var['setting']['mobile']['allowmnew'] && !defined('IN_MOBILE_API') && $this->var['setting']['styleid2']) {
|
||||||
|
$styleid = $this->var['setting']['styleid2'];
|
||||||
|
}
|
||||||
|
|
||||||
$styleid = intval($styleid);
|
$styleid = intval($styleid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue