-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPlugin.php
50 lines (46 loc) · 1.42 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
<?php namespace Alxy\Facebook;
use System\Classes\PluginBase;
/**
* Facebook Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Facebook',
'description' => 'Add buttons to your website to help your visitors share content and connect on Facebook.',
'author' => 'Alexander Guth',
'icon' => 'icon-facebook',
'homepage' => 'https://github.com/alxy/oc-facebook-plugin'
];
}
public function registerComponents()
{
return [
'Alxy\Facebook\Components\Like' => 'like',
'Alxy\Facebook\Components\Share' => 'share',
'Alxy\Facebook\Components\Send' => 'send',
'Alxy\Facebook\Components\Follow' => 'follow',
'Alxy\Facebook\Components\Comments' => 'comments'
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'Facebook',
'description' => 'Manage Facebook settings.',
'category' => 'Social Media',
'icon' => 'icon-facebook',
'class' => 'Alxy\Facebook\Models\Settings',
'order' => 100
]
];
}
}