空笺未寄 v1.0 — 基于 DeepSeek UI 的 WordPress 主题

页面:首页、笺文、微言、拾影、文章详情、作者页
功能:三种展示方式、tucao 自定义类型、评论、分页、灯箱
CSS:DeepSeek 原 CSS + 系统字体 + 头像本地化
安装:激活主题后自动创建页面和导航,刷新固定链接即可
This commit is contained in:
2026-05-03 20:35:41 +08:00
commit 85ce278768
15 changed files with 1142 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
<?php
/**
* 空笺未寄 — Comments Template
* 保留 WP 原生评论区,适配主题样式
*/
if (post_password_required()) return;
?>
<div id="comments" class="comments-section">
<?php if (have_comments()) : ?>
<h3 class="comments-title">
<?php
$comment_count = get_comments_number();
if ($comment_count === 1) {
echo '一条留言';
} else {
echo $comment_count . ' 条留言';
}
?>
</h3>
<ol class="comment-list">
<?php
wp_list_comments(array(
'style' => 'ol',
'avatar_size' => 32,
'short_ping' => true,
));
?>
</ol>
<?php the_comments_navigation(); ?>
<?php endif; ?>
<?php if (!comments_open() && get_comments_number()) : ?>
<p class="no-comments">评论已关闭。</p>
<?php endif; ?>
<?php
comment_form(array(
'title_reply' => '笺下留言',
'title_reply_before' => '<h3 class="comment-reply-title">',
'title_reply_after' => '</h3>',
'comment_notes_before' => '',
'comment_field' => '<textarea id="comment" name="comment" rows="4" placeholder="写点什么..." required></textarea>',
'submit_button' => '<button type="submit" class="submit">落笔留痕</button>',
'submit_field' => '<div class="form-submit">%1$s %2$s</div>',
'label_submit' => '落笔留痕',
));
?>
</div>