-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.php
More file actions
43 lines (35 loc) · 943 Bytes
/
Copy pathcontroller.php
File metadata and controls
43 lines (35 loc) · 943 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
<?php
namespace Concrete\Package\Htmx;
defined('C5_EXECUTE') or die('Access Denied.');
use Concrete\Core\Package\Package;
use Concrete\Core\Asset\AssetList;
use Concrete\Core\Asset\Asset;
class Controller extends Package
{
protected $pkgHandle = 'htmx';
protected $appVersionRequired = '8.0.0';
protected $pkgVersion = '2.0.8';
protected $pkgAutoloaderRegistries = [
'src' => '\HTMx',
];
public function getPackageDescription()
{
return t('Adds a HTMx support classes.');
}
public function getPackageName()
{
return t('HTMx');
}
public function on_start()
{
$al = AssetList::getInstance();
$al->register(
'javascript', 'htmx', 'assets/js/htmx.min.js', [
'version' => '2.0.8',
'position' => Asset::ASSET_POSITION_FOOTER,
'minify' => false,
'combine' => false
], $this
);
}
}