$this->is('index') //首页
$this->is('archive') //归档
$this->is('category') //分类栏目
$this->is('tag') //标签
$this->is('date') //日期归档页
$this->is('single') //内容页
$this->is('post') //内容页
$this->is('page') //独立页面
$this->is('attachment') //附件
$this->is('category','cat_sl...
栏目网站代码下共有文章 33 篇。
Typecho 分页和上下篇函数调用

分页
<?php $this->pageLink('下一页','next'); ?>
<?php $this->pageLink('上一页'); ?>
<?php $this->pageNav('上一页', '下一页', '5', '……'); ?>
<?php $this->pageNav('Newer', 'Older', 1, '...', array('wrapTag' => 'nav', 'wrapClass' => 'page-nav', 'itemTag' => '', 'prevClass...
PHP 过滤所有中英文标点

/** 过滤中英文标点符号 */
function filter_punctuation($text){
$text=urlencode($text);
$text=preg_replace("/(%E3%80%82|%EF%BC%9F|%EF%BC%81|%EF%BC%8C|%E3%80%81|%EF%BC%9B|%EF%BC%9A|%E2%80%9C|%E2%80%9D|%E2%80%98|%E2%80%99|%EF%BC%88|%EF%BC%89|%E3%80%8A|%E3%80%8B|%E3%80%88|%E3%80%89|%E3%80%90|%E3%80%91|...
最新评论