File: cardinality_error.tpl.php

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (36 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download | duplicates (3)
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
<?php
/**
 * Template which is shown when when an attribute violates a cardinality rule
 *
 * Parameters:
 * - 'target': Target URL.
 * - 'params': Parameters which should be included in the request.
 *
 * @package SimpleSAMLphp
 */


$this->data['cardinality_header'] = $this->t('{core:cardinality:cardinality_header}');
$this->data['cardinality_text'] = $this->t('{core:cardinality:cardinality_text}');
$this->data['problematic_attributes'] = $this->t('{core:cardinality:problematic_attributes}');

$this->includeAtTemplateBase('includes/header.php');
?>
<h1><?php echo $this->data['cardinality_header']; ?></h1>
<p><?php echo $this->data['cardinality_text']; ?></p>
<h3><?php echo $this->data['problematic_attributes']; ?></h3>
<dl class="cardinalityErrorAttributes">
<?php
foreach ($this->data['cardinalityErrorAttributes'] as $attr => $v) {
    echo '<dt>'.$attr.'</td><dd>';
    echo $this->t(
        '{core:cardinality:got_want}',
        ['%GOT%' => $v[0], '%WANT%' => htmlspecialchars($v[1])]
    );
    echo '</dd></tr>';
}
echo '</dl>';
if (isset($this->data['LogoutURL'])) {
    echo '<p><a href="'.htmlspecialchars($this->data['LogoutURL']).'>">'.$this->t('{status:logout}').'</a></p>';
}
$this->includeAtTemplateBase('includes/footer.php');