diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-11 12:11:04 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-11 12:11:04 +0800 |
| commit | 5331ab525ff834b860778abfdc8a69cdc5ed783a (patch) | |
| tree | c473944051cba410ae301c72b41d0bd7a8b7df34 /index.php | |
| parent | a46bff318c2278eab5e616c49163bb0335b4099b (diff) | |
:pizza: Add: 允许使用 TimThumb 剪裁文章缩略图 #51
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -22,17 +22,7 @@ $this->need('includes/header.php'); <div class="col-md-6 post-banner-box"> <a href="<?php $this->permalink(); ?>" class="post-link"> <div class="post-banner"> - <img src="/usr/themes/Miracles/images/loading/<?php echo $this->options->loading_image ?>.gif" data-gisrc="<?php - if($this->fields->banner && $this->fields->banner=!''): - echo $this->fields->banner(); - else: - if($this->options->randomBanner==''){ - echo Utils::indexTheme('images/postbg/'); srand(mb_strlen($this->title));echo rand(1,15).'.jpg'; - } - else{ - $banner_url = explode(',',$this->options->randomBanner); - echo $banner_url[mt_rand(0,count($banner_url)-1)];} - endif; ?>"> + <img src="<?php Utils::indexTheme('images/loading/'.$this->options->loading_image.'.gif') ?>" data-gisrc="<?php Utils::postBanner($this); ?>"> </div> </a> </div> |
