Templates Code
首页摘要自动截取样式
带图片输出 <?php if(preg_match('/<!--more-->/',$this->content)||mb_str
在文章中插入广告
其实就是判断查找文章的第一个p,然后,插入代码,放到functions里使用即可。 function themeInit($archive) {
文章字数统计
在functions.php中写入代码: function art_count ($cid){ $db=Typecho_Db::get (); $rs=