Ver código fonte

调整文章图片间距

pull/12/head
Zisbusy 4 anos atrás
committed by GitHub
pai
commit
d6e4a04a3c
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      Akina/post.php

+ 1
- 1
Akina/post.php Ver arquivo

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

Carregando…
Cancelar
Salvar