Typecho 评论者 链接在新窗口打开
Typecho 1.2 版本这个博客程序自带的评论系统,用户留下的URL默认是“当前窗口打开”。默认是直接在内页打开 一点不方便 我们 设置 在新窗口打开,方法如下。
找到 - var/Widget/Base/Comments.php 大概270行
如图;
替换为:
if ($this->url && $autoLink) {
echo '<a href="' . $this->url . '"'
. ($noFollow ? ' rel="external nofollow"' : null) . ' target="_blank">' . $this->author . '</a>';
} else {
echo $this->author;