9 'htmlContentPre' =>
array(),
10 'htmlContentPost' =>
array(),
11 'htmlContentHead' =>
array(),
16 if (array_key_exists(
'jquery', $this->
data))
$jquery = $this->
data[
'jquery'];
18 if (array_key_exists(
'pageid', $this->
data)) {
20 'pre' => &$this->
data[
'htmlinject'][
'htmlContentPre'],
21 'post' => &$this->
data[
'htmlinject'][
'htmlContentPost'],
22 'head' => &$this->
data[
'htmlinject'][
'htmlContentHead'],
24 'page' => $this->
data[
'pageid']
40 header(
'X-Frame-Options: SAMEORIGIN');
42 ?><!DOCTYPE
html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
43 <
html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"en" xml:lang=
"en">
45 <meta
http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
46 <meta name=
"viewport" content=
"initial-scale=1.0" />
47 <script type=
"text/javascript" src=
"/<?php echo $this->data['baseurlpath']; ?>resources/script.js"></script>
49 if(array_key_exists(
'header', $this->
data)) {
50 echo $this->
data[
'header'];
56 <link rel=
"stylesheet" type=
"text/css" href=
"/<?php echo $this->data['baseurlpath']; ?>resources/default.css" />
57 <link rel=
"icon" type=
"image/icon" href=
"/<?php echo $this->data['baseurlpath']; ?>resources/icons/favicon.ico" />
63 if (array_key_exists(
'version',
$jquery))
68 echo(
'<script type="text/javascript" src="/' . $this->
data[
'baseurlpath'] .
'resources/jquery-1.8.js"></script>' .
"\n");
71 echo(
'<script type="text/javascript" src="/' . $this->
data[
'baseurlpath'] .
'resources/jquery-ui-1.8.js"></script>' .
"\n");
74 echo(
'<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->
data[
'baseurlpath'] .
75 'resources/uitheme1.8/jquery-ui.css" />' .
"\n");
79 if (isset($this->
data[
'clipboard.js'])) {
80 echo
'<script type="text/javascript" src="/'. $this->
data[
'baseurlpath'] .
81 'resources/clipboard.min.js"></script>'.
"\n";
84 if(!empty($this->
data[
'htmlinject'][
'htmlContentHead'])) {
85 foreach($this->
data[
'htmlinject'][
'htmlContentHead'] AS $c) {
93 if ($this->isLanguageRTL()) {
95 <link rel=
"stylesheet" type=
"text/css" href=
"/<?php echo $this->data['baseurlpath']; ?>resources/default-rtl.css" />
101 <meta name=
"robots" content=
"noindex, nofollow" />
105 if(array_key_exists(
'head', $this->
data)) {
106 echo
'<!-- head -->' . $this->
data[
'head'] .
'<!-- /head -->';
112 if(array_key_exists(
'autofocus', $this->
data)) {
113 $onLoad .=
'SimpleSAML_focus(\'' . $this->
data[
'autofocus'] .
'\');
'; 115 if (isset($this->data['onLoad
'])) { 116 $onLoad .= $this->data['onLoad
']; 120 $onLoad = ' onload=
"' . $onLoad . '"'; 123 <body<?php echo $onLoad; ?>> 128 <h1><a href="/<?php echo $this->data['baseurlpath
']; ?>"><?php 136 $includeLanguageBar = TRUE; 138 $includeLanguageBar = FALSE; 139 if (isset($this->data['hideLanguageBar
']) && $this->data['hideLanguageBar
'] === TRUE) 140 $includeLanguageBar = FALSE; 142 if ($includeLanguageBar) { 144 $languages = $this->getLanguageList(); 145 if ( count($languages) > 1 ) { 146 echo '<div
id=
"languagebar">
'; 148 'no
' => 'Bokmål
', // Norwegian Bokmål 149 'nn
' => 'Nynorsk
', // Norwegian Nynorsk 150 'se
' => 'Sámegiella
', // Northern Sami 151 'da
' => 'Dansk
', // Danish 153 'de
' => 'Deutsch
', // German 154 'sv
' => 'Svenska
', // Swedish 155 'fi
' => 'Suomeksi
', // Finnish 156 'es
' => 'Español
', // Spanish 157 'fr
' => 'Français
', // French 158 'it
' => 'Italiano
', // Italian 159 'nl
' => 'Nederlands
', // Dutch 160 'lb
' => 'Lëtzebuergesch
', // Luxembourgish 161 'cs
' => 'Čeština
', // Czech 162 'sl
' => 'Slovenščina
', // Slovensk 163 'lt
' => 'Lietuvių kalba
', // Lithuanian 164 'hr
' => 'Hrvatski
', // Croatian 165 'hu
' => 'Magyar
', // Hungarian 166 'pl
' => 'Język polski
', // Polish 167 'pt
' => 'Português
', // Portuguese 168 'pt-br
' => 'Português brasileiro
', // Portuguese 169 'ru
' => 'русский язык
', // Russian 170 'et
' => 'eesti keel
', // Estonian 171 'tr
' => 'Türkçe
', // Turkish 172 'el
' => 'ελληνικά
', // Greek 173 'ja
' => '日本語
', // Japanese 174 'zh
' => '简体中文
', // Chinese (simplified) 175 'zh-tw
' => '繁體中文
', // Chinese (traditional) 176 'ar
' => 'العربية
', // Arabic 177 'he
' => 'עִבְרִית
', // Hebrew 178 'id' => 'Bahasa Indonesia
', // Indonesian 179 'sr
' => 'Srpski
', // Serbian 180 'lv
' => 'Latviešu
', // Latvian 181 'ro
' => 'Românește
', // Romanian 182 'eu
' => 'Euskara
', // Basque 183 'af
' => 'Afrikaans
', // Afrikaans 186 $textarray = array(); 187 foreach ($languages AS $lang => $current) { 188 $lang = strtolower($lang); 190 $textarray[] = $langnames[$lang]; 192 $textarray[] = '<a href=
"' . htmlspecialchars(\SimpleSAML\Utils\HTTP::addURLParameters(\SimpleSAML\Utils\HTTP::getSelfURL(), array($this->getTranslator()->getLanguage()->getLanguageParameterName() => $lang))) . '">
' . 193 $langnames[$lang] . '</a>
'; 196 echo join(' |
', $textarray); 211 if(!empty($this->data['htmlinject
']['htmlContentPre
'])) { 212 foreach($this->data['htmlinject
']['htmlContentPre
'] AS $c) { static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static http()
Fetches the global http state from ILIAS.
Add a drawing to the header
Create styles array
The data for the language used.
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.