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

来源:互联网 发布:用c 编程九九乘法表 编辑:程序博客网 时间:2024/05/22 14:20

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 .= '-<a href="'.$url.'">'.$CATEGORY[$catid]

['catname'].'</a>';
 }
 return $pos;
}
变相修改$pos .= '-<a href="'.$url.'">'.$CATEGORY[$catid]

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

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


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