瀏覽代碼

page页面支持画廊

pull/14/head
Zisbusy 3 年之前
committed by GitHub
父節點
當前提交
8701b20631
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      Akina/page.php

+ 5
- 1
Akina/page.php 查看文件

@ -38,7 +38,11 @@
<h1 class="entry-title"><?php $this->title() ?></h1>
</header>
<div class="entry-content">
<?php $this->content(); ?>
<?php
$pattern = '/\<img.*?src\=\"(.*?)\"[^>]*>/i';
$replacement = '<a href="$1" alt="'.$this->title.'" title="点击放大图片"><img class="aligncenter" src="$1" title="'.$this->title.'"></a>';
echo preg_replace($pattern, $replacement, $this->content);
?>
</div>
</article>
</main>

Loading…
取消
儲存