2 // Note: This file is included from the library/Framework/Framework.Control.Head.php class.
4 $HeadString = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$this->Context
->GetDefinition('XMLLang').'">
7 <title>'.$this->Context
->Configuration
['APPLICATION_TITLE'].' - '.$this->Context
->PageTitle
.'</title>
8 <link rel="shortcut icon" href="'.$this->Context
->StyleUrl
.'favicon.ico" />';
10 while (list($Name, $Content) = each($this->Meta
)) {
12 <meta name="'.$Name.'" content="'.$Content.'" />';
15 if (is_array($this->StyleSheets
)) {
16 while (list($Key, $StyleSheet) = each($this->StyleSheets
)) {
18 <link rel="stylesheet" type="text/css" href="'.$StyleSheet['Sheet'].'"'.($StyleSheet['Media'] == ''?
'':' media="'.$StyleSheet['Media'].'"').' />';
21 if (is_array($this->Scripts
)) {
22 $ScriptCount = count($this->Scripts
);
24 for ($i = 0; $i < $ScriptCount; $i++
) {
26 <script type="text/javascript" src="'.$this->Scripts
[$i].'"></script>';
30 if (is_array($this->Strings
)) {
31 $StringCount = count($this->Strings
);
33 for ($i = 0; $i < $StringCount; $i++
) {
34 $HeadString .= $this->Strings
[$i];
38 if ($this->BodyId
!= "") $BodyId = ' id="'.$this->BodyId
.'"';
39 echo $HeadString . '</head>
40 <body'.$BodyId.' '.$this->Context
->BodyAttributes
.'>
41 <div id="SiteContainer">';