标签 Typecho代码 下的文章


由   YIem   撰写于    浏览:4699  评论:0
Typecho判断当前页的第几篇文章,并单独输出代码,可应用于第一篇文章底部广告<?php if ($this->sequence == 0): ?> //需要的插入 <?php endif; ?>

由   YIem   撰写于    浏览:4796  评论:0
Typecho 文章字数统计,Typecho统计字数代码在functions.php中写入代码:function art_count ($cid){ $db=Typecho_Db::get (); $rs=$db->fetchRow ($db->select ('table.contents.text')->[...]

由   YIem   撰写于    浏览:5424  评论:0
Typecho前台输出文章总数、分类总数、评论总数、页面总数的方法代码<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?> <li>文章总数:<?php $stat->publishedPostsNum() ?>篇&l[...]

Yiem
心比天高,命比纸薄。

  • 文章
    1300

  • 评论
    165

  • 分类
    16

  • 标签
    1300

  • 页面
    1

  • 浏览
    1300