<?php $page_class = 'page-article-detail'; include dirname(__DIR__) . '/_header.php'; ?>
<section class="banner-simple"><div class="container"><h1><?php echo htmlspecialchars(tplv($tplCurrent, 'title', '文章详情')); ?></h1></div></section>
<section class="section-block"><div class="container split-layout"><div class="prose-block"><?php echo tplv($tplCurrent, 'content'); ?></div><aside class="meta-card"><h3>文章信息</h3><p>栏目：<?php echo htmlspecialchars(tplv($tplCurrent, 'channel_name')); ?></p><p>发布时间：<?php echo tpl_format_time(tplv($tplCurrent, 'create_time')); ?></p><p>浏览：<?php echo intval(tplv($tplCurrent, 'click')); ?></p></aside></div></section>
<?php if (!empty($tplList)) { ?><section class="section-block muted-block"><div class="container"><div class="section-head"><span>Related</span><h2>相关文章</h2></div><div class="card-grid cols-3"><?php foreach ($tplList as $row) { $desc = tplv($row, 'summary'); if ($desc === '') $desc = tplv($row, 'content'); ?><article class="show-card"><div class="show-body"><h3><a href="<?php echo tpl_url('article', $row); ?>"><?php echo htmlspecialchars(tplv($row, 'title')); ?></a></h3><p><?php echo htmlspecialchars(tpl_excerpt($desc, 72)); ?></p></div></article><?php } ?></div></div></section><?php } ?>
<?php include dirname(__DIR__) . '/_footer.php'; ?>
