单独输出tag链接地址 可以单独输出tag地址,需要修改funcations.php文件function tags($widget, $split = ',', $default = NULL) { if ($w ...
判断当前分类并自定义内容 <?php if($this->category == "help"): ?> //当前分类为help缩略图,则输出内容。 <?php endif; ?> 可应用于自定义分类,或者, ...
判断是否为首页并自定义输出内容 判断是否为首页,输出相关内容:<?php if($this->is('index')): ?> //首页输出内容 <?php else: ?> //不是首页输出内容 <?php endif; ?& ...
相关统计代码 前台输出相关统计:<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?> <p><?php _e('不烦恼的博客自 <stron ...