select()->where('table.contents.type = ?', 'page') ->where('table.contents.status = ?', 'publish') ->where('table.contents.created < ?', $this->options->gmtTime) ->order('table.contents.order', Typecho_Db::SORT_ASC); //去掉自定义首页 $frontPage = explode(':', $this->options->frontPage); if (2 == count($frontPage) && 'page' == $frontPage[0]) { $select->where('table.contents.cid <> ?', $frontPage[1]); } $this->db->fetchAll($select, array($this, 'push')); } }