/
PluginBeautypo.class.php
49 lines (45 loc) · 1.01 KB
/
PluginBeautypo.class.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
<?php
/********************************************
* Author: Vladimir Linkevich
* e-mail: Vladimir.Linkevich@gmail.com
* since 2011-02-25
********************************************/
if(!class_exists('Plugin')) {
die('Hacking attemp!');
}
/**
*
*/
class PluginBeautypo extends Plugin {
protected $aInherits=array(
'module'=>array('ModuleText'),
);
/**
* @return bool
*/
public function Activate() {
return true;
}
/**
* @return bool
*/
public function Init() {
if(Config::Get('plugin.beautypo.enable_formatter')){
Config::Set('head.rules.beautypo', array(
'path' => '___path.root.web___/',
'js' => array(
'include' => array(
Plugin::GetTemplateWebPath(__CLASS__) . 'js/markitup-settings.js?'
)
)
));
}
return true;
}
/**
* @return bool
*/
public function Deactivate() {
return true;
}
}