summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
author阔落 <45323514+BigCoke233@users.noreply.github.com>2019-04-13 14:41:13 +0800
committerGitHub <noreply@github.com>2019-04-13 14:41:13 +0800
commitc9f053022c7ff4627a4e861801850ff40bf20e1b (patch)
tree8443f42efa62faeeb090fea4c8e7644ac4d9db3d /post
parent1503bbe86bdcb559f41b674cc16c950aa2acb8b5 (diff)
Add files via upload
Diffstat (limited to 'post')
-rw-r--r--post/post-content.php4
-rw-r--r--post/post-item.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/post/post-content.php b/post/post-content.php
index 56d160d..068f6a1 100644
--- a/post/post-content.php
+++ b/post/post-content.php
@@ -4,8 +4,8 @@
$content = preg_replace('/<a(.*?)>/s','<a ${1} data-pjax>',$content);
$content = preg_replace('/<table(.*?)>/s','<table class="table table-striped table-hover table-bordered">',$content);
$content = preg_replace('/<pre><code>/s','<pre><code class="language-html">',$content);
- $content = preg_replace('/<img(.*?)src="(.*?)"(.*?)alt="(.*?)"(.*?)>/s','<a data-fancybox="gallery" href="${2}" class="gallery-link"><img${1}src="${2}"${3}></a><span class="post-img-alt">${4}</span>',$content);
-
+ $content = preg_replace('/<img(.*?)src="(.*?)"(.*?)alt="(.*?)"(.*?)>/s','<center><a data-fancybox="gallery" href="${2}" class="gallery-link"><img${1}src="${2}"${3}></a><span class="post-img-alt">${4}</span></center>',$content);
+
//短代码(无参数)
$reg = '/\[scode\](.*?)\[\/scode\]/s';
$rp = '<div class="tip">${1}</div>';
diff --git a/post/post-item.php b/post/post-item.php
index fe81b5d..e7307a7 100644
--- a/post/post-item.php
+++ b/post/post-item.php
@@ -15,7 +15,7 @@
<h4 class="saying-title"><a href="<?php $this->permalink() ?>" data-pjax><?php $this->title(); ?></a></h4>
<div class="saying-info"><?php $this->date('F j, Y'); ?></div>
- <a href="<?php $this->permalink() ?>" class="read-more pull-right btn btn-default" data-pjax>前往吐槽</a>
+ <a href="<?php $this->permalink() ?>" style="margin-top:-40px;" class="read-more pull-right mdui-btn mdui-ripple" data-pjax>前往吐槽</a>
</div>
</div>
</div>