-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
executable file
·43 lines (38 loc) · 1.46 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
<?php namespace Shohabbos\Payme;
use Backend;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails() {
return [
'name' => 'shohabbos.payme::lang.plugin.name',
'description' => 'shohabbos.payme::lang.plugin.description',
'author' => 'Shohabbos Olimjonov',
'icon' => 'oc-icon-paypal',
'homepage' => 'https://itmaker.uz',
];
}
public function registerSettings() {
return [
'transactions' => [
'label' => 'shohabbos.payme::lang.transactions.title',
'description' => 'shohabbos.payme::lang.transactions.description',
'icon' => 'icon-list-alt',
'url' => Backend::url('shohabbos/payme/transactions'),
'order' => 500,
'category' => 'shohabbos.payme::lang.plugin.name',
'permissions' => ['manage_payme_transactions'],
],
'settings' => [
'category' => 'shohabbos.payme::lang.plugin.name',
'label' => 'shohabbos.payme::lang.settings.label',
'description' => 'shohabbos.payme::lang.settings.description',
'icon' => 'icon-cog',
'class' => 'Shohabbos\Payme\Models\Settings',
'order' => 501,
'keywords' => 'payme paymets',
'permissions' => ['manage_payme_settings'],
]
];
}
}