fixed header
This commit is contained in:
parent
8f5dc98f7e
commit
231988fdd7
|
|
@ -42,11 +42,11 @@ class Header extends Component
|
|||
private function prepareMenus()
|
||||
{
|
||||
$menus = [
|
||||
['name' => trans('admin/header.home'), 'route' => 'home.index'],
|
||||
['name' => trans('admin/header.order'), 'route' => 'orders.index'],
|
||||
['name' => trans('admin/header.product'), 'route' => 'products.index'],
|
||||
['name' => trans('admin/header.customer'), 'route' => 'customers.index'],
|
||||
['name' => trans('admin/header.setting'), 'route' => 'settings.index'],
|
||||
['name' => trans('admin/common.home'), 'route' => 'home.index'],
|
||||
['name' => trans('admin/common.order'), 'route' => 'orders.index'],
|
||||
['name' => trans('admin/common.product'), 'route' => 'products.index'],
|
||||
['name' => trans('admin/common.customer'), 'route' => 'customers.index'],
|
||||
['name' => trans('admin/common.setting'), 'route' => 'settings.index'],
|
||||
];
|
||||
return hook_filter('admin.header_menus', $menus);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* header.php
|
||||
* common.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
|
|
@ -10,5 +10,11 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'edit' => 'Edit',
|
||||
'edit' => '编辑',
|
||||
|
||||
'home' => 'Home',
|
||||
'order' => 'Orders',
|
||||
'product' => 'Products',
|
||||
'customer' => 'Customers',
|
||||
'setting' => 'Settings',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* header.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-08-02 19:03:19
|
||||
* @modified 2022-08-02 19:03:19
|
||||
*/
|
||||
|
||||
return [
|
||||
'home' => 'Home',
|
||||
'order' => 'Orders',
|
||||
'product' => 'Products',
|
||||
'customer' => 'Customers',
|
||||
'setting' => 'Settings',
|
||||
];
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* header.php
|
||||
* common.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
|
|
@ -11,4 +11,10 @@
|
|||
|
||||
return [
|
||||
'edit' => '编辑',
|
||||
|
||||
'home' => '管理首页',
|
||||
'order' => '订单管理',
|
||||
'product' => '商品管理',
|
||||
'customer' => '会员管理',
|
||||
'setting' => '系统设置',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* header.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-08-02 19:03:19
|
||||
* @modified 2022-08-02 19:03:19
|
||||
*/
|
||||
|
||||
return [
|
||||
'home' => '管理首页',
|
||||
'order' => '订单管理',
|
||||
'product' => '商品管理',
|
||||
'customer' => '会员管理',
|
||||
'setting' => '系统设置',
|
||||
];
|
||||
Loading…
Reference in New Issue