File: cardinality_error.tpl.php

package info (click to toggle)
simplesamlphp 1.16.3-1%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 21,036 kB
  • sloc: php: 73,175; ansic: 875; sh: 83; perl: 82; xml: 52; makefile: 46
file content (37 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download
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
<?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) { ?>
        <dt><?php echo $attr ?></td>
        <dd><?php echo $this->t('{core:cardinality:got_want}', array('%GOT%' => $v[0], '%WANT%' => htmlspecialchars($v[1]))) ?></dd>
    </tr>
<?php } ?>
</dl>
<?php
if (isset($this->data['LogoutURL'])) {
?>
<p><a href="<?php echo htmlspecialchars($this->data['LogoutURL']); ?>"><?php echo $this->t('{status:logout}'); ?></a></p>
<?php
}
?>
<?php
$this->includeAtTemplateBase('includes/footer.php');