Completed
Push — master ( 0f6984...10ccd9 )
by Andrii
12:35
created

SidebarMenu::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 37

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 37
rs 9.328
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace advancedhosters\hipanel\menus;
4
5
use hiqdev\yii2\menus\Menu;
6
use Yii;
7
8
class SidebarMenu extends Menu
9
{
10
    public function items()
11
    {
12
        $isVisible = true;
13
14
        return [
15
            'cloud_servers' => [
16
                'label' => Yii::t('hipanel', 'Cloud Servers'),
17
                'url' => 'https://websa.advancedhosting.com/servers',
18
                'icon' => 'fa-cloud',
19
                'visible' => $isVisible,
20
            ],
21
            'cloud_storage' => [
22
                'label' => Yii::t('hipanel', 'Cloud Storage'),
23
                'url' => 'https://websa.advancedhosting.com/bucketList',
24
                'icon' => 'fa-cloud-upload',
25
                'visible' => $isVisible,
26
            ],
27
            'video_cdn' => [
28
                'label' => Yii::t('hipanel', 'Video CDN'),
29
                'url' => 'https://vcp.advancedhosting.com/dashboard',
30
                'icon' => 'fa-video-camera',
31
                'visible' => $isVisible,
32
            ],
33
            'anycast_cdn' => [
34
                'label' => Yii::t('hipanel', 'Anycast CDN'),
35
                'url' => 'https://websa.advancedhosting.com/cdn',
36
                'icon' => 'fa-globe',
37
                'visible' => $isVisible,
38
            ],
39
            'anycast_dns' => [
40
                'label' => Yii::t('hipanel', 'Anycast DNS'),
41
                'url' => 'https://websa.advancedhosting.com/anycastns',
42
                'icon' => 'fa-globe',
43
                'visible' => $isVisible,
44
            ],
45
        ];
46
    }
47
}
48