3 if (!array_key_exists(
'header', $this->
data)) {
4 $this->
data[
'header'] =
'selectidp';
6 $this->
data[
'header'] = $this->t($this->
data[
'header']);
7 $this->
data[
'autofocus'] =
'preferredidp';
8 $this->includeAtTemplateBase(
'includes/header.php');
9 foreach ($this->
data[
'idplist'] as $idpentry) {
10 if (isset($idpentry[
'name'])) {
11 $this->getTranslator()->includeInlineTranslation(
'idpname_'.$idpentry[
'entityid'], $idpentry[
'name']);
12 } elseif (isset($idpentry[
'OrganizationDisplayName'])) {
13 $this->getTranslator()->includeInlineTranslation(
14 'idpname_'.$idpentry[
'entityid'],
15 $idpentry[
'OrganizationDisplayName']
18 if (isset($idpentry[
'description'])) {
19 $this->getTranslator()->includeInlineTranslation(
'idpdesc_'.$idpentry[
'entityid'], $idpentry[
'description']);
24 <form method=
"get" action=
"<?php echo $this->data['urlpattern']; ?>">
25 <
input type=
"hidden" name=
"entityID" value=
"<?php echo htmlspecialchars($this->data['entityID']); ?>"/>
26 <
input type=
"hidden" name=
"return" value=
"<?php echo htmlspecialchars($this->data['return']); ?>"/>
27 <
input type=
"hidden" name=
"returnIDParam" 28 value=
"<?php echo htmlspecialchars($this->data['returnIDParam']); ?>"/>
30 echo $this->t(
'selectidp_full');
31 if ($this->data[
'rememberenabled']) {
32 echo '<br /><input type="checkbox" name="remember" value="1" title="'.$this->t(
'remember').
'" />'.
37 if (!empty($this->data[
'preferredidp']) &&
38 array_key_exists($this->data[
'preferredidp'], $this->data[
'idplist'])
40 $idpentry = $this->data[
'idplist'][$this->data[
'preferredidp']];
41 echo '<div class="preferredidp">';
42 echo ' <img src="/'.$this->data[
'baseurlpath'].
43 'resources/icons/experience/gtk-about.64x64.png" class="float-r" alt="'.
44 $this->t(
'icon_prefered_idp').
'" />';
46 if (array_key_exists(
'icon', $idpentry) && $idpentry[
'icon'] !== null) {
48 echo '<img class="float-l" style="margin: 1em; padding: 3px; border: 1px solid #999" src="'.
49 htmlspecialchars($iconUrl).
'" />';
51 echo "\n".
' <h3 style="margin-top: 8px">'.
52 htmlspecialchars($this->t(
'idpname_'.$idpentry[
'entityid'])).
'</h3>';
54 if (!empty($idpentry[
'description'])) {
55 echo ' <p>'.htmlspecialchars($this->t(
'idpdesc_'.$idpentry[
'entityid'])).
'<br />';
57 echo(
'<button id="preferredidp" type="submit" class="btn" name="idp_'.
58 htmlspecialchars($idpentry[
'entityid']).
'">'.
59 $this->t(
'select').
'</button></p>');
63 foreach ($this->data[
'idplist'] as $idpentry) {
64 if ($idpentry[
'entityid'] != $this->data[
'preferredidp']) {
65 if (array_key_exists(
'icon', $idpentry) && $idpentry[
'icon'] !== null) {
67 echo '<img class="float-l" style="clear: both; margin: 1em; padding: 3px; border: 1px solid #999"'.
68 ' src="'.htmlspecialchars($iconUrl).
'" />';
70 echo "\n".
' <h3 style="margin-top: 8px">'.htmlspecialchars($this->t(
'idpname_'.$idpentry[
'entityid']));
73 if (!empty($idpentry[
'description'])) {
74 echo ' <p>'.htmlspecialchars($this->t(
'idpdesc_'.$idpentry[
'entityid'])).
'<br />';
76 echo '<button type="submit" class="btn" name="idp_'.htmlspecialchars($idpentry[
'entityid']).
'">'.
77 $this->t(
'select').
'</button></p>';
82 <?
php $this->includeAtTemplateBase(
'includes/footer.php');
if(!array_key_exists('header', $this->data)) $this data['header']
static resolveURL($url, $base=null)
Resolve a (possibly relative) URL relative to a given base URL.