Merge pull request !98 from 西风/master

This commit is contained in:
西风 2017-07-17 21:51:47 +08:00 committed by Discuz!
commit bfeedb8211
2 changed files with 1 additions and 5 deletions

View File

@ -247,10 +247,6 @@ function discuzcode($message, $smileyoff = false, $bbcodeoff = false, $htmlon =
if($parsetype != 1 && strpos($msglower, '[swf]') !== FALSE) {
$message = preg_replace_callback("/\[swf\]\s*([^\[\<\r\n]+?)\s*\[\/swf\]/is", 'discuzcode_callback_bbcodeurl_1', $message);
}
if(defined('IN_MOBILE') && !defined('TPL_DEFAULT') && !defined('IN_MOBILE_API')) {
$allowimgcode = false;
}
$attrsrc = !IS_ROBOT && $lazyload ? 'file' : 'src';
if(strpos($msglower, '[/img]') !== FALSE) {
$message = preg_replace_callback("/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/is", create_function('$matches', 'return '.intval($allowimgcode).' ? parseimg(0, 0, $matches[1], '.intval($lazyload).', '.intval($pid).', \'onmouseover="img_onmouseoverfunc(this)" \'.('.intval($lazyload).' ? \'lazyloadthumb="1"\' : \'onload="thumbImg(this)"\')) : ('.intval($allowbbcode).' ? (!defined(\'IN_MOBILE\') ? bbcodeurl($matches[1], \'<a href="{url}" target="_blank">{url}</a>\') : bbcodeurl($matches[1], \'\')) : bbcodeurl($matches[1], \'{url}\'));'), $message);

View File

@ -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:140px; max-height:140px; }
.plc .pi .message img,.plc .pi .img_one img { margin:0px 4px 0px 0; max-width:100%;}
.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; }