友好时间显示
This commit is contained in:
浪子
2025-06-04 10:33:16 +08:00
parent 1f535bb9d6
commit 6b8f758dcf
6 changed files with 40 additions and 18 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<img src="<?php $this->options->logoUrl() ?>" class="avatar" width="48" height="48" />
<a datetime='<?php $this->date('Y-m-d'); ?>' class="humane--time" href="<?php $this->permalink() ?>"
itemprop="datePublished">
<?php $this->date('Y-m-d'); ?>
<?php $options = Helper::options();if ($options->friendlyTime == '1') {echo time_ago($this->created);} else {$this->date('Y-m-d H:i'); }?>
</a>
</header>
<div class="description" itemprop="about">