网站site map 只显示一级目录和二级目录

路径\includes\classes\site_map.php

 

       if (isset($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) {
         $result .= $this->buildBranch($category_id, $level+1, $category_link . '_');
       }
换成

 

    if($level<1){
       if (isset($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) {
         $result .= $this->buildBranch($category_id, $level+1, $category_link . '_');
       }
       }
 

posted on 2012-11-24 10:20  haven24  阅读(323)  评论(0编辑  收藏  举报

导航