很多网站最经典的是什么,比如网易,他们经典的是评论,评论中最经典的呢,那就是盖楼,typecho的评论没楼层怎么办?
各位小伙伴们莫急,看,他来了,他来了……
Joe主题在 /usr/themes/Joe/public/comment.php

1630724655020.jpg

增加以下代码

<span style="margin-left:5px;color:#617d0e;font-size:12px">
                        <?php if($comments->levels == 0): ?>
                        <?php if($comments->sequence == 1): ?>沙发
                        <?php elseif($comments->sequence == 2): ?>板凳
                        <?php elseif($comments->sequence == 3): ?>地毯
                        <?php else: ?>
                        第<?php  $comments->sequence(); ?>楼<?php endif; ?>
                        <?php endif; ?>
                        </span>
...

1630724655020.jpg

最后修改:2021 年 09 月 13 日
如果觉得我的文章对你有用,请随意赞赏