-
Notifications
You must be signed in to change notification settings - Fork 1
/
controller.php
executable file
·60 lines (46 loc) · 1.16 KB
/
controller.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
53
54
55
56
57
58
59
60
<?php
namespace Concrete\Package\Tmblocks;
use Package;
use BlockType;
use SinglePage;
use PageTheme;
use BlockTypeSet;
use CollectionAttributeKey;
use Concrete\Core\Attribute\Type as AttributeType;
use Config;
use Core;
use AssetList;
defined('C5_EXECUTE') or die(_("Access Denied."));
class Controller extends Package
{
protected $pkgHandle = 'tmblocks';
protected $appVersionRequired = '5.7.5';
protected $pkgVersion = '0.9.11';
public function getPackageDescription()
{
return t("Package containing TRIGONmedia blocks.");
}
public function getPackageName()
{
return t("TRIGONmedia Blocks");
}
public function install()
{
$pkg = parent::install();
}
public function on_start()
{
$al = AssetList::getInstance();
$al->register('javascript', 'repeatable', "../../".$this->getRelativePath().'/js/backend/repeatable.js');
$al->register('css', 'repeatable', "../../".$this->getRelativePath().'/css/backend/repeatable.css');
$al->registerGroup('tm/repeatable', array(
array('javascript', 'repeatable'),
array('css', 'repeatable'),
));
}
public function upgrade()
{
parent::upgrade();
}
}
?>