3 $this->
data[
'header'] = $this->t(
'{core:frontpage:page_title}');
4 $this->includeAtTemplateBase(
'includes/header.php');
12 <li><a href=
"#welcome"><?php echo $this->t(
'{core:frontpage:welcome}'); ?></a></li>
13 <li><a href=
"#configuration"><?php echo $this->t(
'{core:frontpage:configuration}'); ?></a></li>
14 <li><a href=
"#metadata"><?php echo $this->t(
'{core:frontpage:metadata}'); ?></a></li>
17 if ($this->
data[
'isadmin']) {
18 echo
'<p class="float-r youareadmin">' . $this->t(
'{core:frontpage:loggedin_as_admin}') .
'</p>';
20 echo
'<p class="float-r youareadmin"><a href="' . $this->
data[
'loginurl'] .
'">' . $this->t(
'{core:frontpage:login_as_admin}') .
'</a></p>';
27 <div
style=
"margin-top: 1em;">
28 <code style=
"background: white; background: #f5f5f5; border: 1px dotted #bbb; padding: 1em; color: #555" ><?php
29 echo $this->
data[
'directory'] .
' (' . $this->
data[
'version'] .
')';
35 <div style=
"clear: both" class=
"enablebox mini">
39 $icon_enabled =
'<img src="/' . $this->
data[
'baseurlpath'] .
'resources/icons/silk/accept.png" alt="enabled" />';
40 $icon_disabled =
'<img src="/' . $this->
data[
'baseurlpath'] .
'resources/icons/silk/delete.png" alt="disabled" />';
43 <tr
class=
"<?php echo $this->data['enablematrix']['saml20-idp'] ? 'enabled' : 'disabled'; ?>"><td>SAML 2.0 IdP</td>
46 <tr
class=
"<?php echo $this->data['enablematrix']['shib13-idp'] ? 'enabled' : 'disabled'; ?>"><td>Shib 1.3 IdP</td>
54 <h2><?php echo $this->t(
'{core:frontpage:configuration}'); ?></h2>
57 foreach ($this->
data[
'links_config'] AS $link) {
58 echo
'<li><a href="' . htmlspecialchars($link[
'href']) .
'">' . $this->t($link[
'text']) .
'</a></li>';
65 if (array_key_exists(
'warnings', $this->
data) && is_array($this->
data[
'warnings']) && !empty($this->
data[
'warnings'])) {
67 echo
'<h2>' . $this->t(
'{core:frontpage:warnings}') .
'</h2>';
70 if (is_array($warning)) {
71 echo
'<div class="caution">' . $this->t($warning[0], $warning[1]) .
'</div>';
73 echo
'<div class="caution">'.$this->t($warning).
'</div>';
79 if ($this->
data[
'isadmin']) {
81 echo
'<h2>'. $this->t(
'{core:frontpage:checkphp}') .
'</h2>';
82 echo
'<div class="enablebox"><table>';
85 $icon_enabled =
'<img src="/' . $this->
data[
'baseurlpath'] .
'resources/icons/silk/accept.png" alt="enabled" />';
86 $icon_disabled =
'<img src="/' . $this->
data[
'baseurlpath'] .
'resources/icons/silk/delete.png" alt="disabled" />';
89 foreach ($this->
data[
'funcmatrix'] AS $func) {
90 echo
'<tr class="' . ($func[
'enabled'] ?
'enabled' :
'disabled') .
'"><td>' . ($func[
'enabled'] ?
$icon_enabled :
$icon_disabled) .
'</td>';
91 echo
'<td>' . $this->t($this->
data[
'requiredmap'][$func[
'required']]) .
'</td><td>' . $func[
'descr'] .
'</td></tr>';
93 echo(
'</table></div>');
101 <?php $this->includeAtTemplateBase(
'includes/footer.php');