-
Notifications
You must be signed in to change notification settings - Fork 2
/
Header.php
88 lines (75 loc) · 2.15 KB
/
Header.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
class clsHeader { //Header class @1-CC982CB1
//Variables @1-E1CF4CAE
var $FileName = "";
var $Redirect = "";
var $Tpl = "";
var $TemplateFileName = "";
var $BlockToParse = "";
var $ComponentName = "";
// Events;
var $CCSEvents = "";
var $CCSEventResult = "";
var $TemplatePath;
var $Enabled;
//End Variables
//Class_Initialize Event @1-3D392A66
function clsHeader()
{
$this->Enabled = true;
if($this->Enabled)
{
$this->FileName = "Header.php";
$this->Redirect = "";
$this->TemplateFileName = "templates/Header.html";
$this->BlockToParse = "main";
}
}
//End Class_Initialize Event
//Class_Terminate Event @1-A3749DF6
function Class_Terminate()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUnload");
}
//End Class_Terminate Event
//BindEvents Method @1-FD8CABE2
function BindEvents()
{
$this->CCSEvents["BeforeShow"] = "Header_BeforeShow";
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInitialize");
}
//End BindEvents Method
//Operations Method @1-F24547FA
function Operations()
{
global $Redirect;
if(!$this->Enabled)
return "";
}
//End Operations Method
//Initialize Method @1-61B81EE0
function Initialize()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnInitializeView");
if(!$this->Enabled)
return "";
}
//End Initialize Method
//Show Method @1-6C47DCA9
function Show($Name)
{
global $Tpl;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
if(!$this->Enabled)
return "";
include './Lang/lang_class.php';
$Tpl->LoadTemplate($this->TemplatePath . $this->TemplateFileName, $Name);
$Tpl->Parse($Name, false);
$Tpl->SetVar($Name, $Tpl->GetVar($Name));
}
//End Show Method
} //End Header Class @1-FCB6E20C
//Include Event File @1-6D4F2746
include("./Header_events.php");
//End Include Event File
?>