forked from ethercreative/colormixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColorMixerPlugin.php
More file actions
56 lines (45 loc) · 976 Bytes
/
ColorMixerPlugin.php
File metadata and controls
56 lines (45 loc) · 976 Bytes
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
<?php
namespace Craft;
class ColorMixerPlugin extends BasePlugin {
public function getName()
{
return Craft::t('Color Mixer');
}
public function getVersion()
{
return '1.1.1';
}
public function getSchemaVersion()
{
return '0.0.1';
}
public function getDeveloper()
{
return 'Ether Creative';
}
public function getDeveloperUrl()
{
return 'http://ethercreative.co.uk';
}
public function getDocumentationUrl()
{
return 'https://github.com/ethercreative/ColorMixer/blob/master/readme.md';
}
public function getDescription()
{
return 'A set of Twig filters for modifying hex colors';
}
public function hasCpSection()
{
return false;
}
public function addTwigExtension()
{
Craft::import('plugins.colormixer.twigextensions.ColorMixerTwigExtension');
return new ColorMixerTwigExtension();
}
public function getReleaseFeedUrl()
{
return 'https://raw.githubusercontent.com/ethercreative/ColorMixer/master/releases.json';
}
}