ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
frontpage_config.tpl.php
Go to the documentation of this file.
1 <?php
2 
3 $this->data['header'] = $this->t('{core:frontpage:page_title}');
4 $this->includeAtTemplateBase('includes/header.php');
5 
6 ?>
7 
8 
9 <!--
10 <div id="tabdiv">
11 <ul>
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>
15 </ul> -->
16 <?php
17 if ($this->data['isadmin']) {
18  echo '<p class="float-r youareadmin">' . $this->t('{core:frontpage:loggedin_as_admin}') . '</p>';
19 } else {
20  echo '<p class="float-r youareadmin"><a href="' . $this->data['loginurl'] . '">' . $this->t('{core:frontpage:login_as_admin}') . '</a></p>';
21 }
22 ?>
23 
24 
25 
26 
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'] . ')';
30  ?></code>
31 </div>
32 
33 
34 
35 <div style="clear: both" class="enablebox mini">
36  <table>
37 
38  <?php
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" />';
41  ?>
42 
43  <tr class="<?php echo $this->data['enablematrix']['saml20-idp'] ? 'enabled' : 'disabled'; ?>"><td>SAML 2.0 IdP</td>
44  <td><?php echo $this->data['enablematrix']['saml20-idp'] ? $icon_enabled : $icon_disabled; ?></td></tr>
45 
46  <tr class="<?php echo $this->data['enablematrix']['shib13-idp'] ? 'enabled' : 'disabled'; ?>"><td>Shib 1.3 IdP</td>
47  <td><?php echo $this->data['enablematrix']['shib13-idp'] ? $icon_enabled : $icon_disabled; ?></td></tr>
48 
49  </table>
50 </div>
51 
52 
53 
54 <h2><?php echo $this->t('{core:frontpage:configuration}'); ?></h2>
55 <ul>
56 <?php
57  foreach ($this->data['links_config'] AS $link) {
58  echo '<li><a href="' . htmlspecialchars($link['href']) . '">' . $this->t($link['text']) . '</a></li>';
59  }
60 ?>
61 </ul>
62 
63 
64 <?php
65  if (array_key_exists('warnings', $this->data) && is_array($this->data['warnings']) && !empty($this->data['warnings'])) {
66 
67  echo '<h2>' . $this->t('{core:frontpage:warnings}') . '</h2>';
68 
69  foreach($this->data['warnings'] AS $warning) {
70  if (is_array($warning)) {
71  echo '<div class="caution">' . $this->t($warning[0], $warning[1]) . '</div>';
72  } else {
73  echo '<div class="caution">'.$this->t($warning).'</div>';
74  }
75  }
76  }
77 ?>
78 <?php
79 if ($this->data['isadmin']) {
80 
81  echo '<h2>'. $this->t('{core:frontpage:checkphp}') . '</h2>';
82  echo '<div class="enablebox"><table>';
83 
84 
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" />';
87 
88 
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>';
92  }
93  echo('</table></div>');
94 }
95 
96 ?>
97 
98 
99 
100 
101 <?php $this->includeAtTemplateBase('includes/footer.php');
"color:#CC0000 style
Definition: example_001.php:92
$warning
Definition: X509warning.php:13
$this data['header']