Typecho 评论 @ 父级用户名
这鸟毛东西不知道怎么加到评论内容 <p> 里面最前面,只能将就用了。 functions.php 里加 function at_parent_comment($coid){ $db = Typecho_Db::...
那些因为折腾所留下的痕迹
这鸟毛东西不知道怎么加到评论内容 <p> 里面最前面,只能将就用了。 functions.php 里加 function at_parent_comment($coid){ $db = Typecho_Db::...
于主题模板文件夹中的 header.php 文件 <?php $this->header(); ?> 设置以下参数 keywords:关键词 description:描述、摘要 rss1:feed rss1.0 r...
$this->widget('Widget_Metas_Category_List')->to($categories); while($categories->next()): if($this->c...
Typecho 默认标签输出: $this->tags(', ', true, 'none'); 以下代码放入 funcitons.php 文件中。 function oxcat_tags($obj) { if (cou...
设置 Typecho 标签页模板,并按标签所属文章数量从多到少排列输出。 <?php $this->widget('Widget_Metas_Tag_Cloud', 'sort=count&ignoreZeroC...
functions.php 文件添加 function themeInit($comment){ $comment = spam_protection_pre($comment, $post, $result); } func...
functions.php 文件添加 设置敏感词过滤后台选项和过滤敏感词函数 function themeConfig($form) { $SensitiveWords = new Typecho_Widget_Helper_...
网站根目录下的 config.inc.php 文件,加入: define('__TYPECHO_GRAVATAR_PREFIX__', 'https://cravatar.cn/avatar/'); //更换头像源
$this->is('index') //首页 $this->is('archive') //归档 $this->is('category') //分类栏目 $this->is('tag') //标签 ...
分页 <?php $this->pageLink('下一页','next'); ?> <?php $this->pageLink('上一页'); ?> <?php $this->page...