模块SEO优化中{分类名称}分隔符去掉及只调用下级分类方法
if($catid) { if($CAT['parentid']) { $seo_catname = ''; $tmp = strip_tags(cat_pos($CAT, 'DESTOON')); $tmp = explode('DESTOON', $tmp); $tmp = array_reverse($tmp); /* foreach($tmp as $k=>$v) { $seo_catname .= $v.$seo_delimiter; }*/ $seo_catname .= $tmp[0]; } else { //$seo_catname = $CAT['catname'].$seo_delimiter; $seo_catname = $CAT['catname']; } $seo_cattitle = $CAT['seo_title'] ? $CAT['seo_title'].$seo_delimiter : $seo_catname; $seo_catkeywords = $CAT['seo_keywords'] ? $CAT['seo_keywords'] : ''; $seo_catdescription = $CAT['seo_description'] ? $CAT['seo_description'] : ''; }
上面文件在seo.inc.php中,原文链接:http://blog.csdn.net/sunbingzibo/article/details/38386689