难以置信,但我还是自己找到了解决办法。。
也许是u给了我灵感-thanx:)
我决定向bcn\\u display()传递一个参数,以防我不想在跟踪中获得“home”链接。默认情况下,该参数设置为true
当我不想显示“主页”链接时)发送true
现在,我在这些函数中添加了参数声明,并添加了一些代码
//in file breadcrumb_navxt_class.php
function do_home($displayhome=true)
{...
if(($this->opt[\'home_display\'])&&($displayhome))
...}
function fill($displayhome=false)
{...
if(!is_front_page())
{
$this->do_home($displayhome);
}
...}
function display($displayhome=true,$return = false, $linked = true, $reverse = false)
{...}
//in file breadcrumb_navxt_admin.php
function display($displayhome=true,$return = false, $linked = true, $reverse = false)
{
//Grab the current settings from the DB
$this->breadcrumb_trail->opt = $this->get_option(\'bcn_options\');
//Generate the breadcrumb trail
$this->breadcrumb_trail->fill($displayhome);
return $this->breadcrumb_trail->display($displayhome,$return, $linked, $reverse);
}
function bcn_display($displayhome=true,$return = false, $linked = true, $reverse = false) {
global $bcn_admin;
return $bcn_admin->display($displayhome,$return, $linked, $reverse);
}