Viewing file: Footer.php (2.7 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class clsFooter { //Footer class @1-D2159D74
//Variables @1-5DD9E934
var $ComponentType = "IncludablePage";
var $Connections = array();
var $FileName = "";
var $Redirect = "";
var $Tpl = "";
var $TemplateFileName = "";
var $BlockToParse = "";
var $ComponentName = "";
// Events;
var $CCSEvents = "";
var $CCSEventResult = "";
var $RelativePath;
var $Visible;
var $Parent;
//End Variables
//Class_Initialize Event @1-24C28DFC
function clsFooter($RelativePath, $ComponentName, & $Parent)
{
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = $ComponentName;
$this->RelativePath = $RelativePath;
$this->Visible = true;
$this->Parent = & $Parent;
$this->FileName = "Footer.php";
$this->Redirect = "";
$this->TemplateFileName = "Footer.html";
$this->BlockToParse = "main";
$this->TemplateEncoding = "CP1252";
}
//End Class_Initialize Event
//Class_Terminate Event @1-32FD4740
function Class_Terminate()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUnload", $this);
}
//End Class_Terminate Event
//BindEvents Method @1-0DAD0D56
function BindEvents()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInitialize", $this);
}
//End BindEvents Method
//Operations Method @1-7E2A14CF
function Operations()
{
global $Redirect;
if(!$this->Visible)
return "";
}
//End Operations Method
//Initialize Method @1-73B23980
function Initialize()
{
global $FileName;
global $CCSLocales;
if(!$this->Visible)
return "";
$this->BindEvents();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnInitializeView", $this);
}
//End Initialize Method
//Show Method @1-A8AD3C7F
function Show()
{
global $Tpl;
global $CCSLocales;
$block_path = $Tpl->block_path;
$Tpl->LoadTemplate("/" . $this->TemplateFileName, $this->ComponentName, $this->TemplateEncoding, "remove");
$Tpl->block_path = $Tpl->block_path . "/" . $this->ComponentName;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
if(!$this->Visible) {
$Tpl->block_path = $block_path;
$Tpl->SetVar($this->ComponentName, "");
return "";
}
$Tpl->Parse();
$Tpl->block_path = $block_path;
$Tpl->SetVar($this->ComponentName, $Tpl->GetVar($this->ComponentName));
}
//End Show Method
} //End Footer Class @1-FCB6E20C
?>
|