|
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
|
|
|
$targetBlank = [ |
|
14
|
|
|
'target' => '_blank', |
|
15
|
|
|
'rel' => 'noopener noreferrer', |
|
16
|
|
|
]; |
|
17
|
|
|
|
|
18
|
|
|
return [ |
|
19
|
|
|
'cloud_servers' => [ |
|
20
|
|
|
'label' => Yii::t('hipanel', 'Cloud Servers'), |
|
21
|
|
|
'url' => 'https://websa.advancedhosting.com/servers', |
|
22
|
|
|
'icon' => 'fa-cloud', |
|
23
|
|
|
'visible' => $isVisible, |
|
24
|
|
|
'linkOptions' => $targetBlank, |
|
25
|
|
|
], |
|
26
|
|
|
'cloud_storage' => [ |
|
27
|
|
|
'label' => Yii::t('hipanel', 'Cloud Storage'), |
|
28
|
|
|
'url' => 'https://websa.advancedhosting.com/bucketList', |
|
29
|
|
|
'icon' => 'fa-cloud-upload', |
|
30
|
|
|
'visible' => $isVisible, |
|
31
|
|
|
'linkOptions' => $targetBlank, |
|
32
|
|
|
], |
|
33
|
|
|
'video_cdn' => [ |
|
34
|
|
|
'label' => Yii::t('hipanel', 'Video CDN'), |
|
35
|
|
|
'url' => 'https://vcp.advancedhosting.com/dashboard', |
|
36
|
|
|
'icon' => 'fa-video-camera', |
|
37
|
|
|
'visible' => $isVisible, |
|
38
|
|
|
'linkOptions' => $targetBlank, |
|
39
|
|
|
], |
|
40
|
|
|
'anycast_cdn' => [ |
|
41
|
|
|
'label' => Yii::t('hipanel', 'Anycast CDN'), |
|
42
|
|
|
'url' => 'https://websa.advancedhosting.com/cdn', |
|
43
|
|
|
'icon' => 'fa-globe', |
|
44
|
|
|
'visible' => $isVisible, |
|
45
|
|
|
'linkOptions' => $targetBlank, |
|
46
|
|
|
], |
|
47
|
|
|
'anycast_dns' => [ |
|
48
|
|
|
'label' => Yii::t('hipanel', 'Anycast DNS'), |
|
49
|
|
|
'url' => 'https://websa.advancedhosting.com/anycastns', |
|
50
|
|
|
'icon' => 'fa-globe', |
|
51
|
|
|
'visible' => $isVisible, |
|
52
|
|
|
'linkOptions' => $targetBlank, |
|
53
|
|
|
], |
|
54
|
|
|
]; |
|
55
|
|
|
} |
|
56
|
|
|
} |
|
57
|
|
|
|