summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-07-21 16:46:28 +0800
committerGitHub <noreply@github.com>2019-07-21 16:46:28 +0800
commit26f85a80bfa60e213b9c2bc8ed0d5e9d41acf690 (patch)
treecab46a1c8905aff6de9c8629a8df30f2e29eafe3 /index.php
parentfeb147a61a907727f5d56c3018ea9d8c6e325f3c (diff)
后台样式、支持主题备份、支持 CDN 加速静态资源、个性化设置
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index e803258..c12e43f 100644
--- a/index.php
+++ b/index.php
@@ -5,7 +5,7 @@
*
* @package Miracles
* @author Eltrac
- * @version 1.0
+ * @version 1.1.2
* @link https://guhub.cn
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
@@ -23,7 +23,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.gif" data-original="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo rand(1,rand(1,rand(1,10))); ?>.jpg<?php endif; ?>">
+ <img src="/usr/themes/Miracles/images/loading.gif" data-original="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo mt_rand(1,20); ?>.jpg<?php endif; ?>">
</div>
</a>
</div>
@@ -48,7 +48,7 @@ $this->need('includes/header.php');
<div class="post-item small-screen">
<div class="post-banner-box-ss">
<div class="post-banner-ss">
- <img src="/usr/themes/Miracles/images/loading.gif" data-original="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo rand(1,rand(1,rand(1,10))); ?>.jpg<?php endif; ?>">
+ <img src="/usr/themes/Miracles/images/loading.gif" data-original="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo mt_rand(1,20); ?>.jpg<?php endif; ?>">
</div>
</div>
<div class="post-item-content-ss">