...
|
...
|
@@ -32,17 +32,16 @@ class HelperSearch |
|
|
{
|
|
|
$options = self::$options;
|
|
|
$channel = HomeModel::getSwitchChannel();
|
|
|
$uri = '/'.$channel;
|
|
|
|
|
|
$channelName = '/'.$channel;
|
|
|
if (isset($options['brandName']) && !empty($options['brandName'])) {
|
|
|
$brandNav = $options['brandNameEn'] . $options['brandNameCn'];
|
|
|
$brandNav = $options['brandNameEn'] . ' ' . $options['brandNameCn'];
|
|
|
self::$listNav = array(
|
|
|
array(
|
|
|
'href' => Helpers::url($uri),
|
|
|
'name' => strtoupper($channel).'首页'
|
|
|
'href' => Helpers::url($channelName),
|
|
|
'name' => strtoupper($channel) . '首页'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'href' => Helpers::url('/brands/brands'),
|
|
|
'name' => '品牌一览'
|
|
|
),
|
|
|
array(
|
...
|
...
|
@@ -52,13 +51,16 @@ class HelperSearch |
|
|
);
|
|
|
}else{
|
|
|
self::$listNav[0] = array(
|
|
|
'href' => Helpers::url($uri),
|
|
|
'href' => Helpers::url($channelName),
|
|
|
'name' => strtoupper($channel).'首页'
|
|
|
);
|
|
|
self::$listNav[1] = array(
|
|
|
if ($options['action'] == 'new') {
|
|
|
self::$listNav[1] = array(
|
|
|
'href' => '',
|
|
|
'name' => $options['action'] == 'new' ? '新品到着' : '列表'
|
|
|
);
|
|
|
'name' => '新品到着'
|
|
|
);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
/**
|
...
|
...
|
@@ -1076,7 +1078,6 @@ class HelperSearch |
|
|
public static function current()
|
|
|
{
|
|
|
$url = explode('?', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
|
|
self::$listNav[0]['href'] = $url[0];
|
|
|
return $url[0];
|
|
|
}
|
|
|
/**
|
...
|
...
|
|