-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontroller.php
More file actions
executable file
·43 lines (33 loc) · 1.02 KB
/
controller.php
File metadata and controls
executable file
·43 lines (33 loc) · 1.02 KB
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\FoundationSites;
use BlockType;
use Package;
use PageTheme;
class Controller extends Package
{
protected $pkgHandle = 'foundation_sites';
protected $appVersionRequired = '5.7.0.0';
protected $pkgVersion = '0.2';
public function getPackageName() {
return t("Foundation for Sites");
}
public function getPackageDescription() {
return t("Foundation for Sites");
}
public function install() {
$pkg = parent::install();
$this->installThemes($pkg);
$this->installBlocks($pkg);
}
private function installThemes($pkg) {
PageTheme::add('foundation_sites', $pkg);
}
private function installBlocks($pkg) {
if (!BlockType::getByHandle('v_card')) {
BlockType::installBlockTypeFromPackage('v_card', $pkg);
}
// if (!BlockType::getByHandle('clearing_lightbox')) {
// BlockType::installBlockTypeFromPackage('clearing_lightbox', $pkg);
// }
}
}