phpcms模板中修改栏目跟内容页的当前位置position样式的方法

phpcms模板中修改栏目跟内容页的当前位置position样式的方法
1.找到include\global.func.php文件
2.再找到函数里面:
function catpos($catid, $urlrule = '')
{
 global $CATEGORY;
 if(!isset($CATEGORY[$catid])) return '';
 $pos = '';
 $arrparentid = array_filter(explode(',', $CATEGORY[$catid]

['arrparentid'].','.$catid));
 foreach($arrparentid as $catid)
 {
  if($urlrule) eval("\$url = \"$urlrule\";");
  else $url = $CATEGORY[$catid]['url'];
  $pos .= '-'.$CATEGORY[$catid]

['catname'].'';
 }
 return $pos;
}
变相修改$pos .= '-'.$CATEGORY[$catid]

['catname'].'';这一句的样式即可!
如果要去掉链接
          修改为:$pos .= $catname;即可。

以上是适用phpcms2008网站模板的修改方法!


原文地址:http://www.mianfeimoban.com/phpcms_jc/4499.html 欢迎转载!


你可能感兴趣的:(phpcms模板中修改栏目跟内容页的当前位置position样式的方法)