-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontroller.php
36 lines (26 loc) · 872 Bytes
/
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
<?php defined('C5_EXECUTE') or die(_("Access Denied."));
/**
* Displays the title of an ancestor by a specified offset and optional page type.
* @package Section Title
* @author Stephen Rushing
* @category Packages
* @copyright Copyright (c) 2011 Stephen Rushing. (http://www.esiteful.com)
*/
class SectionTitlePackage extends Package {
protected $pkgHandle = 'section_title';
protected $appVersionRequired = '5.4.0';
protected $pkgVersion = '1.0';
public function getPackageDescription() {
return t("Displays the title of an ancestor by a specified offset and optional page type.");
}
public function getPackageName() {
return t("Section Title");
}
public function install() {
$pkg = parent::install();
BlockType::installBlockTypeFromPackage('section_title', $pkg);
}
public function upgrade(){
parent::upgrade();
}
}