update to 2.2
This commit is contained in:
@@ -34,11 +34,7 @@
|
||||
<?php if ($this->fields->AKAROMarticleimg != null): ?>
|
||||
background-image: url('<?php $this->fields->AKAROMarticleimg(); ?>');
|
||||
<?php else: ?>
|
||||
<?php
|
||||
// 固定一个随机数作为归档页面的图片
|
||||
$randomNum = 1 + (abs(crc32('archivesbox')) % 12);
|
||||
?>
|
||||
background-image: url('<?php $this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp"); ?>');
|
||||
background-image: url('<?php $randomNum = mt_rand(1, 12);$this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp"); ?>');
|
||||
<?php endif; ?>
|
||||
|
||||
">
|
||||
@@ -68,10 +64,11 @@
|
||||
$output .= '<h1>'. $year .' 年</h1>';
|
||||
}
|
||||
if (!empty($archives->title)) {
|
||||
$output .= '<p><span class="mdui-typo-caption-opacity">'.date('m月d日', $archives->created).' </span><a href="'.$archives->permalink .'"> <b>'. $archives->title .'</b></a></p>';
|
||||
$output .= '<p><span class="mdui-typo-caption-opacity">'.date('n月d日',$archives->created).' </span><a href="'.$archives->permalink .'"> <b>'. $archives->title .'</b></a></p>';
|
||||
}
|
||||
endwhile;
|
||||
echo '<h3>当前共有 '.$count.' 篇文章</h3><br><hr>';
|
||||
$WordCount = getTotalWordCount();
|
||||
echo '<h3>'.$WordCount.' 个字符环绕在 '.$count.' 篇文章周围</h3><br><hr>';
|
||||
echo $output;
|
||||
?>
|
||||
<br>
|
||||
|
Reference in New Issue
Block a user