Skip to content

Commit

Permalink
+ Plugin, * Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 15, 2015
1 parent 852b297 commit 37b3e0d
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 36 deletions.
36 changes: 0 additions & 36 deletions Menu.php

This file was deleted.

25 changes: 25 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* @link http://hiqdev.com/hipanel-module-server
* @license http://hiqdev.com/hipanel-module-server/license
* @copyright Copyright (c) 2015 HiQDev
*/

namespace hipanel\modules\server;

class Plugin extends \hiqdev\pluginmanager\Plugin
{
protected $_items = [
'menus' => [
[
'class' => 'hipanel\modules\server\SidebarMenu',
],
],
'modules' => [
'server' => [
'class' => 'hipanel\modules\server\Module',
],
],
];

}
35 changes: 35 additions & 0 deletions SidebarMenu.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* @link http://hiqdev.com/hipanel-module-server
* @license http://hiqdev.com/hipanel-module-server/license
* @copyright Copyright (c) 2015 HiQDev
*/

namespace hipanel\modules\server;

class SidebarMenu extends \hipanel\base\Menu implements \yii\base\BootstrapInterface
{

protected $_addTo = 'sidebar';

protected $_where = [
'after' => ['domains', 'tickets', 'finance', 'clients', 'dashboard'],
'before' => ['hosting'],
];

protected $_items = [
'servers' => [
'label' => 'Servers',
'url' => ['/server/server/index'],
'icon' => 'fa-server',
'items' => [
'servers' => [
'label' => 'Servers',
'url' => ['/server/server/index'],
'icon' => 'fa-server',
],
],
],
];

}

0 comments on commit 37b3e0d

Please sign in to comment.