...
|
...
|
@@ -355,25 +355,15 @@ class AbstractAction extends Controller_Abstract |
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function setNavFooter()
|
|
|
protected function setNavFooterTab()
|
|
|
{
|
|
|
$footer = array();
|
|
|
|
|
|
// 已登录 @todo
|
|
|
$name = $this->getUname();
|
|
|
if (!empty($name)) {
|
|
|
$footer['user'] = array();
|
|
|
$footer['user']['name'] = $name; // 昵称
|
|
|
$footer['user']['url'] = ''; // 个人中心链接
|
|
|
$footer['user']['signoutUrl'] = '/passport/login/out'; // 登出链接
|
|
|
}
|
|
|
// 未登录
|
|
|
else {
|
|
|
$footer['loginUrl'] = '/signin.html'; // 登录链接
|
|
|
$footer['signupUrl'] = '/reg.html'; // 注册链接
|
|
|
}
|
|
|
|
|
|
$this->_view->assign('pageFooter', $footer);
|
|
|
$this->_view->assign('showFooterTab', array(
|
|
|
'indexUrl' => Helpers::url('/?go=1'), //首页
|
|
|
'categoryUrl' => Helpers::url('/cate'), // 分类
|
|
|
'guangUrl' => Helpers::url('', null, 'guang'), // 逛首页
|
|
|
'shoppingCartUrl' => Helpers::url('/cart/index/index'), // 购物车
|
|
|
'mineUrl' => Helpers::url('/home'), // 个人中心
|
|
|
));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|