-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
52 lines (46 loc) · 1.73 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
<?php namespace Inerba\Colors;
use Backend;
use System\Classes\PluginBase;
use Inerba\Colors\Classes\ColorBase;
/**
* Colors Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Colors',
'description' => 'No description provided yet...',
'author' => 'Inerba',
'icon' => 'icon-leaf'
];
}
public function registerMarkupTags()
{
return [
'functions' => [
'color_lighten' => [ColorBase::class, 'lighten'],
'color_darken' => [ColorBase::class, 'darken'],
'color_isLight' => [ColorBase::class, 'isLight'],
'color_isDark' => [ColorBase::class, 'isDark'],
'color_complementary' => [ColorBase::class, 'complementary'],
'color_greyscale' => [ColorBase::class, 'greyscale'],
'color_desaturate' => [ColorBase::class, 'desaturate'],
'color_mix' => [ColorBase::class, 'mix'],
'color_random' => [ColorBase::class, 'random'],
'color_gradient' => [ColorBase::class, 'gradient'],
'color_extract' => [ColorBase::class, 'extract'],
'color_imgLight' => [ColorBase::class, 'imgLight'],
'color_imageInfo' => [ColorBase::class, 'imageInfo'],
'color_rgbToHex' => [ColorBase::class, 'rgbToHex'],
'color_hexToRgb' => [ColorBase::class, 'hexToRgb'],
]
];
}
}