-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
77 lines (70 loc) · 2.34 KB
/
Plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php namespace Bubblecore\Podcast;
use System\Classes\PluginBase;
use \Backend;
/**
* Podcast Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Podcast',
'description' => 'Create and publish a podcast using the October CMS platform.',
'author' => 'Bubblecore',
'homepage' => 'http://bubblecore.net',
'icon' => 'icon-play-circle'
];
}
public function registerComponents() {
return [
'Bubblecore\Podcast\Components\Podcast' => 'podcast',
'Bubblecore\Podcast\Components\PodcastList' => 'podcastList',
'Bubblecore\Podcast\Components\PodcastEpisode' => 'podcastEpisode',
'Bubblecore\Podcast\Components\Servlet' => 'servlet'
];
}
public function registerNavigation() {
return [
'podcast' => [
'label' => 'Podcasts',
'url' => Backend::url('bubblecore/podcast/channels'),
'icon' => 'icon-play-circle',
'permissions' => ['bubblecore.podcast.*'],
'order' => 500,
'sideMenu' => [
'channels' => [
'label' => 'Channels',
'icon' => 'icon-copy',
'url' => Backend::url('bubblecore/podcast/channels'),
'permissions' => ['bubblecore.podcast.access_channels'],
],
'episodes' => [
'label' => 'Episodes',
'icon' => 'icon-envelope-o',
'url' => Backend::url('bubblecore/podcast/episodes'),
'permissions' => ['bubblecore.podcast.access_episodes'],
],
]
]
];
}
public function registerSettings() {
return [
'settings' => [
'label' => 'Podcast Settings',
'description' => 'Manage podcast based settings.',
'category' => 'Misc',
'icon' => 'icon-play-circle',
'class' => 'Bubblecore\Podcast\Models\Settings',
'order' => 500,
'keywords' => 'security podcast'
]
];
}
}