Fix words counter
This commit is contained in:
parent
1ae6e4be03
commit
ac0f8dacef
|
@ -12,7 +12,7 @@ $this->need('header.php');
|
|||
<article>
|
||||
<h1 class="font-weight-bold post-title">文章归档</h1>
|
||||
<p class="meta">
|
||||
共有 <?php Typecho_Widget::widget('Widget_Stat')->to($stat);?><?php $stat->publishedPostsNum() ?> 篇文章,<?php $this->allOfCharacters();?> 文字
|
||||
共有 <?php Typecho_Widget::widget('Widget_Stat')->to($stat);?><?php $stat->publishedPostsNum() ?> 篇文章,<?php echo allOfCharacters();?> 文字
|
||||
</p>
|
||||
<?php
|
||||
$this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<a href="<?php $this->options->siteUrl();?>sitemap.xml">Sitemap</a> |
|
||||
<a href="<?php $this->options->siteUrl();?>links">Links</a>
|
||||
</p>
|
||||
<p>© <?php echo date('Y');?> <?php $this->options->title(); ?> ♥ <?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?><?php $stat->publishedPostsNum() ?> Posts <?php $this->allOfCharacters();?> Words crafted</p>
|
||||
<p>© <?php echo date('Y');?> <?php $this->options->title(); ?> ♥ <?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?><?php $stat->publishedPostsNum() ?> Posts <?php allOfCharacters();?> Words crafted</p>
|
||||
<p>Powered by <a href="https://www.typecho.org">Typecho</a> | Theme <a href="https://skywt.cn/sky-theme">Sky</a> by <a href="https://skywt.cn/">SkyWT</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -52,7 +52,7 @@ function allOfCharacters() {
|
|||
$unit = 'K';
|
||||
}
|
||||
|
||||
$out = sprintf('%.2lf %s',$chars, $unit);
|
||||
$out = sprintf('%.2lf%s',$chars, $unit);
|
||||
|
||||
echo $out;
|
||||
}
|
Loading…
Reference in New Issue