forked from opencongress/opencongress
-
Notifications
You must be signed in to change notification settings - Fork 1
/
head.php
executable file
·41 lines (37 loc) · 1.64 KB
/
head.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
<?php
// Note: This file is included from the library/Framework/Framework.Control.Head.php class.
$HeadString = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$this->Context->GetDefinition('XMLLang').'">
<head>
<title>'.$this->Context->Configuration['APPLICATION_TITLE'].' - '.$this->Context->PageTitle.'</title>
<link rel="shortcut icon" href="'.$this->Context->StyleUrl.'favicon.ico" />';
while (list($Name, $Content) = each($this->Meta)) {
$HeadString .= '
<meta name="'.$Name.'" content="'.$Content.'" />';
}
if (is_array($this->StyleSheets)) {
while (list($Key, $StyleSheet) = each($this->StyleSheets)) {
$HeadString .= '
<link rel="stylesheet" type="text/css" href="'.$StyleSheet['Sheet'].'"'.($StyleSheet['Media'] == ''?'':' media="'.$StyleSheet['Media'].'"').' />';
}
}
if (is_array($this->Scripts)) {
$ScriptCount = count($this->Scripts);
$i = 0;
for ($i = 0; $i < $ScriptCount; $i++) {
$HeadString .= '
<script type="text/javascript" src="'.$this->Scripts[$i].'"></script>';
}
}
if (is_array($this->Strings)) {
$StringCount = count($this->Strings);
$i = 0;
for ($i = 0; $i < $StringCount; $i++) {
$HeadString .= $this->Strings[$i];
}
}
$BodyId = "";
if ($this->BodyId != "") $BodyId = ' id="'.$this->BodyId.'"';
echo $HeadString . '</head>
<body'.$BodyId.' '.$this->Context->BodyAttributes.'>';
?>