summaryrefslogtreecommitdiffstats
path: root/libs/Contents.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-07-24 20:10:46 +0800
committerGitHub <noreply@github.com>2019-07-24 20:10:46 +0800
commit38353f67af44f1a2c0b29d9ff43f0c2a42958833 (patch)
treed8a04142dc9505140d4dedef9096c2f762a32a7e /libs/Contents.php
parent8df9340aeb541787ed0448090be8bccb374acbc6 (diff)
修复文字卡片标题部分字母下半部分显示不完整、内置两只可调戏的猫咪
Diffstat (limited to 'libs/Contents.php')
-rw-r--r--libs/Contents.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/Contents.php b/libs/Contents.php
index a868c2d..d08629f 100644
--- a/libs/Contents.php
+++ b/libs/Contents.php
@@ -20,7 +20,7 @@ class Contents
//FancyBox
$text = preg_replace('/<img(.*?)src="(.*?)"(.*?)alt="(.*?)"(.*?)>/s','<center><a data-fancybox="gallery" href="${2}" class="gallery-link"><img${1}src="${2}"${3}></a></center>',$text);
//LazyLoad
- $text = preg_replace('/<img (.*?)src(.*?)(\/)?>/','<img $1src="/usr/themes/Miracles/images/loading.gif"'.$style.' data-original$2 />',$text);
+ $text = preg_replace('/<img (.*?)src(.*?)(\/)?>/','<img $1src="/usr/themes/Miracles/images/loading.gif" data-original$2 />',$text);
//气泡
$text = preg_replace('/\[bubble\](.*?)\[\/bubble\]/s','<div class="bubble post-bubble"><div class="saying-content"><p>${1}</p></div></div>',$text);
@@ -29,7 +29,7 @@ class Contents
$text = preg_replace('/\[tip\](.*?)\[\/tip\]/s','<div class="tip"><div class="container-fluid"><div class="row"><div class="col-1 tip-icon"><i class="iconfont icon-info"></i></div><div class="col-11 tip-content">${1}</div></div></div></div>',$text);
//Tip
$text = preg_replace('/\[tip type="(.*?)"\](.*?)\[\/tip\]/s','<div class="tip ${1}"><div class="container-fluid"><div class="row"><div class="col-1 tip-icon"><i class="iconfont icon-info"></i></div><div class="col-11 tip-content">${2}</div></div></div></div>',$text);
-
+
//解析友链盒子
$reg = '/\[links\](.*?)\[\/links\]/s';
$rp = '<div class="links-box container-fluid"><div class="row">${1}</div></div>';