...
|
...
|
@@ -382,23 +382,27 @@ class AbstractAction extends Controller_Abstract |
|
|
$header['navHome'] = $homeUrl . '?go=1&t=' . time();
|
|
|
}
|
|
|
|
|
|
// 根据COOKIE记录的频道进行导航定位
|
|
|
$channel = Helpers::getChannelByCookie();
|
|
|
switch ($channel) {
|
|
|
default:
|
|
|
case 1:
|
|
|
$header['boys'] = true;
|
|
|
break;
|
|
|
case 2:
|
|
|
$header['girls'] = true;
|
|
|
break;
|
|
|
case 3:
|
|
|
$header['kids'] = true;
|
|
|
break;
|
|
|
case 4:
|
|
|
$header['lifeStyle'] = true;
|
|
|
break;
|
|
|
}
|
|
|
$controller = $this->getRequest()->getControllerName();
|
|
|
if ($controller !== 'Home') {
|
|
|
// 根据COOKIE记录的频道进行导航定位
|
|
|
$channel = Helpers::getChannelByCookie();
|
|
|
switch ($channel) {
|
|
|
default:
|
|
|
case 1:
|
|
|
$header['boys'] = true;
|
|
|
break;
|
|
|
case 2:
|
|
|
$header['girls'] = true;
|
|
|
break;
|
|
|
case 3:
|
|
|
$header['kids'] = true;
|
|
|
break;
|
|
|
case 4:
|
|
|
$header['lifeStyle'] = true;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$this->_view->assign('pageHeader', $header);
|
|
|
}
|
|
|
/**
|
...
|
...
|
|