Fixed minor things and added missing file
[vanilla-miry.git] / themes / head.php
blob62a863f7ccaabfe938464baabc298f98e4188c20
1 <?php
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').'">
6 <head>
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)) {
11 $HeadString .= '
12 <meta name="'.$Name.'" content="'.$Content.'" />';
15 if (is_array($this->StyleSheets)) {
16 while (list($Key, $StyleSheet) = each($this->StyleSheets)) {
17 $HeadString .= '
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);
23 $i = 0;
24 for ($i = 0; $i < $ScriptCount; $i++) {
25 $HeadString .= '
26 <script type="text/javascript" src="'.$this->Scripts[$i].'"></script>';
30 if (is_array($this->Strings)) {
31 $StringCount = count($this->Strings);
32 $i = 0;
33 for ($i = 0; $i < $StringCount; $i++) {
34 $HeadString .= $this->Strings[$i];
37 $BodyId = "";
38 if ($this->BodyId != "") $BodyId = ' id="'.$this->BodyId.'"';
39 echo $HeadString . '</head>
40 <body'.$BodyId.' '.$this->Context->BodyAttributes.'>
41 <div id="SiteContainer">';