增加显示页面加载时间的开关

This commit is contained in:
浪子
2024-06-13 17:51:54 +08:00
parent a88130d5c5
commit 8543bc6fe1
2 changed files with 12 additions and 5 deletions
+8 -5
View File
@@ -4,13 +4,16 @@
<div class=site--footer__sns>
<?php $this->need('sns.php'); ?>
</div>
<?php if($this->options->sitemapurl): ?>
<?php //sitemap填入
if($this->options->sitemapurl): ?>
<a href="<?php $this->options->sitemapurl() ?>" target="_blank">💗</a>
<?php endif; ?>
<a href="https://www.typecho.org">Typecho驱动</a>
<a href="https://www.imsun.org">&nbsp;Made with Sun</a>
&nbsp;页面加载耗时
<?php echo timer_stop();?>
<a href="https://www.typecho.org" target="_blank">Typecho驱动</a>
<a href="https://www.imsun.org" target="_blank">&nbsp;Made with Sun</a>
<?php //添加加载时间控制
if ($this->options->showtime): ?>
&nbsp;页面加载耗时<?php echo timer_stop();?>
<?php endif; ?>
<div class="copyright">
<a href="<?php $this->options->siteUrl(); ?>">
<?php $this->options->title(); ?>