Skip to content

Commit

Permalink
moved old panel link to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Dec 23, 2016
1 parent f18a9f0 commit 9051d42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/config/hisite.php
Expand Up @@ -28,10 +28,11 @@
],
'container' => [
'definitions' => [
hipanel\modules\client\menus\ClientDetailMenu::class => [
\hiqdev\thememanager\menus\AbstractSidebarMenu::class => [
'add' => [
'old-panel' => [
'menu' => ahnames\hipanel\menus\OldPanelMenu::class,
'menu' => \ahnames\hipanel\menus\OldPanelMenu::class,
'where' => 'last',
],
],
],
Expand Down
6 changes: 5 additions & 1 deletion src/menus/OldPanelMenu.php
Expand Up @@ -9,10 +9,14 @@ class OldPanelMenu extends \hiqdev\yii2\menus\Menu
public function items()
{
return [
'additional' => [
'label' => '<br/>',
'encode' => false,
],
[
'label' => Yii::t('ahnames:hipanel', 'Return to old panel'),
'icon' => 'fa-sign-out fa-fw fa-flip-horizontal',
'url' => 'https://dev.ahnames.com/disable_hipanel?NOCACHE=1',
'url' => 'https://dev.ahnames.com/panel/disable_hipanel',
],
];
}
Expand Down

0 comments on commit 9051d42

Please sign in to comment.