1 Star 7 Fork 2

Übermorgen/Typecho Millennium Style主题

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
post.php 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
Übermorgen 提交于 2022-11-10 22:51 . 去类
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="col-mb-12 col-8" id="main" role="main">
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<h1 class="post-title" itemprop="name headline">
<a itemprop="url"
href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
</h1>
<ul class="post-meta">
<li itemprop="author" itemscope itemtype="http://schema.org/Person">
<a itemprop="name" href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a>
&nbsp;发布于&nbsp;<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time>
</li>
<li><?php _e('最后更新: '); ?>
<time itemprop="datePublished"><?php echo date('Y-m-d',$this->modified); ?></time>
</li>
<li><?php _e('另请参阅: '); ?><?php $this->category(','); ?>,<?php $this->tags(', ', true, ''); ?></li>
<?php if ($GLOBALS['TPV_AKT']): ?>
<li><?php $this->viewsNum();?> 次阅读</li>
<?php endif ?>
</ul>
<div class="post-content" itemprop="articleBody">
<?php $diff= round((time()- $this->modified) / 3600 / 24); if($diff>=100): ?>
<div class="out-of-date"><i class="fas fa-exclamation-circle otd-icon"></i><span class="otd-font">&nbsp;本文最后一次在 <?php echo date('Y 年 m 月d 日',$this->modified); ?>更新,部分内容可能已经过时!</span></div>
<?php endif; ?>
<?php echo parseEmote($this->content); ?>
</div>
</article>
<?php $this->need('comments.php'); ?>
<ul class="post-near">
<li>上一篇: <?php $this->thePrev('%s', '没有了'); ?></li>
<li>下一篇: <?php $this->theNext('%s', '没有了'); ?></li>
</ul>
</div><!-- end #main-->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/stsiao/millennium-style.git
git@gitee.com:stsiao/millennium-style.git
stsiao
millennium-style
Typecho Millennium Style主题
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891