소스 검색

tag页面正文输出支持画廊

pull/14/head
Zisbusy 3 년 전
committed by GitHub
부모
커밋
7195f91e94
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +6
    -2
      Akina/tags.php

+ 6
- 2
Akina/tags.php 파일 보기

@ -38,8 +38,12 @@
<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);
?>
<!--标签云输出-->
<?php $this->widget('Widget_Metas_Tag_Cloud', 'sort=mid&ignoreZeroCount=1&desc=0&limit=0')->to($tags); ?>
<?php if($tags->have()): ?>

불러오는 중...
취소
저장