您的位置:首页 > 其它

模块SEO优化中{分类名称}分隔符去掉及只调用下级分类方法

2014-08-05 15:58 246 查看
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中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: