搜索找到 9 个匹配

you6116
2018年 10月 7日 12:15
版面: 模板
主题: 自定义评论为什么判断不出comment-child?
回复总数: 0
阅读次数: 1308

自定义评论为什么判断不出comment-child?

按照官方的文档 http://docs.typecho.org/themes/custom-comments comments.php里面添加 <?php function threadedComments($comments, $options) { $commentClass = ''; if ($comments->authorId) { if ($comments->authorId == $comments->ownerId) { $commentClass .= ' comment-by-author'; //如果是文章作者的评论添加 .comment-by-author 样式 }...
you6116
2018年 10月 7日 11:27
版面: 模板
主题: Fantasy– 极简自适应主题
回复总数: 10
阅读次数: 10204

Re: Fantasy– 极简自适应主题

评论无法正常提交,不知道别人有这个问题吗
you6116
2018年 9月 11日 11:27
版面: 使用问题
主题: 形式模板哪里有说明文档?
回复总数: 0
阅读次数: 1414

形式模板哪里有说明文档?

我看到新版本的Typecho像Wordpress一样有文章形式了,
可是说明文档在2017/12/05 10:34就没有更新了……

分别对应的文件名是什么?在列表页里怎么展示不同?
可否完善下文档,小白不懂。
谢谢。
you6116
2018年 9月 10日 21:00
版面: 模板
主题: Krait Major for typecho 更新v3.0
回复总数: 18
阅读次数: 29971

Re: 新Major for typecho

请教这个评论回复中的@是如何实现的。
you6116
2017年 10月 6日 19:49
版面: 使用问题
主题: themeFields 弄的自定义字段怎么删不掉?
回复总数: 1
阅读次数: 4662

themeFields 弄的自定义字段怎么删不掉?

在function.php里写了下面这段代码,添加缩略图的。 function themeFields($layout) { $thumb = new Typecho_Widget_Helper_Form_Element_Text('thumb', NULL, NULL, _t('缩略图'), _t('在这里填入一个图片URL地址, 以在列表页显示缩略图')); $layout->addItem($thumb); } 在模板里是这样写的 判断一下是否有thumb存在,没有就不显示。 <?php if(isset($this->fields->thumb)){ echo '<div class=...
you6116
2017年 10月 6日 11:51
版面: 模板
主题: 侧边栏如何加文章缩略图?
回复总数: 3
阅读次数: 6697

Re: 侧边栏如何加文章缩略图?

<div class="widget"> <h3><?php _e('最新文章'); ?></h3> <ul> <?php $this->widget('Widget_Contents_Post_Recent')->to($index); ?> <?php while($this->next()): ?> <li><a href="<?php $index->permalink() ?>"><?php $index->title() ?></a></li> <img src="<?php Fimg_Plugin::showfimg($inde...
you6116
2017年 10月 5日 22:47
版面: 插件及扩展
主题: 又一款Typecho 文章缩略图插件ArticleImg
回复总数: 8
阅读次数: 15999

Re: 又一款Typecho 文章缩略图插件ArticleImg

数据表检测失败,插件启用失败。错误号:0

同样的问题……
you6116
2017年 10月 4日 22:23
版面: 插件及扩展
主题: typecho-Highlight.js 代码高亮插件
回复总数: 6
阅读次数: 11659

Re: typecho-Highlight.js 代码高亮插件

正想要这个!试试看!感谢楼主!