优化 新触屏版入口
This commit is contained in:
commit
7743b974cc
|
@ -1,6 +1,6 @@
|
|||
### **简介**
|
||||
|
||||
Discuz! X 官方 Git/SVN (https://git.oschina.net/ComsenzDiscuz/DiscuzX) ,简体中文 UTF8 版本,其他版本请自行转码或者在 Discuz! 官方站下载安装包。
|
||||
Discuz! X 官方 Git (https://gitee.com/ComsenzDiscuz/DiscuzX) ,简体中文 UTF8 版本,其他版本请自行转码或者[附件](http://gitee.com/ComsenzDiscuz/DiscuzX/attach_files)中下载
|
||||
|
||||
### **声明**
|
||||
您可以 Fork 本站代码,但未经许可 **禁止** 在本产品的整体或任何部分基础上以发展任何派生版本、修改版本或第三方版本用于 **重新分发**
|
||||
|
@ -13,11 +13,11 @@ Discuz! X 官方 Git/SVN (https://git.oschina.net/ComsenzDiscuz/DiscuzX) ,简
|
|||
|
||||
### **感谢 Fans**
|
||||
|
||||
- DiscuzFans:https://git.oschina.net/sinlody/DiscuzFans
|
||||
- DiscuzLite:https://git.oschina.net/3dming/DiscuzL
|
||||
- DiscuzFans:https://gitee.com/sinlody/DiscuzFans
|
||||
- DiscuzLite:https://gitee.com/3dming/DiscuzL
|
||||
|
||||
### **DxGit Forker 交流群**
|
||||
[QQ群 62652633](http://shang.qq.com/wpa/qunwpa?idkey=5c7c9ff98ebd001751bcda84b47c77830c554f729c72c247957cd86bdd83aa47) 本群仅限 Fork 本 Git 的用户加入,入群请提供您 Fork 的地址(不知道啥是Fork?[看这里](http://git.mydoc.io/?t=180700))
|
||||
|
||||
### **友情提示**
|
||||
从2017-07-08起已进入X3.4功能范畴,X3.3已发布Release,并不再更新。X3.4版本主旨在清除云平台相关功能,由于涉及删除文件,非正常方式的更新和升级将导致运行错误,请确保您真需要升级到此版本。升级前请严格遵循升级规范,建立文件夹 old,旧程序除了 data、config、uc_client、uc_server 目录以外的程序移动进入 old 目录中后再更新新版文件。
|
||||
从 2017-07-08 起本 Git 已进入 X3.4 功能范畴,X3.3 已发布 Release,并不再更新,如需更新补丁者可自定对照[更新历史](https://gitee.com/ComsenzDiscuz/DiscuzX/commits/master)修改。X3.4 版本主旨在清除云平台相关功能,由于涉及删除文件,非正常方式的更新和升级将导致运行错误。请确保您真需要升级到此版本,升级前请严格遵循升级规范,建立文件夹 old,旧程序除了 data、config、uc_client、uc_server 目录以外的程序移动进入 old 目录中后再更新新版文件。
|
|
@ -310,8 +310,8 @@ function checkrobot($useragent = '') {
|
|||
static $kw_browsers = array('msie', 'netscape', 'opera', 'konqueror', 'mozilla');
|
||||
|
||||
$useragent = strtolower(empty($useragent) ? $_SERVER['HTTP_USER_AGENT'] : $useragent);
|
||||
if(strpos($useragent, 'http://') === false && dstrpos($useragent, $kw_browsers)) return false;
|
||||
if(dstrpos($useragent, $kw_spiders)) return true;
|
||||
if(strpos($useragent, 'http://') === false && dstrpos($useragent, $kw_browsers)) return false;
|
||||
return false;
|
||||
}
|
||||
function checkmobile() {
|
||||
|
|
|
@ -55,6 +55,21 @@ if($_GET['view'] == true) {
|
|||
ob_start();
|
||||
include template('mobile/forum/discuz');
|
||||
} else {
|
||||
if($_G['setting']['domain']['app']['mobile']) {
|
||||
$url = 'http://'.$_G['setting']['domain']['app']['mobile'];
|
||||
$file = 'newmobiledomain.png';
|
||||
} elseif($_G['setting']['mobile']['allowmnew']) {
|
||||
$url = $_G['siteurl'].'m/';
|
||||
$file = 'newmobileurl.png';
|
||||
} else {
|
||||
$url = $_G['siteurl'];
|
||||
$file = 'newmobile.png';
|
||||
}
|
||||
$qrimg = DISCUZ_ROOT.'./data/cache/'.$file;
|
||||
if(!file_exists($qrimg)) {
|
||||
require_once DISCUZ_ROOT.'source/plugin/mobile/qrcode.class.php';
|
||||
QRcode::png($url, $qrimg, QR_ECLEVEL_Q, 4);
|
||||
}
|
||||
include template('mobile/common/preview');
|
||||
}
|
||||
function output_preview() {
|
||||
|
|
|
@ -426,25 +426,6 @@ class base_plugin_mobile_forum extends base_plugin_mobile {
|
|||
|
||||
class base_plugin_mobile_misc extends base_plugin_mobile {
|
||||
|
||||
function mobile() {
|
||||
global $_G;
|
||||
if(empty($_GET['view']) && !defined('MOBILE_API_OUTPUT')) {
|
||||
if(in_array('mobileoem', $_G['setting']['plugins']['available'])) {
|
||||
loadcache('mobileoem_data');
|
||||
}
|
||||
$_G['setting']['pluginhooks'] = array();
|
||||
$qrfile = DISCUZ_ROOT.'./data/cache/mobile_siteqrcode.png';
|
||||
if(!file_exists($qrfile) || $_G['adminid'] == 1) {
|
||||
require_once DISCUZ_ROOT.'source/plugin/mobile/qrcode.class.php';
|
||||
QRcode::png($_G['siteurl'], $qrfile);
|
||||
}
|
||||
define('MOBILE_API_OUTPUT', 1);
|
||||
$_G['disabledwidthauto'] = 1;
|
||||
define('TPL_DEFAULT', true);
|
||||
include template('mobile:mobile');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 26 KiB |
|
@ -147,7 +147,7 @@
|
|||
.plc .pi .authi li em{ float:right; font-style: normal; }
|
||||
.plc .pi .message{ font-size:15px; }
|
||||
.plc .pi .message .jammer{ font-size:10px; color:#F0F0F0; }
|
||||
.plc .pi .message img,.plc .pi .img_one img { margin:0px 4px 0px 0; max-width:100%;}
|
||||
.plc .pi .message img,.plc .pi .img_one img { margin:0px 4px 0px 0; max-width:140px; max-height:140px; }
|
||||
.plc .pi .message .quote{ padding:10px 10px 7px 11px; margin:5px 0; border:1px dashed #D7D7D7; font-size:12px; }
|
||||
.plc .pi .img_list { margin:4px auto; }
|
||||
.plc .pi .img_list li { float:left; width:83px; height:83px; margin:0 4px 4px; text-align:center;vertical-align: middle; line-height:83px; }
|
||||
|
|
|
@ -1,36 +1,19 @@
|
|||
<!--{template common/header}-->
|
||||
<div id="ct" class="wp cl ptw pbw">
|
||||
<div class="z" style="width: 370px; height: 550px; background: url({STATICURL}image/mobile/preview.png) no-repeat 0 0;">
|
||||
<iframe id="ifm0" frameborder="0" width="240" height="360" style="margin: 102px 0 0 70px;" src="misc.php?mod=mobile&view=true"></iframe>
|
||||
<table style="margin:0 auto"><tr><td>
|
||||
<div class="z" style="width: 500px; height: 650px; background: url({STATICURL}image/mobile/browser_big.jpg) no-repeat 0 0;">
|
||||
<iframe id="ifm0" frameborder="0" width="425" height="530" style="margin: 115px 0 0 23px;" src="{if $_G['setting']['mobile']['allowmnew']}m/{else}misc.php?mod=mobile&view=true{/if}"></iframe>
|
||||
</div>
|
||||
<div class="z" style="margin-top: 60px; width: 530px;">
|
||||
<div class="z" style="margin-top: 60px; width: 430px;">
|
||||
<div class="mtw bm bw0" style="background-color: #dfeaf4;">
|
||||
<div class="bm_c">
|
||||
<h1 class="xw1 xs2 mbn">{lang login_mobile}</h1>
|
||||
<p class="mbw xg2">{lang login_mobile_join}</p>
|
||||
<p class="hm mbw" style="font-size: 18px; color: #F60;">
|
||||
<!--{if $_G['setting']['domain']['app']['mobile']}-->
|
||||
http://{$_G['setting']['domain']['app']['mobile']}
|
||||
<!--{else}-->
|
||||
{$_G['siteurl']}forum.php
|
||||
<!--{/if}-->
|
||||
<img src="data/cache/$file" />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bm bw0">
|
||||
<dl class="xld bbda">
|
||||
<dt class="xs2">{lang mobile_favorite}</dt>
|
||||
<dd>{lang mobile_favorite_comment}</dd>
|
||||
</dl>
|
||||
<dl class="xld bbda">
|
||||
<dt class="xs2">{lang mobile_viewthread}</dt>
|
||||
<dd>{lang mobile_viewthread_comment}</dd>
|
||||
</dl>
|
||||
<dl class="xld">
|
||||
<dt class="xs2">{lang mobile_pm}</dt>
|
||||
<dd>{lang mobile_other_1}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div></td></tr></table>
|
||||
</div>
|
||||
<!--{template common/footer}-->
|
Loading…
Reference in New Issue