Przeglądaj źródła

优化文章中图片上下间距

pull/14/head
Zisbusy 3 lat temu
committed by GitHub
rodzic
commit
7236c5b849
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      Akina/post.php

+ 1
- 1
Akina/post.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz