代码拉取完成,页面将自动刷新
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<main>
<div class="container">
<article>
<header class="article-header">
<div class="thumb">
<div>
<h1><?php $this->title() ?></h1>
<div class="post-meta">
<div>
<a>
By <a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a>
</a> |
<a>
<time><?php $this->date('M j, Y'); ?></time> |
</a>
<a>
<?php _e('Category: '); ?><?php $this->category(','); ?>
</a>
<?php if ($this->options->WordCount): ?>
<time> | 共 <?php echo word_count($this->cid); ?> 个字符</time>
<?php endif; ?>
</div>
<div class="tags">
<?php $this->tags(', ', true); ?>
</div>
</div>
</div>
</header>
</article>
<div id="post" class="article-post">
<?php if ($this->options->fancybox): ?>
<?php
$pattern = '/\<img.*?src\=\"(.*?)\".*?alt\=\"(.*?)\".*?title\=\"(.*?)\"[^>]*>/i';
$replacement = '<a href="$1" data-fancybox="gallery" /><img src="$1" alt="$2" title="$3"></a>';
$content = preg_replace($pattern, $replacement, $this->content);
echo getContentTest($content)
?>
<?php else: ?>
<?php echo getContentTest($this->content); ?>
<?php endif; ?>
</div>
</div>
<?php if ($this->options->TheComments): ?>
<div class="container">
<?php $this->need('comments.php'); ?>
</div>
<?php else: ?>
<div class="container">
<div class="alert info">已关闭全局评论。</div>
</div>
<?php endif; ?>
<br><br>
<div class="container">
<nav class="flex container suggested">
<?php prev_post($this);?>
<?php next_post($this);?>
</nav>
</div>
<?php $this->need('footer.php'); ?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。